Milton Jonathan wrote: > Yes, if we use pgAdmin to take a look at the PG database, we find that > in table 'spatial_ref_sys' there is indeed an entry for 4326, and a > whole lot of other SRID entries (3162 total). > > That table comes with columns 'srid', 'auth_name' (always 'EPSG'), > 'auth_srid' (same values as 'srid'), 'srtext' (looks like WKT strings) > and 'proj4ext'. > > Is there anything I need to setup on the GeoTools side? > > As a side note: I'm using PostgreSQL version 8.3, with PostGIS version = > "1.3 USE_GEOS=1 USE_PROJ=1 USE_STATS=1" > GeoTools is supposed to look up the definitions in your spatial_ref_sys table; and use them. I believe Andrea was having similar questions about creating Geometry to update a postgis table...
When you copy your geometry over can you try calling setSRID( 4326 ) on each geometry - and see if that makes a difference? It would be nice if the DataStore did this work for you - but I doubt it is that smart. Jody ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
