This project has moved. For the latest updates, please go here.

Create new Shape file

Topics: Data Access, SharpMap v0.9 / v1.x, SharpMap v2.0, WinForms Controls
Feb 17, 2008 at 1:35 PM
I am using 0.9 version , i am searching to find how to create and save new shape file


Feb 17, 2008 at 7:24 PM
Hi ruvy -

You might be able to use the Ogr provider for this - I'm not sure, since I've never looked at it.

The first SharpMap which supports read/write/create is v2.0: v0.9 was not designed with updating in mind.
Feb 18, 2008 at 4:41 AM
Thanks for your quick replay
what is ogr ?

Feb 18, 2008 at 7:28 AM
The OGR provider is in the SharpMap.Extensions project, found in the source tree.(SharpMap.Extensions)

It relies on the open source OGR/GDAL libraries, found here: .

We try to keep the needed libraries here, however: References4SharpMap.Extensions
Feb 18, 2008 at 11:52 AM
I have been using using NetTopologySuite to write shape files and dbfs.
Feb 18, 2008 at 4:24 PM
Ah, right.

mtidd is correct - I'd forgotten about the GeoTools.Net classes in NetTopologySuite v1.x.
Feb 19, 2008 at 5:16 AM
i found MyShapeFileWriter class in GisSharpBlog.NetTopologySuite.IO Namespace
does NetTopologySuite goes together well with sharpmap ?
is NetTopologySuite project still running ?
Feb 19, 2008 at 9:43 AM
Hi ruvy, the Net Topology Suite project is still running and it works with Sharp Map 0.9 but requires conversion between each of the native geometries. In the next versions of SharpMap and NTS they will share a common interface (from GeoAPI) and be completely interchangeable. HTH jd