Timeline for How to subset raster image using gdal?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 21, 2021 at 8:08 | comment | added | rooby | @colllin "projected" means you can specify the coordinates using the coordinate format of the projection (e.g. for example if using EPSG:4326 you can provide 90/180 lat/lon coordinates) and "unprojected" means you specify coordinates as x/y pixel values of the raster. For projected, you can specify the SRS using -projwin_srs. It does not actually reproject anything in the output. | |
Dec 2, 2019 at 18:59 | comment | added | colllin | Can you explain what you mean by "projected" and "unprojected". My raster has a projection, but I don't want to reproject it — which form is correct? | |
Feb 17, 2016 at 18:44 | comment | added | user55937 |
The unprojected command seems inconsistent with the documentation gdal.org/gdal_translate.html, which says -srcwin xoff yoff xsize ysize .
|
|
Feb 17, 2016 at 17:13 | review | Suggested edits | |||
Feb 17, 2016 at 17:45 | |||||
Mar 22, 2013 at 16:22 | comment | added | matt wilkie |
@hardik, gdal_translate is written in C++ and operates independently of the gdal python bindings, here's the code: trac.osgeo.org/gdal/browser/trunk/gdal/apps/gdal_translate.cpp. It's part of the core utility set and a compiled binary is generally installed by default (unless you're not installing and only building from source).
|
|
Jan 8, 2013 at 17:01 | comment | added | Hardik | Hello jay laura: thank you for the reply but the lines you have suggested works for python i guess. i only uses c++ code. So i dont think gdal_translate work in c++ coding . | |
Jan 8, 2013 at 16:54 | history | answered | Jay Laura | CC BY-SA 3.0 |