Discussion:
[Geoserver-users] geoserver and sld rest services
annalisa
2017-05-03 13:50:07 UTC
Permalink
hi guy
please help me!
I'm working in progress with geoserver but i want to style my layer in
geoserver.
I understand how to style using data section and styles, and i tried to
change my points based on a parameter (id_point) but now i want to change
the image of my points using a sql server data table, how can i do?
yust for now i have a style like this
<Rule>
<Name>id 1</Name>
<Title>coloreid_point 1</Title>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>id_point</ogc:PropertyName>
<ogc:Literal>1</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PointSymbolizer>
<Graphic>
<Mark>
<WellKnownName>circle</WellKnownName>
<Fill>
<CssParameter name="fill">#ff0000</CssParameter>
</Fill>
</Mark>
<Size>8</Size>
</Graphic>
</PointSymbolizer>
</Rule>
....



thanks!!




-----
annalisa
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/geoserver-and-sld-rest-services-tp5319252.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Edward Mac Gillavry
2017-05-03 14:09:41 UTC
Permalink
Hi Anna Lisa,

To reference images dynamically, use CQL in combination with an
ExternalGraphic. The OnlineResource is then assigned using a value from
a column in your table. Further reading at
http://blog.geoserver.org/2008/12/08/dynamic-symbolizers-part-1/. Here,
they use the STATE_ABBR column, referenced as ${STATE_ABBR} in the SLD.

Good luck!

Kind regards,

Edward
Post by annalisa
hi guy
please help me!
I'm working in progress with geoserver but i want to style my layer in
geoserver.
I understand how to style using data section and styles, and i tried to
change my points based on a parameter (id_point) but now i want to change
the image of my points using a sql server data table, how can i do?
yust for now i have a style like this
<Rule>
<Name>id 1</Name>
<Title>coloreid_point 1</Title>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>id_point</ogc:PropertyName>
<ogc:Literal>1</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PointSymbolizer>
<Graphic>
<Mark>
<WellKnownName>circle</WellKnownName>
<Fill>
<CssParameter name="fill">#ff0000</CssParameter>
</Fill>
</Mark>
<Size>8</Size>
</Graphic>
</PointSymbolizer>
</Rule>
....
thanks!!
-----
annalisa
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/geoserver-and-sld-rest-services-tp5319252.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Loading...