[GeoNode-users] geonode point symbols
Ariel Nunez
ingenieroariel at gmail.com
Sun Nov 29 18:14:30 PST 2015
The key would be to put the icon somewhere in /var/www/geonode/static/.
That way you can reference it with a fully qualified url of http://
<yourgeonode>/static/icon.png
On Sun, Nov 29, 2015 at 9:02 PM, <tom at maptec.org> wrote:
> 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
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20151129/c79228d0/attachment.html>
More information about the geonode-users
mailing list