[GeoNode-users] geonode point symbols

tom at maptec.org tom at maptec.org
Mon Nov 30 13:31:09 PST 2015


Thanks, using a svg in the style has worked. 

 

Just a note to anyone else with this situation. I used Inkscape to create the svg. In my situation the file had to be saved as “Plain SVG” and not the default “Inkscape SVG”.

 

From: John Jediny [mailto:john.jediny at gmail.com] 
Sent: Monday, November 30, 2015 6:09 PM
To: Ariel Nunez <ingenieroariel at gmail.com>
Cc: tom at maptec.org; geonode-users at lists.osgeo.org
Subject: Re: [GeoNode-users] geonode point symbols

 

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 <mailto: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:// <http://%3cyourgeonode%3e/static/icon.png> <yourgeonode>/static/icon.png

 

On Sun, Nov 29, 2015 at 9:02 PM, <tom at maptec.org <mailto: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 <mailto:geonode-users at lists.osgeo.org> 
http://lists.osgeo.org/mailman/listinfo/geonode-users

 


_______________________________________________
geonode-users mailing list
geonode-users at lists.osgeo.org <mailto: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/20151201/31bfebc4/attachment.html>


More information about the geonode-users mailing list