Monday, April 29, 2019

Python plot maps and polygons





Map Resources:
[1] http://www.arcgis.com/home/item.html?id=3fd6eb2de569477ca83b2b65da8ecb6f

Source for plot:
[1]


Aditional Lectures
[1] http://dan-scientia.blogspot.com/2009/10/centroide-de-um-poligono.html
[2] https://www.matematica.pt/faq/poligono-convexo.php
[3] https://github.com/deparkes/shapely_tests
[4] https://shapely.readthedocs.io/en/stable/manual.html
[5] https://en.wikipedia.org/wiki/Centroid#Centroid_of_polygon
[6] Centro Geodesico https://ww2.ibge.gov.br/home/geociencias/geodesia/artigos/1996_Centro_Geodesico_Centroide.pdf

Visual Center
[1] https://blog.mapbox.com/a-new-algorithm-for-finding-a-visual-center-of-a-polygon-7c77e6492fbc
[2] https://github.com/mapbox/polylabel
[3] Poly Decomp https://mpen.ca/406/motivation

Python basemap
[1] https://matplotlib.org/basemap/users/examples.html
[2] https://github.com/matplotlib/basemap/tree/master/examples


sudo apt-get install libgeos-3.5.0
sudo apt-get install libgeos-dev
sudo pip install https://github.com/matplotlib/basemap/archive/master.zip
 
Results:
https://github.com/fincahuanaco/covid19peru 
Next Step
https://towardsdatascience.com/easy-steps-to-plot-geographic-data-on-a-map-python-11217859a2db
 
 

No comments:

Running apps

Runtastic (I uninstalled because force to update your device - Internet connection problems) Runkeeper  (Wrong GPS tracking) Strava   (Curr...