Questions tagged [gdal]

GDAL (Geospatial Data Abstraction Library) is an open source translator library & set of command-line utilities for processing raster spatial data formats. As a library, it presents a single abstract data model to the calling application for all supported formats. It also comes with a variety of useful commandline utilities for data translation and processing.

Filter by
Sorted by
Tagged with
3
votes
1answer
28 views

Problems with analyzing MODIS Aerosol Optical Depth

I want to extract AOD from the following hd5 file.Would be grateful for any help. Objective is to have a tif file projected in EPSG:4326 with values of all 3 bands. https://e4ftl01.cr.usgs.gov/MOTA/...
1
vote
1answer
17 views

Converting BMP image into TAB MapInfo format using MapXtreme?

I am developing a plugin for MapInfo and I have BMP image with all the prop and I have rectbounds. I have done through GDAL using the below solution. But I am not getting proper output which I am ...
1
vote
2answers
86 views

Reading big raster getting warnings using GDAL Python

I am trying to use GDAL Python API to deal with some big raster, and when I read these rasters into Python, I get warnings like that: Warning 1: TIFFFetchNormalTag:ASCII value for tag "GeoASCIIParams"...
2
votes
0answers
45 views

“RasterioIOError: This is a BigTIFF file. BigTIFF is not supported by this version of GDAL and libtiff” error message

I am trying to read a raster ".tif" file with rasterio: import rasterio raster_path = r'.........\file.tif' raster = rasterio.open(raster_path) but I am getting the following error message: "...
0
votes
1answer
26 views

Mapbox GL JS : Setting bounds of raster tile layer

I have some weather radar data as a raster tileset. Mapbox documentation states that raster tilesets will default to the size of the world on the map unless otherwise specified. Here is my code for ...
0
votes
0answers
30 views

Error on “go get github.com/lukeroth/gdal” [on hold]

When I type "go get github.com/lukeroth/gdal" in windows machine, I am getting an error and it says ..go\src\github.com\lukeroth\gdal\algorithms.go:4: ./go_gdal.h:8:10: fatal error: gdal.h: No such ...
0
votes
0answers
12 views

Convert sounding depths from NOAA S-57 ENC to GeoTIFF

