gdal

'module' object has no attribute 'OSMGeoAdmin'

送分小仙女□ 提交于 2020-01-03 16:46:51
问题 The enviroment is as follows: **Windows 7** PATH=C:\Python27\;C:\Python27\Scripts;C:\Python27\Lib\site-packages\MySQLdb;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\OSGeo4W\bin **python 2.7** 'C:\\Python27\\lib\\site-packages\\bitstring-2.1.1-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\setuptools-0.6c11-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\virtualenvwrapper-2.11.1-py2.7.egg', 'c:\\cygwin\\home\\username\\__prjs\\flt\\requirements\\src\\djangoembed', 'C:\\Windows\\system32\

How to explicitly close datasets in GDAL ruby binding?

我是研究僧i 提交于 2020-01-03 15:57:09
问题 I am using GDAL 1.7.1 from ruby1.9 to generate GeoTIFF files. In the tutorial they recommend to use GDALClose() to close the datasets and flush any remaining content to the filesystem. The same happens in the destructor for the dataset. The problem is that the ruby bindings rely on this destructor mechanism to close the dataset, and I need the result of the file already in the process that generates it. Since ruby is garbage collected, it seems I can not reliably close my files, without

Installing gdal-config on my linux

情到浓时终转凉″ 提交于 2020-01-02 08:29:25
问题 I search the entire net could not find a guide to get gdal-config . I have yum but yum does not have gdal-config , i already installed gdal . I just need to be able to do this on shell - gdal-config and not get a command not found error. My distro is Fedora. I don't have apt-get . 回答1: You probaby have "yum" instead of "apt-get" on Fedora. Try.. yum install gdal gdal-devel 回答2: I had a similar problem, that is "gdal-config" was missing. I could solve it by installing the development packages.

RGDAL won't install

别说谁变了你拦得住时间么 提交于 2020-01-02 01:43:08
问题 I can't get RGDAL to install in R. I'm using Ubuntu 12.04. configure: error: gdal-config not found or not executable. ERROR: configuration failed for package ‘rgdal’ * removing ‘/home/james/R/x86_64-pc-linux-gnu-library/3.2/rgdal’ Warning in install.packages : installation of package ‘rgdal’ had non-zero exit status I found some solutions which said to do this: sudo apt-get install aptitude sudo aptitude install libgdal-dev sudo aptitude install libproj-dev I follow these through, accepting

Packaging GDAL with Java

梦想的初衷 提交于 2020-01-01 07:06:39
问题 I have a Java project that uses GDAL bindings on Win7. The problem is that due to the nature of the bindings, it requires setting environment variables to work, specially PATH , GDAL_DATA , GDAL_DRIVER_PATH , and PROJ_LIB . I mean they're easy enough for me to create and point to the GDAL directory. However if I ever want to distribute this, this is going to be an unwieldy step for the average user. I need some way to configure the GDAL bindings in a way that the user can copy the program

Gdal Installation error using pip

╄→尐↘猪︶ㄣ 提交于 2020-01-01 04:55:11
问题 Im trying to install GDAL latest version using pip, but im getting the following error, Failed building wheel for GDAL. My python version is 2.7.9, Please help me. It is installing gdal 1.11.3 version if i specify the version but i need latest version or >=2.0 回答1: Finally its worked with the command pip install C:\Users\admin\Downloads\GDAL-2.1.3-cp27-cp27m-win_amd64.whl. I downloaded GDAL-2.1.3-cp27-cp27m-win_amd64.whl. from here http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal 来源: https:/

PHP GDAL/OGR library usage, which approach is cleaner?

女生的网名这么多〃 提交于 2020-01-01 03:28:22
问题 I will be using gdal/ogr for a new project. I want a lean but fully functional app, so will not be using other implementations such as mapserver, because they have extraneous components that I doubt will be needed in the application, even in the future. For the record, it is a GIS, but I am asking here on SO because there as so few examples of a GIS in php that uses GDAL/OGR I basically have three options in mind: use php's exec() function to run command line conversion utilities Use swig to

Install GDAL in virtualenvwrapper environment

馋奶兔 提交于 2019-12-31 13:52:52
问题 I tried to install gdal (pip install gdal)in virtualenvwrapper environment but I got this error : error: command 'gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for gdal Failed to build gdal I tried also "pip install --no-install GDAL" but there is nooption --no-install what should I do !? 回答1: Yes, installing GDAL in a venv is a doozy. Conveniently, I just wrote up the documentation on how to do so for my advisor's lab! While I am not savvy

Install GDAL in virtualenvwrapper environment

混江龙づ霸主 提交于 2019-12-31 13:51:03
问题 I tried to install gdal (pip install gdal)in virtualenvwrapper environment but I got this error : error: command 'gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for gdal Failed to build gdal I tried also "pip install --no-install GDAL" but there is nooption --no-install what should I do !? 回答1: Yes, installing GDAL in a venv is a doozy. Conveniently, I just wrote up the documentation on how to do so for my advisor's lab! While I am not savvy

Installation of GDAL with Conda on Windows

╄→гoц情女王★ 提交于 2019-12-31 05:52:25
问题 I have Anaconda Python 3.6 on Windows 7. I frequently use GeoPandas and it worked fine. Yesterday I tried to install rasterio and georasters, and they seemed to install fine using the suggested method conda config --add channels conda-forge conda install rasterio Then installed georasters using conda install -c conda-forge georasters And got a successfull installation message. When trying to import them they do not work - there is an error message on import rasterio or import georasters .