C# Class FdoToolbox.Core.Utility.FdoGeometryUtil

Utility class to convert fgf geometries to other forms and vice versa.
Mostra file Open project: jumpinjackie/fdotoolbox Class Usage Examples

Public Methods

Method Description
Fgf2Wkb ( byte fgf ) : byte[]

Converts a FGF binary to a WKB binary

Flatten ( IGeometry geom, FgfGeometryFactory factory ) : IGeometry

Flattens the specified geometry by stripping out the Z and M components of all ordinates within the geometry.

ForceWkb ( IGeometry geom, FgfGeometryFactory fact ) : IGeometry

Forces the given geometry to be WKB compliant. If necessary, a Flatten call will be made on the geometry.

GetFgf ( string str ) : byte[]

Gets the FGF binary from the given text

GetFgfText ( byte fgf ) : string

Gets the FGF text form of an FGF binary

GetGeometricTypes ( int value ) : GeometricType[]

Gets the geometric types.

GetGeometryTypes ( int value ) : GeometryType[]

Gets the geometry types.

GetWkbText ( byte fgf ) : string

Gets the WKB text from the given FGF binary

Is2D ( IGeometry geom ) : bool

Determines if this geometry is 2 dimensional (ie. It has no Z or M components)

Private Methods

Method Description
FdoGeometryUtil ( ) : System
FlattenCircularArcSegment ( ICircularArcSegment circularArc, FgfGeometryFactory factory ) : ICircularArcSegment
FlattenCurvePolygon ( ICurvePolygon curvePolygon, FgfGeometryFactory factory ) : ICurvePolygon
FlattenCurveSegment ( ICurveSegmentAbstract curveSegment, FgfGeometryFactory factory ) : ICurveSegmentAbstract
FlattenCurveString ( ICurveString curveStr, FgfGeometryFactory factory ) : ICurveString
FlattenLineString ( ILineString lineStr, FgfGeometryFactory factory ) : ILineString
FlattenLineStringSegment ( ILineStringSegment lineStrSegment, FgfGeometryFactory factory ) : ILineStringSegment
FlattenLinearRing ( ILinearRing ring, FgfGeometryFactory factory ) : ILinearRing
FlattenMultiCurvePolygon ( IMultiCurvePolygon mcPolygon, FgfGeometryFactory factory ) : IMultiCurvePolygon
FlattenMultiCurveString ( IMultiCurveString mcString, FgfGeometryFactory factory ) : IMultiCurveString
FlattenMultiGeometry ( IMultiGeometry mgeom, FgfGeometryFactory factory ) : IMultiGeometry
FlattenMultiLineString ( IMultiLineString mlString, FgfGeometryFactory factory ) : IMultiLineString
FlattenMultiPoint ( IMultiPoint mpoint, FgfGeometryFactory factory ) : IMultiPoint
FlattenMultiPolygon ( IMultiPolygon mpoly, FgfGeometryFactory factory ) : IMultiPolygon
FlattenPoint ( IPoint point, FgfGeometryFactory factory ) : IPoint
FlattenPolygon ( IPolygon polygon, FgfGeometryFactory factory ) : IPolygon
FlattenPosition ( IDirectPosition pos, FgfGeometryFactory factory ) : IDirectPosition
FlattenRing ( IRing ring, FgfGeometryFactory factory ) : IRing
GetDimensionality ( int dim ) : string
GetFirstDimensionality ( BinaryReader reader ) : int
WriteCircularArcSegment ( BinaryReader reader, StringBuilder wkt, int dim ) : void
WriteCurvePolygonEntity ( BinaryReader reader, StringBuilder wkt, int dim ) : void
WriteCurvePolygonText ( BinaryReader reader, StringBuilder wkt, int dim ) : void
WriteCurveSegmentText ( BinaryReader reader, StringBuilder wkt, int dim ) : void
WriteCurveStringEntity ( BinaryReader reader, StringBuilder wkt, int dim ) : void
WriteCurveStringText ( BinaryReader reader, StringBuilder wkt, int dim ) : void
WriteFgfText ( StringBuilder wkt, BinaryReader reader ) : void
WriteLineStringEntity ( BinaryReader reader, StringBuilder wkt, int dim ) : void
WriteLineStringSegment ( BinaryReader reader, StringBuilder wkt, int dim ) : void
WriteLineStringText ( BinaryReader reader, StringBuilder wkt, int dim ) : void
WriteMultipleGeometryType ( BinaryReader reader, StringBuilder wkt, GeometryType type ) : void
WritePointEntity ( BinaryReader reader, StringBuilder wkt, int dim ) : void
WritePointText ( BinaryReader reader, StringBuilder wkt, int dim ) : void
WritePolygonEntity ( BinaryReader reader, StringBuilder wkt, int dim ) : void
WritePolygonText ( BinaryReader reader, StringBuilder wkt, int dim ) : void
WriteSingleGeometryType ( BinaryReader reader, StringBuilder wkt, GeometryType type ) : void

Method Details

Fgf2Wkb() public static method

Converts a FGF binary to a WKB binary
public static Fgf2Wkb ( byte fgf ) : byte[]
fgf byte
return byte[]

Flatten() public static method

Flattens the specified geometry by stripping out the Z and M components of all ordinates within the geometry.
public static Flatten ( IGeometry geom, FgfGeometryFactory factory ) : IGeometry
geom IGeometry The geometry to flatten
factory FgfGeometryFactory The geometry factory.
return IGeometry

ForceWkb() public static method

Forces the given geometry to be WKB compliant. If necessary, a Flatten call will be made on the geometry.
public static ForceWkb ( IGeometry geom, FgfGeometryFactory fact ) : IGeometry
geom IGeometry
fact FgfGeometryFactory
return IGeometry

GetFgf() public static method

Gets the FGF binary from the given text
public static GetFgf ( string str ) : byte[]
str string
return byte[]

GetFgfText() public static method

Gets the FGF text form of an FGF binary
public static GetFgfText ( byte fgf ) : string
fgf byte
return string

GetGeometricTypes() public static method

Gets the geometric types.
public static GetGeometricTypes ( int value ) : GeometricType[]
value int The value.
return GeometricType[]

GetGeometryTypes() public static method

Gets the geometry types.
public static GetGeometryTypes ( int value ) : GeometryType[]
value int The value.
return GeometryType[]

GetWkbText() public static method

Gets the WKB text from the given FGF binary
public static GetWkbText ( byte fgf ) : string
fgf byte
return string

Is2D() public static method

Determines if this geometry is 2 dimensional (ie. It has no Z or M components)
public static Is2D ( IGeometry geom ) : bool
geom IGeometry The geometry
return bool