Skip to content

Commit

Permalink
(chore) remove unused field on shapefile
Browse files Browse the repository at this point in the history
  • Loading branch information
shuaiey committed Sep 27, 2022
1 parent 3adf9a0 commit 7cb6056
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ SHAPEFILE_TARGETS := $(foreach shape,$(SHAPES),20%/$(shape).shp)
yarn run mapshaper \
-i $< \
-clean \
-each 'id=this.properties.KTNR || this.properties.KT; name=this.properties.KTNAME || this.properties.NAME; shape="canton"' \
-filter-fields id,name,shape \
-each 'id=this.properties.KTNR || this.properties.KT; name=this.properties.KTNAME || this.properties.NAME' \
-filter-fields id,name \
-o format=shapefile encoding=utf8 $@

# Clean up cantons
Expand Down Expand Up @@ -97,8 +97,8 @@ SHAPEFILE_TARGETS := $(foreach shape,$(SHAPES),20%/$(shape).shp)
yarn run mapshaper \
-i $< \
-clean \
-each 'id=this.properties.SEENR || this.properties.GMDNR || this.properties.GMDE; name=this.properties.SEENAME || this.properties.GMDNAME || this.properties.NAME; shape="lake"' \
-filter-fields id,name,shape \
-each 'id=this.properties.SEENR || this.properties.GMDNR || this.properties.GMDE; name=this.properties.SEENAME || this.properties.GMDNAME || this.properties.NAME' \
-filter-fields id,name \
-filter '+id !== 9780' \
-o format=shapefile encoding=utf8 $@

Expand Down

0 comments on commit 7cb6056

Please sign in to comment.