Hi,

I'm trying to use a BLOB column in an Oracle table to keep the Style to
apply in SLD.

After creating the column JSONSTYLE on table ROUT, it appears on the
geoserver feature with type byte[].

In SLD, I try to access the JSON property like this:
"
<CssParameter name="stroke">
    <ogc:PropertyName>JSONSTYLE.strokeColor</ogc:PropertyName>
</CssParameter>
"

And I got the expected error:
"
10-03-22 21:26:51 http-nio-3000-exec-1  DEBUG [ows] - Getting layers and
styles from LAYERS and STYLES
10-03-22 21:26:51 http-nio-3000-exec-1  ERROR [ows] -
org.geoserver.platform.ServiceException: The requested Style can not be
used with this layer.  The style specifies an attribute named
'JSONSTYLE.strokeColor', not found in the 'ASP:ROUT' layer
at
org.geoserver.wms.map.GetMapKvpRequestReader.checkStyle(GetMapKvpRequestReader.java:1275)
at
org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:604)
at
org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:96)
at org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:1544)
"

My question is if there's any option to bypass the PropertyName vs Column
validation, to be able to use JSON properties.

Thanks,
*Tiago Vieira*
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to