当前位置:首页 » 编程语言 » gdal安装python

gdal安装python

发布时间: 2022-12-06 01:22:53

❶ 如何生成geojson格式的tiles

转载自 需下载的工具有:python:python-2.6
Python Setup tools :setuptools-0.6c11.win32-py2.6
GDAL:GDAL-1.9.2.win32-py2.6
TileStache:TileStache-1.42.1

1.首先安装python2.6 并配置环境变量
2.安装Setup tools (方面安装其他软件)和GDAL
3.使用Setup tools安装TileStache, ModestMaps, PIL(TileStache 依赖于这两项)
easy_install tilestache
easy_install PIL
easy_install ModestMaps

4.在下载的TileStache中的文件夹中配置cfg文件
{
"cache":
{
"name": "Disk",
"path": "/tmp/stache",
"umask": "0000"
},
"layers":
{
"postgis":
{
"provider": {"name": "vector", "driver": "Postgresql",
"parameters": {"dbname": "postgis", "user": "postgres","password":"postgres",
"table": "mainroad"}}
}
}
}
}

5.然后用tilestache-seed进行切片

6.结果

后面会推出矢量切片在OL中的应用。OpenLayers中加载矢量切片,可有效解决大数据量的问题

❷ GDAL 笔记二:python for GDAL

Github上找到的好东西, 煮书 主要还是覆盖了创建数据类型,统计数据量,转换数据等。

个人感觉基于GDAL的二次开发,比ArcGIS Engine更加实用,因为 更加基础,更加抽象,更加底层

gdal的安装目录内置了很多脚本,其中包括 gcp2vec.py , gdal_auth.py , gdal_calc.py , gdal_edit.py , gdal_fillnodata.py , gdal_merge.py , gdal_polygonize.py , gdal_proximity.py , gdal_retile.py , gdal_sieve.py , gdal2tiles.py , gdal2xyz , gdalchksum , gdalcompare , gdalident.py , gdalimport.py , gdalmove.py 等。

gdal2tiles.py 是一个gdal的扩展插件,运用gdal的数据接入口,将栅格图片切成小瓦片和元数据,遵循OSGeo TMS标准。让你自己的数据在openlayers和googlemap,方便你展示空间数据。

commenthol/gdal2tiles-leaflet

在.NET平台GDAL有很多坑,不建议使用,已排雷。
This directory in the GDAL project tree has some C# examples, specifically this one that might suit your needs.
You can find the GDAL API documentation here
There is an GDAL API tutorial here
The OGR API documentation is here
The OSR API documentation is here
All the links you need for GDAL can be reached from http://www.gdal.org/
All the links you need for OGR/OSR can be reached from http://www.gdal.org/ogr/

❸ C++ builder 10.1应该怎么安装gdal的库

很久没有用borland公司的工具了。手边没有C++ builder,因此没办法自己尝试。但是万变不离其宗。网上有在VS下安装的方法,可以参照:

网页链接

引用部分操作:

GDAL的安装

编辑

(1)下载gdal的安装文件,解压到某目录下,如C:gdalsrc下。
这里我们假定VC6的安装在默认目录C:Program FilesMicrosoft Visual Studio8下。
(2)启动cmd,即打开控制台窗口。进入VC6的安装目录下,如cd
C:Program FilesMicrosoftVisual
Studio8VCin,在此目录下有个文件VCVARS32.BAT,执行一下这个文件,然后重新回到C:gdalsrc下。运行命令nmake
/f makefile。编译完成后,用记事本打开文件C:gdalsrc make.opt,根据自己的情况修改GDAL_HOME =
这一行,这个指的是最终GDAL的安装目录,比如说我们安装在C:GDAL,那么这一行就是GDAL_HOME =
"C:GDAL",在C:gdalsrc下执行nmake /f makefile install,然后是nmake /f makefile
devinstall,然后我们需要的东西就安装到了C:GDAL下。

尝试一下。如果有啥问题可以交流。

❹ python3.6.3虚拟环境怎么安装gdal

1、下载GDAL的包,进入http://www.lfd.uci.e/~gohlke/pythonlibs/#gdal,找到gdal栏中,下载相应版本的gdal包(如果安装32的python,就下载32位的gdal包,64位的python,就下载64位的gdal包):

可以看到提示已经安装成功了。
如果想卸载模块,可以使用:pip uninstall 模块名,在这之前可以使用:pip list命令查看已经安装了哪些模块。

3、打开python,可以查看安装的gdal的版本:

Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 07:18:10) [MSC v.1900 32 bit (Intel)] on win32
Type "right", "credits" or "license()" for more information.>>> from osgeo import gdal>>> gdal.__version__'2.1.2'12345

4、安装过程中遇到过的问题:
(1)pip版本问题,需要9.0.1版本,低于该版本时,虽然可以安装成功,但在python中import时会提示找不到模块,关于pip的更新和安装,自行网络。
可以通过pip -V查看版本:

D:Python36Scripts>pip -V
pip 9.0.1 from d:python36libsite-packages (python 3.6)12

(2)安装时会提示:

error: Microsoft Visual C++ 14.0 is required(Unable to find vcvarsall.bat)1

提示中有告诉你下载的地址:http://landinghub.visualstudio.com/visual-cpp-build-tools,下载安装后,妈呀,占了我3G的C盘空间,哎,,
还好,大功告成。

linux(centos8)系统安装编译GDAL 2.2.1

win10系统安装gdal,看这篇: windows 安装 GDAL - (jianshu.com)

GDAL库是处理地理信息一个非常强大的库,我这边要用它做 cad 转 geojson 的工作。测试是在windows上进行的,然后现在需要部署到linux上,遇到了安装上的坎儿,记录一下。

DownloadSource – GDAL (osgeo.org)
可以直接:

