Class/Object

com.github.tsingjyujing.geo.element.immutable

HashedGeoBlock

Related Docs: object HashedGeoBlock | package immutable

Permalink

class HashedGeoBlock extends IHashableGeoBlock

Get a hashed geo block

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

Instance Constructors

  1. new HashedGeoBlock(code: Long, accuracy: Long = 12000)

    Permalink

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

    Get a spherical crown to hash block

    Definition Classes
    IHashableGeoBlock
  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

    Get bound box of this block

    Definition Classes
    IHashableGeoBlock
  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

    Definition Classes
    IHashableGeoBlock
  16. def getCenterPoint: IGeoPoint

    Permalink

    Get center point of the hash block

    Get center point of the hash block

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

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

    Permalink

    Accuracy to mesh earth into N*N parts

    Accuracy to mesh earth into N*N parts

    Definition Classes
    HashedGeoBlockIHashableGeoBlock
  19. def getIndexCode: Long

    Permalink

    Get a unique indexCode as type T

    Get a unique indexCode as type T

    Definition Classes
    HashedGeoBlockIHashedIndex
  20. def getIndexCodeTuple: (Long, Long)

    Permalink

    decompose code tuple from code

    decompose code tuple from code

    Definition Classes
    IHashableGeoBlock
  21. def getLatitude: Double

    Permalink

    Get latitude recommended in WGS84 format

    Get latitude recommended in WGS84 format

    returns

    Latitude in degree

    Definition Classes
    IHashableGeoBlockIGeoPoint
  22. def getLatitudeTuple: Long

    Permalink

    Get latitude part of decomposed code

    Get latitude part of decomposed code

    Definition Classes
    IHashableGeoBlock
  23. def getLongitude: Double

    Permalink

    Get longitude recommended in WGS84 format

    Get longitude recommended in WGS84 format

    returns

    Longitude in degree

    Definition Classes
    IHashableGeoBlockIGeoPoint
  24. def getLongitudeTuple: Long

    Permalink

    Get longitude part of decomposed code

    Get longitude part of decomposed code

    Definition Classes
    IHashableGeoBlock
  25. def getMaxDistance(x: IGeoPoint): Double

    Permalink

    get max distance from block to point

    get max distance from block to point

    Definition Classes
    IHashableGeoBlock
  26. 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

    Definition Classes
    IHashableGeoBlock
  27. 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

    Definition Classes
    IHashableGeoBlock
  28. 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

    Definition Classes
    IHashableGeoBlock
  29. 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
  30. 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

    Definition Classes
    IHashableGeoBlock
  31. def isEqual(x: IHashedIndex[Long]): Boolean

    Permalink

    isEqual function

    isEqual function

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  37. def toGeoBox: GeoBox

    Permalink

    Get boundary box of hash block

    Get boundary box of hash block

    Definition Classes
    IHashableGeoBlock
  38. 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
  39. def toGeoJSONString: String

    Permalink
    Definition Classes
    GeoJSONable
  40. final def toIVector2: IVector2

    Permalink

    Get Mercator projection potision as vector2

    Get Mercator projection potision as vector2

    Definition Classes
    IGeoPoint
  41. final def toIVector3: IVector3

    Permalink

    Get vector3 in R3 on 2d sphere

    Get vector3 in R3 on 2d sphere

    Definition Classes
    IGeoPoint
  42. def toString(): String

    Permalink
    Definition Classes
    HashedGeoBlockIGeoPoint → AnyRef → Any
  43. 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

  44. 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

  45. 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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. 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 IHashableGeoBlock

Inherited from IHashedIndex[Long]

Inherited from IGeoPoint

Inherited from Serializable

Inherited from Serializable

Inherited from GeoJSONable

Inherited from AnyRef

Inherited from Any

Ungrouped