NetTopologySuite
|
Converts a Well-Known Binary byte data to a Geometry
.
More...
Public Member Functions | |
WKBReader () | |
Initialize reader with a standard IGeometryFactory. More... | |
WKBReader (IGeometryFactory factory) | |
Initialize reader with the given GeometryFactory . More... | |
WKBReader (IGeometryServices services) | |
IGeometry | Read (byte[] data) |
Reads a IGeometry in binary WKB format from an array of bytes. More... | |
virtual IGeometry | Read (Stream stream) |
Reads a IGeometry in binary WKB format from an Stream. More... | |
Static Public Member Functions | |||
static byte[] | HexToBytes (String hex) | ||
Converts a hexadecimal string to a byte array. The hexadecimal digit symbols are case-insensitive. /summary>
| |||
Protected Types | |
enum | CoordinateSystem { XY = 1, XYZ = 2, XYM = 3, XYZM = 4 } |
Protected Member Functions | |
IGeometry | Read (BinaryReader reader) |
ICoordinateSequence | ReadCoordinateSequence (BinaryReader reader, int size, CoordinateSystem cs) |
Function to read a coordinate sequence. More... | |
ICoordinateSequence | ReadCoordinateSequenceRing (BinaryReader reader, int size, CoordinateSystem cs) |
Function to read a coordinate sequence that is supposed to form a ring. More... | |
ICoordinateSequence | ReadCoordinateSequenceLineString (BinaryReader reader, int size, CoordinateSystem cs) |
Function to read a coordinate sequence that is supposed to serve a line string. More... | |
ILinearRing | ReadLinearRing (BinaryReader reader, CoordinateSystem cs, int srid) |
Reads a ILinearRing geometry. More... | |
IGeometry | ReadPoint (BinaryReader reader, CoordinateSystem cs, int srid) |
Reads a IPoint geometry. More... | |
IGeometry | ReadLineString (BinaryReader reader, CoordinateSystem cs, int srid) |
Reads a ILineString geometry. More... | |
IGeometry | ReadPolygon (BinaryReader reader, CoordinateSystem cs, int srid) |
Reads a IPolygon geometry. More... | |
IGeometry | ReadMultiPoint (BinaryReader reader, CoordinateSystem cs, int srid) |
Reads a IMultiPoint geometry. More... | |
IGeometry | ReadMultiLineString (BinaryReader reader, CoordinateSystem cs, int srid) |
Reads a IMultiLineString geometry. More... | |
IGeometry | ReadMultiPolygon (BinaryReader reader, CoordinateSystem cs, int srid) |
Reads a IMultiPolygon geometry. More... | |
IGeometry | ReadGeometryCollection (BinaryReader reader, CoordinateSystem cs, int srid) |
Reads a IGeometryCollection geometry. More... | |
Properties | |
IGeometryFactory | Factory [get] |
The IGeometry builder. More... | |
bool | HandleSRID [get, set] |
Ordinates | AllowedOrdinates [get] |
Ordinates | HandleOrdinates [get, set] |
bool | RepairRings [get, set] |
Gets or sets whether invalid linear rings should be fixed More... | |
Converts a Well-Known Binary byte data to a Geometry
.
The reader repairs structurally-invalid input (specifically, LineStrings and LinearRings which contain too few points have vertices added, and non-closed rings are closed). s
NetTopologySuite.IO.WKBReader.WKBReader | ( | ) |
Initialize reader with a standard IGeometryFactory.
NetTopologySuite.IO.WKBReader.WKBReader | ( | IGeometryFactory | factory | ) |
Initialize reader with the given GeometryFactory
.
factory |
IGeometry NetTopologySuite.IO.WKBReader.Read | ( | byte[] | data | ) |
Reads a IGeometry in binary WKB format from an array of bytes.
data | The byte array to read from |
GeoAPI.IO.ParseException | if the WKB data is ill-formed. |
|
virtual |
Reads a IGeometry in binary WKB format from an Stream.
stream | The stream to read from |
GeoAPI.IO.ParseException | if the WKB data is ill-formed. |
Reimplemented in NetTopologySuite.IO.MsSqlSpatialReader.
|
protected |
reader |
|
protected |
Function to read a coordinate sequence.
reader | The reader |
size | The number of ordinates |
cs | The coordinate system |
|
protected |
Function to read a coordinate sequence that is supposed to serve a line string.
reader | The reader |
size | The number of ordinates |
cs | The coordinate system |
|
protected |
Function to read a coordinate sequence that is supposed to form a ring.
reader | The reader |
size | The number of ordinates |
cs | The coordinate system |
|
protected |
Reads a IGeometryCollection geometry.
reader | The reader |
cs | The coordinate system |
param name="srid">The spatial reference id for the geometry.
returns>A IGeometryCollection geometry
|
protected |
Reads a ILinearRing geometry.
reader | The reader |
cs | The coordinate system |
param name="srid">The spatial reference id for the geometry.
returns>A ILinearRing geometry
|
protected |
Reads a ILineString geometry.
reader | The reader |
cs | The coordinate system |
param name="srid">The spatial reference id for the geometry.
returns>A ILineString geometry
|
protected |
Reads a IMultiLineString geometry.
reader | The reader |
cs | The coordinate system |
param name="srid">The spatial reference id for the geometry.
returns>A IMultiLineString geometry
|
protected |
Reads a IMultiPoint geometry.
reader | The reader |
cs | The coordinate system |
param name="srid">The spatial reference id for the geometry.
returns>A IMultiPoint geometry
|
protected |
Reads a IMultiPolygon geometry.
reader | The reader |
cs | The coordinate system |
param name="srid">The spatial reference id for the geometry.
returns>A IMultiPolygon geometry
|
protected |
Reads a IPoint geometry.
reader | The reader |
cs | The coordinate system |
param name="srid">The spatial reference id for the geometry.
returns>A IPoint geometry
|
protected |
Reads a IPolygon geometry.
reader | The reader |
cs | The coordinate system |
param name="srid">The spatial reference id for the geometry.
returns>A IPolygon geometry
|
getprotected |
The IGeometry builder.
|
getset |
Gets or sets whether invalid linear rings should be fixed