NetTopologySuite
|
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... | |
This class is used to read and write ESRI Shapefiles.
|
static |
Returns an ShapefileDataReader representing the data in a shapefile.
filename | The filename (minus the . and extension) to read. |
geometryFactory | The geometry factory to use when creating the objects. |
|
static |
Creates a DataTable representing the information in a shape file.
filename | The filename (minus the . and extension) to read. |
tableName | The name to give to the table. |
geometryFactory | The geometry factory to use when creating the objects. |
|
static |
Returns the appropriate class to convert a shaperecord to an OGIS geometry given the type of shape.
type | The shapefile type. |
|
static |
Given a geomtery object, returns the equivalent shape file type.
geom | A Geometry object. |
|
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.
filename | |
connectionstring | |
tableName |