-
Notifications
You must be signed in to change notification settings - Fork 3
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
GeoJSON bounding box parameter #3
Comments
Hi Russ, I had three follow up questions here, let me know in case I am misinterpreting something:
|
|
Also in many cases, at least in my experience, I have seen people working a lot with gpkg and even .shp. One more thing to brainstorm is whether it would make sense to have a more general parameter (e.g. shpfile, instead of geojson) that would allow user to put in a shapefile or a geojson file/geojson string, just a thought. Once read into R as an sf object, they all behave largely the same so extracting bbox should be straightforward. When it comes to validating those formats, that's something I'll have to look into, but I don't think it should be an issue, correct me if I am wrong. |
I agree with wanting to support multiple formats, thats interesting and heartening to hear that you see gpkg in the wild frequently. The complexity with these other formats is they can be in other projected coordinate systems, meaning the process in the openaq package would need to translate datums and reproject. GeoJSON on the other hands only supports WGS84 by spec, which greatly simplifies things. You are right once everything gets into something like |
Sticking with geojson for now, selecting first feature for bbox and warnings in case Multipolygons are allowed, sounds good. Yes, benchmarking will guide us about ideal thresholds/limits. The microbenchmark package is very handy for this. |
For functions that take a
bbox
parameter it would be nice to also include an optionalgeojson
field. This field would allow users to query against arbitrary polygons using the bounding box functionality under-the-hood.I see a couple options of how this can work:
bbox
The text was updated successfully, but these errors were encountered: