Skip to content
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

chore: Update vendored geoarrow-c #35

Merged
merged 3 commits into from
Feb 4, 2024
Merged

Conversation

paleolimbot
Copy link
Collaborator

Fixes #34 (by updating vendored geoarrow-c with the fix).

library(httr2)
library(serdesri)
requireNamespace("geoarrow")
#> Loading required namespace: geoarrow
furl <- "https://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services/USA_Counties_Generalized_Boundaries/FeatureServer/0"
url <- paste0(furl, "/query?where=1=1&outFields=*&f=json&resultRecordCount=100")
req <- httr2::request(url)
resp <- httr2::req_perform(req)
json <- httr2::resp_body_string(resp)

res <- parse_esri_json_raw_geoarrow(resp$body, 2)
tibble::as_tibble(res)["geometry"]
#> # A tibble: 100 × 1
#>    geometry                                                                
#>    <grrw_vct>                                                              
#>  1 <POLYGON ((-86.8206699 32.3473096, -86.8144596 32.3704109, -86.8457109 >
#>  2 <POLYGON ((-87.9730898 31.1648225, -87.9371011 31.1734568, -87.9414731 >
#>  3 <POLYGON ((-85.7433728 31.6262405, -85.7172048 31.6792371, -85.7007416 >
#>  4 <POLYGON ((-87.4198556 33.0117731, -87.3153228 33.0120969, -87.3141403 >
#>  5 <POLYGON ((-86.9679945 33.8604547, -86.9266653 33.8722758, -86.9191046 >
#>  6 <POLYGON ((-85.4113957 32.1555123, -85.411365 32.1454725, -85.4270439 3>
#>  7 <POLYGON ((-86.4491205 31.971232, -86.4524535 31.8549786, -86.4432903 3>
#>  8 <POLYGON ((-85.793527 33.5634267, -85.7931459 33.5948208, -85.9938349 3>
#>  9 <POLYGON ((-85.5896286 32.7313467, -85.5947808 33.114252, -85.2335029 3>
#> 10 <POLYGON ((-85.4165672 34.0869204, -85.3957378 33.9598293, -85.4861867 >
#> # ℹ 90 more rows

Created on 2024-02-04 with reprex v2.0.2

@paleolimbot paleolimbot merged commit 7065a18 into geoarrow:main Feb 4, 2024
11 checks passed
@paleolimbot paleolimbot deleted the clangd branch February 4, 2024 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support RecordBatch with geoarrow
1 participant