NetTopologySuite
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
NetTopologySuite.IO.PostGisReader Class Reference

Converts a PostGIS binary data to a Geometry. More...

Inheritance diagram for NetTopologySuite.IO.PostGisReader:

Public Member Functions

 PostGisReader ()
 Initialize reader with a standard settings. More...
 
 PostGisReader (IGeometryFactory factory)
 Initialize reader with the given GeometryFactory. More...
 
 PostGisReader (ICoordinateSequenceFactory coordinateSequenceFactory, IPrecisionModel precisionModel)
 Initialize reader with the given coordinate sequence factory and the given precision model. More...
 
 PostGisReader (ICoordinateSequenceFactory coordinateSequenceFactory, IPrecisionModel precisionModel, Ordinates handleOrdinates)
 Initialize reader with the given GeometryFactory. More...
 
IGeometry Read (byte[] data)
 
IGeometry Read (Stream stream)
 

Protected Member Functions

IGeometry Read (BinaryReader reader)
 
IPoint ReadPoint (BinaryReader reader, IGeometryFactory factory, Ordinates ordinates)
 Reads a point from the stream More...
 
ICoordinateSequence ReadCoordinateSequence (BinaryReader reader, ICoordinateSequenceFactory factory, IPrecisionModel precisionModel, Ordinates ordinates)
 Reads a coordinate sequence from the stream, which length is not yet known. More...
 
ICoordinateSequence ReadCoordinateSequenceRing (BinaryReader reader, ICoordinateSequenceFactory factory, IPrecisionModel precisionModel, Ordinates ordinates)
 Reads a coordinate sequence from the stream, which length is not yet known. More...
 
ICoordinateSequence ReadCoordinateSequence (BinaryReader reader, ICoordinateSequenceFactory factory, IPrecisionModel precisionModel, int numPoints, Ordinates ordinates)
 Reads a ICoordinateSequence from the stream More...
 
ILineString ReadLineString (BinaryReader reader, IGeometryFactory factory, Ordinates ordinates)
 Reads a ILineString from the input stream. More...
 
ILinearRing ReadLinearRing (BinaryReader reader, IGeometryFactory factory, Ordinates ordinates)
 Reads a ILinearRing line string from the input stream. More...
 
IPolygon ReadPolygon (BinaryReader reader, IGeometryFactory factory, Ordinates ordinates)
 Reads a IPolygon from the input stream. More...
 
void ReadGeometryArray< TGeometry > (BinaryReader reader, TGeometry[] container)
 Reads an array of geometries More...
 
IMultiPoint ReadMultiPoint (BinaryReader reader, IGeometryFactory factory)
 Reads a IMultiPoint from the input stream. More...
 
IMultiLineString ReadMultiLineString (BinaryReader reader, IGeometryFactory factory)
 Reads a IMultiLineString from the input stream. More...
 
IMultiPolygon ReadMultiPolygon (BinaryReader reader, IGeometryFactory factory)
 Reads a IMultiPolygon from the input stream. More...
 
IGeometryCollection ReadGeometryCollection (BinaryReader reader, IGeometryFactory factory)
 Reads a IGeometryCollection from the input stream. More...
 

Properties

bool RepairRings [get, set]
 Gets or sets whether invalid linear rings should be fixed More...
 
bool HandleSRID [get, set]
 
Ordinates AllowedOrdinates [get]
 
Ordinates HandleOrdinates [get, set]
 

Detailed Description

Converts a PostGIS binary data to a Geometry.

Constructor & Destructor Documentation

NetTopologySuite.IO.PostGisReader.PostGisReader ( )

Initialize reader with a standard settings.

NetTopologySuite.IO.PostGisReader.PostGisReader ( IGeometryFactory  factory)

Initialize reader with the given GeometryFactory.

Parameters
factory
NetTopologySuite.IO.PostGisReader.PostGisReader ( ICoordinateSequenceFactory  coordinateSequenceFactory,
IPrecisionModel  precisionModel 
)

Initialize reader with the given coordinate sequence factory and the given precision model.

Parameters
coordinateSequenceFactory
precisionModel
NetTopologySuite.IO.PostGisReader.PostGisReader ( ICoordinateSequenceFactory  coordinateSequenceFactory,
IPrecisionModel  precisionModel,
Ordinates  handleOrdinates 
)

Initialize reader with the given GeometryFactory.

Parameters
coordinateSequenceFactory
precisionModel
handleOrdinatesThe ordinates to handle

Member Function Documentation

IGeometry NetTopologySuite.IO.PostGisReader.Read ( byte[]  data)

Parameters
data
Returns
IGeometry NetTopologySuite.IO.PostGisReader.Read ( Stream  stream)

Parameters
stream
Returns
IGeometry NetTopologySuite.IO.PostGisReader.Read ( BinaryReader  reader)
protected

Parameters
reader
Returns
ICoordinateSequence NetTopologySuite.IO.PostGisReader.ReadCoordinateSequence ( BinaryReader  reader,
ICoordinateSequenceFactory  factory,
IPrecisionModel  precisionModel,
Ordinates  ordinates 
)
protected

