hypertidy / vapour

GDAL API package for R
https://hypertidy.github.io/vapour/
83 stars 9 forks source link

reproj geometry on input (very unstable, WIP) #182

Open mdsumner opened 1 year ago

mdsumner commented 1 year ago

It works, it's slow, it crashes. it doesn't check the source or target, haha next year ...

https://github.com/hypertidy/vapour/tree/reproj-geom

f <- system.file("gpkg/nc.gpkg", package = "sf", mustWork = TRUE)

srs <- "+proj=laea +lon_0=-100"

x <- vapour:::dsn_read_transform_geom_ij(f, 0, "", 0, "wkb", c(1, 10), srs)

library(wk)
plot(wkb(x))

image

mdsumner commented 1 year ago

have a look at mdsumner/osgeo.gdal that's way easier