BentoMap
BentoMap copied to clipboard
Polygon from Geojson file
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?
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.