NASA World Wind WMS

gov.nasa.worldwind.servers.tools.prep
Class BlueMarblePreprocessor

java.lang.Object
  extended by gov.nasa.worldwind.servers.wms.generators.WorldWindTiledLayer
      extended by gov.nasa.worldwind.servers.tools.prep.BlueMarblePreprocessor
All Implemented Interfaces:
MapGenerator

public class BlueMarblePreprocessor
extends WorldWindTiledLayer


Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.servers.wms.generators.WorldWindTiledLayer
WorldWindTiledLayer.BasicServiceInstance, WorldWindTiledLayer.NonComposableServiceInstance, WorldWindTiledLayer.ResourceTile, WorldWindTiledLayer.TileCacheMosaicer, WorldWindTiledLayer.TileCacheSelector
 
Nested classes/interfaces inherited from interface gov.nasa.worldwind.servers.wms.MapGenerator
MapGenerator.ServiceInstance
 
Field Summary
protected  boolean debug
           
static java.lang.String DEFAULT_LAYER_NAME
           
protected  MapSource mapSource
           
protected  java.lang.String threadId
           
 
Fields inherited from class gov.nasa.worldwind.servers.wms.generators.WorldWindTiledLayer
config, coverage, crsStr, isComposable, layerType, levels, ms, params, pixelSize
 
Constructor Summary
BlueMarblePreprocessor()
           
 
Method Summary
protected  int buildRequestTileFromPreviousLevel(gov.nasa.worldwind.util.Tile tile, int levelNumber)
           
protected  void create_max_resolution_level()
           
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 createRestorePoint()
           
 java.awt.image.BufferedImage getImageFromSource(java.lang.String sourceFile, gov.nasa.worldwind.geom.Sector extent, int width, int height)
           
 MapSource getMapSource()
           
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)
           
 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.
static void main(java.lang.String[] args)
           
 java.awt.image.BufferedImage mosaic(java.io.File[] sourceFiles, gov.nasa.worldwind.geom.Sector extent, int width, int height, short srcNoData, short destNoData)
           
protected  int requestTileFromGenerator(gov.nasa.worldwind.util.Tile tile)
           
protected  void restore()
           
 void setGenerator(MapGenerator gen)
           
 void setMapSource(MapSource mapSource)
           
 void setThreadId(java.lang.String prefix)
           
 void step1_generate_max_resolution_tiles(java.lang.String rootDir, java.lang.String yyyymm)
           
 void step2_create_lower_resolution_tiles()
           
 
Methods inherited from class gov.nasa.worldwind.servers.wms.generators.WorldWindTiledLayer
doInitialize, getBBox, getCRS, getDataType, getLevelSet, getPixelSize, getServiceInstance, initialize, isComposable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LAYER_NAME

public static final java.lang.String DEFAULT_LAYER_NAME
See Also:
Constant Field Values

debug

protected boolean debug

mapSource

protected MapSource mapSource

threadId

protected java.lang.String threadId
Constructor Detail

BlueMarblePreprocessor

public BlueMarblePreprocessor()
Method Detail

buildRequestTileFromPreviousLevel

protected int buildRequestTileFromPreviousLevel(gov.nasa.worldwind.util.Tile tile,
                                                int levelNumber)

create_max_resolution_level

protected void create_max_resolution_level()

createRestorePoint

protected void createRestorePoint()

main

public static void main(java.lang.String[] args)

requestTileFromGenerator

protected int requestTileFromGenerator(gov.nasa.worldwind.util.Tile tile)

restore

protected void restore()

setGenerator

public void setGenerator(MapGenerator gen)

step1_generate_max_resolution_tiles

public void step1_generate_max_resolution_tiles(java.lang.String rootDir,
                                                java.lang.String yyyymm)
                                         throws WMSServiceException,
                                                java.io.IOException
Throws:
WMSServiceException
java.io.IOException

step2_create_lower_resolution_tiles

public void step2_create_lower_resolution_tiles()
                                         throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

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