This class writes ESRI Shapefiles.
More...
|
| ShapefileWriter (string filename, ShapeGeometryType geomType) |
| Initializes a buffered writer where you can write shapes individually to the file. More...
|
|
| ShapefileWriter (IGeometryFactory geometryFactory, string filename, ShapeGeometryType geomType) |
|
| ShapefileWriter (IGeometryFactory geometryFactory) |
| Initializes a new instance of the ShapefileWriter class with the given GeometryFactory. More...
|
|
void | Close () |
|
void | Write (IGeometry geometry) |
| Adds a shape to the shapefile. You must have used the constrcutor with a filename to use this method! More...
|
|
void | Write (string filename, IGeometryCollection geometryCollection) |
| Method to write a collection of IGeometrys to a file named filename More...
|
|
void | Dispose () |
|
|
static void | WriteGeometryCollection (string filename, IGeometryCollection geometryCollection) |
| Method to write a collection of geometries to a shapefile on disk. More...
|
|
static void | WriteDummyDbf (string filename, int recordCount) |
|
|
IGeometryFactory | Factory [get, set] |
|
This class writes ESRI Shapefiles.
NetTopologySuite.IO.ShapefileWriter.ShapefileWriter |
( |
string |
filename, |
|
|
ShapeGeometryType |
geomType |
|
) |
| |
Initializes a buffered writer where you can write shapes individually to the file.
- Parameters
-
filename | The filename |
geomType | The geometry type |
NetTopologySuite.IO.ShapefileWriter.ShapefileWriter |
( |
IGeometryFactory |
geometryFactory | ) |
|
Initializes a new instance of the ShapefileWriter class with the given GeometryFactory.
- Parameters
-
void NetTopologySuite.IO.ShapefileWriter.Write |
( |
IGeometry |
geometry | ) |
|
Adds a shape to the shapefile. You must have used the constrcutor with a filename to use this method!
- Parameters
-
void NetTopologySuite.IO.ShapefileWriter.Write |
( |
string |
filename, |
|
|
IGeometryCollection |
geometryCollection |
|
) |
| |
Method to write a collection of IGeometrys to a file named filename
Assumes the type given for the first geometry is the same for all subsequent geometries. For example, is, if the first Geometry is a Multi-polygon/ Polygon, the subsequent geometies are Muli-polygon/ polygon and not lines or points. The dbase file for the corresponding shapefile contains one column called row. It contains the row number.
- Parameters
-
filename | The name of the file |
geometryCollection | The collection of geometries |
static void NetTopologySuite.IO.ShapefileWriter.WriteDummyDbf |
( |
string |
filename, |
|
|
int |
recordCount |
|
) |
| |
|
static |
static void NetTopologySuite.IO.ShapefileWriter.WriteGeometryCollection |
( |
string |
filename, |
|
|
IGeometryCollection |
geometryCollection |
|
) |
| |
|
static |
Method to write a collection of geometries to a shapefile on disk.
Assumes the type given for the first geometry is the same for all subsequent geometries. For example, is, if the first Geometry is a Multi-polygon/ Polygon, the subsequent geometies are Muli-polygon/ polygon and not lines or points. The dbase file for the corresponding shapefile contains one column called row. It contains the row number.
- Parameters
-
filename | The filename to write to (minus the .shp extension). |
geometryCollection | The GeometryCollection to write. |
The documentation for this class was generated from the following file:
- NetTopologySuite/NetTopologySuite.IO/NetTopologySuite.IO.GeoTools/ShapefileWriter.cs