[Geoserver-users] does geoserver support ExternalGraphics in SLD?

All,

Does geoserver support rendering points using external graphics? e.g.

          <sld:PointSymbolizer>
            <sld:Graphic>
              <sld:ExternalGraphic>
                <sld:OnlineResource
xmlns:xlink="http://www.w3.org/1999/xlink&quot; xlink:type="simple"
xlink:href="http://…image_url..." />
                <sld:Format>PNG</sld:Format>
              </sld:ExternalGraphic>
            </sld:Graphic>
          </sld:PointSymbolizer>

I tried the SLD above in nightly build of geoserver 1.6.0, which seems
not working and points just don't show up. If I change back to simple
rendering, it works fine.

Thanks

Hi,

Yes, geoserver does support external graphics in sld documents... Could it be possible that the href you are supplying is not resolvable from the machine you are running geoserver on.

It might be that you have just hit a bug.. I wonder if you could try a 1.5.x build (stable) and see if it works.

Also, when you say change back to simple rendering do you just mean not including the external graphic?

-Justin

Yingqi Tang wrote:

All,

Does geoserver support rendering points using external graphics? e.g.

          <sld:PointSymbolizer>
            <sld:Graphic>
              <sld:ExternalGraphic>
                <sld:OnlineResource
xmlns:xlink="http://www.w3.org/1999/xlink&quot; xlink:type="simple"
xlink:href="http://…image_url..." />
                <sld:Format>PNG</sld:Format>
              </sld:ExternalGraphic>
            </sld:Graphic>
          </sld:PointSymbolizer>

I tried the SLD above in nightly build of geoserver 1.6.0, which seems
not working and points just don't show up. If I change back to simple
rendering, it works fine.

Thanks

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,469e9e1b121511628642973!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

If you're doing a remote href you may consider just copying the remote image and putting it in your styles directory. Then GeoServer will be able to resolve it easier. You can refer to it with a relative path I believe.

Chris

Justin Deoliveira wrote:

Hi,

Yes, geoserver does support external graphics in sld documents... Could it be possible that the href you are supplying is not resolvable from the machine you are running geoserver on.

It might be that you have just hit a bug.. I wonder if you could try a 1.5.x build (stable) and see if it works.

Also, when you say change back to simple rendering do you just mean not including the external graphic?

-Justin

Yingqi Tang wrote:

All,

Does geoserver support rendering points using external graphics? e.g.

          <sld:PointSymbolizer>
            <sld:Graphic>
              <sld:ExternalGraphic>
                <sld:OnlineResource
xmlns:xlink="http://www.w3.org/1999/xlink&quot; xlink:type="simple"
xlink:href="http://…image_url..." />
                <sld:Format>PNG</sld:Format>
              </sld:ExternalGraphic>
            </sld:Graphic>
          </sld:PointSymbolizer>

I tried the SLD above in nightly build of geoserver 1.6.0, which seems
not working and points just don't show up. If I change back to simple
rendering, it works fine.

Thanks

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users