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

include vw as simplify algorithm including in the widget #43

Merged
merged 1 commit into from Aug 11, 2019

Conversation

mattijn
Copy link
Owner

@mattijn mattijn commented Aug 11, 2019

The simplify_algorithm listens to vw for Visvalingam-Whyatt and dp for Douglas-Peucker. Defaults to dp.
This is now also included in the to_widget().

import geopandas
import topojson

data = geopandas.read_file(geopandas.datasets.get_path("naturalearth_lowres"))
data = data[(data.continent == "North America")]

tj = topojson.Topology(data)
tj.to_widget()

See gif:
ezgif com-resize-2

@mattijn mattijn merged commit 6270218 into master Aug 11, 2019
@mattijn mattijn deleted the add-vw-as-simplify-algorithm branch January 17, 2020 20:25
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

Successfully merging this pull request may close these issues.

None yet

1 participant