[Geoserver-devel] [JIRA] (GEOS-10591) XML format option for view parameters

Fernando Miño created an issue

GeoServer / New FeatureGEOS-10591

XML format option for view parameters

Issue Type:

New FeatureNew Feature

Assignee:

Fernando Miño

Components:

WFS, WMS

Created:

19/Jul/22 6:34 PM

Fix Versions:

2.22-RC

Priority:

MediumMedium

Reporter:

Fernando Miño

This is an idea 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 example:

&viewParamsFormat=XML
&viewParams=<VP><PS><P n="mmsi">538008302,244060802,538008505</P><P n="mmsi">22,44</P></PS><PS/><PS><P n="csvInput">acv,rrp;1,0;0,7;22,1</P></PS></VP>

viewParamsFormat new optional parameter definition:

  • Selects the view parameters format implementation to use by its identifier.
  • Optional parameter, if not set the default character separated format will be used supporting backward compatibility.

XML tags/attributes definition:

  • VP: the root xml element tag for View Params. This was added to comply with the XML format validation.
  • PS: the parameters set XML element for the positional layer. If there are no parameters for the current layer this must be set as empty element <PS/>
  • P: the parameter definition XML element, including the parameter name as the n attributer and the value as the XML element child value text.
  • n: the parameter name attribute inside the ‘P’ parameter definition element.

Note: If a layer doesn’t have parameters to set we just set an empty PS element as seen on the example: <PS/>

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100202-sha1:39a47f2)

Atlassian logo