On Sun, Feb 12, 2012 at 5:39 PM, John Armstrong <[email protected]> wrote:

> Hi, everybody.
>
> I've got something hacked together so that my CoverageReader can handle
> TIME parameters, and I've tested it with wms calls through curl.  Now
> I'm running into trouble when I try to hook it up to OpenLayers.  It
> seems that GeoWebCache takes the incoming request and assembles a "fake"
> request from it with a fixed list of parameters.  In
> GeoServerTileLayer.buildGetMap():
>
>         params.put("SERVICE", "WMS");
>         params.put("VERSION", "1.1.1");
>         params.put("REQUEST", "GetMap");
>         params.put("LAYERS", getName());
>         params.put("SRS", srs);
>         params.put("FORMAT", format);
>         params.put("WIDTH", String.valueOf(width));
>         params.put("HEIGHT", String.valueOf(height));
>         params.put("BBOX", bbox.toString());
>
>         params.put("EXCEPTIONS", GetMapRequest.SE_XML);
>         params.put("STYLES", "");
>         params.put("TRANSPARENT", "true");
>         params.put(GWC_SEED_INTERCEPT_TOKEN, "true");
>
>         Map<String, String> filteredParams = tile.getFullParameters();
>         if (filteredParams.isEmpty()) {
>             filteredParams = getDefaultParameterFilters();
>         }
>         params.putAll(filteredParams);
>
> the last line could, I suppose, be used to add other parameters to the
> fake request, but tracing through the history of the tile object, I
> can't find any place where it might get added to tile.fullParameters.
>
> Any ideas?  How does this work for ImageMosaics?  Thanks in advance.
>

It most likely doesn't.

We actually did not check it, time + elevation would
require creating a separate tile cache for each different value passed in,
which would
end up requiring a massive amount of disk space, so it's a case I did not
bother
to check when implementing time/elevation support.

Feel free to provide patches to make this case work (I suppose you have very
few values for time/elevation?)

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to