Skip to main content

All Questions

Tagged with
44 votes
5 answers
16k views

Reprojecting raster from 0 360 to -180 180 with cutting 180 meridian using gdalwarp

I have a geotiff raster image that has a coordinate system with longitudes from 0 to 360. The horizontal center of the image is 180 longitude. See image below: I want to transform it to EPSG:4326 SRS ...
nextstopsun's user avatar
  • 1,139
24 votes
1 answer
11k views

File size inflation normal with gdalwarp?

After using gdalwarp to project and align-to-grid (via -tap) a number of rasters I noticed that the output rasters were significantly larger than the original rasters. A fairly thorough web search ...
Arthur's user avatar
  • 2,302
17 votes
1 answer
22k views

Georeferencing raster using GDAL and Python?

I want to georeference a raster using python and GDAL. My current approach is to call gdal_translate and gdalwarp using os.system and an ugly list of ground control points. I'd really like a way to do ...
djq's user avatar
  • 16.3k
3 votes
2 answers
7k views

GDAL2Tiles: MapTiles from BSB/KAP are Switched

As an example I have a BSB file from NOAA which is a navigational map. The map has a SRS of WGS84 and a Mercator projection. I initially translate the file from BSB format to GTiff format using the ...
user914425's user avatar
40 votes
3 answers
49k views

gdalwarp cutline along with shapefile

I am trying to clip my Raster file according to a shapefile geometry. I am using the following code gdalwarp -cutline INPUT.shp INPUT.tif OUTPUT.tif But it is resulting a black color outside the ...
Devils Dream's user avatar
  • 3,189
10 votes
4 answers
9k views

For looping folder to batch clip rasters by polygon using python and QGIS?

I am using Python and QGIS 2.0. I am trying to clip rasters in a folder by one polygon feature. It's the first time for me using PyQGIS; I was used to ArcPy before. How do I get my script to work? ...
umbe1987's user avatar
  • 3,785
7 votes
3 answers
8k views

Averaging overlapping rasters with GDAL [closed]

I am working on creating a class which will merge several georeferenced rasters into one using different strategies, essentially taking average, max, min where the images are overlapping. So far I've ...
Владислав Мокроусов's user avatar
6 votes
1 answer
2k views

gdalwarp won't export AAIGrid

I'm trying to use gdalwarp to reproject an ascii grid file. According to http://www.gdal.org/formats_list.html this shouldn't be a problem and indeed I can happily use gdal_translate to create grd ...
mercergeoinfo's user avatar
2 votes
1 answer
2k views

WKT for local mine grid

I have been trying to create a WKT entry to use in gdalwarp etc. I need an affine transform from coordinates in MGA94 Zone 54 to our local mine grid. All efforts have so far failed, including using ...
Tonyb's user avatar
  • 23
7 votes
2 answers
3k views

Why does reprojection with gdalwarp change pixel size?

Is it okay that reprojection from UTM (EPSG:32612) to Web Mercator (EPSG:3857) with gdalwarp changes pixel size? Why does this happen? Does that mean that unit is not meters? If so, than how to ...
dr_times's user avatar
  • 938
7 votes
3 answers
9k views

Using GDAL command line to copy projections

I have two images, a georeferenced Tiff and a second Tiff without a reference. The second image is a copy of the first, but it lost its reference. Now, I want to copy the reference from the first Tiff ...
Jens's user avatar
  • 1,188
5 votes
2 answers
1k views

gdalwarp leaves horizontal artifacts regridding from EASE-Grid (laea) to Polarstero (stere)

I'm trying to understand how to use gdalwarp to warp an image. I believe I'm doing the basics correctly, but I might be missing some gdalwarp options. The basic problem is that I see horizontal ...
Matt Savoie's user avatar
20 votes
1 answer
16k views

Replicating result of gdalwarp using gdal Python bindings

I am trying to re-project/resample with the GDAL python bindings, but am getting slightly different results compared to those from the command line utility gdalwarp. See update below for shorter ...
Bruce Wallin's user avatar
16 votes
2 answers
7k views

Clip raster by shapefile in parts?

I am trying to write .sh script command to clip raster by polygonal shapefile. Shapefile have name field with unique name of polygon feature. On the output must be rasters with name of polygons in ...
spatialhast's user avatar
  • 3,641
7 votes
2 answers
8k views

Crop raster in memory with python GDAL bindings

I have a bunch of rasters I need to crop to a bounding box, perform come calculations with, and then close; I have no need to keep the cropped raster. So far I've only been able to crop using gdal....
bbuzz31's user avatar
  • 429

15 30 50 per page
1
2 3 4 5 6