Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to edit a shapefile? I am working on maps using ocx.
Posted
Updated 1-Apr-10 16:50pm
v2

You will have better luck finding an OCX message board. You might strike lucky and find someone here that has used the same API you are using, but it is much more likely on a dedicated board.
Googling "OCX shapefile" yeilds plenty of results to get started.
 
Share this answer
 
First, I'm not sure why you're using ocx to edit shapefiles. Obviously, you can, but that's not a normal method. You can use Windows Forms to do the same thing.

If you want to know how to edit shapefiles, (assuming you mean a .shp file), you need to look at ArcObjects. You can start here[^].

ArcObjects are incredibly complex and you really have to understand the interfaces in order to get the most out of it.

If you are brand new, it's a steep learning curve. I would suggest buying the two volume Exploring ArcObjects. Even though it was written for an earlier version of Arc, the majority of the information is the same and gives you a lot of good examples of how to use the objects.
 
Share this answer
 
Searching through the internet for reading and editing a shapefile, i came accross this post. Unfortunately, there seems to be not much information for the question. Thought, i would update with some usefuly information.

Like mentioned above, ArcObjects do provide the full feldge functionality for reading and editing the shapfile, but unfortunately, its a licenced software and not many can afford to utilize its functionality.

Here are some opensource tools which provide an easy way of reading and editing the shapefile:

SharpMap c# OpenSource library for both Web and Desktop - http://sharpmap.codeplex.com/[^]


MapWindow - http://www.mapwindow.org/[^]

DotSpatial C# Opensource library (Extended Library version of MapWindow) : http://dotspatial.codeplex.com/[^]

Net Topology Suit (NTS) has bindings for C#: https://code.google.com/p/nettopologysuite/[^]

Shapelib has C# bindings for Shapefile
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900