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

This class is used to read and write ESRI Shapefiles. More...

Static Public Member Functions

static ShapeGeometryType GetShapeType (IGeometry geom)
 Given a geomtery object, returns the equivalent shape file type. More...
 
static ShapeHandler GetShapeHandler (ShapeGeometryType type)
 Returns the appropriate class to convert a shaperecord to an OGIS geometry given the type of shape. More...
 
static ShapefileDataReader CreateDataReader (string filename, GeometryFactory geometryFactory)
 Returns an ShapefileDataReader representing the data in a shapefile. More...
 
static DataTable CreateDataTable (string filename, string tableName, GeometryFactory geometryFactory)
 Creates a DataTable representing the information in a shape file. More...
 
static int ImportShapefile (string filename, string connectionstring, string tableName)
 Imports a shapefile into a database table. More...
 

Detailed Description

This class is used to read and write ESRI Shapefiles.

Member Function Documentation

static ShapefileDataReader NetTopologySuite.IO.Shapefile.CreateDataReader ( string  filename,
GeometryFactory  geometryFactory 
)
static

Returns an ShapefileDataReader representing the data in a shapefile.

Parameters
filenameThe filename (minus the . and extension) to read.
geometryFactoryThe geometry factory to use when creating the objects.
Returns
An ShapefileDataReader representing the data in the shape file.
static DataTable NetTopologySuite.IO.Shapefile.CreateDataTable ( string  filename,
string  tableName,
GeometryFactory  geometryFactory 
)
static

Creates a DataTable representing the information in a shape file.

Parameters
filenameThe filename (minus the . and extension) to read.
tableNameThe name to give to the table.
geometryFactoryThe geometry factory to use when creating the objects.
Returns
DataTable representing the data
static ShapeHandler NetTopologySuite.IO.Shapefile.GetShapeHandler ( ShapeGeometryType  type)
static

Returns the appropriate class to convert a shaperecord to an OGIS geometry given the type of shape.

Parameters
typeThe shapefile type.
Returns
An instance of the appropriate handler to convert the shape record to a Geometry object.
static ShapeGeometryType NetTopologySuite.IO.Shapefile.GetShapeType ( IGeometry  geom)
static

Given a geomtery object, returns the equivalent shape file type.

Parameters
geomA Geometry object.
Returns
The equivalent for the geometry object.
static int NetTopologySuite.IO.Shapefile.ImportShapefile ( string  filename,
string  connectionstring,
string  tableName 
)
static

Imports a shapefile into a database table.

This method assumes a table has already been crated in the database. Calling this method does not close the connection that is passed in.

Parameters
filename
connectionstring
tableName
Returns

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