Re: [QGIS-Developer] QGIS Script Error and Resampling Tool
Have you tried the saga -> resampling inside qgis ? A. Il mer 8 lug 2020, 18:50 Federico Gianoli ha scritto: > Dear all, > > I'm looking for a function to resample a raster from 300m to 1km by > considering the mean value of pixels that are not "No Data", as GDAL Warp > does. > But, in case the majority of values within the 3x3 kernel of the 300m > raster are "No data", "No data" will be assigned to the resampled pixel, > which is not included in the above mentioned GDAL tool. > I tried to explain the request here: > https://gis.stackexchange.com/questions/366978/how-to-resample-a-raster-considering-a-minimum-number-of-valid-pixels]. > Apparently, neither QGIS nor Gdal have the possibility to make this control > on the values during the resampling. Do you know if there is an automatic > way to do this? > In order to solve this problem, I have done this script > https://gist.github.com/fgianoli/46a45c5fe042a952580947a282feedc1 to > create a mask to check my results. But I'm experiencing this error at the > end of the process, and I don't understand if my code is wrong or is a qgis > setting: (I'm running version 3.14 under Win10): > > NameError: free variable 'self' referenced before assignment in enclosing > scope > Traceback (most recent call last): > File > "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\gui\AlgorithmDialog.py", > line 201, in on_complete > self.feedback.reportError( > NameError: free variable 'self' referenced before assignment in enclosing > scope > > > > Any suggestions? > Many thanks and kind regards, > > Federico > ___ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] Importing shp into gpkg or PostGIS as SINGLE geometry gives MULTI?
I guess in a geopck it could reduce a multi in single only if it was a multi but with one part only for every geometry. A. Il mar 1 ott 2019, 06:42 Paolo Cavallini ha scritto: > Hi all, > > I have a shp with a single line. I drag and drop it from DB Manager into > either a geopackage or PostGIS, choosing "single instead of multi" > option. The resulting layer is still multi, as shown in DB Manager > itself; same thing with a memory layer, it works. QGIS 3.4 > to me it looks like a bug. opinions? > cheers. > > -- > Paolo Cavallini - www.faunalia.eu > QGIS.ORG Chair: > http://planet.qgis.org/planet/user/28/tag/qgis%20board/ > ___ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] QGIS Desktop as WMS client - purpose of format "Feature"
Hi, Forget to add other explanations: The retrieve geometry from wms is useful also because is in any available srs. So the user can have one single geometry in an srs reprojected on server rather than on qgis. This is better because the wms server can reproject using proprietary grids . Meanwhile the reprojection on qgis is without proprietary grid and so less exact. Regards, A Il gio 27 giu 2019, 18:48 Andrea Peri ha scritto: > Hi, > We use the feature option in getfeatureinfo in qgis to allow the users to > retrieve the geometry from a feature on the map. > This really useful rather than wfs because wfs is inefficient and we often > dont want allow the downloading of the featureset. > So we disable the wfs and suggest to the users to retrieve one single > geometry using the feature option in getfeatureinfo in qgis wns client. > > Regards, > A. > > > Il gio 27 giu 2019, 14:41 Andreas Neumann ha > scritto: > >> Hi, >> >> Since 2-3 versions (I think) there is, next to html and text, now a third >> "format" in GetFeatureInfo with the name "Feature". >> >> I wonder why this new format was introduced? What is the idea and what >> are the advantages? >> >> I noticed that not all of the data types work well in this new format. >> For some (e.g. Postgis data types) data is shown in mode text and html, but >> nothing in "Feature". One such data type are "json" and "jsonb". The >> display either an empty string when a text widet is assigned or NULL when a >> List or Key/Value widget is assigned. >> >> Thanks for clarifying the purpose of the third format "Feature". >> >> Andreas >> >> >> ___ >> QGIS-Developer mailing list >> QGIS-Developer@lists.osgeo.org >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] QGIS Desktop as WMS client - purpose of format "Feature"
Hi, We use the feature option in getfeatureinfo in qgis to allow the users to retrieve the geometry from a feature on the map. This really useful rather than wfs because wfs is inefficient and we often dont want allow the downloading of the featureset. So we disable the wfs and suggest to the users to retrieve one single geometry using the feature option in getfeatureinfo in qgis wns client. Regards, A. Il gio 27 giu 2019, 14:41 Andreas Neumann ha scritto: > Hi, > > Since 2-3 versions (I think) there is, next to html and text, now a third > "format" in GetFeatureInfo with the name "Feature". > > I wonder why this new format was introduced? What is the idea and what are > the advantages? > > I noticed that not all of the data types work well in this new format. For > some (e.g. Postgis data types) data is shown in mode text and html, but > nothing in "Feature". One such data type are "json" and "jsonb". The > display either an empty string when a text widet is assigned or NULL when a > List or Key/Value widget is assigned. > > Thanks for clarifying the purpose of the third format "Feature". > > Andreas > > > ___ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Missing the support for scale parameter in WMS Legend
Hereis the link to dowload the quick video. It use the qgis 2.2. https://www.dropbox.com/s/agskwlvw44amcw8/Video13-03-2017-08-05-42.zip?dl=0 A. 2017-03-13 7:43 GMT+01:00 Nyall Dawson <nyall.daw...@gmail.com>: > On 13 March 2017 at 16:32, Andrea Peri <aperi2...@gmail.com> wrote: >> Hi Nyal, >> Unfortunatelly no. >> No news on this. >> I have no the skill to understand what is the code interested. >> I know it should on one the the committed link due a report send us at >> that time. >> >> Now I try to install the qgis 2.2 or qgis 2.4, and try to test it again. >> Maybe I could do a video. > > A video would be good - I'm not really sure what this change is supposed to > do. > > I'/m just trying to clarify... is it something which is broken, or > something which has been totally removed? > > Nyall -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Missing the support for scale parameter in WMS Legend
Hi Nyal, Unfortunatelly no. No news on this. I have no the skill to understand what is the code interested. I know it should on one the the committed link due a report send us at that time. Now I try to install the qgis 2.2 or qgis 2.4, and try to test it again. Maybe I could do a video. >(* insert the usual disclaimer about "no one should ever sponsor a > feature without an explicit requirement for unit tests in the > contract") But for some enhancement like this, "the wms parameter scale" s quite difficult to do a unit test. Please pay attention that the enhancement funded from us was only in the provider wms (the client). The qgis-server almost at that time don't support this feature (the abiity to have distinct scale rendering for the same layer). This was a feature enhancement forward the other wms-server like geoserver or mapserver. So I guess will be quite difficult to do a UNIT-TEST. Even if we want to do a unit-test, it need a wms service always available and under the control of the qgis team, and obviously it should be a qgis-server. So there was not more chance to be able to test this enhancement that is specifically for the wms client interface. When is developed an enhancement for a WMS in a GIS client the test should be done on more than the own wms service (qgis-server). So need a mapserver, a geoserver and a qgis-server always availables. I know this is quite impossible so also is quite impossible to do a well formed unit-test in the wms section. A. 2017-03-13 2:31 GMT+01:00 Nyall Dawson <nyall.daw...@gmail.com>: > On 23 February 2017 at 17:34, Nyall Dawson <nyall.daw...@gmail.com> wrote: >> On 23 February 2017 at 17:06, Andrea Peri <aperi2...@gmail.com> wrote: >>> Hi, >>> we at Tuscany Region in 2013 fundedthe adding of the support of scale >>> legend in the wms provider. >>> That (if I remenber was added to the 2.2 or 2.4 version of qgis). >>> >>> These are the commit for that adding: >>> >>> https://github.com/qgis/QGIS/commit/8fb20f038d9d6c67bafc932ccea1d688ef2d5363 >>> >>> https://github.com/qgis/QGIS/commit/f6a6a0c017db6306691dca9c9008ef0100574d98 >>> >>> https://github.com/qgis/QGIS/commit/32da13b20c6a408a975d0e93415a73d20a3c4b59 >>> >>> https://github.com/qgis/QGIS/commit/48002dbf18392c1d227983b97e8dc65d7eb1f6b6 >>> >>> https://github.com/qgis/QGIS/commit/d7708437632972b293fe7a511008a910e61c001d >>> >>> From the 2.6 version as I remenber it was removed >> >> Which parts are missing or broken? I just quickly flicked through >> those commits and the code at least all seems to still be there in >> 2.18/master. (I didn't test the functionality, and noticed that >> unfortunately there's no unit tests covering any of the original >> work.) > > Andrea, > > What was the outcome here? Is there missing functionality? > > I'd like to know either way - it's a very bad situation for the > project's reputation if funded features are broken like this*. > > Nyall > > > (* insert the usual disclaimer about "no one should ever sponsor a > feature without an explicit requirement for unit tests in the > contract") -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Missing the support for scale parameter in WMS Legend
Hi Nathan I find only this commit. https://github.com/qgis/QGIS/commit/836e1a86368f9eace236d24ba40b7af77a6bc63d But it speak of don't refresh legend symbology everytime the extent changes I'm not so skill on qgis code to understand what it do. Our feture was for a retrieving of the new legend when scale change (so on zoom action), not on a pan action. So perhaps is not the right commit. No more I found. A. 2017-02-23 8:17 GMT+01:00 Andrea Peri <aperi2...@gmail.com>: > Unfortunatelly no. > :( > > A. > > > 2017-02-23 8:10 GMT+01:00 Nathan Woodrow <madman...@gmail.com>: >> Do you have the commit where it was removed? That would normally have the >> message on why. >> >> Nathan >> >> >> On Thu, 23 Feb 2017 5:06 pm Andrea Peri <aperi2...@gmail.com> wrote: >>> >>> Hi, >>> we at Tuscany Region in 2013 fundedthe adding of the support of scale >>> legend in the wms provider. >>> That (if I remenber was added to the 2.2 or 2.4 version of qgis). >>> >>> These are the commit for that adding: >>> >>> >>> https://github.com/qgis/QGIS/commit/8fb20f038d9d6c67bafc932ccea1d688ef2d5363 >>> >>> >>> https://github.com/qgis/QGIS/commit/f6a6a0c017db6306691dca9c9008ef0100574d98 >>> >>> >>> https://github.com/qgis/QGIS/commit/32da13b20c6a408a975d0e93415a73d20a3c4b59 >>> >>> >>> https://github.com/qgis/QGIS/commit/48002dbf18392c1d227983b97e8dc65d7eb1f6b6 >>> >>> >>> https://github.com/qgis/QGIS/commit/d7708437632972b293fe7a511008a910e61c001d >>> >>> From the 2.6 version as I remenber it was removed >>> >>> I never understand why this feature was removed, but now the question >>> is re-issue in a discussion in an our internal working team , about >>> the usage of QGIS and so I need to confirm the removing and report the >>> explanation of why to my superiors. >>> >>> Effectivelly my tests on the qgis 2.18 on an our wms ehre the legend >>> is sensible to the scale confirm that it is not working, but I still >>> don't know why it was removed. >>> >>> Someone can confirm me and give us some explanation of why this >>> feature was removed ? >>> >>> Many Thx, >>> >>> Andrea Peri >>> >>> Tuscany Region >>> >>> -- >>> ----- >>> Andrea Peri >>> . . . . . . . . . >>> qwerty àèìòù >>> - >>> ___ >>> Qgis-developer mailing list >>> Qgis-developer@lists.osgeo.org >>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > > > -- > - > Andrea Peri > . . . . . . . . . > qwerty àèìòù > - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Missing the support for scale parameter in WMS Legend
Unfortunatelly no. :( A. 2017-02-23 8:10 GMT+01:00 Nathan Woodrow <madman...@gmail.com>: > Do you have the commit where it was removed? That would normally have the > message on why. > > Nathan > > > On Thu, 23 Feb 2017 5:06 pm Andrea Peri <aperi2...@gmail.com> wrote: >> >> Hi, >> we at Tuscany Region in 2013 fundedthe adding of the support of scale >> legend in the wms provider. >> That (if I remenber was added to the 2.2 or 2.4 version of qgis). >> >> These are the commit for that adding: >> >> >> https://github.com/qgis/QGIS/commit/8fb20f038d9d6c67bafc932ccea1d688ef2d5363 >> >> >> https://github.com/qgis/QGIS/commit/f6a6a0c017db6306691dca9c9008ef0100574d98 >> >> >> https://github.com/qgis/QGIS/commit/32da13b20c6a408a975d0e93415a73d20a3c4b59 >> >> >> https://github.com/qgis/QGIS/commit/48002dbf18392c1d227983b97e8dc65d7eb1f6b6 >> >> >> https://github.com/qgis/QGIS/commit/d7708437632972b293fe7a511008a910e61c001d >> >> From the 2.6 version as I remenber it was removed >> >> I never understand why this feature was removed, but now the question >> is re-issue in a discussion in an our internal working team , about >> the usage of QGIS and so I need to confirm the removing and report the >> explanation of why to my superiors. >> >> Effectivelly my tests on the qgis 2.18 on an our wms ehre the legend >> is sensible to the scale confirm that it is not working, but I still >> don't know why it was removed. >> >> Someone can confirm me and give us some explanation of why this >> feature was removed ? >> >> Many Thx, >> >> Andrea Peri >> >> Tuscany Region >> >> -- >> - >> Andrea Peri >> . . . . . . . . . >> qwerty àèìòù >> - >> ___ >> Qgis-developer mailing list >> Qgis-developer@lists.osgeo.org >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Missing the support for scale parameter in WMS Legend
Hi, we at Tuscany Region in 2013 fundedthe adding of the support of scale legend in the wms provider. That (if I remenber was added to the 2.2 or 2.4 version of qgis). These are the commit for that adding: https://github.com/qgis/QGIS/commit/8fb20f038d9d6c67bafc932ccea1d688ef2d5363 https://github.com/qgis/QGIS/commit/f6a6a0c017db6306691dca9c9008ef0100574d98 https://github.com/qgis/QGIS/commit/32da13b20c6a408a975d0e93415a73d20a3c4b59 https://github.com/qgis/QGIS/commit/48002dbf18392c1d227983b97e8dc65d7eb1f6b6 https://github.com/qgis/QGIS/commit/d7708437632972b293fe7a511008a910e61c001d From the 2.6 version as I remenber it was removed I never understand why this feature was removed, but now the question is re-issue in a discussion in an our internal working team , about the usage of QGIS and so I need to confirm the removing and report the explanation of why to my superiors. Effectivelly my tests on the qgis 2.18 on an our wms ehre the legend is sensible to the scale confirm that it is not working, but I still don't know why it was removed. Someone can confirm me and give us some explanation of why this feature was removed ? Many Thx, Andrea Peri Tuscany Region -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Valid or invalid geom in PostGIS?
You have right. The ST_MAkeVaild is capable to return a valid geometry. But it dont remove redundant vertexs. The redundant vertex is not always considered an Unvalidity (I guess yes) so originally it was separated from the MakeValid function. I guess is better if qgis do: before a removeredundants and after a makevalid. Also pay attention to extract right type from the makevalid with the couple forcecollection and after the extractcollection (or collectionextract). Regards, A. 2017-01-16 13:12 GMT+01:00 A Huarte <ahuart...@yahoo.es>: > Yes, Paolo is right. > > There is a project option to set the simplification default setting for new > layers. But you can change this setting to each layer you want (e.g layers > throwing these errors). > > Could ST_RemoveRepeatedPoints from QGIS 2.14 to be the guilty? > > http://qgis.org/en/site/forusers/visualchangelog214/#feature-use-st-removerepeatedpoints-for-server-side-simplification-with-postgis-2-2-or-newer-layers > > Best regards > Alvaro > > > > De: Paolo Cavallini <cavall...@faunalia.it> > Para: qgis-developer@lists.osgeo.org > Enviado: Lunes 16 de enero de 2017 13:00 > Asunto: Re: [Qgis-developer] Valid or invalid geom in PostGIS? > > Il 16/01/2017 12:59, aperi2007 ha scritto: >> Hi, >> >> I dont know any postgis specific server-side simplification option. >> >> :( >> >> Perhaps you mean the "rendering --> Enable feature simplification by >> default for newly added layers" ? > > yes, there is an option for server side simplification > all the best > > -- > Paolo Cavallini - www.faunalia.eu > QGIS & PostGIS courses: http://www.faunalia.eu/training.html > https://www.google.com/trends/explore?date=all=IT=qgis,arcgis > ___ > 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 -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Custom symbol path for QGIS server in mixed environment
Mmmm i guess no. I define an environment variabile in the Service file that start the web engine. Also set the web engine to retrieve the vars from environment. Il 21 ott 2016 15:43, "Paolo Cavallini" <cavall...@faunalia.it> ha scritto: > > Hi Andrea, > aparently qgis does not see the environment I defined. How did you > define it? Did you follow: > > nano /etc/apache2/sites-enabled/nameofthevirtualhost > SetEnv QGIS_OPTIONS_PATH "/qgis_conf/" > > ? > Thanks. > > Il 21/10/2016 11:31, Andrea Peri ha scritto: > > Hi Paolo, > > this is a sample from the qgis.ini in ou qgis-server environment. > > > > It map two paths for svg: the svg for our Geological DB and the path > > for out DBTopographics 2K scale DB. > > > > > > [svg] > > searchPathsForSVG=/home/...path-to.../qgis-settings/svg/simbologie_continuum_geologia_regione_toscana|/home/archivio/server/qgis-settings/svg/simboli_dbt10k_rt_svg|/home/...path-to.../qgis-settings/svg/simboli_rt_dbt2k_v0 > > > > every single path is separated using a | char > > > > regards, > > A. > > > > > > > > > > 2016-10-21 9:16 GMT+02:00 Paolo Cavallini <cavall...@faunalia.it>: > >> Hi all, > >> I have a project with custom symbols stored in a path on a Windows > >> machine, in a location of the type E:\symbols\svg. I need to use these > >> for a server project. I added the conf on the Debian server: > >> > >> mkdir -p /qgis_conf/QGIS > >> nano /etc/apache2/sites-enabled/nameofthevirtualhost > >> SetEnv QGIS_OPTIONS_PATH "/qgis_conf/" > >> chown www-data /qgis_conf > >> nano /qgis_conf/QGIS/QGIS2.ini > >> # add: > >> [svg] > >> searchPathsForSVG=/path/to/svg1|/path/to/svg2 > > > -- > Paolo Cavallini - www.faunalia.eu > QGIS & PostGIS courses: http://www.faunalia.eu/training.html > https://www.google.com/trends/explore?date=all=IT=qgis,arcgis ___ 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] Labelling in QGIS Server/Lizmap
Hi, our webgis framework "Tolomeo" multilayer and multiwms is working like this. It group all the layers in one only service GetMap request for every service. But when the tree is filled with layer coming from different wms services. It must split also for service and for layer. So is quite impossible to have 1 only request , but often there are 3-4 request everyone with more than one layer instead of 20-30 requests. Another question is if the user move the order of the layer up or down in the tree. The framework should recognize this and change the splitting of the request to support the new order. Another question is if the user request some client operation like put a transparency on a layer. This mean that that laywe should request separatly from the other to allow after the change of transparency on the client side. This to explain that the question can rapidly increase in complexity. Regards, A. 2016-10-21 11:22 GMT+02:00 Richard Duivenvoorde <rdmaili...@duif.net>: > On 21-10-16 11:12, Paolo Cavallini wrote: >> Hi René, >> >> Il 21/10/2016 10:46, René-Luc Dhont ha scritto: >> >>> It's not a qgis server issue! >>> It's just the way lizmap querying QGIS Server: One layer at a time! So >>> impossible labelling checking under multiple layer. >>> If you want exactly the sae rendering has QGIS, lizmap has to implement >>> a way to query all the layer in 1 request. >> >> thanks for clarifying. I understand the issue - how hard would it be to >> implement it? Any plans to do it in the foreseeable future? > > Not sure if this would work for you Paolo, but IF all layers come from > the same service, the web-client could try to collect all layers from > that service in the right order and fire it as one WMS request. > > BUT off course this makes it more difficult to implement a layertree in > which you want to be able to show/hide individual layers. You will have > to fire the layer collection EVERY time the visibility of one of the > layer changes. ( I once coded a java-applet doing this :-) ) > > IF it is a one service project, this seems a viable option to implement? > > Regards, > > Richard Duivenvoorde > > ___ > 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 -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ 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] Custom symbol path for QGIS server in mixed environment
Hi Paolo, this is a sample from the qgis.ini in ou qgis-server environment. It map two paths for svg: the svg for our Geological DB and the path for out DBTopographics 2K scale DB. [svg] searchPathsForSVG=/home/...path-to.../qgis-settings/svg/simbologie_continuum_geologia_regione_toscana|/home/archivio/server/qgis-settings/svg/simboli_dbt10k_rt_svg|/home/...path-to.../qgis-settings/svg/simboli_rt_dbt2k_v0 every single path is separated using a | char regards, A. 2016-10-21 9:16 GMT+02:00 Paolo Cavallini <cavall...@faunalia.it>: > Hi all, > I have a project with custom symbols stored in a path on a Windows > machine, in a location of the type E:\symbols\svg. I need to use these > for a server project. I added the conf on the Debian server: > > mkdir -p /qgis_conf/QGIS > nano /etc/apache2/sites-enabled/nameofthevirtualhost > SetEnv QGIS_OPTIONS_PATH "/qgis_conf/" > chown www-data /qgis_conf > nano /qgis_conf/QGIS/QGIS2.ini > # add: > [svg] > searchPathsForSVG=/path/to/svg1|/path/to/svg2 > > but I do not know how to map the desktop path to the server one: any hint? > Thanks a lot. > -- > Paolo Cavallini - www.faunalia.eu > QGIS & PostGIS courses: http://www.faunalia.eu/training.html > https://www.google.com/trends/explore?date=all=IT=qgis,arcgis > ___ > 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 -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ 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] [Server] performance questions
I Guess the time difference between the qgis desktop and qgis-server when using a postgres, is due to the protocol. Infact the http is a connection-less session-less protocoll, so after every map the qgis-server disconnect from postgres. Instead when you work on a qgis desktop as a user on its own pc you are connectin with a postgres and sray connected for all the time. So the postgres don't waste time to open and staryup your connection. Also don't forget that if you stay about 18-20 minutes without do nothing on qgis in a postgres connection. The postgres kill your connection and your qgis go in crazy state. A. 2016-02-23 15:20 GMT+01:00 Régis Haubourg <regis.haubo...@eau-adour-garonne.fr>: > Hi all, > we are working on using qgis server here and we face some performance issues > on big data sets. Cache is not an option for those layers that will be > edited by users. Currently performances are not acceptable for production > uses. Here is a couple of questions that I could not answer by myself on > the net: > > 1- Clarifying multithread on server side vs multithread on desktop: > > We use qgis 2.12 server from qgis repository for debian on a 4 core Xeon > (2.1Ghz) + 16Go RAM. > > We configured apache2 with MPM worker and we have a pool of 10 > qgis_mapserv.fcgi waiting for client request. > The behaviour here is that one client will only consume one fcgid process, > when desktop can use several processes to make some parallel rendering of > project layers. > When having QGIS desktop using only one thread, I have similar rendering > time. The difference is purely proportionnal to CPU speed difference. > Did we miss something in configuration process or is that the intended > behavior? I did try to use QGIS_OPTION_PATH on a QGIS2.ini but I really > can't be sure it is really being used. > Do QGIS packages miss the multithread option on compile cmake options? > If this is expected, does the web architecture would allow to have fcgid do > parallel rendering like desktop? Would that be a big work (I could partly > fund that)? > > > 2- Overhead on first request with postgres complex view compared to > shapefiles > > We have almost only postgis views being used as QGIS layers. Qgis server > builds get capabilities and requests views to get extent and primary keys. > There is a severe overhead for the first wms request by a client session. > When generating the image takes about 7s, the first request can take from 24 > to 30s. Desktop multihreaded will get the image in about 3s (same postgres > server, same network). > That overhead starts to become annoying on desktop side too, but it's only > qgs loading time, once in a work session. Does someone have any idea that > one day postgis could collect such metadata on views so that QGIS do not > have to scan all rows when data are in views? Direct access to tables, or > same project with shp datasources do not show that overhead on server nor in > desktop. > > > Thanks for your hints, > Cheers > > Régis > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Server-performance-questions-tp5252233.html > Sent from the Quantum GIS - Developer mailing list archive at Nabble.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 -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ 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] Begging for some fixes before LTR release
Hi, I guess that activating the contectual legend in the canvas, also in the composer the not visible layers should disapperaing. Is this ok for your usage ? A. 2016-02-23 14:22 GMT+01:00 DelazJ <del...@gmail.com>: > Hi developers, > > At less than a week for the release of the second LTR version (QGIS 2.14), > I'd like to draw your attention on two main issues that are not set as > blockers but I'd beg you to solve them: > > #13575 (http://hub.qgis.org/issues/13575): adds all the available layers to > the legend in print composer instead of just adding those that are visible > in the map canvas. Not set as blocker (it should imho) but AFAICT this > behaviour was introduced in LTR 2.8 and it's not optimal at all when you > have a very big project. > > #13418 (http://hub.qgis.org/issues/13418): it makes preset visibility pretty > unusable with print composers in (large) project with multiple print > composers. For any change you do to a preset, you need to manually echo it > in the map composer properties if you want your maps to be up to date. It's > just unmanageable in, once again, big project (since 2.10 if I'm not wrong). > > I know that there are currently some blocking issues, maybe more sensitive > but these ones just block me (and surely many other people) in my daily > work. I'd be grateful to you if someone can give a look to these issues. > > Thanks for the fixes :) and thanks for the great work you're doing with > QGIS. > > DelazJ > > ___ > 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 -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ 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] How qgis calculate the min/mx of floating point raster
Hi, I pot previously this question to the user ml, ma perhaps is more for developer ml. when I add a flot raster to qgis canvas, and see the starting property settings, I see the qgis has populated the min/max for ever band. But this vales are not corresponding with the results from gdalinfo raster.tif So I guess they are calculated with some algorithm. Is this algorithm knowed ? Or alternatively; whatis the right file where the min/max are calculated , I could try some analyze on code to retrieve the formulaes. Thx, -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Contextual WMS legend graphics forgets option
Hi, strk, and Paolo. I can confirm our goal was to have a per-layer option. Because not all the layers in a wms service are good to have a contextual legend. Actually the more layer don't need a contextual legend. Only few layer with really many layer are this need. Of course the proebl of a per-layer configuration is to have a web client capable to do a non standard call. Meanwhile a per-server configuration will work with every client. This is why we fund also the capability of qgis to set the wms provider to do a contextual-client call. With a per-server configuration this will not need. But another question about why we prefer a per-client configuration is that this is the same configuration used by mapserver in it contextual legend. nfact we originally use the contextual legend in mapserver and after see how good it was on some layer we decided to fund to have the same contextual legend call in qgis-server. This is a good question fo interoperability to have the same request in more then one wms server. This kind of request is surely not standard for ogc but is the same for mapserver and for qgis-server. This mean that a wms provider client that can call the contextual legend on mapserver can call also on qgis-server. Instead If qgis-server was working with a different kind of request for contextual legend, it will be incompatibile and this mean that every client that support the mapserver contextual call don't conseguentially support the qgis-server contextual call. The theird question is that a per-client configuration will allow t have the full legend and also the contextual legend. Instead aper-server configuration will allow to have always only one of both legends. This mean a lesser useful usage. Because not always is useful to have the contextual legend (also on a lyar with many domains). Regards, Andrea. 2015-02-24 17:35 GMT+01:00 Sandro Santilli s...@keybit.net: On Tue, Feb 24, 2015 at 10:42:40PM +0700, Martin Dobias wrote: Hi Paolo On Tue, Feb 24, 2015 at 10:23 PM, Paolo Cavallini cavall...@faunalia.it wrote: Il 24/02/2015 16:18, Sandro Santilli ha scritto: I wouldn't consider that one a bug. The default is for contextual WMS legend to be off (it's not a standard call). Eventually you might want a per-server default configuration, but would be an enhancement. sorry, I do not see your point: if an user chooses to display the legend for a server, it is more than likely that he will expect further connections to that server will remember his choice. but OK, it can be an enhancement. I would even argue that such option should not exist. Most users will probably not understand its meaning. If necessary, such option should be in WMS server configuration dialog, not in the main WMS dialog. Anyway I think QGIS should try to figure it out itself whether the server supports contextual legend. Contextual legend is a non-standard feature, not sure how QGIS could rely on capability info to figure out. Moreover the user might want it enabled only for some of the layers. The per-layer option was explicitly requested by the funding party (Regione Toscana). So I would see a per-server option to determine a per-layer default (overridable) and eventually an autodetect choice for that option in case there's a likely-to-work way to do that. --strk; ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Snapping tolerance
Hi, perhaps I dont understand well what this mean. Infact we usually editing always in native reference system, never editing in reprojected SRS. But I guess that using the project reference system instead of the layer srs for snap operations could cause the snap will affect from an error due to the reprojection operation. If this is true, this could mean that the editing result could change moving from a PC where the precision in due to some local NTv2 data (more precision in reporjection), to another pc where the NTv2 are not available. And also it could depend from the trasformation choose for the reprojection. Im worng the mean of the snap question ? Thx, Andrea. 2014-12-13 7:02 GMT+01:00 Martin Dobias wonder...@gmail.com: Hi Recently I have been working on some snapping improvements (more about that later) and I have found one slightly surprising thing about the configuration of tolerances: if the tolerance unit is set to map units, it actually means layer units - i.e. units in layer's CRS and not in project's CRS. Recently there was even a bug report filed for that: https://hub.qgis.org/issues/11634 I would like to change the behavior so that the map units in snapping config dialog would mean units in project's CRS. Would there be any objections? Alternatively we could just rename map units to layer units to make it less surprising (and eventually add a third option to use project's units). Cheers Martin ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] optionpath su qgis-derver: issues?
Hi, this work for me: (using qgis 2.6:) I put (in the profile file) this setting: export QT_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/qt4/plugins export QGIS_OPTIONS_PATH=/home/archivio/server/qgis-settings/config/ In the folder: /home/archivio/server/qgis-settings/config I put a subfolder named QGIS and inside it I put a file QGIS2.ini (without any dot in front) Inside the QGIS2.ini I put this settings: [svg] searchPathsForSVG=/home/archivio/server/qgis-settings/svg/simbologie_continuum_geologia_regione_toscana|/home/archivio/server/qgis-settings/svg/simboli_rt_dbt2k_v0 It work correctly and the svg are shown. Please notiche the path /home/archivio/server/qgis-settings/config/ is owned from the same user of web server. regards, A. 2014-11-29 12:59 GMT+01:00 Paolo Cavallini cavall...@faunalia.it: Hi all. I noticed that if I set: SetEnv QGIS_OPTIONS_PATH /.qgis2/ www-data writes in it: cache gdal_pam qgis.db whereas if I set it to a different name, nothing is written. Furthermore, a QGIS/QGIS2.ini file does not seem to be used (read/write), e.g. for: [svg] searchPathsForSVG=/path/to/svg Has the behaviour of otionspath changed, or am I missing something? All the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Improving the legend for map-units, data-defined symbology, diagrams and labels
+1 A. Il 14/nov/2014 00:22 Andreas Neumann a.neum...@carto.net ha scritto: I correct myself regarding issue 1: It is not unpredictable and even corresponds nicely with the scale - so map display and legend display are nicely in sync. But I think we need to be able to restrict legends where map units are involved to a certain min/max scale range. So the symbols don't get too big or too small and get into each others way. Andreas On 13.11.2014 23:29, Andreas Neumann wrote: Hi, We need to solve a number of open issues with the legend - preferably in the next QGIS release. This concerns mainly the print composer legend, but perhaps the legend in the legend tree could be solved at the same time. At the same time we should also think how these improved legends could be exposed in QGIS server. I am trying to list the things I would like to see improved: 1. Support for legends for graphical properties defined with map units. Currently these legends display in the print composer at very strange, unpredictable and unusable sizes. E.g. a stroke-width or dash defined in map units is either way too big or too small. Same for symbol sizes defined in map units. We need a way to translate these map units in usable paper units suitable for display in the legend. Let the map author define a corresponding mm size (along with the map units) - solely for the display of the legend. 2. Display of legends for graphical properties defined with data-defined symbology. We need a way to specify common graphical properties in the legend that are of interest in the legend. F.e. - if I define the colors data-defined I would like to be able to specify the expected colors that may appear in my data/project. This could be either done dynamically (by scanning the data) or statically (decided by the map author). Perhaps both methods. To me, the static method may be more predictable and more performant. 3. Legends for diagrams (pie charts, bar charts) - something similar to http://esri.force.com/servlet/rtaImage?eid=08730008Nki; feoid=Bodyrefid=0EM3000Co0O - showing both sizes and colors - nicely stacked into each other. 4. Legends for labels - here we also have the same issue: how can we display a label legend where graphical properties are set based on data-defined values? --- I know this is not yet well specified - but I would like to open the discussion how we can solve the above issues. And I am looking for a QGIS developer who is interested in solving the above issues. If you are interested in developing above listed improvements, please join the discussion or contact me offlist. Do you have ideas how to solve the issues with map units and data-defined symbology? There is at least one other german organization (QGIS user) who is interested in this and would help finance this effort. Perhaps we can find more organizations who would help finance. Thank you for joining the discussion, Andreas ___ 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] Qgis-server in single-symbol renderer don't use the metadata title.
I open the ticket. http://hub.qgis.org/issues/11406 Meanwhile I see that contrarly to the first email, the category also wrong to put the title in the legend response. Thx, Andrea. 2014-10-14 8:57 GMT+02:00 René-Luc Dhont rldh...@gmail.com: Hi Andrea, It's a regression since the merge of the new Layer Tree. Can you open an issue ? Thanks, René-Luc Le 13/10/2014 20:49, Andrea Peri a écrit : Hi, In qgis-server (i tested with last dev), when use a category renderer, and request a GetLegendGraphics. The return use the LayerName as title of the layer in the Legend. Like this sample show: http://tinyurl.com/kwvoo6h Or this other: http://tinyurl.com/qaravsm AFAIK should be better to have as Legend Title the title insert into the Metadata Title (when filled). Infact the layername is often a non-understandable code. Instead the Metadata Title is a Human Understandable value. The choice to put the layername istead of the Metadata title (when available) is a bug or a wanted feature. ? Thx. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Please stop spamming commit logs!
I guess no fiscale advantage there are for any funding GFOSS. So seeing to fiscale advantage the fund to GFOSS are fund lost. I guess however that if a developer named Count zero give some code developed by its own. Why dont write code founded by count zero with its own time ? The anonimy of the code is not a value. More better to know who found Every piece of code. Il 13/ott/2014 11:38 Jonathan Moules j.mou...@hrwallingford.com ha scritto: Hi Larry, At the risk of being a dissenting voice, is this really the message QGIS wants to spread? That sponsorship is king? As an Open Source GIS project, I would hope that its prowess lay in producing exceptional GI software rather than finding sponsorship. The later is a means to an end. Also, what qualifies as “funded by”? There was a monetary transaction? In which case what about the people who donate code they created in their own time and have received no fiscal incentive at all – should not their contributions be similarly highlighted? Cheers, Jonathan *From:* qgis-developer-boun...@lists.osgeo.org [mailto: qgis-developer-boun...@lists.osgeo.org] *On Behalf Of *Larry Shaffer *Sent:* Saturday, October 11, 2014 12:58 AM *To:* Alessandro Pasotti *Cc:* QGIS Developer Mailing List *Subject:* Re: [Qgis-developer] Please stop spamming commit logs! Hi Alessandro, On Fri, Oct 10, 2014 at 6:57 AM, Alessandro Pasotti apaso...@gmail.com wrote: 2014-10-10 14:44 GMT+02:00 Jürgen E. j...@norbit.de: Hi Matthias, On Fri, 10. Oct 2014 at 11:53:28 +0200, Matthias Kuhn wrote: To make an example, this is a good commit message. https://github.com/qgis/QGIS/commit/a132bc9a9e318c2321c8fba13dc9503b4d11e2aa It states * which problem it solves * and what it does exactly And I could not care less about an additional line at the bottom stating Funded by John Wayne Almost. It should have Fixes #8166 in it to automatically link to the issue and close it - Bugfix #8166 doesn't create that link. Good hints. If it's not already in CODING, we could add these guidelines in that file. Also, since most of you don't seem to be annoyed by the funded by sentences, I think we can agree on Victor's proposal: if the new feature/bug fix etc. was funded by an organization, a company or an individual, a single line (80 chars max) sentence can be added as the last line of the commit, after a blank line. That line should be added only in the last merge (final) commit and not on all and every individual commit. I disagree. Funded by attribution lines should go wherever the author feels is appropriate, regardless of whether the commit is a merge type, pulling in a whole branch, or the commits are simply rebased on top of master. It is a matter of public record: * QGIS is a public project * The funding is for a public project. * The funding is a matter of public record (unless otherwise deemed by sponsor). * The commit log is a public record (and the longest standing one for the project). I fail to see how any of that can be misconstrued as spam, if the line in a commit is merely an attribution, i.e. not part of the first line of the commit. Even if *every* single commit message in the QGIS repo had a Funded by attribution line, I could not see how that is anything but a matter of fact. Actually, I think that would be an awesome record of the project's prowess of finding sponsorship. Regards, Larry Shaffer Dakota Cartography Black Hills, South Dakota -- Alessandro Pasotti w3: www.itopen.it ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer This message has been scanned for viruses by MailControl http://www.mailcontrol.com/, a service from BlackSpider Technology Click here https://www.mailcontrol.com/sr/I0txt8yKWP!GX2PQPOmvUihCLhWP7Wj9hp54mmEOLsPcfq!3p+2gK8O0TJTgqoXxCOZlUrWwm5Ieq4Nrivo6iw== to report this email as spam. -- *HR Wallingford and its subsidiaries* uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them. If you have received this message in error please advise us immediately and destroy all copies of it. HR Wallingford Limited Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom Registered in England No. 02562099 -- ___ 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
[Qgis-developer] Qgis-server in single-symbol renderer don't use the metadata title.
Hi, In qgis-server (i tested with last dev), when use a category renderer, and request a GetLegendGraphics. The return use the LayerName as title of the layer in the Legend. Like this sample show: http://tinyurl.com/kwvoo6h Or this other: http://tinyurl.com/qaravsm AFAIK should be better to have as Legend Title the title insert into the Metadata Title (when filled). Infact the layername is often a non-understandable code. Instead the Metadata Title is a Human Understandable value. The choice to put the layername istead of the Metadata title (when available) is a bug or a wanted feature. ? Thx. -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Please stop spamming commit logs!
Hi Alessandro. +1 . Almost because I guess the Public Administration should be stop di wast resources in gfoss. :) So the private could use their money as like better. Instead the public should simply acquire licenses of commecial. This could resolve any problem. Dont ? A. 2014-10-10 9:11 GMT+02:00 Alessandro Pasotti apaso...@gmail.com: Hi, I noticed that somebody started to add commercials to commit logs: Sponsored by Funded by ... etc. etc. We should take this seriously, mostly ever developer works for a company or run its own business. Imagine if everybody starts adding those (not really useful) sentences to every commit. IMHO there othe (better)r ways to advertise our QGIS commitment. -- Alessandro Pasotti w3: www.itopen.it ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Please stop spamming commit logs!
The question is that whn we use an european fund to fund a develope for gfoss (like qgis). The enhancement is an advantace for all. This is a certain. But the European require to certificate the reality of the Fund putting a disclaimer on the product realized. Otherwise no fund at all. I guess a citation in a page that is mied with many other developers is not what ask the europe , because is not possible to localize exactly what was don with the european fund. Ths is surely a problem and I guess is really hard to use successfully European fund for enhancement on QGIS. Instead the EU fund are really good for start new never existent before gfoss products. A godd example of this is gvSIG. That software born with european fund. So no doubt of it , all the work was from EU fund no proble to demostrate it. A. 2014-10-10 9:41 GMT+02:00 Alessandro Pasotti apaso...@gmail.com: 2014-10-10 9:37 GMT+02:00 Jürgen E. j...@norbit.de: Hi Alessandro, On Fri, 10. Oct 2014 at 09:11:46 +0200, Alessandro Pasotti wrote: I noticed that somebody started to add commercials to commit logs: Sponsored by Funded by ... etc. etc. We should take this seriously, mostly ever developer works for a company or run its own business. Imagine if everybody starts adding those (not really useful) sentences to every commit. IMHO there othe (better)r ways to advertise our QGIS commitment. Like? We could mention it in release notes and changelogs. Or create a dedicated page on the website (for funding over a certain amount). -- Alessandro Pasotti w3: www.itopen.it ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] RFC for python server plugins ready for voting
The slides dont say nothing about the optionality of this. Should be possible to disable all the python side using some compile settings ? like disable-python-server-side ? Or enable it only for speciic project. So avoid to have more insances. Something with python capability and other without python capability ? Aso a last question is the accounting. At least of lesser site, the usual user accounting is using single-sign-on solutions with https. Is this supported ?. Obviously it should supported directly from qgis-server otherwise it is exposed to the man in the middle attack. A. 2014-10-03 18:13 GMT+02:00 Alessandro Pasotti apaso...@gmail.com: Hello, this afternoon at the HF in Essen we had a meeting about my proposal to implement python plugins for the server side https://github.com/qgis/QGIS-Enhancement-Proposals/pull/4 I've collected your comments and finalized the proposal with the more complete implementation, that will offer much more flexibility for plugins to implement new features and modify existing ones. If you like you can read the slides online here: http://www.itopen.it/qgis-server-plugins/ The RFC is now open for voting, please give some feed-back! Thanks! -- Alessandro Pasotti w3: www.itopen.it ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Memory Layers - some proposals
I agree. It seem me a silly question. If an user choose a memory layer it know that is a memory layer :) So it is not a permanent dataset. I like the memory layer because they as really useful for temporary elaborations and quickly tests. lso another question is. If an user choose the memory layer it crunch the ram resources. And after it begin to ask for more resources because its million records daataset is not well used with the memory layer. However if like to put a memory layer persistent. Why dont return to old question. Change the project save from XML to a spatialite ? Storing the project in a spatialite will allow easily to host also in the spatialte the datasets if this is the like of the qgis community. Also the spatialite start to support also the raster with rasterlite extension. So tomorrow you should do also a memory raster layer. Regards, Andrea. 2014-09-25 9:19 GMT+02:00 Matthias Kuhn matthias.k...@gmx.ch: Hi, Please excuse my ignorance, but Why would you want a memory (as in RAM) layer when you want permanent data? For portability reasons? That's fine, but then we should offer a possibility to support portability support for a real geo-format (with spatial index and all the goodies). To stuff it into the project file there can be support from a plugin, but I would not vote for adding this to core. To me it seems that the current demand for this comes mainly from wrong expectations created by the name (and people subsequently loosing data). And we can fix the name. For the portability issue, I'd rather go the longer way but get it right. Regards Matthias ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Module dependencies
Hi Paolo, I have some doubt on automatic installation of dependencies. This fear this will be a bad practice for security. As example: one black-hacker could create a simply and apparently innocent plugin for qgis. A plugin that the responsible manager of the plugin repo of qgis could surely admit in the repo of qgis. Because it seem to have no particular problems except some extern dependencies. But that plugin will have a dependencies that cause the installer automatically to install another plugin from external source. And this thirdy part plugin could be a malware. A. 2014-09-23 7:45 GMT+02:00 Paolo Cavallini cavall...@faunalia.it: Il 23/09/2014 01:35, Andrew McClure ha scritto: Our plugin: https://plugins.qgis.org/plugins/TelemetryLayer/ Depends on Memory Layer saver to save its layers. (I need to add this to the docs) I note that some plugin frameworks have a dependencies array in their module definitions (metadata.txt for QGIS plugins) and wondered if this was something useful to consider as a feature. I think external plugins dependencies are our weak spot for plugins. Anything we can to to make life easier for both developers and users to detect and install needed libs is most welcome. All the best, and thanks for raising the point. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins
I guess the main goal is to avoid that the adopt of python on server could slow it. Infact , the main difference from a desktop and a server is that the first is serving only one perosn and this mean that the user could wait also for a work for himself. Instead a server is used from many users and every of them dont like to wait too much. So the preferrable is if the python server solution sill be optional. So who don't need it could to not compile it. Sincerelly I don t see any advantage in the python server side inside the qgis. The only scenario I could admit is for a rapid prototype of some solution, but afer, this for an usage in a production environment the python solution should be transform in a C/C++ solution to have the sufficient execution rapidity. A. 2014-08-29 10:42 GMT+02:00 Alessandro Pasotti apaso...@gmail.com: 2014-08-29 10:24 GMT+02:00 Pirmin Kalberer pi...@sourcepole.com: Hi Alessandro, Am Donnerstag, 28. August 2014, 14.49:47 schrieb Alessandro Pasotti: as anticipated to some of you during the last HF, I've started to add Python plugins support for the server side. The rationale behind server plugins is doublefold: first they could provide additional services without the need to touch the C++ codebase, second they allow for GUI-based configuration since the server plugins are not separated from the desktop plugins (of course the environment and permissions should be carefully configured to allow information sharing from the desktop user to the webserver user ). This looks like the first real case for an RFC! I'm quite sceptical adding Python to QGIS server. In my opinion this should be discussed thoroughly first. Hello Pirmin, thanks for the feedback!!! At least this is the start of a discussion :) I knew from previous conversations with some of you that adding python plugins to the server was not at the top of the priority list and I added QEP (RFC) in the original subject because I know this topic must be discussed: I'm not going to do a PR anytime soon, and my implementation is more like an hack to see how far can I go with this idea, but, so far, it seems quite promising. Everybody knows how has been important to have Python plugins on the desktop side, coding in Python is 5 to 10 times faster than building C++ code and moreover the lower barrier to start being productive will bring a lot of new functionalities from a larger pool of developers. Last but not least, python plugins do not need to pass the PR/pull/build/relase cycle that affect the C++ core, which adds a considerable delay to bug fixes and new features. That said, I would really like to hear more from you all about the reasons to be against this idea. -- Alessandro Pasotti w3: www.itopen.it ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins
Hi Poalo, How you can say that the overhead should be minimal. ? :)) However surely best ifthe python on server is optional in compiling. So if an user dont want it should remove it. A. 2014-08-29 11:45 GMT+02:00 Paolo Cavallini cavall...@faunalia.it: Il 29/08/2014 11:41, Andrea Peri ha scritto: I guess the main goal is to avoid that the adopt of python on server could slow it. Hi Andrea, In the first case I imagine (executing Processing modules or models as WPS services), the overhead will be minimal, as all the heavy computation is run by the appropriate backend. All the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins
The startuptime increase if iT should lo ad the python environment. All the best. Il 29/ago/2014 12:13 Paolo Cavallini cavall...@faunalia.it ha scritto: Il 29/08/2014 12:09, Andrea Peri ha scritto: Hi Poalo, How you can say that the overhead should be minimal. Because in that case Python does almost nothing, just passing the command to GDAL, SAGA, GRASS, or whatever. All the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: 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
Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins
OS the python usable in a fcgi environment ? This mean to load and lock an instante of python forma every fcgi session (almost 40-60 afaik) ? A. Il 29/ago/2014 12:47 G. Allegri gioha...@gmail.com ha scritto: 2014-08-29 12:23 GMT+02:00 Andrea Peri aperi2...@gmail.com: The startuptime increase if iT should lo ad the python environment. All the best. The startup will happen only the first time, unless you use CGI and not FCGI. Anyway, I proposed it a couple of years ago, but many told it was useless for various reasons. I think it could be useful if the plugin could affect WMS/WFS request/response. As an independent service I would rather use standalone python web code (actually I do it this way, loading, parsing and caching the qgs project and, in case, using headless QGIS APIs). giovanni Il 29/ago/2014 12:13 Paolo Cavallini cavall...@faunalia.it ha scritto: Il 29/08/2014 12:09, Andrea Peri ha scritto: Hi Poalo, How you can say that the overhead should be minimal. Because in that case Python does almost nothing, just passing the command to GDAL, SAGA, GRASS, or whatever. All the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: 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 -- Giovanni Allegri http://about.me/giovanniallegri Twitter: https://twitter.com/_giohappy_ blog: http://blog.spaziogis.it GEO+ geomatica in Italia http://bit.ly/GEOplus ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins
Another question. Is about the security of the environment. I don't know too well the possibility of python in a qgis project. But I fear that a qgis project could have some python code to start ad startup of the qgis project. This mean that the same code should be run in the server when it start a qgis-server instance in fcgi ? However the more important option is to be able to choose to fully disable this option. Thx, A. 2014-08-29 13:18 GMT+02:00 Andrea Peri aperi2...@gmail.com: OS the python usable in a fcgi environment ? This mean to load and lock an instante of python forma every fcgi session (almost 40-60 afaik) ? A. Il 29/ago/2014 12:47 G. Allegri gioha...@gmail.com ha scritto: 2014-08-29 12:23 GMT+02:00 Andrea Peri aperi2...@gmail.com: The startuptime increase if iT should lo ad the python environment. All the best. The startup will happen only the first time, unless you use CGI and not FCGI. Anyway, I proposed it a couple of years ago, but many told it was useless for various reasons. I think it could be useful if the plugin could affect WMS/WFS request/response. As an independent service I would rather use standalone python web code (actually I do it this way, loading, parsing and caching the qgs project and, in case, using headless QGIS APIs). giovanni Il 29/ago/2014 12:13 Paolo Cavallini cavall...@faunalia.it ha scritto: Il 29/08/2014 12:09, Andrea Peri ha scritto: Hi Poalo, How you can say that the overhead should be minimal. Because in that case Python does almost nothing, just passing the command to GDAL, SAGA, GRASS, or whatever. All the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: 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 -- Giovanni Allegri http://about.me/giovanniallegri Twitter: https://twitter.com/_giohappy_ blog: http://blog.spaziogis.it GEO+ geomatica in Italia http://bit.ly/GEOplus -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Processing causes major slowness at QGIS startup
Hi. Perhaps this is due to the plugin onstaller serring alway update at startup ? Il 27/ago/2014 06:35 Nathan Woodrow madman...@gmail.com ha scritto: It should also be possible to add some timing stats to the plugin loading code from the QGIS side to log which plugins are taking time to load. - Nathan On Wed, Aug 27, 2014 at 2:29 PM, Luca Manganelli luc...@gmail.com wrote: On Tue, Aug 26, 2014 at 5:36 PM, Régis Haubourg regis.haubo...@eau-adour-garonne.fr wrote: Hi, interesting issue. More generaly, startup speed starts to be an issue here, and plugins take more than half the time of global startup. Right. If we remove all of those plugin, QGIS is much faster to start. Do we have tips for plugin authors to speed up python loading? Yes, they should move the big code from init() to initGUI(). They should remember that the code in init() is ALWAYS executed, even with that plugin disabled from the list. ___ 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] line renderer and composition mode
style - advanced - symbol-level. A. 2014-08-27 16:20 GMT+02:00 Andrea Peri aperi2...@gmail.com: Your solution is not always good. You should could use the level symbols to give what symbol won in overlap. A. 2014-08-27 14:53 GMT+02:00 Jürgen E. j...@norbit.de: Hi, any objections to have the line symbol layer render in composition mode source? I have a layer with multiple levels of administrative boundaries, where higher level boundaries (eg. state) lie over lower level boundaries (county). Lower level boundaries should not be visible if there is a higher level boundary on top of them. The styles are dash-dotted - so the lines don't fully cover the lines below. I could solve that by putting a white line on the bottom of the symbol, but that would also mean that layers below are covered, that I still would like see. Rendering the line in source composition would allow to have a fully transparent line symbol layers on the bottom of the symbol that would overwrite the already rendered lines on that layer with transparency. Is that already possible in a different way (without resorting to multiple vector layers) to achieve the same? Or does it introduce some problem that I didn't think of? It could still be optional... Jürgen diff --git a/src/core/symbology-ng/qgslinesymbollayerv2.cpp b/src/core/symbology-ng/qgslinesymbollayerv2.cpp index 5a06f23..e21474a 100644 --- a/src/core/symbology-ng/qgslinesymbollayerv2.cpp +++ b/src/core/symbology-ng/qgslinesymbollayerv2.cpp @@ -207,10 +207,12 @@ void QgsSimpleLineSymbolLayerV2::renderPolygonOutline( const QPolygonF points, return; } + p-save(); + p-setCompositionMode( QPainter::CompositionMode_Source ); + if ( mDrawInsidePolygon ) { //only drawing the line on the interior of the polygon, so set clip path for painter -p-save(); QPainterPath clipPath; clipPath.addPolygon( points ); @@ -236,11 +238,8 @@ void QgsSimpleLineSymbolLayerV2::renderPolygonOutline( const QPolygonF points, renderPolyline( ring, context ); } - if ( mDrawInsidePolygon ) - { -//restore painter to reset clip path -p-restore(); - } + //restore painter's composition mode and reset clip path + p-restore(); } @@ -252,6 +251,9 @@ void QgsSimpleLineSymbolLayerV2::renderPolyline( const QPolygonF points, QgsSym return; } + p-save(); + p-setCompositionMode( QPainter::CompositionMode_Source ); + double offset = 0.0; applyDataDefinedSymbology( context, mPen, mSelPen, offset ); @@ -280,6 +282,8 @@ void QgsSimpleLineSymbolLayerV2::renderPolyline( const QPolygonF points, QgsSym for ( int part = 0; part mline.count(); ++part ) p-drawPolyline( mline[ part ] ); } + + p-restore(); } QgsStringMap QgsSimpleLineSymbolLayerV2::properties() const -- 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 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFT/dS6c/GhTF5ESHURAk2fAJ4jTVoeU69IRlX2TPOzrL5KZGSeGACgs7gP yPIP/+rhT1MnuZypz3l/OzM= =0y5K -END PGP SIGNATURE- ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] line renderer and composition mode
Your solution is not always good. You should could use the level symbols to give what symbol won in overlap. A. 2014-08-27 14:53 GMT+02:00 Jürgen E. j...@norbit.de: Hi, any objections to have the line symbol layer render in composition mode source? I have a layer with multiple levels of administrative boundaries, where higher level boundaries (eg. state) lie over lower level boundaries (county). Lower level boundaries should not be visible if there is a higher level boundary on top of them. The styles are dash-dotted - so the lines don't fully cover the lines below. I could solve that by putting a white line on the bottom of the symbol, but that would also mean that layers below are covered, that I still would like see. Rendering the line in source composition would allow to have a fully transparent line symbol layers on the bottom of the symbol that would overwrite the already rendered lines on that layer with transparency. Is that already possible in a different way (without resorting to multiple vector layers) to achieve the same? Or does it introduce some problem that I didn't think of? It could still be optional... Jürgen diff --git a/src/core/symbology-ng/qgslinesymbollayerv2.cpp b/src/core/symbology-ng/qgslinesymbollayerv2.cpp index 5a06f23..e21474a 100644 --- a/src/core/symbology-ng/qgslinesymbollayerv2.cpp +++ b/src/core/symbology-ng/qgslinesymbollayerv2.cpp @@ -207,10 +207,12 @@ void QgsSimpleLineSymbolLayerV2::renderPolygonOutline( const QPolygonF points, return; } + p-save(); + p-setCompositionMode( QPainter::CompositionMode_Source ); + if ( mDrawInsidePolygon ) { //only drawing the line on the interior of the polygon, so set clip path for painter -p-save(); QPainterPath clipPath; clipPath.addPolygon( points ); @@ -236,11 +238,8 @@ void QgsSimpleLineSymbolLayerV2::renderPolygonOutline( const QPolygonF points, renderPolyline( ring, context ); } - if ( mDrawInsidePolygon ) - { -//restore painter to reset clip path -p-restore(); - } + //restore painter's composition mode and reset clip path + p-restore(); } @@ -252,6 +251,9 @@ void QgsSimpleLineSymbolLayerV2::renderPolyline( const QPolygonF points, QgsSym return; } + p-save(); + p-setCompositionMode( QPainter::CompositionMode_Source ); + double offset = 0.0; applyDataDefinedSymbology( context, mPen, mSelPen, offset ); @@ -280,6 +282,8 @@ void QgsSimpleLineSymbolLayerV2::renderPolyline( const QPolygonF points, QgsSym for ( int part = 0; part mline.count(); ++part ) p-drawPolyline( mline[ part ] ); } + + p-restore(); } QgsStringMap QgsSimpleLineSymbolLayerV2::properties() const -- 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 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFT/dS6c/GhTF5ESHURAk2fAJ4jTVoeU69IRlX2TPOzrL5KZGSeGACgs7gP yPIP/+rhT1MnuZypz3l/OzM= =0y5K -END PGP SIGNATURE- ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] line renderer and composition mode
Yes. You can apply the transparency on color single. Il 27/ago/2014 17:06 Jürgen E. j...@norbit.de ha scritto: Hi Andrea, On Wed, 27. Aug 2014 at 16:20:14 +0200, Andrea Peri wrote: Your solution is not always good. You should could use the level symbols to give what symbol won in overlap. I'm already using symbol levels. Is there a way to have transparency in higher levels remove earlier rendered stuff on lower levels? Level 2 - .. - Level 1 -.-.-. Should look like - .. - if there are level 1 2 boundaries on top of each other and not like -...-- Still the transparent bits should not cover (vector/raster) layers below. Putting a fully transparent line on the bottom of each level and rendering it in source composition mode would achieve that (ie. the transparent bits of the higher level would make everything rendered in lower levels transparent again instead of leaving it as is). Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFT/fPDc/GhTF5ESHURAnUNAJ9JoQRZNHxxjNe/YL7BLIz+99mYbwCfXbce 462gR50pZLQquO+6SWVpkl8= =6RD6 -END PGP SIGNATURE- ___ 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] line renderer and composition mode
Hi. Just to understand the questione. If you put Level2 = 2 Level1 = 1 Choosing so the level2 to overlap always the level1 when both on same point dont is what you need ? Il 27/ago/2014 17:06 Jürgen E. j...@norbit.de ha scritto: Hi Andrea, On Wed, 27. Aug 2014 at 16:20:14 +0200, Andrea Peri wrote: Your solution is not always good. You should could use the level symbols to give what symbol won in overlap. I'm already using symbol levels. Is there a way to have transparency in higher levels remove earlier rendered stuff on lower levels? Level 2 - .. - Level 1 -.-.-. Should look like - .. - if there are level 1 2 boundaries on top of each other and not like -...-- Still the transparent bits should not cover (vector/raster) layers below. Putting a fully transparent line on the bottom of each level and rendering it in source composition mode would achieve that (ie. the transparent bits of the higher level would make everything rendered in lower levels transparent again instead of leaving it as is). Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFT/fPDc/GhTF5ESHURAnUNAJ9JoQRZNHxxjNe/YL7BLIz+99mYbwCfXbce 462gR50pZLQquO+6SWVpkl8= =6RD6 -END PGP SIGNATURE- ___ 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] Resurrecting the RFC (QEP - QGIS Enhancement Proposal)
What mean the community dont agree ? More explain. If 3 or 4 user community say no or ask different solutions . It is the community think ? I guess the PSC should not ne only a simply executor of the community think, but the real director of the project. Often the community think a thing bit thw more strategic solution is another. I guess the server side is always minority on user interest. And often the user font understand what is a server question. So the community never choose a server solution. This mean in the medium time to split the qgis in two distincts products. Desktop and server. Every one with its own community. My 1 ct. :) Il 25/ago/2014 11:35 Tim Sutton t...@kartoza.com ha scritto: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi On 25/08/2014 07:42, Martin Dobias wrote: On Sat, Aug 23, 2014 at 8:31 AM, Nyall Dawson nyall.daw...@gmail.com wrote: On 23/08/2014 3:33 am, Even Rouault even.roua...@spatialys.com wrote: Le vendredi 22 août 2014 17:19:34, Marco Hugentobler a écrit : - Who can vote? PSC only (GDAL) / committers With GIT, 'committers' can be anyone. You probably meant folks who have push rights in official repo ? If you give them voting rights, and potentially veto right (not sure how the rules of the voting system of QGIS are), then they are defacto PSC members, since they can steer the direction of the project. Not saying this is bad. Just a consequence. I'd say neither psc nor commit rights are a good fit. While I agree that the psc should definitely have a say, not everyone on the psc is a developer or has c++ coding experience. Similarly, we have people who have commit rights who are neither developers nor psc members. I had the same impression as Nyall. PSC is meant to steer direction of the whole project, not to deal with technical details of implementations in QEPs - after all, only 3 out of 7 positions are meant for developers. At the same time I understand that creating another developer committee would make things more complex. I think that voting on QEPs could be started when the QEP's author has impression that enough consensus was reached. Most projects also allow their RFCs to go to 'deferred' state if the proposal is too controversial. Since a big part of the qep would be commenting on proposed technical architecture, I think its fairly important that developers have a good say in the process. But conversely if the qep process determines the direction of QGIS, then non devs on the psc should also have a say. Originally I thought that only new functionality would be covered by QEPs, but it is actually quite useful to have one common process for any significant changes in the project - ranging from development stuff through infrastructure changes to organizational changes (like introduction of trademark). So it makes sense to have PSC vote on QEPs. So my 2c: - From the PSC point of view the intention is that the PSC facilitate teams to work on specific areas e.g. documentation team, UX team etc. I think RFC's would probably come under Marco's remit (PSC: Code Manager). I don't think it is necessary for the whole PSC to be involved unless Marco wants help. So the normal modus operandi would be: * Marco forms an RFC review team * People submit RFC's * Review team accepts or denies the RFC's * PSC is available to resolve any disputes that may arise or aid in decision making where review team feels the impact on the project is broad. Regards Tim Regards Martin ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer - -- - -- Tim Sutton Visit http://kartoza.com to find out about open source: * Desktop GIS programming services * Geospatial web development * GIS Training * Consulting Services Skype: timlinux Irc: timlinux on #qgis at freenode.net Tim is a member of the QGIS Project Steering Committee - -- Kartoza is a merger between Linfiniti and Afrispatial -BEGIN PGP SIGNATURE- Version: GnuPG v1 iEYEARECAAYFAlP7A2YACgkQqk07qZdiYjenOQCfbV4jpunnB4YljgRigW1q7F02 AA4AoMoe+++BE+WjG4pzL0jPKnIFqSPr =/Cer -END PGP SIGNATURE- ___ 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] Geospackage Slow in QGIS
Hi, I have changed my opinin. From +1 to +0 Infact I discovered just now that gdal driver for spatialite don't seem to support tables with more than 1 geometrt field. Almost on QGIS. Andrea 2014-05-17 22:19 GMT+02:00 Jeremy Palmer jpal...@linz.govt.nz: I'm wondered why QGIS needs a native SpatiaLite provider and connection dialogue any more. Unlike other database providers such as PostGIS, Oracle, MSSQL the SpatiaLite provider doesn't seem to have anything special that requires a QGIS provider. From a users perspective it just adds to the confusion and complexity for adding data. Why not just use GDAL/OGR for both Geopackage and Spatialite? Cheers Jeremy From: Stefan Keller [sfkel...@gmail.com] Sent: Sunday, 18 May 2014 12:24 a.m. To: Martin Dobias Cc: Jeremy Palmer; qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Geospackage Slow in QGIS Hi Martin It has a different binary encoding compared to Spatialite. And in addition it integrates raster tiles (MBTiles) and metadata. -S. 2014-05-17 14:10 GMT+02:00 Martin Dobias wonder...@gmail.commailto:wonder...@gmail.com: Hi On Sat, May 17, 2014 at 2:32 PM, Jeremy Palmer jpal...@linz.govt.nzmailto:jpal...@linz.govt.nz wrote: I've just been using the new implementation of Geopackage in QGIS :) However each map render or feature info is very slow for large database files - even with the new GDAL/OGR Geopackage spatial index support. Each time QGIS renders a new map view or executes a feature info it re-opens the Geopackage file in QgsOgrFeatureIterator via OGROpen, and the Geopackage driver open method runs PRAGMA integrity_check which is very slow (4 secs with my 2GB test file). This integrity check is actually a Geopackage requirement. How can this be fixed? At the in QGIS or GDAL/OGR level? Actually I am wondering how different is the format of GeoPackage from the format of SpatiaLite... we could use our native SpatiaLite provider also for GeoPackage files if they are close enough. Any ideas? Regards Martin ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.orgmailto:Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or i...@linz.govt.nz) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Geospackage Slow in QGIS
Just to explain why this is an important question. On a sqlite db is impossible to remove a field. So if a table is with two geometry field, it is never see-able from qgis. Because is not possible a command like: alter table remove filed geometry-2; Bye, Andrea Peri. 2014-08-18 16:52 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I have changed my opinin. From +1 to +0 Infact I discovered just now that gdal driver for spatialite don't seem to support tables with more than 1 geometrt field. Almost on QGIS. Andrea 2014-05-17 22:19 GMT+02:00 Jeremy Palmer jpal...@linz.govt.nz: I'm wondered why QGIS needs a native SpatiaLite provider and connection dialogue any more. Unlike other database providers such as PostGIS, Oracle, MSSQL the SpatiaLite provider doesn't seem to have anything special that requires a QGIS provider. From a users perspective it just adds to the confusion and complexity for adding data. Why not just use GDAL/OGR for both Geopackage and Spatialite? Cheers Jeremy From: Stefan Keller [sfkel...@gmail.com] Sent: Sunday, 18 May 2014 12:24 a.m. To: Martin Dobias Cc: Jeremy Palmer; qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Geospackage Slow in QGIS Hi Martin It has a different binary encoding compared to Spatialite. And in addition it integrates raster tiles (MBTiles) and metadata. -S. 2014-05-17 14:10 GMT+02:00 Martin Dobias wonder...@gmail.commailto:wonder...@gmail.com: Hi On Sat, May 17, 2014 at 2:32 PM, Jeremy Palmer jpal...@linz.govt.nzmailto:jpal...@linz.govt.nz wrote: I've just been using the new implementation of Geopackage in QGIS :) However each map render or feature info is very slow for large database files - even with the new GDAL/OGR Geopackage spatial index support. Each time QGIS renders a new map view or executes a feature info it re-opens the Geopackage file in QgsOgrFeatureIterator via OGROpen, and the Geopackage driver open method runs PRAGMA integrity_check which is very slow (4 secs with my 2GB test file). This integrity check is actually a Geopackage requirement. How can this be fixed? At the in QGIS or GDAL/OGR level? Actually I am wondering how different is the format of GeoPackage from the format of SpatiaLite... we could use our native SpatiaLite provider also for GeoPackage files if they are close enough. Any ideas? Regards Martin ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.orgmailto:Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or i...@linz.govt.nz) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Geospackage Slow in QGIS
Hi Stefan, More information to explain better: The code is available in qgis. But don't work. I try it using a spatialite 4.2.0 created with spatialite-gui. And having a table with two geometry fields. One of type Polygon and another of type Point (the centroids of the polygons geometries). Using the OGR provider it see both the geometry, but when load them the point layer don't work. My point is just to say that actually the only stable solution to access to a spatialite db is using the spatialite provider. A. 2014-08-18 20:20 GMT+02:00 Stefan Keller sfkel...@gmail.com: Hi Andrea 2014-08-18 16:52 GMT+02:00 Andrea Peri aperi2...@gmail.com: ... Infact I discovered just now that gdal driver for spatialite don't seem to support tables with more than 1 geometrt field. Almost on QGIS. I'm almost certain that there's code - or at least knowhow - available for GDAL to add support for more than one table also for Spatialite. @Pirmin: What do you think? -S. 2014-08-18 16:56 GMT+02:00 Andrea Peri aperi2...@gmail.com: Just to explain why this is an important question. On a sqlite db is impossible to remove a field. So if a table is with two geometry field, it is never see-able from qgis. Because is not possible a command like: alter table remove filed geometry-2; Bye, Andrea Peri. 2014-08-18 16:52 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I have changed my opinin. From +1 to +0 Infact I discovered just now that gdal driver for spatialite don't seem to support tables with more than 1 geometrt field. Almost on QGIS. Andrea 2014-05-17 22:19 GMT+02:00 Jeremy Palmer jpal...@linz.govt.nz: I'm wondered why QGIS needs a native SpatiaLite provider and connection dialogue any more. Unlike other database providers such as PostGIS, Oracle, MSSQL the SpatiaLite provider doesn't seem to have anything special that requires a QGIS provider. From a users perspective it just adds to the confusion and complexity for adding data. Why not just use GDAL/OGR for both Geopackage and Spatialite? Cheers Jeremy From: Stefan Keller [sfkel...@gmail.com] Sent: Sunday, 18 May 2014 12:24 a.m. To: Martin Dobias Cc: Jeremy Palmer; qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Geospackage Slow in QGIS Hi Martin It has a different binary encoding compared to Spatialite. And in addition it integrates raster tiles (MBTiles) and metadata. -S. 2014-05-17 14:10 GMT+02:00 Martin Dobias wonder...@gmail.commailto:wonder...@gmail.com: Hi On Sat, May 17, 2014 at 2:32 PM, Jeremy Palmer jpal...@linz.govt.nzmailto:jpal...@linz.govt.nz wrote: I've just been using the new implementation of Geopackage in QGIS :) However each map render or feature info is very slow for large database files - even with the new GDAL/OGR Geopackage spatial index support. Each time QGIS renders a new map view or executes a feature info it re-opens the Geopackage file in QgsOgrFeatureIterator via OGROpen, and the Geopackage driver open method runs PRAGMA integrity_check which is very slow (4 secs with my 2GB test file). This integrity check is actually a Geopackage requirement. How can this be fixed? At the in QGIS or GDAL/OGR level? Actually I am wondering how different is the format of GeoPackage from the format of SpatiaLite... we could use our native SpatiaLite provider also for GeoPackage files if they are close enough. Any ideas? Regards Martin ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.orgmailto:Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or i...@linz.govt.nz) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS server ignores optional SVG symbols path
Of course. We are using iT just now from 2.4 qgis.server. Il 15/ago/2014 13:02 Alessandro Pasotti apaso...@gmail.com ha scritto: Thank you, is this feature already available in 2.4.0 ? 2014-08-14 20:01 GMT+02:00 aperi2007 aperi2...@gmail.com: I guess the issue was resolved. Look at this tickets. http://hub.qgis.org/issues/10327 and this http://hub.qgis.org/issues/8664 You should define one or more environment variables. for path. We use this approach succesfully. A. Il 14/08/2014 17:54, Alessandro Pasotti ha scritto: Hi, I noticed that when I use SVG symbols located in an optional path as set in Settings-Options-System-SVG Paths the symbols are not found from QGIS server. The solution would be to add such information (currently missing) to the project file, because this is mandatory for the server to locate the symbols. Should I file a ticket? -- Alessandro Pasotti w3: www.itopen.it ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] QGIS-Server support same name for group and layer ?
Hi, Is QGIS-server supporting a wms group with the same name of the layer it contains. And QGIS Server support the situation where more than one layer could have the same name ? I have some trouble, but perhaps I have wrong something. So before start to do search in proof, I liketo know if this kind of configuration is supported. Thx, -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] QGIS_server: add a maptip field at the getfeatureinfo response.
Hi, I notice on some response text/html to a GetFeatureInfo, on some layer qgis-server add an hardcoded field named maptip. Also I notice it is not always added but nly on some layer. I found the code in the qgswmsserver.cpp //add maptip attribute based on html/expression (in case there is no maptip attribute) if ( layer-fieldNameIndex( layer-displayField() ) 0 ) { QString displayField = layer-displayField(); if ( !displayField.isEmpty() ) { QDomElement maptipElem = infoDocument.createElement( Attribute ); maptipElem.setAttribute( name, maptip ); maptipElem.setAttribute( value, QgsExpression::replaceExpressionText( displayField, feature, layer ) ); featureElement.appendChild( maptipElem ); } } Why this adding hardcoded ? I guess it could be a refuse of something other old code ? And so removable ? Actually this is quite fastidiosus (embarassing) for us, because it is a not corresponding fied to the real structure of the layer. Thx, -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] An enhancement to allow a GetFeatureInfo customizable
Hi Devs, I just pull a request for a patch that allow the configurability of the GetFeatureInfo response using a css external file. http://hub.qgis.org/issues/11029 Please let me know if the patch is affordable for adding to qgis core. I try to avoid change anything to break the compatibility with all possibles use. The change are only to allow the setting the configuring element using a CSS. The only necessary change is to substitute a /BR with a HR class=.. tag. But using the same css is possible to hide the line of the hr tag and aso change its height. So also with this patch inside managing the css file is possible to have the same response ol-style of qgis-server. Regards, -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS-server : The Layer value in the text/html GetFeatureInfo response
Hi, I do some tries, but I'm not able to reach the value in Metadata-Title section almost in qgis-server GetFeatureInfo response section of code. So I prefer to try to change the names of layers putting in it spaces and any needed special char. Sorry for noise, Regards, 2014-08-05 15:54 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, When do a GetFeatureInfo request, I see, the qgis-server (v 2.4) will response using as Layer Title the same value that isput in the layername value of the tree of QGIS desktop. It is also the name used for the layer in the list of getcapabilities. I guess it is not the best choice. Infact the name of the layer in getcapabilites need to be sintetic and short. MOre better is it used the Title field. The Title Field value come from the Matadata - Title. I guess the response of the GetFeatureInfo as Layer Value will use the metadata-Title instead of the name that is too sintetic. Any thought ? Thx, -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] How do a correct GetFeatureInfo request
Hi, I send this message originally to user list, but perhaps is better to send to this list. And meanwhile I update with the last news. We are having some troubles with qgis-server when send a GetFeatureInfo from our framework webgis (Tolomeo webgis framework). QGIS-Server is returning a Service not specified. The SERVICE parameter is mandatory error. After some test, we perhaps find the issue: So understand better so I need to hve an information on qgis-server. When do a POST GetFeatureInfo request, the parameter SERVICE should be set on the querystring or in a post parameter ? ;) Infact seem the issue is that the SERVICE parameter is effectively present but perhaps is not where qgis-server would have it . Our framework is usually working with mapserver and geoserver and its settings for parameter GetFeatureInfo work surely with them both. Now we try to understand where the SERVICE paramete is wanted by qgis-server when the client do a post request. Any hint is welcome. Thx, - After this message , we have do some other test. The results are that effectively seem the QGIS-Server need to have all the aprameters in POST section and seem to ignore every paameter put in the querystring. Our framewor is using the post only to pass the huges coordinates of a polyon when the user start to edit it. Instead usually send the usually parameters in the querystring section. However after this experience with qgis-server, because this is effectively a no more clear section of HTTP specs. We start to change the work of out framework to repeat the same parameter in the query string also in the POST parameters. Hope this resolve the issue. -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] QGIS-Server customize the GetFeatureInfo html response
Hi, Is possible to customize the html response of qgis-server to a GetFeatureInfo request ? Our goal is to put a logo and a Title in the body of every response. I know an option is to change the code, but before start to do this I like to know surely if this is not available. Thx, -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] QGIS-server : The Layer value in the text/html GetFeatureInfo response
Hi, When do a GetFeatureInfo request, I see, the qgis-server (v 2.4) will response using as Layer Title the same value that isput in the layername value of the tree of QGIS desktop. It is also the name used for the layer in the list of getcapabilities. I guess it is not the best choice. Infact the name of the layer in getcapabilites need to be sintetic and short. MOre better is it used the Title field. The Title Field value come from the Matadata - Title. I guess the response of the GetFeatureInfo as Layer Value will use the metadata-Title instead of the name that is too sintetic. Any thought ? Thx, -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Stress about release plans
of the project where volunteer time is limited and we can contract devs in to do important work on a paid basis. If other organisations and QGIS user groups could help to get just two or three devs to have a week of each month funded to stabilise QGIS the community at large would realise huge benefits as would those funding that work. Regards Tim Regards Bo Victor Thomsen ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer - -- - -- Tim Sutton Visit http://kartoza.com to find out about open source: * Desktop GIS programming services * Geospatial web development * GIS Training * Consulting Services Skype: timlinux Irc: timlinux on #qgis at freenode.net Tim is a member of the QGIS Project Steering Committee - -- Kartoza is a merger between Linfiniti and Afrispatial -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlPPTIAACgkQqk07qZdiYjdF5wCeKjvu9HUfxqsJcVtsF5tf59X8 NzIAn1zscMJKZ7tF3/uOPDPw9ddKD05g =POer -END PGP SIGNATURE- ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] make uninstall is not present ?
Hi, Before to download/compile/install the new version of qgis I like to uninstall the previous version. But seem threre isn't a make uninstall procedure. Is this true or wrong I something ? Thx, -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] make uninstall is not present ?
Hi, my bad. The make uninstall was present. Sorry for noise. 2014-07-20 20:00 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, Before to download/compile/install the new version of qgis I like to uninstall the previous version. But seem threre isn't a make uninstall procedure. Is this true or wrong I something ? Thx, -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QgisLogger can be a serious bottleneck
Hi GioHappy, the empty-collection is absolutelly not necessarylly a bug. It is the obviously result of an operation on a machine (like the computer) with a binary finite arithmetic. Usually the empty is due to a too low value to be describe with a finite binary arithmetic. If the dataset is small or it is topologically correct (this not mean only to be snapped). the collection results never happened. Instead if the dataset is not topologically correct and is big the probability to have some collection result grow. We tipically have alway an 0.01% of collection on our results. I suggest you to use directly postgis or spatialite to do this kind of operations. In these products you have the useful tools to resolve the collections correctly. Regard, Andrea. 2014-07-05 12:40 GMT+02:00 G. Allegri gioha...@gmail.com: Hi Jurgen, I wouldn't call them errors. GEOSDIfference returned a lot of empty geomcollections, which the QgsVectorFileWriter couldn't manage. Consequently it wrote a log message for each geometry it couldn't write [1]. Surely the logging should be improved in this specific case. Anyway, I think the option to turn QgsMessageLog off could be useful anyway... giovanni [1] https://github.com/qgis/QGIS/blob/master/src/core/qgsvectorfilewriter.cpp#L1718 2014-07-05 12:31 GMT+02:00 Jürgen E. j...@norbit.de: Hi Giovanni, On Sat, 05. Jul 2014 at 10:27:24 +0200, G. Allegri wrote: As I reported in a previous post, I was unable to conclude a difference operation on a vector because the tool was running in exponential time. Debugging pointed me to the problem: QgsVectoFileWriter was logging tons of empty geometres with an incompatible type which will be discarded. After commenting the line of logging the process completed in linear time. Shouldn't we offer the opportunity to turn QgsLogger off? This would let the user/developer to switch it off whenever he already knows what's happening. Is it already there and I missed it? What error message did you get and wouldn't it be better to kill them where it origins or to issue a final %n empty geometries skipped instead of logging individual errors. Alternatively we could issue a last message repeated %n times in message log to make it behave better - although that only works the error message are identical. Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: 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 -- Giovanni Allegri http://about.me/giovanniallegri Twitter: https://twitter.com/_giohappy_ blog: http://blog.spaziogis.it GEO+ geomatica in Italia http://bit.ly/GEOplus ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QgisLogger can be a serious bottleneck
Thx GioHappy, this is imprtant for me to know. So is surely better to use the postgis or spatialite because it allow you to extract from the collection the section with the right type. If you do a difference beetwen two polygons is the result is a collection with a polygon section and a point section. You should extract the polygon and discard the point. If the strategu is discard all the collection this mean that on qgis the difference could lost domething of important and so potentially the difference do a wrong result. Regards, Andrea. 2014-07-05 16:47 GMT+02:00 G. Allegri gioha...@gmail.com: AFAICS whenever a new feature needs to be created, geom collections are discarded, because QGIS cannot manage them. giovanni 2014-07-05 16:40 GMT+02:00 Andrea Peri aperi2...@gmail.com: Ok, sorry. Just a my personal curiosity: The difference could give also a collection not empty. If the difference of two polygons is a collection with some polygons, some lines and some points. What happened to this collection in QGIS ? Thx, A. 2014-07-05 16:03 GMT+02:00 G. Allegri gioha...@gmail.com: Hi Andrea, as I said above I'm not considering it an error. The topic of this post is QGIS message logging. The processing completes as expected, with the same results as Spatialite and PostGIS. These simply do it silently :) giovanni 2014-07-05 15:59 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi GioHappy, the empty-collection is absolutelly not necessarylly a bug. It is the obviously result of an operation on a machine (like the computer) with a binary finite arithmetic. Usually the empty is due to a too low value to be describe with a finite binary arithmetic. If the dataset is small or it is topologically correct (this not mean only to be snapped). the collection results never happened. Instead if the dataset is not topologically correct and is big the probability to have some collection result grow. We tipically have alway an 0.01% of collection on our results. I suggest you to use directly postgis or spatialite to do this kind of operations. In these products you have the useful tools to resolve the collections correctly. Regard, Andrea. 2014-07-05 12:40 GMT+02:00 G. Allegri gioha...@gmail.com: Hi Jurgen, I wouldn't call them errors. GEOSDIfference returned a lot of empty geomcollections, which the QgsVectorFileWriter couldn't manage. Consequently it wrote a log message for each geometry it couldn't write [1]. Surely the logging should be improved in this specific case. Anyway, I think the option to turn QgsMessageLog off could be useful anyway... giovanni [1] https://github.com/qgis/QGIS/blob/master/src/core/qgsvectorfilewriter.cpp#L1718 2014-07-05 12:31 GMT+02:00 Jürgen E. j...@norbit.de: Hi Giovanni, On Sat, 05. Jul 2014 at 10:27:24 +0200, G. Allegri wrote: As I reported in a previous post, I was unable to conclude a difference operation on a vector because the tool was running in exponential time. Debugging pointed me to the problem: QgsVectoFileWriter was logging tons of empty geometres with an incompatible type which will be discarded. After commenting the line of logging the process completed in linear time. Shouldn't we offer the opportunity to turn QgsLogger off? This would let the user/developer to switch it off whenever he already knows what's happening. Is it already there and I missed it? What error message did you get and wouldn't it be better to kill them where it origins or to issue a final %n empty geometries skipped instead of logging individual errors. Alternatively we could issue a last message repeated %n times in message log to make it behave better - although that only works the error message are identical. Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: 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 -- Giovanni Allegri http://about.me/giovanniallegri Twitter: https://twitter.com/_giohappy_ blog: http://blog.spaziogis.it GEO+ geomatica in Italia http://bit.ly/GEOplus ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org
Re: [Qgis-developer] Geom collection and QGIS (was QgisLogger can be a serious bottleneck)
Is wrong. The geos return a collection when the collectionis the right result. if the result is a collection like: collection (multipolygons, multilinestrings, multipoint) why it should remove the lines and points. It could be useful to the client. The fact that the client is capable to understand only point/line and polgons is a problem of the client , not of the geos. If the invoker is not capable to understand collection, but it want do operation that could return collection. The invoker (the client) should increase him matematics capability , not decrease the capability of geos. :) In postgis and spalite is easy manage this kind of situation even if the table is not a collection. With a ExtractFromCollection(ForceToCollection(geometry)..) you can easily to resolve the problem on postgis/spatialite. If this capability is not available in qgis is a problem of qgis not of geos. :) A. 2014-07-05 17:23 GMT+02:00 G. Allegri gioha...@gmail.com: (I changed the topic) Geometry collections in QGIS must be treated at the GEOS level. There isnt a QGIS::wkbType for geometry collections, so if GEOS return a collection they must be managed as GEOS geometries, before moving them up to QgsGeometry. Correct me if I'm wrong. giovanni 2014-07-05 17:17 GMT+02:00 Andrea Peri aperi2...@gmail.com: Thx GioHappy, this is imprtant for me to know. So is surely better to use the postgis or spatialite because it allow you to extract from the collection the section with the right type. If you do a difference beetwen two polygons is the result is a collection with a polygon section and a point section. You should extract the polygon and discard the point. If the strategu is discard all the collection this mean that on qgis the difference could lost domething of important and so potentially the difference do a wrong result. Regards, Andrea. 2014-07-05 16:47 GMT+02:00 G. Allegri gioha...@gmail.com: AFAICS whenever a new feature needs to be created, geom collections are discarded, because QGIS cannot manage them. giovanni 2014-07-05 16:40 GMT+02:00 Andrea Peri aperi2...@gmail.com: Ok, sorry. Just a my personal curiosity: The difference could give also a collection not empty. If the difference of two polygons is a collection with some polygons, some lines and some points. What happened to this collection in QGIS ? Thx, A. 2014-07-05 16:03 GMT+02:00 G. Allegri gioha...@gmail.com: Hi Andrea, as I said above I'm not considering it an error. The topic of this post is QGIS message logging. The processing completes as expected, with the same results as Spatialite and PostGIS. These simply do it silently :) giovanni 2014-07-05 15:59 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi GioHappy, the empty-collection is absolutelly not necessarylly a bug. It is the obviously result of an operation on a machine (like the computer) with a binary finite arithmetic. Usually the empty is due to a too low value to be describe with a finite binary arithmetic. If the dataset is small or it is topologically correct (this not mean only to be snapped). the collection results never happened. Instead if the dataset is not topologically correct and is big the probability to have some collection result grow. We tipically have alway an 0.01% of collection on our results. I suggest you to use directly postgis or spatialite to do this kind of operations. In these products you have the useful tools to resolve the collections correctly. Regard, Andrea. 2014-07-05 12:40 GMT+02:00 G. Allegri gioha...@gmail.com: Hi Jurgen, I wouldn't call them errors. GEOSDIfference returned a lot of empty geomcollections, which the QgsVectorFileWriter couldn't manage. Consequently it wrote a log message for each geometry it couldn't write [1]. Surely the logging should be improved in this specific case. Anyway, I think the option to turn QgsMessageLog off could be useful anyway... giovanni [1] https://github.com/qgis/QGIS/blob/master/src/core/qgsvectorfilewriter.cpp#L1718 2014-07-05 12:31 GMT+02:00 Jürgen E. j...@norbit.de: Hi Giovanni, On Sat, 05. Jul 2014 at 10:27:24 +0200, G. Allegri wrote: As I reported in a previous post, I was unable to conclude a difference operation on a vector because the tool was running in exponential time. Debugging pointed me to the problem: QgsVectoFileWriter was logging tons of empty geometres with an incompatible type which will be discarded. After commenting the line of logging the process completed in linear time. Shouldn't we offer the opportunity to turn QgsLogger off? This would let the user/developer to switch it off whenever he already
Re: [Qgis-developer] Geom collection and QGIS (was QgisLogger can be a serious bottleneck)
Hi Larry, probably I don't understand well the concept of at geos level. My english is worsened ultimately. :( I understand that Giovanni say to add some change to geos library , to change the methods or adding some new method in the geos. :) I agree that the solution is to add to qgis the capability to receive a collection and extract a basic type (simple o multi point,line,poly) from it. Regards, A. 2014-07-05 20:52 GMT+02:00 Larry Shaffer lar...@dakotacarto.com: HI, On Sat, Jul 5, 2014 at 12:10 PM, Andrea Peri aperi2...@gmail.com wrote: Is wrong. The geos return a collection when the collectionis the right result. if the result is a collection like: collection (multipolygons, multilinestrings, multipoint) why it should remove the lines and points. It could be useful to the client. The fact that the client is capable to understand only point/line and polgons is a problem of the client , not of the geos. If the invoker is not capable to understand collection, but it want do operation that could return collection. The invoker (the client) should increase him matematics capability , not decrease the capability of geos. :) In postgis and spalite is easy manage this kind of situation even if the table is not a collection. With a ExtractFromCollection(ForceToCollection(geometry)..) you can easily to resolve the problem on postgis/spatialite. I fail to see how Giovanni is 'wrong' here. Unless I am incorrect, he is suggesting that QGIS do exactly the same thing, i.e. implement something like ExtractFromCollection() where needed, when the geometry is converted from GEOS to QgsGeometry. This seems like a very reasonable interim solution until such time that a type of 'collection' can be supported (no small feat, I am guessing). Regards, Larry If this capability is not available in qgis is a problem of qgis not of geos. :) A. 2014-07-05 17:23 GMT+02:00 G. Allegri gioha...@gmail.com: (I changed the topic) Geometry collections in QGIS must be treated at the GEOS level. There isnt a QGIS::wkbType for geometry collections, so if GEOS return a collection they must be managed as GEOS geometries, before moving them up to QgsGeometry. Correct me if I'm wrong. giovanni 2014-07-05 17:17 GMT+02:00 Andrea Peri aperi2...@gmail.com: Thx GioHappy, this is imprtant for me to know. So is surely better to use the postgis or spatialite because it allow you to extract from the collection the section with the right type. If you do a difference beetwen two polygons is the result is a collection with a polygon section and a point section. You should extract the polygon and discard the point. If the strategu is discard all the collection this mean that on qgis the difference could lost domething of important and so potentially the difference do a wrong result. Regards, Andrea. 2014-07-05 16:47 GMT+02:00 G. Allegri gioha...@gmail.com: AFAICS whenever a new feature needs to be created, geom collections are discarded, because QGIS cannot manage them. giovanni 2014-07-05 16:40 GMT+02:00 Andrea Peri aperi2...@gmail.com: Ok, sorry. Just a my personal curiosity: The difference could give also a collection not empty. If the difference of two polygons is a collection with some polygons, some lines and some points. What happened to this collection in QGIS ? Thx, A. 2014-07-05 16:03 GMT+02:00 G. Allegri gioha...@gmail.com: Hi Andrea, as I said above I'm not considering it an error. The topic of this post is QGIS message logging. The processing completes as expected, with the same results as Spatialite and PostGIS. These simply do it silently :) giovanni 2014-07-05 15:59 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi GioHappy, the empty-collection is absolutelly not necessarylly a bug. It is the obviously result of an operation on a machine (like the computer) with a binary finite arithmetic. Usually the empty is due to a too low value to be describe with a finite binary arithmetic. If the dataset is small or it is topologically correct (this not mean only to be snapped). the collection results never happened. Instead if the dataset is not topologically correct and is big the probability to have some collection result grow. We tipically have alway an 0.01% of collection on our results. I suggest you to use directly postgis or spatialite to do this kind of operations. In these products you have the useful tools to resolve the collections correctly. Regard, Andrea. 2014-07-05 12:40 GMT+02:00 G. Allegri gioha...@gmail.com: Hi Jurgen, I wouldn't call them errors. GEOSDIfference returned a lot of empty geomcollections, which the QgsVectorFileWriter couldn't
Re: [Qgis-developer] 2.2 project keeps crashing after load
I don't like this potential crash when remove a layer used on the composer. We also experience this kind of situation on qgis 2.0. In qgis 2.2 I lost of sight the question because our users knowing the problem paid attention to avoid to remove a layer. :) Now I like to try to replicate this problem. Just some information to understand your infrastructure: your crash happened using always the qgis64 from osgeo4w-64 or also sometime with osgeo4w-32 ? You use qgis 2.2 stable or dev ? Thx, A. 2014-06-27 10:43 GMT+02:00 Andreas Neumann a.neum...@carto.net: Hi Martin, It is quite hard to find out what is really causing the issue. I had Jürgen visiting my machine with Teamviewer but he did not see anything obvious. We had quite a few crashes but not a good idea what may be causing it. The interesting thing is that it only happened with certain data formats. The crashes appeared with Postgis datasource and SpatiaLite datasource, but not with ESRI shapefiles. The crashes do not appear always. Maybe 1 out of 3 or 4. They appear more often after a fresh start of QGIS. I am afraid I cannot produce an easy to reproduce test-case. Andreas Am 27.06.2014 08:22, schrieb Martin Dobias: Hi Andreas I am trying it on my computer, but without any results - I am unable to get the crash. So it does crash only with labeling turned on? Can be the crashing project reduced to just one map layer and still crash? My theory right now is that there will be some unhandled exceptions in the rendering code which will trigger those QPixmap warnings when QgsApplication::notify will try to show a QMessageBox in worker thread. Even it that is true, the question still is why those exceptions get raised... Regards Martin On Wed, Jun 25, 2014 at 10:17 PM, Andreas Neumann a.neum...@carto.net wrote: Thanks for trying. I just had Jürgen with Teamviewer at my machine and it is quite hard to find out what causes the crashes. It does not crash at every load. Maybe every third or fourth time in average. Turning multit-threading off improves the situation a lot - there are few to none crashes if multi-threading is off. When I have layers with free or horizontal polygon labeling on it crashes more often. So the labeling may trigger the crashes more often but may not be the cause of the crash. I'll keep testing ... Andreas Am 25.06.2014 14:29, schrieb Saber Razmjooei: For me for the first time, when I double-clicked on the project (qgs file) it opens qgis and immediately crashed (windows 7 64 bit OSGEO latest nightly). I then open the project from within QGIS, it worked fine. And double-clicking on the project also worked subsequently. Cheers, Saber -Original Message- From: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] On Behalf Of Jürgen E. Fischer Sent: 25 June 2014 15:21 To: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] 2.2 project keeps crashing after load Hi Andreas, On Wed, 25. Jun 2014 at 13:25:07 +, Andreas Neumann wrote: I can only reproduce the issue on Windows (Win7 64bit). It does not appear on Linux 64bit. Also on Windows it does not happen always, but often. [...] My project is here to download with SpatiaLite 4 as a datasource: http://webgis.uster.ch/temp/qgis_crashing_project.zip Hm, anything special to do? I tried to zoom and pan - works fine for me. Jürgen ___ 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 -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis-server and troubles using jpeg as output format
thx, Larry, your link is really useful for me. Infact reading it I see that I was searching the plugns in wrong paths. :) So I set the right path in the environment var. export QT_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/qt4/plugins Also I check that in plugin there is available che jpeg library. but still the map is not generate in jpeg format. Now I'm investigating to see if there is a problem of plugins version. Infact I read that qt is really sensible to the exact version of plugins. Andrea. 2014-06-25 1:30 GMT+02:00 Larry Shaffer lar...@dakotacarto.com: Hi Andrea, On Tue, Jun 24, 2014 at 3:21 PM, Andrea Peri aperi2...@gmail.com wrote: Hi Larry, thx for hints, I never suppose the jpeg was due to a plugin. I check the existence of libjpeg, but never seen for a plugin folder because I'm running only the qgis-server without any desktop capability. Now searching for this plugin folder, effectively I see a broken symbolic link in the /usr/share/qt4/plugins forward a ../../lib/qt4/plugins It seem like if I'm not install something :/ Not sure what might be missing (or what Debian and Qt versions you are using), but it seems the image format plugins are part of the QtGui package install [0]. [0] https://packages.debian.org/wheezy/amd64/libqtgui4/filelist Regards, Larry I choose to install many libs from debian repos also these two: pyqt4-dev-tools, python-qt4-dev Perhaps I miss something other lib, but I guess this should be report by the cmake routines. Perhaps a missing check in the cmake ? Now I need to understand what library is missing. Unfortunately I'm not so skill with qt libs. there is somewhere a list of all the need libraries ? Thx, Andrea. 2014-06-24 21:46 GMT+02:00 Larry Shaffer lar...@dakotacarto.com: Hi Andrea, It sounds to me like your Qt, when loaded by qgis_mapserv.fcgi, is not correctly finding the 'plugins' directory, specifically its 'imageformats' subdirectory. If that machine also runs QGIS Desktop, you can verify your Qt install has the image plugins by launching QGIS and checking the Providers section in the About QGIS dialog. Since Qt has native, built-in support for PNG, it should always be able to render a WMS request to PNG. If Qt can not load the Qt JPEG image format plugin, then JPEG will not be rendered. Just guessing, but you may try setting the env variable QT_PLUGIN_PATH in the FCGI environment to help Qt find the plugins directory [0]. If the imageformats subdirectory is missing some plugins, then there is something funky/missing with your Qt install. [0] http://qt-project.org/doc/qt-4.8/deployment-plugins.html Regards, Larry On Tue, Jun 24, 2014 at 7:26 AM, Andrea Peri aperi2...@gmail.com wrote: Hi, I do some tests. Using a shell environment to see any error returned. I see using the FORMAT=image/png the image is correctly returned. Instead using the FORMAT=image/jpeg the image is not returned. But no crash at all. Simply the qgis-server request will end returning nothing. Also using a debug session no error reported. Only apparently return nothing. A. 2014-06-24 14:31 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I'm having some trouble with qgis-server and the output in jpeg format. The request getmap using the jpeg format as not response at all. I try on two distinct debian machine but the result is the same. So I guess the most probable theory is the lack of a library or a library too early on Debian stable distro'. So I like to know what is the used jpeg library and if there is a minimal version for the jpeg library used. Thx -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis-server and troubles using jpeg as output format
Hi, I do some tests. Using a shell environment to see any error returned. I see using the FORMAT=image/png the image is correctly returned. Instead using the FORMAT=image/jpeg the image is not returned. But no crash at all. Simply the qgis-server request will end returning nothing. Also using a debug session no error reported. Only apparently return nothing. A. 2014-06-24 14:31 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I'm having some trouble with qgis-server and the output in jpeg format. The request getmap using the jpeg format as not response at all. I try on two distinct debian machine but the result is the same. So I guess the most probable theory is the lack of a library or a library too early on Debian stable distro'. So I like to know what is the used jpeg library and if there is a minimal version for the jpeg library used. Thx -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis-server and troubles using jpeg as output format
Hi Larry, thx for hints, I never suppose the jpeg was due to a plugin. I check the existence of libjpeg, but never seen for a plugin folder because I'm running only the qgis-server without any desktop capability. Now searching for this plugin folder, effectively I see a broken symbolic link in the /usr/share/qt4/plugins forward a ../../lib/qt4/plugins It seem like if I'm not install something :/ I choose to install many libs from debian repos also these two: pyqt4-dev-tools, python-qt4-dev Perhaps I miss something other lib, but I guess this should be report by the cmake routines. Perhaps a missing check in the cmake ? Now I need to understand what library is missing. Unfortunately I'm not so skill with qt libs. there is somewhere a list of all the need libraries ? Thx, Andrea. 2014-06-24 21:46 GMT+02:00 Larry Shaffer lar...@dakotacarto.com: Hi Andrea, It sounds to me like your Qt, when loaded by qgis_mapserv.fcgi, is not correctly finding the 'plugins' directory, specifically its 'imageformats' subdirectory. If that machine also runs QGIS Desktop, you can verify your Qt install has the image plugins by launching QGIS and checking the Providers section in the About QGIS dialog. Since Qt has native, built-in support for PNG, it should always be able to render a WMS request to PNG. If Qt can not load the Qt JPEG image format plugin, then JPEG will not be rendered. Just guessing, but you may try setting the env variable QT_PLUGIN_PATH in the FCGI environment to help Qt find the plugins directory [0]. If the imageformats subdirectory is missing some plugins, then there is something funky/missing with your Qt install. [0] http://qt-project.org/doc/qt-4.8/deployment-plugins.html Regards, Larry On Tue, Jun 24, 2014 at 7:26 AM, Andrea Peri aperi2...@gmail.com wrote: Hi, I do some tests. Using a shell environment to see any error returned. I see using the FORMAT=image/png the image is correctly returned. Instead using the FORMAT=image/jpeg the image is not returned. But no crash at all. Simply the qgis-server request will end returning nothing. Also using a debug session no error reported. Only apparently return nothing. A. 2014-06-24 14:31 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I'm having some trouble with qgis-server and the output in jpeg format. The request getmap using the jpeg format as not response at all. I try on two distinct debian machine but the result is the same. So I guess the most probable theory is the lack of a library or a library too early on Debian stable distro'. So I like to know what is the used jpeg library and if there is a minimal version for the jpeg library used. Thx -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis-server will crash on a specific project
Hi, I confirm. There is a layer limit in QGIS-Server I do a huge test removing one by one all the layers from my project. And after the removing of every single layer I retest the working. Aftr a while of time. I reach the limit. And the project begin to run. I do other test to exclude that was the number of layer inside a single group. All the test give the response that seem to be the max number of layers in a project. So the question is: QGIS desktop allow to put more layers rather than how many are accepted from qgis-server. This not good for a WYSIWYG system. Ok, I will try to patch my server when found exactly where is the problem. Meanwhile, Now the question is on what structure is this limit ? I don't guess it is simply a layer limit but perhaps a more specific structure. Now I have a project that crash , and a project with a one less layer that work. Doing a DIFF beetween the two projects I see the possible structure breakable are: layer-tree-canvas - custom-order - item maplayer Digitizing - LayerSnappingList - value (type QStringList) Digitizing - LayerSnappingEnabledList - value (type QStringList) Digitizing - LayerSnapToList - value (type QStringList) Digitizing - LayerSnappingToleranceList - value (type QStringList) I check if in the code there is a limited array dimension for this objects. Regards, Andrea. 2014-06-22 7:29 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I do some other tests. I take my project that give QG crash and split it in two compementary projects. Of course I do this using qgis desktop to avoid unvolontary errors. Testing both of them on QS there is no crash ! So: The first plausible theory I can give is that Qgis-Server has a LIMIT to the number of Groups or Layers it can have in a project. A limit different (and less) than qgis desktop (osgeo4w version). Is this a plausible theory ? Thx, Andrea. 2014-06-21 22:04 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I have a qgis-server that will crash on a specific project. The qgis-server will run correctly with another project that seem almost similar (both use the SVG symbols). The project that crash my QG run correctly and smootly on a qgis desktop (qgis-dev) on a windows system. The project use SVG symbols, but also the other project I test on QSused SVG symbol so I suppose the SVG engine is ok. Also I check t have set correctly the SVG paths. Also I update to the very last (about 4 hours ago) master version. After all this check the qgis-server still crash. So I try to set the logfile, but the log is always empty. This mean that the cgi qgis-server will crash almost immediatly. So I set an environment shell to run it manually and to test the cgi with a gdb session. The results are this: .. [Thread debugging using libthread_db enabled] Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. [New Thread 0x7fffe307c700 (LWP 1844)] [New Thread 0x7fffe27ea700 (LWP 1845)] Program received signal SIGSEGV, Segmentation fault. 0x74fc06da in qHash(QString const) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (gdb) The version of libQtCore.so.4 I run on the linux is 4.8.2. Perhaps the 4.8.2 is too old for qgis-server ? :/ But another project will run without any apparent problem. ? Many thx for every hint. -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis-server will crash on a specific project
Hi, thx for response. meanwhile, I notice that the max allowed layers is exactly 101. This mean (knowing C/C++) an array of 100 elements. Searching for this particular value, i find in the file mapserver/qgsmslayercache.cpp is defined mDefaultMaxLayers = 100; if not defined the environment variable MAX_CACHE_LAYERS char* maxLayerEnv = getenv( MAX_CACHE_LAYERS ); if ( maxLayerEnv ) So a possible solution could be to set this environment variable. I try and report. Regards, Andrea. 2014-06-22 12:07 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: It is a problem with the layer cache. Will provide a fix for that soon. Regards, Marco On 22.06.2014 11:49, Andrea Peri wrote: Hi, I confirm. There is a layer limit in QGIS-Server I do a huge test removing one by one all the layers from my project. And after the removing of every single layer I retest the working. Aftr a while of time. I reach the limit. And the project begin to run. I do other test to exclude that was the number of layer inside a single group. All the test give the response that seem to be the max number of layers in a project. So the question is: QGIS desktop allow to put more layers rather than how many are accepted from qgis-server. This not good for a WYSIWYG system. Ok, I will try to patch my server when found exactly where is the problem. Meanwhile, Now the question is on what structure is this limit ? I don't guess it is simply a layer limit but perhaps a more specific structure. Now I have a project that crash , and a project with a one less layer that work. Doing a DIFF beetween the two projects I see the possible structure breakable are: layer-tree-canvas - custom-order - item maplayer Digitizing - LayerSnappingList - value (type QStringList) Digitizing - LayerSnappingEnabledList - value (type QStringList) Digitizing - LayerSnapToList - value (type QStringList) Digitizing - LayerSnappingToleranceList - value (type QStringList) I check if in the code there is a limited array dimension for this objects. Regards, Andrea. 2014-06-22 7:29 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I do some other tests. I take my project that give QG crash and split it in two compementary projects. Of course I do this using qgis desktop to avoid unvolontary errors. Testing both of them on QS there is no crash ! So: The first plausible theory I can give is that Qgis-Server has a LIMIT to the number of Groups or Layers it can have in a project. A limit different (and less) than qgis desktop (osgeo4w version). Is this a plausible theory ? Thx, Andrea. 2014-06-21 22:04 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I have a qgis-server that will crash on a specific project. The qgis-server will run correctly with another project that seem almost similar (both use the SVG symbols). The project that crash my QG run correctly and smootly on a qgis desktop (qgis-dev) on a windows system. The project use SVG symbols, but also the other project I test on QSused SVG symbol so I suppose the SVG engine is ok. Also I check t have set correctly the SVG paths. Also I update to the very last (about 4 hours ago) master version. After all this check the qgis-server still crash. So I try to set the logfile, but the log is always empty. This mean that the cgi qgis-server will crash almost immediatly. So I set an environment shell to run it manually and to test the cgi with a gdb session. The results are this: .. [Thread debugging using libthread_db enabled] Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. [New Thread 0x7fffe307c700 (LWP 1844)] [New Thread 0x7fffe27ea700 (LWP 1845)] Program received signal SIGSEGV, Segmentation fault. 0x74fc06da in qHash(QString const) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (gdb) The version of libQtCore.so.4 I run on the linux is 4.8.2. Perhaps the 4.8.2 is too old for qgis-server ? :/ But another project will run without any apparent problem. ? Many thx for every hint. -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- Dr. Marco Hugentobler Sourcepole - Linux Open Source Solutions Weberstrasse 5, CH-8004 Zürich, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project
Re: [Qgis-developer] qgis-server will crash on a specific project
you have right, it is not a good solution. Too project depending and resource consuming. thx for a better fixing A. 2014-06-22 12:15 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: char* maxLayerEnv = getenv( MAX_CACHE_LAYERS ) This is a short-time workaround for users. Regards, Marco On 22.06.2014 12:12, Andrea Peri wrote: Hi, thx for response. meanwhile, I notice that the max allowed layers is exactly 101. This mean (knowing C/C++) an array of 100 elements. Searching for this particular value, i find in the file mapserver/qgsmslayercache.cpp is defined mDefaultMaxLayers = 100; if not defined the environment variable MAX_CACHE_LAYERS char* maxLayerEnv = getenv( MAX_CACHE_LAYERS ); if ( maxLayerEnv ) So a possible solution could be to set this environment variable. I try and report. Regards, Andrea. 2014-06-22 12:07 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: It is a problem with the layer cache. Will provide a fix for that soon. Regards, Marco On 22.06.2014 11:49, Andrea Peri wrote: Hi, I confirm. There is a layer limit in QGIS-Server I do a huge test removing one by one all the layers from my project. And after the removing of every single layer I retest the working. Aftr a while of time. I reach the limit. And the project begin to run. I do other test to exclude that was the number of layer inside a single group. All the test give the response that seem to be the max number of layers in a project. So the question is: QGIS desktop allow to put more layers rather than how many are accepted from qgis-server. This not good for a WYSIWYG system. Ok, I will try to patch my server when found exactly where is the problem. Meanwhile, Now the question is on what structure is this limit ? I don't guess it is simply a layer limit but perhaps a more specific structure. Now I have a project that crash , and a project with a one less layer that work. Doing a DIFF beetween the two projects I see the possible structure breakable are: layer-tree-canvas - custom-order - item maplayer Digitizing - LayerSnappingList - value (type QStringList) Digitizing - LayerSnappingEnabledList - value (type QStringList) Digitizing - LayerSnapToList - value (type QStringList) Digitizing - LayerSnappingToleranceList - value (type QStringList) I check if in the code there is a limited array dimension for this objects. Regards, Andrea. 2014-06-22 7:29 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I do some other tests. I take my project that give QG crash and split it in two compementary projects. Of course I do this using qgis desktop to avoid unvolontary errors. Testing both of them on QS there is no crash ! So: The first plausible theory I can give is that Qgis-Server has a LIMIT to the number of Groups or Layers it can have in a project. A limit different (and less) than qgis desktop (osgeo4w version). Is this a plausible theory ? Thx, Andrea. 2014-06-21 22:04 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I have a qgis-server that will crash on a specific project. The qgis-server will run correctly with another project that seem almost similar (both use the SVG symbols). The project that crash my QG run correctly and smootly on a qgis desktop (qgis-dev) on a windows system. The project use SVG symbols, but also the other project I test on QSused SVG symbol so I suppose the SVG engine is ok. Also I check t have set correctly the SVG paths. Also I update to the very last (about 4 hours ago) master version. After all this check the qgis-server still crash. So I try to set the logfile, but the log is always empty. This mean that the cgi qgis-server will crash almost immediatly. So I set an environment shell to run it manually and to test the cgi with a gdb session. The results are this: .. [Thread debugging using libthread_db enabled] Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. [New Thread 0x7fffe307c700 (LWP 1844)] [New Thread 0x7fffe27ea700 (LWP 1845)] Program received signal SIGSEGV, Segmentation fault. 0x74fc06da in qHash(QString const) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (gdb) The version of libQtCore.so.4 I run on the linux is 4.8.2. Perhaps the 4.8.2 is too old for qgis-server ? :/ But another project will run without any apparent problem. ? Many thx for every hint
Re: [Qgis-developer] qgis-server will crash on a specific project
Hi, I tested it but don't seem work. I'm using the master, is that ? A. 2014-06-22 13:04 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: It should work now. Could you test with the current git version? My test projects are not large enough. Regards, Marco On 22.06.2014 12:27, Andrea Peri wrote: you have right, it is not a good solution. Too project depending and resource consuming. thx for a better fixing A. 2014-06-22 12:15 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: char* maxLayerEnv = getenv( MAX_CACHE_LAYERS ) This is a short-time workaround for users. Regards, Marco On 22.06.2014 12:12, Andrea Peri wrote: Hi, thx for response. meanwhile, I notice that the max allowed layers is exactly 101. This mean (knowing C/C++) an array of 100 elements. Searching for this particular value, i find in the file mapserver/qgsmslayercache.cpp is defined mDefaultMaxLayers = 100; if not defined the environment variable MAX_CACHE_LAYERS char* maxLayerEnv = getenv( MAX_CACHE_LAYERS ); if ( maxLayerEnv ) So a possible solution could be to set this environment variable. I try and report. Regards, Andrea. 2014-06-22 12:07 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: It is a problem with the layer cache. Will provide a fix for that soon. Regards, Marco On 22.06.2014 11:49, Andrea Peri wrote: Hi, I confirm. There is a layer limit in QGIS-Server I do a huge test removing one by one all the layers from my project. And after the removing of every single layer I retest the working. Aftr a while of time. I reach the limit. And the project begin to run. I do other test to exclude that was the number of layer inside a single group. All the test give the response that seem to be the max number of layers in a project. So the question is: QGIS desktop allow to put more layers rather than how many are accepted from qgis-server. This not good for a WYSIWYG system. Ok, I will try to patch my server when found exactly where is the problem. Meanwhile, Now the question is on what structure is this limit ? I don't guess it is simply a layer limit but perhaps a more specific structure. Now I have a project that crash , and a project with a one less layer that work. Doing a DIFF beetween the two projects I see the possible structure breakable are: layer-tree-canvas - custom-order - item maplayer Digitizing - LayerSnappingList - value (type QStringList) Digitizing - LayerSnappingEnabledList - value (type QStringList) Digitizing - LayerSnapToList - value (type QStringList) Digitizing - LayerSnappingToleranceList - value (type QStringList) I check if in the code there is a limited array dimension for this objects. Regards, Andrea. 2014-06-22 7:29 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I do some other tests. I take my project that give QG crash and split it in two compementary projects. Of course I do this using qgis desktop to avoid unvolontary errors. Testing both of them on QS there is no crash ! So: The first plausible theory I can give is that Qgis-Server has a LIMIT to the number of Groups or Layers it can have in a project. A limit different (and less) than qgis desktop (osgeo4w version). Is this a plausible theory ? Thx, Andrea. 2014-06-21 22:04 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I have a qgis-server that will crash on a specific project. The qgis-server will run correctly with another project that seem almost similar (both use the SVG symbols). The project that crash my QG run correctly and smootly on a qgis desktop (qgis-dev) on a windows system. The project use SVG symbols, but also the other project I test on QSused SVG symbol so I suppose the SVG engine is ok. Also I check t have set correctly the SVG paths. Also I update to the very last (about 4 hours ago) master version. After all this check the qgis-server still crash. So I try to set the logfile, but the log is always empty. This mean that the cgi qgis-server will crash almost immediatly. So I set an environment shell to run it manually and to test the cgi with a gdb session. The results are this: .. [Thread debugging using libthread_db enabled] Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. [New Thread 0x7fffe307c700 (LWP 1844)] [New Thread 0x7fffe27ea700 (LWP 1845)] Program received signal SIGSEGV, Segmentation fault. 0x74fc06da
Re: [Qgis-developer] qgis-server will crash on a specific project
Hi Marco, other information: The MAX_CACHE_LAYERS workarund Now seem do not work anymore. 2014-06-22 13:48 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I tested it but don't seem work. I'm using the master, is that ? A. 2014-06-22 13:04 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: It should work now. Could you test with the current git version? My test projects are not large enough. Regards, Marco On 22.06.2014 12:27, Andrea Peri wrote: you have right, it is not a good solution. Too project depending and resource consuming. thx for a better fixing A. 2014-06-22 12:15 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: char* maxLayerEnv = getenv( MAX_CACHE_LAYERS ) This is a short-time workaround for users. Regards, Marco On 22.06.2014 12:12, Andrea Peri wrote: Hi, thx for response. meanwhile, I notice that the max allowed layers is exactly 101. This mean (knowing C/C++) an array of 100 elements. Searching for this particular value, i find in the file mapserver/qgsmslayercache.cpp is defined mDefaultMaxLayers = 100; if not defined the environment variable MAX_CACHE_LAYERS char* maxLayerEnv = getenv( MAX_CACHE_LAYERS ); if ( maxLayerEnv ) So a possible solution could be to set this environment variable. I try and report. Regards, Andrea. 2014-06-22 12:07 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: It is a problem with the layer cache. Will provide a fix for that soon. Regards, Marco On 22.06.2014 11:49, Andrea Peri wrote: Hi, I confirm. There is a layer limit in QGIS-Server I do a huge test removing one by one all the layers from my project. And after the removing of every single layer I retest the working. Aftr a while of time. I reach the limit. And the project begin to run. I do other test to exclude that was the number of layer inside a single group. All the test give the response that seem to be the max number of layers in a project. So the question is: QGIS desktop allow to put more layers rather than how many are accepted from qgis-server. This not good for a WYSIWYG system. Ok, I will try to patch my server when found exactly where is the problem. Meanwhile, Now the question is on what structure is this limit ? I don't guess it is simply a layer limit but perhaps a more specific structure. Now I have a project that crash , and a project with a one less layer that work. Doing a DIFF beetween the two projects I see the possible structure breakable are: layer-tree-canvas - custom-order - item maplayer Digitizing - LayerSnappingList - value (type QStringList) Digitizing - LayerSnappingEnabledList - value (type QStringList) Digitizing - LayerSnapToList - value (type QStringList) Digitizing - LayerSnappingToleranceList - value (type QStringList) I check if in the code there is a limited array dimension for this objects. Regards, Andrea. 2014-06-22 7:29 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I do some other tests. I take my project that give QG crash and split it in two compementary projects. Of course I do this using qgis desktop to avoid unvolontary errors. Testing both of them on QS there is no crash ! So: The first plausible theory I can give is that Qgis-Server has a LIMIT to the number of Groups or Layers it can have in a project. A limit different (and less) than qgis desktop (osgeo4w version). Is this a plausible theory ? Thx, Andrea. 2014-06-21 22:04 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I have a qgis-server that will crash on a specific project. The qgis-server will run correctly with another project that seem almost similar (both use the SVG symbols). The project that crash my QG run correctly and smootly on a qgis desktop (qgis-dev) on a windows system. The project use SVG symbols, but also the other project I test on QSused SVG symbol so I suppose the SVG engine is ok. Also I check t have set correctly the SVG paths. Also I update to the very last (about 4 hours ago) master version. After all this check the qgis-server still crash. So I try to set the logfile, but the log is always empty. This mean that the cgi qgis-server will crash almost immediatly. So I set an environment shell to run it manually and to test the cgi with a gdb session. The results are this: .. [Thread debugging using libthread_db enabled] Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment
Re: [Qgis-developer] qgis-server will crash on a specific project
No, sorry , my wrong. The workaround MAX_CACHE_LAYERS still work. A. 2014-06-22 14:01 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi Marco, other information: The MAX_CACHE_LAYERS workarund Now seem do not work anymore. 2014-06-22 13:48 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I tested it but don't seem work. I'm using the master, is that ? A. 2014-06-22 13:04 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: It should work now. Could you test with the current git version? My test projects are not large enough. Regards, Marco On 22.06.2014 12:27, Andrea Peri wrote: you have right, it is not a good solution. Too project depending and resource consuming. thx for a better fixing A. 2014-06-22 12:15 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: char* maxLayerEnv = getenv( MAX_CACHE_LAYERS ) This is a short-time workaround for users. Regards, Marco On 22.06.2014 12:12, Andrea Peri wrote: Hi, thx for response. meanwhile, I notice that the max allowed layers is exactly 101. This mean (knowing C/C++) an array of 100 elements. Searching for this particular value, i find in the file mapserver/qgsmslayercache.cpp is defined mDefaultMaxLayers = 100; if not defined the environment variable MAX_CACHE_LAYERS char* maxLayerEnv = getenv( MAX_CACHE_LAYERS ); if ( maxLayerEnv ) So a possible solution could be to set this environment variable. I try and report. Regards, Andrea. 2014-06-22 12:07 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: It is a problem with the layer cache. Will provide a fix for that soon. Regards, Marco On 22.06.2014 11:49, Andrea Peri wrote: Hi, I confirm. There is a layer limit in QGIS-Server I do a huge test removing one by one all the layers from my project. And after the removing of every single layer I retest the working. Aftr a while of time. I reach the limit. And the project begin to run. I do other test to exclude that was the number of layer inside a single group. All the test give the response that seem to be the max number of layers in a project. So the question is: QGIS desktop allow to put more layers rather than how many are accepted from qgis-server. This not good for a WYSIWYG system. Ok, I will try to patch my server when found exactly where is the problem. Meanwhile, Now the question is on what structure is this limit ? I don't guess it is simply a layer limit but perhaps a more specific structure. Now I have a project that crash , and a project with a one less layer that work. Doing a DIFF beetween the two projects I see the possible structure breakable are: layer-tree-canvas - custom-order - item maplayer Digitizing - LayerSnappingList - value (type QStringList) Digitizing - LayerSnappingEnabledList - value (type QStringList) Digitizing - LayerSnapToList - value (type QStringList) Digitizing - LayerSnappingToleranceList - value (type QStringList) I check if in the code there is a limited array dimension for this objects. Regards, Andrea. 2014-06-22 7:29 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I do some other tests. I take my project that give QG crash and split it in two compementary projects. Of course I do this using qgis desktop to avoid unvolontary errors. Testing both of them on QS there is no crash ! So: The first plausible theory I can give is that Qgis-Server has a LIMIT to the number of Groups or Layers it can have in a project. A limit different (and less) than qgis desktop (osgeo4w version). Is this a plausible theory ? Thx, Andrea. 2014-06-21 22:04 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I have a qgis-server that will crash on a specific project. The qgis-server will run correctly with another project that seem almost similar (both use the SVG symbols). The project that crash my QG run correctly and smootly on a qgis desktop (qgis-dev) on a windows system. The project use SVG symbols, but also the other project I test on QSused SVG symbol so I suppose the SVG engine is ok. Also I check t have set correctly the SVG paths. Also I update to the very last (about 4 hours ago) master version. After all this check the qgis-server still crash. So I try to set the logfile, but the log is always empty. This mean that the cgi qgis-server will crash almost immediatly. So I set an environment shell to run it manually and to test the cgi with a gdb session. The results are this: .. [Thread debugging using libthread_db enabled] Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver
Re: [Qgis-developer] qgis-server will crash on a specific project
I guess it is not a timeout question. To avoid the interference of the server web I test it running into a shell (a cgi is always an executables) I guess there is something else. If I set the MAX_CACHE_LAYERS qgis server run and return the getcapabilities (I ask it to test) otherwise it crash. My project seem to have 164 layers. But perhaps I count wrong, because if I set MAX_CACHE_LAYERS = 163 it run. Instead if I set =162 it crash. :) 2014-06-22 16:01 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: Just tried it with a project containing 111 layers here and the WMS server works fine for me. Could you check the apache error log if you are running into a server timeout ( fcgid module kills process after some time ). Marco On 22.06.2014 14:22, Andrea Peri wrote: No, sorry , my wrong. The workaround MAX_CACHE_LAYERS still work. A. 2014-06-22 14:01 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi Marco, other information: The MAX_CACHE_LAYERS workarund Now seem do not work anymore. 2014-06-22 13:48 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I tested it but don't seem work. I'm using the master, is that ? A. 2014-06-22 13:04 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: It should work now. Could you test with the current git version? My test projects are not large enough. Regards, Marco On 22.06.2014 12:27, Andrea Peri wrote: you have right, it is not a good solution. Too project depending and resource consuming. thx for a better fixing A. 2014-06-22 12:15 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: char* maxLayerEnv = getenv( MAX_CACHE_LAYERS ) This is a short-time workaround for users. Regards, Marco On 22.06.2014 12:12, Andrea Peri wrote: Hi, thx for response. meanwhile, I notice that the max allowed layers is exactly 101. This mean (knowing C/C++) an array of 100 elements. Searching for this particular value, i find in the file mapserver/qgsmslayercache.cpp is defined mDefaultMaxLayers = 100; if not defined the environment variable MAX_CACHE_LAYERS char* maxLayerEnv = getenv( MAX_CACHE_LAYERS ); if ( maxLayerEnv ) So a possible solution could be to set this environment variable. I try and report. Regards, Andrea. 2014-06-22 12:07 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: It is a problem with the layer cache. Will provide a fix for that soon. Regards, Marco On 22.06.2014 11:49, Andrea Peri wrote: Hi, I confirm. There is a layer limit in QGIS-Server I do a huge test removing one by one all the layers from my project. And after the removing of every single layer I retest the working. Aftr a while of time. I reach the limit. And the project begin to run. I do other test to exclude that was the number of layer inside a single group. All the test give the response that seem to be the max number of layers in a project. So the question is: QGIS desktop allow to put more layers rather than how many are accepted from qgis-server. This not good for a WYSIWYG system. Ok, I will try to patch my server when found exactly where is the problem. Meanwhile, Now the question is on what structure is this limit ? I don't guess it is simply a layer limit but perhaps a more specific structure. Now I have a project that crash , and a project with a one less layer that work. Doing a DIFF beetween the two projects I see the possible structure breakable are: layer-tree-canvas - custom-order - item maplayer Digitizing - LayerSnappingList - value (type QStringList) Digitizing - LayerSnappingEnabledList - value (type QStringList) Digitizing - LayerSnapToList - value (type QStringList) Digitizing - LayerSnappingToleranceList - value (type QStringList) I check if in the code there is a limited array dimension for this objects. Regards, Andrea. 2014-06-22 7:29 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I do some other tests. I take my project that give QG crash and split it in two compementary projects. Of course I do this using qgis desktop to avoid unvolontary errors. Testing both of them on QS there is no crash ! So: The first plausible theory I can give is that Qgis-Server has a LIMIT to the number of Groups or Layers it can have in a project. A limit different (and less) than qgis desktop (osgeo4w version). Is this a plausible theory ? Thx, Andrea. 2014-06-21 22:04 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I have a qgis-server that will crash on a specific project. The qgis-server will run correctly with another project that seem almost similar (both use the SVG symbols). The project that crash my QG run correctly and smootly on a qgis desktop (qgis-dev) on a windows system. The project use SVG symbols, but also the other project I test on QSused SVG symbol so I suppose the SVG engine is ok. Also I check t have
Re: [Qgis-developer] qgis-server will crash on a specific project
Hi Marco, I apologize, my wrong. I wrong to substitute the new master . Now do it correctly and the crash is disappeared. You patch is ok. Andrea. 2014-06-22 17:50 GMT+02:00 Andrea Peri aperi2...@gmail.com: I guess it is not a timeout question. To avoid the interference of the server web I test it running into a shell (a cgi is always an executables) I guess there is something else. If I set the MAX_CACHE_LAYERS qgis server run and return the getcapabilities (I ask it to test) otherwise it crash. My project seem to have 164 layers. But perhaps I count wrong, because if I set MAX_CACHE_LAYERS = 163 it run. Instead if I set =162 it crash. :) 2014-06-22 16:01 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: Just tried it with a project containing 111 layers here and the WMS server works fine for me. Could you check the apache error log if you are running into a server timeout ( fcgid module kills process after some time ). Marco On 22.06.2014 14:22, Andrea Peri wrote: No, sorry , my wrong. The workaround MAX_CACHE_LAYERS still work. A. 2014-06-22 14:01 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi Marco, other information: The MAX_CACHE_LAYERS workarund Now seem do not work anymore. 2014-06-22 13:48 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I tested it but don't seem work. I'm using the master, is that ? A. 2014-06-22 13:04 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: It should work now. Could you test with the current git version? My test projects are not large enough. Regards, Marco On 22.06.2014 12:27, Andrea Peri wrote: you have right, it is not a good solution. Too project depending and resource consuming. thx for a better fixing A. 2014-06-22 12:15 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: char* maxLayerEnv = getenv( MAX_CACHE_LAYERS ) This is a short-time workaround for users. Regards, Marco On 22.06.2014 12:12, Andrea Peri wrote: Hi, thx for response. meanwhile, I notice that the max allowed layers is exactly 101. This mean (knowing C/C++) an array of 100 elements. Searching for this particular value, i find in the file mapserver/qgsmslayercache.cpp is defined mDefaultMaxLayers = 100; if not defined the environment variable MAX_CACHE_LAYERS char* maxLayerEnv = getenv( MAX_CACHE_LAYERS ); if ( maxLayerEnv ) So a possible solution could be to set this environment variable. I try and report. Regards, Andrea. 2014-06-22 12:07 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: It is a problem with the layer cache. Will provide a fix for that soon. Regards, Marco On 22.06.2014 11:49, Andrea Peri wrote: Hi, I confirm. There is a layer limit in QGIS-Server I do a huge test removing one by one all the layers from my project. And after the removing of every single layer I retest the working. Aftr a while of time. I reach the limit. And the project begin to run. I do other test to exclude that was the number of layer inside a single group. All the test give the response that seem to be the max number of layers in a project. So the question is: QGIS desktop allow to put more layers rather than how many are accepted from qgis-server. This not good for a WYSIWYG system. Ok, I will try to patch my server when found exactly where is the problem. Meanwhile, Now the question is on what structure is this limit ? I don't guess it is simply a layer limit but perhaps a more specific structure. Now I have a project that crash , and a project with a one less layer that work. Doing a DIFF beetween the two projects I see the possible structure breakable are: layer-tree-canvas - custom-order - item maplayer Digitizing - LayerSnappingList - value (type QStringList) Digitizing - LayerSnappingEnabledList - value (type QStringList) Digitizing - LayerSnapToList - value (type QStringList) Digitizing - LayerSnappingToleranceList - value (type QStringList) I check if in the code there is a limited array dimension for this objects. Regards, Andrea. 2014-06-22 7:29 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I do some other tests. I take my project that give QG crash and split it in two compementary projects. Of course I do this using qgis desktop to avoid unvolontary errors. Testing both of them on QS there is no crash ! So: The first plausible theory I can give is that Qgis-Server has a LIMIT to the number of Groups or Layers it can have in a project. A limit different (and less) than qgis desktop (osgeo4w version). Is this a plausible theory ? Thx, Andrea. 2014-06-21 22:04 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I have a qgis-server that will crash on a specific project. The qgis-server will run correctly with another project that seem almost similar (both use the SVG symbols). The project that crash my
[Qgis-developer] qgis-server will crash on a specific project
Hi, I have a qgis-server that will crash on a specific project. The qgis-server will run correctly with another project that seem almost similar (both use the SVG symbols). The project that crash my QG run correctly and smootly on a qgis desktop (qgis-dev) on a windows system. The project use SVG symbols, but also the other project I test on QSused SVG symbol so I suppose the SVG engine is ok. Also I check t have set correctly the SVG paths. Also I update to the very last (about 4 hours ago) master version. After all this check the qgis-server still crash. So I try to set the logfile, but the log is always empty. This mean that the cgi qgis-server will crash almost immediatly. So I set an environment shell to run it manually and to test the cgi with a gdb session. The results are this: .. [Thread debugging using libthread_db enabled] Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. [New Thread 0x7fffe307c700 (LWP 1844)] [New Thread 0x7fffe27ea700 (LWP 1845)] Program received signal SIGSEGV, Segmentation fault. 0x74fc06da in qHash(QString const) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (gdb) The version of libQtCore.so.4 I run on the linux is 4.8.2. Perhaps the 4.8.2 is too old for qgis-server ? :/ But another project will run without any apparent problem. ? Many thx for every hint. -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgis-server will crash on a specific project
Hi, I do some other tests. I take my project that give QG crash and split it in two compementary projects. Of course I do this using qgis desktop to avoid unvolontary errors. Testing both of them on QS there is no crash ! So: The first plausible theory I can give is that Qgis-Server has a LIMIT to the number of Groups or Layers it can have in a project. A limit different (and less) than qgis desktop (osgeo4w version). Is this a plausible theory ? Thx, Andrea. 2014-06-21 22:04 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I have a qgis-server that will crash on a specific project. The qgis-server will run correctly with another project that seem almost similar (both use the SVG symbols). The project that crash my QG run correctly and smootly on a qgis desktop (qgis-dev) on a windows system. The project use SVG symbols, but also the other project I test on QSused SVG symbol so I suppose the SVG engine is ok. Also I check t have set correctly the SVG paths. Also I update to the very last (about 4 hours ago) master version. After all this check the qgis-server still crash. So I try to set the logfile, but the log is always empty. This mean that the cgi qgis-server will crash almost immediatly. So I set an environment shell to run it manually and to test the cgi with a gdb session. The results are this: .. [Thread debugging using libthread_db enabled] Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable. Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable. [New Thread 0x7fffe307c700 (LWP 1844)] [New Thread 0x7fffe27ea700 (LWP 1845)] Program received signal SIGSEGV, Segmentation fault. 0x74fc06da in qHash(QString const) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (gdb) The version of libQtCore.so.4 I run on the linux is 4.8.2. Perhaps the 4.8.2 is too old for qgis-server ? :/ But another project will run without any apparent problem. ? Many thx for every hint. -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Trouble compiling QGIS on Ubuntu Server
, from /usr/include/qt4/QtCore/qlist.h:51, from /usr/include/qt4/QtCore/qobject.h:50, from /usr/include/qt4/QtCore/qiodevice.h:46, from /usr/include/qt4/QtCore/qdatastream.h:46, from /usr/include/qt4/QtCore/qmetatype.h:49, from /usr/include/qt4/QtCore/QMetaType:1, from /root/dev/QGIS/src/providers/ spatialite/../../core/qgis.h:24, from /root/dev/QGIS/src/providers/spatialite/ qgsspatialiteprovider.cpp:17: /usr/include/c++/4.8/bits/stl_list.h:438:11: note: ‘std::list’ class list : protected _List_base_Tp, _Alloc ^ /root/dev/QGIS/src/providers/spatialite/qgsspatialiteprovider.cpp:518:38: error: ‘gaiaFreeVectorLayersList’ was not declared in this scope gaiaFreeVectorLayersList( list ); ^ /root/dev/QGIS/src/providers/spatialite/qgsspatialiteprovider.cpp:527:33: error: ‘list’ was not declared in this scope gaiaFreeVectorLayersList( list ); ^ /root/dev/QGIS/src/providers/spatialite/qgsspatialiteprovider.cpp:527:33: note: suggested alternative: In file included from /usr/include/c++/4.8/list:63:0, from /usr/include/qt4/QtCore/qlist.h:51, from /usr/include/qt4/QtCore/qobject.h:50, from /usr/include/qt4/QtCore/qiodevice.h:46, from /usr/include/qt4/QtCore/qdatastream.h:46, from /usr/include/qt4/QtCore/qmetatype.h:49, from /usr/include/qt4/QtCore/QMetaType:1, from /root/dev/QGIS/src/providers/ spatialite/../../core/qgis.h:24, from /root/dev/QGIS/src/providers/spatialite/ qgsspatialiteprovider.cpp:17: /usr/include/c++/4.8/bits/stl_list.h:438:11: note: ‘std::list’ class list : protected _List_base_Tp, _Alloc ^ /root/dev/QGIS/src/providers/spatialite/qgsspatialiteprovider.cpp:527:38: error: ‘gaiaFreeVectorLayersList’ was not declared in this scope gaiaFreeVectorLayersList( list ); ^ /root/dev/QGIS/src/providers/spatialite/qgsspatialiteprovider.cpp:532:31: error: ‘list’ was not declared in this scope gaiaFreeVectorLayersList( list ); ^ /root/dev/QGIS/src/providers/spatialite/qgsspatialiteprovider.cpp:532:31: note: suggested alternative: In file included from /usr/include/c++/4.8/list:63:0, from /usr/include/qt4/QtCore/qlist.h:51, from /usr/include/qt4/QtCore/qobject.h:50, from /usr/include/qt4/QtCore/qiodevice.h:46, from /usr/include/qt4/QtCore/qdatastream.h:46, from /usr/include/qt4/QtCore/qmetatype.h:49, from /usr/include/qt4/QtCore/QMetaType:1, from /root/dev/QGIS/src/providers/ spatialite/../../core/qgis.h:24, from /root/dev/QGIS/src/providers/spatialite/ qgsspatialiteprovider.cpp:17: /usr/include/c++/4.8/bits/stl_list.h:438:11: note: ‘std::list’ class list : protected _List_base_Tp, _Alloc ^ /root/dev/QGIS/src/providers/spatialite/qgsspatialiteprovider.cpp:532:36: error: ‘gaiaFreeVectorLayersList’ was not declared in this scope gaiaFreeVectorLayersList( list ); ^ /root/dev/QGIS/src/providers/spatialite/qgsspatialiteprovider.cpp: At global scope: /root/dev/QGIS/src/providers/spatialite/qgsspatialiteprovider.cpp:592:58: error: variable or field ‘loadFieldsAbstractInterface’ declared void void QgsSpatiaLiteProvider::loadFieldsAbstractInterface( gaiaVectorLayerPtr lyr ) ^ /root/dev/QGIS/src/providers/spatialite/qgsspatialiteprovider.cpp:592:58: error: ‘gaiaVectorLayerPtr’ was not declared in this scope make[2]: *** [src/providers/spatialite/CMakeFiles/spatialiteprovider. dir/qgsspatialiteprovider.cpp.o] Error 1 make[1]: *** [src/providers/spatialite/CMakeFiles/spatialiteprovider.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs -- I set the option to use the internal spatialite in the cmake options. Do you have any idea how I may be able to fix this compile problem? Thanks, Andreas ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] [Qgis-user] A discussion: is qgis still affordable in Europe if it violate the Inspire directive ?
and still have extra options, the spec provides for how to do it, we just need to make the modifications and test it. Thanks, Alex On 06/07/2014 02:40 PM, Maurizio Trevisani wrote: Hello, you say As to why fund it? If QGIS provides other value to your organization in some other way, total cost of operation may be lower to simply ensure it's compliant rather than to switch software or have to use multiple software. but as long you, Public Administration, can choose among several GFLOSS to implement your OGC services (that must be completely interoperable with all the potential clients and other PA), why should you choose a product that has choosen not to be interoperable? The problem is not the product, but the people who doesn't mind to write interoperable code: they are not reliable - so why a PA should fund them and their products? Qgis is an important product in the GFLOSS reality, but now more than ever should take care to complethely adhere to all the international standards, especially those which are at the basis for interoperability. Bye. 2014-06-07 22:17 GMT+02:00, Alex Mandel tech_...@wildintellect.com tech_...@wildintellect.com: On 06/07/2014 01:06 PM, Andrea Peri wrote: Yes also this is possible, but pay attention to use it correctly. I guess it is no really simple to use (ie to define the extension). It looks really simple to use according to the docs. If it works and cascading WMS works with other WMS servers, and it passes the schema check I see no issue. In the SLD world this was allowed and a unfortunately and worst understanding of it will born a lot of incompatible dialects. Also in the metadata world (iso19115) the possibility to extend the specs will produce incompatibility monster. :) This exists in the html world, over time there are winners. If you don't care to use the extra features you are always welcome to use the base which is 100% compliant. The winners or some compromise variant end up in the next version of the spec. I guess surely better and easy is put the new functions in in a distinct and new kind of request. After reading the WMS doc I believe using the tags I mention is the correct way to do it. Technically the result is WMS 1.3.0 compliant. Clients are free to ignore the extra functions as not using them does not remove any required features. As to why fund it? If QGIS provides other value to your organization in some other way, total cost of operation may be lower to simply ensure it's compliant rather than to switch software or have to use multiple software. Thanks, Alex Andrea. 2014-06-07 21:56 GMT+02:00 Alex Mandel tech_...@wildintellect.com tech_...@wildintellect.com: I just checked the WMS 1.3.0 specification documenthttp://portal.opengeospatial.org/files/?artifact_id=14416 Extended optional features are allowed. There is a specific way to include them. See section 6.9.5 Extended capabilities and operations _ExtendedCapabilities or _ExtendedOperations So perhaps we just need to wrap those extra options in a specific tag for them to pass schema testing. Thanks, Alex On 06/07/2014 12:35 PM, Alex Mandel wrote: I understand the issue now. In order to be WMS 1.3 complaint you can only use what's in the spec. Looking at an analogy with html specs I find this limitation appalling short-sighted. It means there can be no innovation testing new features with the spec unless you manage to get it into the future spec. I find it hard to comprehend that clients don't just skip tags that fail to match a known tag. In html land its very common for some browsers to know some non-standard tags, which are new features in testing to be proposed or reworked into future standards. IE's policy of only adhering to the spec and including no experimental tag support has been seen be web designers as discouraging to any change. Why, because their is no way to publicly test new ideas. So from the QGIS side, in order to comply we would need to reply with only allowed tags if a user requests WMS=1.3.0, we can reply with more stuff like GetPrint if they don't specify that version. Or perhaps we have to invent a 1.3.0+ variant specifically for when a user knows it's QGIS server. Anyone more familiar with WMS that can shed more light on the best way to work around this issue and have both compliance and the ability to add extra features that have no standard equivalent yet. My point still stands, that EU agencies with this concern should be funding compliance efforts, not removing funding for lack of compliance. Thanks, Alex On 06/07/2014 12:23 PM, Andrea Peri wrote: Hi, I need to be more clear. My english is tremendous. :) The Interoperability mean to have a small set of operation euals on EVERY Server WMS. Equals mena same reqeust , same response. So when a Cleit WMS send a Request of GetCapabilities, The response should be the same from QGIS-server or from GeoServer or From Mapserver. The same response mean that every product use
Re: [Qgis-developer] [QGIS Application - Bug report #10489] QGIS Server getcapabilites response is not WMS compliant !
The violation of the validity test is a clear violation of specs. The getprint tag mean the violation. This is sufficiente Il 07/giu/2014 16:30 redm...@qgis.org ha scritto: Issue #10489 has been updated by aperi2007 -. Hi. I confirm that the action described resolve the validity problem. I modify the code of qgis-server adding the prefix and the namespace and schemaLocation missed. Also I comment the code for GetStyle and GetPrint in the GetCapability response. And voila' the response now is VALID. For me is ok . Now we have our qgis-server compliant with ogc and inspire. :)) Regards. -- Bug report #10489: QGIS Server getcapabilites response is not WMS compliant ! http://hub.qgis.org/issues/10489 - Author: aperi2007 - - Status: Open - Priority: Blocker - Assigned to: - Category: - Target version: - Platform: - Platform version: - Status info: - Resolution: - Patch supplied: No - Affected version: 2.2.0 - Causes crash or corruption: No - Tag: Hi, the response of the QGIS Server trunk version don't seem to be WMS Compliant. I tested it using XML Spy Enterprise and it response the GetLegendGraphics is put in wrong place. I try using this request: http://www502.regione.toscana.it/geoscopio_qg/cgi-bin/qgis_mapserv?map=continuum_geologico_rt.qgsSERVICE=WMSrequest=GetCapabilitiesversion=1.3.0 Also I attach the image from my xmlspy with hard sentence. Perhaps there some setting to set QGIS to response a valid xml for OGC clients ? Thx. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://hub.qgis.org/my/account ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] [Qgis-user] A discussion: is qgis still affordable in Europe if it violate the Inspire directive ?
Hi, The last response of Jef in the ticket explain clearly what it the strateguy of qgis.The important is tobe compatible with other software GS. Thie mean the QGIS-server don't metter for real wms compatibility and interoperability. I guess is not really clear that the XML response to GetCapabilities is a protocol tocommunication between system. It is not only for other gis softwar. It is for every system can need to ask to the server wms. The response need to be aboslutely compatible tobe really interoperable. As example: this simplest case: http://www502.regione.toscana.it/geoscopio/servizi/wms/OFC.htm Tis html page is product autocatically from an our system Not gis that call the mapserver and with an xslt that parse the XML response produce this html page periodically. also thi http://www502.regione.toscana.it/geoscopio/servizi/wms/INFRASTRUTTURE_E_PRESIDI.htm and this http://www502.regione.toscana.it/geoscopio/servizi/wms/CTR.htm and so on Also we could use the same mechanism to implement a B2B colloquial betwen a metadato system and other systems or to the wms server. This mean to be interoprability. Mean grant to work with every other system that work with the same specs (WMS spacs in this case), not only with other GIS software. The server wms is not only a maps-dispenser. This page http://www502.regione.toscana.it/geoscopio/servizi/wfs/html/comuni.html is product from another xslt proc that again parse a WFS response from a TinyOWS system (please notice also the wfs of qgis-server is not complaint to specs) This is an automatically parse of a wfs request to a tinyows that return the list of cadastral parcels and propose this page. http://www502.regione.toscana.it/geoscopio/servizi/wfs/html/elenco_foglicat.html?com=047001 This is the list of street of a single comunity http://www502.regione.toscana.it/geoscopio/servizi/wfs/html/elenco_strade.html?com=047001 And clicking on one of them you can jump to the system webgis to see them. Or you can have the civic number of every street. http://www502.regione.toscana.it/geoscopio/servizi/wfs/html/elenco_civici.html?com=047001codtop=RT04700110007TO or jump to a webgis to see them. http://www502.regione.toscana.it/geoscopio/fototeca.html?codtpn=-91175idtpn=21203 All of this mean to be interoperability. It mean to use many system differents but all understanding the same single set of informations and capable to exchange to each other the same information. Is not only a question betwen three or four software GIS. When I say arcgis or autoca try to explain that could be more other system that could be n difficult to operate with a qgis-server that resonse a non standard XML response at getcapability request. But if the response of qgis group is we see the main GIS software work and this is sufficient for us. This mean the QGIS-Server is not planning to be WMS compliant. I test the response with XMLSpy and see it is not compliant WMS because it fail when use the official xsd from OGC. Instead other product (mapserver and geoserver) will pass the test. If I report this issue and the response is: is all okay for us. This response is more clearly of every other. Bye. Andrea. Il 08/giu/2014 09:07 Mats Elfström mats.elfst...@gmail.com ha scritto: Hi! I have read this thread and I am puzzled. In my mind, standards and interoperability are good, and should be respected. Now tell me, is it a deliberate design choice not to make Qgis server OGC compliant, and if so, why? Hälsning / Regards Mats.E Skickat från min / Sent from my iPhone, Ursäkta att jag är kortfattad / Excuse my brevity. 8 jun 2014 kl. 08:51 skrev Andrea Peri aperi2...@gmail.com: Sorry Alex, As you certain know the The QGIS server is really far from be a good WMS Server. It has not the multy style rendering. It has not the named groups if don't allow to change the html response . It don't allow to return a GML response to the user in a GetFeatureInfo if don't active the WFS ption. This is obviously unacceptable. Because there is some layer that a Public Administration cannot put in download as they are. The GeoServer and MapServer are real WMS Server and they allow all of this and more other thinks. I don't speak of velocity where the coparing is impossible. But alsoin the rendering capable. I guess the Mapserver (the one that I know very well), has monay point of advantage on qgisserver. The ONLY question good of qgis is The project qgis is the the same in the server. But this mean only that the qgis-server is good for fast prototyping, no more. When go in production and the users grow the qgis-server will become rapidly a bottle of neck. So the investiment need to enhance the qgisserver to have a good and fast , fully complaince and affordable wms server are massive. This could be ask to a public admiistration to fund. But if it is not a compliant wms server it could not never choose to start. You think really that ths
Re: [Qgis-developer] Qgis server is really compliant OGC?
Hi, I open a ticket for this. http://hub.qgis.org/issues/10489 Also I do some tests. Comparing the qgis-server response with the MapServer response. The images I attach to the ticket show clearly where is the bug in the qgis response. Is wrong the position of GetLegendGraphics tag. I need to resolve this because this mean that qgis-server is not compliant with OGC spcs, and this mean also that it is not working with other client rather than qgis itself This mean also that qgis wms client will not do a test of validation and perhaps this explain because something it will crash or dont'work perfectly. ;) More important for me, this mean that qgis-server surely is not usable for Inspire liek infrastructure, and this is a blocking question for any european organization that plan to fund on qgis as a server for its infrastructure (like us). I geuss this could be important also for other european and inspire menbers of europe. However I guess this is (perhaps) a simple correction. But of course I should not break any other thinks. Realisticly I don guess that there is a specific need to have the getlegendgraphics in the actual posizion. So move it in another position and resolve so this kind of invalidity should be quite transparent to all other tools. I like to know if this solution (change the position of GetLegendGraphics in the Capabilites response) is an acceptable solution for others or it may break something ? Please also notice that I don't know if there is some other invalidity because xmlspy is a DOM validator and stop to the first invalidity found. I don't know if was able to produce directly a patch or use the support of some expert. But before to work on this I like to know any opinion. Thx, A. 2014-06-07 9:17 GMT+02:00 Andrea Peri aperi2...@gmail.com: A: qgis-developer ML qgis-developer@lists.osgeo.org Cc: Hi i see the getcapabilities returned from QS is not xsd valid. This deny use it in many usecases rather then getmap. We fund often qgis develop. But i Mike understand why qgis has an invalido xml respinse. Is this a not importante questione for the qgis developer. Also i like understand if resolve this is acceptable or noto. THX -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Qgis server is really compliant OGC?
Hi, I update the ticket. The first problem is that the tag GetLegendGraphics is without a namespace. This is pretty easy to resolve. Unfortunately after resolve this there is two more complex problems. The GetStyle and GetPrint tags. The first is a dismissed tag from OGC available in WMS 1.1.0 and not available in WMS 1.3.0. Unfortunately the qgis declare its capabilities to be Version=1.3.0. The second tag GetPrint seem to be a total invention f GetPrint. AFAI it don't be include in a GetCapabilities response that is uniquely dedicate to list standard elements. If QGIS need to report this information it should be add another kind of response something like: GetQGISCapabilities and put inside it all the tags it need and are not available in the standard WMS. Regards, Andrea. 2014-06-07 9:30 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi, I open a ticket for this. http://hub.qgis.org/issues/10489 Also I do some tests. Comparing the qgis-server response with the MapServer response. The images I attach to the ticket show clearly where is the bug in the qgis response. Is wrong the position of GetLegendGraphics tag. I need to resolve this because this mean that qgis-server is not compliant with OGC spcs, and this mean also that it is not working with other client rather than qgis itself This mean also that qgis wms client will not do a test of validation and perhaps this explain because something it will crash or dont'work perfectly. ;) More important for me, this mean that qgis-server surely is not usable for Inspire liek infrastructure, and this is a blocking question for any european organization that plan to fund on qgis as a server for its infrastructure (like us). I geuss this could be important also for other european and inspire menbers of europe. However I guess this is (perhaps) a simple correction. But of course I should not break any other thinks. Realisticly I don guess that there is a specific need to have the getlegendgraphics in the actual posizion. So move it in another position and resolve so this kind of invalidity should be quite transparent to all other tools. I like to know if this solution (change the position of GetLegendGraphics in the Capabilites response) is an acceptable solution for others or it may break something ? Please also notice that I don't know if there is some other invalidity because xmlspy is a DOM validator and stop to the first invalidity found. I don't know if was able to produce directly a patch or use the support of some expert. But before to work on this I like to know any opinion. Thx, A. 2014-06-07 9:17 GMT+02:00 Andrea Peri aperi2...@gmail.com: A: qgis-developer ML qgis-developer@lists.osgeo.org Cc: Hi i see the getcapabilities returned from QS is not xsd valid. This deny use it in many usecases rather then getmap. We fund often qgis develop. But i Mike understand why qgis has an invalido xml respinse. Is this a not importante questione for the qgis developer. Also i like understand if resolve this is acceptable or noto. THX -- - Andrea Peri . . . . . . . . . qwerty àèìòù - -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] [Qgis-user] A discussion: is qgis still affordable in Europe if it violate the Inspire directive ?
No, you can esperiment new functionality . Simply you cannot put them in a standard response. The right solution is what say Steafn in ticket. QGIS has a request QGISPropterySettings. The new powerful but incompatible features put them in it. Don't abuse of standard responses. . Also: You don't undestand. I don't spaek the agency EU. The inspire directive say: that the europan menbers italy, france, deutch, and so on... must recepit the directive them and all their sub agency national and local. The directive don't say fund to put a qgis to be compiant. The drective say use only compliant and interoperability wms product . The EU put no money for this. Every menber can use it want . Commercial or Open product is indifferent. The imprtant is that it is interoperability. The Geoserver is interoperabilyt The Mapserver is interoperability. Why A public administration should choose QGIS-server ? It mean lost fund when there is some one more and more copliant with Inspire. What is the motivation to spend public resource to have a a QGIS-server comliant. I guess this should be interest of who sell service on QGIS to have a qgis compliant otherwise it has not a market in the public administrations. Or better again. Why there is a GetPrint and GetStyle s tags ? In the response: the more easy solution is remove these two tags. I do it in few minutes and can give the patch at we ask me. So why there is this two tags ? They are put from someone. This someone has break the qgis wms compatibility. SO AFAIK should be it to fund for repair what it break. Regards, Andrea. 2014-06-07 21:35 GMT+02:00 Alex Mandel tech_...@wildintellect.com: I understand the issue now. In order to be WMS 1.3 complaint you can only use what's in the spec. Looking at an analogy with html specs I find this limitation appalling short-sighted. It means there can be no innovation testing new features with the spec unless you manage to get it into the future spec. I find it hard to comprehend that clients don't just skip tags that fail to match a known tag. In html land its very common for some browsers to know some non-standard tags, which are new features in testing to be proposed or reworked into future standards. IE's policy of only adhering to the spec and including no experimental tag support has been seen be web designers as discouraging to any change. Why, because their is no way to publicly test new ideas. So from the QGIS side, in order to comply we would need to reply with only allowed tags if a user requests WMS=1.3.0, we can reply with more stuff like GetPrint if they don't specify that version. Or perhaps we have to invent a 1.3.0+ variant specifically for when a user knows it's QGIS server. Anyone more familiar with WMS that can shed more light on the best way to work around this issue and have both compliance and the ability to add extra features that have no standard equivalent yet. My point still stands, that EU agencies with this concern should be funding compliance efforts, not removing funding for lack of compliance. Thanks, Alex On 06/07/2014 12:23 PM, Andrea Peri wrote: Hi, I need to be more clear. My english is tremendous. :) The Interoperability mean to have a small set of operation euals on EVERY Server WMS. Equals mena same reqeust , same response. So when a Cleit WMS send a Request of GetCapabilities, The response should be the same from QGIS-server or from GeoServer or From Mapserver. The same response mean that every product use the same dialect the same tags and so on. The XSD OGC is the dictionary that every wms client and server should use to know the right language and tags. When the QGIS_Server response to a request GetCapbility with an XML that contains the GetPrint tags. The client wms say hey what is this ? It is not in the XSD OGC. This mean your response is wrong. Of course there are some client wms that don0t do a validation of response, they HOPE that the response will be exactly as they exected. If this is not true. They go in crash or other bad situation. Again the resence of a Tag not compliant with XSD OGC will create incompatibility. Think to a client that will parse the xml response and say: ok the GetLegendGraphics tag is passed now there is this well know tag. Instead arrive a GetPrint tags. The client wms become crazy. Of course QGIS will understand it. But this is because you (qgis group) manage it to work. But other clients don't know that tag and so they are not able to extract all the information from Capabilities response. This is a bad practice also because create artiiciosally an incopatibility with other products. Instead Inspire ask for INteroperability from every product. Interoperability don't mean use all the same unique product. (This is the microsoft philosophy) Interoperability mean All the product must use the same little
Re: [Qgis-developer] [Qgis-user] A discussion: is qgis still affordable in Europe if it violate the Inspire directive ?
Yes also this is possible, but pay attention to use it correctly. I guess it is no really simple to use (ie to define the extension). In the SLD world this was allowed and a unfortunately and worst understanding of it will born a lot of incompatible dialects. Also in the metadata world (iso19115) the possibility to extend the specs will produce incompatibility monster. :) I guess surely better and easy is put the new functions in in a distinct and new kind of request. Andrea. 2014-06-07 21:56 GMT+02:00 Alex Mandel tech_...@wildintellect.com: I just checked the WMS 1.3.0 specification document http://portal.opengeospatial.org/files/?artifact_id=14416 Extended optional features are allowed. There is a specific way to include them. See section 6.9.5 Extended capabilities and operations _ExtendedCapabilities or _ExtendedOperations So perhaps we just need to wrap those extra options in a specific tag for them to pass schema testing. Thanks, Alex On 06/07/2014 12:35 PM, Alex Mandel wrote: I understand the issue now. In order to be WMS 1.3 complaint you can only use what's in the spec. Looking at an analogy with html specs I find this limitation appalling short-sighted. It means there can be no innovation testing new features with the spec unless you manage to get it into the future spec. I find it hard to comprehend that clients don't just skip tags that fail to match a known tag. In html land its very common for some browsers to know some non-standard tags, which are new features in testing to be proposed or reworked into future standards. IE's policy of only adhering to the spec and including no experimental tag support has been seen be web designers as discouraging to any change. Why, because their is no way to publicly test new ideas. So from the QGIS side, in order to comply we would need to reply with only allowed tags if a user requests WMS=1.3.0, we can reply with more stuff like GetPrint if they don't specify that version. Or perhaps we have to invent a 1.3.0+ variant specifically for when a user knows it's QGIS server. Anyone more familiar with WMS that can shed more light on the best way to work around this issue and have both compliance and the ability to add extra features that have no standard equivalent yet. My point still stands, that EU agencies with this concern should be funding compliance efforts, not removing funding for lack of compliance. Thanks, Alex On 06/07/2014 12:23 PM, Andrea Peri wrote: Hi, I need to be more clear. My english is tremendous. :) The Interoperability mean to have a small set of operation euals on EVERY Server WMS. Equals mena same reqeust , same response. So when a Cleit WMS send a Request of GetCapabilities, The response should be the same from QGIS-server or from GeoServer or From Mapserver. The same response mean that every product use the same dialect the same tags and so on. The XSD OGC is the dictionary that every wms client and server should use to know the right language and tags. When the QGIS_Server response to a request GetCapbility with an XML that contains the GetPrint tags. The client wms say hey what is this ? It is not in the XSD OGC. This mean your response is wrong. Of course there are some client wms that don0t do a validation of response, they HOPE that the response will be exactly as they exected. If this is not true. They go in crash or other bad situation. Again the resence of a Tag not compliant with XSD OGC will create incompatibility. Think to a client that will parse the xml response and say: ok the GetLegendGraphics tag is passed now there is this well know tag. Instead arrive a GetPrint tags. The client wms become crazy. Of course QGIS will understand it. But this is because you (qgis group) manage it to work. But other clients don't know that tag and so they are not able to extract all the information from Capabilities response. This is a bad practice also because create artiiciosally an incopatibility with other products. Instead Inspire ask for INteroperability from every product. Interoperability don't mean use all the same unique product. (This is the microsoft philosophy) Interoperability mean All the product must use the same little set of command and the response at these command should be compatible (interoperable) between all of them Actulally this is not true for the response xml of qgis-server at a getcapability request. Hope to be better explain, now. Andrea. 2014-06-07 20:49 GMT+02:00 Andrea Peri aperi2...@gmail.com: Hi Alex, The question is not the print capability. The question is to LOST THE INTEROPERABILITY If qgis response an xml that is not OGC complaint it is not interoperable with other product. As example: if an public Administration will eed to do a cascading wms
Re: [Qgis-developer] [Qgis-user] A discussion: is qgis still affordable in Europe if it violate the Inspire directive ?
This is not only a inspire need. This more important because is an WMS invalidity. I try to explain better. The mapserver was not inpire compliant because it miss of something metadata elements. OK, but almost it was OGC WMS compliant. The inspire specs say take an OGC WMS compliant and on it add something that I say to you. The QGIS IS not WMS Compliant . This is worst than inspire non compliant. Also inspire say the interoperability is the base to start all together. The invalidity of qgis-server is due to the add of a proprietary tag that fail the xsd tests OGC WMS. So it is not interoperability with other products. This is worst than : To be more inspire compliant. The question here is: qgis-erver is not OGC WMS compliant. However I say what is the problem: The ticket is here: http://hub.qgis.org/issues/10489 The problem are a worst definition of the Tag GetLegendGraphics, but as report in the ticket the solution is described in the ticket. The other two probles are the presence of a GetStyle in the wms 1.3.0 response. The GetStyle was dismissed from OGC in the 1.3.0 response. And the presence of the proprietary tag GetPrint. My simplesolution was change the GetLegendGraphics. This is a simply change in the code. I have patched my server using sld prefix because is the standard. But also the solution of Jef to use the qgis prefix is ok because is valid for a good validator (xmlspy I use). So If the qgis groups decide to adopt the qgis prefix namespace for GetLegendGraphics, I have no problem to change my patch. Otherwise I leave the standard name sld. The other two problems. GetStyles and GetPrint. They are not tags of the WMS 1.3.0 specs. So they should not be present in the response. The solution is remove them or put them in the specific dedicated section. But obviously they are put correctly in that section. Thx, Andrea. 2014-06-07 22:19 GMT+02:00 Alex Mandel tech_...@wildintellect.com: Please add your specific list of current non-compliant issue to: http://hub.qgis.org/issues/6520 I'll add in a note about the WMS 1.3 tags specifically created for non-standard features. I think this issue can be resolved. Thanks, Alex On 06/07/2014 01:17 PM, Alex Mandel wrote: On 06/07/2014 01:06 PM, Andrea Peri wrote: Yes also this is possible, but pay attention to use it correctly. I guess it is no really simple to use (ie to define the extension). It looks really simple to use according to the docs. If it works and cascading WMS works with other WMS servers, and it passes the schema check I see no issue. In the SLD world this was allowed and a unfortunately and worst understanding of it will born a lot of incompatible dialects. Also in the metadata world (iso19115) the possibility to extend the specs will produce incompatibility monster. :) This exists in the html world, over time there are winners. If you don't care to use the extra features you are always welcome to use the base which is 100% compliant. The winners or some compromise variant end up in the next version of the spec. I guess surely better and easy is put the new functions in in a distinct and new kind of request. After reading the WMS doc I believe using the tags I mention is the correct way to do it. Technically the result is WMS 1.3.0 compliant. Clients are free to ignore the extra functions as not using them does not remove any required features. As to why fund it? If QGIS provides other value to your organization in some other way, total cost of operation may be lower to simply ensure it's compliant rather than to switch software or have to use multiple software. Thanks, Alex Andrea. 2014-06-07 21:56 GMT+02:00 Alex Mandel tech_...@wildintellect.com: I just checked the WMS 1.3.0 specification document http://portal.opengeospatial.org/files/?artifact_id=14416 Extended optional features are allowed. There is a specific way to include them. See section 6.9.5 Extended capabilities and operations _ExtendedCapabilities or _ExtendedOperations So perhaps we just need to wrap those extra options in a specific tag for them to pass schema testing. Thanks, Alex On 06/07/2014 12:35 PM, Alex Mandel wrote: I understand the issue now. In order to be WMS 1.3 complaint you can only use what's in the spec. Looking at an analogy with html specs I find this limitation appalling short-sighted. It means there can be no innovation testing new features with the spec unless you manage to get it into the future spec. I find it hard to comprehend that clients don't just skip tags that fail to match a known tag. In html land its very common for some browsers to know some non-standard tags, which are new features in testing to be proposed or reworked into future standards. IE's policy of only adhering to the spec and including no experimental tag support has been seen be web designers
Re: [Qgis-developer] Legend refactoring branch merged
Is missing the image format declaration. This work. I guess the format is mandatory for wms. http://webapps.comune.trento.it/ogc?SERVICE=WMSVERSION=1.3.0REQUEST=GetMapBBOX=658906.16767540690489113,5104409.28855266142636538,660377.57158853847067803,5105407.12450302578508854CRS=EPSG:25832WIDTH=519HEIGHT=352LAYERS=ortofoto2009STYLES=FORMAT=image/pngTRANSPARENT=TRUE 2014-06-06 16:39 GMT+02:00 Paolo Cavallini cavall...@faunalia.it: Il 05/06/2014 08:03, Luca Manganelli ha scritto: You can try our server: http://webapps.comune.trento.it/ogc BTW, the server throws an error when layers are added from the browser: Map request error (Title:Eccezione servizio; Error:La richiesta contiene un formato non disponibile dal server. Questo il report restituito dalla sorgente WMS: msWMSLoadGetMapParams(): Image handling error. Unsupported output format (). ; URL: http://webapps.comune.trento.it/ogc?SERVICE=WMSVERSION=1.3.0REQUEST=GetMapBBOX=658906.16767540690489113,5104409.28855266142636538,660377.57158853847067803,5105407.12450302578508854CRS=EPSG:25832WIDTH=519HEIGHT=352LAYERS=ortofoto2009STYLES=FORMAT=TRANSPARENT=TRUE ) They work fine when added from the menuAdd WMS. QGIS bug, or server issue? All the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Opinion on plugin named prepair (and possible likes)
SFCGAL is a real hard to compile piece of software. Use it on qgis mean to transformer the qgis in a real hard to compile software . :) Il 06/giu/2014 17:55 G. Allegri gioha...@gmail.com ha scritto: Managinng the CGAL dependency would be useful for (SF)CGAL too. Today it's used only by PostGIS, internally, but maybe its use will extend in the future (hopefully for 3D in QGIS too!). giovanni 2014-06-06 17:51 GMT+02:00 Paolo Cavallini cavall...@faunalia.it: Il 06/06/2014 15:29, Hugo Ledoux ha scritto: Yes we’re willing to do that. It should be stressed out here that we use CGAL (www.cgal.org, which is GPL) and its depends (GMP, MPFR, Boost). good news. anyone see the dependencies as a problem? all the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giovanni Allegri http://about.me/giovanniallegri Twitter: https://twitter.com/_giohappy_ blog: http://blog.spaziogis.it GEO+ geomatica in Italia http://bit.ly/GEOplus ___ 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] Opinion on plugin named prepair (and possible likes)
AFAIK it is noto available in debian stabile. Don't ? Also surely it is not available in RH enterprise. I guess surely it is available in ubuntu and fedora. Il 06/giu/2014 18:26 Paolo Cavallini cavall...@faunalia.it ha scritto: Il 06/06/2014 18:24, Andrea Peri ha scritto: SFCGAL is a real hard to compile piece of software. Use it on qgis mean to transformer the qgis in a real hard to compile software . cgal is packaged in all mayor OSs, AFAIK, so no need to compile it. all the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Opinion on plugin named prepair (and possible likes)
Do you guess the sfcgal is available on windows ? Il 06/giu/2014 18:38 Paolo Cavallini cavall...@faunalia.it ha scritto: Il 06/06/2014 18:32, Andrea Peri ha scritto: AFAIK it is noto available in debian stabile. Don't ? I do not think our target for QGIS = 2.4 is Debian stable. Someone correct me if I'm wrong. All the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: 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
Re: [Qgis-developer] Opinion on plugin named prepair (and possible likes)
I speak of giohappy proposal of sfcgal. Il 06/giu/2014 18:42 Paolo Cavallini cavall...@faunalia.it ha scritto: Il 06/06/2014 18:41, Andrea Peri ha scritto: Do you guess the sfcgal is available on windows ? prepair needs cgal, not sfcgal all the best -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Opinion on plugin named prepair (and possible likes)
Paolo, just to understand better : what do you mena as our target for QGIS ? I don't gind any page in QGIS site say-inf the targets OS . Instead I see the download page will offer: Ubuntu, Debian, Fedora, OpenSuse, RHEL (and various rhel like distro), Mandriva, ArchLinux, and ofcourse MAc, and Windows. I guess this should be bettr explain to avoid mis-understanding. Are you no speak of stables version of all this OSs ? Thx for explain. Andrea. 2014-06-06 18:38 GMT+02:00 Paolo Cavallini cavall...@faunalia.it: Il 06/06/2014 18:32, Andrea Peri ha scritto: AFAIK it is noto available in debian stabile. Don't ? I do not think our target for QGIS = 2.4 is Debian stable. Someone correct me if I'm wrong. All the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Qgis server is really compliant OGC?
Hi i see the getcapabilities returned from QS is not xsd valid. This deny use it in many usecases rather then getmap. We fund often qgis develop. But i Mike understand why qgis has an invalido xml respinse. Is this a not importante questione for the qgis developer. Also i like understand if resolve this is acceptable or noto. THX ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Calculating a buffer in n-dimmension
Ok, *I don't think to SFCGAL.* *It required a special recompile of postig so I usually don't use it.* *sorry for noise.* 2014-05-26 9:29 GMT+02:00 Hugo Mercier hugo.merc...@oslandia.com: Hi, In PostGIS 2.1, you have some 3D analysis operations provided by the SFCGAL library (www.sfcgal.org). The 3D buffer is present in SFCGAL (3D minkowski sum), but not yet exposed to PostGIS. Le 25/05/2014 09:22, Andrea Peri a écrit : I guess Also spatialite could. It has the lwgeom. I dont know if the qgis provider support it. Il 25/mag/2014 08:52 Nathan Woodrow madman...@gmail.com mailto:madman...@gmail.com ha scritto: Qgis no. PostGIS yes. PostGIS 2.0 has 3d support. On May 25, 2014 4:50 PM, Lene Fischer l...@ign.ku.dk mailto:l...@ign.ku.dk wrote: Hi This morning we have been talking about recording and calculating movement pattern in 3D. Movement over time. And then I need a buffer in 3 dimension. It is not visualization - just the calculation – and then later an overlap analyze. Can this be done I QGIS, PostGIS ? __ __ Regards __ __ *Lene Fischer* Associate Professor *Department of Geosciences and Natural Resource Management* University of Copenhagen MOB +45 40115084 tel:%2B45%2040115084 l...@ign.ku.dk mailto:l...@ign.ku.dk SCIENCE_bomaerke_UK __ __ ___ 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 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Hugo Mercier Oslandia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Calculating a buffer in n-dimmension
I guess Also spatialite could. It has the lwgeom. I dont know if the qgis provider support it. Il 25/mag/2014 08:52 Nathan Woodrow madman...@gmail.com ha scritto: Qgis no. PostGIS yes. PostGIS 2.0 has 3d support. On May 25, 2014 4:50 PM, Lene Fischer l...@ign.ku.dk wrote: Hi This morning we have been talking about recording and calculating movement pattern in 3D. Movement over time. And then I need a buffer in 3 dimension. It is not visualization - just the calculation – and then later an overlap analyze. Can this be done I QGIS, PostGIS ? Regards *Lene Fischer* Associate Professor *Department of Geosciences and Natural Resource Management* University of Copenhagen MOB +45 40115084 l...@ign.ku.dk [image: SCIENCE_bomaerke_UK] ___ 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] qgis freezes when opening attribute table of a postgis layer without key value
AFAIK the last postgres versione dismiss by default the oid. Il 21/mag/2014 11:54 Régis Haubourg regis.haubo...@eau-adour-garonne.fr ha scritto: Hi, I'm facing a severe bug in qgis 2.2 and master here. I have layers defined in existing project that do not have a key in datasource definition. It seems that when a table has a oid field, postgis connection dialog does not ask for a key field (it is a multi column primary key in that case). When i had manually in definition string key=oid, all seems fine. The major problem is that most user existing project will be impacted. Did I miss something? Why is key=oid no more explicitly written in datasource def? Thanks for your lights Régis -- View this message in context: http://osgeo-org.1560.x6.nabble.com/qgis-freezes-when-opening-attribute-table-of-a-postgis-layer-without-key-value-tp5141587.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 mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Geospackage Slow in QGIS
More probably there is some optimal adjust chance, but the geopackage format is for exchange data. It is sub optimal for work daily. Il 17/mag/2014 09:40 Jeremy Palmer jpal...@linz.govt.nz ha scritto: I've just been using the new implementation of Geopackage in QGIS :) However each map render or feature info is very slow for large database files - even with the new GDAL/OGR Geopackage spatial index support. Each time QGIS renders a new map view or executes a feature info it re-opens the Geopackage file in QgsOgrFeatureIterator via OGROpen, and the Geopackage driver open method runs PRAGMA integrity_check which is very slow (4 secs with my 2GB test file). This integrity check is actually a Geopackage requirement. How can this be fixed? At the in QGIS or GDAL/OGR level? Cheers, Jeremy This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or i...@linz.govt.nz) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You. ___ 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] Geospackage Slow in QGIS
Do you know the requirements of gpkg ? Il 17/mag/2014 10:46 Paolo Cavallini cavall...@faunalia.it ha scritto: Il 17/05/2014 10:04, Andrea Peri ha scritto: More probably there is some optimal adjust chance, but the geopackage format is for exchange data. It is sub optimal for work daily. Hi Andrea, gpkg seems to aim at a complete replacement of shp: http://www.geopackage.org/ not only for data transfer, but for everyday usage. Do you have more info on this? All the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: 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
Re: [Qgis-developer] Geospackage Slow in QGIS
Hi Giovanni. You have point an interesting question. The question is: geopackage and spatialite will be binary compatible (almost in the blob where there are store the geometry) ? I guess no because I don't realize how a geopackage spec could support some different binary formats. If this is true (i cannot be sure now, hope wrong obviously) this mean that will be another different format in a sqlite. The first is spatialite, the second is the porting of qgis to spatialite, the third is this next coming version of geopackage on spatialite. A. 2014-05-17 14:45 GMT+02:00 G. Allegri gioha...@gmail.com: The spatialite will never to be a real interchange format if the only software to use it is qgis and the same qgis is not real compatible with the original spatialite spec. So the spatialite actually is a really good and strong work format . Instead surely geopackage are no one strong point in elaboration so I'm not surprise that it is slow. As you will know the GeoPackage SQLite Extension is pending for future versions of the specification. In case it would make Spatialite/Geopackage purposesquite similar... giovanni Il 17/05/2014 11:24, Paolo Cavallini ha scritto: Il 17/05/2014 11:03, Andrea Peri ha scritto: Do you know the requirements of gpkg ? They should be really minimal. This could help understanding speed issues: http://openjump.blogspot.fi/2014/02/openjump-plus-reads- ogc-geopackages.html All the best. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Giovanni Allegri http://about.me/giovanniallegri Twitter: https://twitter.com/_giohappy_ blog: http://blog.spaziogis.it GEO+ geomatica in Italia http://bit.ly/GEOplus -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Auto increment field for shapefiles?
The dbf spec has a type serial ? I don't remenber , but not sure of this. If the dbf has not a serial type. This enhance will mena to produce a new kind of shapfile readable only from QGIS. I guess should be avoided to produce incompatible new formats. Andrea. 2014-05-17 11:02 GMT+02:00 Paolo Cavallini cavall...@faunalia.it: Il 17/05/2014 00:38, mmekuria ha scritto: I am not sure what you mean, Paulo. But there is already the Feature Id (Object Id in ArcGIS) in QgsFeature. Do you mean having that a mandatory field that gets populated every time a feature is created within a shapefile? Almost: I mean let the user define a field as SERIAL http://www.postgresql.org/docs/9.3/static/datatype-numeric.html also for non-database data types (especially shp). It does not seem too difficult, now that we have a record number function in the expressions. All the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Geospackage Slow in QGIS
+1 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS project with SQL SERVER!
I dont know sqlserver, but I will check if there is some limit to simultaneous connections. Il 04/mar/2014 13:16 Mira Maric mmmx...@gmail.com ha scritto: I am using QGIS with SQL server 2008. I need to save project on one computer and then copy project to another 20 clients! After I save project and try to open it on another computer I am getting error, that I need to HANDLE BAD LAYERS. How I can setup project that can be used on another computer? ___ 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] Spatial index - what about having it automatically created and updated ?
I guess more better is to use this extremely simple batch and create all the index in one step only. sing the gdal/ogr from osgeo4w. http://trac.osgeo.org/gdal/wiki/BatchCreationIndexesForShapefilesOnDOS Regards, 2014-02-27 10:47 GMT+01:00 kimaidou kimai...@gmail.com: Hi list, I have some concerns about spatial indexes in QGIS. Spatial indexes are very usefull, and for me rather mandatory as soon as you deal with more than 100 features. I would like to share some ideas about them : 1) Extend QGIS so that it can create spatial indexes for more vector format. If I am correct, for now only Shapefiles and Database vector layers can have a spatial index created by QGIS . Why not for GeoJson, CSV files, etc ? 2) If possible, create a spatial index for each vector layer added to the canvas if no one is already present. Since it is a quite fast operation, the small time needed is worth it. 3) If possible, update the spatial index (replace the old qix by a new one) every time the vector layer is updated. No need to do so for database layers, but this can be very usefull for big shapefiles. I have seen some people creating a spatial index, then as time passes, they add more and more data into the shapefile but forget to update the spatial index. Sometimes this can lead to some data not displayed in QGIS because QGIs seems to rely on the outdatedSpatial index. For me, using spatial indexes is like brushing my teeth : I do it very often without even thinking of it. But many users do not know that spatial indexes exists, or do it but forget to use them as needed. I really think QGIS should help them to improve perfs in the background. Regards Michael ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Spatial index - what about having it automatically created and updated ?
Create or updte a spatial index in a table is a danger operation .. So in postgis it is availabale only to user with write grant. QGIS is unable to understand if a connection is readonly or write enable so try to do an automatic update is a trouble-matic operation if a table was open from a read-only user. Another question is why it should be complex for an user to create an index ? A second question is what kind of index ? On postgis is possible to do more than one index. A table could have more than one geometry and every one could have a spatial index or not. But an index is a space consuming and often the index is needed on 1 only geometry field menawhile the other geometry field are only for special uses. To do always automatically a spatial index on every geometry filed is really a not useful operation in these use-case. A. 2014-02-27 15:04 GMT+01:00 Etienne Tourigny etourigny@gmail.com: On Thu, Feb 27, 2014 at 10:56 AM, Etienne Tourigny etourigny@gmail.com wrote: That's a python plugin (ftools), so it may not be available to everyone. Better to do it natively (in the data provider) doing something like OGR_DS_ExecuteSQL(CREATE SPATIAL INDEX ON tablename [DEPTH N]) - untested there is already a function QgsOgrProvider::createSpatialIndex() (for shapefiles only) which is called by QgsOgrProvider::syncToDisc() if the spatial index already exists. I think it's a great idea to do this automatically with large ogr data sources as you said you should probably ask the gdal-dev list about which drivers support spatial index creation an automatic update. cheers Etienne On Thu, Feb 27, 2014 at 7:51 AM, kimaidou kimai...@gmail.com wrote: Hi 2014-02-27 11:14 GMT+01:00 Andrea Peri aperi2...@gmail.com: I guess more better is to use this extremely simple batch and create all the index in one step only. sing the gdal/ogr from osgeo4w. http://trac.osgeo.org/gdal/wiki/BatchCreationIndexesForShapefilesOnDOS Regards, As I said, I am thinking of non power users. They surely won't create nor use such a batch file, even if it is simple. I know there is also the great tool Vector / Data management tools / Create Spatial Index, which can create one for all layers in one step. But users do not use it : they do no know it exists, or they know but forget to use it. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] save as spatialite very resource consuming
The bug of initspatialmetada was resolved in dev versione of qgis. Il 30/gen/2014 17:24 kimaidou kimai...@gmail.com ha scritto: Hi all Could you try to use this commands in QGIS python console ? I have seen that the parameter 1 in the function initspatialmetadata is very important to have a very fast DB creation. If you are on Windows, change the path /tmp/test.db by a more appropriate one. from pyspatialite import dbapi2 as db conn=db.connect('/tmp/test.db') c=conn.cursor() sql = select initspatialmetadata(1) c.execute(sql) ; print [row for row in c] Michael 2014-01-30 Stefan Keller sfkel...@gmail.com Hi, I have to confirm that the file size is huge and saving performance is slow. I'd like to emphasize that this is a show stopper for me for/against Spatialite to become the Shapefile of the future! I did not yet look into the QGIS driver code, but I assume (and hope) that at least the saving performance can be enhanced. -Stefan 2014/1/24 Rafael Krucker rkruc...@hsr.ch: Hello all I've noticed recently (QGIS 2.0.1, Windows 7 64 bit), that, when I'm processing a shapefile as layer, even very small ones, the operation 'save as spatialite' takes forever. With a small shapefile (1 KB), the process of converting takes up to 3 minutes, the generated spatiallite is then always around 4000 bigger (4.21 MB). These ratios are the same, no matter how big the file is, the time taken enlarges linearly it seems. When the export is a shapefile again, the whole thing is a matter of seconds. Is this due to some kind of buffering issues or does this conversetion simply take that many resources? Kind regards and thanks in advance for any pointers Rafael ___ 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 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Oracle: error inserting dates
Check the NLS of the connection. If the connection don't declare an NLS , it will use the default NLS. I guess the NLS in american or english and don't understand dd/mm/ A. 2014/1/15 Paolo Cavallini cavall...@faunalia.it -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all. I have been reported some errors in Oracle data entry. Apparently it is impossible to insert data in DATE field, as follows: = Impossibile applicare le modifiche al vettore ZONA_RECUPERO Errori: ERRORE: 1 geometria non aggiunta. Errori della sorgente dati: Errore Oracle nell'aggiunta di geometrie:Errore Oracle: Impossibile inserire geometria -2 SQL: ORA-01843: not a valid month Impossibile eseguire l'istruzione Errore: INSERT INTO QGIS_TEST.ZONA_RECUPERO(SHAPE,VINCSIDE,VINCSCODTI,CODTIPCART,VINSSUPERF,LEGIDESTAR,VINCSDATAI,VINCSDATAF,LEGIDESTOP,GEOLINK) VALUES (:f,'23005869',NULL,NULL,NULL,NULL,'10/04/2014','10/12/2999',NULL,NULL) = I cannot access an Oracle db, so the question is: is this supposed to work? Does somebody use it successfully? All the best. - -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlLWtjoACgkQ/NedwLUzIr7XcwCfezjaJKadZ24eGYLFKR1vX1Hy ZQwAn3wyjaORXDA6UHKfbb5Oq4n34KXd =s9+t -END PGP SIGNATURE- ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer