Skip to content

Commit e5a770d

Browse files
committed
use geojson-precision for fips
1 parent 3aa3934 commit e5a770d

File tree

4 files changed

+13
-52
lines changed

4 files changed

+13
-52
lines changed

.envrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
set -e
12
source venv/bin/activate
3+
use node

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12

scripts/fips/shp2geo.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@ yarn shp2json $SHP/counties_500k/*.shp -o $GEOJSON/counties_500k.geojson --encod
1616
yarn shp2json $SHP/counties_5m/*.shp -o $GEOJSON/counties_5m.geojson --encoding utf8
1717
yarn shp2json $SHP/counties_20m/*.shp -o $GEOJSON/counties_20m.geojson --encoding utf8
1818

19+
yarn geojson-precision -p 3 $GEOJSON/counties_500k.geojson $GEOJSON/counties_500k.geojson
20+
yarn geojson-precision -p 3 $GEOJSON/counties_5m.geojson $GEOJSON/counties_5m.geojson
21+
yarn geojson-precision -p 3 $GEOJSON/counties_20m.geojson $GEOJSON/counties_20m.geojson
22+
1923
rm -r $SHP

yarn.lock

Lines changed: 6 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ keygrip@~1.0.3:
208208
integrity sha512-/PpesirAIfaklxUzp4Yb7xBper9MwP6hNRA6BGGUFCgbJ+BM5CKBtsoxinNXkLHAr+GXS1/lSlF2rP7cv5Fl+g==
209209

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

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

282282
process-nextick-args@~2.0.0:
283283
version "2.0.1"
@@ -391,52 +391,6 @@ then-request@^5.0.0:
391391
promise "^8.0.0"
392392
qs "^6.4.0"
393393

394-
topojson-client@3:
395-
version "3.1.0"
396-
resolved "https://registry.yarnpkg.com/topojson-client/-/topojson-client-3.1.0.tgz#22e8b1ed08a2b922feeb4af6f53b6ef09a467b99"
397-
integrity sha512-605uxS6bcYxGXw9qi62XyrV6Q3xwbndjachmNxu8HWTtVPxZfEJN9fd/SZS1Q54Sn2y0TMyMxFj/cJINqGHrKw==
398-
dependencies:
399-
commander "2"
400-
401-
402-
version "3.0.0"
403-
resolved "https://registry.yarnpkg.com/topojson-client/-/topojson-client-3.0.0.tgz#1f99293a77ef42a448d032a81aa982b73f360d2f"
404-
integrity sha1-H5kpOnfvQqRI0DKoGqmCtz82DS8=
405-
dependencies:
406-
commander "2"
407-
408-
409-
version "3.0.0"
410-
resolved "https://registry.yarnpkg.com/topojson-server/-/topojson-server-3.0.0.tgz#378e78e87c3972a7b5be2c5d604369b6bae69c5e"
411-
integrity sha1-N4546Hw5cqe1vixdYENptrrmnF4=
412-
dependencies:
413-
commander "2"
414-
415-
416-
version "3.0.2"
417-
resolved "https://registry.yarnpkg.com/topojson-simplify/-/topojson-simplify-3.0.2.tgz#8a2403e639531500fafa0c6594e8b0fadebc2c02"
418-
integrity sha512-gyYSVRt4jO/0RJXKZQPzTDQRWV+D/nOfiljNUv0HBXslFLtq3yxRHrl7jbrjdbda5Ytdr7M8BZUI4OxU7tnbRQ==
419-
dependencies:
420-
commander "2"
421-
topojson-client "3"
422-
423-
topojson-simplify@^3.0.3:
424-
version "3.0.3"
425-
resolved "https://registry.yarnpkg.com/topojson-simplify/-/topojson-simplify-3.0.3.tgz#668de0ca7ab36797002087190c2222f938af2ab2"
426-
integrity sha512-V+pBjLVzSQ3+hSOxBiV01OVXgFiCmMO8ia3huxKEyIMTC1ApQHBcdXdOqcQ6U2JJJD31TZduwY6KyF15R8sUgg==
427-
dependencies:
428-
commander "2"
429-
topojson-client "3"
430-
431-
topojson@^3.0.2:
432-
version "3.0.2"
433-
resolved "https://registry.yarnpkg.com/topojson/-/topojson-3.0.2.tgz#fcb927306c3e0fa76656fa58deed4555d2346fb4"
434-
integrity sha512-u3zeuL6WEVL0dmsRn7uHZKc4Ao4gpW3sORUv+N3ezLTvY3JdCuyg0hvpWiIfFw8p/JwVN++SvAsFgcFEeR15rQ==
435-
dependencies:
436-
topojson-client "3.0.0"
437-
topojson-server "3.0.0"
438-
topojson-simplify "3.0.2"
439-
440394
typedarray@^0.0.6:
441395
version "0.0.6"
442396
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"

0 commit comments

Comments
 (0)