GeoTransDataTypes namespace
Declared in: GeoTransformers.h
Enumerates types of I/O packages interpreted by a GeoTransformer.
[C++]
namespace GeoTransDataTypes {
typedef DWORD GeoTrans_DataTypes; // type of I/O package (bits 8-31 are reserved)
DWORD const geoData_Point3D =0x000; // single 3D point type
DWORD const geoData_Point2D =0x001; // single 2D point type
DWORD const geoData_MPoints3D =0x002; // multiple 3D points type
DWORD const geoData_MPoints2D =0x003; // multiple 2D points type
DWORD const geoData_Grid =0x004; // Grid of float Z values
};
using namespace GeoTransDataTypes;
Type Definitions
GeoTrans_DataTypes
Type of I / O package interpreted by a GeoTransformer.
Only the least significant byte defines the structure of the package (bits 8-31 are reserved for geo-interpretation). Both transformation functions test their input and output as explained in their documentation's Remarks section. The dwType member of the GeoTransData structure describes its content type by having the least significant byte matching one of the values described below:
Constants
Following table shows currently defined values for the least significant byte of dwType member of the GeoTransData structure:
Constant |
Value |
Description |
geoData_Point3D |
0x00 |
Package contains a single 3D point. |
geoData_Point2D |
0x01 |
Package contains a single 2D point. |
geoData_MPoints3D |
0x02 |
Package contains an array of 3D points. |
geoData_MPoints2D |
0x03 |
Package contains an array of 2D points sharing same Z value. |
geoData_Grid |
0x04 |
Package contains a grid of float Z values. |
Note: To establish if a package contains an array of 3D / 2D points, simply check if bit 2 is set (dwType & 0x2). Also, if a package does not contain a grid, the number of coordinates provided for individual points can computed as 3 - (dwType & 0x1).
Remarks
Your implementation should remain compatible with later versions of GeoTransCore component, which might introduce new types of packages to GeoTrans_DataTypes.
Requirements
Platform |
32 bit Windows OS |
Environment |
ANSI C / C++ Standard compliant |
Dependency |
kernel32.dll |
Reference |
kernel32.lib |
Include |
windows.h |
Example
For a detailed example using this namespace, please see Custom GeoTransformer VC++ Sample.
Related Topics
Referenced By: GeoTrans_FromGlobalDirection, GeoTrans_ToGlobalDirection, GeoTransData