Re: [Qgis-developer] How to change credentials using QgsCredentials and QgsNetworkAccessManager

2014-06-05 Thread Jürgen E . Fischer
Hi Gino,

On Wed, 04. Jun 2014 at 19:46:07 +0200, Gino Pirelli wrote:
 7) auth is required by the server, but QNetwarkAccessManager use cached
 credentials and NO signal AuthenticationRequired = it doesn't enter
 in QgisApp::namAuthenticationRequired = no credential are requested and
 continue with the old credentials

Try setting the QNetworkRequest::AuthenticationReuseAttribute
of your QNetworkRequest to QNetworkRequest::Manual.


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)  Germany  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


Re: [Qgis-developer] spatial joins and select by location should not consider polygons than only touch

2014-06-05 Thread Andreas Neumann
Hi,

Well, if someone works on improving the intersection functions it would
make sense to introduce a threshold value to allow to ignore area/area
intersections with very small overlaps (e.g. very small sliver polygons
overlapping).

But I doubt that all of this would happen by itself without someone
investing time or money into it. Certainly not for QGIS 2.4 where we are
in feature freeze already.

Andreas

Am 04.06.2014 16:58, schrieb G. Allegri:

 Both options should exist. Perhaps a checkbox to exclude those that only
 touch?

 
 Admittedly, in my own version I have three checkboxes:
 
  - include layers that only touch
  - include layers that only overlaps
  - include layers the are completely contained
 
 and they are all checked by default (which is an intersects)
 This let me take full control on the intersection matrix.
 
 giovanni
 
 
 
 
 Thanks,
 Alex


 
 
 
 
 ___
 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] Editing groups of layers / edit buffer / transactions

2014-06-05 Thread Bernhard Ströbl
 ESET Mail Security, version of virus signature 
database 9896 (20140605) __

The message was checked by ESET Mail Security.
http://www.eset.com


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


Re: [Qgis-developer] Help required tracking down a composer issue

2014-06-05 Thread Julien K.
Hi,

On Sun, Jun 1, 2014 at 3:20 PM, Olivier Dalang olivier.dal...@gmail.com wrote:

 Similar (or same ?) issue reported on my layerCombination's issue tracker :
 https://github.com/olivierdalang/layerCombinations/issues/16

 Do your users by any chance use it ?

 I haven't experienced the bug myself neither though... And haven't looked at
 it yet.

  I played (a little) with QGis-Master and I haven't bumped into that
annoying bug so far...

  Problem seems to be solved, congrats :-)

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


[Qgis-developer] Is useasdefault column in public.layerstyles correctly handled when retrieving default style?

2014-06-05 Thread Gabriele Monfardini
Hi all,

in QGIS (trunk updated from git to some days ago, but also in QGIS 2.2 and
2.0) I have seen a strange behaviour opening a postgis layer in with some
saved styles in table public.layer_styles.

All styles have useasdefault set to false (these styles only makes sense
within some projects, should not be used as default styles).

When I open the layer without any project, one of the styles is applied, in
particular the one with update_time more recent.

The exact query that finds the default style seems to be

SELECT styleQML FROM layer_styles WHERE f_table_catalog='mydb' AND
f_table_schema='myschema' AND f_table_name='mytable' AND
f_geometry_column='the_geom' ORDER BY CASE WHEN useAsDefault THEN 1 ELSE 2
END,update_time DESC LIMIT 1


In my opinion rows with useasdefault set to false should be completely
filtered out by the query.

If all styles have useasdefault set to false, current query retrieves the
most recent style while I think that no rows should be retrieved in this
case and a random color style be applied.

Thus I propose to change the query in

SELECT styleQML FROM layer_styles WHERE f_table_catalog='mydb' AND
f_table_schema='myschema' AND f_table_name='mytable' AND
f_geometry_column='the_geom'  WHERE useAsDefault ORDER BY update_time DESC
LIMIT 1

Would you like me to open a bug?

Regards,

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

Re: [Qgis-developer] spatial joins and select by location should not consider polygons than only touch

2014-06-05 Thread Andreas Neumann
Am 05.06.2014 06:46, schrieb G. Allegri:
 Hi Andreas,
 I'm doing it :)

