The projection that comes with a shapefile is captured as a "prj" file - and does not actually have an EPSG code. But you can figure out which EPSG code matches.
Grab your CoordinateReferenceSystem from you Shapefile; it is available in the FeatureSource.getSchema() information. From there look up a matching EPSG code using the CRS utility class. Jody On 14/01/2011, at 2:02 AM, phantom1...@gmx.de wrote: > Hi, > > how do I get epsgCode from the shapeFile? > > I get coordinate system on the method > "geometryDescriptor.getCoordinateReferenceSystem()", but not epsgCode. > > Andy > -- > Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir > belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Geotools-devel mailing list > geotools-de...@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users