You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@sis.apache.org by Michael Arneson <mi...@geotoolkit.net> on 2020/01/28 18:36:46 UTC

Support for Cassini coordinate reference system

I am trying to use this WKT:

PROJCS[Trinidad_1903_Trinidad_Grid
GEOGCS[GCS_Trinidad_1903
DATUM[D_Trinidad_1903
SPHEROID[Clarke_1858,6378293.64520876,294.260676369]]
PRIMEM[Greenwich,0.0],
UNIT[Degree,0.0174532925199433]],
PROJECTION[Cassini],
PARAMETER[False_Easting,430000.0],
PARAMETER[False_Northing,325000.0],
PARAMETER[Central_Meridian,-61.3333333333333]
PARAMETER[Scale_Factor,1.0]
PARAMETER[Latitude_Of_Origin,10.4416666666667]
UNIT[Link_Clarke,0.201166195164]
AUTHORITY[EPSG,30200]]


And I am getting this error:

Exception in thread "main" org.opengis.util.NoSuchIdentifierException: No
operation method found for name or identifier “Cassini”.

at
org.apache.sis.referencing.operation.transform.DefaultMathTransformFactory.getOperationMethod(DefaultMathTransformFactory.java:396)

at
org.apache.sis.referencing.operation.DefaultCoordinateOperationFactory.getOperationMethod(DefaultCoordinateOperationFactory.java:311)

at
org.apache.sis.internal.referencing.ServicesForMetadata.getOperationMethod(ServicesForMetadata.java:637)

at
org.apache.sis.io.wkt.GeodeticObjectParser.parseMethod(GeodeticObjectParser.java:1274)

at
org.apache.sis.io.wkt.GeodeticObjectParser.parseDerivingConversion(GeodeticObjectParser.java:1322)

at
org.apache.sis.io.wkt.GeodeticObjectParser.parseProjectedCRS(GeodeticObjectParser.java:2115)

at
org.apache.sis.io.wkt.GeodeticObjectParser.parseCoordinateReferenceSystem(GeodeticObjectParser.java:326)

at
org.apache.sis.io.wkt.GeodeticObjectParser.parseObject(GeodeticObjectParser.java:287)

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.AbstractParser.createFromWKT(AbstractParser.java:214)

at
org.apache.sis.referencing.factory.GeodeticObjectFactory.createFromWKT(GeodeticObjectFactory.java:1671)

at org.apache.sis.referencing.CRS.fromWKT(CRS.java:303)


From this document, I understand that Apache SIS doesn't support Cassini
coordinate systems:
https://sis.apache.org/tables/CoordinateReferenceSystems.html
Is this something that is planned?

Here is the code I used for testing

        String toCRSwkt = "PROJCS[\"Trinidad_1903_Trinidad_Grid\","
                + "GEOGCS[\"GCS_Trinidad_1903\","
                + "DATUM[\"D_Trinidad_1903\","
                +
"SPHEROID[\"Clarke_1858\",6378293.64520876,294.260676369]],"
                + "PRIMEM[\"Greenwich\",0.0],"
                + "UNIT[\"Degree\",0.0174532925199433]],"
                + "PROJECTION[\"Cassini\"],"
                + "PARAMETER[\"False_Easting\",430000.0],"
                + "PARAMETER[\"False_Northing\",325000.0],"
                + "PARAMETER[\"Central_Meridian\",-61.3333333333333],"
                + "PARAMETER[\"Scale_Factor\",1.0],"
                + "PARAMETER[\"Latitude_Of_Origin\",10.4416666666667],"
                + "UNIT[\"Link_Clarke\",0.201166195164],"
                + "AUTHORITY[\"EPSG\",30200]]";

        CoordinateReferenceSystem toCRS = CRS.fromWKT( toCRSwkt );

Thanks
-- 
*Michael Arneson*

*Software Engineer*



*Office:* +1 (713) 975-7434

michael.arneson@int.com

*INT *| *Empowering Visualization*

Re: Support for Cassini coordinate reference system

Posted by Martin Desruisseaux <ma...@geomatys.com>.
Hello Michael

Le 28/01/2020 à 19:36, Michael Arneson a écrit :

> (…snip…) I am getting this error:
>
>     Exception in thread "main"
>     org.opengis.util.NoSuchIdentifierException: No operation method
>     found for name or identifier “Cassini”.
>
>     (…snip…)
>
>
> From this document, I understand that Apache SIS doesn't support 
> Cassini coordinate 
> systems:https://sis.apache.org/tables/CoordinateReferenceSystems.html
> Is this something that is planned?

Yes. The list of operation methods that we want to implement is there:

    https://issues.apache.org/jira/browse/SIS-212

In the particular case of Cassini, we already have the code there in a 
separated project, that we are porting to SIS gradually:

    https://github.com/Geomatys/geotoolkit/blob/master/modules/utility/geotk-utility/src/main/java/org/geotoolkit/referencing/operation/projection/CassiniSoldner.java

Before porting that code, we need to do an IP review, then do some 
adaptation for the SIS architecture. This is something I want to do when 
I have a chance, but I'm not sure when…

     Martin