Skip to content

Instantly share code, notes, and snippets.

@nautilytics
Last active August 6, 2020 17:51
Show Gist options
  • Save nautilytics/9bbed4231071ef2cf2747243ae4bb206 to your computer and use it in GitHub Desktop.
Save nautilytics/9bbed4231071ef2cf2747243ae4bb206 to your computer and use it in GitHub Desktop.
Filter 10M Topojson States to not include Alaska, Hawaii, American Samoa, USVI, Guam, and Mariana Islands, and Puerto Rico - and remove "nation" object
# Remove Alaska (02), Hawaii (15), Puerto Rico (72), American Samoa (60), United States Virgin Islands (78), Guam (66), and Commonwealth of the Northern Mariana Islands (69)
filter 'FID != "02"'
// [filter] Retained 55 of 56 features
filter 'FID != "15"'
// [filter] Retained 54 of 55 features
filter 'FID != "72"'
// [filter] Retained 53 of 54 features
$ filter 'FID != "60"'
[filter] Retained 52 of 53 features
$ filter 'FID != "78"'
[filter] Retained 51 of 52 features
$ filter 'FID != "66"'
[filter] Retained 50 of 51 features
$ filter 'FID != "69"'
[filter] Retained 49 of 50 features
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment