Hi,
If you do not need those attributes you want to hide for SLD styles or anything else, don’t select them. Two alternatives
-
create a suitable view in PostGIS and publish that with Geoserver
-
do the same one step further with geoserver SQL View http://docs.geoserver.org/stable/en/user/data/database/sqlview.html
-Jukka Rahkonen-
···
Aitor Freire Astray wrote:
Hi Max,
I’ll try to do it.
Thanks!!
2012/12/19 Max Stephan <max.stephan@anonymised.com>
Hi,
I don´t know which kind of GetFeatureInfo-format GeoExplorer is using. There are two main types available:
a) You get the getFeatureInfo from Geoserver in HTML-format. Geoserver is creating the layout based on the GetFeatureInfo-templates (see http://docs.geoserver.org/stable/en/user/tutorials/GetFeatureInfo/index.html for more on this). If you want to remove certain attributes from the response you can simply create a custom FeatureInfo-template for the specific layer
b) The client itself (in this case geoexplorer) is responsible for the layout and receives only the raw data from Geoserver (i.e. all attributes and their values plus maybe also the geometry). As far as I know there´s no possibility to limit which features/attributes shall be displayed in your GetFeatureInfo other than removing them from the data itself.
Best regards
Max Stephan
From: Aitor Freire Astray [mailto:aitor.freire@anonymised.com]
Sent: 19 December 2012 11:19
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] hide features
Hi,
I have some layers in geoserver and I want to hide some features on identify tool of geoexplorer. Is possible to do this or I need to modify my original data on postgresql?
I´m looking for but I don’t find anything about this option.
Thanks!
–
Aitor Freire Astray
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
Aitor Freire Astray