-
Notifications
You must be signed in to change notification settings - Fork 0
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
find a clever way of connected component labelling for vector data #2
Comments
I am going to take a look at it now. One suggestion though - I think we should avoid naming an example object "landscape" again. |
😆 You are totally right, a bad habitat that caused many headaches. The function is a bit rough, needs definitely a bit of tweaking - was just a proof of concept for us that it could work similar. I was following this issue here: ... and the labeling works quite fine ( btw to keep you in the loop: We have a student working on the vector metrics and despite being not that familiar with R (she read geocompation with R - and her level afterwards was incredible 👍 ) she has done an awesome job so far - she finished all the metrics on patch level with vectors. |
Ok, I think I understand the code now @marcosci. I will try to work on cleaning it today/tomorrow. |
👍 Thanks Jakub, no rush! |
http://postgis.net/docs/using_postgis_dbmanagement.html - search for the "(j-m) cannot be represented as single POLYGONs" phrase. To expand on this topic:
|
OK, thanks for explaining! simple features are still here and there a little struggle for me. This basically means that we need to be very carefull what we treat as patch then - if you look at: https://github.com/marcosci/vectormetrics/blob/master/R/vm_p_area.R ... I thought that the most logical input would either be a sfc with a multipolygon for each class, or single polygons for each patch of a class. Hence, when we would cast the object to a polygon, we would end up with the same structure. But it makes sense now, that this was a rather naive view ... Need to think about that 👍 |
No description provided.
The text was updated successfully, but these errors were encountered: