随笔分类 -  Python

摘要:Mapbox Vector Tile Specification A specification for encoding tiled vector data. License The text of this specification is licensed under a Creative Commons Attribution 3.0 United States License. Howe... 阅读全文
posted @ 2016-12-18 21:12 ParamousGIS 阅读(809) 评论(0) 推荐(0)
摘要:simplestyle-spec A simple specification for styling GeoJSON data. Versions 1.1.0 Adds properties to permit styling of Polygon and LineString types. 1.0.0 Initial release: this defines only three keys ... 阅读全文
posted @ 2016-12-18 21:06 ParamousGIS 阅读(499) 评论(0) 推荐(0)
摘要:TileJSON TileJSON is an open standard for representing map metadata. License The text of this specification is licensed under a Creative Commons Attribution 3.0 United States License. However, the use... 阅读全文
posted @ 2016-12-18 20:57 ParamousGIS 阅读(1173) 评论(0) 推荐(0)
摘要:MBTiles Specification MBTiles is a specification for storing tiled map data in SQLite databases for immediate usage and for transfer. MBTiles files, known as tilesets, must implement the specification... 阅读全文
posted @ 2016-12-18 20:36 ParamousGIS 阅读(1824) 评论(0) 推荐(0)
摘要:1. 安装pip。 我们同样需要在Python的官网上去下载,下载地址是: https://pypi.python.org/pypi/pip#downloads 2. 解压。 解压pip-9.0.1.tar.gz 3. 安装。 用cmd控制台进入解压目录,输入: python setup.py install 4. 验证。 pip –V 阅读全文
posted @ 2016-12-18 16:32 ParamousGIS 阅读(238) 评论(0) 推荐(0)
摘要:遇到的俩种错误1.ValueError: zlib is required unless explicitly disabled using --disable-zlib, aborting 问题原因未知,博主尝试了一下解决方案可以解决问题。博主PC 是 Pthon3.4.3-win32pip install --upgrade pip 在cmd中更新一下pip,然后发现出现了第二个问题,权限问... 阅读全文
posted @ 2016-12-17 14:45 ParamousGIS 阅读(1809) 评论(0) 推荐(0)
摘要:root用户使用yum install -y python-pip 时会报如下错误: No package python-pip available Error:Nothing to do 解决方法如下: 1)首先安装epel扩展源: yum -y install epel-release 2)更新完成之后,就可安装pip: yum -y install python-pip ... 阅读全文
posted @ 2016-12-17 13:50 ParamousGIS 阅读(303) 评论(0) 推荐(0)
摘要:1.下载 https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz 2.上传到服务器 3. 安装相关依赖 yum install gcc openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel 4. 解压 tar xf Python... 阅读全文
posted @ 2016-12-11 01:44 ParamousGIS 阅读(1057) 评论(0) 推荐(0)
摘要:最近在学习python,之前一直用notepad++作为编辑器,偶然发现了VScode便被它的颜值吸引。用过之后发现它启动快速,插件丰富,下载安装后几乎不用怎么配置就可以直接使用,而且还支持markdown。当然,最主要的还是好看:p效果图: VScode下载地址 安装python插件 打开VScode,Ctrl+p 输入 "ext install python",搜索时间可能会比较长 选... 阅读全文
posted @ 2016-11-14 23:32 ParamousGIS 阅读(689) 评论(0) 推荐(0)
摘要:经常在使用Python的时候需要安装各种模块,而pip是很强大的模块安装工具,但是由于国外官方pypi经常被墙,导致不可用,所以我们最好是将自己使用的pip源更换一下,这样就能解决被墙导致的装不上库的烦恼。 网上有很多可用的源,例如豆瓣:http://pypi.douban.com/simple/ 阅读全文
posted @ 2016-11-06 22:39 ParamousGIS 阅读(13457) 评论(0) 推荐(0)
摘要:#!/usr/bin/env python # -*- coding: utf-8 -*- import networkx as nx import numpy as np import json import matplotlib.pyplot as plt from shapely.geometry import asLineString, asMultiPoint def get_pat... 阅读全文
posted @ 2016-08-20 18:49 ParamousGIS 阅读(3971) 评论(1) 推荐(0)
摘要:本文针对 Python 操作 MySQL 主要使用的两种方式讲解: 原生模块 pymsql ORM框架 SQLAchemy 本章内容: pymsql 执行 sql 增\删\改\查 语句 pymsql 获取查询内容、获取自增 ID pymsql 游标 pymsql 更改 fetch 数据类型 pymsql 利用 with 简化操作 ORM 下载安装 ORM 史上最全操作 一、py... 阅读全文
posted @ 2016-08-19 13:42 ParamousGIS 阅读(5366) 评论(0) 推荐(0)