-
Notifications
You must be signed in to change notification settings - Fork 33
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
editFeatures on user defined background map #36
Comments
e6ba857 is a first trial for user defined bg map provision |
This makes very good sense and aligns with Off topic, but it seems |
I think we can also think about another approach here. Using |
We could revisit the idea of |
Also, I think that the principle difference between |
In any case, we should enable user supplied maps |
Would you like me to extend the functionality in |
|
For now, I will add logic to get |
Don't do this since it crashed my session, but I just discovered issue in case of |
What's the issue? I had no problems with this example (with a fresh |
What happens when you |
This looks fine to me. Identical to |
@timelyportfolio Is this still causing problems on your side? |
I guess my machine was just tired that day, since I no longer get problems. However, should we attempt to handle the case where Honestly, I sort of like the duplicated points from the example above that we can use as reference as we edit, so maybe we just assume user intentionally duplicated. |
Yes, I don't think we should try to be smarter that necessary. And I am sure there will be cases where scenarios like this one are completely intentional. |
Ok, going to close. Please reopen if there are lingering unresolved issues. |
So, there are no lingering issues somewhere in mapview regarding this? I'd like to submit mapview to CRAN very shortly (possibly tonite) but want to make sure that mapedit will work as expected with that version. |
I think it is good to go. After mapview up on cran then we can focus on mapedit cran submission. I have been running checks on eac change for the last two weeks so hopefully no surprises. |
That was my thinking. I just submitted to winbuilder, so let's see... |
Consider the following scenario:
The centroid lies outside the polygon which is correct in mathematical terms (at least in the current implementation of
sf::st_centroid
but there are cases where the user would like this point to lie inside the polygon. Obviously, mapedit could provide a nice way for a quick-fix here by enabling the user to freely drag the point to a location inside the polygon. Even though the manually adjusted position may not exactly be the centroid, it may well be a better approximation of it than a point lying outside the polygon.To achive this, of course, the user would need to be able to use
editFeatures
with a user defined background map including the polygon. Hence, I think we need to change the logic ofeditFeatures
away from argumentplatform
towards argumentmap = NULL
so that if NULL, we use set up a map usingmapview(x)
and else we use the supplied map.I think we should follow this strategy also for
selectFeatures
as also then there may be scenarios where the user needs some sort of background reference features other than a map or satellite view (e.g. a raster image) to aid feature selection.@timelyportfolio thoughts?
The text was updated successfully, but these errors were encountered: