I am applying your library in order to adjust attribute values in an existing polygon shapefile.
What is the best way to approach this? Here is my code so far. However it does not work and returns an error saying the file is already in use by another process. Also if I change the results filename I get an error: "value cannot be null, parameter name: Geometry"
Dim ShapeReader As New NetTopologySuite.IO.Esri.Shapefiles.Readers.ShapefilePolygonReader("full.shp")
Dim myFeature As NetTopologySuite.Features.Feature
Dim Deleted As Boolean
While ShapeReader.Read(Deleted, myFeature)
myFeature.Attributes.Item("GFEIDENT") = "new value"
End While
Dim options As New ShapefileWriterOptions(ShapeReader)
Using myWriter As New NetTopologySuite.IO.Esri.Shapefiles.Writers.ShapefilePolygonWriter("full.shp", options)
myWriter.Write()
End Using
Hi all,
I am applying your library in order to adjust attribute values in an existing polygon shapefile. What is the best way to approach this? Here is my code so far. However it does not work and returns an error saying the file is already in use by another process. Also if I change the results filename I get an error: "value cannot be null, parameter name: Geometry"
Thanks in advance for your help! Siebe Bosch