02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Coordinate Systems<br />

class uses the methods of the inherited Matrix4 class. Forward and inverse conversions<br />

are possible. The LocalTransform class is defined as:<br />

public class LocalTransform<br />

{<br />

public LocalTransform ();<br />

public Matrix4 Matrix { get; set; }<br />

public string Name { get; set; }<br />

public IUnit SurfaceUnit { get; set; }<br />

public IUnit VerticalUnit { get; set; }<br />

}<br />

public ICoordsysConverter ForwardConverter(PrePostUnitConversions<br />

prePost);<br />

public ICoordsysConverter InverseConverter(PrePostUnitConversions<br />

prePost);<br />

The following example shows the transformation of a point from X, Y to I, J. It used three<br />

corner points of a grid or survey expressed in X, Y and I, J representations to create a<br />

matrix in the LocalTransform object. From this, forward and inverse converters are<br />

created and points may be given to them for conversion to the other domain.<br />

// Create the local transform object<br />

LocalTransform localT = new LocalTransform();<br />

// Initialize the three X.Y corner points for our data.<br />

Point2 lowerLeftXY = new Point2(100000.0, 100000.0);<br />

Point2 upperLeftXY = new Point2(100000.0, 200000.0);<br />

Point2 upperRightXY = new Point2(200000.0, 200000.0);<br />

// Initialize the three I,J corner points for our data.<br />

Point2 lowerLeftIJ = new Point2(350.0, 425.0);<br />

Point2 upperLeftIJ = new Point2(350.0, 585.0);<br />

Point2 upperRightIJ = new Point2(600.0, 585.0);<br />

4-222 <strong>Ocean</strong> Application Development Framework 2008.1<br />

<strong>Schlumberger</strong> Private

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!