<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Regarding the second question, if I remember correctly, you can use setNewExtent on your ComposerMap object (taking a QgsRectangle as argument).<br><br><div><div id="SkyDrivePlaceholder"></div>> From: veigacamargo@gmail.com<br>> To: qgis-developer@lists.osgeo.org<br>> Date: Tue, 18 Sep 2012 16:05:00 -0700<br>> Subject: [Qgis-developer] Map production using Python<br>> <br>> Hi guys,<br>>         I have a few questions that I'd like to ask here.<br>> <br>>  1st - I'm trying to write a code that I can run from a python shell<br>> outside  QGIS, but I'm not finding the path where I should be importing qgis<br>> from.<br>> <br>>         2nd - I have to print a series of hundreds of maps and I was<br>> planning into using the a map composer, but in the map I get, my layer<br>> occupy a small part of the whole composer. I have this problem when I'm<br>> working manually too, but then I can correct it.  How can I set it right so<br>> my layer take the whole canvas?<br>> <br>> I'm using the following software:<br>> <br>> - Windows 7 64bits<br>> - QGIS 1.8<br>> Python 2.73<br>> <br>> Thanks,<br>> <br>> Pedro<br>> <br>> -----Original Message-----<br>> From: qgis-developer-bounces@lists.osgeo.org<br>> [mailto:qgis-developer-bounces@lists.osgeo.org] On Behalf Of<br>> qgis-developer-request@lists.osgeo.org<br>> Sent: Tuesday, September 18, 2012 12:00 PM<br>> To: qgis-developer@lists.osgeo.org<br>> Subject: Qgis-developer Digest, Vol 83, Issue 49<br>> <br>> Send Qgis-developer mailing list submissions to<br>>        qgis-developer@lists.osgeo.org<br>> <br>> To subscribe or unsubscribe via the World Wide Web, visit<br>>     http://lists.osgeo.org/mailman/listinfo/qgis-developer<br>> or, via email, send a message with subject or body 'help' to<br>>         qgis-developer-request@lists.osgeo.org<br>> <br>> You can reach the person managing the list at<br>>         qgis-developer-owner@lists.osgeo.org<br>> <br>> When replying, please edit your Subject line so it is more specific than<br>> "Re: Contents of Qgis-developer digest..."<br>> <br>> <br>> Today's Topics:<br>> <br>>    1. Re: [Qgis-user] Sextante - error saving a model with Select<br>>       by location tool (Victor Olaya)<br>>    2. Re: Demo WMS/WFS QGIS server (Tim Sutton)<br>>    3. Re: Add ST_MakeValid functionality to QgsGeometry?<br>>       (Giovanni Manghi)<br>>    4. Re: [Qgis-user] Sextante - error saving a model     with Select<br>>       by location tool (Pedro Ven?ncio)<br>>    5. Re: Demo WMS/WFS QGIS server (Paolo Cavallini)<br>>    6. Re: Demo WMS/WFS QGIS server (Tim Sutton)<br>>    7. QgsFillSymbolLayerV2 descendants missing from sip (Massimo)<br>>    8. PyCookBook wrong link (Paolo Cavallini)<br>> <br>> <br>> ----------------------------------------------------------------------<br>> <br>> Message: 1<br>> Date: Tue, 18 Sep 2012 13:23:26 +0200<br>> From: Victor Olaya <volayaf@gmail.com><br>> To: Pedro Ven?ncio <pedrongvenancio@yahoo.com><br>> Cc: "qgis-user@lists.osgeo.org" <qgis-user@lists.osgeo.org>,  Qgis<br>>      Developer List <qgis-developer@lists.osgeo.org><br>> Subject: Re: [Qgis-developer] [Qgis-user] Sextante - error saving a<br>>   model with Select by location tool<br>> Message-ID:<br>>      <CAJsc-7ytbdCPXW9fniSMsUfB1CEUA0e65JgKjjX6TqhdqyqR3g@mail.gmail.com><br>> Content-Type: text/plain; charset=ISO-8859-1<br>> <br>> Yes please, fill a ticket.<br>> <br>> Many thanks!<br>> <br>> 2012/9/18 Pedro Ven?ncio <pedrongvenancio@yahoo.com>:<br>> > Hi Victor,<br>> ><br>> > Ok, thanks!<br>> ><br>> > I also found a problem with the Select tool from MMQGISX. When selecting a<br>> physical layer that is loaded in QGIS, even in modeler, it works well.<br>> However, when using Select with intermediate layers within modeler, it says<br>> that the project has no active layer to select from (image attached).<br>> ><br>> > I think I'll fill a ticket for both problems, what do you think?<br>> ><br>> > Thank you very much!<br>> ><br>> > Best regars,<br>> > Pedro<br>> ><br>> ><br>> > PS: Good luck with your new job! :)<br>> ><br>> ><br>> ><br>> ><br>> > ----- Original Message -----<br>> > From: Victor Olaya<br>> ><br>> > Hi Pedro<br>> ><br>> > The problem is that the select algorithm does not generate a new <br>> > layer, but just makes a selection on a existing one. It seems that <br>> > this case hasn't been correctly considered...<br>> ><br>> > I will have a look at it and see if I can fix it<br>> ><br>> > Regards<br>> ><br>> ><br>> ><br>> > 2012/9/18 Pedro Ven?ncio <pedrongvenancio@yahoo.com>:<br>> >> Hi,<br>> >><br>> >><br>> >> I can not save a model in which is used the tool 'Select by location'<br>> from fTools.<br>> >><br>> >> When saving, it shows the error:<br>> >><br>> >><br>> >> An error has occured while executing Python code:<br>> >><br>> >> Traceback (most recent call last):<br>> >>   File<br>> "/home/pedro/.qgis//python/plugins/sextante/modeler/ModelerDialog.py", line<br>> 219, in saveModel<br>> >>     text = self.alg.serialize()<br>> >>   File<br>> "/home/pedro/.qgis//python/plugins/sextante/modeler/ModelerAlgorithm.py",<br>> line 305, in serialize<br>> >>     s+=unicode(self.algOutputs[i][out.name]) + "\n"<br>> >> KeyError: 'OUTPUT'<br>> >><br>> >> Python version:<br>> >> 2.7.3 (default, Aug  1 2012, 05:27:35) [GCC 4.6.3]<br>> >><br>> >> QGIS version:<br>> >> 1.9.0-Master Master, exported<br>> >><br>> >> Python path: ['/home/pedro/.qgis//python/plugins/ogrprocessing', <br>> >> '/home/pedro/.qgis//python/plugins/sextante', <br>> >> '/usr/share/qgis/python', '/home/pedro/.qgis//python', <br>> >> '/home/pedro/.qgis//python/plugins', <br>> >> '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', <br>> >> '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', <br>> >> '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', <br>> >> '/usr/local/lib/python2.7/dist-packages', <br>> >> '/usr/lib/python2.7/dist-packages', <br>> >> '/usr/lib/python2.7/dist-packages/PIL', <br>> >> '/usr/lib/python2.7/dist-packages/gst-0.10', <br>> >> '/usr/lib/python2.7/dist-packages/gtk-2.0', <br>> >> '/usr/lib/pymodules/python2.7', <br>> >> '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', <br>> >> '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', <br>> >> '/home/pedro/.qgis/python/plugins/mmqgis/forms', <br>> >> '/home/pedro/.qgis/python/plugins/qgis2kml', <br>> >> '/home/pedro/.qgis/python/plugins/qgis2kml', <br>> >> '/usr/share/qgis/python/plugins/fTools/tools']<br>> >><br>> >><br>> >><br>> >> And then, when I try to remove the module 'Select by location' from the<br>> model, it shows the error:<br>> >><br>> >> An error has occured while executing Python code:<br>> >><br>> >> Traceback (most recent call last):<br>> >>   File<br>> "/home/pedro/.qgis//python/plugins/sextante/modeler/ModelerGraphicItem.py",<br>> line 89, in removeElement<br>> >>     if not self.model.removeAlgorithm(self.elementIndex):<br>> >>   File<br>> "/home/pedro/.qgis//python/plugins/sextante/modeler/ModelerAlgorithm.py",<br>> line 164, in removeAlgorithm<br>> >>     val = self.algOutputs[index][out.name]<br>> >> KeyError: 'OUTPUT'<br>> >><br>> >> Python version:<br>> >> 2.7.3 (default, Aug  1 2012, 05:27:35) [GCC 4.6.3]<br>> >><br>> >> Which will be the problem?<br>> >><br>> >> Thank you very much!<br>> >><br>> >> Best regards,<br>> >> Pedro Ven?ncio<br>> >><br>> >> _______________________________________________<br>> >> Qgis-user mailing list<br>> >> Qgis-user@lists.osgeo.org<br>> >> http://lists.osgeo.org/mailman/listinfo/qgis-user<br>> <br>> <br>> ------------------------------<br>> <br>> Message: 2<br>> Date: Tue, 18 Sep 2012 13:52:57 +0200<br>> From: Tim Sutton <lists@linfiniti.com><br>> To: Paolo Cavallini <cavallini@faunalia.it><br>> Cc: qgis-developer <qgis-developer@lists.osgeo.org><br>> Subject: Re: [Qgis-developer] Demo WMS/WFS QGIS server<br>> Message-ID:<br>>   <CALCNqkZ6V8_bjyu5O1d5+bCc0Dt+VbaLoNhS-_Yz_VTqy4T3YA@mail.gmail.com><br>> Content-Type: text/plain; charset=ISO-8859-1<br>> <br>> Hi<br>> <br>> On Tue, Sep 18, 2012 at 12:37 PM, Paolo Cavallini <cavallini@faunalia.it><br>> wrote:<br>> > Hi all.<br>> > Would it be reasonable having a sample WMS and WFS QGIS instance, <br>> > automatically installed at every commit?<br>> > I think it would be useful to quickly spot issues with various clients<br>> etc.<br>> <br>> I could do this with jenkins....maybe remind me at the HF if I dont get to<br>> it before then.<br>> <br>> Regards<br>> <br>> Tim<br>> <br>> > All the best.<br>> ><br>> > --<br>> > Paolo Cavallini - Faunalia<br>> > www.faunalia.eu<br>> > Full contact details at www.faunalia.eu/pc Nuovi corsi QGIS e PostGIS: <br>> > http://www.faunalia.it/calendario<br>> ><br>> > _______________________________________________<br>> > Qgis-developer mailing list<br>> > Qgis-developer@lists.osgeo.org<br>> > http://lists.osgeo.org/mailman/listinfo/qgis-developer<br>> <br>> <br>> <br>> --<br>> Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)<br>> ==============================================<br>> Please do not email me off-list with technical support questions. Using the<br>> lists will gain more exposure for your issues and the knowledge surrounding<br>> your issue will be shared with all.<br>> <br>> Visit http://linfiniti.com to find out about:<br>>  * QGIS programming and support services<br>>  * Mapserver and PostGIS based hosting plans<br>>  * FOSS Consulting Services<br>> Skype: timlinux<br>> Irc: timlinux on #qgis at freenode.net<br>> ==============================================<br>> <br>> <br>> ------------------------------<br>> <br>> Message: 3<br>> Date: Tue, 18 Sep 2012 13:06:15 +0100<br>> From: Giovanni Manghi <giovanni.manghi@faunalia.pt><br>> To: qgis-developer@lists.osgeo.org<br>> Subject: Re: [Qgis-developer] Add ST_MakeValid functionality to<br>>       QgsGeometry?<br>> Message-ID: <1347969975.2633.115.camel@sibirica><br>> Content-Type: text/plain; charset="UTF-8"<br>> <br>> Hi Larry,<br>> <br>> > <br>> > What's the likelihood that the ST_MakeValid function could be ported <br>> > to QGIS?... ending up with something like:<br>> <br>> <br>> glad you raised this question. The common users really misses a tool to<br>> allow easily fix geometries in QGIS, and the feedback is that when is needed<br>> they usually use other GIS software (for example many of the tools in the<br>> "vector" menu do not return the expected results if the geometries are not<br>> valid).<br>> <br>> Any improvement in this field would be very welcome.<br>> <br>> cheers<br>> <br>> -- Giovanni --<br>> <br>> <br>> <br>> ------------------------------<br>> <br>> Message: 4<br>> Date: Tue, 18 Sep 2012 06:22:23 -0700 (PDT)<br>> From: Pedro Ven?ncio <pedrongvenancio@yahoo.com><br>> To: Victor Olaya <volayaf@gmail.com><br>> Cc: "qgis-user@lists.osgeo.org" <qgis-user@lists.osgeo.org>,     Qgis<br>>      Developer List <qgis-developer@lists.osgeo.org><br>> Subject: Re: [Qgis-developer] [Qgis-user] Sextante - error saving a<br>>   model   with Select by location tool<br>> Message-ID:<br>>    <1347974543.91931.YahooMailNeo@web122303.mail.ne1.yahoo.com><br>> Content-Type: text/plain; charset=iso-8859-1<br>> <br>> Ok Victor, just for record on this thread:<br>> <br>> http://hub.qgis.org/issues/6362 <br>> <br>> http://hub.qgis.org/issues/6363 <br>> <br>> <br>> Thanks!<br>> <br>> Best regards,<br>> Pedro<br>> <br>> <br>> <br>> <br>> <br>> ----- Original Message -----<br>> From: Victor Olaya<br>> <br>> Yes please, fill a ticket.<br>> <br>> Many thanks!<br>> <br>> <br>> ------------------------------<br>> <br>> Message: 5<br>> Date: Tue, 18 Sep 2012 16:54:35 +0200<br>> From: Paolo Cavallini <cavallini@faunalia.it><br>> To: Tim Sutton <lists@linfiniti.com><br>> Cc: qgis-developer <qgis-developer@lists.osgeo.org><br>> Subject: Re: [Qgis-developer] Demo WMS/WFS QGIS server<br>> Message-ID: <50588B2B.80209@faunalia.it><br>> Content-Type: text/plain; charset=ISO-8859-1<br>> <br>> Il 18/09/2012 13:52, Tim Sutton ha scritto:<br>> ><br>> > I could do this with jenkins....maybe remind me at the HF if I dont <br>> > get to it before then.<br>> ><br>> I took the liberty of adding it here, hope you do not mind:<br>> http://hub.qgis.org/wiki/quantum-gis/8_QGIS_Developer_Meeting_in_Essen_2012#<br>> Participation<br>> thanks<br>> <br>> --<br>> Paolo Cavallini - Faunalia<br>> www.faunalia.eu<br>> Full contact details at www.faunalia.eu/pc Nuovi corsi QGIS e PostGIS:<br>> http://www.faunalia.it/calendario<br>> <br>> <br>> <br>> ------------------------------<br>> <br>> Message: 6<br>> Date: Tue, 18 Sep 2012 16:59:57 +0200<br>> From: Tim Sutton <lists@linfiniti.com><br>> To: Paolo Cavallini <cavallini@faunalia.it><br>> Cc: qgis-developer <qgis-developer@lists.osgeo.org><br>> Subject: Re: [Qgis-developer] Demo WMS/WFS QGIS server<br>> Message-ID:<br>>   <CALCNqkaWwqbOTOGTTqwKhhTA9jrB28jPVe_qUzdbrDZ9u24VFg@mail.gmail.com><br>> Content-Type: text/plain; charset=ISO-8859-1<br>> <br>> Hi<br>> <br>> On Tue, Sep 18, 2012 at 4:54 PM, Paolo Cavallini <cavallini@faunalia.it><br>> wrote:<br>> > Il 18/09/2012 13:52, Tim Sutton ha scritto:<br>> >><br>> >> I could do this with jenkins....maybe remind me at the HF if I dont<br>> >> get to it before then.<br>> >><br>> > I took the liberty of adding it here, hope you do not mind:<br>> ><br>> http://hub.qgis.org/wiki/quantum-gis/8_QGIS_Developer_Meeting_in_Essen_2012#<br>> Participation<br>> > thanks<br>> ><br>> <br>> Perfect!<br>> <br>> T<br>> <br>> > --<br>> > Paolo Cavallini - Faunalia<br>> > www.faunalia.eu<br>> > Full contact details at www.faunalia.eu/pc<br>> > Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario<br>> ><br>> <br>> <br>> <br>> -- <br>> Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)<br>> ==============================================<br>> Please do not email me off-list with technical<br>> support questions. Using the lists will gain<br>> more exposure for your issues and the knowledge<br>> surrounding your issue will be shared with all.<br>> <br>> Visit http://linfiniti.com to find out about:<br>>  * QGIS programming and support services<br>>  * Mapserver and PostGIS based hosting plans<br>>  * FOSS Consulting Services<br>> Skype: timlinux<br>> Irc: timlinux on #qgis at freenode.net<br>> ==============================================<br>> <br>> <br>> ------------------------------<br>> <br>> Message: 7<br>> Date: Tue, 18 Sep 2012 09:52:54 -0700 (PDT)<br>> From: Massimo <massimo.endrighi@geopartner.it><br>> To: qgis-developer@lists.osgeo.org<br>> Subject: [Qgis-developer] QgsFillSymbolLayerV2 descendants missing<br>>     from sip<br>> Message-ID: <1347987174862-5002739.post@n6.nabble.com><br>> Content-Type: text/plain; charset=us-ascii<br>> <br>> Dear QGis developper Team,<br>> <br>> QgsFillSymbolLayerV2 descendants, but also QgsLineSymbolLayerV2 and<br>> QgsMarkerSymbolLayerV2 descendants are missing from sip. <br>> Working with styles to a deep level it is impossible without such<br>> exportation.<br>> Is this by design or can I add all the missing stuff in sip files? <br>> <br>> Regards<br>> Massimo<br>> <br>> <br>> <br>> <br>> --<br>> View this message in context:<br>> http://osgeo-org.1560.n6.nabble.com/QgsFillSymbolLayerV2-descendants-missing<br>> -from-sip-tp5002739.html<br>> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.<br>> <br>> <br>> ------------------------------<br>> <br>> Message: 8<br>> Date: Tue, 18 Sep 2012 19:17:26 +0200<br>> From: Paolo Cavallini <cavallini@faunalia.it><br>> To: qgis-developer <qgis-developer@lists.osgeo.org><br>> Subject: [Qgis-developer] PyCookBook wrong link<br>> Message-ID: <5058ACA6.3090303@faunalia.it><br>> Content-Type: text/plain; charset=ISO-8859-15<br>> <br>> http://www.qgis.org/pyqgis-cookbook/intro.html<br>> the link complete QGIS API<br>> is pointing to<br>> http://doc.qgis.org/<br>> instead of<br>> http://qgis.org/api/<br>> <br>> All the best.<br>> <br>> -- <br>> Paolo Cavallini - Faunalia<br>> www.faunalia.eu<br>> Full contact details at www.faunalia.eu/pc<br>> Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario<br>> <br>> <br>> <br>> ------------------------------<br>> <br>> _______________________________________________<br>> Qgis-developer mailing list<br>> Qgis-developer@lists.osgeo.org<br>> http://lists.osgeo.org/mailman/listinfo/qgis-developer<br>> <br>> <br>> End of Qgis-developer Digest, Vol 83, Issue 49<br>> **********************************************<br>> <br>> _______________________________________________<br>> Qgis-developer mailing list<br>> Qgis-developer@lists.osgeo.org<br>> http://lists.osgeo.org/mailman/listinfo/qgis-developer<br></div>                                     </div></body>
</html>