Hello Andy,

First of all, the shape file set has to include a ".prj" file which
contains the details of the projection.

Next get the projection, e.g. with
FileDataStore.getSchema().getCoordinateReferenceSystem() or the
equivalent methods for FeatureSource, and use the CRS utility class...

int code = CRS.lookupEpsgCode( myCRS, true );

Hope this helps,
Michael


On 14 January 2011 03:02,  <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

Reply via email to