Re: [Qgis-developer] QGIS Server and null-values in GetFeatureInfo requests
2014/1/24 Andreas Neumann > Hi, > > I have problems with NULL values and GetFeatureInfo requests. They > appear as "0" if the data-type is numeric, instead of "NULL" or an empty > string. > It is probably unrelated, but I've found a similar problem handling empty values, it seems like in several parts of the core, QString.isEmpty is tested instead of QString.isNull. I mean, at least for request parameters, they should be trated as three-state: (null, empty string and a string with not-zero length). I've opened a bug for this and I've patched the core but I don't even dare to propose a PR since it touches the innermost features of QGIS core. this is the ticket http://hub.qgis.org/issues/9321 -- 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 and null-values in GetFeatureInfo requests
Hi, I have problems with NULL values and GetFeatureInfo requests. They appear as "0" if the data-type is numeric, instead of "NULL" or an empty string. Here is an example URL: http://webgis.uster.ch/wms/av/grundplan_av?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=695639.462784%2C245044.002%2C695811.726216%2C245141.724&FEATURE_COUNT=10&HEIGHT=1075&WIDTH=1895&FORMAT=image%2Fjpeg&INFO_FORMAT=text%2Fxml&SRS=EPSG%3A21781&X=805&Y=786&QUERY_LAYERS=LS%20Fl%C3%A4che%2CEOB%20unterird.%20Geb.%2CGeb.%2CProj.%20Geb.%2CEOB%20Unterstand%2CEOB%20Fl%C3%A4chen%2CSR%20Fl.%2CProj.%20SR%20Fl.%2CDBK%20Fl%C3%A4chen%2CDBK%20Linien%2CEOB%20Linien%2CGrenzpkte%2CHoheits-GP%2CRL%20Pktel.%2CRL%20Signalpkt%2CLfp3%2CLfp2%2CHFP3%2CHFP2%2CEOB%20Pkte%2CBodenbed.%20V25%2CGeb%C3%A4ude%20V25%2CGew%C3%A4sser%20V25%2CStrasse%20V25%2CBahn%20V25%2CRL%20Linienel.%2CLabel%20Pkte%20V25%2CGWS%20Linien%2CNutzungszonen%20Linien%2CAbstandslinien My goal is to skip rows in QGIS Web Client when the value is really NULL or an empty string so it does not "pollute" the tooltip. Would this be a lot of effort to properly handle these NULL values if the data-type is numeric? Thanks, Andreas ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer