A Koop server for hosting GeoJSON data files with a Leaflet frontend that dynamically discovers and displays all available layers.
- Dynamic Service Discovery: Automatically scans and catalogs all GeoJSON files in the
provider-data
directory - Koop Integration: Serves GeoJSON data through Koop's FeatureServer API
- Interactive Map: Leaflet-based frontend that loads and displays all available layers
- Service Catalog: RESTful endpoint at
/catalog
that lists all available services
-
Install dependencies:
npm install
-
Start the server:
npm start
-
Open your browser to http://localhost:8080
/
- Interactive map interface/catalog
- Service catalog listing all available GeoJSON layers/file-geojson/rest/services/{layer}/FeatureServer
- Koop FeatureServer endpoint for each layer/file-geojson/rest/services/{layer}/FeatureServer/0/query
- Query endpoint for GeoJSON data
Simply add .geojson
files to the provider-data/
directory. The server will automatically discover and serve them through the Koop API.
npm run dev # Start with nodemon for auto-restart
The provider-data/
directory contains sample GeoJSON files:
- Points, polygons, lines, and complex geometries
- Various coordinate systems and metadata examples