Last active
January 11, 2020 11:55
-
-
Save jeroen/0fe9e9667491804108472b3ace3cae2c to your computer and use it in GitHub Desktop.
serialize flatgeobuf with V8, https://twitter.com/TimSalabim3/status/1215949042888462336
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(V8) | |
library(mapview) | |
library(geojsonsf) | |
ct$source("https://cdn.jsdelivr.net/npm/[email protected]/dist/flatgeobuf-geojson.min.js") | |
ct$source("https://cdn.jsdelivr.net/npm/[email protected]/lib/encoding.min.js") | |
json = sf_geojson(franconia) | |
ct$call('flatgeobuf.serialize', JS(json)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment