On Sat, May 31, 2014 at 3:38 PM, Jody Garnett <[email protected]>
wrote:

> Given that clients might also want to follow the link and get the legend
>> graphics, this could
>> be coupled with a dispatcher callback that intercepts the legend graphic
>> request and if it
>> matches the one used to generate the PNG file, we could just shortcut and
>> return the file on disk, getting some caching benefit
>>
>
> I was more thinking the GetCapabilities document could provide a URL
> straight to those generated images. The GetCapabilities document is
> supposed to link to a URL, nothing says that URL has to be a
> GetLegendGraphic request (especially since GetLegendGraphics is an
>  optional operation).
>

That would work as well, but we don't have a way to publish specific files
out of the data dir, only full folders, so we'd have to somehow
pimp up the FilePublisher, making it filter-able.
Plus the current way gives a valid example of how to use GetLegendGraphics,
why remove it?


>
> We'd still need the "last updated" information in the style files, which
>> could become something standard, or maybe could be done by attaching a
>> style specific listener to the catalog
>>
>
> You could also check resource modification time on the style file, and
> compare against your generated image.
>

Right... that would double the number of file system accesses though

Cheers
Andrea

-- 
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
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

-------------------------------------------------------
------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to