Skip to main content

Questions tagged [gdal]

GDAL (Geospatial Data Abstraction Library) is an open source translator library for raster and vector geospatial data formats.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

Modifying GML with xlink:href attributes to simple GML

I have a application-specific GML file that has non-GML tags (I mean geometry tags invented by the application experts). I do not want to read the gml and convert it to python objects or WKT. I just ...
milad's user avatar
  • 729
0 votes
1 answer
23 views

Extracting value from raster file using UTM coordinates in python

I've been trying to get value from a raster file of single band using UTM coordinates. But all I'm getting is value 0 for all the locations. I have attached that part of the code where northing_list ...
Balamurugan S's user avatar
0 votes
0 answers
35 views

How to generate an orthomosaic image from multi-spectral drone captured images [closed]

I have a set of multi-spectral images captured by a drone stored in folder, using file_name we can derive its band and index, for example: - ('IMG_0298_1.tif', 'Red', 1) - ('IMG_0298_2.tif', 'Green', ...
M. D. P's user avatar
  • 101
0 votes
0 answers
12 views

use ogr2ogr shp to s57 error

I have used ogr2ogr -f "S57" 12345.000 12345.shp -skipfailures --Debug ON, but it fails. The console show: GDAL: Proxy driver FileGDB not registered due to ogr_FileGDB.dll not being found ...
user251467's user avatar
0 votes
0 answers
43 views

GDAL Warp extremely slow on Python API

I am trying to export one VRT to TIFF using GDAL Warp. My VRT has some scale, offset, reprojections, etc, but nothing too crazy. I have observed that trying to perform the warp from the Python API is ...
Guillermo Moreno Castaño's user avatar
1 vote
0 answers
42 views

Issues with GDAL installation - ogr not available?

I am attempting to install GDAL on my Windows 10 machine. I have previously done this successfully using the wheels from Gohlke's now deprecated site so I am learning a new way to do an old thing. ...
Graham Oxman's user avatar
-1 votes
0 answers
19 views

GDAL with ECW support on Ubuntu [duplicate]

I'm trying to install GDAL with ECW support on Ubuntu 22.04.4, but I'm getting an error I can't figure out after running the "make" command below. This is an extract from the error: /usr/bin/...
slaicha's user avatar
0 votes
1 answer
34 views

Add Scale and Offset to VRT from python

I'm using the python GDAL package to build a VRT containing multiple bands. These bands might have a scale and offset to be applied. Is there any way to add these parameters to the VRT when creating ...
Guillermo Moreno Castaño's user avatar
0 votes
0 answers
60 views

GDAL with ECW support on Ubuntu

I'm trying to install GDAL with ECW support on Ubuntu 22.04.4, but I'm getting an error I can't figure out after running the "make" command below. This is an extract from the error: /usr/bin/...
slaicha's user avatar
1 vote
0 answers
32 views

GDAL - From jp2 image with rpc file to Orthophoto geotiff and keep the image rotation

We are trying to convert a jp2 image with rpc to orthoPhoto geo tiff. We do the following process. The problem is that in the ortho.tiff file the image don't preserve it's rotation angle from the jp2 ...
Zlex's user avatar
  • 11
0 votes
0 answers
46 views

MODIStsp R package: unable to download land cover data

I am trying to download land cover data using the MODIStsp R package without using the GUI, using the following code: library(remotes) remotes::install_github( "ropensci/MODIStsp" ) ...
Saïd Maanan's user avatar
0 votes
0 answers
32 views

QGIS/GDAL warp(reproject) throws 'ERROR 5: dfMax should be strictly greater than dfMin' when run in Python script

I have ~ 150 .xyz-files (DEMs) which I try to reproject. When I reproject them within QGIS via raster -- > warp everything works fine. First I tried the batch processing option with warp(reproject)...
i.i.k.'s user avatar
  • 1,753
0 votes
1 answer
41 views

Working with COG in GDAL

I have worked with GDAL previously and USGS 1/9th arc second data many years ago before I became severely ill and had to give it up. I am now looking at resurrecting what I was doing. The problem is ...
FalloutBoy's user avatar
2 votes
1 answer
48 views

Splitting SHP file based on property starting with an underscore

I found a rather annoying "feature", when trying to split a SHP file based on values of a property, which has a name starting with and underscore (like _property). The problem occurred when ...
pawel_kw's user avatar
1 vote
1 answer
75 views

"Latitude Grid Not Spaced Evenly" warning from NCEP-NCAR reanalysis 2m Air Temp raster

I am using air temperature data from the NCEP-NCAR reanalysis along with a country shape file to calculate mean air temperature by country. The NCEP-NCAR project has various air temperature rasters ...
hayfreed's user avatar
  • 123
0 votes
0 answers
26 views

Add transparency to raster bands where did not exist before

My original radar image is a tiff image with one single band. Metadata:AREA_OR_POINT=Area Image Structure Metadata: COMPRESSION=DEFLATE INTERLEAVE=BAND Corner Coordinates: Upper Left ( ...
Cybergei's user avatar
0 votes
0 answers
22 views

Issue with Opening Sentinel-1 Product in SNAP: GDAL Data Type Error

I am encountering an error when trying to open a Sentinel-1 product in SNAP (Sentinel Application Platform). The error message is as follows: I am looking for guidance on how to resolve this issue. ...
DMAGAS SENAVIRATHNA's user avatar
0 votes
1 answer
35 views

Why does GeoServer convert negative values in an "8-bit signed" type raster to positive numbers?

I have a single-band 8-bit signed dataset created in ArcGIS Pro, and the raster information is as follows: When I load the data into QGIS, issues arise with the negative value areas at small scales, ...
苏云明's user avatar
0 votes
1 answer
56 views

How to use the gdal_edit tool from GDAL installed within Anaconda?

I intend to modify the color interpretation of raster bands using the gdal_edit tool(https://gdal.org/programs/gdal_edit.html#gdal-edit), and I have found relevant commands online to accomplish this ...
苏云明's user avatar
0 votes
0 answers
26 views

How to clip a hole with ogr2ogr? [duplicate]

ogr2ogr has a rich set of clip options, e.g., -clipsrc [<xmin> <ymin> <xmax> <ymax>]| WKT|<datasource>|spat_extent But how can I clip the same sized hole instead?
Dan Jacobson's user avatar
0 votes
0 answers
32 views

"Floating point exception" with gdal.AutoCreateWarpedVRT and GDAL 4.3.1

My application uses GDAL 3.4.1 and proj 8.2.1 with the Python bindings and I'm using gdal.AutoCreateWarpedVRT to reproject a Geodetic (epsg:4326) to Mercator (epsg:3857) dataset. Sometimes, but not ...
Jason Beverage's user avatar
0 votes
1 answer
38 views

Can't create GeoPDF in QGIS (MacOS)

I am trying to create a GeoPDF in QGIS (Project > Import/Export > Export map to PDF). I'd like to tick the box "Create geospatial pdf" but it is greyed out. Please assist, an ...
Ronja's user avatar
  • 1
0 votes
1 answer
65 views

Entering a GDAL command in QGIS

I saw the post "Shifting extent and data values of NetCDF with GDAL" describing the same problem as I have with the following solution: gdalwarp \ -s_srs "+proj=longlat +datum=WGS84 +...
Toth's user avatar
  • 5
1 vote
1 answer
60 views

How to use ogr2ogr -segmentize on a CSV file?

Here each line only has two nodes. $ cat file.csv WKT,ID,Name "LINESTRING (-900 -1450,-900 100)",0,900W "LINESTRING (-800 -1450,-800 100)",1,800W How can I use ogr2ogr -segmentize ...
Dan Jacobson's user avatar
0 votes
0 answers
50 views

Open File in Gdal with from Smb in Python

How can I open a file in GDAL from a SMB (or CIFS) server without storing the file in memory? I want to do something like this: import smbclient from osgeo import gdal with smbclient.open_file('//...
Math-dude's user avatar
0 votes
0 answers
35 views

Merge multiple JP2 images into a single GeoTIFF with GDAL

On QGIS they appear like this, overlaid on the OSM map. Here you can download the JP2 image set. I'm trying to merge them with GDAL with this script CD C:\OSGeo4W\apps\Python37\Scripts set "...
Koba's user avatar
  • 159
0 votes
0 answers
29 views

QGIS How to Transformation ITRF2020(EPSG:9989) Dynamic(Current Epoch) to Nad83(csrs)v7(EPSG:22717) Fixed

Background: QGIS version Maidenhead 3.36.3 QField version Congo 3.2.2 I have a QGIS project with a project CRS EPSG:22717. I have 2 GPKG layers. The first has an assigned CRS EPSG:9989 The second has ...
Mark's user avatar
  • 1
0 votes
0 answers
21 views

Unable to correctly visualize a PostGIS Out-DB COG Raster from private AWS S3 bucket on QGIS canvas

I cloud-optimized two similar TIFF files (small SRTM tiles) with GDAL and checked their validity as per here. I created an AWS IAM account giving it read-only access on S3 buckets and generated access ...
mic's user avatar
  • 345
0 votes
0 answers
15 views

gdal ogr transform c++ swaps axis order x to y [duplicate]

This is example #include "gdal/gdal.h" #include "gdal/ogr_spatialref.h" #include <iostream> void TransformBounds(double xmin, double ymin, double xmax, double ymax, ...
Vignesh M's user avatar
0 votes
2 answers
66 views

Ogr2ogr: How do I filter a .SHP based on multiple attribute values

I'm attempting to convert (to GeoJSON) & filter a .shp file by the value of multiple attributes. This example, using a single attribute (ID) value, works as expected but I'm confused by the syntax ...
DaveF's user avatar
  • 13
1 vote
0 answers
41 views

cgohlke gdal wheels - early version location

Problem: I recently found out that cgohlke gdal wheel site was taken down and redirected to a github repo. Though, I am unable to locate gdal.whl files that predate v2023.1.4 (3.6.1), even though PyPl ...
Binx's user avatar
  • 1,380
0 votes
1 answer
69 views

GDAL with ECW support on Windows

I have an 84GB ECW image I'm trying to split into tiles. Can anyone help me figure out how to install the ECW plug in from Hexagon for Windows (https://supportsi.hexagon.com/help/s/article/ERDAS-ECW-...
Biz's user avatar
  • 1
0 votes
1 answer
21 views

GDAL having issues converting binary .DAT files to GeoTIFF files

I've been trying to convert some SNODAS Unmasked data from the National Snow and Ice Data Center using their guide linked here: https://nsidc.org/data/user-resources/help-center/how-do-i-convert-...
LinuxBear's user avatar
1 vote
1 answer
49 views

Trouble merging TIFF files

I have several .tif files I need to merge. I've tried some methods but none of them work. First I warped them all into the same crs (they were originally a 32617 and I reprojected them to the same crs)...
Aleucid's user avatar
  • 11
1 vote
1 answer
23 views

GDAL org2ogr ESRIJSON Feature Paging

I'm trying to load some data from an Esri Feature Server URL into PostGIS, using ogr2ogr, but seem to be facing some issues with paging. The below code should in theory load all the Statutory Main ...
Tim R's user avatar
  • 33
0 votes
1 answer
39 views

Stripes in map are missing after gdalwarp and gdalbuildvrt

I have a problem with some GeoTIFF:s that are in EPSG:3006 and I need them in EPSG:3857. The problem is that after gdalwarp, and gdalbuildvrt I get transparent stripes in the vrt map This is one of ...
Mårten Swärd's user avatar
0 votes
0 answers
49 views

Conversion problem from TIFF to DTED using GDAL

I have downloaded a 30 m resolution DSM. I am trying to convert it from .tif to .dt2 (DTED) using the gdal translate command. However, I get the following warnings, which I do not interpret correctly: ...
cookieonfire's user avatar
1 vote
1 answer
42 views

GDAL ogr2ogr ESRIJSON to PG Date Formatting

I'm trying to load some data from an Esri Feature Server URL into PostGIS, using ogr2ogr but seem to be facing some issues with the date formats. The below code should in theory load all the World ...
Tim R's user avatar
  • 33
0 votes
0 answers
31 views

QGIS Processing Tools - IDW Grid not recognising point file

I'm trying to convert my point (PointZ) layer into a grid using the Processing algorithm, Grid (IDW with Nearest Neighbor Searching, but whenever I run the algorithm, I get the error: ERROR 4: `file://...
oliver's user avatar
  • 95
-1 votes
1 answer
222 views

libgdal-dev install problem on Ubuntu Noble 24.04

I've just upgraded to Ubuntu 24.04 from 23.10. As usual, the upgrade removed all GDAL (which was working perfectly). So under 24.04 I had to reinstall. I could install gdal-bin etc without problems, ...
Dave Favis-Mortlock's user avatar
0 votes
1 answer
35 views

Make a grayscale tif into a 4-band RGBA tif using gdal

I have a grayscale raster which returns the following information when I run gdalinfo on it Metadata: AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( ...
guest_231213's user avatar
3 votes
1 answer
44 views

Is it possible to get features by the WFS vector driver in a coordinate system that is not the default srs regarding the WFS capabilities?

We currently experiment with the gdal java bindings to receive data from a WFS service. Regarding the WFS specification a FeatureType must define its default coordinate system (Tag DefaultCRS). We ...
Alexander Schlottmann's user avatar
2 votes
1 answer
79 views

How could I set 8CONNECTED into gdal.Polygonize()

I've seen in several web pages and examples the next snippet: gdal.Polygonize(band, maskband, polygonizedLayer, ndField, [], callback=None) but I don't understand how to use the options parameter. In ...
Francisco Ruiz's user avatar
2 votes
1 answer
41 views

gdal.Translate producing error

I'm running a Python script that uses gdal.Translate to set an area of interest. I believe that the important parts are: from osgeo import gdal, osr, ogr # ... translate_options = gdal....
Ubron Cinzento's user avatar
3 votes
1 answer
263 views

Install GDAL into conda environment

I have a conda environment and install gdal into it as suggested here https://gdal.org/api/python_bindings.html with the following command: conda install -c conda-forge gdal However, when I try to ...
i.i.k.'s user avatar
  • 1,753
1 vote
0 answers
43 views

Access Violation following rasterdataset.Close() after GdalWarp, GDAL C# bindings

I have the following C# code to mosaic multiple rasters using GDAL C# bindings and GdalWarp method: try { Gdal.AllRegister(); // Open all the raster files in ...
Mehmet Erdoğdu's user avatar
0 votes
1 answer
35 views

GDAL-info with Java bindings not working correctly

When making a gdalinfo call on a drone-photo via the GDAL java-bindings api, the resulting string is sometimes being cut-off prematurely. I.e. the last part of result is missing. However if I run the ...
PeteHegn's user avatar
3 votes
1 answer
105 views

GDAL nearblack command missing certain areas

I have the following GeoTIFF which contains white around the sides. The raster band info is as follows for the white area Band 1 254 Band 2 254 Band 3 254 Band 4 255 To try and correct ...
user832190's user avatar
0 votes
1 answer
49 views

How does Float32 in GeoPackage raster work

The more general question I'm asking myself is: What (raster) datatype should I use for a GIS-based game I am making in non-gis software: GeoTiff+GeoParquet or GeoPackage? The software (Godot) has ...
Fee's user avatar
  • 1,210
0 votes
1 answer
40 views

Transforming ortho (.tiff) file from one epsg to other epsg

I am using GDAL to transfrom ortho from one EPSG to other EPSG. In my case I have used EPSG:32610 which is in (m) and transformed into EPSG:2227 which is in (us-ft). I am able to transform it using ...
Vivek Rao's user avatar

1
2 3 4 5
126