org.deegree_impl.services.wts
Class Splitter

java.lang.Object
  extended byorg.deegree_impl.services.wts.Splitter
All Implemented Interfaces:
OGCWebServiceClient

class Splitter
extends java.lang.Object
implements OGCWebServiceClient

class for calculating and splitting a views footprint into boxes and/or stripes


Field Summary
private  double heightOverGround
           
private  double observerHeight
           
private  WTSGetViewRequest request
           
private  ViewPoint vp
           
 
Constructor Summary
(package private) Splitter(WTSGetViewRequest request, ViewPoint vp)
          Creates a new instance of MakeStripes
 
Method Summary
private  double calcDist(double height, double dir)
           
private  Point3d[] calcFootprint(double height, double b1, double b2)
          calculates footprint
private  void handleWCSResponse(WCSGetCoverageResponse response)
           
(package private)  GM_Surface[] makeBoxes(GM_Surface stripe, int count)
          tiles a stripe into count boxes
 GM_Surface[] makeStripes(int count)
          tiles the footprint trapez into count pralell stripes with an identical view angle from the viewers position
 void write(java.lang.Object result)
          will be called by to WCService with the response to determine the observers height above ground
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vp

private ViewPoint vp

request

private WTSGetViewRequest request

heightOverGround

private double heightOverGround

observerHeight

private double observerHeight
Constructor Detail

Splitter

Splitter(WTSGetViewRequest request,
         ViewPoint vp)
   throws java.lang.Exception
Creates a new instance of MakeStripes

Method Detail

write

public void write(java.lang.Object result)
will be called by to WCService with the response to determine the observers height above ground

Specified by:
write in interface OGCWebServiceClient

handleWCSResponse

private void handleWCSResponse(WCSGetCoverageResponse response)
                        throws java.lang.Exception
Parameters:
response -
Throws:
java.lang.Exception

makeStripes

public GM_Surface[] makeStripes(int count)
                         throws InvalidArcException,
                                GM_Exception,
                                java.lang.Exception
tiles the footprint trapez into count pralell stripes with an identical view angle from the viewers position

Throws:
InvalidArcException
GM_Exception
java.lang.Exception

calcFootprint

private Point3d[] calcFootprint(double height,
                                double b1,
                                double b2)
calculates footprint


calcDist

private double calcDist(double height,
                        double dir)
Parameters:
height -
dir -
Returns:

makeBoxes

GM_Surface[] makeBoxes(GM_Surface stripe,
                       int count)
                 throws GM_Exception
tiles a stripe into count boxes

Throws:
GM_Exception