ah good!

 As you can see I've added the checkox options to have fine control on
 spatial relations. I could add the threashold value as well.
 I know we are in feature freeze, I'm doing it for the next 2.5/2.6. Should
 I wait for 2.4 release before submitting pull requests with new features?

Well - if you do it now there is a risk of conflicts if you merge it
after the lift of the feature freeze. Typically, after the feature
freeze a lot of new features that did not make it into 2.4 are coming in
and there is a risk of conflicts. But in your particular case I don't
think there will be conflicts in this part of the code.

The other thing is that we should now be concentrating on testing and
bug-fixing ;-)

Thanks for you work anyway - no matter when you do it,
Andreas
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGIS HF in Tokyo?

2014-06-05 Thread Yoichi Kayama
Hi Wener

My friend Taichi allow us sharing the picture .
Please promote the spread of QGIS situation in Japan.

best


2014-06-04 17:26 GMT+09:00 Werner Macho werner.ma...@gmail.com:
 Hi Yoichi!

 Do you mind sharing the picture on our info channels like QGIS
 facebook, google+... ? Can we use that picture?

 regards
 Werner

 On Wed, Jun 4, 2014 at 9:48 AM, Yoichi Kayama yoichi.kay...@gmail.com wrote:
 Hi Cava san   and all

 Thank you for  your kind advice.

 I did not participate in the ESRI conference.
 I know about the GIS share from photograph ,my friend taken.

 http://instagram.com/p/onUA1HHaoS/

 above URL  is the photo .
 There is a Pi chart.

 Purple    ArcGIS   51.4%
 Yellow  QGIS  28.8%
 Yellow-green SIS  4.8%
 CyanMapInfo2.7%
 ...





 2014-06-04 16:21 GMT+09:00 Paolo Cavallini cavall...@faunalia.it:
 Hi Yoichi san,

 Il 04/06/2014 09:15, Yoichi Kayama ha scritto:

 I am one of the organizers of this event.

 There was at the Tokyo conference of ESRI last Friday.
 In the conference ,there was a presentation about ratio of the share
 of the GIS software in Japan . Share of ArcGIS  is 51.4%  , and QGIS
 is 28.8% !!.

 That's breaking news! Do you have an exact reference to it?

 QGIS users in Japan is growing rapidly.
 So we need more people working with QGIS community in Japan.
 I want to increase the people who applied to work to maintain the QGIS
 in this event.

 Agreed, that's very important. I suggest you to keep connected with the
 core team, so as to share these initiatives, the methods to further
 improve them, and the success stories. The example of the Swiss QGIS
 association is, in our view, probably the best to follow, and adapt to
 local conditions. Of course you have the collaboration from our side.

 All the best, and thanks.
 --
 Paolo Cavallini - www.faunalia.eu
 QGIS  PostGIS courses: http://www.faunalia.eu/training.html
 ___
 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] Spatialite version in QGIS 2.3.master

2014-06-05 Thread Jakob Lanstorp
I have a 64-bit QGIS 2.3.0-Master on Ubuntu with a Spatialite version of
3.0.0-beta.
On a Windows machine with a OSGEO4W QGIS 2.2 32-bit the Spatialite version
is 4.1.1.

Why is the Spatialite version older on the newer QGIS version?

thanks,
Jakob



-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Spatialite-version-in-QGIS-2-3-master-tp5144205.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Status of QGIS on Android

2014-06-05 Thread Andreas Neumann
Hi,

I have a cool new Android (4.4.2) tablet and wanted to install QGIS on
it. I downloaded the QGIS installer and installed the nightly. The
install went fine and automatically installed the required Ministro II
libraries for qt-support.

After that I was really disappointed. I could neither load a TIFF file
nor a Spatialite file and the QGIS version is 2.0

Is there some newer version available that can at least load and display
layers the most popular formats as read only?

Thanks if you know something about QGIS on Android.

Andreas

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


Re: [Qgis-developer] Status of QGIS on Android

2014-06-05 Thread Jürgen E . Fischer
Hi Andreas,

