NASA World Wind WMS

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

java.lang.Object
  extended by gov.nasa.worldwind.servers.wms.generators.WorldWindTiledLayer
All Implemented Interfaces:
MapGenerator
Direct Known Subclasses:
BlueMarblePreprocessor, NAIPPyramidBuilder, PyramidBuilder, ScankortImageryPreprocessor

public class WorldWindTiledLayer
extends java.lang.Object


Nested Class Summary
protected  class WorldWindTiledLayer.BasicServiceInstance
           
protected  class WorldWindTiledLayer.NonComposableServiceInstance
           
protected static class WorldWindTiledLayer.ResourceTile
           
protected static class WorldWindTiledLayer.TileCacheMosaicer
           
protected static class WorldWindTiledLayer.TileCacheSelector
           
 
Nested classes/interfaces inherited from interface gov.nasa.worldwind.servers.wms.MapGenerator
MapGenerator.ServiceInstance
 
Field Summary
protected  gov.nasa.worldwind.DataConfiguration config
           
protected  gov.nasa.worldwind.geom.Sector coverage
           
protected static java.lang.String crsStr
           
protected  boolean debug
           
protected  boolean isComposable
           
protected  java.lang.String layerType
           
protected  gov.nasa.worldwind.util.LevelSet levels
           
protected  MapSource mapSource
           
protected  DataConfigurationMapSource ms
           
protected  gov.nasa.worldwind.avlist.AVList params
           
protected  double pixelSize
           
protected  java.lang.String threadId
           
 
Constructor Summary
WorldWindTiledLayer()
           
 
Method Summary
protected static gov.nasa.worldwind.data.DataRaster createDataRaster(int width, int height, gov.nasa.worldwind.geom.Sector sector, gov.nasa.worldwind.avlist.AVList params)
           
protected  void doInitialize(MapSource mapSource)
           
 gov.nasa.worldwind.geom.Sector getBBox()
          Returns the bounding-box for the geospatial dataset managed by the MapGenerator instance.
 java.lang.String[] getCRS()
          Returns the coordinate-reference systems (CRS) that the MapGenerator is capable of using to generate map requests.
 java.lang.String getDataType()
          Returns 'true' if the MapSource returns imagery data, and 'false' for elevation data
 java.awt.image.BufferedImage getImageFromSource(java.lang.String sourceFile, gov.nasa.worldwind.geom.Sector extent, int width, int height)
           
 gov.nasa.worldwind.util.LevelSet getLevelSet()
           
 MapSource getMapSource()
           
 double getPixelSize()
           
protected  double getProperty(java.util.Properties props, java.lang.String key, double defaultVal, java.lang.String name)
           
protected  int getProperty(java.util.Properties props, java.lang.String key, int defaultVal, java.lang.String name)
           
protected  java.lang.String getProperty(java.util.Properties props, java.lang.String key, java.lang.String defaultVal, java.lang.String name)
           
 MapGenerator.ServiceInstance getServiceInstance()
          Called by the WMS to return an instance of ServiceInstance to field a GetMap request.
 java.lang.String getThreadId()
           
 boolean hasCoverage(gov.nasa.worldwind.geom.Sector sector)
          Returns 'true' if the MapSource has imagery or elevation available for a given sector.
 boolean initialize(MapSource mapSource)
          Gives the MapGenerator implementation an opportunity to perform any needed initialization, prior to fielding GetMap requests.
 boolean isComposable()
           
 java.awt.image.BufferedImage mosaic(java.io.File[] sourceFiles, gov.nasa.worldwind.geom.Sector extent, int width, int height, short srcNoData, short destNoData)
           
 void setMapSource(MapSource mapSource)
           
 void setThreadId(java.lang.String prefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

protected gov.nasa.worldwind.DataConfiguration config

coverage

protected gov.nasa.worldwind.geom.Sector coverage

crsStr

protected static final java.lang.String crsStr
See Also:
Constant Field Values

isComposable

protected boolean isComposable

layerType

protected java.lang.String layerType

levels

protected gov.nasa.worldwind.util.LevelSet levels

ms

protected DataConfigurationMapSource ms

params

protected gov.nasa.worldwind.avlist.AVList params

pixelSize

protected double pixelSize

debug

protected boolean debug

mapSource

protected MapSource mapSource

threadId

protected java.lang.String threadId
Constructor Detail

WorldWindTiledLayer

public WorldWindTiledLayer()
Method Detail

doInitialize

protected void doInitialize(MapSource mapSource)

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.

Returns:

getCRS

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

Returns:

getDataType

public java.lang.String getDataType()
Description copied from interface: MapGenerator
Returns 'true' if the MapSource returns imagery data, and 'false' for elevation data

Returns:

getLevelSet

public gov.nasa.worldwind.util.LevelSet getLevelSet()

getPixelSize

public double getPixelSize()

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.

Returns:

initialize

public boolean initialize(MapSource mapSource)
                   throws java.io.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.

Returns:
Throws:
java.io.IOException
WMSServiceException

isComposable

public boolean isComposable()

createDataRaster

protected static gov.nasa.worldwind.data.DataRaster createDataRaster(int width,
                                                                     int height,
                                                                     gov.nasa.worldwind.geom.Sector sector,
                                                                     gov.nasa.worldwind.avlist.AVList params)

getImageFromSource

public java.awt.image.BufferedImage getImageFromSource(java.lang.String sourceFile,
                                                       gov.nasa.worldwind.geom.Sector extent,
                                                       int width,
                                                       int height)

getMapSource

public MapSource getMapSource()
Specified by:
getMapSource in interface MapGenerator

getProperty

protected double getProperty(java.util.Properties props,
                             java.lang.String key,
                             double defaultVal,
                             java.lang.String name)

getProperty

protected int getProperty(java.util.Properties props,
                          java.lang.String key,
                          int defaultVal,
                          java.lang.String name)

getProperty

protected java.lang.String getProperty(java.util.Properties props,
                                       java.lang.String key,
                                       java.lang.String defaultVal,
                                       java.lang.String name)

getThreadId

public java.lang.String getThreadId()

hasCoverage

public boolean hasCoverage(gov.nasa.worldwind.geom.Sector sector)
Description copied from interface: MapGenerator
Returns 'true' if the MapSource has imagery or elevation available for a given sector. Technically you may compare your request sector with the Bounding Box, however USGS NED or USGS Urban do not have a continuous coverage within the bounding box.

Specified by:
hasCoverage in interface MapGenerator
Returns:

mosaic

public java.awt.image.BufferedImage mosaic(java.io.File[] sourceFiles,
                                           gov.nasa.worldwind.geom.Sector extent,
                                           int width,
                                           int height,
                                           short srcNoData,
                                           short destNoData)

setMapSource

public void setMapSource(MapSource mapSource)
Specified by:
setMapSource in interface MapGenerator

setThreadId

public void setThreadId(java.lang.String prefix)

NASA World Wind WMS