Editing Shapefile [message #69778] |
Sun, 14 February 2010 02:49 |
Adakite
Messages: 1 Registered: February 2010
|
Junior Member |
|
|
Hi Folks.
I creat an little app under IDL (ver. 7.0.1) able to open and display
a DTM (Digital Topo Model) as a countour map. No big deal !
When running my program, I have a window with my countour map
displayed exactly in the same way ENVI does.
In addition, I wrote a procedure inside the same program, that
outputs my countour map into a shapefile and saves it (e.g., *.shp.
Piece of cake !
So, What I am trying to do now is quiet tricky, I know! I would like
to open and display this shapefile, containing elevation information
(this is already done actually), so as to edit it by two ways:
(1) able to change "by hand" the elevation attribute of each curve
inside the shapefile displayed (e.g. when I select with mouse a
specific coutour line, get a text box pop-up with elevation attribute,
and the edit it and save.
(2) still mouse selected countour line in this shapefile, so as to
obtain discret points lying along the countour line. Then I once I
selected one of these points I would like to move it on the map
(meaning that the countour line will be reshaped/remodeled).
I am prettry srure that all of these features are possible, as I for
instance drawing stuff on a image is possible under IDL (I already
know how to do that). So my question is specifically focused on how to
select an object from contour line (or shapefile) in a window. Then I
will focus on how to move this object. And then how to save it into
shapefile of anything else.
The aim of this program is thus a map editor. I know that such kind of
app still exists but, this is actually just a piece of a more wide
featues of my app, which is able to handle a lot of others stuffs. But
this is another story.
Anyways, thanks a lot for any idea/feedback
Cheers,
A.
|
|
|