On Thu, 05. Jun 2014 at 13:19:24 +, Andreas Neumann wrote:
 After that I was really disappointed. I could neither load a TIFF file
 nor a Spatialite file and the QGIS version is 2.0

Maybe Android can't compete with 27 summits[1] in Switzerland. ;)


Jürgen

[1] http://27summits.ch

-- 
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)  Germany  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


Re: [Qgis-developer] Status of QGIS on Android

2014-06-05 Thread Matthias Kuhn
It's been almost there ;)

http://www.opengis.ch/2012/05/12/qgis-4200m/

Matthias

On Don 05 Jun 2014 15:57:41 CEST, Jürgen E. Fischer wrote:
 Hi Andreas,

 On Thu, 05. Jun 2014 at 13:19:24 +, Andreas Neumann wrote:
 After that I was really disappointed. I could neither load a TIFF file
 nor a Spatialite file and the QGIS version is 2.0

 Maybe Android can't compete with 27 summits[1] in Switzerland. ;)


 Jürgen

 [1] http://27summits.ch



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

[Qgis-developer] add rasterlayer to qgsmapcanvas

2014-06-05 Thread Felix Schmidt





Hello everyone,
I try to load on signal, a rasterlayer to qgsmapcanvas. I try it like in
the pycookbook:

@QtCore.pyqtSlot()
 def loadRasterImage(self):
 print slot works
 fileName = QFileDialog.getOpenFileName(None, historical map,
., Image Files (*.png *.jpg *.bmp *.tiff))
 fileInfo = QFileInfo(fileName)
 baseName = fileInfo.baseName()
 rlayer = QgsRasterLayer(fileName, baseName)
 if not rlayer.isValid():
 print Layer failed to load!
 QgsMapLayerRegistry.instance().addMapLayer(rlayer)
 print rlayer.extent().yMinimum()
 self.canvasRaster.setExtent(rlayer.extent())
 self.canvasRaster.setLayerSet( [ QgsMapCanvasLayer(rlayer) ] )

self.canvasRaster is defined in the gui . I search for 8h but I dont
find a solutionen, because there are no errors.

It load the rasterlayer to the main program of qgis, but not in my
qgsmapcanvas. it is still white.

please help me.

Felix



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


Re: [Qgis-developer] add rasterlayer to qgsmapcanvas

2014-06-05 Thread Rouzaud Denis
self.canvasRaster.refresh() at the end ?

On 05 Jun 2014, at 18:27, Felix Schmidt felix.schm...@uni-weimar.de wrote:

 
 
 
 
 Hello everyone,
 I try to load on signal, a rasterlayer to qgsmapcanvas. I try it like in
 the pycookbook:
 
 @QtCore.pyqtSlot()
 def loadRasterImage(self):
 print slot works
 fileName = QFileDialog.getOpenFileName(None, historical map,
 ., Image Files (*.png *.jpg *.bmp *.tiff))
 fileInfo = QFileInfo(fileName)
 baseName = fileInfo.baseName()
 rlayer = QgsRasterLayer(fileName, baseName)
 if not rlayer.isValid():
 print Layer failed to load!
 QgsMapLayerRegistry.instance().addMapLayer(rlayer)
 print rlayer.extent().yMinimum()
 self.canvasRaster.setExtent(rlayer.extent())
 self.canvasRaster.setLayerSet( [ QgsMapCanvasLayer(rlayer) ] )
 
 self.canvasRaster is defined in the gui . I search for 8h but I dont
 find a solutionen, because there are no errors.
 
 It load the rasterlayer to the main program of qgis, but not in my
 qgsmapcanvas. it is still white.
 
 please help me.
 
 Felix
 
 
 
 ___
 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] add rasterlayer to qgsmapcanvas

2014-06-05 Thread Felix Schmidt

Same mistake with refresh() at the end.

Am 05.06.2014 19:11, schrieb Rouzaud Denis:

self.canvasRaster.refresh() at the end ?

On 05 Jun 2014, at 18:27, Felix Schmidt felix.schm...@uni-weimar.de wrote:





Hello everyone,
I try to load on signal, a rasterlayer to qgsmapcanvas. I try it like in
the pycookbook:

@QtCore.pyqtSlot()
 def loadRasterImage(self):
 print slot works
 fileName = QFileDialog.getOpenFileName(None, historical map,
., Image Files (*.png *.jpg *.bmp *.tiff))
 fileInfo = QFileInfo(fileName)
 baseName = fileInfo.baseName()
 rlayer = QgsRasterLayer(fileName, baseName)
 if not rlayer.isValid():
 print Layer failed to load!
 QgsMapLayerRegistry.instance().addMapLayer(rlayer)
 print rlayer.extent().yMinimum()
 self.canvasRaster.setExtent(rlayer.extent())
 self.canvasRaster.setLayerSet( [ QgsMapCanvasLayer(rlayer) ] )

self.canvasRaster is defined in the gui . I search for 8h but I dont
find a solutionen, because there are no errors.

It load the rasterlayer to the main program of qgis, but not in my
qgsmapcanvas. it is still white.

please help me.

Felix



___
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] add rasterlayer to qgsmapcanvas

2014-06-05 Thread Tim Sutton
Hi



On Fri, Jun 6, 2014 at 12:15 AM, Felix Schmidt felix.schm...@uni-weimar.de
wrote:

 Same mistake with refresh() at the end.

 Am 05.06.2014 19:11, schrieb Rouzaud Denis:

  self.canvasRaster.refresh() at the end ?

 On 05 Jun 2014, at 18:27, Felix Schmidt felix.schm...@uni-weimar.de
 wrote:




 Hello everyone,
 I try to load on signal, a rasterlayer to qgsmapcanvas. I try it like in
 the pycookbook:

 @QtCore.pyqtSlot()
  def loadRasterImage(self):
  print slot works
  fileName = QFileDialog.getOpenFileName(None, historical map,
 ., Image Files (*.png *.jpg *.bmp *.tiff))
  fileInfo = QFileInfo(fileName)
  baseName = fileInfo.baseName()
  rlayer = QgsRasterLayer(fileName, baseName)
  if not rlayer.isValid():
  print Layer failed to load!
  QgsMapLayerRegistry.instance().addMapLayer(rlayer)
  print rlayer.extent().yMinimum()
  self.canvasRaster.setExtent(rlayer.extent())
  self.canvasRaster.setLayerSet( [ QgsMapCanvasLayer(rlayer) ] )

 self.canvasRaster is defined in the gui . I search for 8h but I dont
 find a solutionen, because there are no errors.

 It load the rasterlayer to the main program of qgis, but not in my
 qgsmapcanvas. it is still white.


Is the layer loaded, showing in the legend but just not visible? Check the
symbology for the layer is defined properly if this is the case.

Regards

Tim


  please help me.

 Felix



 ___
 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




-- 
Tim Sutton - QGIS Project Steering Committee Member
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Irc: timlinux on #qgis at freenode.net
==
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] add rasterlayer to qgsmapcanvas

2014-06-05 Thread Felix Schmidt

The layer is loading in the legend and shown in the main window.
What do you mean, with the symbology. In front of the layer, in the 
legend, is a raster icon, if you mean this.


I copied the code from the slot to the building of the ui. so the layer 
is loading in the canvas by building the gui and not by clicking in the 
toolbar.


If I start qgis with this state of code, its starts and load load the 
layer, when I start the plugin the canvas is still white and when I 
clicked on the starting picture of qgis which is still there, the layer 
is shown in the canvas of the plugin.


It's confusing me.

Felix

Am 05.06.2014 20:20, schrieb Tim Sutton:

Hi



On Fri, Jun 6, 2014 at 12:15 AM, Felix Schmidt 
felix.schm...@uni-weimar.de mailto:felix.schm...@uni-weimar.de wrote:


Same mistake with refresh() at the end.

Am 05.06.2014 19:11, schrieb Rouzaud Denis:

self.canvasRaster.refresh() at the end ?

On 05 Jun 2014, at 18:27, Felix Schmidt
felix.schm...@uni-weimar.de
mailto:felix.schm...@uni-weimar.de wrote:




Hello everyone,
I try to load on signal, a rasterlayer to qgsmapcanvas. I
try it like in
the pycookbook:

@QtCore.pyqtSlot()
 def loadRasterImage(self):
 print slot works
 fileName = QFileDialog.getOpenFileName(None,
historical map,
., Image Files (*.png *.jpg *.bmp *.tiff))
 fileInfo = QFileInfo(fileName)
 baseName = fileInfo.baseName()
 rlayer = QgsRasterLayer(fileName, baseName)
 if not rlayer.isValid():
 print Layer failed to load!
 QgsMapLayerRegistry.instance().addMapLayer(rlayer)
 print rlayer.extent().yMinimum()
 self.canvasRaster.setExtent(rlayer.extent())
 self.canvasRaster.setLayerSet( [
QgsMapCanvasLayer(rlayer) ] )

self.canvasRaster is defined in the gui . I search for 8h
but I dont
find a solutionen, because there are no errors.

It load the rasterlayer to the main program of qgis, but
not in my
qgsmapcanvas. it is still white.


Is the layer loaded, showing in the legend but just not visible? Check 
the symbology for the layer is defined properly if this is the case.


Regards

Tim

please help me.

Felix



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


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




--
Tim Sutton - QGIS Project Steering Committee Member
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Irc: timlinux on #qgis at freenode.net http://freenode.net
==


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

[Qgis-developer] Opinion on plugin named prepair (and possible likes)

2014-06-05 Thread Kari Salovaara

Hi,

there was some discussions during the spring of the plugin prepair. 
Problem was that it needs to have a compiled kernel, c++, user UI is 
in python.
I've tested it now both in linux (openSuse 12.3 and QGIS 2.2 up2date) 
and windows (w7pro/64 and QGIS 2.3 nightly latest) environments.
In linux the program has to be compiled by user, this might cause some 
problems if user is not used to compile programs, check libraries etc. 
For seasoned user that only takes some 5-10 minutes to get it done. In 
windows there is precompiled package but only as zip not with any 
installer which may cause problems (e.g. where to place it).


Both installations worked with certain settings and included test case, 
results were similar, but further test settings caused  big problems in 
windows installation which I'll report after a good night sleep.


There will be real use for the plugin. But some development is needed 
also for UI.



Conclusions

Plugin is useful and thus very acceptable, but
- it can be installed only by person who knows what to do, those people 
who do digitizing are not always programmers (very seldom)
- to tell where the actual workhorse is situated is quite clumsy way to 
use it even the plugin remembers the site (but only in that same 
session), this should developed to some settings. Now You find it once 
and write it on paper not to need to find it again etc. otherwise you 
spend time and possibility to make error?.


- these kind of plugins should be marked always as experimental and with 
this I mean all similar need-to-be-compiled plugins



Cheers,
Kari

PS. I really liked the idea of this plugin and respect the developers. I 
also understand that maybe something I didn't understand why windows 
didn't work as expected.


--
Kari Salovaara
Hanko, Finland

Volunteers do not necessarily have the time; they just have the heart.
 ~ Elizabeth Andrew

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


Re: [Qgis-developer] Legend refactoring branch merged

2014-06-05 Thread Tim Sutton
Hi Martin


One other glitch I have found is that loading a QML style file in the
properties dialog sometimes (always?) does not refresh the legend when you
close the dialog. Saving the project, closing and reopening it does cause
it to refresh.

Regards

Tim

On Thu, Jun 5, 2014 at 2:11 PM, Gino Pirelli lui...@gmail.com wrote:


 On 5 June 2014 07:37, Martin Dobias wonder...@gmail.com wrote:

 - I have to explicitly choose a style for a WMS layer in order to have
 legend


 yes, it's not so intuitive user interface, but it has it's logic, because
 for a specific layer server can render it in different way with different
 legends


 - WMS provider adds redundant query items to the URL - e.g. URL [1] is
 rewritten to [2]. Maybe that's why my local GeoServer instance has
 problems answering the requests from QGIS


 can be adjusted checking/parsing if parameters are already present
 avoiding to add to the URL params or updating them (layer should be
 updated)

 Regards,

 Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)

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




-- 
Tim Sutton - QGIS Project Steering Committee Member
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Irc: timlinux on #qgis at freenode.net
==
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Legend refactoring branch merged

