sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fredrik Kjellberg (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SIS-287) TransverseMercator projection provider missing in service file
Date Fri, 28 Aug 2015 16:49:45 GMT
Fredrik Kjellberg created SIS-287:
-------------------------------------

             Summary: TransverseMercator projection provider missing in service file
                 Key: SIS-287
                 URL: https://issues.apache.org/jira/browse/SIS-287
             Project: Spatial Information Systems
          Issue Type: Bug
          Components: Referencing
    Affects Versions: 0.6
            Reporter: Fredrik Kjellberg
            Priority: Minor


I'm trying to parse the following WKT using the code from trunk and get an exception:

{code}
CoordinateReferenceSystem crs = CRS.fromWKT("PROJCS[\"RT90 2.5 gon V\",GEOGCS[\"RT90\",DATUM[\"Rikets_koordinatsystem_1990\",SPHEROID[\"Bessel
1841\",6377397.155,299.1528128,AUTHORITY[\"EPSG\",\"7004\"]],TOWGS84[414.1055246174,41.3265500042,603.0582474221,-0.8551163377,2.1413174055,-7.0227298286,0],AUTHORITY[\"EPSG\",\"6124\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.01745329251994328,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4124\"]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",0],PARAMETER[\"central_meridian\",15.80827777777778],PARAMETER[\"scale_factor\",1],PARAMETER[\"false_easting\",1500000],PARAMETER[\"false_northing\",0],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AUTHORITY[\"EPSG\",\"3021\"]]");
{code}

{noformat}
Exception in thread "main" org.opengis.util.NoSuchIdentifierException: No operation method
found for name or identifier “Transverse_Mercator”.
	at org.apache.sis.referencing.operation.transform.DefaultMathTransformFactory.getOperationMethod(DefaultMathTransformFactory.java:381)
	at org.apache.sis.referencing.operation.DefaultCoordinateOperationFactory.getOperationMethod(DefaultCoordinateOperationFactory.java:179)
	at org.apache.sis.internal.referencing.ServicesForMetadata.getOperationMethod(ServicesForMetadata.java:672)
	at org.apache.sis.io.wkt.GeodeticObjectParser.parseMethod(GeodeticObjectParser.java:1225)
	at org.apache.sis.io.wkt.GeodeticObjectParser.parseDerivingConversion(GeodeticObjectParser.java:1273)
	at org.apache.sis.io.wkt.GeodeticObjectParser.parseProjectedCRS(GeodeticObjectParser.java:1963)
	at org.apache.sis.io.wkt.GeodeticObjectParser.parseCoordinateReferenceSystem(GeodeticObjectParser.java:360)
	at org.apache.sis.io.wkt.GeodeticObjectParser.parseObject(GeodeticObjectParser.java:323)
	at org.apache.sis.io.wkt.AbstractParser.parseObject(AbstractParser.java:240)
	at org.apache.sis.io.wkt.GeodeticObjectParser.parseObject(GeodeticObjectParser.java:281)
	at org.apache.sis.io.wkt.AbstractParser.createFromWKT(AbstractParser.java:209)
	at org.apache.sis.referencing.factory.GeodeticObjectFactory.createFromWKT(GeodeticObjectFactory.java:1436)
	at org.apache.sis.referencing.CRS.fromWKT(CRS.java:236)
{noformat}

It seems there are a few projection providers missing from the service file. It works if I
apply the attached patch.

Maybe the providers in the OperationMethod service file should be sorted by name to make the
file easier to read?




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message