Dear community,

This is an idea proposal to enhance GeoServer view parameters to allow an
XML format with more complex values definitions without the limit on not
using reserved characters as the current plain format.

Current GeoServer view params documentation:
https://docs.geoserver.org/master/en/user/data/database/sqlview.html#using-a-parametric-sql-view

Motivation:
To have the ability of sending complex values into view parameters, like
comma separated sublists, semicolon and comma separated inner
sub-parameters, CSV sets, JSON/XML, etc.

Proposed XML alternative format:
The XML alternative format will include the following tags:
- <Layer> : defines a layer parameters, using the same layers order as the
regular view parameters format.
- <Parameter> : To be included inside the <Layer> element.  Defines a
parameter on its nested element value, setting its parameter name using the
"name" attribute.

Example:
&viewParams=<Layer><Parameter
name="mmsi">538008302,244060802,538008505</Parameter></Layer><Layer><Parameter
name="mmsi">22,44</Parameter></Layer><Layer><Parameter
name="csvInput">acv,rrp;1,0;0,7;22,1</Parameter></Layer>

Current format support and backward compatibility:
The new alternative format will be only activated when a well formed XML
including the Layer and Parameter tags are provided as value for the
viewParams URL parameter in the request.
If this condition criteria is not accomplished, the regular view parameter
format will be used, respecting backward compatibility and regular use
cases.

Implementation hints:
Before writing the complete plan/proposal I would like to know the
community feedback about this enhancement idea, but summarizing we should
have:
- New KVP parser implementation for XML formatted view parameters.
- New tests checking this new implementation and checking backward
compatibility.
- A new section on GeoServer documentation covering this new format.

Naturally, any feedback to this enhancement is welcome.  Thanks!!!

Regards,

Fernando Mino

==

GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.

==

Fernando Mino

Software Engineer

@fmy2kec

GeoSolutions Group
phone: +39 0584 962313

fax:     +39 0584 1660272

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

-------------------------------------------------------

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail.
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to