Hi,
Is there any way to identify the nodes/segments shared by multiple
geometries. So that can be marked for skipping in microsegment removal.
Not automatically. You will have to code it yourself (maybe you can find
some hints in existing plugins, but I dont have precise example in mind).
To find shared nodes, I would procede as follow :
create an IndexedFeatureCollection
for each feature f1
for each coordinate c1 in f1
search features f2 intersecting this coordinate bounding box
(thanks to IndexedFeatureCollection)
eliminate features f2 with if f2.fid <= f1.fid
if a coordinate c2 of f2 = c1
c1 is shared between f1 and f2
It's a bit more difficult for segments because you want to matche
segment c1-c2 with c2-c1, so a simple equals will not be sufficient.
Michaƫl
Thanks
----- Do we need to mark all those depended segment manually. if yes
then please suggest the method.
In order to keep topological relations, the plugin will never remove
end nodes. But as you noticed, it is not enough to keep all
topological relations between features. It only preserves the topology
of a planar graph. To preserve topology in a more general way, we
would need
- to decide which features we want to preserve the topology (those
of the layer, those of choosen layers, those of all layers ?)
- to mark all coordinates shared by two features
- to process micro segments with different options like :
* remove only unmarked coordinates or
* if a marked coordinate is removed, reflect the change on
all features sharing the same coordinate.
------------------------------------------------------------------------------
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
------------------------------------------------------------------------------
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel