Geotools.Net

ShapefileWriter.Write Method 

Writes a shapefile to disk.

[Visual Basic]
Public Shared Sub Write( _
   ByVal filename As String, _
   ByVal geometryCollection As GeometryCollection, _
   ByVal geometryFactory As GeometryFactory _
)
[C#]
public static void Write(
   string filename,
   GeometryCollection geometryCollection,
   GeometryFactory geometryFactory
);

Parameters

filename
The filename to write to (minus the .shp extension).
geometryCollection
The GeometryCollection to write.
geometryFactory
The geometry factory to use.

Remarks

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.

See Also

ShapefileWriter Class | ShapefileWriter Members | Geotools.Data Namespace