[Qgis-user] Clipping tool for non-georeferenced data

2013-06-04 Thread Alexia Mondot

Hello,

I've add to QGIS non georeferenced data. It is added in 0,0, north up, 
south down. So the y is negative.

When I tried to extract a part of my data with the clipper, I get an error :

Error: Computed -srcwin 266 -145 175 -126 has negative width and/or height.

or
Computed -srcwin falls outside raster size of 156x144.


I understand that it is because the coordinate y is negative and the 
tool can't match it with the real coordinate.

Is there a way to clip a non georeferenced data ?

Thanks by advance,
Alexia

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


Re: [Qgis-user] Clipping tool for non-georeferenced data

2013-06-04 Thread Werner Macho
Hi!

Well to be honest .. I would clip non georeferenced data in gimp .. There
you have plenty of options to mask and cut/clip your non georeferenced
images ..
Unless you have a specific reason to do that in QGIS ..

kind regards
Werner


On Tue, Jun 4, 2013 at 11:59 AM, Alexia Mondot alexia.mon...@c-s.fr wrote:

  Hello,

 I've add to QGIS non georeferenced data. It is added in 0,0, north up,
 south down. So the y is negative.
 When I tried to extract a part of my data with the clipper, I get an error
 :

 Error: Computed -srcwin 266 -145 175 -126 has negative width and/or height.

 or
 Computed -srcwin falls outside raster size of 156x144.


  I understand that it is because the coordinate y is negative and the tool
 can't match it with the real coordinate.
 Is there a way to clip a non georeferenced data ?

 Thanks by advance,
 Alexia


 ___
 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] Clipping tool for non-georeferenced data

2013-06-04 Thread Blumentrath, Stefan
Hi

The problem is the way you specified the srcwin parameter.
The syntax is:
-srcwin xoff yoff xsize ysize

So, if you want to clip out the upper left 40x50 cells from a 100x100 raster 
for example your srcwin should look like this:
-srcwin 0 0 40 50

If you wanted to clip out the lower right 40x50 cells from a 100x100 raster for 
example your srcwin should look like this:
-srcwin 60 50 40 50


Have a look here:
http://www.gdal.org/gdal_translate.html

As the error message indicates, negative values are not allowed...

Cheers
Stefan



From: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Alexia Mondot
Sent: 4. juni 2013 12:00
To: Qgis-user@lists.osgeo.org
Subject: [Qgis-user] Clipping tool for non-georeferenced data

Hello,

I've add to QGIS non georeferenced data. It is added in 0,0, north up, south 
down. So the y is negative.
When I tried to extract a part of my data with the clipper, I get an error :



Error: Computed -srcwin 266 -145 175 -126 has negative width and/or height.

or
Computed -srcwin falls outside raster size of 156x144.


I understand that it is because the coordinate y is negative and the tool can't 
match it with the real coordinate.
Is there a way to clip a non georeferenced data ?

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


Re: [Qgis-user] Clipping tool for non-georeferenced data

2013-06-04 Thread Alexia Mondot

I have to manage products. Some are georeferenced, some aren't.
I have the same actions to do on these products.

For all others, it seems to work.
That's why I am worried about this functionality.

So there is not a way to do that in qgis ?
It does not seem to be difficult to do.
Just to add the height if the image to the y coordinates the clipper got ?

Regards,
Alexia

On 06/04/2013 12:34 PM, Werner Macho wrote:

Hi!

Well to be honest .. I would clip non georeferenced data in gimp .. 
There you have plenty of options to mask and cut/clip your non 
georeferenced images ..

Unless you have a specific reason to do that in QGIS ..

kind regards
Werner


On Tue, Jun 4, 2013 at 11:59 AM, Alexia Mondot alexia.mon...@c-s.fr 
mailto:alexia.mon...@c-s.fr wrote:


Hello,

I've add to QGIS non georeferenced data. It is added in 0,0, north
up, south down. So the y is negative.
When I tried to extract a part of my data with the clipper, I get
an error :

Error: Computed -srcwin 266 -145 175 -126 has negative width
and/or height.

or
Computed -srcwin falls outside raster size of 156x144.


I understand that it is because the coordinate y is negative and
the tool can't match it with the real coordinate.
Is there a way to clip a non georeferenced data ?

Thanks by advance,
Alexia


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org mailto: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