Skip to content

Commit

Permalink
Add US-NC boundaries
Browse files Browse the repository at this point in the history
- update readme
  • Loading branch information
cwhelchel committed Apr 9, 2024
1 parent 03e62b8 commit 7d06f22
Show file tree
Hide file tree
Showing 3 changed files with 424 additions and 6 deletions.
1 change: 1 addition & 0 deletions LayerData.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export default class LocData {
'US-NC': [
{ title: 'TOT NHT', file: '..\/US-common\/tot.geojson' },
{ title: 'AT', file: '..\/US-common\/at.geojson' },
{ title: 'PAD-US Fee', file: 'PADUS3_0Fee_StateNC.geojson' },
{ title: 'Parks', file: 'parks-US-NC.geojson' },
],
'US-ND': [
Expand Down
396 changes: 396 additions & 0 deletions public/data/US-NC/PADUS3_0Fee_StateNC.geojson

Large diffs are not rendered by default.

33 changes: 27 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,37 @@
# OpenLayers + Vite
# POTAMAP Online

Uses Node.js, openlayers, and Vite use this to get started
_Or POTAMAP openlayers_

npm install ol
Displays POTA park pins along with map boundaries from US government supplied GIS data. Namely the source is the [Protected Areas Database of the United States](https://www.sciencebase.gov/catalog/item/62226321d34ee0c6b38b6be3) (PAD-US)

## Building

Uses Node.js, openlayers, and Vite. With node.js installed, use this to get started:

$ npm install

To run the app use:

$ npm run start

## Notes
some maps are simplified using mapshaper:

Some geojson boundary files need be tweaked with a GIS tool called mapshaper

Install with `npm install -g mapshaper`


Then the maps can simplified (thus reducing the file size) using mapshaper:

mapshaper .\PADUS3_0Designation_StateNV.geojson -simplify dp 30% keep-shapes -o format=geojson .\simple.geojson

To merge some geomoerty in geojson files. 1st output the properties into a csv file
### Merging park shapes

To merge some geomoerty in geojson files, first output the properties into a csv file:

mapshaper .\simple.geojson -o simple.csv

Copy and paste the name column (header+data) into a new column and rename it MERGED
Edit the csv file. Copy and paste the name column (header+data) into a new column and rename it MERGED

Then run the following command to join the shapes by their name and dissolve the inner
geometry (it also keeps the original properties)
Expand All @@ -30,6 +49,8 @@ Dissolving trails created from potamap_tool:

mapshaper .\safe.geojson -dissolve "NAME,NAME_EXT" -o format=geojson .\safe2.geojson

This should keep the NAME property and NAME_EXT property in tact.

## Original setup instructions

This example demonstrates how the `ol` package can be used with [Vite](https://vitejs.dev/).
Expand Down

0 comments on commit 7d06f22

Please sign in to comment.