org.deegree.ogcwebservices.wms.dataaccess
Class ID2PInterpolation
java.lang.Object
  
org.deegree.ogcwebservices.wms.dataaccess.ID2PInterpolation
- All Implemented Interfaces: 
 - ExternalDataAccess, ExternalRasterDataAccess
 
public class ID2PInterpolation
- extends Object
- implements ExternalRasterDataAccess
  
This class reads Point data from a WFS and interpolates them into a raster (image) using deegree's inverse distant to
 power implementation. The class expects a confguration file that looks like this:
 
 #URL des WFS, der einen FeatureType mit Punktdaten liefert
 url=http://bfs.lat-lon.de/deegree-wfs/services
 #Name des Properties, das die zu interpolierenden Werte enhält
 z_value={http://www.deegree.org/app}:value
 # Farbtiefe des Ergebnisbildes (sollte nicht geändert werden)
 image-type=32
 # potenz der Entfernung mit der ein Wert bei der Interpolation gewichtet wird
 interpolate-power=2
 # minimale anzahl von Werten, die im Suchradius enthalten sein müssen
 interpolate-min-data=2
 # maximale Anzahl von Werten, die zur Berechung einer Rasterzelle
 # heran gezogen werden
 interpolate-max-data=40
 # Default Werte, wenn für eine Rasterzelle keine Interpolation durchgeführt
 # werden kann
 interpolate-no-value=0
 # Radius der Suchellipse in x-Richtung in Prozent der Breite der Boundingbox
 interpolate-radius-x=30
 # Radius der Suchellipse in y-Richtung in Prozent der Breite der Boundingbox
 interpolate-radius-y=30
 # Wert um die die suchellipse in x-Richtung vergössert wird in  Prozent der
 # Breite der Boundingbox falls nicht genügend Werte enthalten sind
 interpolate-radius-increase-x=5
 # Wert um die die suchellipse in y-Richtung vergössert wird in  Prozent der
 # Breite der Boundingbox falls nicht genügend Werte enthalten sind
 interpolate-radius-increase-y=5
 # Bereich von Werten, die bei der Interpolation ignoriert werden (Fehlwerte)
 interpolate-ignore-range=-99999,-9999
 # Grösse des Buffers um die Bounddingbox (in % der Boundingbox) mit dem Daten
 # vom WFS angefragt werden
 buffer=20
 mindata=10
 # properties file for mapping z_values to colors
 # example:
 # <0=0x000000
 # 0-80=0xedf8b1
 # 80-110=0xc7e9b4
 # 110-140=0x7fcdbb
 # 140-170=0x41b6c4
 # 170-200=0x1d91c0
 # 200-400=0x225ea8
 # 400-600=0xc2c84
 # >600=0x8b008b
 colorMapFile=./color.properties
 # GetFeature request template
 # known wildcards are:
 # $xmin$ $ymin$ $xmax$ $ymax$ (filled with BBOX value of GetMap request)
 # $time$ (TIME value of GetMap request)
 GetFeatureTemplate=./getfeature_template.xml
 # time stamp to be used if no time parameter is set in GetMap request
 defaultTime=2009-11-03T12:30:00
 # native CRS of data requested from WFS
 nativeCRS=EPSG:4326
 
- Version:
 
  - $Revision: 1.1 $, $Date: 2009-05-29 09:30:58 $
 
- Author:
 
  - Andreas Schmitz, last edited by: $Author: poth $
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ID2PInterpolation
public ID2PInterpolation()
perform
public GetMapResult perform(GetMap getMap)
                     throws Exception
- Specified by:
 perform in interface ExternalRasterDataAccess
 
- Returns:
 - image/raster as result to passed 
GetMap request
 - Throws:
 Exception
 
perform
public GetFeatureInfoResult perform(GetFeatureInfo gfi)
- Specified by:
 perform in interface ExternalDataAccess
 
- Returns:
 GetFeatureInfoResult as result to passed GetFeatureInfo request
 
perform
public BufferedImage perform(GetLegendGraphic glg)
- Specified by:
 perform in interface ExternalDataAccess
 
- Returns:
 BufferedImage as result to passed GetLegendGraphic request
 
setConfigurationFile
public void setConfigurationFile(URL url)
                          throws IOException
- Specified by:
 setConfigurationFile in interface ExternalDataAccess
 
- Parameters:
 url - URL containing configuration informations for data access
- Throws:
 IOException
 
                an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org