I want to rasterize an ENC I downloaded from NOAA (https://www.charts.noaa.gov/InteractiveCatalog/nrnc.shtml) in order to have a XYZ grid of sounding depths. I should think this is an easy process, ...
3
votes
1answer
34 views

Find duplicate point geometries in a shapefile [on hold]

How to find a duplicate point geometries in point shapefile (around one lakh geometries) using Python OGR/GDAL
2
votes
1answer
41 views

Making polygon shapefile from unsorted point shapefile?

I have a point Shapefile with unsorted feature ID's (FID). I want to convert the same point file into polygon Shapefile by using python gdal/ogr. I got the help from link1 and link2. I'm able to make ...
0
votes
0answers
11 views

Performing cs2cs datum transformation using GDAL?

I'm using GDAL 3 to perform datum transformations. I'm trying to transform coordinates from a local datum to WGS84 using the following command: cs2cs +proj=latlong +ellps=clrk80 +towgs84=-166,-15,204 ...
1
vote
0answers
29 views

Error Finding proj.db using GDAL 3.0 With MapInfo v.15

I am using GDAL 3.0, MapInfo v.15, Visual Studio 2015, and c#. Recently I updated from Gdal 2.2 -> 3.0. Since then when I use aerials to create a pdf report and then upload to S3, I receive the ...
1
vote
2answers
62 views

Tools for georeferencing PDF's [on hold]

5 years ago I exported all our PDF record drawings to TIFF and georeferenced them using Esri Arc Desktop. This added the .tfw file associated with georeferenced images without modifying the original ...
0
votes
0answers
20 views

EWKT Support in GDAL/OGR CreateGeometryFromWkb

We're using geoalchemy2 Geometry Columns to store points to a postgis DB. The Column seems to return an EWKBElement which ogr fails to interpret correctly as the following test shows: import binascii ...
1
vote
0answers
11 views

Resample a raster to the grid of another unaligned raster using GDAL/pktools

Is there a way to resample a raster to the grid of another raster using Bash utilities (GDAL or pktools), if both of the rasters do not necessarily have their origins aligned (and without an ...
0
votes
0answers
22 views

Labeling contour lines through script [closed]

I've been working with QGIS I have a file with contour lines. I can easily label them through the UI but I can't seem to find a way to label them with a script/program. Is there any tool I can ...
1
vote
1answer
16 views

Get shortest/fastest path between two points from SpatialLines(DataFrame)

I have a large rivernetwork as a SpatialLines(DataFrame) and want to subset it so I get a SpatialLine with only the shortest/fastest path between two SpatialPoints(DataFrame) which propably need to be ...
1
vote
1answer
42 views

Cutting a portion of a satellite image based on coordinates in GDAL?

I have a satellite image of 7-channels (Basically I have seven .tif files, one for each band). And I have a .csv file with coordinates of points-of-interest that are in the region shot by the ...
0
votes
0answers
18 views

NotImplementedError: Wrong number or type of arguments for overloaded function 'CoordinateTransformation_TransformPoint'

Hello I am new to working with GeoTiff data and I am trying to grab lat/lon values from a tiff image. Here is my code: import gdal import matplotlib.pyplot as plt import osr # open the dataset and ...
1
vote
1answer
21 views

GDAL's Python wrappers don't load correct asc header informaton

I have a Python script that I am using to load .asc raster files and then work with the contents therein. However, it isn't loading the correct information that is specified in the headers. The .asc ...
0
votes
0answers
8 views

Parse Error After Updating GDAL Version

I have been running GDAL 201-1800 MSVC 2015 and GDAL-2.1.3-cp36-cp36m-win32.whl. I recently updated to GDAL 300 MSVC 2015 and GDAL‑3.0.1‑cp36‑cp36m‑win32.whl. My apps are built using c# in Visual ...
0
votes
0answers
12 views

Correcting an inaccurate edge effect on MODIS L2 swath data?

I am currently trying to process a MODIS MOD10_L2 product (Snow Cover 5-Min L2 Swath 500m, Version 6) to extract snow cover information. It's in HDF-EOS format and I process it with GDAL in Python and ...
2
votes
1answer
28 views

stack_raster.cpp:35:99: error: 'YES' was not declared in this scope

I've been playing around with C++ and the API for GDAL to create some functions that I have done using Python. One of them was to create a virtual raster based on a list of files found in certain ...
1
vote
2answers
47 views

Installing GDAL extensions in Geoserver

I'm trying to get GDAL extensions to work in a Geoserver standalone installation. I'm following these instructions: https://docs.geoserver.org/latest/en/user/data/raster/gdal.html Upon starting ...
0
votes
0answers
15 views

Grid specification with multiple z fields/attributes in VRT-file in GDAL

I am trying to transform a csv file into a tiff-file (raster). As a first step I am creating a VRT-file. My csv has the following row structure: E_KOORD,N_KOORD,Z1,Z2,Z3 How do I correctly specify ...
1
vote
0answers
25 views

Calculating percentage/fraction of thematic pixels with coarser resampled pixels in QGIS/GRASS

I am using QGIS 3.4.9 on Mac OS10.13.6. How can I edit raster data type to change it from thematic to continuous/quantitative? details: I am trying to calculate the fractional (percentage) ...
2
votes
0answers
22 views

Resolution for different layers using Python GDAL

I'm extracting data from a GRIB file using GDAL in Python 3 on CentOS. The model is 40 km resolution, and is usually 151x93. When I try to extract data from band 195, I get the following error: ...
1
vote
1answer
38 views

Opening a BigTIFF file in Python

I am trying to open and extract data from a 90MB TIFF file using Python. The code I'm using is the following: from osgeo import gdal, osr, ogr def get_value_at_point(rasterfile, pos): gdal....
0
votes
0answers
19 views

How to apply the xyz translation vector derived from IceSAT altimetry to an ArcticDEM strip?

Laser altimetry data from the NASA IceSAT spacecraft is used to compute x, y, and z offsets for ArcticDEM strip files. The values of these offsets are contained within the DEM metadata, but are not ...
2
votes
1answer
27 views

gdal_translate GeoTIFF to KMZ results in transparent image

I know this has been asked before but I have tried just about every post I've found and nothing seems to work. I have a GeoTIFF where areas outside the dataset have been set to nodata When I open the ...
1
vote
0answers
37 views

GDAL or rasterio to find minimum extent of multple files in command line

I have two files, GeoTIFFs (.tif) in this case which need to be cropped to each other's minimum overlap, and have matching spatial resolutions. I also want to round their Pixel Size to a whole number (...
3
votes
1answer
43 views

Get Layer's Raster Band Data in pyQGIS

In QGIS I am trying to read raster band data from a specific layer in my Python plug in. I can easily get access to the layer from the console with something like this. iface.mapCanvas().layers()[0] ...
1
vote
1answer
25 views

Convert all KMLs within a directory to SHP, zip by name, and move to another output folder? [closed]

I have the requirement to convert a list of ~100 KML files into shapefiles and later merge and upload the polygons as one layer into ArcGIS. I'm new to GIS and Python. I've been able to convert ...
0
votes
1answer
45 views

GDAL - creating tiles from TIFF with world file

Several years ago I created multiple tiles (xyz) from orthophotomaps using GDAL with success but now I'm getting this error and I don't know what I'm doing wrong. This is the error: Traceback (most ...
0
votes
0answers
17 views

GDAL Python JPEG2000 read error on Windows

I recently went back to Windows from Linux to find out that GDAL returns the following error when trying to open Sentinel-2 JPEG2000 files: not recognized as a supported file format The odd thing ...
0
votes
1answer
28 views

No module named 'osgeo' after installing GDAL on Mac

I installed GDAL on Mac and it was successful because when I type in the terminal : gdalinfo --version it renders me the right version. The issue is when I switch to Pycharm or the default IDLE of ...
0
votes
1answer
66 views

Georeferencing VNP46A1*.h5 Data

I'm trying to analyze nighttime lights of a specific area with VNP46A1 data. I got my data from this website, but I could find only few tutorial about this product, and one of them was ...
1
vote
0answers
27 views

SQL server 2012 convert Multipolygon geometry to geography - GDA94 / MGA zone 55 coordinate reference system

Is there a way to convert geometry column value which has GDA94 / MGA zone 55 coordinate reference system into Geography value in SQL server 2012. The layer is a multipolygon layer We were having the ...
2
votes
1answer
52 views

How to rasterize individual feature (polygon) from shapefile using GDAL/OGR in Python?

I would like to convert the individual records (polygons/features) of a shapefile to raster using GDAL/OGR. Here is the example shape and the mask raster. Rasterizing the full layer with all records (...
0
votes
0answers
16 views

Problem executing Raster/Extraction/Clip Raster by Mask Layer

QGIS/GDAL environment: QGIS 3.8, gdal 2.4.0, macOS 10.14.6, python 3.6.5 I have successfully added a polygon ( as 2D and 25D objects ) to my project from CSV files using WKT format. With a ...
0
votes
1answer
34 views

Converting HDF5 to GeoTIFF using GDAL

I'd like to convert a subset from HDF5 to GeoTIFF The data is OMPS Aerosol Index data (EarthData login to download) https://snpp-omps.gesdisc.eosdis.nasa.gov/data/SNPP_OMPS_Level2/OMPS_NPP_NMTO3_L2.2/...
0
votes
0answers
16 views

Download GDAL 2.4 on Mac OS High Sierra command error for Python

I don't have any coding experience but I have to build a program for work that has to do with NDVI (which Google says I can do with the GDAL package). Please explain responses keeping in mind I have ...
1
vote
0answers
54 views

What should I set vertical exaggeration to in gdaldem?

In the comments to another question I suggested that I would use a value of between 5 and 7 for the vertical exaggeration in gdaldem. The questioner pointed to the ESRI docs where they suggest a value ...
1
vote
1answer
40 views

GeoDjango can't find GDAL:

I'm following this tutorial: https://docs.djangoproject.com/en/2.2/ref/contrib/gis/tutorial/, I installed every component necessary. But it seems like Django can't find the gdal module. I have gdal ...
1
vote
1answer
28 views

gdalwarp cutline creates artefacts not quite no data

I am trying to clip an imagery tile by a shapefile using gdalwarp. I have tried a number of different commands... gdalwarp -of GTiff -cutline Coast.shp IN.JPG OUT.tif gdalwarp -of GTiff -dstnodata ...
1
vote
1answer
34 views

Clipping raster layer supplied from web (e.g. OSM)

When I try (in QGIS 3.8 "Zanzibar") to clip a "web layer", i.e. a raster layer provided from the web (e.g. an OSM map loaded via the QuickMapServices plugin) by the usual method Raster > Extraction > ...
0
votes
2answers
58 views

Converting GeoTIFF to np array?

I am fairly new to GIS in general. I am having some issues converting a GeoTIFF into an numpy array. There are multiple questions online about how to do it, I've tried, many, with the same result ...
0
votes
0answers
9 views

Getting elevation data of a location using ALOS data

I'm working on a program to determine the line of site that a particular point will have using the ALOS data set from JAXA. So far I've managed to download a data set, and am a confused on where to go ...
1
vote
0answers
28 views

Warping a GeoTIFF File (Error1: Cannot open CSV)

Here is my code for the script : import os import subprocess as sub # get your files path = r'C:\Users\User\Downloads\jalna\pdf\test' files = [os.path.join(path, f) for f in os.listdir(path) if f....
1
vote
3answers
36 views

GDAL 2.x method for determing if an object is a raster or a vector

What is the correct method to determine if the resulting object is a raster and/or a vector from the result of a gdal.OpenEx call? The "old" way (GDAL/OGR Determine if dataset is raster or vector) ...
1
vote
1answer
29 views

GDAL rasterise vector to raster error

I am trying to convert a SHP vector file of X,Y,Z bathymetry. I am trying to use the GDAL Rasterise (vector to raster) tool. When I run it I get the following error in the log. I have tried looking ...