Hello all
I have not yet finished the migration to WKT 2 (ISO 19162) for the
classes to be included in the 0.4 RC, but I'm close. I listed in the
following JIRA task the features that will probably not be supported for
the 0.4 release:
https://issues.apache.org/jira/browse/SIS-163
For the record there is a comparison between WKT 1 and WKT 2 for the
"WGS 84" Coordinate Reference System. The WKT 2 in this example is not
yet complete.
WKT 1:
GEOGCS["WGS 84"
DATUM["World Geodetic System 1984"
SPHEROID["WGS84", 6378137.0, 298.257223563]]
PRIMEM["Greenwich", 0.0]
UNIT["degree", 0.017453292519943295]
AXIS["Longitude", EAST]
AXIS["Latitude", NORTH],
AUTHORITY["EPSG", "4326"]]
WKT 2:
GeodeticCRS["WGS 84",
Datum["World Geodetic System 1984",
Ellipsoid["WGS84", 6378137.0, 298.257223563, LengthUnit["metre", 1]]],
PrimeMeridian["Greenwich", 0.0, AngleUnit["degree",
0.017453292519943295]],
CS["ellipsoidal", 2],
Axis["Longitude", east],
Axis["Latitude", north],
AngleUnit["degree", 0.017453292519943295],
Area["World"],
BBox[-90.00, -180.00, 90.00, 180.00],
Scope["Horizontal component of 3D system. Used by the GPS satellite navigation
system and for NATO military geodetic surveying."]
Id["EPSG", 4326, Citation["OGP"], URI["urn:ogc:def:crs:EPSG::4326"]]]
Keywords like "GeodeticCRS", "PrimeMeridian", etc. are case-insensitive.
The common practice in WKT 1 was to use upper case. WKT 2 recommends
upper-case too, but as I progressed in WKT 2 implementation I found
those keywords more difficult to read than WKT 1 were, because the new
specification has longer keywords. Compare for instance "BASEGEODCRS"
with "BaseGeodCRS". So I took the initiative to switch to camel-case as
the default case for WKT 2, but provided a KeywordCase enumeration for
giving other choices to users [1]. If anyone feel that we should stick
to upper case as the default, please let us know.
Martin
[1]
https://builds.apache.org/job/sis-jdk7/site/apidocs/org/apache/sis/io/wkt/KeywordCase.html