| Base class for GetFeatureInfo delegates responsible of creating
GetFeatureInfo responses in different formats.
Subclasses should implement one or more output formats, wich will be
returned in a list of mime type strings in
getSupportedFormats . For example, a subclass can be created to
write one of the following output formats:
This abstract class takes care of executing the request in the sense of
taking the GetFeatureInfo request parameters such as query_layers, bbox, x,
y, etc., create the gt2 query objects for each featuretype and executing
it. This process leads to a set of FeatureResults objects and its metadata,
wich will be given to the execute(FeatureTypeInfo[] ,
FeatureResults[]) method, that a subclass should implement as a
matter of setting up any resource/state it needs to later encoding.
So, it should be enough to a subclass to implement the following methods in
order to produce the requested output format:
-
execute(FeatureTypeInfo[], FeatureResults[], int, int)
-
canProduce(String mapFormat)
-
getSupportedFormats()
-
writeTo(OutputStream)
author: Gabriel Roldan, Axios Engineering author: Chris Holmes version: $Id: GetFeatureInfoDelegate.java 8418 2008-02-18 14:47:17Z aaime $ |