Hi Stefan,
> any idea what is going wrong?
>
> I attach a jml file with 2 linestrings.
> I wish to polygonize them with receiving 2 polygons. However, the
> polygonization function and the planar graph function return only one
> polygon.
> I assume that the problem is, that i would need to split the outer
> linestring so that the dataset contains 3 linestrings? How to do that
> automatically? I could not find the appropriate function in
> (Open)JUMP. (Do I need to write a plugin?)
Anything you need is in OpenJUMP.
Your dataset just miss one node.
With noder (new plugin), add intersection, choose snap rounding with two
decimals.
The process adds exactly 1 point to your dataset (from 1116 to 1117 points)
After that, two click with the new "Create Polygon from Closed Area"
should do the trick.
(I think polygonize needs your linestrings to be split first, what you
can also do with new noder)
One drawback is that all your coordinates are changed (rounded to
nearest centimeter grid node)
Another solution would be to use Extension > Topology > Network cleaning
Unfortunately, the plugin creates a spike (I think this is not possible
to get something
cleaner except using snarounding method as for the noder plugin)
Micha�l
>
> Note, if I actually use the Line Noder with Snap Rounding (2 Decimals)
> I get lots of very short line segments, but from those the wished 2
> polygons. weired. Hence, do I have a precision problem?
>
> cheers,
> stefan
>
> PS: for the context: I am trying to extract the sidewalks from a line
> dataset. The outer line is the lip of gutter of a road and the inner
> line is the back of walk for a sidewalk - for one neighborhood block
> (as we have a grided street network).
>
> -- You received this message because you are subscribed to the Google
> Groups openjump-users group. To post to this group, send email to
>
openjum...@googlegroups.com. To unsubscribe from this group, send
> email to
openjump-user...@googlegroups.com. For more
> options, visit this group at
>
https://groups.google.com/d/forum/openjump-users?hl=en