C# Class Spatial4n.Core.Shapes.Nts.NtsGeometry

Wraps a JTS {@link Geometry} (i.e. may be a polygon or basically anything). JTS's does a great deal of the hard work, but there is work here in handling dateline wrap.
Inheritance: Shape
Exibir arquivo Open project: synhershko/Spatial4n Class Usage Examples

Public Methods

Method Description
Equals ( Object o ) : bool
GetArea ( SpatialContext ctx ) : double
GetBoundingBox ( ) : Rectangle
GetCenter ( ) : Point
GetGeom ( ) : IGeometry
GetHashCode ( ) : int
HasArea ( ) : bool
IntersectionMatrixToSpatialRelation ( GeoAPI.Geometries.IntersectionMatrix matrix ) : SpatialRelation
NtsGeometry ( IGeometry geom, NtsSpatialContext ctx, bool dateline180Check ) : System
Relate ( Circle circle, SpatialContext ctx ) : SpatialRelation
Relate ( NtsGeometry jtsGeometry ) : SpatialRelation
Relate ( Point pt ) : SpatialRelation
Relate ( Rectangle rectangle ) : SpatialRelation
Relate ( Shape other ) : SpatialRelation
ToString ( ) : String

Private Methods

Method Description
CutUnwrappedGeomInto360 ( IGeometry geom ) : IGeometry
ShiftGeomByX ( IGeometry geom, int xShift ) : void
UnionGeometryCollection ( IGeometry geom ) : IGeometry
UnwrapDateline ( IGeometry geom ) : int
UnwrapDateline ( NetTopologySuite.Geometries.LineString lineString ) : int
UnwrapDateline ( NetTopologySuite.Geometries.Polygon poly ) : int

Method Details

Equals() public method

public Equals ( Object o ) : bool
o Object
return bool

GetArea() public method

public GetArea ( SpatialContext ctx ) : double
ctx Spatial4n.Core.Context.SpatialContext
return double

GetBoundingBox() public method

public GetBoundingBox ( ) : Rectangle
return Rectangle

GetCenter() public method

public GetCenter ( ) : Point
return Point

GetGeom() public method

public GetGeom ( ) : IGeometry
return IGeometry

GetHashCode() public method

public GetHashCode ( ) : int
return int

HasArea() public method

public HasArea ( ) : bool
return bool

IntersectionMatrixToSpatialRelation() public static method

public static IntersectionMatrixToSpatialRelation ( GeoAPI.Geometries.IntersectionMatrix matrix ) : SpatialRelation
matrix GeoAPI.Geometries.IntersectionMatrix
return SpatialRelation

NtsGeometry() public method

public NtsGeometry ( IGeometry geom, NtsSpatialContext ctx, bool dateline180Check ) : System
geom IGeometry
ctx Spatial4n.Core.Context.Nts.NtsSpatialContext
dateline180Check bool
return System

Relate() public method

public Relate ( Circle circle, SpatialContext ctx ) : SpatialRelation
circle Circle
ctx Spatial4n.Core.Context.SpatialContext
return SpatialRelation

Relate() public method

public Relate ( NtsGeometry jtsGeometry ) : SpatialRelation
jtsGeometry NtsGeometry
return SpatialRelation

Relate() public method

public Relate ( Point pt ) : SpatialRelation
pt Point
return SpatialRelation

Relate() public method

public Relate ( Rectangle rectangle ) : SpatialRelation
rectangle Rectangle
return SpatialRelation

Relate() public method

public Relate ( Shape other ) : SpatialRelation
other Shape
return SpatialRelation

ToString() public method

public ToString ( ) : String
return String