<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>Hi Rudi,</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span>Thanks a lot. It is working now eventhough the resulting clipped raster has a poor quality compared to the origin.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span>Best regards,</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span>Khaled</span></div><div><br></div> <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr">
<font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Rudi von Staden <rudivs@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Khaled Ibrahimi <ibrahimikhaled@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "qgis-user@lists.osgeo.org" <qgis-user@lists.osgeo.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, April 6, 2013 9:46 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Qgis-user] Raster Clipping<br> </font> </div> <br>
<div id="yiv93343870"><div dir="ltr">Hi Khaled,<div class="yiv93343870gmail_extra"><br><div class="yiv93343870gmail_quote">On Sat, Apr 6, 2013 at 9:18 PM, Khaled Ibrahimi <span dir="ltr"><<a rel="nofollow" ymailto="mailto:ibrahimikhaled@yahoo.com" target="_blank" href="mailto:ibrahimikhaled@yahoo.com">ibrahimikhaled@yahoo.com</a>></span> wrote:<br>
<blockquote class="yiv93343870gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;"><div style="font-size: 12pt; font-family: arial, helvetica, sans-serif;">
<div><span style="background-color:transparent;">I still have the same problem. I tried the "</span><b>Raster->Projections->Warp" </b><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;color:rgb(51,51,51);line-height:18px;">on my Raster but I got the msg</span><b>: </b><span style="background-color:transparent;font-size:12pt;">ERROR 1: Unable to compute a transformation between pixel/line </span><span style="background-color:transparent;font-size:12pt;">and georeferenced coordinates for".</span><br>
</div><div style="font-style: normal; font-size: 12pt; background-color: transparent; font-family: arial, helvetica, sans-serif;"></div></div></blockquote></div><br></div><div class="yiv93343870gmail_extra"><br></div><div class="yiv93343870gmail_extra">
It sounds like your raster may not be georeferenced. Does it display in QGIS when you load it as a raster? Does it align with the vector you are cutting it with? From the command line, you can use gdalinfo to see if there's a coordinate system defined. If you run 'gdalinfo <filename>.jpg' (from the same directory as the file), the resulting output should include something like this if it's georeferenced:<div>
<br></div><div><div><font face="courier new, monospace">Coordinate System is:</font></div><div><font face="courier new, monospace">GEOGCS["WGS 84",</font></div><div><font face="courier new, monospace"> DATUM["WGS_1984",</font></div>
<div><font face="courier new, monospace"> SPHEROID["WGS 84",6378137,298.257223563,</font></div><div><font face="courier new, monospace"> AUTHORITY["EPSG","7030"]],</font></div>
<div><font face="courier new, monospace"> AUTHORITY["EPSG","6326"]],</font></div><div><font face="courier new, monospace"> PRIMEM["Greenwich",0],</font></div><div><font face="courier new, monospace"> UNIT["degree",0.0174532925199433],</font></div>
<div><font face="courier new, monospace"> AUTHORITY["EPSG","4326"]]</font></div></div><div><br></div><div>if it isn't, you'll see something like this:</div><div><br></div><div><div><font face="courier new, monospace">Coordinate System is `'</font></div>
<div><br></div><div>If it's not georeferenced, you can georeference it using the Georeferencer plugin (there's a useful tutorial here: http://glaikit.org/2011/03/27/image-georeferencing-with-qgis/).</div>
<div><br></div><div>Hope this helps,</div><div>Rudi</div></div></div></div>
</div><br><br> </div> </div> </div></body></html>