topojson icon indicating copy to clipboard operation
topojson copied to clipboard

Adding/removing features to an existing Topology

Open akatkov7 opened this issue 1 year ago • 3 comments

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.

akatkov7 avatar Oct 10 '24 23:10 akatkov7

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?

mattijn avatar Oct 10 '24 23:10 mattijn

Sorry for the delayed response, but I'm unfamiliar with any literature on it.

akatkov7 avatar Oct 29 '24 21:10 akatkov7

No problem. I had a quick scan and only found one that might be related here.

Event-driven Incremental Updating of Cadastral Spatial Database Considering Topological Integrity Jun CHEN, Xiaoguang ZHOU, Zhilin LI Page(s) 185-195 Conference Paper (PDF, 346 KB)

mattijn avatar Oct 30 '24 06:10 mattijn