C# Class Spatial4n.Core.Context.Nts.NtsSpatialContext

Enhances the default {@link SpatialContext} with support for Polygons (and other geometry) plus reading WKT. The popular JTS library does the heavy lifting.
Inheritance: SpatialContext
ファイルを表示 Open project: synhershko/Spatial4n Class Usage Examples

Public Properties

Property Type Description
GEO NtsSpatialContext

Public Methods

Method Description
GetGeometryFactory ( ) : NetTopologySuite.Geometries.GeometryFactory
GetGeometryFrom ( Shape shape ) : IGeometry
MakePoint ( double x, double y ) : Shapes.Point
NtsSpatialContext ( NetTopologySuite.Geometries.GeometryFactory geometryFactory, bool geo, DistanceCalculator calculator, Rectangle worldBounds ) : System
NtsSpatialContext ( bool geo ) : System
ToString ( ) : String

Protected Methods

Method Description
MakeShapeReadWriter ( ) : ShapeReadWriter

Method Details

GetGeometryFactory() public method

public GetGeometryFactory ( ) : NetTopologySuite.Geometries.GeometryFactory
return NetTopologySuite.Geometries.GeometryFactory

GetGeometryFrom() public method

public GetGeometryFrom ( Shape shape ) : IGeometry
shape Shape
return IGeometry

MakePoint() public method

public MakePoint ( double x, double y ) : Shapes.Point
x double
y double
return Shapes.Point

MakeShapeReadWriter() protected method

protected MakeShapeReadWriter ( ) : ShapeReadWriter
return Spatial4n.Core.Io.ShapeReadWriter

NtsSpatialContext() public method

public NtsSpatialContext ( NetTopologySuite.Geometries.GeometryFactory geometryFactory, bool geo, DistanceCalculator calculator, Rectangle worldBounds ) : System
geometryFactory NetTopologySuite.Geometries.GeometryFactory
geo bool
calculator DistanceCalculator
worldBounds Rectangle
return System

NtsSpatialContext() public method

public NtsSpatialContext ( bool geo ) : System
geo bool
return System

ToString() public method

public ToString ( ) : String
return String

Property Details

GEO public_oe static_oe property

public static NtsSpatialContext,Spatial4n.Core.Context.Nts GEO
return NtsSpatialContext