Fernando Miño ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5ade11747b296356232d89cc
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiY2Y5MDQ2MmEzYzE5NGUxN2JhMGQ2OGEyYTRiNGUyMmUiLCJwIjoiaiJ9
 ) / New Feature ( 
https://osgeo-org.atlassian.net/browse/GEOS-10591?atlOrigin=eyJpIjoiY2Y5MDQ2MmEzYzE5NGUxN2JhMGQ2OGEyYTRiNGUyMmUiLCJwIjoiaiJ9
 ) GEOS-10591 ( 
https://osgeo-org.atlassian.net/browse/GEOS-10591?atlOrigin=eyJpIjoiY2Y5MDQ2MmEzYzE5NGUxN2JhMGQ2OGEyYTRiNGUyMmUiLCJwIjoiaiJ9
 ) XML format option for view parameters ( 
https://osgeo-org.atlassian.net/browse/GEOS-10591?atlOrigin=eyJpIjoiY2Y5MDQ2MmEzYzE5NGUxN2JhMGQ2OGEyYTRiNGUyMmUiLCJwIjoiaiJ9
 )

Issue Type: New Feature Assignee: Fernando Miño ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5ade11747b296356232d89cc
 ) Components: WFS, WMS Created: 19/Jul/22 6:34 PM Fix Versions: 2.22-RC 
Priority: Medium Reporter: Fernando Miño ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5ade11747b296356232d89cc
 )

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/>

( 
https://osgeo-org.atlassian.net/browse/GEOS-10591#add-comment?atlOrigin=eyJpIjoiY2Y5MDQ2MmEzYzE5NGUxN2JhMGQ2OGEyYTRiNGUyMmUiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-10591#add-comment?atlOrigin=eyJpIjoiY2Y5MDQ2MmEzYzE5NGUxN2JhMGQ2OGEyYTRiNGUyMmUiLCJwIjoiaiJ9
 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( 
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
 ) or iOS ( 
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100202- 
sha1:39a47f2 )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to