sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (Jira)" <j...@apache.org>
Subject [jira] [Assigned] (SIS-512) Can't create transformation from wkt
Date Tue, 13 Jul 2021 08:46:00 GMT

     [ https://issues.apache.org/jira/browse/SIS-512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Desruisseaux reassigned SIS-512:
---------------------------------------

    Assignee: Martin Desruisseaux

> Can't create transformation from wkt
> ------------------------------------
>
>                 Key: SIS-512
>                 URL: https://issues.apache.org/jira/browse/SIS-512
>             Project: Spatial Information Systems
>          Issue Type: Bug
>            Reporter: Michael Arneson
>            Assignee: Martin Desruisseaux
>            Priority: Critical
>
> We are unable to create a _CoordinateOperation_ from the WKT that comes from an existing _CoordinateOperation_ object. 
>  The code below can be used to test this:
>   
>          _CoordinateOperationAuthorityFactory opFactory = (CoordinateOperationAuthorityFactory)
CRS.getAuthorityFactory("EPSG");_
>          _CoordinateOperation opFromCode = opFactory.createCoordinateOperation("5630");_
>          _String operationWKT = opFromCode.toWKT();
>          WKTFormat wf = new WKTFormat(null, null);
>          CoordinateOperation opFromWKT = (CoordinateOperation) wf.parseObject(operationWKT);_
>   
>  When trying to execute this code the following error is returned:
>   
> org.apache.sis.io.wkt.UnparsableObjectException: Error in “COORDINATEOPERATION”:
Missing value for “tgt_semi_major” parameter.
> at org.apache.sis.io.wkt.Element.parseFailed(Element.java:383)
> at org.apache.sis.io.wkt.GeodeticObjectParser.parseOperation(GeodeticObjectParser.java:2279)
> at org.apache.sis.io.wkt.GeodeticObjectParser.parseObject(GeodeticObjectParser.java:306)
> at org.apache.sis.io.wkt.AbstractParser.parseObject(AbstractParser.java:283)
> at org.apache.sis.io.wkt.GeodeticObjectParser.parseObject(GeodeticObjectParser.java:244)
> at org.apache.sis.io.wkt.WKTFormat.parse(WKTFormat.java:753)
> at org.apache.sis.io.CompoundFormat.parseObject(CompoundFormat.java:317)
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message