Questions tagged [gdal]

GDAL (Geospatial Data Abstraction Library) is a library for reading and writing raster geospatial data formats.

GDAL (Geospatial Data Abstraction Library) is a library for reading and writing raster geospatial data formats.

2184 questions
6
votes
2 answers

generating GeoTIFF colormaps

I am generating 2D statistical maps and would like to also generate and save the image colormaps. The mean-size image has a data type of float32. The following example modified from online sources: with rasterio.open(name,'w',**profile) as dst: …
EBo
  • 355
  • 1
  • 3
  • 17
6
votes
1 answer

Merging multiple bands together through gdal...correctly

I'm using some Sentinel-2 satellite images in python. Now I have no issues using the newer ones (past 2016). But I need to use some from 2016. These are not preprocessed in the same way by the European Space Agency! Normally when you download a…
Mars
  • 341
  • 1
  • 3
  • 12
6
votes
3 answers

install GDAL in python 3.6

i use python 3.6 32bit on os windows 32bit and i try to install GDAL package using first this manual but without success and after via pip error again. from osgeo import gdal Traceback (most recent call last): File "", line 1, in…
Mar
  • 683
  • 2
  • 11
  • 26
6
votes
1 answer

Pathos can't pickle SwigPyObject created by GDAL module

I have a class which opens a large raster image using the GDAL module (https://pypi.org/project/GDAL/) and extracts small images from it at a number of locations, defined by a passed list of coordinate tuples. I want to process a large list of…
liamvharris
  • 350
  • 3
  • 16
6
votes
2 answers

libgdal.so.20 issue centos rgdal

Can someone help me to understanding what is the problem of rgdal ? I installed gdal 2 for centos 6 64 bits but i didn't succeed to install rgdal. I tried to figure out what is the issue but i didn't found anything useful on the internet . this is…
Saber bouabid
  • 117
  • 1
  • 11
6
votes
1 answer

GDAL in flexible environment

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…
Dan Cogswell
  • 475
  • 3
  • 16
6
votes
1 answer

How to load a directory of GRIB files into a Dask array

Suppose I have a directory with thousands of GRIB files. I want to load those files into a dask array so I can query them. How can I go about doing this? The attempt below seems to work, but it requires each GRIB file to be opened, and it takes a…
6
votes
1 answer

Using gdal_grid in Python with np array

I use Python 2.7. The gdal 2.1.2 library is installed. I have a np array like this: [[ 2.34845824 48.84626174 15.20369 ] [ 2.34966283 48.84910128 13.88528 ] [ 2.35120647 48.85098931 15.76322 ] ..., [ 2.3556567 48.8415611 15.42184…
Paolo Z.
  • 71
  • 5
6
votes
1 answer

How to add GDAL as a dependency to a Python package

I am trying to package a Python script for PyPI that uses GDAL. I started by including a direct reference in my setup.py: install_requires=['GDAL==1.11.2'], This way the package failed to install in my test virtual…
Luís de Sousa
  • 5,765
  • 11
  • 49
  • 86
6
votes
3 answers

Rasterio installation failing

I am trying to update my rasterio version from 0.25 to 0.32 on a python 2.7 installation, but running up against foll. issue. Any info on how to fix it? Running setup.py clean for rasterio Failed to build rasterio Installing collected packages:…
user308827
  • 21,227
  • 87
  • 254
  • 417
6
votes
3 answers

Linker Error Building GDAL

I am building GDAL from source using the MSVC 2015 64-bit command prompt. I am using Windows 8. Part way through the build, I get the following error: Creating library gdal_i.lib and object gdal_i.exp odbccp32.lib(dllload.obj) : error LNK2019:…
rmkemker
  • 470
  • 5
  • 16
6
votes
1 answer

no such option: --no-install

I am trying to setup cartodb in ubuntu 12.04 by following https://github.com/danseely/cartodb-install/blob/master/DEV-INSTALLATION.md and as a part of the installation, there are some python dependencies to be installed.Below is a part which i tried…
harinish
  • 261
  • 3
  • 5
  • 17
6
votes
2 answers

Homebrew cannot link libpng trying to install gdal

I'm trying to install gdal via homebrew so I can start working with topojson, but I keep getting this error and I'm not sure how to resolve it? k-6177:Cellar k$ brew install gdal ==> Installing dependencies for gdal: libpng, giflib, libtiff, lzlib,…
moku
  • 4,099
  • 5
  • 30
  • 52
6
votes
2 answers

readOGR .gdb with multiple Feature Datasets in R

I am trying to read shapefiles contained within a geodatabase file (.gdb) into R. The .gdb contains two Feature Datasets with multiple Feature Classes within each. The problem is only one of the two Feature Datasets is being read. Specifically, I…
habd
  • 158
  • 1
  • 8
6
votes
2 answers

unable to install rgdal in ubuntu 14.04 (undefined to reference to 'pj_ctx_fclose')

I tried to install rgdal with configure.args but no luck. Installed gdal version: gdal-config --version 1.11.2 ogrinfo --version GDAL 1.11.2, released 2015/02/10 found gdal binary tools: ls /usr/bin | grep…
seifer_08ms
  • 375
  • 5
  • 17