Hello everyone. Can someone help me answer my question? If my statement is not clear enough, you can tell me and let me write clearly. Thanks.
As shown, the red Line A, Line B, and Line C are on one layer (one shapefile). The yellow arrowed Line X and Line Y are on another layer (another shapefile).
Now, I want to move Line B. At the same time, Line A and Line C do not move. However, since Line X and Line Y on another layer are connected to Line B, I need to let Line X and Line Y follow. In other words, I need to change the position of Point 1 on Line X and the position of Point 2 on Line Y.
I thought of an idea, I do not know whether it is feasible, or which interface functions should be used.
(1) According to Line B, I get the line buffer. (2) Then, according to the layer where Line X and Line Y are located, perform intersection analysis with the buffer to obtain Point 1 and Point 2. (3) Finally, use the Shape.put_XY () function to move the positions of Point 1 and Point 2.
I don’t know if this method is feasible. If feasible, what are the interface functions used in this process? If it is not feasible, are there other better solutions? Because I see that all geoprocessing is processed in units of Shapefile, not in units of Shape. Line B and Line X in the figure are shapes, not a shapefile.
https://www.mapwindow.org/documentation/mapwingis4.9/group__shapefile__geoprocessing.html
Thanks.