[
https://issues.apache.org/jira/browse/SIS-377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16919633#comment-16919633
]
Martin Desruisseaux commented on SIS-377:
-----------------------------------------
Update (August 2019): the fix applied last year introduced a new bug, in which
standard feet (0.3048 metre) was confused with US survey feet. A fix is pushed
today.
> Latitude of natural origin = -90 wrongly rejected for Transverse Mercator
> -------------------------------------------------------------------------
>
> Key: SIS-377
> URL: https://issues.apache.org/jira/browse/SIS-377
> Project: Spatial Information Systems
> Issue Type: Bug
> Components: Referencing
> Affects Versions: 0.6, 0.7, 0.8
> Reporter: Martin Desruisseaux
> Assignee: Martin Desruisseaux
> Priority: Major
> Fix For: 1.0
>
>
> Attempt to parse the following WKT (from [EPSG geodetic
> dataset|http://www.epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::22197])
> {noformat}
> PROJCRS["Campo Inchauspe / Argentina 7",
> BASEGEODCRS["Campo Inchauspe",
> DATUM["Campo Inchauspe",
> ELLIPSOID["International 1924",6378388,297,LENGTHUNIT["metre",1.0]]]],
> CONVERSION["Argentina zone 7",
> METHOD["Transverse Mercator",ID["EPSG",9807]],
> PARAMETER["Latitude of natural
> origin",-90,ANGLEUNIT["degree",0.01745329252]],
> PARAMETER["Longitude of natural
> origin",-54,ANGLEUNIT["degree",0.01745329252]],
> PARAMETER["Scale factor at natural origin",1,SCALEUNIT["unity",1.0]],
> PARAMETER["False easting",7500000,LENGTHUNIT["metre",1.0]],
> PARAMETER["False northing",0,LENGTHUNIT["metre",1.0]]],
> CS[cartesian,2],
> AXIS["northing (X)",north,ORDER[1]],
> AXIS["easting (Y)",east,ORDER[2]],
> LENGTHUNIT["metre",1.0],
> ID["EPSG",22197]]
> {noformat}
> causes the following exception:
> {noformat}
> 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...)
> at org.apache.sis.parameter.Verifier.ensureValidValue(Verifier.java:219)
> at
> org.apache.sis.parameter.DefaultParameterValue.setValue(DefaultParameterValue.java:734)
> {noformat}
> Note: {{CRS.forCode("EPSG::22197")}} succeed.
> This issue has been reported [on the mailing
> list|https://lists.apache.org/thread.html/d4e45098cac941c4e130aa50e3fa6b4f349f3bc757e08258fe8b6587@%3Cuser.sis.apache.org%3E].
--
This message was sent by Atlassian Jira
(v8.3.2#803003)