02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Get the coordinate system service.<br />

ICoordSysService cs = CoreSystem.GetService();<br />

Coordinate Systems<br />

// Get source and target coordinate systems by name<br />

// These names would normally be provided by some UI tool. Here we<br />

// hardcode them for simplicity.<br />

CoordSys csSource = cs.GetCoordSys("MENTOR:UTM84-11N");<br />

CoordSys csTarget = cs.GetCoordSys("MENTOR:UTM84-12N");<br />

// Position data as array of locations<br />

// newLocs will contain converted Positions<br />

Point3 [] origLocs = new Point3[10];<br />

Point3 [] newLocs = new Point3[origLocs.Length];<br />

for (int i=0; i

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

Saved successfully!

Ooh no, something went wrong!