|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.ogcwebservices.wpvs.utils.ResolutionStripe
public class ResolutionStripe
The ResolutionStripe
class encapsulates a Surface with a maximum Resolution, which is convenient for the
creation of a quadtree.
Field Summary | |
---|---|
static int |
ELEVATION_MODEL_GRID
The elevationmodel uses a grid data serving datasource (e.g. |
static int |
ELEVATION_MODEL_POINTS
The elevationmodel uses a point data serving datasource (e.g WFS) |
static int |
ELEVATION_MODEL_UNKNOWN
No information about the elevationmodel is known (e.g. no elevationModel is set) |
Constructor Summary | |
---|---|
ResolutionStripe(Surface surface,
double maximumResolution,
double minimumResolution,
double minimalHeight,
double scale)
|
|
ResolutionStripe(Surface surface,
double maximumResolution,
double minimumResolution,
double minimalHeight,
java.lang.String outputFormat,
double scale)
|
Method Summary | |
---|---|
boolean |
addFeature(java.lang.String key,
DefaultSurface feature)
|
void |
addFeatureCollectionDataSource(AbstractDataSource featureCollectionDataSource)
|
boolean |
addTexture(java.lang.String key,
java.awt.image.BufferedImage texture)
|
void |
addTextureDataSource(AbstractDataSource textureDataSource)
|
ResolutionStripe |
call()
This call method is part of the Deegree Concurrent framework ( Executor )
. |
int |
compareTo(ResolutionStripe other)
|
CoordinateSystem |
getCRSName()
|
int |
getDGMType()
|
TerrainModel |
getElevationModel()
|
AbstractDataSource |
getElevationModelDataSource()
|
java.util.ArrayList<AbstractDataSource> |
getFeatureCollectionDataSources()
|
java.util.HashMap<java.lang.String,DefaultSurface> |
getFeatures()
|
javax.media.j3d.OrderedGroup |
getJava3DRepresentation()
After a call to this class call method, it is possible to get a Java3D representation --in form of a BranchGroup-- of this resolutionStripe. |
double |
getMaxResolution()
|
double |
getMaxResolutionAsScaleDenominator()
|
java.util.List<javax.vecmath.Point3d> |
getMeassurepointsAsList()
|
double |
getMinimalTerrainHeight()
|
double |
getMinResolution()
|
double |
getMinResolutionAsScaleDenominator()
|
java.lang.String |
getOutputFormat()
|
int |
getRequestHeightForBBox()
|
int |
getRequestWidthForBBox()
|
java.awt.image.BufferedImage |
getResultTexture()
|
double |
getScale()
|
Surface |
getSurface()
|
java.util.HashMap<java.lang.String,java.awt.image.BufferedImage> |
getTextures()
|
java.util.ArrayList<AbstractDataSource> |
getTexturesDataSources()
|
void |
outputTextures()
Outputs the textures to the tmp directory with following format: key_response:___res:_maxresolution__random_id.jpg this file will be deleted at jvm termination. |
void |
setElevationModel(TerrainModel elevationModel)
|
void |
setElevationModelDataSource(AbstractDataSource elevationModelDataSource)
|
void |
setElevationModelFromHeightMap(java.awt.image.BufferedImage heightMap)
|
void |
setElevationModelFromMeassurePoints(java.util.List<javax.vecmath.Point3d> pointList)
|
void |
setOutputFormat(java.lang.String outputFormat)
|
void |
setTextureRetrievalException(java.lang.String datasourceID,
OGCWebServiceException exception)
|
java.lang.String |
toString()
|
java.lang.String |
toWKT()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ELEVATION_MODEL_UNKNOWN
public static final int ELEVATION_MODEL_GRID
public static final int ELEVATION_MODEL_POINTS
Constructor Detail |
---|
public ResolutionStripe(Surface surface, double maximumResolution, double minimumResolution, double minimalHeight, double scale)
surface
- of this resolution stripe, after the stripeFactory it is a trapezium, after the quad-splitter an
axis-alligned bbox, which will be a request.maximumResolution
- the largest resolution value, resulting in the smallest map Resolution, e.g. farthest away from the
viewer.minimumResolution
- the smallest resolution value, resulting in the highest map Resolution, e.g. nearest to the viewer.minimalHeight
- the terrain height which will be taken if an error occurred while retrieving height data.scale
- of the heights ( 1.0 means no scaling )public ResolutionStripe(Surface surface, double maximumResolution, double minimumResolution, double minimalHeight, java.lang.String outputFormat, double scale)
surface
- of this resolution stripe, after the stripeFactory it is a trapezium, after the quad-splitter an
axis-alligned bbox, which will be a request.maximumResolution
- the largest resolution value, resulting in the smallest map Resolution, e.g. farthest away from the
viewer.minimumResolution
- the smallest resolution value, resulting in the highest map Resolution, e.g. nearest to the viewer.minimalHeight
- the terrain height which will be taken if an error occurred while retrieving height data.outputFormat
- of the requests.scale
- of the heights ( 1.0 means no scaling )Method Detail |
---|
public CoordinateSystem getCRSName()
public double getMaxResolution()
public double getMaxResolutionAsScaleDenominator()
MapUtils.DEFAULT_PIXEL_SIZE
.public double getMinResolutionAsScaleDenominator()
MapUtils.DEFAULT_PIXEL_SIZE
.public double getMinResolution()
public Surface getSurface()
public double getMinimalTerrainHeight()
public int getRequestWidthForBBox()
public int getRequestHeightForBBox()
public TerrainModel getElevationModel()
TriangleTerrain
elevation model of the
bbox of this stripe (with heightvalues set to minimalheigt) is returned.public void setElevationModel(TerrainModel elevationModel)
elevationModel
- An other elevationModel.public void setElevationModelFromMeassurePoints(java.util.List<javax.vecmath.Point3d> pointList)
pointList
- containing Points which represents the heights of measures points (normally aquired from a wfs).public void setElevationModelFromHeightMap(java.awt.image.BufferedImage heightMap)
heightMap
- a BufferedImage which contains height values, normally aquired from a wcs.public java.util.HashMap<java.lang.String,DefaultSurface> getFeatures()
public boolean addFeature(java.lang.String key, DefaultSurface feature)
key
- the name of the feature to be added.feature
- (e.g a building, tree etc.) as a DefaultSurface (derived frome Shape3D) to be added to the hashmap.
public java.util.HashMap<java.lang.String,java.awt.image.BufferedImage> getTextures()
public boolean addTexture(java.lang.String key, java.awt.image.BufferedImage texture)
key
- the name of the texture to be added.texture
- to be added to the hashmap.
public AbstractDataSource getElevationModelDataSource()
public void setElevationModelDataSource(AbstractDataSource elevationModelDataSource)
elevationModelDataSource
- An other elevationModelDataSource value.public java.util.ArrayList<AbstractDataSource> getFeatureCollectionDataSources()
public void addFeatureCollectionDataSource(AbstractDataSource featureCollectionDataSource)
featureCollectionDataSource
- a DataSources for a specific featureCollection.public java.util.ArrayList<AbstractDataSource> getTexturesDataSources()
public void addTextureDataSource(AbstractDataSource textureDataSource)
textureDataSource
- An other texturesDataSources value.public java.lang.String getOutputFormat()
public void setOutputFormat(java.lang.String outputFormat)
outputFormat
- the mime type of the resultimagepublic javax.media.j3d.OrderedGroup getJava3DRepresentation()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toWKT()
public void outputTextures()
key_response:___res:_maxresolution__random_id.jpg
this file will be deleted at jvm termination.
public double getScale()
public int getDGMType()
ELEVATION_MODEL_UNKNOWN
ELEVATION_MODEL_GRID
ELEVATION_MODEL_POINTS
public java.awt.image.BufferedImage getResultTexture()
public ResolutionStripe call() throws OGCWebServiceException
Executor
)
. In this case it requests all the Data for a ResolutionStripe
by invoking the necessary
webservices.
call
in interface java.util.concurrent.Callable<ResolutionStripe>
OGCWebServiceException
Callable.call()
public void setTextureRetrievalException(java.lang.String datasourceID, OGCWebServiceException exception)
datasourceID
- the id of the datasources which received an exception while retrieving a texture.exception
- the exception that occured while invoking the datasource.public final java.util.List<javax.vecmath.Point3d> getMeassurepointsAsList()
public int compareTo(ResolutionStripe other)
compareTo
in interface java.lang.Comparable<ResolutionStripe>
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org