[Geoserver-users] hide features

Hi,

If you do not need those attributes you want to hide for SLD styles or anything else, don’t select them. Two alternatives

-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

On Wed, Dec 19, 2012 at 1:15 PM, Rahkonen Jukka <Jukka.Rahkonen@anonymised.com486…> wrote:

Hi,

If you do not need those attributes you want to hide for SLD styles or anything else, don’t select them. Two alternatives

Additionally, in GeoServer one can use &propertyNames=p1,p2,…,pn to limit the attributes
included in the output (as a vendor option)
Cleary, this is not security, more an optimization/uncluttering option that the client side can
use to tailor the output of GetFeatureInfo

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it