Closed vgoklani closed 5 years ago
I recommend starting with this example to get a feel for the Mapboxgl-jupyter library: https://github.com/mapbox/mapboxgl-jupyter/blob/master/examples/notebooks/point-viz-types-example.ipynb
Polygon maps are currently handled under the ChoroplethViz
type, which you can find at: https://github.com/mapbox/mapboxgl-jupyter/blob/master/examples/notebooks/choropleth-viz-example.ipynb
@vgoklani will you let us know when you've succeeded in loading your dataset?
I'm trying to understand what's in these arrays because they clearly don't look like lat/longs:
((-9236522 4858133, -9235453 4858064, -9235477 4857695, -9235931 4857721, -9235939 4857597, -9237082 4857688, -9237054 4858165, -9236522 4858133))
Any idea on how to convert these, thanks!
@vgoklani these are map units and depend on the projection you are using in your GIS software. This is a little outside the scope of this library, which is focused on providing Python bindings for rendering maps in a Jypyter interactive Python notebook using MapboxGL JavaScript library. I recommend further reading on https://docs.mapbox.com/studio-manual/overview/ which might have some tools for converting map units to lat/lon and will help you generate custom vector layers.
I don't use ArcGIS on a daily basis, but there should also be options to re-export your data with the locations encoded as latitude/longitude too, in which case you'll be able to use this library after all :). I found this article which might be relevant? http://solutions.arcgis.com/defense/help/coordinate-conversion/arcmap/export-coordinates.htm
Hello - thanks again for all your help; I eventually figured out how to properly convert the geojson data from the ARCGIS server to get the lat/lon data!
I converted my ArcGIS data into geojson and rendered it via geopandas, which worked correctly. But I'm unable to render this same data in Mapbox.
Here's a sample of the dataset:
In general, what's the procedure to render this type data in Mapbox? Could someone please point me to an example. Thanks!