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

Contains methods for reading a single Geometry in binary ESRI shapefile format. More...

Inheritance diagram for NetTopologySuite.IO.ShapeReader:
NetTopologySuite.IO.GDBReader

Public Member Functions

IGeometry ReadMultiPoint (BinaryReader reader, Ordinates ordinates)
 Function to read a IMultiPoint from a ShapeFile stream using the specified reader . More...
 
IPolygon CreateSimpleSinglePolygon (Coordinate[] coords)
 Creates a single Polygon without holes. More...
 
int ReadNumParts (BinaryReader reader)
 

Protected Member Functions

 ShapeReader ()
 Initialize reader with a standard GeometryFactory. More...
 
 ShapeReader (IGeometryFactory factory)
 Initialize reader with the given GeometryFactory. More...
 
IGeometry ReadPoint (BinaryReader reader, Ordinates ordinates)
 Function to read a IPoint from a ShapeFile stream using the specified reader . More...
 
IGeometry ReadLineString (BinaryReader reader, Ordinates ordinates)
 Function to read a ILineString or IMultiLineString from a ShapeFile stream using the specified reader . More...
 
IGeometry ReadPolygon (BinaryReader reader, Ordinates ordinates)
 Function to read a either a IPolygon or an IMultiPolygon from a ShapeFile stream using the specified reader . More...
 
int ReadNumPoints (BinaryReader reader)
 
int[] ReadIndexParts (BinaryReader reader, int numParts, int numPoints)
 Read the index parts of the shape header More...
 

Static Protected Member Functions

static Envelope ReadBoundingBox (BinaryReader reader)
 Read the x-y Envelope More...
 
static Interval ReadInterval (BinaryReader reader)
 Read the ordinate range Envelope More...
 

Properties

IGeometryFactory Factory [get, set]
 IGeometry creator. More...
 

Detailed Description

Contains methods for reading a single Geometry in binary ESRI shapefile format.

Constructor & Destructor Documentation

NetTopologySuite.IO.ShapeReader.ShapeReader ( )
protected

Initialize reader with a standard GeometryFactory.

NetTopologySuite.IO.ShapeReader.ShapeReader ( IGeometryFactory  factory)
protected

Initialize reader with the given GeometryFactory.

Parameters
factory

Member Function Documentation

IPolygon NetTopologySuite.IO.ShapeReader.CreateSimpleSinglePolygon ( Coordinate[]  coords)

Creates a single Polygon without holes.

Parameters
coords
Returns
static Envelope NetTopologySuite.IO.ShapeReader.ReadBoundingBox ( BinaryReader  reader)
staticprotected

Read the x-y Envelope

Parameters
readerThe reader to use
int [] NetTopologySuite.IO.ShapeReader.ReadIndexParts ( BinaryReader  reader,
int  numParts,
int  numPoints 
)
protected

Read the index parts of the shape header

Parameters
readerThe reader
numPartsThe number of parts
numPointsThe total number of points
Returns
An array of integer values
static Interval NetTopologySuite.IO.ShapeReader.ReadInterval ( BinaryReader  reader)
staticprotected

Read the ordinate range Envelope

Parameters
readerThe reader to use
IGeometry NetTopologySuite.IO.ShapeReader.ReadLineString ( BinaryReader  reader,
Ordinates  ordinates 
)
protected

Function to read a ILineString or IMultiLineString from a ShapeFile stream using the specified reader .

Parameters
readerThe reader to use
ordinatesThe ordinates to read
Returns
The read lineal geometry
IGeometry NetTopologySuite.IO.ShapeReader.ReadMultiPoint ( BinaryReader  reader,
Ordinates  ordinates 
)

Function to read a IMultiPoint from a ShapeFile stream using the specified reader .

Parameters
readerThe reader to use
ordinatesThe ordinates to read
Returns
The read polygonal geometry
int NetTopologySuite.IO.ShapeReader.ReadNumParts ( BinaryReader  reader)

Parameters
reader
Returns
int NetTopologySuite.IO.ShapeReader.ReadNumPoints ( BinaryReader  reader)
protected

Parameters
reader
Returns
IGeometry NetTopologySuite.IO.ShapeReader.ReadPoint ( BinaryReader  reader,
Ordinates  ordinates 
)
protected

Function to read a IPoint from a ShapeFile stream using the specified reader .

Parameters
readerThe reader to use
ordinatesThe ordinates to read
Returns
The read point geometry
IGeometry NetTopologySuite.IO.ShapeReader.ReadPolygon ( BinaryReader  reader,
Ordinates  ordinates 
)
protected

Function to read a either a IPolygon or an IMultiPolygon from a ShapeFile stream using the specified reader .

Parameters
readerThe reader to use
ordinatesThe ordinates to read
Returns
The read polygonal geometry

Property Documentation

IGeometryFactory NetTopologySuite.IO.ShapeReader.Factory
getset

IGeometry creator.


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