[GeoNode-users] geonode point symbols
tom at maptec.org
tom at maptec.org
Sun Nov 29 18:02:42 PST 2015
Hello list members,
I have installed Geonode 2.4 using the ppa:geonode/stable, and now getting
some data into it. Having problem styling point data. For polygons I simply
create the .sld file in QGIS and it works fine. But points seem to be
different as the QGIS .sld does not work, possibly due to embedded .png
image in the .sld.
I located the directory at /usr/share/geoserver/data/styles and added an
/img directory to put images in. (Is this the correct location?)
I also tried creating point symbol from the Geoserver Style Manager, still
no luck. Any help or examples of using a .png to symbolize points much
appreciated. I am using this in style manager, but only returns a grey
square not the .png image;
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<NamedLayer>
<Name>marae</Name>
<UserStyle>
<Title>Marae</Title>
<Abstract>Marae location</Abstract>
<FeatureTypeStyle>
<Rule>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource
xlink:type="simple"
xlink:href="./img/marae16.png" />
<Format>image/png</Format>
</ExternalGraphic>
<Size>16</Size>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Thanks,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20151130/967aea37/attachment.html>
More information about the geonode-users
mailing list