Skip to content

Instantly share code, notes, and snippets.

View mjcull's full-sized avatar

Matt Cull mjcull

View GitHub Profile
# 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)
@mjcull
mjcull / read_landXML.R
Created September 23, 2024 20:20 — forked from muschellij2/read_landXML.R
try reading in landXML in R
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)) {