Ops, sorry, I was just going to write it. I had a problem with my geometry_tables on Postgis, now it works fine.
thanks anyway Andrea. giovanni 2010/1/9 Andrea Aime <[email protected]>: > G. Allegri ha scritto: >> >> I have a problem with getting the CRS from my postgis postgis feature >> type schema. >> I've simply used the following code: >> >> PostgisDataStore ds = (PostgisDataStore) >> DataStoreFinder.getDataStore(params); >> FeatureSource fs = ds.getFeatureSource("cssim_cube"); >> CoordinateReferenceSystem dataCRS = >> fs.getSchema().getCoordinateReferenceSystem(); >> >> but I receive null for dataCRS. My CRS is correctly set inside the >> geometry_columns in Postgis, so what could be the problem? > > Not enough detail to tell. For starters, what is the EPSG code? > Sure you don't have spelling/case differences between schema/table/column > name and the metadata table? > > Besides something obvious like the above, or a projection that is > not supported by GeoTools 2.5.x (Cassini-Soldner would be an example), > you'll have to provide us with a database dump to inspect. > Of course any bug will be fixed only in the 2.6.x series. > > Cheers > Andrea > > > -- > Andrea Aime > OpenGeo - http://opengeo.org > Expert service straight from the developers. > ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
