Skip to content
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

Support drawing polygons with cutouts #123

Open
mstenta opened this issue Jun 23, 2021 · 2 comments
Open

Support drawing polygons with cutouts #123

mstenta opened this issue Jun 23, 2021 · 2 comments

Comments

@mstenta
Copy link
Member

mstenta commented Jun 23, 2021

This came up in a recent conversation...

It's possible to represent a polygon in WKT that has another polygon cut out from it. For example, see the second polygon example on https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry

POLYGON ((35 10, 45 45, 15 40, 10 20, 35 10),
(20 30, 35 35, 30 20, 20 30))

It would be great if the farmOS map edit control had the ability to produce these kinds of polygons.

Currently, if you draw two polygons, it will output a GEOMETRYCOLLECTION of multiple POLYGONs.

I'm not sure how this would work, in terms of the button controls... open to ideas!

@gbathree
Copy link
Contributor

Yes! This is an issue that we have, it's also really important for certification or environmental service market applications (carbon sequestration, etc.) because a precise measure of the 'worked' field is important.

While there are several options... I think it's just a separate UI element. I'd argue that without that cutout image (see below for example) users are never going to figure out (with lots of ineffective explanatory text) what 'cutout' means.

In SurveyStack, we allow survey creators to turn on or off the UI elements... so in our case, a survey creator could just turn off cutouts if they wanted, or leave it on if they could handle it in however they were managing it.

Screenshot from 2021-06-23 15-41-08

That's my two cents!

@symbioquine
Copy link
Collaborator

I'm not totally convinced it it would be preferable, but in theory another way this could work would be allowing both/multiple polygons to be selected with the edit tool and - if they touch/intersect - show some boolean operations. e.g. "merge", "difference", "intersection", etc.

The big advantage of this strategy is the feature could always be there, but only advanced users would know how to get to it. i.e. you'd have to hold shift and select multiple intersecting features before those buttons would show up. Obviously it could still be documented, but it wouldn't need to take up screen space all the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants