Re: [Qgis-developer] Reliable way to determine a groupIndex in the legend tree

2013-10-10 Thread Gino Pirelli
no, not yet,

I found structural limitation looking for adding customized legends (aka
items)... I waited Brighton to check if it was a problem related to my
ignorance or a structural one.

I hadn't time to find what's the procedure to add a RFC in qgis with it's
workflow (in mapserver is clear, I can learn the procedure reading ML)

let me organize ideas and procedural proposal... or if it's more clear to
you, please start it and I'll contribute as soon as I can... or, in the
meantime, we can continue with this thread.

Andreas, thank you to open this thread

Luigi Pirelli (luigi.pire...@faunalia.it)


On 9 October 2013 21:35, Andreas Neumann a.neum...@carto.net wrote:

 Hi Luigi,

 Do you have a written proposal already? Is it available on Google Docs
 so we can comment/append?

 Personally, I am also interested in enhancing group options in the layer
 tree. Groups are not just stupid containers with only toggling of
 visibility. They could also have a group opacity and blending and group
 metadata. Later on we may also have clipping and masking on groups. So
 we really should have an extensible mechanism for groups as new group
 features appear.

 Yes, if we have a written proposal we will have more organization that
 may help to fund this effort.

 Andreas

 Am 09.10.2013 18:19, schrieb Gino Pirelli:
  we did a little face to face meeting in Brighton with Martin D. and Marco
  H... QgsLegend classes need a refactory due to structural limitation.
 
  Marco H. did an estimation of the refactoring, but probably, as I can see
  there are more that need this refactoring, could be interesting collect
  features that this re-write should involve
  and obviously funding :)
 
  ciao Luigi Pirelli (luigi.pire...@faunalia.it)
 
 
 
  On 9 October 2013 09:35, Denis Rouzaud denis.rouz...@gmail.com wrote:
 
  I heard some discussions... from Matthias, Martin and Nathan.
 
  but there are probably others!
 
 
  On 10/09/2013 09:30 AM, Andreas Neumann wrote:
 
  Am 09.10.2013 06:16, schrieb Bernhard Ströbl:
 
  Hi
 
  Am 09.10.2013 08:12, schrieb Denis Rouzaud:
 
  Hi,
 
  I am not sure we should make any publicity to the legend API which is
  very bad.
 
  I hope these methods will deprecated soon ;)
 
  So is there anyone working on fixing these legend API problems?
 
  We should probably come up with a Wiki page where we could collect
 ideas
  what we would expect from a proper legend API.
 
  Andreas
  __**_
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/**mailman/listinfo/qgis-**developer
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
 
 
  __**_
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/**mailman/listinfo/qgis-**developer
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
 
 


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

Re: [Qgis-developer] Reliable way to determine a groupIndex in the legend tree

2013-10-10 Thread Vincent Schut

On 10/09/2013 11:41 PM, Nyall Dawson wrote:



Personally, I am also interested in enhancing group options in the
layer
tree. Groups are not just stupid containers with only toggling of
visibility. They could also have a group opacity and blending and
group
metadata. Later on we may also have clipping and masking on groups. So
we really should have an extensible mechanism for groups as new group
features appear.


One thing I'd love to see is the ability to make the layers in a group 
mutually exclusive. (ie, imagine radio buttons instead of checkboxes 
for controlling the visibility of layers within that group). I find 
I'm often going through a process of switching one layer on, then 
switching a bunch of other layers off for comparison purposes. A 
mutually exclusive layer group which automatically switched the other 
child layers off when I select a layer would make this process much nicer!


+1 for this feature from a frequent user!

Best,
Vincent.


Nyall




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


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

[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 mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Reliable way to determine a groupIndex in the legend tree

2013-10-10 Thread Nathan Woodrow
Check out the layer combinations plugin. It's really cool which let's you 
create combinations of layer states to turn on and off.

Would be great to add this as a core feature.

 On 10 Oct 2013, at 6:08 pm, Vincent Schut sc...@sarvision.nl wrote:
 
 On 10/09/2013 11:41 PM, Nyall Dawson wrote:
 
 
 Personally, I am also interested in enhancing group options in the layer
 tree. Groups are not just stupid containers with only toggling of
 visibility. They could also have a group opacity and blending and group
 metadata. Later on we may also have clipping and masking on groups. So
 we really should have an extensible mechanism for groups as new group
 features appear.
 
 One thing I'd love to see is the ability to make the layers in a group 
 mutually exclusive. (ie, imagine radio buttons instead of checkboxes for 
 controlling the visibility of layers within that group). I find I'm often 
 going through a process of switching one layer on, then switching a bunch of 
 other layers off for comparison purposes. A mutually exclusive layer group 
 which automatically switched the other child layers off when I select a 
 layer would make this process much nicer!
 
 +1 for this feature from a frequent user! 
 
 Best,
 Vincent.
 
 Nyall
 
 
 
 
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
 
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] PyQGIS and checking WMS layers have data

2013-10-10 Thread Stott James
Thanks for the suggestion.

I have taken a slightly different approach, and I am checking the file size of 
my PDFs using the following:

os.path.getsize(file)

There is an obvious difference between the file sizes of the PDFs where the wms 
loaded, and those where it failed. If the pdf is too small, it tries to create 
it again. Hopefully it won't get stuck in a loop where if it fails once it will 
always fail!!

James

Fra: Gino Pirelli [mailto:lui...@gmail.com]
Sendt: 9. oktober 2013 20:30
Til: Stott James
Kopi: qgis-developer@lists.osgeo.org
Emne: Re: [Qgis-developer] PyQGIS and checking WMS layers have data

probally solution is connecting to the slots of the QgsRasterLayer class

  public slots:
void showStatusMessage( const QString  theMessage );

/** \brief Propagate progress updates from GDAL up to the parent app */
void updateProgress( int, int );

/** \brief receive progress signal from provider */
void onProgress( int, double, QString );

ciao Luigi Pirelli (luigi.pire...@faunalia.itmailto:luigi.pire...@faunalia.it)
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] texi2pdf and pdf manuals

2013-10-10 Thread Richard Duivenvoorde
Hi Devs,

who is familiar with the texi2pdf stuff we used for the generation of
the pdf manuals?

Please have a look (or try out) this Makefile:

https://github.com/qgis/QGIS-Documentation/blob/master/Makefile

it is more or less copied/makiefied from

https://github.com/qgis/QGIS-Documentation/blob/master/scripts-old/post_translate.sh

after the latex build we use texi2pdf to generate the pdf's

I could not make it work via the pushd popd stuff like in the script, so
try to use some texi2pdf parameters:

--build-dir=$(BUILDDIR)/latex/$(LANG)/

so it is build in the output/latex/xx/ directory.
After that I copy it to the 'live' directory (which is being served via
apache)

While (most languages) working on my machine, it is failing on the server.
Two problems:
- I see this msg: egrep: Invalid range end which is not seen on my machine
- on my machine the pdf is found in:
output/latex/xx/QGISUserGuide.t2d/pdf/build/QGISUserGuide.pdf but on the
server it ends up in a dir with a dot and exclamation marks:
output/latex/xx/.!QGISUserGuide.t2d/pdf/build/QGISUserGuide.pdf

So Questions:
- can somebody please test if you have the server problems too
- can somebody please help me to fix this (otherwise: no pdf's :-( )

Regards,

Richard Duivenvoorde

ps: there are currently a lot of errors in the documentation builds
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Reliable way to determine a groupIndex in the legend tree

2013-10-10 Thread aperi2007
I guess instead that much better should be a group checkbox that 
enable/disable the under childs layer.


This allow OFF the actual configuration or ON that same configuration.
Actually the group checkbox when checked put ON all the layer.
This often is mean too much information .

Instead the mutual exclusive need to choose only one.
And in that case disable and ri-enable will reput the same original clayer.

Andrea.


On 10/10/2013 10:08, Vincent Schut wrote:

On 10/09/2013 11:41 PM, Nyall Dawson wrote:



Personally, I am also interested in enhancing group options in
the layer
tree. Groups are not just stupid containers with only toggling of
visibility. They could also have a group opacity and blending and
group
metadata. Later on we may also have clipping and masking on
groups. So
we really should have an extensible mechanism for groups as new group
features appear.


One thing I'd love to see is the ability to make the layers in a 
group mutually exclusive. (ie, imagine radio buttons instead of 
checkboxes for controlling the visibility of layers within that 
group). I find I'm often going through a process of switching one 
layer on, then switching a bunch of other layers off for comparison 
purposes. A mutually exclusive layer group which automatically 
switched the other child layers off when I select a layer would make 
this process much nicer!


+1 for this feature from a frequent user!

Best,
Vincent.


Nyall




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




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


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

Re: [Qgis-developer] texi2pdf and pdf manuals

2013-10-10 Thread Richard Duivenvoorde
On 10-10-13 13:22, Richard Duivenvoorde wrote:
 Hi Devs,
 
 who is familiar with the texi2pdf stuff we used for the generation of
 the pdf manuals?

fixed

Richard

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


[Qgis-developer] Date for release QGIS android

2013-10-10 Thread Carlos López PSIG
Hello,
Is there a date for the release of QGIS for Android?

We are waiting looking forward!

Thanks,

Carlos López Quintanilla
Consultor SIG
M. +34 699.680.261
carlos.lo...@psig.es
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Date for release QGIS android

2013-10-10 Thread Marco Bernasocchi

Hi, nightly builds are available since more than a year, at android.qgis.org

I've now a much smaller package that would fit in the play store (see 
following mail). I still have some crash but it doesn't look too bad.


ciao Marco

On 10/10/2013 06:34 PM, Carlos López PSIG wrote:

Hello,
Is there a date for the release of QGIS for Android?

We are waiting looking forward!

Thanks,

Carlos López Quintanilla
Consultor SIG
M. +34 699.680.261
carlos.lo...@psig.es



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




--
Marco Bernasocchi
http://opengis.ch
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] test new android package

2013-10-10 Thread Marco Bernasocchi
Hi all, I've been working on creating an android packae that is smaller 
than 50mb to fit the playstore.
the pakage now includes only a small subset of the needed libs, all 
other libs are downloaded on the first run by ministro.


all in all you will be downloding about 30mb for the apk plus 200mb 
dependencies plus 40mb qt, so do it on a wifi, i know it got bigger 
(used to be 150mb apk), but the adventage is that now qgis is small 
enough for the market (thus update notification will be available) and 
for each update you will have to rownload only what actually changed.


To achieve this, I created a reporitory at 
http://android.qgis.org/repository/ that can actually be used by any 
android qt app that needs any of the available libs.


so please, help me test this package and just report if the installation 
worked and you could start QGIS.


thanks a lot Marco

https://db.tt/sBa0e2Pu
--
Marco Bernasocchi
http://opengis.ch
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] how to add labels to PluginLayer?

2013-10-10 Thread Mikhail Tchernychev

Hi,

I am trying to add labels to the plugin  layer. What I use in draw()
is:

 fields = QgsFields()
 fields.append(QgsField('0', QtCore.QVariant.String, 'string', 32))
 fields.append(QgsField('8', QtCore.QVariant.Double, 'double', 8))
 fields.append(QgsField('9', QtCore.QVariant.Double, 'double', 8))

 feat =  QgsFeature(fields)
 label = QgsLabel(fields)
 feat.setAttribute('0','Test Text')
 feat.setAttribute('8', -8.66774)
 feat.setAttribute('9', 37.08391)

 label.renderLabel(renderContext, feat, False)

- QGIS crashes (2.0.1, stock version, Linux)

There is almost no doc on how to add labels to the layer
I am trying to mimic field 'Text' 'XCoordinate' and 'YCoordinate'
with '0', '8' and '9' based on enum LabelField

Apparently also some change in the Api since 1.8, I was
using GridPlugin from 1.8 as example, but something is different now.

Could anyone shed some light on it?

I am actually developing Lat/Lon grid plugin for QGIS, which I think
very much needed.

Thank you
Mikhail
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] plugins and Windows usernames with accents in QGIS 2.0

2013-10-10 Thread Jürgen E . Fischer
Hi Giovanni,

On Thu, 10. Oct 2013 at 13:28:23 +0100, Giovanni Manghi wrote:
 I have noticed that there are still issues when installing plugins on
 Windows machines and when the username has an accented letter.

Try 4cb37b1a please.


Jürgen


-- 
Jürgen E. Fischer norBIT GmbH   Tel. +49-4931-918175-31
Dipl.-Inf. (FH)   Rheinstraße 13Fax. +49-4931-918175-50
Software Engineer D-26506 Norden   http://www.norbit.de
QGIS PSC member (RM)   IRC: jef on FreeNode 


-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

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