create/update shapefile sharpmapcf

Topics: CompactFramework, Italiano, SharpMap v0.9 / v1.x
Jun 30, 2009 at 7:39 PM

Hi,

 

how can i update/create a shapefile with compact framework and sharpmapcf? i have to select a point in a map and add in a shapefile a new point record with the coordinate that i've select

 

thank you

Coordinator
Jul 1, 2009 at 10:18 AM

Hi ladome1, you may be able to do this using NTS, however a lot of people find that the shapefile cannot be read by other gis software. It is likely to be a similar issue to http://sharpmap.codeplex.com/WorkItem/View.aspx?WorkItemId=22892 so you may be able to fix it.. hth jd

Jul 1, 2009 at 2:24 PM

thank you for the answer...i can use NTS with sharpmapcf 0.9? I try to compile sharpmapcf 2.0 from assembla svn, but i got 6 error  in presenterslayers like this:

Error      Expected class, delegate, enum, interface, or struct  

thanks

Coordinator
Jul 1, 2009 at 3:08 PM

Hi ladome1, I dont know what state SharpMap cf 2 is in - last I heard of it was quite a long time ago.. I meant NTS v1.7.x http://nettopologysuite.googlecode.com hth jd

Jul 1, 2009 at 6:02 PM

i have downloaded and successfully compiled the pocketTopologySuite, and there are classes for edit shapefile, but i don't find any code example to do this. These classes are shapefilewrites and Shapewriter...can you post some example?thanks

Coordinator
Jul 1, 2009 at 10:28 PM

Assuming PocketTopologySuite doesn't deviate too far from NTS the test in NetTopologySuite.Samples.Console.Tests.IO.ShapefileWriteTest may help you get started hth jd