-
Notifications
You must be signed in to change notification settings - Fork 6
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
Handling of geoparquet when not loading geoarrow
#28
Comments
First, just a note that a rewrite is in progress and should be available in January! The new package currently lives here: https://github.com/geoarrow/geoarrow-c/tree/main/r/geoarrow but may get moved to a less confusing location (like geoarrow/geoarrow-r). I'm just in the process of working with the extension type registration ( geoarrow/geoarrow-c#85 ) so this is well-timed! The issue of automatic loading is a tricky one...the arrow package maybe shouldn't load arbitrary packages (as in, if we somehow encoded "r_pkgs" in the metadata or something), and while it could special-case the geoarrow package when this it is on CRAN, special-casing things can become unwieldy. In any case, the first step is geoarrow on CRAN 🙂 ...I'm working on it! |
Hi Dewey + Team! Trying to play with geoarrow for a project, but am not finding the new package you referenced. I clicked on the link above, but it just shows a "404 page not found" error. Hoping to use it in combination with |
@mrworthington This pull request suggests they were moved back to this repo 2 weeks ago: geoarrow/geoarrow-c#89 |
This is indeed the version that I'd like people to be using; however, it is missing the Development did start out in geoarrow-c, but ultimately I found that it made more sense to keep it on its own (hence, geoarrow-r!). |
Going forward, am I correct that we won't need to
|
If you are only reading/writing Parquet files in R (with geoarrow loaded) and/or Python (after If you need to read with GDAL or some other tool, I would recommend using
I think you might want |
Thanks for the info!
So it sounds like I'm using this to write parquet files to map with geoarrow/deck.gl layers (as opposed to pmtiles). The README says
Likewise, this post says
So I'm guessing I need to use
Yep, that fixed it! |
Yes! With proper conformance to the 1.0.0 spec. The 1.0.0 spec doesn't include GeoArrow as an encoding option - it's WKB only - and there's some debate over whether it should be there in the first place.
I actually have no idea. I think maybe |
First of all, thanks for this awesome work. It's been great to see the progress on all this :-)
In the example on the readme, you load a
.parquet
file that contains a geometry example. Since there is not a separate naming format/convention (e.g..geo.parquet
or.geoparquet
), I might not know that there is a geometry in there, so I just load arrow and open the dataset as normal. Looking at thegeometry
column would be confusing to me. This behavior differs whether I have the geoarrow package loaded or not.This issue might should be in the R
arrow
package, but I'm wondering ifarrow
should detect when there is a geometry column present and adjust behavior (the metadata is in there, so this information is known). For example, when callingcollect()
, should there be a warning that a geometry column is being collected and thatgeoarrow::st_collect()
might be the better option (as in #21)? Or a warning when opening a geoparquet withoutgeoarrow
loaded?The text was updated successfully, but these errors were encountered: