Re: [Qgis-developer] (generic?) sanity checks of files
On 12 May 2016 16:23, "Matthias Kuhn" wrote: > > Hi Richard, > > Good idea. > What kind of compatibility checks would you propose? > > Compare the CRS for which a style file was generated and the target > layer and warn if they mismatch? That could potentially be annoying, but > it might give a hint in case something goes wrong. > Or do some measurements (but since measurements are a function of units, > map CRS, zoom level and potentially attributes this may be a very > unstable science)? We could possibly limit the pen width to a reasonable size (in painter units). Qt tends to freak out when a pen width is overly large That would fix the original issue, in any case. Nyall > > Best > Matthias > > On 12/05/16 08:14, Richard Duivenvoorde wrote: > > Hi, > > > > I downloaded a osm shape + some osm style files, to find out (actually > > needed Nyall for this: http://hub.qgis.org/issues/14804 ) that QGIS > > freaks out trying to paint stuff in Map Units while the shp is in > > degrees > > > > I'm wondering IF this is a very seldom occuring case and keep it like it > > is now, OR if there is a need for such checks (maybe more general checks > > for validity or sanity of the different conf files (qlr, qml, symbol.xml > > etc etc) that can be loaded nowadays in QGIS)? > > > > Regards, > > > > Richard > > > > ___ > > Qgis-developer mailing list > > Qgis-developer@lists.osgeo.org > > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer > > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer > > ___ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] (generic?) sanity checks of files
Hi Richard, Good idea. What kind of compatibility checks would you propose? Compare the CRS for which a style file was generated and the target layer and warn if they mismatch? That could potentially be annoying, but it might give a hint in case something goes wrong. Or do some measurements (but since measurements are a function of units, map CRS, zoom level and potentially attributes this may be a very unstable science)? Best Matthias On 12/05/16 08:14, Richard Duivenvoorde wrote: > Hi, > > I downloaded a osm shape + some osm style files, to find out (actually > needed Nyall for this: http://hub.qgis.org/issues/14804 ) that QGIS > freaks out trying to paint stuff in Map Units while the shp is in > degrees > > I'm wondering IF this is a very seldom occuring case and keep it like it > is now, OR if there is a need for such checks (maybe more general checks > for validity or sanity of the different conf files (qlr, qml, symbol.xml > etc etc) that can be loaded nowadays in QGIS)? > > Regards, > > Richard > > ___ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] (generic?) sanity checks of files
Hi, I downloaded a osm shape + some osm style files, to find out (actually needed Nyall for this: http://hub.qgis.org/issues/14804 ) that QGIS freaks out trying to paint stuff in Map Units while the shp is in degrees I'm wondering IF this is a very seldom occuring case and keep it like it is now, OR if there is a need for such checks (maybe more general checks for validity or sanity of the different conf files (qlr, qml, symbol.xml etc etc) that can be loaded nowadays in QGIS)? Regards, Richard ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] [Processing] Table output in .dbf, .csv, ods, xlsx, memory layer, spatialite and postgis
Hello, I've open a pull request to output tables without geometries using VectorWriter and OutputVector classes. This correspond now perfectly with the input ParameterTable which takes all layers, regadless of the geometry column. Using this, I've improved "Refactor fields" algorithm so we can now "refactor" the same way tables with or without geometry. It also and permit to save tables without geometries in several formats using native QGIS providers. Note that for now, tables can only be saved in "csv" format. I think it would be good to merge this before freeze. Could someone take a look at it. Best regards -- Arnaud Morvan Ingénieur logiciel Tél: +33 (0)4 58 48 20 32 Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac Cedex http://www.camptocamp.com ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Annotations in QgsMapCanvas.saveAsImage
Hello, I've made a pull request to add annotations in canvas image export here: https://github.com/qgis/QGIS/pull/3059 This is a small change and we would like it to be merged before freeze. Could someone make a review ? Best Regards -- Arnaud Morvan Ingénieur logiciel Tél: +33 (0)4 58 48 20 32 Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac Cedex http://www.camptocamp.com ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] SIP 4.18 and ConvertToSubClassCode
Hi Matthias Ah, forgot to specify: this is with the latest qgis master: c.composition().getComposerItemById("Text") Best Sandro On 11.05.2016 15:53, Matthias Kuhn wrote: Hi Sandro, Just to be sure, did you also try with the non-closed upstream QGIS code? Matthias On 05/11/2016 03:33 PM, Sandro Mani wrote: Hi Fedora has updated to SIP 4.18, and I'm now seeing some issues with subclass conversions, in particular composerView.composition().getComposerItemById("aQgsComposerLabel") does not anymore return a QgsComposerLabel instance, but rather a QgsComposerItem instance. Does anyone familiar with SIP know how to debug this? I've tried playing around with the ConvertToSubClassCode code in qgscomposeritem.sip, in particular changing sipClass with sipType (having read that the former is deprecated [1]), but no improvements. I actually don't even see that code executing by setting a breakpoint in sip_corepart0.cpp. So, any ideas? Thanks Sandro [1] https://riverbankcomputing.com/pipermail/pyqt/2010-June/026759.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] SIP 4.18 and ConvertToSubClassCode
Hi Sandro, Just to be sure, did you also try with the non-closed upstream QGIS code? Matthias On 05/11/2016 03:33 PM, Sandro Mani wrote: > Hi > > Fedora has updated to SIP 4.18, and I'm now seeing some issues with > subclass conversions, in particular > > composerView.composition().getComposerItemById("aQgsComposerLabel") > > does not anymore return a QgsComposerLabel instance, but rather a > QgsComposerItem instance. > > Does anyone familiar with SIP know how to debug this? I've tried > playing around with the ConvertToSubClassCode code in > qgscomposeritem.sip, in particular changing sipClass with sipType > (having read that the former is deprecated [1]), but no improvements. > I actually don't even see that code executing by setting a breakpoint > in sip_corepart0.cpp. > > So, any ideas? > > Thanks > > Sandro > > > > [1] https://riverbankcomputing.com/pipermail/pyqt/2010-June/026759.html > > ___ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Matthias Kuhn OPENGIS.ch - https://www.opengis.ch Spatial • (Q)GIS • PostGIS • Open Source signature.asc Description: OpenPGP digital signature ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] SIP 4.18 and ConvertToSubClassCode
Hi Fedora has updated to SIP 4.18, and I'm now seeing some issues with subclass conversions, in particular composerView.composition().getComposerItemById("aQgsComposerLabel") does not anymore return a QgsComposerLabel instance, but rather a QgsComposerItem instance. Does anyone familiar with SIP know how to debug this? I've tried playing around with the ConvertToSubClassCode code in qgscomposeritem.sip, in particular changing sipClass with sipType (having read that the former is deprecated [1]), but no improvements. I actually don't even see that code executing by setting a breakpoint in sip_corepart0.cpp. So, any ideas? Thanks Sandro [1] https://riverbankcomputing.com/pipermail/pyqt/2010-June/026759.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] update QgsDataDefinedButton with QgsMapLayerComboBox
Hi Denis, thanks (again) for the answer.. look at QgsDataDefinedButton::init That should set up the button for a layer. It is not a slot though, not sure if you can connect this directly, you might need to create an intermediate method. ok so you think something like self.dataDefined.__init__(vl=self.LayerCombo.currentLayer()) to put in the __init__ method of the class right? Thanks again Matteo ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Compile error with latest gdal
Yes, I deleted the build directory. But still same error. Stefan On Wed, May 11, 2016 at 1:47 PM, Werner Macho wrote: > Hi Stefan, > > Did you already try to start with a complete new build directory? And > in case of using ccache delete the compiler cache? > > regards > Werner > > On Wed, May 11, 2016 at 1:40 PM, Stefan Ziegler > wrote: > > Hi > > > > I get some errors when compiling QGIS master against GDAL master on > Ubuntu > > 16.04: > > > > [ 64%] Built target postgresprovider > > [ 64%] Linking CXX executable ../../output/bin/crssync > > /usr/local/gdal_master/lib/libgdal.so: undefined reference to > > `IVFKDataBlock::GetFeatureCount()' > > collect2: error: ld returned 1 exit status > > src/crssync/CMakeFiles/crssync.dir/build.make:112: recipe for target > > 'output/bin/crssync' failed > > make[2]: *** [output/bin/crssync] Error 1 > > CMakeFiles/Makefile2:1632: recipe for target > > 'src/crssync/CMakeFiles/crssync.dir/all' failed > > make[1]: *** [src/crssync/CMakeFiles/crssync.dir/all] Error 2 > > Makefile:149: recipe for target 'all' failed > > make: *** [all] Error 2 > > > > > > regards > > Stefan > > > > ___ > > Qgis-developer mailing list > > Qgis-developer@lists.osgeo.org > > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer > > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer > ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] update QgsDataDefinedButton with QgsMapLayerComboBox
Hi Matteo, On 05/11/2016 02:41 PM, matteo wrote: > HI devs, > > sorry to write again.. but I'm fighting (again) with Qt and QGIS > widgets.. > > In the UI I have a simple spinbox and I'd like to add the chance for > the user to use the data defined properties to update the value in the > spinbox. > > Unfortunately I'm not able to update the QgsMapLayerComboBox widget to > the QgsDataDefinedButton one. > > With a QgsFieldComboBox I found the easy way signal - solot: > > layerChanged(QgsMapLayer*) -> setLayer(QgsMapLayer*) > > that updates the QgsFieldComboBox (same thing with > QgsFieldExpressionComboBox). > > But I did not find something similar in the QgsDataDefinedButton API. look at QgsDataDefinedButton::init That should set up the button for a layer. It is not a slot though, not sure if you can connect this directly, you might need to create an intermediate method. Best wishes, Denis ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] update QgsDataDefinedButton with QgsMapLayerComboBox
HI devs, sorry to write again.. but I'm fighting (again) with Qt and QGIS widgets.. In the UI I have a simple spinbox and I'd like to add the chance for the user to use the data defined properties to update the value in the spinbox. Unfortunately I'm not able to update the QgsMapLayerComboBox widget to the QgsDataDefinedButton one. With a QgsFieldComboBox I found the easy way signal - solot: layerChanged(QgsMapLayer*) -> setLayer(QgsMapLayer*) that updates the QgsFieldComboBox (same thing with QgsFieldExpressionComboBox). But I did not find something similar in the QgsDataDefinedButton API. Am I missing something? Thanks to all Cheers Matteo ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Compile error with latest gdal
Hi Stefan, Did you already try to start with a complete new build directory? And in case of using ccache delete the compiler cache? regards Werner On Wed, May 11, 2016 at 1:40 PM, Stefan Ziegler wrote: > Hi > > I get some errors when compiling QGIS master against GDAL master on Ubuntu > 16.04: > > [ 64%] Built target postgresprovider > [ 64%] Linking CXX executable ../../output/bin/crssync > /usr/local/gdal_master/lib/libgdal.so: undefined reference to > `IVFKDataBlock::GetFeatureCount()' > collect2: error: ld returned 1 exit status > src/crssync/CMakeFiles/crssync.dir/build.make:112: recipe for target > 'output/bin/crssync' failed > make[2]: *** [output/bin/crssync] Error 1 > CMakeFiles/Makefile2:1632: recipe for target > 'src/crssync/CMakeFiles/crssync.dir/all' failed > make[1]: *** [src/crssync/CMakeFiles/crssync.dir/all] Error 2 > Makefile:149: recipe for target 'all' failed > make: *** [all] Error 2 > > > regards > Stefan > > ___ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Compile error with latest gdal
Hi I get some errors when compiling QGIS master against GDAL master on Ubuntu 16.04: [ 64%] Built target postgresprovider [ 64%] Linking CXX executable ../../output/bin/crssync /usr/local/gdal_master/lib/libgdal.so: undefined reference to `IVFKDataBlock::GetFeatureCount()' collect2: error: ld returned 1 exit status src/crssync/CMakeFiles/crssync.dir/build.make:112: recipe for target 'output/bin/crssync' failed make[2]: *** [output/bin/crssync] Error 1 CMakeFiles/Makefile2:1632: recipe for target 'src/crssync/CMakeFiles/crssync.dir/all' failed make[1]: *** [src/crssync/CMakeFiles/crssync.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 regards Stefan ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer