BentoMap icon indicating copy to clipboard operation
BentoMap copied to clipboard

Polygon from Geojson file

Open zhouhao27 opened this issue 6 years ago • 1 comments

I'd like to add polygons from geojson file to QuadTree. But there is no coordinates for them. Instead they have coordinates array. How to add them to QuadTree? Any advice?

zhouhao27 avatar Aug 11 '17 16:08 zhouhao27

Possibly calculate the center or average of the coordinates array, then use that as the coordinate for storage inside the quad tree. Depending on how much scale variance there is in the geoJSON objects, quadtrees may not be a good data structure for holding your data.

ateliercw avatar Aug 11 '17 20:08 ateliercw