FDO .NET API Reference Feature Data Objects
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

OSGeo::FDO::Spatial::SpatialGridTransform Class Reference

Inherits OSGeo::FDO::Runtime::Disposable.

Inheritance diagram for OSGeo::FDO::Spatial::SpatialGridTransform:

[legend]
List of all members.

Detailed Description

Class to handle transformations of ordinates between double precision and integers. The integer format models a fine grid.


Public Member Functions

 SpatialGridTransform (System::IntPtr unmanaged, System::Boolean autoDelete)
 Constructs an SpatialGridTransform managed object based on an unmanaged instance of the object
 SpatialGridTransform (OSGeo::FDO::Geometry::IEnvelope *extents, System::Double tolerance)
 Factory method for GridTransformer.
System::Void TransformFromGrid (System::Int64 gridX, System::Int64 gridY, System::Double *coordinateX, System::Double *coordinateY)
 Transform integer ordinates on the grid to floating-point ordinates.
System::Void TransformToGrid (System::Double coordinateX, System::Double coordinateY, System::Int64 *gridX, System::Int64 *gridY)
 Transform floating-point ordinates to integer ordinates on the grid.

Protected Member Functions

System::Void ReleaseUnmanagedObject ()
 DOXYGEN-IGNORE

Constructor & Destructor Documentation

OSGeo::FDO::Spatial::SpatialGridTransform::SpatialGridTransform OSGeo::FDO::Geometry::IEnvelope extents,
System::Double  tolerance
 

Factory method for GridTransformer.

Remarks:
This models a 2D coordinate system on a grid, using 64-bit integers as ordinates. Each unit of integer is equivalent to one unit of resolution in floating point numbers. The unit of resolution is taken to be twice the given tolerance.
Parameters:
extents Input Extents of floating-point XY plane.
tolerance Tolerance of ordinate values.

OSGeo::FDO::Spatial::SpatialGridTransform::SpatialGridTransform System::IntPtr  unmanaged,
System::Boolean  autoDelete
 

Constructs an SpatialGridTransform managed object based on an unmanaged instance of the object

Parameters:
unmanaged Input A Pointer to the unmanaged object.
autoDelete Input Indicates if the constructed object should be automatically deleted once it no longer referenced.

Member Function Documentation

System::Void OSGeo::FDO::Spatial::SpatialGridTransform::ReleaseUnmanagedObject  )  [protected, virtual]
 

DOXYGEN-IGNORE

Reimplemented from OSGeo::FDO::Runtime::Disposable.

System::Void OSGeo::FDO::Spatial::SpatialGridTransform::TransformFromGrid System::Int64  gridX,
System::Int64  gridY,
System::Double *  coordinateX,
System::Double *  coordinateY
 

Transform integer ordinates on the grid to floating-point ordinates.

Parameters:
gridX Input Integer X ordinate.
gridY Input Integer Y ordinate.
coordinateX Output Floating-point X ordinate.
coordinateY Output Floating-point Y ordinate.

System::Void OSGeo::FDO::Spatial::SpatialGridTransform::TransformToGrid System::Double  coordinateX,
System::Double  coordinateY,
System::Int64 *  gridX,
System::Int64 *  gridY
 

Transform floating-point ordinates to integer ordinates on the grid.

Parameters:
coordinateX Input Floating-point X ordinate.
coordinateY Input Floating-point Y ordinate.
gridX Output Integer X ordinate.
gridY Output Integer Y ordinate.

Comments or suggestions? Send us feedback.