deepscatter icon indicating copy to clipboard operation
deepscatter copied to clipboard

How to use for geospatial data on maps

Open Saumya-NebCodes opened this issue 3 years ago • 1 comments

HI thank you for this great project. I am just wondering can this project can be used for Geospatial data with GPS coordinate on MapLayer like MapBox.

Saumya-NebCodes avatar Feb 25 '23 19:02 Saumya-NebCodes

This is a tricky question I think about a lot. I use this library to turn points into projected geodata all the time e.g., here's a bunch of trees with coordinates in the New York State Plane I made last week, but integrating with any specific mapping library like mapboxGL would require some serious work because mapBoxGL projections are fairly complicated--they allow tilting the view, the projection can change, etc.

When I wanted to integrate a point map with a mapboxGL map myself for a dot density map of US population, I decided this would be too hard, would require too much non-free software, and would require me to use the Mercator projection for the full-US display, which I really don't like. Instead I opted to just put the mapbox map in the lower righthand corner, and then I updated the state of that reference map by looking at the projected coordinates. I also created some custom code for plotting polygons that exists only on a fork of deepscatter.

MapboxGL (and libremapGL, for that matter) does allow vector tiles and point primitives itself that work reasonably well; I don't believe from the time I talked to Mapbox people that they can scale quite as large as deepscatter quite as quickly, but for plotting, say, a few hundred thousand points of geodata they should be more than enough. If you have a use case that requires more, I'm curious what it is!

bmschmidt avatar Feb 25 '23 19:02 bmschmidt