Class GeohashReferenceSystem.Decoder
java.lang.Object
org.apache.sis.referencing.gazetteer.AbstractLocation
org.apache.sis.referencing.gazetteer.SimpleLocation
org.apache.sis.referencing.gazetteer.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
The result of decoding a geohash.
The position represents the centroid of the decoded geohash.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.referencing.gazetteer.SimpleLocation
SimpleLocation.Projected
-
Field Summary
Fields inherited from class org.apache.sis.referencing.gazetteer.SimpleLocation
maxX, maxY, minX, minY
-
Constructor Summary
ConstructorsConstructorDescriptionDecoder
(CharSequence geohash, double[] coordinates) Decodes the given geohash. -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.referencing.crs.CoordinateReferenceSystem
Returns the Coordinate Reference System of the decoded geohash.Methods inherited from class org.apache.sis.referencing.gazetteer.SimpleLocation
convert, getCoordinate, getDimension, getDirectPosition, getEastBoundLongitude, getEnvelope, getGeographicExtent, getInclusion, getLowerCorner, getMaximum, getMedian, getMinimum, getNorthBoundLatitude, getOrdinate, getPosition, getSouthBoundLatitude, getSpan, getUpperCorner, getWestBoundLongitude, setOrdinate
Methods inherited from class org.apache.sis.referencing.gazetteer.AbstractLocation
getAdministrator, getAlternativeGeographicIdentifiers, getChildren, getGeographicIdentifier, getLocationType, getParents, getTemporalExtent, setTypeToChild, toString, type
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opengis.geometry.DirectPosition
equals, hashCode
-
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 interfaceorg.opengis.geometry.DirectPosition
- Specified by:
getCoordinateReferenceSystem
in interfaceorg.opengis.geometry.Envelope
- Overrides:
getCoordinateReferenceSystem
in classSimpleLocation
-