I'm styling a point layer with several bitmap symbols. The bitmaps (png) reside on the same server and are referenced in the SLD with a 'file:' url like in:
<ExternalGraphic>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="file:/var/geoserver/styles/symbols/open_refugee_area.png"/>
<Format>image/png</Format>
</ExternalGraphic>
I guess geoserver caches these images? Then it does so a bit over-enthousiastic, because when I change these bitmaps on disk, geoserver keeps displaying the old bitmaps, no matter how often I press the 'load' button in the config interface. I would expect it to render the new bitmap instead. Only restarting tomcat helps.
Is there some setting I can adjust to improve this behaviour, or should I change something in my SLD?
Or should I file a jira issue on this?
Vincent.
I used external symbols too some time ago, but honestly I don’t remember exactly about the GeoServer behaviour on handling them.
However, I think is a good idea open up a Jira on this.
On 1/17/07, Vincent Schut <schut@anonymised.com> wrote:
I’m styling a point layer with several bitmap symbols. The bitmaps (png)
reside on the same server and are referenced in the SLD with a ‘file:’
url like in:
image/png
I guess geoserver caches these images? Then it does so a bit
over-enthousiastic, because when I change these bitmaps on disk,
geoserver keeps displaying the old bitmaps, no matter how often I press
the ‘load’ button in the config interface. I would expect it to render
the new bitmap instead. Only restarting tomcat helps.
Is there some setting I can adjust to improve this behaviour, or should
I change something in my SLD?
Or should I file a jira issue on this?
Vincent.
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
–
Eng. Alessio Fabiani
Vice President/CTO GeoSolutions
http://www.geo-solutions.it
Vincent Schut ha scritto:
I'm styling a point layer with several bitmap symbols. The bitmaps (png) reside on the same server and are referenced in the SLD with a 'file:' url like in:
<ExternalGraphic>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="file:/var/geoserver/styles/symbols/open_refugee_area.png"/>
<Format>image/png</Format>
</ExternalGraphic>
I guess geoserver caches these images? Then it does so a bit over-enthousiastic, because when I change these bitmaps on disk, geoserver keeps displaying the old bitmaps, no matter how often I press the 'load' button in the config interface. I would expect it to render the new bitmap instead. Only restarting tomcat helps.
Is there some setting I can adjust to improve this behaviour, or should I change something in my SLD?
Or should I file a jira issue on this?
File a jira issue. It's the ImageLoader class in geotools, that keeps
a static cache of images to be loaded. This improves performance a lot,
but there's no way to flush the cache.
It's not super-easy to fix neither, since the class works against URL,
so it may well load something from the net, not only from the disk where
I can eventually check the last modification date.
Cheers
Andrea
Andrea Aime wrote:
Vincent Schut ha scritto:
I'm styling a point layer with several bitmap symbols. The bitmaps (png) reside on the same server and are referenced in the SLD with a 'file:' url like in:
<ExternalGraphic>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="file:/var/geoserver/styles/symbols/open_refugee_area.png"/>
<Format>image/png</Format>
</ExternalGraphic>
I guess geoserver caches these images? Then it does so a bit over-enthousiastic, because when I change these bitmaps on disk, geoserver keeps displaying the old bitmaps, no matter how often I press the 'load' button in the config interface. I would expect it to render the new bitmap instead. Only restarting tomcat helps.
Is there some setting I can adjust to improve this behaviour, or should I change something in my SLD?
Or should I file a jira issue on this?
File a jira issue. It's the ImageLoader class in geotools, that keeps
a static cache of images to be loaded. This improves performance a lot,
but there's no way to flush the cache.
Done: GEOS-856.
Already suspected something like that; tried disabling all options with 'cache' in their wordings but didn't work out...
It's not super-easy to fix neither, since the class works against URL,
so it may well load something from the net, not only from the disk where
I can eventually check the last modification date.
Was afraid so. Maybe best and easiest 'fix' is to have geoserver at least refresh the cache when you click the 'load' button from the config web interface?
Cheers,
Vincent.
Cheers
Andrea