Trait/Object

com.github.tsingjyujing.geo.basic

IHashableGeoBlock

Related Docs: object IHashableGeoBlock | package basic

Permalink

trait IHashableGeoBlock extends IGeoPoint with IHashedIndex[Long]

Squared hash of geo Which geo point can get an Long index value and get hashed.

Linear Supertypes
IHashedIndex[Long], IGeoPoint, Serializable, Serializable, GeoJSONable, GeoDistanceMeasurable[IGeoPoint], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IHashableGeoBlock
  2. IHashedIndex
  3. IGeoPoint
  4. Serializable
  5. Serializable
  6. GeoJSONable
  7. GeoDistanceMeasurable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getGeoHashAccuracy: Long

    Permalink

    Accuracy to mesh earth into N*N parts

  2. abstract def getIndexCode: Long

    Permalink

    Get a unique indexCode as type T

    Get a unique indexCode as type T

    Definition Classes
    IHashedIndex

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(x: IVector2): IGeoPoint

    Permalink
    Definition Classes
    IGeoPoint
  4. def -(x: IGeoPoint): IVector2

    Permalink
    Definition Classes
    IGeoPoint
  5. def -(x: IVector2): IGeoPoint

    Permalink
    Definition Classes
    IGeoPoint
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. lazy val circumradius: Double

    Permalink

    Get a spherical crown to hash block

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  10. def directionTo(point: IGeoPoint): Double

    Permalink

    Get the direction from this to target point in unit of Degree

    Get the direction from this to target point in unit of Degree

    North: 0/360 East: 90 South: 180 West: 270

    point

    target point

    Definition Classes
    IGeoPoint
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(o: Any): Boolean

    Permalink

    Avoid duplication in Set or key of the Map

    Avoid duplication in Set or key of the Map

    o

    object to compare

    Definition Classes
    IHashableGeoBlockIHashedIndex → AnyRef → Any
  13. val geoBox: GeoBox

    Permalink

    Get bound box of this block

  14. final def geoTo(point: IGeoPoint): Double

    Permalink

    Get distance from this to point or point to this (should be same)

    Get distance from this to point or point to this (should be same)

    point

    geo point

    Definition Classes
    IGeoPointGeoDistanceMeasurable
  15. def getBoundaryPoints(point: IGeoPoint): Iterable[IGeoPoint]

    Permalink

    Get points on boundary maybe the min/max distance

    Get points on boundary maybe the min/max distance

    point

    reference points

  16. def getCenterPoint: IGeoPoint

    Permalink

    Get center point of the hash block

  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  18. def getIndexCodeTuple: (Long, Long)

    Permalink

    decompose code tuple from code

  19. def getLatitude: Double

    Permalink

    Get latitude recommended in WGS84 format

    Get latitude recommended in WGS84 format

    returns

    Latitude in degree

    Definition Classes
    IHashableGeoBlockIGeoPoint
  20. def getLatitudeTuple: Long

    Permalink

    Get latitude part of decomposed code

  21. def getLongitude: Double

    Permalink

    Get longitude recommended in WGS84 format

    Get longitude recommended in WGS84 format

    returns

    Longitude in degree

    Definition Classes
    IHashableGeoBlockIGeoPoint
  22. def getLongitudeTuple: Long

    Permalink

    Get longitude part of decomposed code

  23. def getMaxDistance(x: IGeoPoint): Double

    Permalink

    get max distance from block to point

  24. def getMaxDistance(x: IHashableGeoBlock): Double

    Permalink

    Get max distance from block to this block

    Get max distance from block to this block

    x

    block info

  25. def getMinDistance(x: IGeoPoint): Double

    Permalink

    get min distance from block to point

    get min distance from block to point

    if point in block: --> 0 else: if point out of circumradius --> distanceToCenter - circumradius else --> calculate for each boundary point

  26. def getMinDistance(x: IHashableGeoBlock): Double

    Permalink

    Get min distance from block to this block

    Get min distance from block to this block

    x

    block info

  27. def hashCode(): Int

    Permalink

    Create a hashCode to accelerate operations in HashSet or HashMap ect.

    Create a hashCode to accelerate operations in HashSet or HashMap ect.

    Definition Classes
    IHashableGeoBlockIHashedIndex → AnyRef → Any
  28. lazy val inradius: Double

    Permalink

    Get an inner circle in hash block

    Get an inner circle in hash block

    **For why we use this design:** Get an inradius less than closedFormInradius to solve the value error of IEEE Float

  29. def isEqual(x: IHashedIndex[Long]): Boolean

    Permalink

    isEqual function

    isEqual function

    Definition Classes
    IHashedIndex
  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. def toGeoBox: GeoBox

    Permalink

    Get boundary box of hash block

  36. def toGeoJSON: JSONObject

    Permalink

    Get scala original JSON object, JSON object deprecated in Scala 2.12 but still using in 2.10

    Get scala original JSON object, JSON object deprecated in Scala 2.12 but still using in 2.10

    Definition Classes
    IGeoPointGeoJSONable
  37. def toGeoJSONString: String

    Permalink
    Definition Classes
    GeoJSONable
  38. final def toIVector2: IVector2

    Permalink

    Get Mercator projection potision as vector2

    Get Mercator projection potision as vector2

    Definition Classes
    IGeoPoint
  39. final def toIVector3: IVector3

    Permalink

    Get vector3 in R3 on 2d sphere

    Get vector3 in R3 on 2d sphere

    Definition Classes
    IGeoPoint
  40. def toString(): String

    Permalink
    Definition Classes
    IGeoPoint → AnyRef → Any
  41. def verifyLatitude: Unit

    Permalink

    Verify is latitude value is legal

    Verify is latitude value is legal

    Attributes
    protected
    Definition Classes
    IGeoPoint
    Annotations
    @throws( ... )
    Exceptions thrown

    AssertionError verify failed

  42. def verifyLongitude: Unit

    Permalink

    Verify is longitude value is legal

    Verify is longitude value is legal

    Attributes
    protected
    Definition Classes
    IGeoPoint
    Annotations
    @throws( ... )
    Exceptions thrown

    AssertionError verify failed

  43. def verifyValues: Unit

    Permalink

    Verify is latitude & longitude values are legal

    Verify is latitude & longitude values are legal

    Attributes
    protected
    Definition Classes
    IGeoPoint
    Annotations
    @throws( ... )
    Exceptions thrown

    AssertionError verify failed

  44. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def ~>(point: IGeoPoint): Double

    Permalink

    Alias of geoTo

    Alias of geoTo

    Definition Classes
    GeoDistanceMeasurable

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from IHashedIndex[Long]

Inherited from IGeoPoint

Inherited from Serializable

Inherited from Serializable

Inherited from GeoJSONable

Inherited from AnyRef

Inherited from Any

Ungrouped