Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to select a subwindow from an image projected to epsg 3857. If I use, for example:

 gdal_translate -projwin ${UL_x_3857} ${UL_y_3857} ${LR_x_3857} ${LR_y_3857} source_3857.tif source_cut3857.tif

where the corners are given in the 3857 projection. I got

 Input file size is 1691, 1699
 Computed -srcwin 54 40 1258 -2147483648 from projected window.
 -srcwin 54 40 1258 -2147483648 falls outside raster size of 1691x1699

It works fine with UTM coordinates.. what am I doing wrong?

share|improve this question
It would help to know what your ${LR_y_3857} and similar values are. It looks at first blush like the LR_y_3857 value is south of the pole, or otherwise not doing some sort of crazy wrapping. – Frank Warmerdam Nov 29 '12 at 0:28
yes, south pole, Australia. UL_x_3857: 1.624434305324047E7 UL_y_3857: -3270097.682052534 LR_x_3857: 1.6316806588389786E7 LR_y_3857: -3.6402560875967957E11 – user123892 Nov 29 '12 at 8:22
problem solved, my mistake. There was an error in the computation of LR_y_3857. Hope I did not bother. – user123892 Nov 29 '12 at 8:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.