Keywords in WKT 2 come in two flavours: short and long. Examples:
* Short: PrimeM, GeodCRS, ProjCRS, VertCRS, EDatum, etc.
* Long: PrimeMeridian, GeodeticCRS, ProjectedCRS, VerticalCRS,
EngineeringDatum, etc.
Apache SIS can read both forms, but currently formats only the long form
because I presume that it would make easier for the users to see the
link with classes or interfaces, since the long WKT keywords are the
same than the interface names. However the ISO 19162 standard recommends
the short form in upper-case. We should probably allow both, but do
anyone has a preference about what should be the default?
Small example as provided in ISO 19162 (short keywords, upper-case, no
space):
ENGCRS[“A ship-centred CRS”,
EDATUM[“Ship reference point”,ANCHOR[“Centre of buoyancy”]],
CS[Cartesian,3],
AXIS[“(x)”,forward],
AXIS[“(y)”,starboard],
AXIS[“(z)”,down],
LENGTHUNIT[“metre”,1.0]]
Same CRS as currently formatted by default by SIS (long keywords,
camel-case, space):
EngineeringCRS[“A ship-centred CRS”,
EngineeringDatum[“Ship reference point”, Anchor[“Centre of buoyancy”]],
CS[Cartesian, 3],
Axis[“(x)”, forward],
Axis[“(y)”, starboard],
Axis[“(z)”, down],
LengthUnit[“metre”, 1]]
Martin