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

Martin Desruisseaux closed SIS-512.
-----------------------------------

> 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
>          Components: Referencing
>    Affects Versions: 1.0
>            Reporter: Michael Arneson
>            Assignee: Martin Desruisseaux
>            Priority: Critical
>             Fix For: 1.1
>
>
> 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.20.10#820010)

Reply via email to