[Qgis-developer] Print Composer - map frame centered to layer/object/map center

2013-10-11 Thread Benoît Laurent
Hello, I encounter the same problem as previously described : http://lists.osgeo.org/pipermail//qgis-user/2013-January/020842.html Is there a solution ? Regards, Benoît ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osg

[Qgis-developer] Python script - QgsComposerScaleBar - segment rounded to nearest km

2013-10-10 Thread Benoît Laurent
Hello, I am using Qgis 2.0. I am writing a Python script to generate pdf files from layers. I added a QgsComposerScaleBar and I wish to round the segments to the nearest km. How can I achieve this ? Thank you in advance. Benoît ___ Qgis-developer m

[Qgis-developer] Layer selection

2013-10-01 Thread Benoît Laurent
Ok, I eventually solved my problem. In case others would face the same problem, use "iface.legendInterface().layers()" instead of "iface.mapCanvas().layers()", the latter only providing already selected layers. Benoît ___ Qgis-developer mailing list

[Qgis-developer] ScriptRunner - wrong error message

2013-10-01 Thread Benoît Laurent
Hello, I receive a wrong error message from ScripRunner when I try to reload a script containing syntax errors. For instance: #!/usr/bin/env Python # encoding: utf-8 from qgis.core import (QGis) def run_script(iface): if (syntax problem) "There was an error reloading H:/Temp/stupid_code

[Qgis-developer] Layer selection

2013-10-01 Thread Benoît Laurent
Hello, I do not know if this is the right place to ask this question. If not, please tell me. I would like to iterate over a list of layers. For each layer, I would like to zoom to its extent and create a pdf file (using the QgsComposer). At the beginning, the layers are already loaded but

[Qgis-developer] Reprojection problem

2013-09-27 Thread Benoît Laurent
Thank you for the time you spent on my problem. I found a gdal_edit.bat file but there is no path to specify in it. However, I eventually installed the win32 version of qgis and everything works fine. Regards, Benoît ___ Qgis-developer mailing lis

[Qgis-developer] Reprojection problem

2013-09-27 Thread Benoît Laurent
this worked for me with gdalwarp (did not try in QGIS, though): +nadgrids=/path/to/the/grid/my_grid.gsb My problem is that I do not know how to change the path in Qgis. In the "On the fly projection" dialog box, the string specifying how to reproject is read only. There must be a file where th

[Qgis-developer] Reprojection problem

2013-09-27 Thread Benoît Laurent
Hello, Thank you for your help. How can I set the path ? Regards, Benoît ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Reprojection problem

2013-09-26 Thread Benoît Laurent
Hello, I performed a check: the ntf_r93.gsb is located in the InstallDir\share\proj directory. What is wrong ? Regards, Benoît ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Reprojection problem

2013-09-26 Thread Benoît Laurent
Hello, I installed qgis with the standalone installer (2.0.1.-Dufour) on Windows 8. As others, I experienced the GRASS path problem. I do not know if is bound to, but I also face a reprojection problem. I have a project whose CRS is IGNF:Lambert93 and I wish to add a IGNF:LambertI raster. Her

Re: [Qgis-developer] Qgis-developer Digest, Vol 94, Issue 76

2013-08-30 Thread Benoît Laurent
Le 30/08/2013 10:57, qgis-developer-requ...@lists.osgeo.org a écrit : You can only iterate over one layer in one composer, at one time, but you can show all the layers you want in the resulting maps. The layer that works as a iterator is define in the 'Coverage layer' in the Atlas tab. The zo

Re: [Qgis-developer] Tutorial Atlas

2013-08-29 Thread Benoît Laurent
mposer layer to iterate over each extent. My problem rely lies in the creation of this composer layer. Regards, Benoît Hope it helps, Alexandre Neto On Thu, Aug 29, 2013 at 4:51 PM, Benoît Laurent <mailto:blaur...@heurisis.eu>> wrote: Thank you for your answer. Hello,

Re: [Qgis-developer] Tutorial Atlas

2013-08-29 Thread Benoît Laurent
Thank you for your answer. Hello, I don't know of any tutorial, but, maybe we can help. Atlas generation allows you to, for one single map in your print composer map, create a set of similar maps, but with different extents, labels\titles and even images

[Qgis-developer] Tutorial Atlas

2013-08-29 Thread Benoît Laurent
Hello, I encounter difficulties to understand the Atlas generation. I read the user manual related to this fonctionnality (http://documentation.qgis.org/2.0/html/en/docs/user_manual/print_composer/print_composer.html#atlas-generation) but it is still fuzzy for me. Is there a complete tutorial

Re: [Qgis-developer] Question about bug #7941

2013-08-26 Thread Benoît Laurent
480. Regards, Benoît -- Benoît LAURENT Consultant Optimisation 9, rue Alexandre Fleming, 49066 Angers CEDEX

[Qgis-developer] Question about bug #7941

2013-08-26 Thread Benoît Laurent
Hello, I may misunderstand this sentence about bug #7941 : "on OSGeo4W the file "ntf_r93.gsb" is in the "proj-datumgrid" and the "proj" package depends on it. So it should be there." In my case, the file "ntf_r93.gsb" is the proj folder but it does not work

[Qgis-developer] Tutorial or sample for Atlas ?

2013-08-05 Thread Benoît Laurent
Hello, Is there a tutorial and/or some samples for the use of Atlas ? Regards, Benoît ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Bug 7941 : workaround ?

2013-08-02 Thread Benoît Laurent
Hello, I am facing bug 7941 (http://hub.qgis.org/issues/7941) which has not been corrected yet. I have many shapefiles in Lambert 93 and a raster file (.tif) in Lambert I which I would fit together. Because of the bug, I can't. Is there a workaround ? I tried to change the coordinates in the

[Qgis-developer] MrSid format not supported any more ?

2013-07-16 Thread Benoît Laurent
Hello, I am using a weekly release of Qgis (10th July). It seems that it does not support loading a MrSid format file any more. Regards, Benoît ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgi

Re: [Qgis-developer] Adding labels

2013-05-14 Thread Benoît Laurent
, On Tue, May 14, 2013 at 3:18 AM, Benoît Laurent <blaur...@heurisis.eu> wrote: Hello, Did I ask my question in the right place

Re: [Qgis-developer] Adding labels

2013-05-14 Thread Benoît Laurent
Le 14/05/2013 12:22, Larry Shaffer a écrit : Hi Benoît , On Tue, May 14, 2013 at 3:18 AM, Benoît Laurent <mailto:blaur...@heurisis.eu>> wrote: Hello, Did I ask my question in the right place ? Can someone help me ? Thank you in advance. If you are using a master bra

Re: [Qgis-developer] Python script about 'Add delimited text'

2013-05-14 Thread Benoît Laurent
Hello, Hello, I read some posts about how to import 'delimited text' using plugin in QGIS. I have plenty of .csv files to cope with. Do you know how to cope with it using python script ? Thank you very much for the help ! I had to cope with the same problem a few weeks ago. Have you seen this

Re: [Qgis-developer] Adding labels

2013-05-14 Thread Benoît Laurent
-- Benoît LAURENT Consultant Optimisation 9, rue Alexandre Fleming, 49066 Angers CEDEX +33 (0)6 28 03 81 32        blaur...@heurisis.eu

[Qgis-developer] Adding labels

2013-05-13 Thread Benoît Laurent
Hello, I am not sure to be on the right place to ask my question. If not, I beg your pardon. I am trying the write a Python script that : - load a set of shapefile ; - automatically add labels based on a field ; - set the color, the size, etc. of my points. For the moment, I can load the shap