[Geoserver-users] Point as Graphic

Thank you, for the fantastic geoserver.
I'm try the example

<FeatureTypeStyle>
     <Rule>
       <PointSymbolizer>
         <Graphic>
           <ExternalGraphic>
             <OnlineResource
               xlink:type="simple"
               xlink:href="smileyface.png" />
             <Format>image/png</Format>
           </ExternalGraphic>
           <Size>32</Size>
         </Graphic>
       </PointSymbolizer>
     </Rule>
   </FeatureTypeStyle>

with the normal point, all works fine, with the triangle, all works fine.
when i try with the example above, qgis, collegated via wms don't show
nothing.
the question is where i have to put the file smileyface.png?
is a way to set a path un my pc?
I 'm using windows7, xampp (tomcat e Apache), and i have installed
geoserver, last version.
when i use the style, point as graphics, with a shape file of point, don't
show the smiley...
with normal point graphics show the point rightly...
where's my mistake?
thanks
GB Zaccagnino

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Point-as-Graphic-tp5093328.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Mon, Dec 9, 2013 at 3:20 PM, gzaccagnino <gzaccagnino@anonymised.com>wrote:

Thank you, for the fantastic geoserver.
I'm try the example

<FeatureTypeStyle>
     <Rule>
       <PointSymbolizer>
         <Graphic>
           <ExternalGraphic>
             <OnlineResource
               xlink:type="simple"
               xlink:href="smileyface.png" />
             <Format>image/png</Format>
           </ExternalGraphic>
           <Size>32</Size>
         </Graphic>
       </PointSymbolizer>
     </Rule>
   </FeatureTypeStyle>

with the normal point, all works fine, with the triangle, all works fine.
when i try with the example above, qgis, collegated via wms don't show
nothing.
the question is where i have to put the file smileyface.png?
is a way to set a path un my pc?
I 'm using windows7, xampp (tomcat e Apache), and i have installed
geoserver, last version.
when i use the style, point as graphics, with a shape file of point, don't
show the smiley...
with normal point graphics show the point rightly...
where's my mistake?

The smileyface.png file should be placed in the styles folder of the
Geoserver
data directory, that is, in the same place as the SLD file, in order to
work.

Otherwise, you can also use an absolute path to the file, or a reference to
a
resource served by an HTTP server (e.g.,
http://maps.google.com/mapfiles/kml/shapes/airports.png)

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Hi,

if you are using Apache anyway you might as well use it to keep your
symbols.
In my case the 'geoserver_symbols' directory under the htdocs dir.
The http link has the added advantage that you can check the display of your
symbol simply with a browser. If it displays there, it will in Geoserver.

........
<sld:PointSymbolizer>
<sld:Graphic>
<sld:ExternalGraphic>
<sld:OnlineResource
xlink:type=&quot;simple&quot;
xlink:href=&quot;&lt;b>http://localhost/geoserver_symbols/ESTA/marker_BASIC.png*&quot;/&gt;
<sld:Format>image/png</sld:Format>
</sld:ExternalGraphic>
</sld:Graphic>
</sld:PointSymbolizer>
............

Cheers

Christian

-----
____________________________

Dr Christian Maul
Project Manager

Information Services Branch
Department Environment and Primary Industries
Level13, Marland House, 570 Bourke Street
Melbourne 3000

PO Box 500, East Melbourne Vic 3002

Telephone: +61-3-8636 2325
Telefax: +61-3-8636 2813
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Point-as-Graphic-tp5093328p5094554.html
Sent from the GeoServer - User mailing list archive at Nabble.com.