-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Operations: merge #435
Comments
This would be awesome. Also, it should work for merging a point and an area (just merges the point tags to the area). |
Looking for options here. geoscript-js is written in java. jsts is big (90KB) https://github.com/bjornharrtell/jsts (why oh why do people write geo javascript in eclipse) spatial_query might be a good place to reference the algo. |
I guess we were thinking on different lines about how this would work. I thought it would be something like, if the selection is:
|
It's currently limited to merging (joining) exactly two lines. Fixes #370.
@springmeyer pointed me to http://www.angusj.com/delphi/clipper.php, and from there I found http://sourceforge.net/projects/jsclipper/. Currently looking at stripping out 99% of the code from that. |
Merging ways mess up the tags: concatenating tags with ; is not the solution. |
@yvecai Merging ways is pretty important. Ways that should be contiguous are often found to be disconnected, for a variety of reasons, and merging them is often the first step to doing further cleanup. For an extreme example, check out what happened with the TIGER import in Hawaii: just about every road is in multiple (sometimes hundreds of) pieces. I'd hate to have to do cleanup there without being able to merge them. Could you elaborate on the problems with semicolon concatenation and any solutions you see? |
P2's (imperfect but good enough) solution is a little warning triangle and red text whenever it finds a tag containing a semicolon, absent a list of keys where it's ok. |
@jfirebaugh, I was never exposed to Tiger data, but I don't doubt that in that case merging is useful. I would say that adding manually a semicolon should not trigger a red sign (at least not more than a new and un-documented value). I'm not sure if it really fit ID's target, nor if it the good stage to go that deep. |
@jfirebaugh A lot has moved here. What's left? |
Main things:
I'm hoping that d3/d3-plugins gets a polygon union algorithm we can use for this. Cleaning up jsclipper was not looking fun. I'll move the questions about a tag reconciliation UI to a separate issue. |
I'm sceptical about merging non-intersecting areas. Data consumers will tend to break these MPs down into separate areas and I think they'll only add confusing when the MP model is abstracted away. |
Sorry for #3074 didn't find this tread when research... |
Hi, I think this is the right place to mention a problem we had yesterday. |
@egonzale This is exactly what I was asking for in my previous answer :) Hope this will be realised. |
Hi @egonzale and @homersimpsons, yes I'd really like to see iD have an area merge tool. Ideally my plan is to bring in turf's polygonal operations like This is something that the Turf team could use help with and would benefit not just iD but a lot of projects. Maybe someone whose skills lie at the intersection of JavaScript and computational geometry could move this across the finish line (paging dr. @paulmach?). |
If there is a more relevant open issue I've not found it, but apparently it is possible to merge a split roundabout back into a single way without even a warning about the 132 route relations that pass through the roundabout. Edit: Or at least didn't warn in May 2019 now I've checked the date of the changeset. |
@EdLoach That sounds like something more specific than this. Feel free to open a new issue for it. |
Are there some news about merging two areas into one area (not multipolygon)? A lot of people are making not needed multipolygons instead of one area. Maybe recommend them using JOSM and function "Join overplapping areas" (Shift+J)? ;) |
I agree with @Filip10's comments. I wanted to merge two adjacent shops recently that had been combined into one (in the real world), and it took me a while to realise it was creating a multipolygon. I would have expected it to just join the two areas. I ended up having to go and do it in JOSM. |
Same here. I would love to see an option to "really merge two areas" and not create a multipolygon with them. I am pretty sure it was working "correctly" before in ideditor. This feature is really essential for me. Have a nice day 👍 |
what is needed for this to be implemented? it's a really sorely missing feature imo |
This should be a 'unified merge' I think, which works for (uses different algorithms) for lines & for areas, but has the same UI.
The text was updated successfully, but these errors were encountered: