Hello Martin,

Thank you for the prompt response. Please let me know if you end up needing any 
further information from me regarding this particular issue, and I will 
investigate your proposed workaround.

Regards,

Marc

From: Martin Desruisseaux [mailto:[email protected]]
Sent: Wednesday, November 29, 2017 4:43 PM
To: [email protected]
Subject: Re: WKTFormat.parseObject Issue


Hello Marc

This mailing list is fine for reporting such issues. Many thanks for reporting 
it.

Le 29/11/2017 à 22:37, Marc Tajiri a écrit :
Currently, I'm experiencing an interesting issue that I'm not sure whether it's 
a bug or working as intended - I get the following error from Apache SIS when I 
try to call WKTFormat.parseObject(String WKT) on EPSG::22197 
(http://www.epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::22197 for 
the WKT being fed to the function)

java.text.ParseException: Value 'Latitude of natural origin' = -90 is invalid. 
Expected a value in the [-90 ... 90] range.
    at 
org.apache.sis.io.wkt.MathTransformParser.parseParameters(MathTransformParser.java:317)
    (...snip...)

This looks like an Apache SIS bug. I filled a bug report: 
https://issues.apache.org/jira/browse/SIS-377 I will try to fix it as soon as I 
have a moment. I suspect it to be simple. In the meantime, a possible 
workaround is to use the following code if you have a local copy of EPSG 
database (installation instruction at [1]):

CRS.forCode("EPSG::22197")

Regards,

    Martin

[1] http://sis.apache.org/epsg.html


Reply via email to