NTS point.buffer() throw NullReferenceException

Topics: SharpMap v2.0
Jul 25, 2008 at 10:19 AM
I download the Net Topology suite from svn on http://code.google.com/p/nettopologysuite/
and build it successfully.
Now I am running the test project NetTopolySuite.Sample.Console.csproj.
The tests are used by Diego Guidi and are started by root/program.cs Main entry point.

Write(point.Buffer(10)); in PointSample.cs at line 51.
throws a NullReferenceException.
Can someone can point me what's wrong here? How can i fix it?
And the Call Stack Trace is:
    NetTopologySuite.dll!GisSharpBlog.NetTopologySuite.Index.Strtree.StrTree<NetTopologySuite.Coordinates.BufferedCoordinate2D,GisSharpBlog.NetTopologySuite.Index.Chain.MonotoneChain<NetTopologySuite.Coordinates.BufferedCoordinate2D>>.StrNode.ComputeBounds() line 117    C#
     NetTopologySuite.dll!GisSharpBlog.NetTopologySuite.Index.AbstractNode<GeoAPI.Geometries.IExtents<NetTopologySuite.Coordinates.BufferedCoordinate2D>,GeoAPI.Indexing.IBoundable<GeoAPI.Geometries.IExtents<NetTopologySuite.Coordinates.BufferedCoordinate2D>>>.Bounds.get() line 78 + 0xd byte    C#
     NetTopologySuite.dll!GisSharpBlog.NetTopologySuite.Index.Strtree.StrTree<NetTopologySuite.Coordinates.BufferedCoordinate2D,GisSharpBlog.NetTopologySuite.Index.Chain.MonotoneChain<NetTopologySuite.Coordinates.BufferedCoordinate2D>>.StrNode.Intersects(GeoAPI.Geometries.IExtents<NetTopologySuite.Coordinates.BufferedCoordinate2D> bounds = {Extents [110 - 155.765851938044, 44.2341480619557 - 100]}) line 130 + 0xb byte   C#
     NetTopologySuite.dll!GisSharpBlog.NetTopologySuite.Index.Strtree.AbstractStrTree<GeoAPI.Geometries.IExtents<NetTopologySuite.Coordinates.BufferedCoordinate2D>,GisSharpBlog.NetTopologySuite.Index.Chain.MonotoneChain<NetTopologySuite.Coordinates.BufferedCoordinate2D>>.Query(GeoAPI.Geometries.IExtents<NetTopologySuite.Coordinates.BufferedCoordinate2D> searchBounds = {Extents [110 - 155.765851938044, 44.2341480619557 - 100]}, System.Predicate<GisSharpBlog.NetTopologySuite.Index.Chain.MonotoneChain<NetTopologySuite.Coordinates.BufferedCoordinate2D>> filter = null) line 198 + 0x14 byte    C#
     NetTopologySuite.dll!GisSharpBlog.NetTopologySuite.Noding.MonotoneChainIndexNoder<NetTopologySuite.Coordinates.BufferedCoordinate2D>.intersectChains() line 108 + 0x1a0 byte  C#
     NetTopologySuite.dll!GisSharpBlog.NetTopologySuite.Noding.MonotoneChainIndexNoder<NetTopologySuite.Coordinates.BufferedCoordinate2D>.Node(System.Collections.Generic.IEnumerable<GisSharpBlog.NetTopologySuite.Noding.NodedSegmentString<NetTopologySuite.Coordinates.BufferedCoordinate2D>> inputSegmentStrings = Count = 1) line 72 + 0x8 byte    C#
     NetTopologySuite.dll!GisSharpBlog.NetTopologySuite.Operation.Buffer.BufferBuilder<NetTopologySuite.Coordinates.BufferedCoordinate2D>.computeNodedEdges(System.Collections.Generic.IEnumerable<GisSharpBlog.NetTopologySuite.Noding.NodedSegmentString<NetTopologySuite.Coordinates.BufferedCoordinate2D>> bufferSegStrList = Count = 1, GeoAPI.Geometries.IPrecisionModel<NetTopologySuite.Coordinates.BufferedCoordinate2D> precisionModel = {Floating}) line 232 + 0xc byte    C#
     NetTopologySuite.dll!GisSharpBlog.NetTopologySuite.Operation.Buffer.BufferBuilder<NetTopologySuite.Coordinates.BufferedCoordinate2D>.Buffer(GeoAPI.Geometries.IGeometry<NetTopologySuite.Coordinates.BufferedCoordinate2D> g = {POINT (100 100)}, double distance = 10.0) line 145 + 0xd byte  C#
     NetTopologySuite.dll!GisSharpBlog.NetTopologySuite.Operation.Buffer.BufferOp<NetTopologySuite.Coordinates.BufferedCoordinate2D>.bufferOriginalPrecision() line 261 + 0x21 byte   C#
     NetTopologySuite.dll!GisSharpBlog.NetTopologySuite.Operation.Buffer.BufferOp<NetTopologySuite.Coordinates.BufferedCoordinate2D>.computeGeometry() line 232 + 0x7 byte   C#
     NetTopologySuite.dll!GisSharpBlog.NetTopologySuite.Operation.Buffer.BufferOp<NetTopologySuite.Coordinates.BufferedCoordinate2D>.GetResultGeometry(double distance = 10.0) line 217 + 0x7 byte  C#
     NetTopologySuite.dll!GisSharpBlog.NetTopologySuite.Operation.Buffer.BufferOp<NetTopologySuite.Coordinates.BufferedCoordinate2D>.Buffer(GeoAPI.Geometries.IGeometry<NetTopologySuite.Coordinates.BufferedCoordinate2D> g = {POINT (100 100)}, double distance = 10.0) line 113 + 0x12 byte   C#
     NetTopologySuite.dll!GisSharpBlog.NetTopologySuite.Geometries.Geometry<NetTopologySuite.Coordinates.BufferedCoordinate2D>.Buffer(double distance = 10.0) line 889 + 0x10 byte    C#
     NetTopologySuite.dll!GisSharpBlog.NetTopologySuite.Geometries.Geometry<NetTopologySuite.Coordinates.BufferedCoordinate2D>.GeoAPI.Geometries.ISpatialOperator.Buffer(double distance = 10.0) line 1300 + 0x10 byte    C#
     NetTopologySuite.Samples.Console.exe!GisSharpBlog.NetTopologySuite.Samples.SimpleTests.Geometries.PointSamples.Start() line51 + 0x1e byte  C#
     NetTopologySuite.Samples.Console.exe!GisSharpBlog.NetTopologySuite.Samples.SimpleTests.Program.SamplesTest() line30 + 0xb byte    C#
     NetTopologySuite.Samples.Console.exe!GisSharpBlog.NetTopologySuite.Samples.SimpleTests.Program.Start() line 21 + 0x7 byte    C#
     NetTopologySuite.Samples.Console.exe!GisSharpBlog.NetTopologySuite.Samples.SimpleTests.Program.Main(string[] args = {dimensions:[0]}) line 14 + 0x1a byte    C#

Developer
Jul 25, 2008 at 2:29 PM
This is the group for NTS-related questions?
http://groups.google.it/group/nettopologysuite