Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate unique arcs. #4

Open
mbostock opened this issue Nov 12, 2016 · 2 comments
Open

Consolidate unique arcs. #4

mbostock opened this issue Nov 12, 2016 · 2 comments

Comments

@mbostock
Copy link
Member

If an arc is only used once, it may be possible to merge it with an adjacent arc that is only also used once.

@mbostock mbostock self-assigned this Nov 12, 2016
@mbostock
Copy link
Member Author

mbostock commented Nov 13, 2016

In some ways the easiest way to fix this is to roundtrip through topo2geo and geo2topo again. In the case of the Merged Choropleth example you can reduce the 464K topology even further to 328K… or even 284K when quantized at 1e4, which seems sufficient for the display resolution!

topo2geo \
  < topo.json \
  tracts=tracts.json \
  counties=counties.json

geo2topo \
  tracts=tracts.json \
  counties=counties.json \
  | topoquantize 1e5 \
  > topo.json

@mbostock mbostock removed their assignment Mar 31, 2017
@chabb
Copy link

chabb commented Jan 5, 2018

Hello Mike!

Will it remove unused arcs too ?

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants