How to reproject raster from 0 360 to -180 180 with cutting 180 meridian
I have a geotiff raster image that has a coordinate system with longtitudes from 0 to 360. The horizontal center of the image is 180 longtitude. See image below: I want to transform it to EPSG:4326 SRS...
View ArticleReprojecting MODIS Sea Ice Extent and IST data using GDAL
This is an additional exploration of the problem described at Reprojecting MODIS Ice Sea Temperature products with gdalwarp which was never answered in a satisfying way (I apologise for the length of...
View ArticleWhy does R(gdal) mangle data when converting to geojson?
I’ve encountered issues with projections in .geojson files created by rgdal, but I never thought it would destroy my data, until I tried this (reproducible example):...
View ArticleBlack image using gdalwarp
Im a geomatics student; Currently, I try to geo-referencing a tif image with the QGIS GUI, and then I load and save the Gdal script. With the QGIS GUI, I managed to get a decent picture, then I exports...
View ArticleDownsampling Geotiff using summation – Gdal/Numpy
I am trying to downsample a 1 square km raster dataset to a much larger (.5 degree x .66 degree) dataset by summing all of the pixel values within this large grid cell. gdal_warp does not contain a...
View ArticleHow to have GDAL print layers of GeoPDF AND say which are raster vs vector
My Objective: I would like to use GDAL to convert a GeoPDF. I want the vector layers as shp files and the raster layers as tif files. I want to do this in a programmatic way. Edit: In reality, I want...
View ArticleErase shapfile (polygon) area from GeoTIFF
I’ve been reading several posts to do so and one option would be to use gdalwarp -cutline, but I would need to keep what it is NOT inside the polygon area. GDAL or any command-line tool does that?...
View Articlegdal_merge shifts rasters after processing, layer stack is slightly off
I have experienced that gdal shifts rasters. The outputs of gdal_warp are often skewed, have different pixel sizes and so forth. A known error which has also been discussed here. But now, I had to...
View ArticlePython crashes when I try to import GDAL after re-installing it
A while back I went through the installation process for GDAL by installing the core components and then the Python/GDAL bindings. Everything was fine when I would type in from osgeo import gdal....
View ArticleHow to convert CSV file in VRT
Im a geomatics student. For the treatment I would like to make, I use the gdal executable in QGIS file, with a DOS command. I have a csv file like this (test.csv) : X Y -5.48 42.81 -4.78 42.52 -5.06...
View ArticleDtm format save only heights
I need dtm format that store only heights and scaling and left up position for saving storage I glad to know if any stadard save heights that way
View ArticleSuitable raster format for elevation data with sub-meter accuracy?
I’ve got some elevation data represented in ascii gridded xyz-files which I want to convert to a conventional raster format. What’s a bit special is that the elevation values have sub-meter accuracy,...
View Articleogr2ogr problem mapping shapefile to geojson ETRS89 / Poland CS92
I’m trying to convert official boundaries of administrative regions of Poland from official governmental site (codgik.gov.pl). I want to use those data because they are official ones, and set contains...
View ArticleHow to get elevation from dted only USGEO format using gdal apps
I need to get hieght by lat long position using gdal utilities
View ArticleC# ogrinfo with virtual vector source doesn't work GDAL 1.10
I am trying to use GDAL 1.10 with a vector virtual source which is nothing more than the example union of two shapefile layers. from the commandline, ogrinfo works fine on the source. But the C#...
View Articlegdal2tiles georeferenced image as overlay not working
Ive been looking for a solution to my problem for some time now. I’m using gdal2tiles-leaflet to create tiles for my Leaflet application. The images i use are GeoTiff’s with the embedded projection...
View ArticleOSGeo4W GDAL Polygonize Batch Convert?
I’m trying to use GDAL polygonize to run a batch convert but I cannot for the life of my figure out a way to get it to read a text file as input that contains all of the commands. Do any of you know...
View Article32Bit QGIS 2.10 Problems with Gdal WMS TMS google maps layer
I have been using gdal wms layers to view various basemaps in QGIS. I am using this technique rather than open layers because this I can reproject gdal WMS layers as needed. When I get close to the max...
View ArticleReverse gdal_rasterize (-i option) does not work
When I use: gdal_rasterize -b 1 -b 2 -b 3 -burn 255 -burn 255 -burn 255 polygon.shp tiff.tiff I get a new tiff with a white hole in it with the shape of the polygon shp. However, when I use the reverse...
View ArticleHow can the Planet Labs TMS be used with GDAL?
How can Planet Labs’ mosaic Tile Map Service (TMS) be used with GDAL like in the Open Layers example? The API requires authentication and other specific settings.
View Article