On 24/09/2010 18:03, Jakub Rojek wrote:
> Hi,
>
> I use GeoTools to import some SHP files to PostGIS databank. SHP are in
> WGS84 CRS. Everything goes smoothly, except the fact that GeoTools do
> not define the coordinate system in created table and this cause me some
> problems .

My guess is that the shapefile does not have a .prj, or that the
.prj cannot be really matched right away to a EPSG code (which happens
if your prj file does not contain the code at the end of the wkt
definition).

Try this:

ft = FeatureTypes.transform(ft, CRS.decode("EPSG:4326", true)

Cheers
Andrea



------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to