mattijn / topojson

Encode spatial data as topology in Python! 🌍 https://mattijn.github.io/topojson
BSD 3-Clause "New" or "Revised" License
178 stars 27 forks source link

Adding/removing features to an existing Topology #225

Open akatkov7 opened 4 hours ago

akatkov7 commented 4 hours ago

Hi, thanks for the library! It's very helpful for reducing the size of GeoJSONs.

I was curious if there was a way for me to add/remove features from an existing Topology.

In my use case, I am converting a few hundred GeoJSON features to a Topology every X minutes per my cron job cadence. The number of features varies and when the number gets higher, the process gets a lot slower.

However, a large percent of these features would be the same from run to run.

So I was curious if it would be feasible to add a way to add or remove features to an existing Topology (which i could cache between runs) and it would be less compute intensive than recomputing with all of the features.

mattijn commented 3 hours ago

Very interesting question! And very useful feature request. I think the first step would be to find out if there is any existing literature on this topic. Do you know some of this?