python36-devel 找不到的话 用:python-devel

在make编译这一步,我报了个错误:
jpeg2000dataset.cpp:35:10: fatal error: jasper/jasper.h: No such file or directory

jasper安装完之后,重新执行步骤4(4. 执行配置、编译、安装:)

在最后添加如下:

保存:

应用:

这步不执行会报错:报错:gdalinfo: error while loading shared libraries: libgdal.so.20: cannot open shared object file: No such file or directory
找不到共享库,意思就是在 bashrc 中添加的没生效。
解决:参考: https://..com/question/1929349307136401747.html

❻ reportlab 怎么安装

1. 先安装pip
a) https://pip.pypa.io/en/latest/installing.html
b) 获取上面网址的get-pip.py
c) 运行python get-pip.py
d) 安装完成之后 pip应用程序安装在C:\Python27\Scripts目录下,把这个路径加到path环境变量里面
e) cmd-》 输入pip -》可看到命令帮助,表示安装成功
2. 下载PIL
a) http://www.pythonware.com/procts/pil
b) 下载对应版本的文件
c) Exe文件直接安装
3. 下载Reporlab包
a) https://pypi.python.org/pypi/reportlab/
b) 取下对应python版本的whl
c) Pip install 上面取下来的文件

❼ 如何执行python第三方包windows exe格式

python第三方包的windows安装文件exe格式, 这上面有很多python第三方包的二进制安装文件,包括32位和64位的。下载安装就ok了!
这下面有很多python第三方包的二进制安装文件,包括32位和64位的。下载安装就ok了!

包括了mysqldb,ldap等。

Index by date:

fiona

scikit-image

netcdf4

mercurial

scikits.audiolab

numba

llvmpy

python-igraph

rpy2

numpy

opencv

zope.interface

sfepy

quantlib

gdal

imread

django

psychopy

cx_freeze

msgpack

regex

cellcognition

vigra

scikit-learn

pytables

h5py

blender-mathutils

htseq

bioformats

simplejson

pyzmq

mako

simpleitk

qimage2ndarray

ujson

vlfd

libsvm

liblinear

cgkit

scipy

distribute

noise

theano

pyalembic

openimageio

pyaudio

pymca

pyamg

pgmagick

lxml

steps

sqlalchemy

cffi

biopython

python-ldap

pycurl

nipy

nibabel

pygments

mahotas

py-postgresql

pyamf

planar

holopy

pyvisa

jcc

polymode

polygon

cython

pyropes

llist

shapely

vtk

pymongo

libpython

meshpy

pandas

umysql

epydoc

coverage

cheetah

pyrxp

pybluez

pythonmagick

bsdiff4

pymssql

pymol

boost.python

orange

requests

pywcs

python-sundials

pymix

pyminuit

pylzma

pyicu

assimulo

basemap

pygraphviz

pyproj

mpi4py

spyder

pytz

pyfits

mysql-python

pygame

pycparser

twisted

pil

qutip

openexr

nipype

python-snappy

visvis

docutils

pyhdf

pyqwt

kivy

scikits.umfpack

psycopg

ets

guiqwt

veusz

pyqt

pyside

dpmix

py-fcm

scikits.hydroclimpy

smc.freeimage

scipy-stack

ipython

nose

mxbase

numexpr

pyyaml

ode

virtualenv

aspell_python

tornado

pywavelets

bottleneck

networkx

statsmodels

pylibdeconv

pyhook

lmfit

slycot

ndimage

scikits.scattpy

cvxopt

pymc

pysparse

scikits.odes

matplotlib

vpython

pycuda

pyopencl

pymvpa

pythonnet

cld

mod_wsgi

nltk

python-levenshtein

rtree

pywin32

scientificpython

sympy

thrift

pyopengl-accelerate

mdp

pyopengl

gmpy

reportlab

natgrid

scikits.vectorplot

pyreadline

milk

blosc

pycogent

pip

gevent

scons

carray

python-dateutil

jinja2

markupsafe

jsonlib

pysfml

fonttools

silvercity

console

python-cjson

pycluster

cdecimal

pytst

autopy

sendkeys

ceodbc

fipy

psutil

pyephem

pycifrw

blist

line_profiler

pydbg

bitarray

pyglet

python-lzo

faulthandler

delny

pyexiv2

ilastik

twainmole

scitools

pyspharm

casuarius

pyodbc

greenlet

nitime

pylibtiff

mmtk

pycairo

pysqlite

curses

videocapture

bazaar

nlopt

trfit

libsbml

oursql

sphinx

cellprofiler

py2exe

re2

liblas

cgal-python

pymedia

ffnet

pyfftw

libxml-python

pyfltk

pymex

pymatlab

zodb3

mmlib

pygtk

pyserial

babel

scikits.ann

scikits.delaunay

numeric

pulp

nmoldyn

pymutt

iocbio

jpype

wxpython

pybox2d

dipy

mmseg

pynifti

scikits.samplerate

scikits.timeseries

vitables

quickfix

热点内容
安卓手机236开发者选项在哪里 发布:2024-05-06 04:11:13 浏览:258
sql过滤条件 发布:2024-05-06 04:05:18 浏览:562
ifconfiglinux 发布:2024-05-06 03:47:59 浏览:533
c语言开发集成环境 发布:2024-05-06 03:47:06 浏览:607
脚本uzi比赛视频 发布:2024-05-06 03:46:19 浏览:823
php给文本框赋值 发布:2024-05-06 03:21:24 浏览:26
androidjsonkey 发布:2024-05-06 03:07:31 浏览:732
python主线程子线程 发布:2024-05-06 03:07:20 浏览:764
android系统截屏 发布:2024-05-06 02:57:51 浏览:777
android居左 发布:2024-05-06 02:40:26 浏览:45