observable-framework-lib-shapefile

Convert ESRI shapefiles into GeoJSON FeatureCollection objects for Observable Framework projects.

Updated Feb 28, 2026
One-click install
npx skills add https://github.com/spqw/skill-observable-framework --skill observable-framework-lib-shapefile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: observable-framework-lib-shapefile
Source: https://github.com/spqw/skill-observable-framework/tree/main/skills/observable-framework-lib-shapefile
Command: npx skills add https://github.com/spqw/skill-observable-framework --skill observable-framework-lib-shapefile

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables the use of ESRI shapefiles, a common geospatial data format, within Observable Framework projects by converting them into GeoJSON.

Core Features & Use Cases

  • Shapefile Conversion: Converts .shp and .dbf files into GeoJSON FeatureCollection objects.
  • Geospatial Visualization: Facilitates the use of libraries like D3, Observable Plot, and Leaflet for mapping geospatial data.
  • Use Case: Load geographical boundaries from a shapefile to display them on an interactive map within an Observable Framework application.

Quick Start

Use the observable-framework-lib-shapefile skill to read the attached 'ne_110m_land.shp' and 'ne_110m_land.dbf' files.

Frequently Asked Questions about observable-framework-lib-shapefile

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

FAQPage Schema
How do I read ESRI shapefiles in Observable Framework?

To read ESRI shapefiles in Observable Framework, convert the `.shp` and `.dbf` files into GeoJSON FeatureCollection objects. This allows you to load geographical boundaries and attribute data directly into your Observable projects.

How do I convert a shapefile to GeoJSON for mapping?

Converting a shapefile to GeoJSON for mapping involves extracting geometry and attribute data from `.shp` and `.dbf` files. The resulting GeoJSON FeatureCollection can then be used directly for geospatial visualization tasks.

Can I use D3 or Observable Plot to visualize shapefile data?

Yes, you can use D3, Observable Plot, and Leaflet to visualize shapefile data. The shapefile must first be converted into GeoJSON format, which these libraries natively support for rendering interactive maps and spatial data.

What's the best way to load geographic boundaries from a shapefile in Observable?

The best way to load geographic boundaries from a shapefile in Observable is to parse the `.shp` and `.dbf` files into a GeoJSON FeatureCollection. This standard format easily integrates with mapping libraries for display.

Do I need both .shp and .dbf files to extract shapefile attributes?

Yes, you need both `.shp` and `.dbf` files to extract shapefile attributes. The `.shp` file contains the geometry, while the `.dbf` file stores the attribute data, and both are converted together into GeoJSON.