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 On 03-05-17 15:50, annalisa wrote:
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 Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------ 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 Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users