On Wed, May 12, 2010 at 9:36 AM, Jean Marie <[email protected]> wrote:
> looking in details at the way I get the WKT string, I notice that sometimes
> this string contains the Bursa-Wolf parameters and sometimes it doesn't ;
> Bursa-Wolf parameters seems related to the presence of parameter TOWGS84[..]
>
> to get this WKT string I write the following code :
>
> CoordinateReferenceSystem crsSrc =
> ReferencingFactoryFinder.getCRSAuthorityFactory("EPSG",
> null).createCoordinateReferenceSystem(EPSGsrc);
> and then crsSrc.toWKT() gives the WKT specification for EPSGsrc
>
> if EPSGsrc="EPSG:2056" (Liechtenstein and Switzerland) I do get the
> parameter TOWGS84[..] in the WKT string
> and then the library gt-epsg-hsql-2.6.3.jar is not required and the use of
> WKT projections is correct
> (as described in my code at the bottom of this email))
>
> if EPSGsrc="EPSG:27572" (France) I don't get parameter TOWGS84[..] and the
> library gt-epsg-hsql-2.6.3.jar is required
>
> so my question is :
> how can I get a complete and an accurate WKT string from a given EPSG code ?

http://spatialreference.org/ref/epsg/27572/ seems to give the TOWS string as
TOWGS84[-168,-60,320,0,0,0,0],

I thought you always needed an EPSG implementation jar to be present
when using GeoTools to do any CRS work but I haven't played with
projections for a while.

Ian
-- 
Ian Turton

------------------------------------------------------------------------------

_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to