Hello all
The work on Military Reference Grid System (MGRS) [1] is completed for
now and has been merged to trunk. Some methods are:
* Location decode(CharSequence):
gives the position and envelope of a given MGRS reference.
* String encode(DirectPosition):
gives the MGRS reference for a given coordinates. Reprojection are
performed automatically if needed.
* Iterator<String> encode(Envelope):
gives all MGRS references that intersect the given envelope.
The GeoHashCoder class, previously in "org.apache.sis.index", has been
refactored as a "Reference System by identifiers" implementation and
moved to the same package than MGRS (namely
"org.apache.sis.referencing.gazetteer"). The new geohash coder follows a
similar API than MGRS. The old GeoHashCoder has been deprecated but not
yet deleleted; we can still revert if there is objection against this
refactoring.
Other classes in "org.apache.sis.referencing.gazetteer" package are
support classes derived from ISO 19112. Most useful ISO 19112 type in
current implementation is the "Location" interface, implemented in SIS
as "ModifiableLocation" class. An ISO 19112 "Location" contains not only
the position of a reference, but also its geographic bounding box, its
parent (e.g. the parent of "City" may by "Country"), etc.
In next month, I hope to enable MGRS and Geohash support in the
command-line tools and in the OpenOffice add-in.
Of course, comments, questions, proposals, etc. are welcome.
Martin
[1] https://issues.apache.org/jira/browse/SIS-354