[geotk] prj file

sorel johann johann.sorel at geomatys.fr
Thu Feb 10 10:06:06 EST 2011

If you just want to display them. you can create a fake projection file, 
just add this in the prj file :
     SPHEROID["WGS84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
   PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
   UNIT["degree", 0.017453292519943295],
   AXIS["Geodetic longitude", EAST],
   AXIS["Geodetic latitude", NORTH]]

That's not great but at least it should be able to display them.

Making false assumption would not be a good solution to solve this issue.
We could add a parameter when we create the datastore to specify the 
crs, that would be much better.

In the end you would obtain something like this :
final Map params = new HashMap();
params.put("url", new URL("....");
params.put("crs", "EPSG:XXXX");
final DataStore ds = DataStoreFinder.getDataStore(params);

Would that be fine for your needs ?


Le 10/02/2011 15:47, Brigitte Charnomordic a écrit :
> Hello Martin,
> So ... I have spent some time trying to find out about the projection 
> used for my data.
> And the conclusion is that I don't know.
> Let me explain what I am trying to do, so that you don't jump with 
> horror!
> I have a C++ program that reads as inputs georeferenced data (whatever 
> the projection system), and builds zones according to some attribute 
> values.
> I use the open source C++ shapelib library to generate shape files 
> (shp,dbf,dbx).
> I have a working Java interface, that I built a couple years ago with 
> geotools, to view these shapefiles, zoom and so on.
> I am trying out geotoolkit to see if it's easier to use for building a 
> Java interface with extended functionalities.
> I never had to worry about the projection system in geotools, and of 
> course the projection can change with the input data files.
> Do you see a way out?
> Thanks
> Brigitte
> _______________________________________________
> Geotoolkit mailing list
> Geotoolkit at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geotoolkit

More information about the Geotoolkit mailing list