Object/Class

org.locationtech.geomesa.utils.geohash

GeoHash

Related Docs: class GeoHash | package geohash

Permalink

object GeoHash extends LazyLogging with Serializable

Linear Supertypes
Serializable, Serializable, LazyLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GeoHash
  2. Serializable
  3. Serializable
  4. LazyLogging
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val MAX_PRECISION: Int

    Permalink
  5. def apply(lon: Double, lat: Double, prec: Int = 25): GeoHash

    Permalink
  6. def apply(bs: BitSet, prec: Int): GeoHash

    Permalink
  7. def apply(p: Point, prec: Int): GeoHash

    Permalink
  8. def apply(string: String, precision: Int): GeoHash

    Permalink
  9. def apply(string: String): GeoHash

    Permalink
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. val base32: String

    Permalink
  12. def checkPrecision(precision: Int): Unit

    Permalink
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def composeGeoHashFromBitIndicesAndPrec(latIndex: Long, lonIndex: Long, prec: Int): GeoHash

    Permalink

    Composes a geohash from a latitude and longitude index for the grid of geohashes at the specified precision.

    Composes a geohash from a latitude and longitude index for the grid of geohashes at the specified precision.

    Note that the maximum latitude index is 2(prec / 2) - 1 and the maximum longitude index is 2(prec / 2 + prec % 2) -1 for the given precision. An exception will be thrown if a larger index value is passed to this function.

    latIndex

    latitude index

    lonIndex

    longitude index

    prec

    the precision

    returns

    a geohash at the specified latitude and longitude index for the given geohash precision

  15. def covering(ll: GeoHash, ur: GeoHash, prec: Int = 25): Seq[GeoHash]

    Permalink
  16. def encode(lonIndex: Long, latIndex: Long, lonDelta: Double, latDelta: Double, prec: Int): GeoHash

    Permalink

    Create the geohash at the given latitude and longitude index with the given deltas and precision.

    Create the geohash at the given latitude and longitude index with the given deltas and precision. Assumes prec <= 63, that is, all bits in the bitset fit in one Long

    lonDelta

    the longitude (x) delta per grid cell for the given precision

    latDelta

    the latitude (y) delta per grid cell for the given precision

    prec

    precision (# of bits)

    returns

    the encoded GeoHash (note that calculation of the actual hash string is lazy)

  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. lazy val factory: GeometryFactory

    Permalink
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def fromBinaryString(bitsString: String): GeoHash

    Permalink
  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def getLatitudeLongitudeSpanCount(g1: GeoHash, g2: GeoHash, precision: Int): (Int, Int)

    Permalink

    Get the dimensions of the geohash grid bounded by ll and ur at precision.

    Get the dimensions of the geohash grid bounded by ll and ur at precision.

    returns

    tuple containing (latitude span count, longitude span count)

  24. def gridIndexForLatitude(gh: GeoHash): Long

    Permalink

    Gets a long value representing a latitude index within the grid of geohashes at the precision of the specified geohash

    Gets a long value representing a latitude index within the grid of geohashes at the precision of the specified geohash

    gh

    the geohash

    returns

    latitude index

  25. def gridIndexForLongitude(gh: GeoHash): Long

    Permalink

    Gets a long value representing a longitude index within th grid of geohashes at the precision of the specified geohash

    Gets a long value representing a longitude index within th grid of geohashes at the precision of the specified geohash

    gh

    the geohash

    returns

    longitude index

  26. def gridIndicesForLatLong(gh: GeoHash): Array[Long]

    Permalink

    Convenience method to return both the latitude and longitude indices within the grid of geohashes at the precision of the specified geohash

    Convenience method to return both the latitude and longitude indices within the grid of geohashes at the precision of the specified geohash

    gh

    the geohash

    returns

    an array containing first the latitude index and then the longitude index

  27. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. def latitudeDeltaForPrecision(prec: Int): Double

    Permalink
  30. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  31. def longitudeDeltaForPrecision(prec: Int): Double

    Permalink
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. def next(bs: BitSet, precision: Int = 63): BitSet

    Permalink
  34. def next(gh: GeoHash): GeoHash

    Permalink
  35. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. implicit def toGeometry(gh: GeoHash): Geometry

    Permalink
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped