Hi everyone,

I am trying to parse a Well Known Text to retrieve a Projected Coordinate 
Reference System. The WKT I read from the file is the following :
PROJCS["NTF (Paris) / Lambert zone I",GEOGCS["NTF 
(Paris)",DATUM["D_NTF",SPHEROID["Clarke_1880_IGN",6378249.2,293.4660212936265]],PRIMEM["Paris",2.33722917],UNIT["grad",0.01570796326794897]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["latitude_of_origin",55],PARAMETER["central_meridian",0],PARAMETER["scale_factor",0.999877341],PARAMETER["false_easting",600000],PARAMETER["false_northing",1200000],UNIT["Meter",1]]

It should correspond to the EPSG code 27571 (Lambert zone 1). I use the exact 
same code as in the tutorial :
CRSFactory crsFactory = ReferencingFactoryFinder.getCRSFactory(null);
CoordinateReferenceSystem crs = crsFactory.createFromWKT( wkt );

But I have an error message saying that latitudes 0 and 0 are at the pole (see 
below... sorry, it's localized in French)...
How can I make it work (without using the EPSG code that I know for this 
particular file, but not for any kind of file) ?

Thank you
Ben

class org.opengis.referencing.FactoryException: Les latitudes 0°00.0'N et 
0°00.0'N sont aux antipodes.
org.geotools.referencing.operation.DefaultMathTransformFactory.createParameterizedTransform(DefaultMathTransformFactory.java:469)
org.geotools.referencing.operation.DefaultMathTransformFactory.createBaseToDerived(DefaultMathTransformFactory.java:351)
org.geotools.referencing.factory.ReferencingObjectFactory.createProjectedCRS(ReferencingObjectFactory.java:1019)
org.geotools.referencing.wkt.Parser.parseProjCS(Parser.java:910)
org.geotools.referencing.wkt.Parser.parseCoordinateReferenceSystem(Parser.java:222)
org.geotools.referencing.wkt.Parser.parseCoordinateReferenceSystem(Parser.java:201)
org.geotools.referencing.factory.ReferencingObjectFactory.createFromWKT(ReferencingObjectFactory.java:1088)
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to