[GeoNode-users] geonode point symbols

John Jediny john.jediny at gmail.com
Sun Nov 29 21:08:56 PST 2015


Note too that you can also use svg by replacing

xlink:href="./img/marae16.png" />

<Format>image/png</Format>


...with...


xlink:href="./img/marae16.svg" />

<Format>image/svg</Format>


while supported by Geoserver in editting the .sld directly - this is not
supported via geoexplorer's sld editor

On Sun, Nov 29, 2015 at 9:14 PM, Ariel Nunez <ingenieroariel at gmail.com>
wrote:

> 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
>>
>>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
>


-- 
Cell: 973-931-0580
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20151130/9f40740c/attachment-0001.html>


More information about the geonode-users mailing list