gdal

GDAL in flexible environment

无人久伴 提交于 2019-12-01 18:12:57
In app engine flexible environment, I'm trying to run django on postgresql db using GIS extensions. Can run locally, and it eventually finished deploying to cloud successfully. However, when run from cloud I get a "ERROR: Server Error" and the log file has the trace shown below. Essentially, it says it cannot read files in the folder "/env/lib/python3.5/site-packages/django/contrib/gis/gdal". That folder is definitely there locally. Here's the full trace: Traceback (most recent call last): File "/env/lib/python3.5/site-packages/gunicorn/arbiter.py", line 578, in spawn_worker worker.init

GDAL in flexible environment

穿精又带淫゛_ 提交于 2019-12-01 18:03:48
问题 In app engine flexible environment, I'm trying to run django on postgresql db using GIS extensions. Can run locally, and it eventually finished deploying to cloud successfully. However, when run from cloud I get a "ERROR: Server Error" and the log file has the trace shown below. Essentially, it says it cannot read files in the folder "/env/lib/python3.5/site-packages/django/contrib/gis/gdal". That folder is definitely there locally. Here's the full trace: Traceback (most recent call last):

Trouble getting latest version of GDAL on ubuntu running R

☆樱花仙子☆ 提交于 2019-12-01 15:06:59
问题 My Ubuntu machine has latest GDAL (2.2.1, released 2017/06/23). But R complains that I have gdalversion <2.0 configure: CC: gcc -std=gnu99 configure: CXX: g++ checking for gdal-config... /usr/bin/gdal-config checking gdal-config usability... yes configure: GDAL: 1.11.3 checking GDAL version >= 2.0.0... no configure: error: sf is not compatible with GDAL versions below 2.0.0 How can i direct R to access GDAL (2.2.1 version) already installed on Ubuntu? 回答1: You may need to uninstall all traces

Unable to install gdal in python 3.6.1 in macos Sierra

一个人想着一个人 提交于 2019-12-01 06:13:19
I was trying to install gdal in python 3.6.1, but getting the following error. How to overcome this? bibinwilson ~ $ pip3 install gdal Collecting gdal Downloading GDAL-2.2.1.tar.gz (475kB) 100% |████████████████████████████████| 481kB 397kB/s Complete output from command python setup.py egg_info: running egg_info creating pip-egg-info/GDAL.egg-info writing pip-egg-info/GDAL.egg-info/PKG-INFO writing dependency_links to pip-egg-info/GDAL.egg-info/dependency_links.txt writing top-level names to pip-egg-info/GDAL.egg-info/top_level.txt writing manifest file 'pip-egg-info/GDAL.egg-info/SOURCES.txt

Unable to install gdal in python 3.6.1 in macos Sierra

别说谁变了你拦得住时间么 提交于 2019-12-01 05:28:54
问题 I was trying to install gdal in python 3.6.1, but getting the following error. How to overcome this? bibinwilson ~ $ pip3 install gdal Collecting gdal Downloading GDAL-2.2.1.tar.gz (475kB) 100% |████████████████████████████████| 481kB 397kB/s Complete output from command python setup.py egg_info: running egg_info creating pip-egg-info/GDAL.egg-info writing pip-egg-info/GDAL.egg-info/PKG-INFO writing dependency_links to pip-egg-info/GDAL.egg-info/dependency_links.txt writing top-level names to

GeoDjango could not find GDAL library in Windows 10

家住魔仙堡 提交于 2019-12-01 05:20:54
I am using Django 11.4 on Windows 10 and I am having problems when I try and migrate my models. I receive this error: django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal201", "gdal20", "gdal111", "gdal110", "gdal19") I followed GeoDjango's installation instructions ( https://docs.djangoproject.com/en/1.11/ref/contrib/gis/install/ ), but I am still having trouble. Everything I have found on this error says to change the system environment variables. I installed OSGe4W and added GDAL_DATA = C:\OSGeo4W\share\gdal as well as PROJ_LIB= C:\OSGeo4W\share\proj . I

GeoDjango could not find GDAL library in Windows 10

落花浮王杯 提交于 2019-12-01 04:01:27
问题 I am using Django 11.4 on Windows 10 and I am having problems when I try and migrate my models. I receive this error: django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal201", "gdal20", "gdal111", "gdal110", "gdal19") I followed GeoDjango's installation instructions (https://docs.djangoproject.com/en/1.11/ref/contrib/gis/install/), but I am still having trouble. Everything I have found on this error says to change the system environment variables. I

编译GDAL2.3.0的C#接口

孤街浪徒 提交于 2019-11-30 22:33:00
编译完GDAL和JAVA接口后,如果需要使用C#调用,就需要编译C#的接口。方法如下: 注意:使用的SWIG版本不能使用太高版本,否则,会报一堆的类型未找到的错误,我是无从下手。使用swig2.0.7(据说2.0.6到2.0.9)表现都是一样的问题,后面详细解释修改代码的方法。 配置好nmake.opt里的swig后。启动vs2015的64位命令行工具,并切到gdal源码的swig/csharp目录下。执行如下命令: nmake /f makefile.vc interface 等待执行完后,先不要编译,进入到swig/csharp目录下,修改如下生成的源码文件: swig\csharp\gdal\GdalPINVOKE.cs swig\csharp\ogr\OgrPINVOKE.cs swig\csharp\osr\OsrPINVOKE.cs 这三个文件,分别按下图注释掉多余的代码: 然后分别打开如下三个文件 csharp\gdal\Band.cs csharp\gdal\Dataset.cs csharp\gdal\Driver.cs 修改第17行,将红色位置部分按如下修改,解决接口成员名错误问题。 Band.cs文件: public Band(IntPtr cPtr, bool cMemoryOwn, object parent) : base(GdalPINVOKE.

Using pip to install modules in python failing

╄→гoц情女王★ 提交于 2019-11-30 18:31:49
I'm having trouble installing python modules using pip. Below is the output from the command window: Note that I installed pip immediately before trying to install GDAL module. I am on a w7 64bit machine running python 2.7 Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\jnunn\Desktop>python get-pip.py Downloading/unpacking pip Downloading pip-1.2.1.tar.gz (102Kb): 102Kb downloaded Running setup.py egg_info for package pip warning: no files found matching '*.html' under directory 'docs' warning: no previously-included files matching '

Resize huge images in Python (bigger than available RAM)

自古美人都是妖i 提交于 2019-11-30 15:44:55
I would like to resize and split huge (1 TB) images to 256x256 pixel tiles (Zoomify / OSM / Google Maps / XYZ schema). Images would be in BigTIFF or PSB (Large Document Format or Photoshop Big) format. What are the available libraries which can do this? I was having a look at GDAL but it was producing quite blurry output and I couldn't set it to interpolate better. Ideally I'd be looking at a Lanczos interpolator for such task. Are there any native Python libraries, or wrappers for C based libraries which can do this? Can the Python wrapper for imagemagick do such thing? If no Python library