Skip to content

Commit

Permalink
use geojson-precision for fips
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperknot committed Apr 17, 2020
1 parent 3aa3934 commit e5a770d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 52 deletions.
2 changes: 2 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
set -e
source venv/bin/activate
use node
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12
4 changes: 4 additions & 0 deletions scripts/fips/shp2geo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ yarn shp2json $SHP/counties_500k/*.shp -o $GEOJSON/counties_500k.geojson --encod
yarn shp2json $SHP/counties_5m/*.shp -o $GEOJSON/counties_5m.geojson --encoding utf8
yarn shp2json $SHP/counties_20m/*.shp -o $GEOJSON/counties_20m.geojson --encoding utf8

yarn geojson-precision -p 3 $GEOJSON/counties_500k.geojson $GEOJSON/counties_500k.geojson
yarn geojson-precision -p 3 $GEOJSON/counties_5m.geojson $GEOJSON/counties_5m.geojson
yarn geojson-precision -p 3 $GEOJSON/counties_20m.geojson $GEOJSON/counties_20m.geojson

rm -r $SHP
58 changes: 6 additions & 52 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ keygrip@~1.0.3:
integrity sha512-/PpesirAIfaklxUzp4Yb7xBper9MwP6hNRA6BGGUFCgbJ+BM5CKBtsoxinNXkLHAr+GXS1/lSlF2rP7cv5Fl+g==

mapshaper@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/mapshaper/-/mapshaper-0.5.0.tgz#8de1c68a395b6c2f16a5e330db927a090857ef9d"
integrity sha512-Jq5R+Y4pSK7sa/ubfKmTeWJBkRegqoWqw2B+yTqG7eCxcCgTlwD9ahuLMgqEDBwicm4oTQYNvgEaU96jJ/1mZQ==
version "0.5.1"
resolved "https://registry.yarnpkg.com/mapshaper/-/mapshaper-0.5.1.tgz#b3e3ef10516b51185059ab57ee7d20f4416c90f4"
integrity sha512-KEbwucsDV9s8wXsrEwRiK3VfcO0/O+Z/6HbymbC8EXGKZwCmpJADdvDh0OcNFuspaIA4BmQTvST16hysGKk0Bw==
dependencies:
cookies "^0.7.1"
flatbush "^3.2.1"
Expand Down Expand Up @@ -275,9 +275,9 @@ [email protected]:
file-source "0.6"

prettier@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.3.tgz#9a06f0e94a51420e78b6925568b5bec72afe41ea"
integrity sha512-5qpBDBHO9fpE0zruKiTZm8Gxmz7kknO+WlQR/ivV+RMwgDw/WjOgmxLDn66MPrxq/WZPx/EgEZzh87xJO5E6Fw==
version "2.0.4"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.4.tgz#2d1bae173e355996ee355ec9830a7a1ee05457ef"
integrity sha512-SVJIQ51spzFDvh4fIbCLvciiDMCrRhlN3mbZvv/+ycjvmF5E73bKdGfU8QDLNmjYJf+lsGnDBC4UUnvTe5OO0w==

process-nextick-args@~2.0.0:
version "2.0.1"
Expand Down Expand Up @@ -391,52 +391,6 @@ then-request@^5.0.0:
promise "^8.0.0"
qs "^6.4.0"

topojson-client@3:
version "3.1.0"
resolved "https://registry.yarnpkg.com/topojson-client/-/topojson-client-3.1.0.tgz#22e8b1ed08a2b922feeb4af6f53b6ef09a467b99"
integrity sha512-605uxS6bcYxGXw9qi62XyrV6Q3xwbndjachmNxu8HWTtVPxZfEJN9fd/SZS1Q54Sn2y0TMyMxFj/cJINqGHrKw==
dependencies:
commander "2"

[email protected]:
version "3.0.0"
resolved "https://registry.yarnpkg.com/topojson-client/-/topojson-client-3.0.0.tgz#1f99293a77ef42a448d032a81aa982b73f360d2f"
integrity sha1-H5kpOnfvQqRI0DKoGqmCtz82DS8=
dependencies:
commander "2"

[email protected]:
version "3.0.0"
resolved "https://registry.yarnpkg.com/topojson-server/-/topojson-server-3.0.0.tgz#378e78e87c3972a7b5be2c5d604369b6bae69c5e"
integrity sha1-N4546Hw5cqe1vixdYENptrrmnF4=
dependencies:
commander "2"

[email protected]:
version "3.0.2"
resolved "https://registry.yarnpkg.com/topojson-simplify/-/topojson-simplify-3.0.2.tgz#8a2403e639531500fafa0c6594e8b0fadebc2c02"
integrity sha512-gyYSVRt4jO/0RJXKZQPzTDQRWV+D/nOfiljNUv0HBXslFLtq3yxRHrl7jbrjdbda5Ytdr7M8BZUI4OxU7tnbRQ==
dependencies:
commander "2"
topojson-client "3"

topojson-simplify@^3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/topojson-simplify/-/topojson-simplify-3.0.3.tgz#668de0ca7ab36797002087190c2222f938af2ab2"
integrity sha512-V+pBjLVzSQ3+hSOxBiV01OVXgFiCmMO8ia3huxKEyIMTC1ApQHBcdXdOqcQ6U2JJJD31TZduwY6KyF15R8sUgg==
dependencies:
commander "2"
topojson-client "3"

topojson@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/topojson/-/topojson-3.0.2.tgz#fcb927306c3e0fa76656fa58deed4555d2346fb4"
integrity sha512-u3zeuL6WEVL0dmsRn7uHZKc4Ao4gpW3sORUv+N3ezLTvY3JdCuyg0hvpWiIfFw8p/JwVN++SvAsFgcFEeR15rQ==
dependencies:
topojson-client "3.0.0"
topojson-server "3.0.0"
topojson-simplify "3.0.2"

typedarray@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
Expand Down

0 comments on commit e5a770d

Please sign in to comment.