This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| import os | |
| import sys | |
| import shutil | |
| import urllib.request | |
| import json | |
| import xml.etree.ElementTree as etree | |
| import subprocess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://hub.docker.com/r/sverhoeven/cartodb/ | |
| sudo docker pull sverhoeven/cartodb | |
| # ip_publica | |
| CARTO_HOST="138.68.253.242" | |
| # puerto de salida del host | |
| CARTO_PORT=80 | |
| # agregamos cartodb.localhost como alias del localhost |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # install dependencies | |
| sudo apt install -y apt-transport-https ca-certificates curl software-properties-common | |
| # add repo | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
| # update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| import os | |
| import sys | |
| import psycopg2 | |
| import subprocess | |
| import urllib.request | |
| import json | |
| POSTGRES_DBNAME = os.getenv("POSTGRES_DBNAME") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| #coding=utf-8 | |
| import json | |
| import time | |
| from xmljson import parker, Parker | |
| from xml.etree.ElementTree import fromstring | |
| from suds.client import Client |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> | |
| <NamedLayer> | |
| <UserStyle> | |
| <Title>Default point</Title> | |
| <Abstract>A sample style that just prints out a 6px wide red square</Abstract> | |
| <FeatureTypeStyle> | |
| <Rule> | |
| <Title>Red square</Title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Repubikla - rutas</title> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <link rel="shortcut icon" type="image/x-icon" href="docs/images/favicon.ico" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dataset mexico conectado: `http://geo.datos.gob.mx/geoserver/ckan/wms?service=WMS&version=1.1.0&request=GetMap&layers=ckan:e7958b06_0d0c_41af_a905_6d7c39733885&styles=&bbox=-99.3145751953125,19.1838779449463,-98.9617462158203,19.5627460479736&width=715&height=768&srs=EPSG:4326&format=application/openlayers` | |
| dataset mapa de calor: `http://geo.datos.gob.mx/geoserver/ckan/wms?service=WMS&version=1.1.0&request=GetMap&layers=ckan:e7958b06_0d0c_41af_a905_6d7c39733885&styles=heatmap_test&bbox=-99.3145751953125,19.1838779449463,-98.9617462158203,19.5627460479736&width=715&height=768&srs=EPSG:4326&format=application/openlayers` | |
| dataset mapa de calor, capa de manzanas del marco geoestadistico: | |
| `http://geo.datos.gob.mx/geoserver/ckan/wms?service=WMS&version=1.1.0&request=GetMap&layers=ckan:66f432c1-80be-44e4-833b-5518df05e2f9__manzanas,ckan:e7958b06_0d0c_41af_a905_6d7c39733885&styles=,heatmap_test&bbox=-99.3145751953125,19.1838779449463,-98.9617462158203,19.5627460479736&width=715&height=768&srs=EPSG:4326&format=ap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| f7da72c9_a10c_4d89_9cc0_8e3e83ce93a6__curva_nivel50_l | |
| eb2327a4_d059_4c53_9832_9251f9708c42__linea_com50_l | |
| 78ffe6d6_bfe9_49e5_9e7f_11c9516ccdd5__camino50_l | |
| 413900e1_3ea6_4500_bd29_5fc5c33b50e4__calle50_l | |
| d02f3ac7_75ba_4671_9837_4ecb8ee607d0__pozo_explot50_p | |
| a936e80b_8a09_4580_a6e7_d631ecf272a5__linea_com50_l | |
| 0f04b76a_4be7_4f82_9fba_764297f73ec9__camino50_l | |
| 412f2057_f1c4_46ff_8e15_c701a65059e3__tanque_agua50_p | |
| 27ba4211_3dd2_4526_96d5_75e97d8b9acc__edificacion50_p | |
| 1afb8e4a_504b_4c59_8902_66f217394d95__carretera50_l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| server_name default_server; | |
| location ~ ^.*/(?P<request_basename>[^/]+\.(csv))$ { | |
| root /www/data/; | |
| add_header Content-Disposition 'attachment; filename="$request_basename"'; | |
| } | |
| } |
OlderNewer