On Fri, Jun 21, 2013 at 9:40 PM, dodid <[email protected]> wrote:

> Hi Jody,
>
> I was wrong, the HSQL database is available.
>
> But the module is not able to identify the EPSG code from the .PRJ file in
> order to withe the proper CRS, incl. the Bursa Wolf parameters.
>

While not always possible, and sometimes quite slow, you can try this:

Integer code = CRS.lookupEPSGCode(yourCRS, true);
if(code != null) {
   CoordinateReferenceSystem crs = CRS.decode("EPSG:" + code, true);
} else {
   // though luck...
}

http://docs.geotools.org/latest/javadocs/org/geotools/referencing/CRS.html#lookupEpsgCode(org.opengis.referencing.crs.CoordinateReferenceSystem,
boolean)

Cheers
Andrea


-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to