NOAA-ORR-ERD / cell_tree2d

Cell Tree data structure for fast searching of an unstructured grid for the polygon containing the specified point
16 stars 11 forks source link

Is there a method to serialize the CellTree object to disk? #10

Open barpaum opened 8 years ago

barpaum commented 8 years ago

I've tried dill and pickle for serialization but failed. Is there any method to save a CellTree to disk so it would be possible to load it for a second time use.

jay-hennen commented 8 years ago

No, there isn't a mechanism for that right now. For our primary use case, building it anew every time is acceptable.

However, do feel free to submit a PR for it! It would definitely be a nice feature to have.