[Geoserver-users] WMS/SLD: referencing external bitmaps via file system (not via http get)

Hi list,
i’m creating a service for a geologic map with > 150 different classes (polygon features). For styling i need complex symbols and of course hatching what is both a problem. I did it with SLD because geoserver has no native styling like UMN mapserver for example. So i had to create bitmaps, store them on a webserver-accesable place and reference them via:

image/png

10



Of course that’s possible but not really suitable because for every GetMap geoserver has to do around 50 http-GET, what slows down the response enormously. Is there another possibility - for example to reference the bitmaps via file system or something else?

Best regards
Albrecht


Albrecht Weiser,
E6, GIS Center

Hessische Zentrale für Datenverarbeitung (HZD)
Mainzer Straße 29, 65185 Wiesbaden
Tel.: 0611 340-3113
Fax: 0611 340-5113
E-Mail: albrecht.weiser-at-hzd.hessen.de

This sounds similar to projects that have been mooted on this list recently-- a desire to use many, many distinct symbols in one layer.

I'm not sure if GeoServer supports this, but if your symbols don't change frequently, perhaps you could use the se:InlineContent element instead of se:OnlineResource and in-line (XML or Base-64) the graphics. See page 24 of the SLD 1.1.0 rev 4 standard.

---
A. Soroka / Digital Scholarship Services R & D
the University of Virginia Library

On Nov 12, 2008, at 10:55 AM, <Albrecht.Weiser@anonymised.com> wrote:

Hi list,
i'm creating a service for a geologic map with > 150 different classes (polygon features). For styling i need complex symbols and of course hatching what is both a problem. I did it with SLD because geoserver has no native styling like UMN mapserver for example. So i had to create bitmaps, store them on a webserver-accesable place and reference them via:

                                        <PolygonSymbolizer>
                                                <Fill>
                                                        <GraphicFill>
                                                                <Graphic>
                                                                        <ExternalGraphic>
                                                                                <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink&quot; xlink:type="simple" xlink:href="http://localhost:9080/geoserver/bitmaps/geologie_3.png&quot;/&gt;

                                                                                <Format>image/png</Format>
                                                                        </ExternalGraphic>
                                                                        <Size>10</Size>
                                                                </Graphic>
                                                        </GraphicFill>
                                                </Fill>
                                        </PolygonSymbolizer>

Of course that's possible but not really suitable because for every GetMap geoserver has to do around 50 http-GET, what slows down the response enormously. Is there another possibility - for example to reference the bitmaps via file system or something else?

Best regards
Albrecht

--
Albrecht Weiser,
E6, GIS Center

Hessische Zentrale für Datenverarbeitung (HZD)
Mainzer Straße 29, 65185 Wiesbaden
Tel.: 0611 340-3113
Fax: 0611 340-5113
E-Mail: albrecht.weiser-at-hzd.hessen.de

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Albrecht.Weiser@anonymised.com ha scritto:

Hi list,
i'm creating a service for a geologic map with > 150 different classes (polygon features). For styling i need complex symbols and of course hatching what is both a problem. I did it with SLD because geoserver has no native styling like UMN mapserver for example. So i had to create bitmaps, store them on a webserver-accesable place and reference them via:

                                        <PolygonSymbolizer>
                                                <Fill>
                                                        <GraphicFill>
                                                                <Graphic>
                                                                        <ExternalGraphic>
                                                                                <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink&quot; xlink:type="simple" xlink:href="http://localhost:9080/geoserver/bitmaps/geologie_3.png&quot;/&gt;

                                                                                <Format>image/png</Format>
                                                                        </ExternalGraphic>
                                                                        <Size>10</Size>
                                                                </Graphic>
                                                        </GraphicFill>
                                                </Fill>
                                        </PolygonSymbolizer>

Of course that's possible but not really suitable because for every GetMap geoserver has to do around 50 http-GET, what slows down the response enormously. Is there another possibility - for example to reference the bitmaps via file system or something else?

Sorry, but have you double checked? The first request will have to do
so, but afaik after that the images are cached in memory and drawing
should require no further GET requests.

There is also the option to store all the images in the styles
directory, and refer them simply by name. That should cache them
as well after the first read.

Let me know.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.