[Qgis-developer] QGIS Server and null-values in GetFeatureInfo requests

Andreas Neumann a.neumann at carto.net
Fri Jan 24 07:58:16 PST 2014


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


More information about the Qgis-developer mailing list