suneesh kumar a écrit :
I tried System.out.println(mapPane.getRenderer().getCoordinateSystem());

 It is giving this result.

LOCAL_CS["Cartesian", LOCAL_DATUM["Unknow", 32767],
UNIT["metre",1.0], AXIS["x",EAST], AXIS["y",NORTH]]

What this "Unknow" means. Do you feel there is some
problem with the shape file?

This is the default coordinate system used by renderer when it doesn't know what the real CRS is (no CRS were specified). This CRS is not related in any way to the Earth (this is where the "Unknow" come from). The renderer (or any other part of Geotools) will be unable to transform coordinates from this CRS to something else like WGS84.

I'm not sure that it is a problem with the shape file. It may happen that the shapefile correctly specifies a CRS, but for some reason this CRS is not propagated to the renderer. It may be worth to test the CRS in some earlier stage (e.g. right after loading from the shape file data store).

        Martin.


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to