Skip to content

Polygon stores v2 #191

@ringsaturn

Description

@ringsaturn

The new polygon stores format will solve these problems:

  • Less file sizes, for lite dataset expect 4~5MB without using any other compress method(polygon, zip, gzip, etc)
  • Keep original geometry relationships between polygons, which means it will solve Fix polygon simplify #183 issue
  • Improve performance, because of using simplified polygons, some areas are not covered by polygons, thus some coords shifting are required to look up nearby points, as a result query speed reduce a lot
    Image
    Image

Changes to tzf-repos:

  1. The new format will only change how data saved in disk. In-memory lookup will not geometry.
  2. I hope no breaking changes to current tzf repos(tzf/tzf-rs/tzfpy/tzf-swift/tzf-wasm). If breaking changes are necessary, all repos will bump to v2.x.y to indicate breaking changes. Potential breaking changes:
    • Current data format will not be published after new version is completely ready
    • To handle new data format, finder’s New{XXX} method need some breaking changes.

Sub-issues

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgoPull requests that update Go code

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions