This file contains hidden or 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
| # DuckDB Vector Tiles with mapgl Example | |
| # This script demonstrates how to serve vector tiles from DuckDB using ST_AsMVT() | |
| # and display them in a mapgl map using httpuv | |
| library(mapgl) | |
| library(duckdb) # Requires the latest DuckDB version (>= 1.4.0) | |
| library(httpuv) | |
| library(sf) | |
| library(duckspatial) | |
| library(tigris) |
This file contains hidden or 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(rvest) | |
| library(xml2) | |
| library(sf) | |
| library(geojsonio) | |
| url = "http://www.landxml.org/webapps/landxmlsamples.aspx" | |
| url_file = paste0("http://landxml.org/schema/LandXML-2.0/", | |
| "samples/Carlson%20Software/nunosurf.xml") | |
| xml_file = file.path("~/Downloads", basename(url_file)) | |
| if (!file.exists(xml_file)) { |