I am trying to clip the required portion of raster using polygon as a mask layer. The raster image is in .bil format. While loading the raster, I chose CRS as WGS84. Then I added the vector layer for which clipping was to be done. Using "Clipper" I tried to create clip layer. But it showed certain error as "Warning : the input vector layer has a SRS, but the source raster dataset does not. Cutline results may be incorrect." Both raster and mask layer have same CRS WGS84

  • A question about your vector layer, used as the cutline (to mask). Does it contain only one polygon, or several polygons?
    – Kazuhito
    Commented Jan 25, 2017 at 17:46
  • Only one polygon, sir Commented Jan 25, 2017 at 18:11
  • 1
    Thank you. Then (1) can you see if your project CRS is set to On-The-Fly? (2) if OTF is on, can you toggle off OTF, then reload both your raster image and the polygon? ... This is just to double-check to see if these layer are aligned OK under the same CRS without a help by OTF.
    – Kazuhito
    Commented Jan 25, 2017 at 18:27

3 Answers 3


As the warning states there seems to be a problem with the raster SRS...Maybe you try to assign one by using "Assign projection" tool (Raster -> Projections -> Assign Projection). Make sure you have the same EPSG-CRS for your raster and vector layer (sorry wanted make a comment, but my reputation seems to be too low as I just spend some on a bounty...)


If you have to choose the CRS of the raster file, QGIS was not able to autodetect it. The clipper function is an external command (though called from the QGIS GUI), so it does not know the CRS setting you made.

To do it correctly, you have to save the raster file to another format that includes CRS information, like Geotiff does. Then load the vector data, turn On-the-fly-reprojection off, and see if both files align. If so, the clipping will work.


It is always better to use gdalwarp directly. You can use the following:

gdalwarp -q -s_srs EPSG:32644 -t_srs EPSG:32644 -cutline D:/Tiffcut/CutShape.shp -tr 0.01 0.01 -of GTiff D:/Tiffcut/Original.tif D:/Tiffcut/Modified.tif

You need the choose the correct '-s_srs' and '-t_srs' and also the '-tr' and set the x and y resolution you need for the output raster.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.