SharpMap Buffer

Topics: SharpMap Project
Jun 30, 2008 at 7:30 PM
I am trying to create a buffer from a point but the second line is throwing an Exception.
Exception Message: "Not implemented Exception" ............... yes, very nice...

// New Point
SharpMap.Geometries.Point sharpPt = new SharpMap.Geometries.Point(-42.234987, -22.234987);

// Creates the Buffer
SharpMap.Geometries.Geometry sharpGeom = sharpPt.Buffer(2.0);


What I am doing wrong?

Thanks in advance
Coordinator
Jun 30, 2008 at 8:18 PM
Edited Jun 30, 2008 at 8:20 PM
Hi vsfortunato, You aren't doing anything wrong as such, the method is just not implemented (at least not in 0.9/1.x). You can accomplish what you want using NTS  but it may involve converting between native SharpMap and NTS geometry types.
You can get NTS from http://code.google.com/p/nettopologysuite. Use either the trunk or the 1.7.3 RC2 inaries.
In SharpMap v2 topological operations are supported natively.
HTH jd