NASA World Wind WMS

gov.nasa.worldwind.servers.wms.generators
Class RPFGenerator

java.lang.Object
  extended by gov.nasa.worldwind.servers.wms.generators.RPFGenerator
All Implemented Interfaces:
MapGenerator

public class RPFGenerator
extends Object
implements MapGenerator

A concrete implementation of MapGenerator that serves RPF dataseries (e.g., CADRG, CIB, etc.). Any framefiles residing below the configured root-directory for this MapGenerator (see MapSource) are identified. The framefiles that are eligible to served can be constrained to specific RPF data-series classification via an optional configuration property (see below); all framefiles are otherwise considered available.

The implementation also attempts to use wavelet encodings of these files to reconstruct small-scale representations of the files. These encodings reside in files named after the individual framefiles with a ".wvt" suffix appended. The encodings are presumed to be co-located with the framefiles, unless otherwise specified with an optional configuration property (see below). If the encodings are not co-located, they must reside in a directory structure that parallels that of this MapGenerator's data root-directory.

Several optional properties may be included in the XML configuration of the corresponding MapSource element:

   <!-- if a tile's footprint in a map request is below this size (in pixels),
        the image is reconstructed from a wavelet encoding -->
   <property name="wavelet_image_threshold" value="..." />

   <!-- amount of wavelet encodings to preload ( size in pixels, sq.), -->
   <property name="wavelet_preload_size" value="..." />

   <!-- root directory where the wavelet encodings reside; the encodings are
        otherwise presumed to be co-located with the image tiles. -->
   <property name="wavelet_encoding_root_dir" value="..." />

   <!-- constrain the framefiles to be served to this RPF dataseries -->
   <property name="data_series" value="..." />
 


Nested Class Summary
 class RPFGenerator.RPFServiceInstance
           
 
Nested classes/interfaces inherited from interface gov.nasa.worldwind.servers.wms.MapGenerator
MapGenerator.ServiceInstance
 
Constructor Summary
RPFGenerator()
           
 
Method Summary
 gov.nasa.worldwind.geom.Sector getBBox()
          Returns the bounding-box for the geospatial dataset managed by the MapGenerator instance.
 String[] getCRS()
          Returns the coordinate-reference systems (CRS) that the MapGenerator is capable of using to generate map requests.
 MapGenerator.ServiceInstance getServiceInstance()
          Called by the WMS to return an instance of ServiceInstance to field a GetMap request.
 boolean initialize(MapSource mapSource)
          Gives the MapGenerator implementation an opportunity to perform any needed initialization, prior to fielding GetMap requests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RPFGenerator

public RPFGenerator()
Method Detail

getBBox

public gov.nasa.worldwind.geom.Sector getBBox()
Description copied from interface: MapGenerator
Returns the bounding-box for the geospatial dataset managed by the MapGenerator instance.

Specified by:
getBBox in interface MapGenerator
Returns:

getCRS

public String[] getCRS()
Description copied from interface: MapGenerator
Returns the coordinate-reference systems (CRS) that the MapGenerator is capable of using to generate map requests.

Specified by:
getCRS in interface MapGenerator
Returns:

getServiceInstance

public MapGenerator.ServiceInstance getServiceInstance()
Description copied from interface: MapGenerator
Called by the WMS to return an instance of ServiceInstance to field a GetMap request.

Specified by:
getServiceInstance in interface MapGenerator
Returns:

initialize

public boolean initialize(MapSource mapSource)
                   throws IOException,
                          WMSServiceException
Description copied from interface: MapGenerator
Gives the MapGenerator implementation an opportunity to perform any needed initialization, prior to fielding GetMap requests. This typically includes extraction of any MapGenerator-specific properties that were given in the MapSource configuration. Called once at WMS start-up time.

Specified by:
initialize in interface MapGenerator
Returns:
Throws:
IOException
WMSServiceException

NASA World Wind WMS