C# 클래스 Spatial4n.Core.Util.GeohashUtils

파일 보기 프로젝트 열기: synhershko/Spatial4n 1 사용 예제들

공개 메소드들

메소드 설명
Decode ( String geohash, SpatialContext ctx ) : System.Point
DecodeBoundary ( String geohash, SpatialContext ctx ) : Rectangle
EncodeLatLon ( double latitude, double longitude ) : String

Encodes the given latitude and longitude into a geohash

EncodeLatLon ( double latitude, double longitude, int precision ) : String
GetSubGeohashes ( String baseGeohash ) : String[]
LookupDegreesSizeForHashLen ( int hashLen ) : double[]
LookupHashLenForWidthHeight ( double lonErr, double latErr ) : int

Return the shortest geohash length that will have a width & height >= specified arguments.

비공개 메소드들

메소드 설명
GeohashUtils ( ) : System

메소드 상세

Decode() 공개 정적인 메소드

public static Decode ( String geohash, SpatialContext ctx ) : System.Point
geohash String
ctx Spatial4n.Core.Context.SpatialContext
리턴 System.Point

DecodeBoundary() 공개 정적인 메소드

public static DecodeBoundary ( String geohash, SpatialContext ctx ) : Rectangle
geohash String
ctx Spatial4n.Core.Context.SpatialContext
리턴 Rectangle

EncodeLatLon() 공개 정적인 메소드

Encodes the given latitude and longitude into a geohash
public static EncodeLatLon ( double latitude, double longitude ) : String
latitude double Latitude to encode
longitude double Longitude to encode
리턴 String

EncodeLatLon() 공개 정적인 메소드

public static EncodeLatLon ( double latitude, double longitude, int precision ) : String
latitude double
longitude double
precision int
리턴 String

GetSubGeohashes() 공개 정적인 메소드

public static GetSubGeohashes ( String baseGeohash ) : String[]
baseGeohash String
리턴 String[]

LookupDegreesSizeForHashLen() 공개 정적인 메소드

public static LookupDegreesSizeForHashLen ( int hashLen ) : double[]
hashLen int
리턴 double[]

LookupHashLenForWidthHeight() 공개 정적인 메소드

Return the shortest geohash length that will have a width & height >= specified arguments.
public static LookupHashLenForWidthHeight ( double lonErr, double latErr ) : int
lonErr double
latErr double
리턴 int