[Qgis-user] Raster clipping Error "Currently GMT export only supports 1 band datasets"

2017-02-03 Thread dufour-verdier

QGIS 2.14.8
MacOSX Sierra 10.12.2
MacBook Pro (Retina 13 pouces, début 2015)

Hello,
Trying to clip a small portion of a raster (either JP2 or Tiff)
I get this error message :

ERROR 1: Currently GMT export only supports 1 band datasets.

And of course the clipping isn't done (not even in 1 band).

Is there anything I can do, change some parameter for example ?

Thanks

Vincent


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] raster clipping

2013-09-16 Thread Fabrizio murè
Hi all, I need some clarifications on how raster clipper algorithm  works
with not georeferenced images.

My tiff data present negative y coordinates, so when I select my area of
interest in the viewer, the x-y upper left / lower right points are, for
instance:

ulx: 2818.33065257   uly: -5304.31204044
lrx:  3223.66153493   lry:-5825.45174632

Original image is 1 x 6191 pixel

the Clipper plugin does not understand that data are not georeferenced, so
running command:

gdal_translate -projwin 2818.33065257 -5304.31204044 3223.66153493
-5825.45174632
C:\Dati_Utente\f.mure\work\UTILITY\DATA\Pleiades_Primary_Product_Bundle\Pleiades_Primary_Product_Bundle.tiff

you got an error (Computed -srcwin falls outside raster size of 1x6191.
).

if you run gdal_traslate with -srcwin option you have to change input
parameters to express xoffset, yoffsset, xsize, ysize, instead of ulx uly
lrx lry.

In my example,

xoff = 2818
yoff = 6191 - 5304
xsize = 500
ysize = 500

And finally, gdal_translate -srcjwin 2818 794 500 500
C:\Dati_Utente\f.mure\work\UTILITY\DATA\Pleiades_Primary_Product_Bundle\Pleiades_Primary_Product_Bundle.tiff

works fine.

Now my doubts/questions are:
- is there a way to switch automatically between  [-projwin ulx uly lrx
lry] to  [-srcwin xoff yoff xsize ysize]  gdal_translate options, depending
on data projections (georefenced or not).

- is it possible to get extracted sub-image overlapped with the selected
area on the original image?

Could anyone give me some help?

Thanks in advance,
Fabrizio
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Raster Clipping

2013-04-06 Thread Khaled Ibrahimi
Hi all,
I am new user of QGIS. Sorry if my question is basic.
I would like to clip a raster (.jpg) using a vector layer. I used the Gdal 
clipper but I got an error msg: Cannot compute bounding box of cutline.
Any suggestion?
Thanks,
Ibrahimi


 From: Lene Fischer l...@life.ku.dk
To: qgis-user@lists.osgeo.org qgis-user@lists.osgeo.org 
Sent: Saturday, April 6, 2013 12:44 PM
Subject: [Qgis-user] Sextante -Using FToolfunction
 
Hi
Using both QGIS 1.8 and 1.9
I´m trying to use Tools for Lidar LASTools

Getting an error :
Could not load model watersheds.model
ALGORITHM:ftools:export/addgeometrycolumns

The algorithm from FTools are now placed in QGIS Geoalgorithms - How / Where 
can I change the path?

Regards
Lene Fischer


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Raster Clipping

2013-04-06 Thread Rudi von Staden
Hi Khaled,

On Sat, Apr 6, 2013 at 4:43 PM, Khaled Ibrahimi ibrahimikha...@yahoo.comwrote:

 I would like to clip a raster (.jpg) using a vector layer. I used the Gdal
 clipper but I got an error msg: Cannot compute bounding box of cutline.
 Any suggestion?


I think the raster and vector layer both need to be in the same projection
(CRS). If that's already the case, you can try the suggestion at this link,
and see if it works for you:
http://gis.stackexchange.com/questions/32394/rasterfile-clipping-error-cannot-compute-bounding-box-of-cutline

Kind regards,
Rudi
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Raster Clipping

2013-04-06 Thread Khaled Ibrahimi
Thanks Rudi,
I still have the same problem. I tried the Raster-Projections-Warp on my 
Raster but I got the msg: ERROR 1: Unable to compute a transformation between 
pixel/line and georeferenced coordinates for.
Thanks
Ibrahimi



 From: Rudi von Staden rud...@gmail.com
To: Khaled Ibrahimi ibrahimikha...@yahoo.com 
Cc: qgis-user@lists.osgeo.org qgis-user@lists.osgeo.org 
Sent: Saturday, April 6, 2013 5:25 PM
Subject: Re: [Qgis-user] Raster Clipping
 

Hi Khaled,


On Sat, Apr 6, 2013 at 4:43 PM, Khaled Ibrahimi ibrahimikha...@yahoo.com 
wrote:

I would like to clip a raster (.jpg) using a vector layer. I used the Gdal 
clipper but I got an error msg: Cannot compute bounding box of cutline.

Any suggestion?

I think the raster and vector layer both need to be in the same projection 
(CRS). If that's already the case, you can try the suggestion at this link, and 
see if it works for you:
http://gis.stackexchange.com/questions/32394/rasterfile-clipping-error-cannot-compute-bounding-box-of-cutline


Kind regards,
Rudi___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Raster Clipping

2013-04-06 Thread Rudi von Staden
Hi Khaled,

On Sat, Apr 6, 2013 at 9:18 PM, Khaled Ibrahimi ibrahimikha...@yahoo.comwrote:

 I still have the same problem. I tried the *Raster-Projections-Warp *on
 my Raster but I got the msg*: *ERROR 1: Unable to compute a
 transformation between pixel/line and georeferenced coordinates for.



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:

Coordinate System is:
GEOGCS[WGS 84,
DATUM[WGS_1984,
SPHEROID[WGS 84,6378137,298.257223563,
AUTHORITY[EPSG,7030]],
AUTHORITY[EPSG,6326]],
PRIMEM[Greenwich,0],
UNIT[degree,0.0174532925199433],
AUTHORITY[EPSG,4326]]

if it isn't, you'll see something like this:

Coordinate System is `'

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/).

Hope this helps,
Rudi
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Raster Clipping

2013-04-06 Thread Khaled Ibrahimi
Hi Rudi,
Thanks a lot. It is working now eventhough the resulting clipped raster has a 
poor quality compared to the origin.
Best regards,
Khaled



 From: Rudi von Staden rud...@gmail.com
To: Khaled Ibrahimi ibrahimikha...@yahoo.com 
Cc: qgis-user@lists.osgeo.org qgis-user@lists.osgeo.org 
Sent: Saturday, April 6, 2013 9:46 PM
Subject: Re: [Qgis-user] Raster Clipping
 

Hi Khaled,


On Sat, Apr 6, 2013 at 9:18 PM, Khaled Ibrahimi ibrahimikha...@yahoo.com 
wrote:

I still have the same problem. I tried the Raster-Projections-Warp on my 
Raster but I got the msg: ERROR 1: Unable to compute a transformation between 
pixel/line and georeferenced coordinates for.



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:

Coordinate System is:
GEOGCS[WGS 84,
    DATUM[WGS_1984,
        SPHEROID[WGS 84,6378137,298.257223563,
            AUTHORITY[EPSG,7030]],
        AUTHORITY[EPSG,6326]],
    PRIMEM[Greenwich,0],
    UNIT[degree,0.0174532925199433],
    AUTHORITY[EPSG,4326]]

if it isn't, you'll see something like this:

Coordinate System is `'

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/).

Hope this helps,
Rudi___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user