Quantcast
Channel: Question and Answer » gdal
Browsing all 397 articles
Browse latest View live

GDAL Sentinel-2 driver

Sentinel-2 images are usually provided in JPEG2000 format inside a zip-file with accompanying metadata. A driver has already been coded and will be shipped with GDAL 2.1: GDAL Sentinel-2 driver As Even...

View Article


Installing QGIS using Homebrew

I’ve been unsuccessfully trying to install QGIS using Homebrew (used Homebrew to install GDAL and GSL) as outlined here My OS is Mac Yosemite, 10.10.5. The installation sort of finishes, but with a...

View Article


Image may be NSFW.
Clik here to view.

How to make a network /tower coverage map in in mapbox

I am new to mapping and currently I am trying to make a map showing coverage of a network provider here in my country. The map I am trying to achieve should look similiar to that at...

View Article

Gdal and module import error when creating an .exe application with pyinstaller

I’ve been struggling since three days in a row to create a windows executable application from my python application. I have managed to get results but I’m not at all satisfied with the workarounds I...

View Article

Assing columnnames dynamically

I have an interesting problem: I need to batchprocess a few files. I do that in a for-loop, where some operations are performed. Later on I want to write the outcome into an existing shapefile which I...

View Article


failed gdal script from QGIS Georeferencer using Thin Plate Spline (TPS)

I’m trying to georeference a photo using QGIS Georeferencer plugin (this is an oblique photograph. I know I should be using a proper georectification routine, but my current work now is just to simply...

View Article

Overwrite the mosaic raster generated using gdal_merge.py?

Is it possible to overwrite the raster generated using gdal_merge.py? When I ran the command: % gdal_merge.py -init 255 -o out.tif in1.tif in2.tif it works fine, but if I ran the same command and...

View Article

Image may be NSFW.
Clik here to view.

How to improve poor image quality of “gdalwarp” operation result?

I’m trying to improve the result of gdalwarp operation. The image width and height are 6732x4721 GCP’s are: -gcp 0 0 38.005301407753 55.048725423557 -gcp 6732 0 38.184943751144 55.048725423557 -gcp...

View Article


Image may be NSFW.
Clik here to view.

MODIS MOD11A1 Reproject Change Data Value

I’m import and reprojected MOD11A1 with GDAL 1.10….my shell script is easy.. for file in *.hdf; do echo "map: $file" gdal_translate -of Gtiff -ot Int16...

View Article


How can I read the TIFFTAG_DATETIME using GDAL in Python

I am currently using GDAL from Python to read and transform coordinates and that works well. I would now like to be able to read some of the none geographic tags, for example, TIFFTAG_DATETIME using...

View Article

Image may be NSFW.
Clik here to view.

gdal2tiles generating nosensical data

I’m trying to convert a global irradiance map – generated by r.sun – into tiles to be layered onto OpenLayers using gdal2tiles. However, every single one of my outputs is turning into white noise and I...

View Article

gdal/python WriteArray working for 8-bit but not 16-bit

I’m trying to use GDAL/python API to open a raster, do some math, then write the two resulting arrays as rastes. One is to be an 8-bit raster and the other 16-bit signed. However, only the 8-bit raster...

View Article

How to set coordinate dimensions in Django GDAL API?

The Django GDAL documentation for coord_dim says: coord_dim Returns or sets the coordinate dimension of this geometry. For example, the value would be 2 for two-dimensional geometries. But how do I...

View Article


gdalwarp won't run with “cubic” resampling method

I am having an issue with running the gdalwarp command from command prompt. Basically I have a raster WGS84 file, which I would like to reproject to spatial reference which is using the Azimuthal...

View Article

Tiff: How to calculate Tiff Tag ModelPixelScaleTag (field 33550) and Field 34735

I have to manage a service which can return images in tiff format. This service is requesting another WCS Service from which it receives the Image File without geo-referenced informations. So i need to...

View Article


Image may be NSFW.
Clik here to view.

mosaic rasters with gdal_merge.py

I want to mosaic 2 rasters “rasa” and “rasb” using gdal_merge.py . While running the code, it produces an error ” No input files selected”. Can somebody help me to find the error in the code? import...

View Article

ogr2ogr (or other) simplification of polygons with shared boundaries

I am trying to simplify a collection of 100,000 or so polygons containing nearly 4 million vertices. The data is stored in a 2GB shapefile so there is no explicit representation of the topology between...

View Article


Image may be NSFW.
Clik here to view.

Georeferencing Himawari-8 in GDAL (or other)

Does anyone know the appropriate project information to georeference (and hence reproject) Himawari-8 AHI data in the IR? The images are 5500×5500 pixels. Currently I try these: ulx=-5570248.832537...

View Article

ogr2ogr – PostGIS to GML with nested attributes

I am attempting to create GML from PostGIS tables and having issues with nested tags. Before I waste too much time on this, I would like to know if what I am trying to do is possible with “ogr2ogr”. I...

View Article

ImportError installing GDAL on Ubuntu 14.04 with Anaconda Python 3.5

I installed the GDAL library on Ubuntu 14.04 through the Anaconda (Python 3.5) distribution. After installation, which seems to work fine, I try importing it and I get this error: >>>from...

View Article
Browsing all 397 articles
Browse latest View live