Class GeohashReferenceSystem

All Implemented Interfaces:
Serializable, Formattable, Deprecable, LenientComparable, org.opengis.referencing.IdentifiedObject, org.opengis.referencing.ReferenceSystem

public class GeohashReferenceSystem extends ReferencingByIdentifiers
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
Version:
1.3
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility.
      See Also:
    • IDENTIFIER

      static final String IDENTIFIER
      Identifier for this reference system.
      See Also:
    • format

      The format used by the GeohashReferenceSystem.Coder.
    • normalizedCRS

      final DefaultGeographicCRS normalizedCRS
      The user supplied CRS with (longitude, latitude) axis order in degrees.
    • denormalize

      final org.opengis.referencing.operation.CoordinateOperation denormalize
      The coordinate operation from normalizedCRS to the CRS specified by the user. The target CRS is the coordinate reference system to assign to the decoded positions.
    • INSTANCE

      private static GeohashReferenceSystem INSTANCE
      The unique instance, created when first requested.
  • Constructor Details

    • GeohashReferenceSystem

      public GeohashReferenceSystem(GeohashReferenceSystem.Format format, org.opengis.referencing.crs.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