2014-06-05 Thread Martin Dobias
Hi Tim

On Fri, Jun 6, 2014 at 10:50 AM, Tim Sutton li...@linfiniti.com wrote:
 Hi Martin


 One other glitch I have found is that loading a QML style file in the
 properties dialog sometimes (always?) does not refresh the legend when you
 close the dialog. Saving the project, closing and reopening it does cause it
 to refresh.

How old is your git checkout? I have probably fixed that issue
yesterday - #10469 had very similar symptoms as you describe.

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


Re: [Qgis-developer] Legend refactoring branch merged

2014-06-05 Thread Tim Sutton
Hi


On Fri, Jun 6, 2014 at 10:55 AM, Martin Dobias wonder...@gmail.com wrote:

 Hi Tim

 On Fri, Jun 6, 2014 at 10:50 AM, Tim Sutton li...@linfiniti.com wrote:
  Hi Martin
 
 
  One other glitch I have found is that loading a QML style file in the
  properties dialog sometimes (always?) does not refresh the legend when
 you
  close the dialog. Saving the project, closing and reopening it does
 cause it
  to refresh.

 How old is your git checkout? I have probably fixed that issue
 yesterday - #10469 had very similar symptoms as you describe.


Ah ok I built yesterdam morning early. Compiling now and will come back to
you if I still see the issue. Thanks!

Tim


 Regards
 Martin




-- 
Tim Sutton - QGIS Project Steering Committee Member
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Irc: timlinux on #qgis at freenode.net
==
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] add rasterlayer to qgsmapcanvas

2014-06-05 Thread Denis Rouzaud

can you maybe show us the whole code?

Cheers,

Denis

On 05.06.2014 20:55, Felix Schmidt wrote:

The layer is loading in the legend and shown in the main window.
What do you mean, with the symbology. In front of the layer, in the 
legend, is a raster icon, if you mean this.


I copied the code from the slot to the building of the ui. so the 
layer is loading in the canvas by building the gui and not by clicking 
in the toolbar.


If I start qgis with this state of code, its starts and load load the 
layer, when I start the plugin the canvas is still white and when I 
clicked on the starting picture of qgis which is still there, the 
layer is shown in the canvas of the plugin.


It's confusing me.

Felix

Am 05.06.2014 20:20, schrieb Tim Sutton:

Hi



On Fri, Jun 6, 2014 at 12:15 AM, Felix Schmidt 
felix.schm...@uni-weimar.de mailto:felix.schm...@uni-weimar.de wrote:


Same mistake with refresh() at the end.

Am 05.06.2014 19:11, schrieb Rouzaud Denis:

self.canvasRaster.refresh() at the end ?

On 05 Jun 2014, at 18:27, Felix Schmidt
felix.schm...@uni-weimar.de
mailto:felix.schm...@uni-weimar.de wrote:




Hello everyone,
I try to load on signal, a rasterlayer to qgsmapcanvas. I
try it like in
the pycookbook:

@QtCore.pyqtSlot()
 def loadRasterImage(self):
 print slot works
 fileName = QFileDialog.getOpenFileName(None,
historical map,
., Image Files (*.png *.jpg *.bmp *.tiff))
 fileInfo = QFileInfo(fileName)
 baseName = fileInfo.baseName()
 rlayer = QgsRasterLayer(fileName, baseName)
 if not rlayer.isValid():
 print Layer failed to load!
 QgsMapLayerRegistry.instance().addMapLayer(rlayer)
 print rlayer.extent().yMinimum()
 self.canvasRaster.setExtent(rlayer.extent())
 self.canvasRaster.setLayerSet( [
QgsMapCanvasLayer(rlayer) ] )

self.canvasRaster is defined in the gui . I search for 8h
but I dont
find a solutionen, because there are no errors.

It load the rasterlayer to the main program of qgis, but
not in my
qgsmapcanvas. it is still white.


Is the layer loaded, showing in the legend but just not visible? 
Check the symbology for the layer is defined properly if this is the 
case.


Regards

Tim

please help me.

Felix



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


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




--
Tim Sutton - QGIS Project Steering Committee Member
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Irc: timlinux on #qgis at freenode.net http://freenode.net
==




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