Reads a coordinate sequence from the stream, which length is not yet known.

Parameters
readerThe binary reader
factoryThe geometry factory to use for geometry creation.
precisionModelThe precision model used to make x- and y-ordinates precise.
ordinatesThe ordinates to read. Ordinates.XY are always read.
Returns
The coordinate sequence
ICoordinateSequence NetTopologySuite.IO.PostGisReader.ReadCoordinateSequence ( BinaryReader  reader,
ICoordinateSequenceFactory  factory,
IPrecisionModel  precisionModel,
int  numPoints,
Ordinates  ordinates 
)
protected

Reads a ICoordinateSequence from the stream

Parameters
readerThe binary reader
factoryThe geometry factory to use for geometry creation.
precisionModelThe precision model used to make x- and y-ordinates precise.
numPointsThe number of points in the coordinate sequence.
ordinatesThe ordinates to read. Ordinates.XY are always read.
Returns
The coordinate sequence
ICoordinateSequence NetTopologySuite.IO.PostGisReader.ReadCoordinateSequenceRing ( BinaryReader  reader,
ICoordinateSequenceFactory  factory,
IPrecisionModel  precisionModel,
Ordinates  ordinates 
)
protected

Reads a coordinate sequence from the stream, which length is not yet known.

Parameters
readerThe binary reader
factoryThe geometry factory to use for geometry creation.
precisionModelThe precision model used to make x- and y-ordinates precise.
ordinatesThe ordinates to read. Ordinates.XY are always read.
Returns
The coordinate sequence
void NetTopologySuite.IO.PostGisReader.ReadGeometryArray< TGeometry > ( BinaryReader  reader,
TGeometry[]  container 
)
protected

Reads an array of geometries

Parameters
readerThe binary reader.
containerThe container for the geometries
Type Constraints
TGeometry :IGeometry 
IGeometryCollection NetTopologySuite.IO.PostGisReader.ReadGeometryCollection ( BinaryReader  reader,
IGeometryFactory  factory 
)
protected

Reads a IGeometryCollection from the input stream.

Parameters
readerThe binary reader.
factoryThe geometry factory to use for geometry creation.
Returns
The GeometryCollection
ILinearRing NetTopologySuite.IO.PostGisReader.ReadLinearRing ( BinaryReader  reader,
IGeometryFactory  factory,
Ordinates  ordinates 
)
protected

Reads a ILinearRing line string from the input stream.

Parameters
readerThe binary reader.
factoryThe geometry factory to use for geometry creation.
ordinatesThe ordinates to read. Ordinates.XY are always read.
Returns
The LinearRing.
ILineString NetTopologySuite.IO.PostGisReader.ReadLineString ( BinaryReader  reader,
IGeometryFactory  factory,
Ordinates  ordinates 
)
protected

Reads a ILineString from the input stream.

Parameters
readerThe binary reader.
factoryThe geometry factory to use for geometry creation.
ordinatesThe ordinates to read. Ordinates.XY are always read.
Returns
The LineString.
IMultiLineString NetTopologySuite.IO.PostGisReader.ReadMultiLineString ( BinaryReader  reader,
IGeometryFactory  factory 
)
protected

Reads a IMultiLineString from the input stream.

Parameters
readerThe binary reader.
factoryThe geometry factory to use for geometry creation.
Returns
The MultiLineString
IMultiPoint NetTopologySuite.IO.PostGisReader.ReadMultiPoint ( BinaryReader  reader,
IGeometryFactory  factory 
)
protected

Reads a IMultiPoint from the input stream.

Parameters
readerThe binary reader.
factoryThe geometry factory to use for geometry creation.
Returns
The MultiPoint
IMultiPolygon NetTopologySuite.IO.PostGisReader.ReadMultiPolygon ( BinaryReader  reader,
IGeometryFactory  factory 
)
protected

Reads a IMultiPolygon from the input stream.

Parameters
readerThe binary reader.
factoryThe geometry factory to use for geometry creation.
Returns
The MultiPolygon
IPoint NetTopologySuite.IO.PostGisReader.ReadPoint ( BinaryReader  reader,
IGeometryFactory  factory,
Ordinates  ordinates 
)
protected

Reads a point from the stream

Parameters
readerThe binary reader.
factoryThe geometry factory to use for geometry creation.
ordinatesThe ordinates to read. Ordinates.XY are always read.
Returns
The Point.
IPolygon NetTopologySuite.IO.PostGisReader.ReadPolygon ( BinaryReader  reader,
IGeometryFactory  factory,
Ordinates  ordinates 
)
protected

Reads a IPolygon from the input stream.

Parameters
readerThe binary reader.
factoryThe geometry factory to use for geometry creation.
ordinatesThe ordinates to read. Ordinates.XY are always read.
Returns
The LineString.

Property Documentation

bool NetTopologySuite.IO.PostGisReader.RepairRings
getset

Gets or sets whether invalid linear rings should be fixed


The documentation for this class was generated from the following file: