[Qgis-user] new user python

2013-09-16 Thread gill russell
I am a new user and am trying to create a mapbook to print A3 
sections in Python, Easy print ...and I keep getting this error-any thoughts?



An error has occured while executing Python code:

Traceback (most recent call last):
  File C:/Documents and 
Settings/gill/.qgis//python/plugins\easyprint\easyprint.py, line 
139, in doMapBookByGrid

  d.run()
  File C:/Documents and 
Settings/gill/.qgis//python/plugins\easyprint\tools\doCreateMapBookByGrid.py, 
line 150, in run

  painter.end()
AttributeError: 'NoneType' object has no attribute 'end'

Python version:
2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]

Gill





Gill Russell
www.cosmicsky.co.uk

www.land-marks-art.co.uk


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

[Qgis-user] Please unsubscribe me from this daily e-mailing.

2013-09-16 Thread telesforo innocenti
Please unsubscribe me from this daily e-mailing.
tanks

-- 

Telesforo   Innocenti

   +39.329.1825000
 Skype: innocenti.sr

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://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] Format conversion QGIS 2.0

2013-09-16 Thread Sergio A Estay

Hi everybody,

I work in Ubuntu 12.04 and today the system automatically update qgis to 
the new version 2.0. It looks nice , but shortly I noticed a problem.


I tried to convert some Geotiff maps to asc grid. Despite qgis seems to 
perform the task without problems I notice that the new file still is a 
Tiff file. The only thing qgis did was to change the extension of the 
file name.


This happened with several files and in two different computers today 
after the upgrade to 2.0


Any ideas what happened?? Is it neccesary some other update??

cheers

--
Sergio A. Estay
Inst. Ciencias Ambientales y Evolutivas
Universidad Austral de Chile
Casilla 567, Valdivia, Chile
Phone: 5663-293913
http://www.ciencias.uach.cl/instituto/ciencias_ambientales_evolutivas/academicos/sergio-estay.php


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


Re: [Qgis-user] Format conversion QGIS 2.0

2013-09-16 Thread Alex Mandel
On 09/16/2013 11:08 AM, Alex Mandel wrote:
 On 09/16/2013 09:43 AM, Sergio A Estay wrote:
 Hi everybody,

 I work in Ubuntu 12.04 and today the system automatically update qgis to
 the new version 2.0. It looks nice , but shortly I noticed a problem.

 I tried to convert some Geotiff maps to asc grid. Despite qgis seems to
 perform the task without problems I notice that the new file still is a
 Tiff file. The only thing qgis did was to change the extension of the
 file name.

 This happened with several files and in two different computers today
 after the upgrade to 2.0

 Any ideas what happened?? Is it neccesary some other update??

 cheers

 
 
 Was this using the Raster Menu conversion tool gdal_translate? If so can
 you post the command as shown in the bottom box of the dailog.
 
 Thanks,
 Alex

I can confirm this bug, forwarding to the developer list. Temporary
workaround, is to press the pencil button and edit the -of part of the
command to the correct format as listed on http://gdal.org/formats_list.html

In this case it should say -of AAIGrid

Behavior in 1.8
Select Output, type test.asc (defaults to -of GTiff)
Select Output, Select ASC from the dropdown and type test.asc, results
in -of AAIGrid

Behavior in Master
Select Output, type test.asc (defaults to -of GTiff)
Select Output, Select ASC from the dropdown and type test.asc, results
in -of GTiff

PS: This to me highlights why we should always have the command output
at the bottom of tools (or in an advanced tab), where a user can
troubleshoot and modify a command that a dialog messes up on.

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


Re: [Qgis-user] Format conversion QGIS 2.0

2013-09-16 Thread Alex Mandel
On 09/16/2013 09:43 AM, Sergio A Estay wrote:
 Hi everybody,
 
 I work in Ubuntu 12.04 and today the system automatically update qgis to
 the new version 2.0. It looks nice , but shortly I noticed a problem.
 
 I tried to convert some Geotiff maps to asc grid. Despite qgis seems to
 perform the task without problems I notice that the new file still is a
 Tiff file. The only thing qgis did was to change the extension of the
 file name.
 
 This happened with several files and in two different computers today
 after the upgrade to 2.0
 
 Any ideas what happened?? Is it neccesary some other update??
 
 cheers
 


Was this using the Raster Menu conversion tool gdal_translate? If so can
you post the command as shown in the bottom box of the dailog.

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


[Qgis-user] unsubscribe me please

2013-09-16 Thread Paul Gann
pg...@shaw.ca

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

Re: [Qgis-user] unsubscribe me please

2013-09-16 Thread Michael Spencer
Paul,

To unsubscribe from the QGIS mailing list, use this link:
http://lists.osgeo.org/mailman/listinfo/qgis-user

Only you can do this.

These instructions were issued when you signed up.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Lost Sextante models

2013-09-16 Thread Jonas Sjögren
Regarding the lost models, I found the following error message in History
and log, and the same goes for most of my models that do not show up:

Could not load model Calculate_FloodedObjects.model

Error in model definition line:Reclassified Grid Values : Traceback (most
recent call last):

File
C:/PROGRA~2/QGISWE~1/apps/qgis-dev/./python/plugins\processing\modeler\ModelerAlgorithm.py,
line 164, in openModel

algParams[param.name] = AlgorithmAndParameter(int(tokens[0]), tokens[1])

ValueError: invalid literal for int() with base 10: 'Reclassified Grid
Values'



Anyone who has clue how to solve it?

Best regards,

Jonas


2013/9/16 Jonas Sjögren jonas@gmail.com

 Thank you for your instant reply. However, moving my models to
 C:\Users\Username\.qgis2\processing\models didn´t solve the problem, they
 still do not show up in the models folder in the toolbox. I have
 reinstalled Master 1.9.0-35, checked the pathways in options and
 configuration and rebooted my pc with no change. I have some scripts stored
 in C:\Users\Username\.qgis2\processing\scripts and they do show up,
 although not all of them. It seems as if the total number of them are
 stored somewhere else...? Regarding the models, I believe the file
 extension is the same as before, .model? The test models and example models
 are shown as usual, but where are these stored?
 Best regards,
 Jonas


 2013/9/15 Werner Macho werner.ma...@gmail.com

 On 09/14/2013 09:24 PM, Jonas Sjögren wrote:

  I used to work in QGIS Master 1.9.0-4 where I have created some models
 in
  Sextante. When upgrading to a more recent version, QGIS Master 1.9.0-35,
  they were suddenly lost. According to Sextante options and
 configuration,
  the models are stored in C:\Users\Username\.qgis2\sextante\models, so I
  moved them there. But they still do not show up in the Sextante toolbox.
  Only Sextante example models and test models are shown. Is it possible
 to
  import them in some way? I don´t really like the idea of rebuilding
  them...:-( If you have an idea, please let me know. Thanks,

 Sextante has recently been renamed to processing so you should not put
 your models into C:\Users\Username\.qgis2\sextante\models but rather
 into C:\Users\Username\.qgis2\processing\models .. and get rid of that
 whole sextante folder .. (or just rename it to processing)

 That should do the job

 kind regards
 Werner
 ___
 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