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.CoordinateReferenceSystemReturns 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, setOrdinateMethods inherited from class org.apache.sis.referencing.gazetteer.AbstractLocation
getAdministrator, getAlternativeGeographicIdentifiers, getChildren, getGeographicIdentifier, getLocationType, getParents, getTemporalExtent, setTypeToChild, toString, typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
getCoordinateReferenceSystemin interfaceorg.opengis.geometry.DirectPosition- Specified by:
getCoordinateReferenceSystemin interfaceorg.opengis.geometry.Envelope- Overrides:
getCoordinateReferenceSystemin classSimpleLocation
-