C# 클래스 Spatial4n.Core.Io.ShapeReadWriter

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

보호된 프로퍼티들

프로퍼티 타입 설명
Ctx Spatial4n.Core.Context.SpatialContext

공개 메소드들

메소드 설명
ReadShape ( string value ) : Shape

Reads a shape from a given string (ie, X Y, XMin XMax... WKT)

  • Point: X Y
    1.23 4.56
  • BOX: XMin YMin XMax YMax
    1.23 4.56 7.87 4.56
  • WKT (Well Known Text)
    POLYGON( ... )
    Note:Polygons and WKT might not be supported by this spatial context; you'll have to use {@link com.spatial4j.core.context.jts.JtsSpatialContext}.
@param value A string representation of the shape; not null. @return A Shape; not null. @see #writeShape

ShapeReadWriter ( SpatialContext ctx ) : System
WriteShape ( Shape shape ) : String

Writes a shape to a String, in a format that can be read by {@link #readShape(String)}.

보호된 메소드들

메소드 설명
ReadStandardShape ( String str ) : Shape

비공개 메소드들

메소드 설명
ReadLatCommaLonPoint ( String value ) : System.Point

Reads geospatial latitude then a comma then longitude.

메소드 상세

ReadShape() 공개 메소드

Reads a shape from a given string (ie, X Y, XMin XMax... WKT)
  • Point: X Y
    1.23 4.56
  • BOX: XMin YMin XMax YMax
    1.23 4.56 7.87 4.56
  • WKT (Well Known Text)
    POLYGON( ... )
    Note:Polygons and WKT might not be supported by this spatial context; you'll have to use {@link com.spatial4j.core.context.jts.JtsSpatialContext}.
@param value A string representation of the shape; not null. @return A Shape; not null. @see #writeShape
public ReadShape ( string value ) : Shape
value string
리턴 Shape

ReadStandardShape() 보호된 메소드

protected ReadStandardShape ( String str ) : Shape
str String
리턴 Shape

ShapeReadWriter() 공개 메소드

public ShapeReadWriter ( SpatialContext ctx ) : System
ctx Spatial4n.Core.Context.SpatialContext
리턴 System

WriteShape() 공개 메소드

Writes a shape to a String, in a format that can be read by {@link #readShape(String)}.
public WriteShape ( Shape shape ) : String
shape Shape
리턴 String

프로퍼티 상세

Ctx 보호되어 있는 프로퍼티

protected SpatialContext,Spatial4n.Core.Context Ctx
리턴 Spatial4n.Core.Context.SpatialContext