r-freestiler

Generate PMTiles vector tilesets from spatial datasets using R freestiler.

19|1|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/arthurgailes/awesome-r-skills --skill r-freestiler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r-freestiler
Source: https://github.com/arthurgailes/awesome-r-skills/tree/main/skills/r-freestiler
Command: npx skills add https://github.com/arthurgailes/awesome-r-skills --skill r-freestiler

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the conversion of large spatial datasets into efficient PMTiles vector tilesets, making them suitable for web-based mapping and visualization.

Core Features & Use Cases

  • PMTiles Generation: Converts sf objects, files, or SQL queries into .pmtiles format.
  • Large Dataset Handling: Optimized for datasets exceeding 10k features or memory limits, using streaming and efficient engines.
  • Visualization Integration: Facilitates easy visualization with tools like mapgl and local serving.
  • Use Case: You have a GeoParquet file with millions of points that is too large to load directly into a web map. Use this Skill to generate a PMTiles file that can be efficiently served and displayed.

Quick Start

Use the r-freestiler skill to convert the attached file 'large_data.gpkg' into 'output.pmtiles'.

Frequently Asked Questions about r-freestiler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a large GeoParquet file into PMTiles for web mapping?

To create multi-layer PMTiles from spatial data, the R freestiler package supports generating multiple layers within a single tileset. You can process sf objects, file paths, or DuckDB SQL queries while specifying various zoom levels for optimized web map rendering.

When do I need to generate PMTiles vector tilesets from spatial data?

You need PMTiles vector tilesets when rendering large spatial datasets in web maps. Converting sf objects, GeoPackage files, or DuckDB SQL query results into PMTiles optimizes the data for fast visualization and static hosting.

Can I use DuckDB SQL queries to generate PMTiles files?

Yes, you can use DuckDB SQL queries as input to generate PMTiles files. This approach allows you to filter and process spatial data directly, converting the query results into vector tilesets optimized for web map visualization.

What is the best way to handle large spatial datasets that exceed memory limits for web visualization?

Using streaming conversion to generate PMTiles is the best way to handle large spatial datasets exceeding memory limits. This method processes data incrementally, creating optimized vector tilesets suitable for efficient web map rendering and visualization.

Does generating vector tiles from spatial data support sf objects directly?

Yes, the process supports sf objects directly as an input format. You can seamlessly convert sf objects, GeoParquet files, or DuckDB SQL query results into PMTiles vector tilesets for efficient web map visualization.