Closed GoogleCodeExporter closed 9 years ago
This is by design if you use CoordinateArraySequenceFactory to create your
points.
You need to use DotSpatialAffineCoordinateSequenceFactory to circumvent
creation of PointZM shapefiles.
see:
http://code.google.com/p/nettopologysuite/source/browse/trunk/NetTopologySuite.S
amples.Console/Tests/IO/ShapefileWriteTest.cs
Original comment by felix.ob...@netcologne.de
on 22 Jan 2014 at 3:58
Thanks for the quick response felix. I have corrected the code and attached it
as a reference.
Using the NetTopologySuite.Geometries.Implementation.DotSpatialAffineCoordinateSequenceFactory.Instance allowed me to create the GeoAPI.Geometries.ICoordinateSequence by setting the size and ordinates CSFactory.Create(1, GeoAPI.Geometries.Ordinates.XY). Then I was able to set the values of the ordinates using the ICoordinateSequence.SetOrdinate(). Once the sequence was setup, I used the GeoAPI.Geometries.IGeometryFactory to create the IGeometry point using the sequence.
Now the exported shapefile is of the correct shapetype and dimension.
Thanks again for the assist.
Original comment by aerokne...@gmail.com
on 22 Jan 2014 at 6:02
Attachments:
Hello,
I was looking for the same code but this is not working for me. The shapefile
get created but doesen't get open with arcgis or not get added to mapguide
maestro.
Original comment by shraddha...@gmail.com
on 9 Dec 2014 at 9:38
Original issue reported on code.google.com by
aerokne...@gmail.com
on 22 Jan 2014 at 3:09Attachments: