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
import arcpy | |
def pprint_fields(table): | |
""" pretty print table's fields and their properties """ | |
def _print(l): | |
print("".join(["{:>12}".format(i) for i in l])) | |
atts = ['name', 'aliasName', 'type', 'baseName', 'domain', | |
'editable', 'isNullable', 'length', 'precision', | |
'required', 'scale',] | |
_print(atts) | |
for f in arcpy.ListFields(table): |
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
''' | |
Capa en memoria de Puntos EPSG:4326 con ID | |
''' | |
#input: lista de (id, lon, lat) | |
puntos = [ | |
(1, -5.3899, 36.12), | |
(2, -5.6096268, 35.9423065), | |
(3, -5.1701736, 36.2972908) | |
] |
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
D:\trunk>gource --max-files 400 -s 1 --user-image-dir D:\trunk\img -e 0.05 --user-scale 3.0 |
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
''' | |
Capa en memoria de Encuadres EPSG:4326 con ID | |
''' | |
#input: lista de (id, xmin, ymin, xmax, ymax) | |
encuadres = [ | |
("1", -5.505, 35.89,-5.30,36.20), | |
("2", -5.4697, 36.03,-5.3101,36.21), | |
] | |
# proceso |
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
gdal2tiles -z "1-6" -v input.tif tms |
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
# Instalacion de mbutil con pip | |
cd C:\Python27\Scripts | |
pip install mbutil | |
# Generaci贸n de la cache de mapa (MBtiles) con TileMill | |
# Ejecuci贸n para descomprimir mbtiles (generados con TileMill): | |
python mb-util.py C:/Users/velardev/Documents/MapBox/export/fichero.mbtiles teselas --scheme=xyz |
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

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
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
OlderNewer