Opened 17 years ago
Closed 17 years ago
#1642 closed defect (wontfix)
projwin fails when asking for a point
Reported by: | regodon | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
I need to get a raster with one cell from a big raster. I need the cell which contains certain point, so i do:
gdal_translate -projwin -1.045 42.31 -1.045 42.31 source.tiff dest.tiff
And i get this error:
-srcwin 169 136 0 0 falls outside raster size of 281x171
It seems gdal_translate internally converts "projwin" to "srcwin", and it calculates window size as 0x0 cells instead of 1x1.
I am using FWTools 1.2.1 for linux.
Note:
See TracTickets
for help on using tickets.
I'm sorry, but I think you will just have to adjust your upper left and lower right values a bit to "capture" at least one pixel.