Upload files to 'src/pipelines/arboles'

main
Santiago Crespo 2 years ago
parent 3c477b347a
commit 4add507076
  1. 200
      src/pipelines/arboles/procesa_arbolado_viario_scrapeado.sh
  2. 22
      src/pipelines/arboles/scrape-trees.sh

File diff suppressed because one or more lines are too long

@ -0,0 +1,22 @@
#!/bin/bash
# scrapea árboles
CURRENTDIR=`pwd`
cd
virtualenv esridump
source esridump/bin/activate
pip install esridump
# Por defecto saca 4326 mal reproyectado (sin la rejilla del IGN)
#esri2geojson http://iws.munimadrid.es/arcgis/rest/services/DGPV/DGPV_ALCORQUE_ARBOL/MapServer/0 /tmp/arboles.geojson
# Sacar URL rest cuando cambia la web "Un Alcorque un Árbol" . 202209: https://www-s.madrid.es/DGPVE_WUAUA/irAMapa.do
# Tarda unos 10 minutos
esri2geojson --param "query?where=OBJECTID&f=json" https://sigma.madrid.es/vector/rest/services/MTMOV/MPUAUA/MapServer/0 Arbolado_Viario-23030.json || exit 1
mv Arbolado_Viario-23030.json "$CURRENTDIR" || exit 1
exit 0
Loading…
Cancel
Save