We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
library(dplyr) library(duckdbfs) load_spatial() pad_tract = open_dataset("https://minio.carlboettiger.info/public-biodiversity/pad-us-4/pad-by-tract.parquet") pad_tract |> select(STATE, FIPS, geom) |> filter(STATE == State) |> distinct() |> mutate(geom = st_transform(geom, "EPSG:4326", "EPSG:3857")) |> head() |> to_sf()
all geom points are INF!
But fine with sf:
pad_tract |> select(STATE, FIPS, geom) |> filter(STATE == State) |> distinct() |> to_sf(crs = "EPSG:4326") |> mutate(geom = st_transform(geom, "EPSG:4326", "EPSG:3857")) |> mutate(area = st_area(geom)) |> summarise(total = sum(area))
The text was updated successfully, but these errors were encountered:
Duckdb needs always_xy := true when going to/from 4326, as per docs, https://duckdb.org/docs/extensions/spatial/functions.html#st_transform, but not easy to accomplish this in the R Code translation.
Sorry, something went wrong.
library(dplyr) library(duckdbfs) load_spatial() pad_tract = open_dataset("https://minio.carlboettiger.info/public-biodiversity/pad-us-4/pad-by-tract.parquet") x = pad_tract |> select(STATE, FIPS, geom) |> filter(STATE == "Rhode Island") |> distinct() |> mutate(geom = st_transform(geom, "EPSG:4326", "EPSG:3857", sql("always_xy := TRUE") ) ) |> to_sf()
No branches or pull requests
all geom points are INF!
But fine with sf:
The text was updated successfully, but these errors were encountered: