随笔分类 - Python
摘要:# -*- coding: utf-8 -*- ########################################################################### ## Python code generated with wxFormBuilder (versi
阅读全文
摘要:Python简单HTTP Serverfrom http.server import BaseHTTPRequestHandler, HTTPServer class MyHttpRequestHandler(BaseHTTPRequestHandler): def do_POST(self): p
阅读全文
摘要:https://www.eorc.jaxa.jp/ALOS/en/alos-2/datause/a2_format_e.htmPALSAR-2_xx_Format_CEOS_E_g.pdf
阅读全文
摘要:BSON [bee·sahn]是Binaryary JSON的缩写,是类似于JSON数据结构的二进制编码的序列化文档。像JSON一样,BSON支持数组、对象的嵌套,BSON还扩展了JSON的数据类型,如:BSON具有日期类型和BinData类型。看一个例子: { name:"lemo", age:"
阅读全文
摘要:"python.formatting.autopep8Args": ["--indent-size=2", "--max-line-length=2048"],
阅读全文
摘要:----------------------------------------------------------------------------------import sys, osimport httplib, urllib, urllib2import urlparseimport jsonimport tracebackimport time#baseUrl = 'https://...
阅读全文
摘要:----------------------------------import arcpyfrom base64 import encodestringusername = 'xxx'password = 'xxx'authorizationStr = encodestring('%s:%s' % (username, password))[:-1]print('Basic %s' % auth...
阅读全文
摘要:参考:https://www.cnblogs.com/luo30zhao/p/10515594.htmlhttps://blog.csdn.net/skiof007/article/details/78678490pip3 install cryptography>>> from cryptography.hazmat.backends import default_backend>>> from...
阅读全文
摘要:Ubuntu 1.安装pip sudo apt-get install python3-dev sudo apt install python3-pip 2.安装virtualenv工具 sudo apt-get install python-virtualenv 3.在工程目录下使用virtual
阅读全文
摘要:1.添加监听端口sudo vim /etc/apache2/ports.confListen 80Listen 6080 Listen 443 Listen 4432.添加虚拟主机配置sudo vim /etc/apache2/sites-available/gisas.conf #ServerName www.example.com S...
阅读全文
摘要:from osgeo import ogrimport jsonfrom geojson import loads, dumps, Feature, FeatureCollectionfrom shapely.geometry import shape, Point, LineString'''shp_driver = ogr.GetDriverByName('ESRI Shapefile')sh...
阅读全文
摘要:import sqlite3, sys, logging, time, os, json, zlib, re'''MapDBImporter-latest -f png -mName "World Light" -mDescription "A simple, light grey world map" -s "F:\google\map\zoom" -d "F:\google\map\mbtil...
阅读全文
摘要:Leaflet Quick Start Guide Example -->
阅读全文
摘要:https://github.com/jingsam/vector-tile-spec/blob/master/2.1/README_zh.mdhttps://github.com/mapbox/vector-tile-spec/tree/master/2.1https://github.com/mapbox/awesome-vector-tiles
阅读全文
摘要:CentOS7上Python3.5安装1.下载https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz2.上传到服务器3.yum install gcc openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel4. 解压tar xf Python-...
阅读全文
摘要:1. 安装pip。我们同样需要在Python的官网上去下载,下载地址是:https://pypi.python.org/pypi/pip#downloads2. 解压。解压pip-9.0.1.tar.gz3. 安装。用cmd控制台进入解压目录,输入:python setup.py install4. 验证。pip –V5.安装tilestachepip install tilestache -i ...
阅读全文
摘要:pip install tilestache -i https://mirrors.ustc.edu.cn/pypi/web/simplepython C:/Python27/ArcGIS10.4/Scripts/mb-util.py open-streets-dc.mbtiles openstreetsdc TileStache.Goodies.Providers.MapnikGrid:Pro...
阅读全文
摘要:>>> import os>>> homedir = os.getcwd()>>> os.chdir("d:\\")
阅读全文
摘要:1.tilestache.cfg 2. TileStacheTest.py 3. tilestache-seed tilestache-seed.py -b -33.8294 -71.0362 -33.1445 -70.3331 -p 0 -e geojson -c tilestache.cfg -
阅读全文