-
Notifications
You must be signed in to change notification settings - Fork 19
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
Basedata import - support polygon and polyline files #697
Comments
was originally adapted from python code Updates #697
Currently fails on re-run on windows. need to test against CI. Updates #697
The DESTROY method appears to be overzealous at version 0.0601 Updates #697
Needed when sets of files use different cases Updates #697
Intersection process is very slow for some data sets, even when spatial indexes are set. This is of the order of minutes, where ArcGIS Pro takes a few seconds. One cause is multipart polygons with many vertices. Making these single part appears to help, but needs to be done outside the system for now. ogr2ogr has an explodecollections option to do this, but I cannot find it in the OGR API. Multi-resolution fishnets might be worth trying. If we only need presence/absence and basedata cells are square then we could also rasterise instead. |
Code was originally adapted from python. Updates #697
Speeds up one intersection from 9 minutes to 4 minutes Updates #697
Substantially speeds up the overlays. Updates #697
This way we test the SQL statement quoting from the previous commit. Updates #697
The proper version will be in a future release of Geo::GDAL:FFI. Updates #697
We now do both kinds of poly data. Updates #697
Faster approach for binary (presence only) case in cfbf327 Need to look at using this as the default. Could use special fields for area and length, as per current approach for x, y, z and m coords. If :area and :length are not used for any of the data fields then we don't need geometry properties for the sample counts. |
Fails a test a because the Intersects operator includes shared boundaries. Updates #697
This shrinks the polygons by a small amount to avoid cases where polygons touch at their edges, but otherwise do not intersect. Updates #697
We need two, and cannot have zero or negative spacings. Updates #697
Mark as fixed. |
The filter geometry does it for us. Not sure why I thought it just used the bounding box. A late update to #697
A reasonable amount of distributional data is provided as polygons, for example the IUCN range maps.
It should be possible to import these using a polygon intersection approach, with a fishnet polygon layer used to define the cells, and the coordinate taken from the fishnet centroids.
The fishnet could be dynamically updated to support multiple file imports, e.g. if two data sets have differing extents. This could be done using the bounding boxes.
http://www.gdal.org/classOGRGeometry.html#a83adb426e79958c90aecb418d91c765c
update 2018-11-29
The process can also work with polylines, so include them too.
2018-12-06, remaining work:
The text was updated successfully, but these errors were encountered: