You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by "Michael Arneson (Jira)" <ji...@apache.org> on 2021/04/26 14:09:00 UTC

[jira] [Updated] (SIS-512) Can't create transformation from wkt

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

Michael Arneson updated SIS-512:
--------------------------------
    Description: 
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)

 

  was:
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:
 
{quote}_org.apache.sis.io.wkt.UnparsableObjectException: Error in “COORDINATEOPERATION”: Missing value for “tgt_semi_major” parameter._
{quote}_at org.apache.sis.io.wkt.Element.parseFailed(Element.java:383)_{quote}
{quote}_at org.apache.sis.io.wkt.GeodeticObjectParser.parseOperation(GeodeticObjectParser.java:2279)_{quote}
{quote}_at org.apache.sis.io.wkt.GeodeticObjectParser.parseObject(GeodeticObjectParser.java:306)_{quote}
{quote}_at org.apache.sis.io.wkt.AbstractParser.parseObject(AbstractParser.java:283)_{quote}
{quote}_at org.apache.sis.io.wkt.GeodeticObjectParser.parseObject(GeodeticObjectParser.java:244)_{quote}
{quote}_at org.apache.sis.io.wkt.WKTFormat.parse(WKTFormat.java:753)_{quote}
{quote}_at org.apache.sis.io.CompoundFormat.parseObject(CompoundFormat.java:317)_{quote}{quote}


> 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
>            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)