epsg wkt parser unable to parse included wkt
--------------------------------------------
Key: GEOT-3644
URL: http://jira.codehaus.org/browse/GEOT-3644
Project: GeoTools
Issue Type: Bug
Affects Versions: 2.7.1, 2.7.0
Environment: java version "1.6.0_18" on Linux 2.6.38.6-27.fc15.x86_64
Reporter: Brian Clements
Attachments: epsg-test.zip
At least two of the newly added espg wkt in the gt-epsg-wkt component do not
parse using org.geotools.referencing.wkt.Parser: EPSG 3412 and 3413 (polar
stereographic).
org.geotools.referencing.CRS.decode("epsg:3412");
and
org.geotools.referencing.CRS.decode("epsg:3413");
both fail with the following exception:
Exception in thread "main" org.opengis.referencing.FactoryException: Error in
"AXIS": Parameter "orientation" is missing.
at
org.geotools.referencing.factory.ReferencingObjectFactory.createFromWKT(ReferencingObjectFactory.java:1094)
at
org.geotools.referencing.crs.EPSGCRSAuthorityFactory.createCoordinateReferenceSystem(EPSGCRSAuthorityFactory.java:191)
at
org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:798)
at
org.geotools.referencing.factory.ThreadedAuthorityFactory.createCoordinateReferenceSystem(ThreadedAuthorityFactory.java:729)
at
org.geotools.referencing.DefaultAuthorityFactory.createCoordinateReferenceSystem(DefaultAuthorityFactory.java:179)
at org.geotools.referencing.CRS.decode(CRS.java:458)
at org.geotools.referencing.CRS.decode(CRS.java:386)
Caused by: java.text.ParseException: Error in "AXIS": Parameter "orientation"
is missing.
at
org.geotools.referencing.wkt.Element.pullVoidElement(Element.java:495)
at org.geotools.referencing.wkt.Parser.parseAxis(Parser.java:423)
at org.geotools.referencing.wkt.Parser.parseProjCS(Parser.java:898)
at
org.geotools.referencing.wkt.Parser.parseCoordinateReferenceSystem(Parser.java:222)
at
org.geotools.referencing.wkt.Parser.parseCoordinateReferenceSystem(Parser.java:201)
at
org.geotools.referencing.factory.ReferencingObjectFactory.createFromWKT(ReferencingObjectFactory.java:1088)
... 7 more
The part of the wkt that the error is referring to is the "Easting" axis of the
following:
PROJCS["WGS 84 / NSIDC Sea Ice Polar Stereographic North",
GEOGCS["WGS 84",
DATUM["World Geodetic System 1984",
SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH],
AUTHORITY["EPSG","4326"]],
PROJECTION["Polar Stereographic (variant B)", AUTHORITY["EPSG","9829"]],
PARAMETER["central_meridian", -45.0],
PARAMETER["standard_parallel_1", 70.0],
PARAMETER["false_easting", 0.0],
PARAMETER["false_northing", 0.0],
UNIT["m", 1.0],
AXIS["Easting", "South along 45 deg East"],
AXIS["Northing", "South along 135 deg East"],
AUTHORITY["EPSG","3413"]]
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel