Class GeohashReferenceSystem
Object
FormattableObject
AbstractIdentifiedObject
AbstractReferenceSystem
ReferencingByIdentifiers
GeohashReferenceSystem
- All Implemented Interfaces:
- Serializable,- Formattable,- Deprecable,- LenientComparable,- IdentifiedObject,- ReferenceSystem
Geographic coordinates represented as geohashes strings.
 Geohash is a simple encoding of geographic coordinates into a short string of letters and digits.
 Longer strings are more accurate, however the accuracy is not uniformly distributed between latitude
 and longitude, and removing digits decreases accuracy faster when the point is located close to the
 equator than close to a pole. For a system having more uniform accuracy, see the
 Military Grid Reference System (MGRS).
- Since:
- 0.8
- See Also:
Defined in the sis-referencing-by-identifiers module
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionclassConversions between direct positions and geohashes.static enumThe encoding format used byGeohashReferenceSystem.Coder.
- 
Field SummaryFields inherited from class ReferencingByIdentifiersOVERALL_OWNER_KEY, THEME_KEYFields inherited from class AbstractIdentifiedObjectDEPRECATED_KEY, LOCALE_KEYFields inherited from interface IdentifiedObjectALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEYFields inherited from interface ReferenceSystemDOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new geohash reference system for the given format and coordinate reference system.
- 
Method SummaryModifier and TypeMethodDescriptionReturns a new object performing conversions betweenDirectPositionand geohashes.Returns the encoding/decoding format.Methods inherited from class ReferencingByIdentifierscomputeHashCode, equals, formatTo, getLocationTypes, getOverallOwner, getThemeMethods inherited from class AbstractReferenceSystemgetDomainOfValidity, getInterface, getScopeMethods inherited from class AbstractIdentifiedObjectcastOrCopy, equals, formatTo, getAlias, getDescription, getIdentifiers, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForNameMethods inherited from class FormattableObjectprint, toString, toString, toWKTMethods inherited from class Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface IdentifiedObjectgetAlias, getIdentifiers, getName, getRemarks, toWKT
- 
Constructor Details- 
GeohashReferenceSystempublic GeohashReferenceSystem(GeohashReferenceSystem.Format format, GeographicCRS crs) throws GazetteerException Creates a new geohash reference system for the given format and coordinate reference system.- Parameters:
- format- the format used by the- GeohashReferenceSystem.Coder.
- crs- the coordinate reference system. This is usually- CommonCRS.defaultGeographic().
- Throws:
- GazetteerException- if the reference system cannot be created.
 
 
- 
- 
Method Details- 
getFormatReturns the encoding/decoding format.- Returns:
- the encoding/decoding format.
 
- 
createCoderReturns a new object performing conversions betweenDirectPositionand geohashes. The returned object is not thread-safe; a new instance must be created for each thread, or synchronization must be applied by the caller.- Specified by:
- createCoderin class- ReferencingByIdentifiers
- Returns:
- a new object performing conversions between DirectPositionand geohashes.
 
 
-