當前位置:首頁 » 編程語言 » 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

熱點內容
解壓到當前文件夾右鍵 發布:2024-04-26 03:57:08 瀏覽:979
html5android教程視頻下載 發布:2024-04-26 03:09:59 瀏覽:867
伺服器的描述是什麼 發布:2024-04-26 03:08:32 瀏覽:394
個人加密 發布:2024-04-26 03:01:23 瀏覽:520
linuxusbgadget 發布:2024-04-26 02:52:54 瀏覽:304
我的世界空島世界伺服器地址 發布:2024-04-26 01:39:08 瀏覽:248
尼爾機械紀元加密 發布:2024-04-26 01:37:11 瀏覽:867
在控制台輸出sql語句 發布:2024-04-26 01:08:12 瀏覽:432
動畫java 發布:2024-04-26 01:02:40 瀏覽:12
得力文件夾5302 發布:2024-04-26 00:21:32 瀏覽:91