Class GeohashReferenceSystem.Decoder

All Implemented Interfaces:
org.opengis.geometry.coordinate.Position, org.opengis.geometry.DirectPosition, org.opengis.geometry.Envelope, org.opengis.metadata.extent.GeographicBoundingBox, org.opengis.metadata.extent.GeographicExtent
Enclosing class:
GeohashReferenceSystem

private final class GeohashReferenceSystem.Decoder extends SimpleLocation
The result of decoding a geohash. The position represents the centroid of the decoded geohash.
  • Constructor Details

    • Decoder

      Decoder(CharSequence geohash, double[] coordinates) throws org.opengis.referencing.operation.TransformException
      Decodes the given geohash.
      Throws:
      org.opengis.referencing.operation.TransformException
  • Method Details

    • getCoordinateReferenceSystem

      public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
      Returns the Coordinate Reference System of the decoded geohash.
      Specified by:
      getCoordinateReferenceSystem in interface org.opengis.geometry.DirectPosition
      Specified by:
      getCoordinateReferenceSystem in interface org.opengis.geometry.Envelope
      Overrides:
      getCoordinateReferenceSystem in class SimpleLocation