Hi Fernando,
How about using compression? The serverlet container should be able to do 
on-the-fly compression of documents/data, including GML. That should 
significantly reduce the in-transit side.

May be of help:
http://stackoverflow.com/questions/17187794/how-to-enable-gzip-compression-on-dynamic-content-using-jetty-9

Cheers,
Jonathan


-----Original Message-----
From: Fernando G. C. [mailto:[email protected]]
Sent: Wednesday, October 22, 2014 5:12 PM
To: [email protected]
Subject: [Geoserver-users] Customizing WMS GetFeatureInfo GML output

Hi, I am working with GeoServer 2.3.2, using the GetFeatureInfo with 
INFO_FORMAT=application/vnd.ogc.gml, which gives a GML with all the contents of 
the feature.

The problem is that it includes the whole geometry and the response reaches in 
some cases 500kb, so it can be quite slow. I would be interested on a 
simplified geometry, or even the boundary.

I think I can solve this at the application level, for example using WFS or 
building and querying a simplified version of the layer, but I would like to 
solve it at the server level so the people that work with the application does 
not have to bother much.

I have seen the possibility to specify the non-standard parameter propertyName 
and actually take the geometry completely out of the result, but as I said 
before, I would like to have the boundary, for example.

As an external solution to GeoServer, I can think of installing a proxy service 
that processes the GetFeatureInfo GML output and simplifies the geometries of 
the result. Any comments to this idea? Do you have any other?

Do you think it would be interesting to extend the propertyName parameter to 
accept the usage of filter functions[1], for example "boundary"? I can imagine 
something like "propertyName=boundary(geom) as geom,name,gid"

Cheers.

[1] http://docs.geoserver.org/latest/en/user/filter/function_reference.html

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users


This message has been scanned for viruses by MailControl - www.mailcontrol.com



Click 
https://www.mailcontrol.com/sr/GigTb8Ez91DGX2PQPOmvUj!GOBh06pKKNuMUQEr+jbCQpoB3nhzr9tSQb1vRgYQtFfMz3m8i9tANCU1!U1Tbvw==
 to report this email as spam.

________________________________

HR Wallingford and its subsidiaries uses faxes and emails for confidential and 
legally privileged business communications. They do not of themselves create 
legal commitments. Disclosure to parties other than addressees requires our 
specific consent. We are not liable for unauthorised disclosures nor reliance 
upon them.
If you have received this message in error please advise us immediately and 
destroy all copies of it.

HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099

________________________________

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to