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
12
votes
3 answers

Unable to install gdal in python 3.6.1 in macos Sierra

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…
bibinwilson
  • 348
  • 2
  • 6
  • 20
12
votes
3 answers

ImageMagick: How to get rid of TIFFWarnings/768 message about "Unknown field" when processing TIFFs?

I process ETOPO1.tif into a cropped area hillshade. I get a tiff image looking like : When I process it via ImageMagick, it runs successfully. But I get the following set of warning messages: convert Yug-shadedrelief.tmp.tif -fuzz 7% -fill "#FFFFFF"…
Hugolpz
  • 17,296
  • 26
  • 100
  • 187
12
votes
1 answer

Problems converting from shape to topojson

I'm trying to convert a shapefile of mexican municipalities into a topojson and displaying it using d3.js using this tutorial http://bost.ocks.org/mike/map/#converting-data. I've managed to convert it but I can't manage to display it. Any help will…
eclark
  • 819
  • 7
  • 16
12
votes
6 answers

Using pip to install modules in python failing

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…
James N
  • 603
  • 3
  • 8
  • 18
11
votes
1 answer

GDAL WriteArray issue

I'm utilizing python GDAL to write a raster data into a .tif file. Here's the code: import numpy, sys from osgeo import gdal, utils from osgeo.gdalconst import * # register all of the GDAL drivers gdal.AllRegister() # open the image inDs =…
Pat
  • 199
  • 1
  • 2
  • 7
11
votes
1 answer

Iteratively load image block by block where blocks are partially overlapped

Trying to process a large satellite image (~10GB). For memory efficient processing chunk of image (block/tile) is being loaded into memory in each iteration. The sample code for this as below: def process_image(src_img, dst_img, band_id=1): …
tachyon
  • 471
  • 3
  • 14
11
votes
2 answers

How can I install a recent version of GDAL on Amazon Linux?

I'd like to install GDAL on an EC2 instance running Amazon Linux (which I think is based on RHEL 6). I'd like to avoid compiling from source if possible. The version of GDAL included in the EPEL Yum repository is too old for my purposes…
user2950747
  • 695
  • 1
  • 6
  • 19
11
votes
1 answer

RGDAL won't install

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…
TheRealJimShady
  • 777
  • 3
  • 9
  • 24
11
votes
1 answer

Efficient way of inputting large raster data into PyTables

I am looking for the efficient way to feed up the raster data file (GeoTiff) with 20GB size into PyTables for further out of core computation. Currently I am reading it as numpy array using Gdal, and writing the numpy array into pytables using the…
user3235542
11
votes
2 answers

D3js: How to design topographic maps?

Given a GIS raster with elevation data, How to design a topographic map in D3js ? Is there any example of relief / topographic maps of cropped lands made using D3js ? Not working: I explored the posibility of .tif > gdal_contour.py > .shp >…
Hugolpz
  • 17,296
  • 26
  • 100
  • 187
11
votes
2 answers

Incorporating GDAL/OGR into an iOS project - A quick guide

Here is the problem: GDAL is a fantastic open source library designed to manage complex GIS data, both raster as well as vector. It is fully compiled for the Mac OS (courtesy of William Kyngesburye) and other platforms but not for iOS. Browsing the…
MiKL
  • 1,850
  • 1
  • 15
  • 23
11
votes
2 answers

How to use GDAL to create geotiff from tiff and 4 corners latitude and longitude

I have an image (map) without geo data in TIFF format. I need to get GeoTIFF file from my image. I have latitude and longitude for each corner of my map. How can I add my geo data to my image in Google spatial refence to get geotiff? I know that…
rowwingman
  • 5,589
  • 7
  • 33
  • 50
10
votes
2 answers

GDAL : Reprojecting netCDF file

I am trying to convert netCDF files to EPSG:3857 for use with Mapbox by using GDAL. This would be .nc to .nc conversion. Not to raster. I am open to using GDAL or other methods to do this. This data must be reprojected before it goes to a console…
David
  • 605
  • 2
  • 14
  • 44
10
votes
4 answers

How to add GDAL in docker

I am trying to setup Docker and geodjagno. Upon docker-compose up I have this following error: django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal", "GDAL", "gdal2.2.0", "gdal2.1.0", "gdal2.0.0", "gdal1.11.0",…
Papouche Guinslyzinho
  • 5,277
  • 14
  • 58
  • 101
10
votes
2 answers

GDAL GDALRATSetValueAsString() how to save Chinese characters (c#)?

I need help with GDAL. The string value with Chinese symbols is not readed/saved correctly (C#). For SAVING grid value we using: private static extern void GDALRATSetValueAsString(IntPtr handle, int row, int field,…
Drasius
  • 825
  • 1
  • 11
  • 26