Closed martinfleis closed 3 years ago
i can also imagine an analogous case where you have two datasets digitized from different sources, where one version is 'correct' but the other has useful data that you need to transfer to the other polys without needing to reapportion it. (I remember hand-digitizing some school boundary maps and manually entering some data points when i worked at a non-profit a few years ago, and now that data could be transferred to the new canonical boundaries released through other channels). Right now this is often done crudely through, e.g. the representative_point
, but this max area method would often be preferable in these situations
all that to say i see the value in this and i think it makes sense in tobler
, though i'm not 100% on where exactly, and what it should be called
I think this would nicely expand the functionality available to the users. So +1.
I have a function which links variables from one df to the other based on the largest intersection (which of the geometries in
source_df
has the largest area when intersected with geometry intarget_df
). Though it is not as fancy as the rest of Tobler, it may be useful in some cases (like when you have almost the same geometries in both - like tessellation vs parcels).Do you think it would make sense to have it in Tobler? Happy to do a PR.
cc @darribas