[Qgis-user] qgis mapserver getfeatureinfo

Marco Hugentobler marco.hugentobler at sourcepole.ch
Mon Dec 27 14:07:00 PST 2010


Hi Andreas

I agree that geometry and feature id should be off by default.

> either
>  through a GET parameter, or within the QGIS projectfile

Within the QGIS projectfile seems better to me. Usually it's the server admin 
who decides what should be visible (e.g. if the secret feature coordinates can 
be passed to the wms client).

Regards,
Marco

Am Montag, 27. Dezember 2010, um 13.59:23 schrieb a.neumann at carto.net:
>  Hi Martin and Marco,
> 
>  I think that by default GetFeatureInfo should deliver the attributes
>  without geometry (as this is also the WMS standard). If someone wants
>  the answer with the geometry he should explicitly demand it, either
>  through a GET parameter, or within the QGIS projectfile (something to
>  consider for a QGIS server GUI plugin). One could store the parameter in
>  the project file.
> 
>  What do you think?
> 
>  Andreas
> 
>  On Mon, 27 Dec 2010 10:35:51 +0100, Marco Hugentobler wrote:
> > Hi Martin
> > 
> > For normal attributes, it is possible to hide them in the featureinfo
> > response
> > by setting the edit type to hidden (vector properties -> attributes
> > ).
> > 
> > For artificial attributes like 'Feature' or 'geometry', this is
> > currently not
> > possible. I'll add that to my todo-list as it is quite useful and not
> > too hard
> > to implement.
> > 
> > Regards,
> > Marco
> > 
> > Am Freitag, 24. Dezember 2010, um 21.34:32 schrieb Martin Schweizer:
> >> Hi
> >> 
> >> I have the following problem: I use the qgis-mapserver (shape-files
> >> -> qgs
> >> -> WMS) and openlayers
> >> (http://asmaron.homelinux.net/ol/index2.html). All
> >> works fine. The problem is, that when I make a
> >> getfeatureinfo-request, I
> >> also get information I don't need, especially "Feature" and
> >> "geometry". Is
> >> it possible to exclude this two items in the getfeatureinfo-request
> >> (feature and geometry)?
> >> 
> >> Thanks a lot, merry christmas and have a lot of fun!
> >> Martin
> >> _______________________________________________
> >> Qgis-user mailing list
> >> Qgis-user at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user


-- 
Dr. Marco Hugentobler
Sourcepole - Linux & Open Source Solutions
Churerstr. 22, CH-8808 Pfäffikon SZ, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee



More information about the Qgis-user mailing list