C# Class Spatial4n.Core.Io.ShapeReadWriter

Exibir arquivo Open project: synhershko/Spatial4n Class Usage Examples

Protected Properties

Property Type Description
Ctx Spatial4n.Core.Context.SpatialContext

Public Methods

Method Description
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)}.

Protected Methods

Method Description
ReadStandardShape ( String str ) : Shape

Private Methods

Method Description
ReadLatCommaLonPoint ( String value ) : System.Point

Reads geospatial latitude then a comma then longitude.

Method Details

ReadShape() public method

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
return Shape

ReadStandardShape() protected method

protected ReadStandardShape ( String str ) : Shape
str String
return Shape

ShapeReadWriter() public method

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

WriteShape() public method

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

Property Details

Ctx protected_oe property

protected SpatialContext,Spatial4n.Core.Context Ctx
return Spatial4n.Core.Context.SpatialContext