paleolimbot opened a new pull request, #166:
URL: https://github.com/apache/sedona-db/pull/166

   This exposes `configure_proj()` with the same pattern as the same function 
in the Python bindings.
   
   Unfortunately, we can't pull PROJ symbols from other R packages that link to 
PROJ because other R packages do a better job at hiding symbols from their 
linked dependencies. This is in general a good thing but it's inconvenient here 
since this pattern works so nicely in Python.
   
   We should also do the more usual pattern on Windows and MacOS of copying the 
data files on install but I'll do this in a separate PR. This is particularly 
important for Windows where there is no way for the usual user to just install 
proj.
   
   ``` r
   library(sedonadb)
   
   sd_configure_proj("homebrew")
   sd_sql("SELECT ST_Transform(ST_Point(1, 10), 4326, 3857) as geom")
   #> ┌──────────────────────────────────────────────┐
   #> │                     geom                     │
   #> │                   geometry                   │
   #> ╞══════════════════════════════════════════════╡
   #> │ POINT(111319.49079327357 1118889.9748579594) │
   #> └──────────────────────────────────────────────┘
   #> Preview of up to 6 row(s)
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to