C# Class Spatial4n.Core.Io.ShapeReadWriter

Afficher le fichier Open project: synhershko/Spatial4n Class Usage Examples

Protected Properties

Свойство Type Description
Ctx Spatial4n.Core.Context.SpatialContext

Méthodes publiques

Méthode 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)}.

Méthodes protégées

Méthode Description
ReadStandardShape ( String str ) : Shape

Private Methods

Méthode Description
ReadLatCommaLonPoint ( String value ) : System.Point

Reads geospatial latitude then a comma then longitude.

Method Details

ReadShape() public méthode

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
Résultat Shape

ReadStandardShape() protected méthode

protected ReadStandardShape ( String str ) : Shape
str String
Résultat Shape

ShapeReadWriter() public méthode

public ShapeReadWriter ( SpatialContext ctx ) : System
ctx Spatial4n.Core.Context.SpatialContext
Résultat System

WriteShape() public méthode

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

Property Details

Ctx protected_oe property

protected SpatialContext,Spatial4n.Core.Context Ctx
Résultat Spatial4n.Core.Context.SpatialContext