Skip to content

Instantly share code, notes, and snippets.

@nautilytics
Last active August 6, 2020 18:01
Show Gist options
  • Save nautilytics/a95a0d8ba860d6b989b39b3ed47937c9 to your computer and use it in GitHub Desktop.
Save nautilytics/a95a0d8ba860d6b989b39b3ed47937c9 to your computer and use it in GitHub Desktop.
Filter 10M Topojson Counties to not include American Samoa, USVI, Guam, and Mariana Islands - and remove "nation" and "states" objects
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.
# 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.slice(0, 2) != "66"'
// [filter] Retained 3,230 of 3,231 features
filter 'FID.slice(0, 2) != "69"'
// [filter] Retained 3,226 of 3,230 features
filter 'FID.slice(0, 2) != "78"'
// [filter] Retained 3,223 of 3,226 features
filter 'FID.slice(0, 2) != "60"'
// [filter] Retained 3,220 of 3,223 features
filter 'FID.slice(0, 2) != "02"'
// [filter] Retained 3,191 of 3,220 features
filter 'FID.slice(0, 2) != "15"'
// [filter] Retained 3,186 of 3,191 features
filter 'FID.slice(0, 2) != "72"'
// [filter] Retained 3,108 of 3,186 features
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment