OGR_LINK_FIELD to filename in a Geospatial PDF
Im using gdal_translate to create a Geospatial PDF. im trying to add file path to my feature when clicking on them by using: -co OGR_LINK_FIELD=<column whit path> i creating my pdf in the main...
View ArticleGdal-Python..image pixels changing cumulatively
I have a image….i want to change the pixel values in the image by cumulative addition. example: if it rains the pixels in the image will get changed by some percentage and if it rains again some other...
View Articlegdal_translate crashes on huge jp2
I have 44GB jp2 file, I want to translate it to tif file, but once it reaches 10% it crashes. No messages, just stopped. This is my command: gdal_translate.exe -of GTiff --config GDAL_CACHMAX 8000 -co...
View Articleextract scientific layers from MODIS HDF Dataeset using Python GDAL
I have been trying to extract scientific data layers from MODIS HDF files but without success. Before I have been doing this type of task using Arcpy, but I want the script that I am currently working...
View Articlegdalinfo for Modis layer “NDVI”
I am trying the following command to get info on the NDVI MODIS layer stored in HDF file. I always receive an error. the command and error as below: gdalinfo...
View ArticleSkip a specified input layer in ogr2ogr
I am using ogr2ogr to load data from multiple GML files into PostGIS. As shown in the ogrinfo output below, each GML file has multiple layers. Had to open data source read-only. INFO: Open of...
View ArticleUsing GDAL in C++. Create multiple GDALDatasets using a GDALDriver produces...
I am trying to create multiple GDALDataset objects. All of them are supposed to be in the .tif format, so for all of them I use the same GDALDriver. I am working in C++ (Visual Studio) and when I build...
View ArticleReadAsArray leaves Qgs in unstable state
I have a QGIS plugin that reads a raster to get the elevation at vertex points in a polyline. The issue is that even though a single call to ReadAsArray(…) appears to work, if I immediately exit QGIS,...
View ArticleGRID-file: get max extent for all z-values above given value
I have a GRID-file with a quite large extent. For an automatic workflow I need the maximum extent/bounding-box for all z-values that are over a certain range. For example: Get the maximum extent for...
View ArticleGDAL memory raster + OpenLayers
I’m trying to improve my use of GDAL for creating and sending images to an OpenLayers map, but I have some memory issues. Here is the thing : 1. JS send a query to server with map parameters (bbox,...
View ArticleAccess MEM data from GDAL?
I don’t have any answers (yet) from from previous question on GDAL memory raster + OpenLayers, so i’ll try to ask an easier question Anyone knows how to access GDAL memory with command lines when using...
View ArticleConditional statement in gdal_calc with result as float, not boolean
Many examples on gis.se that refer to gdal_calc give a boolean example. example 1 example 2 If I need to calculate a conditional statement on a float: If Raster_Value >= 1024, then 1024; else...
View ArticleConverting multi-geometry GML with ogr2ogr not working
I am having difficulties with GML loading in PostGIS with ogr2ogr. It is a GML of buildingparts containing both polygons and (label)-points. In this example (below) I have a selection of 9 objects. The...
View ArticleGeo-Referencing an image from google maps with gdal_translate
I am trying to geo-reference an image using gdal_translate in a command prompt. Currently I have the following gdal_translate.exe -of GTiff -a_nodata 0 --config GDAL_DATA "Config location" -a_ullr...
View ArticleConvert to lat-lon coordinates GDAL
I have a netCDF file and would like to convert it to LAT-LON coordinates. 1) I do not know the projection in the file but from the website of the data provider, the data is on a polar-stereographic...
View ArticleHow to create multiple external overviews for a geotiff with gdal?
I want to have mutiple overview files (one for each overview level) for a GeoTiff, so I’m able to edit this files in a raster editor. How can this be done? Unfortunately, gdaladdo -ro creates only one...
View ArticleHow can I create an aggregate GDAL dataset with a specific ordering for...
I have a number of raster datasets (with common projections, pixel sizes, and pixel alignments) that I want to mosaic into a single dataset. The source datasets overlap in a number of areas; in those...
View ArticleIs it possible to do parallel processing in GDAL and QGIS?
It seems when processing with large raster dataset in QGIS, It causes crash dump, for example in QGIS failing to complete clip or intersect and crash dump in qgis , Is it possible to use gdal parallel...
View ArticleQGIS/OGR shp to tab export – crashing Mapinfo due to number format issues
I created a vector grid in QGIS and it exports as SHP -no issues. When I save as tab and try to open the file in MapInfo it crashes. According to...
View ArticleASCII file with latitude, longitude and data to GeoTiff using Python
I have a .asc file with three columns of data: longitude, latitude and a data value. Each latitude and longitude point represents the location of a centriod of a 1/8 degree unprojected grid. I want to...
View Article