zjf
2023-03-06 392b76515f40376b6d36f40a114850ef63650384
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
/////////////////////////////////////////////////////////////////////////////// 
// Copyright (C) 2002-2016, Open Design Alliance (the "Alliance"). 
// All rights reserved. 
// 
// This software and its documentation and related materials are owned by 
// the Alliance. The software may only be incorporated into application 
// programs owned by members of the Alliance, subject to a signed 
// Membership Agreement and Supplemental Software License Agreement with the
// Alliance. The structure and organization of this software are the valuable  
// trade secrets of the Alliance and its suppliers. The software is also 
// protected by copyright law and international treaty provisions. Application  
// programs incorporating this software must include the following statement 
// with their copyright notices:
//   
//   This application incorporates Teigha(R) software pursuant to a license 
//   agreement with Open Design Alliance.
//   Teigha(R) Copyright (C) 2002-2016 by Open Design Alliance. 
//   All rights reserved.
//
// By use of this software, its documentation or related materials, you 
// acknowledge and accept the above terms.
///////////////////////////////////////////////////////////////////////////////
 
#ifndef _OD_DB_GEOCOORDINATESYSTEM_
#define _OD_DB_GEOCOORDINATESYSTEM_
 
#include "TD_PackPush.h"
#include "Ge/GeExtents2d.h"
#include "DbDatabase.h"
#include "Ge/GePoint3d.h"
 
class OdDbGeoCoordinateSystemCategory;
class OdDbGeoCoordinateSystem;
class OdDbGeoCoordinateSystemTransformer;
typedef OdSmartPtr<OdDbGeoCoordinateSystemCategory> OdDbGeoCoordinateSystemCategoryPtr;
typedef OdSmartPtr<OdDbGeoCoordinateSystem> OdDbGeoCoordinateSystemPtr;
typedef OdSmartPtr<OdDbGeoCoordinateSystemTransformer> OdDbGeoCoordinateSystemTransformerPtr;
 
struct OdDbGeoDatum
{
  OdString id;
  OdString desc;
};
 
struct OdDbGeoEllipsoid
{
  OdString id;
  OdString desc;
  double   polarRadius; 
  double   eccentricity;
};
 
struct OdDbGeoProjectionParameter
{
  OdString name;
  double   value;
};
/** \details
  This abstract class represents a category which holds string identifiers referring to 
  a group of coordinate reference systems.
 
  <group OdDb_Classes>
*/
class TOOLKIT_EXPORT OdDbGeoCoordinateSystemCategory : public OdRxObject
{
public:
  ODRX_DECLARE_MEMBERS(OdDbGeoCoordinateSystemCategory);
  
  /** \details
    Default constructor.
  */
  OdDbGeoCoordinateSystemCategory();
  /** \details
    Virtual destructor.
  */
  virtual ~OdDbGeoCoordinateSystemCategory();
 
  /** \details
    Returns the category's ID.
    
    \param categoryId [in/out] Category ID.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  virtual OdResult getId(OdString& categoryId) const = 0;
  
  /** \details
    Returns the number of coordinate systems that belong to this category.
    
    \param num [in/out] Number of coordinate systems.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  virtual OdResult getNumOfCoordinateSystem(int& num) const = 0;
  
  /** \details
    Returns the coordinate system at the specified index.
    
    \param index [in] Index.
    \param pCoordSys [in/out] Pointer to an OdDbGeoCoordinateSystem object.
        
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  virtual OdResult getCoordinateSystemAt(int index, OdDbGeoCoordinateSystemPtr& pCoordSys) const = 0;
  
  /** \details
    Creates and returns all coordinate system categories.
    
    \param allCategories [in/out] Array of pointers to returned categories.
        
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  static  OdResult createAll(OdArray<OdDbGeoCoordinateSystemCategoryPtr>& allCategories);
};
 
/** \details
  This abstract class represents a coordinate reference system (CRS) definition.
 
  <group OdDb_Classes>
*/
class TOOLKIT_EXPORT OdDbGeoCoordinateSystem : public OdRxObject
{
public:
  ODRX_DECLARE_MEMBERS(OdDbGeoCoordinateSystem);
 
  /** \details
    This enumeration indicates the type of a coordinate reference system.
  */
  enum Type
  {
    kTypeUnknown = 0,     // The coordinate system is not set.
    kTypeArbitrary = 1,   // The coordinate system is arbitrary.
    kTypeGeographic = 2,  // The coordinate system is geographic.
    kTypeProjected = 3    // The coordinate system is projected.
  };
 
  /** \details
    This enumeration represents the coordinate reference system projection method types.
  */
  enum ProjectionCode
  {
    kProjectionCodeUnknown     = 0,     // Unknown projection code.
    kProjectionCodeAlber       = 4,     // Albers equal-area conic projection.
    kProjectionCodeAzede       = 59,    // Azimuthal equidistant projection (elevated ellipsoid).
    kProjectionCodeAzmea       = 11,    // Lambert azimuthal equal-area projection.
    kProjectionCodeAzmed       = 7,     // Lambert azimuthal equidistant projection.
    kProjectionCodeBipolar     = 31,    // Bipolar oblique conformal conic projection.
    kProjectionCodeBonne       = 24,    // Bonne Pseudo Conical projection.
    kProjectionCodeCassini     = 22,    // Cassini projection.
    kProjectionCodeEckert4     = 25,    // Eckert pseudocylindrical projection (number IV).
    kProjectionCodeEckert6     = 26,    // Eckert pseudocylindrical projection (number VI).
    kProjectionCodeEdcnc       = 12,    // Equidistant conic projection (conic projection).
    kProjectionCodeEdcyl       = 20,    // Equidistant cylindrical projection (spherical only).
    kProjectionCodeGaussK      = 46,    // Gauss-Kruger: Transverse Mercator projection without scale reduction parameter.
    kProjectionCodeGnomonic    = 19,    // Gnomonic projection.
    kProjectionCodeGoode       = 28,    // Goode homolosine projection.
    kProjectionCodeHom1uv      = 1281,  // Unrectified Hotine Oblique Mercator Projection. Single point form.
    kProjectionCodeHom1xy      = 1282,  // Rectified Hotine Oblique Mercator Projection. Single poin form.
    kProjectionCodeHom2uv      = 1283,  // Unrectified Hotine Oblique Mercator Projection. Two point form.
    kProjectionCodeHom2xy      = 1284,  // Rectified Hotine Oblique Mercator Projection. Two point form.
    kProjectionCodeKrovak      = 47,    // Original Krovak projection. 
    kProjectionCodeKrvk95      = 51,    // Krovak projection includes 1995 adjustment.
    kProjectionCodeLL          = 1,     // Produces (processes) latitude and longitude.  
    kProjectionCodeLm1sp       = 36,    // Single standard parallel variation of the Lambert Conformal Conic projection.
    kProjectionCodeLm2sp       = 37,    // Double standard parallel variation of the Lambert Conformal Conic projection.
    kProjectionCodeLmblg       = 38,    // Belgian variation of the Lambert Conformal Conic projection.
    kProjectionCodeLmtan       = 8,     // Lambert Tangential Conformal Conic projection.
    kProjectionCodeMiller      = 13,    // Miller cylindrical projection.
    kProjectionCodeMndotl      = 41,    // Minnesota DOT variation of the Lambert Conformal Conic projection. 
    kProjectionCodeMndott      = 42,    // Minnesota DOT variation of the Transverse Mercator projection.
    kProjectionCodeModpc       = 10,    // Lallemand IMW Modified Polyconic projection.
    kProjectionCodeMollweid    = 27,    // Mollweide projection.
    kProjectionCodeMrcat       = 6,     // Mercator Cylindrical projection. 
    kProjectionCodeMrcatK      = 49,    // Standard Mercator projection with a scale reduction factor instead of a standard parallel.
    kProjectionCodeMstero      = 15,    // Modified Stereographic projection.
    kProjectionCodeNeacyl      = 29,    // Normal aspect. Equal-area Cylindrical projection.
    kProjectionCodeNerth       = 55,    // Non-Earth projection.  
    kProjectionCodeNzealand    = 16,    // New Zealand National Grid.
    kProjectionCodeOblqM       = 5,     // Oblique Mercator projection.
    kProjectionCodeObqcyl      = 56,    // Oblique Cylindrical projection. 
    kProjectionCodeOrtho       = 18,    // Orthographic projection.
    kProjectionCodeOstn02      = 60,    // Transverse Mercator projection with the OSTN02 grid shift tacked on.
    kProjectionCodeOstn97      = 58,    // Transverse Mercator projection with the OSTN97 grid shift tacked on.
    kProjectionCodeOstro       = 34,    // Oblique Stereographic projection.
    kProjectionCodePlycn       = 9,     // Hassler American Polyconic projection.
    kProjectionCodePstro       = 33,    // Polar Stereographic projection.
    kProjectionCodePstrosl     = 53,    // Polar Stereographic projection with standard latitude.
    kProjectionCodeRskew       = 1285,  // Hotine Oblique Mercator (variant B) projection.
    kProjectionCodeRskewc      = 1286,  // Rectified Skew Orthomorphic projection, false origin and azimuth at center.
    kProjectionCodeRskewo      = 1287,  // Rectified Skew Orthomorphic projection.
    kProjectionCodeRobinson    = 23,    // Robinson Cylindrical projection.
    kProjectionCodeSinus       = 17,    // Sinusoidal projection.
    kProjectionCodeSotrm       = 43,    // Transverse Mercator south oriented projection.
    kProjectionCodeSstro       = 35,    // Synder's Oblique Stereographic projection.
    kProjectionCodeSwiss       = 32,    // Swiss projection.
    kProjectionCodeSys34       = 57,    // Combination of Transverse Mercator projection and a polynomial expansion used in Denmark.
    kProjectionCodeSys34_99    = 61,    // Combination of Transverse Mercator projection and a polynomial expansion used in Denmark. Polynomials are of the 1999 vintage.
    kProjectionCodeTeacyl      = 30,    // Transverse aspect. Equal-area Cylindrical projection.
    kProjectionCodeTm          = 3,     // Gauss-Kruger or Transverse Mercator Projection.
    kProjectionCodeTrmeraf     = 54,    // Transverse Mercator projection with affine post-processor.  
    kProjectionCodeTrmrkrg     = 62,    // Transverse Mercator projection using Kruger formulation.  
    kProjectionCodeTrmrs       = 45,    // Transverse Mercator projection per J. P. Snyder.
    kProjectionCodeVdgrntn     = 21,    // Van der Grinten projection.
    kProjectionCodeWccsl       = 39,    // Wisconsin County Coordinate System variation; Lambert Conformal Conic projection.
    kProjectionCodeWccst       = 40,    // Wisconsin County Coordinate System variation; Transverse Mercator projection.
    kProjectionCodeUtm         = 44,    // The UTM direct variation of the Transverse Mercator projection.
    kProjectionCodeWinkl       = 63,    // Winkel Tripel projection.
    kProjectionCodeNrthsrt     = 64,    // North with scale and rotation projection. 
    kProjectionCodeLmbrtaf     = 65,    // Lambert Conformal Conic projection with affine post-processor.
    kProjectionCodeSys34_01    = 66,    // Combination of Transverse Mercator projection and polynomial expansion used in Denmark.
    kProjectionCodeEdcylE      = 67,    // Equidistant Cylindrical projection, Ellipsoidal or Spherical.
    kProjectionCodePlateCarree = 68,    // Plate Carré projection.
    kProjectionCodePvMercator  = 69,    // Popular Visualisation Pseudo Mercator projection (Google Earth).
    kProjectionCodeLmMich      = 70,    // Lambert Conic Conformal (2SP Michigan) projection.
  };
  /** \details
    This enumeration represents the linear or angular unit.
  */
  enum Unit
  {
    kUnitUnknown = 0,
    kUnitMeter = 1,
    kUnitFoot = 2,
    kUnitInch = 3,
    kUnitIFoot = 4,
    kUnitClarkeFoot = 5,
    kUnitIInch = 6,
    kUnitCentimeter = 7,
    kUnitKilometer = 8,
    kUnitYard = 9,
    kUnitSearsYard = 10,
    kUnitMile = 11,
    kUnitIYard = 12,
    kUnitIMile = 13,
    kUnitKnot = 14,
    kUnitNautM = 15,
    kUnitLat66 = 16,
    kUnitLat83 = 17,
    kUnitDecimeter = 18,
    kUnitMillimeter = 19,
    kUnitDekameter = 20,
    kUnitHectometer = 21,
    kUnitGermanMeter = 22,
    kUnitCaGrid = 23,
    kUnitClarkeChain = 24,
    kUnitGunterChain = 25,
    kUnitBenoitChain = 26,
    kUnitSearsChain = 27,
    kUnitClarkeLink = 28,
    kUnitGunterLink = 29,
    kUnitBenoitLink = 30,
    kUnitSearsLink = 31,
    kUnitRod = 32,
    kUnitPerch = 33,
    kUnitPole = 34,
    kUnitFurlong = 35,
    kUnitRood = 36,
    kUnitCapeFoot = 37,
    kUnitBrealey = 38,
    kUnitSearsFoot = 39,
    kUnitGoldCoastFoot = 40,
    kUnitMicroInch = 41,
    kUnitIndianYard = 42,
    kUnitIndianFoot = 43,
    kUnitIndianFt37 = 44,
    kUnitIndianFt62 = 45,
    kUnitIndianFt75 = 46,
    kUnitIndianYd37 = 47,
    kUnitDecameter = 48,
    kUnitInternationalChain = 49,
    kUnitInternationalLink = 50,
    kUnitBrFootTrunc = 51,
    kUnitBrChainTrunc = 52,
    kUnitBrLinkTrunc = 53,
    kUnitDegree = 1001,
    kUnitGrad = 1002,
    kUnitGrade = 1003,
    kUnitMapInfo = 1004,
    kUnitMil = 1005,
    kUnitMinute = 1006,
    kUnitRadian = 1007,
    kUnitSecond = 1008,
    kUnitDecisec = 1009,
    kUnitCentisec = 1010,
    kUnitMillisec = 1011,
  };
  /** \details
    Default constructor.
  */
  OdDbGeoCoordinateSystem();
  /** \details
    Virtual destructor.
  */
  virtual ~OdDbGeoCoordinateSystem();
  /** \details
    Returns the coordinate reference system's identifier string.
    
    \param coordSysId [out] Coordinate reference system's identifier.
    
    \returns Returns eOK if successful, or an appropriate error code if not. 
  */
  virtual OdResult getId(OdString& coordSysId) const = 0;
  /** \details
    Returns this CRS's EPSG code.
    
    \param epsgCode [out] EPSG code.
    
    \returns Returns eOK if successful, or an appropriate error code if not. 
  */
  virtual OdResult getEpsgCode(int& epsgCode) const = 0;
  /** \details
    Returns this CRS's type.
    
    \param type [out] CRS's type.
    
    \returns Returns eOK if successful, or an appropriate error code if not. 
  */
  virtual OdResult getType(OdDbGeoCoordinateSystem::Type& type) const = 0;
  /** \details
    Returns the description of this CRS.
    
    \param coordSysDesc [out] CRS's description.
    
    \returns Returns eOK if successful, or an appropriate error code if not. 
  */
  virtual OdResult getDescription(OdString& coordSysDesc) const = 0;
  /** \details
    Returns the unit of the coordinate system axis of this CRS.
    
    \param unit [out] Unit value.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
    
    \remarks
    All axis contains the same unit.
  */
  virtual OdResult getUnit(OdDb::UnitsValue& unit) const = 0;
  /** \details
    Returns the unit of the coordinate system axis of this CRS.
    
    \param unit [out] Unit value.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
    
    \remarks
    Each axis contains the same unit.
  */
  virtual OdResult getUnit(OdDbGeoCoordinateSystem::Unit& unit) const = 0;
  /** \details
    Returns the factor that is used for multiplying the length units of this CRS 
    for calculating the equivalent in meters.
    
    \param unitScale [out] Scale factor.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  virtual OdResult getUnitScale(double& unitScale) const = 0;
  /** \details
    Returns the projection method of this CRS.
    
    \param prjCode [out] Projection method.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  virtual OdResult getProjectionCode(OdDbGeoCoordinateSystem::ProjectionCode& prjCode) const = 0;
  /** \details
    Returns the projection parameters of this CRS.
    
    \param prjParams [out] Projection parameters.
    \param includeSpecialParams [in] Boolean flag that indicates if the special projection parameters should be counted.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  virtual OdResult getProjectionParameters(OdArray<OdDbGeoProjectionParameter>& prjParams,
    bool includeSpecialParams) const = 0;
  /** \details
    Returns the datum of this CRS.
    
    \param datum [in/out] Datum value.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  virtual OdResult getDatum(OdDbGeoDatum& datum) const = 0;
  /** \details
    Returns the ellipsoid related to this CRS.
    
    \param ellipsoid [out] Ellipsoid.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
    
    \remarks
    If the CRS contains an ellipsoid, it will not be geodetic and the datum reference will not have a value.
  */
  virtual OdResult getEllipsoid(OdDbGeoEllipsoid& ellipsoid) const = 0;
  /** \details
    Returns the projection method parameter offset easting of this CRS.
    
    \param offsetVec [in/out] Offset vector.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  virtual OdResult getOffset(OdGeVector2d& offsetVec) const = 0;
  /** \details
    Returns the cartesian extents of this CRS.
    
    \param exts [out] Extents.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  virtual OdResult getCartesianExtents(OdGeExtents2d& exts) const = 0;
  /** \details
    Returns the geodetic extents of this CRS, the range of longitude and latitude.
    
    \param exts [out] Extents.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  virtual OdResult getGeodeticExtents(OdGeExtents2d& exts) const = 0;
  /** \details
    Returns the string in XML format that represents this CRS.
    
    \param strXml [out] CRS's representation in XML format.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  virtual OdResult getXmlRepresentation(OdString& strXml) const = 0;
  /** \details
    Returns the string in WKT format that represents this CRS.
    
    \param strWkt [out] CRS's representation in WKT format.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  virtual OdResult getWktRepresentation(OdString& strWkt) const = 0;
  /** \details
    Creates and returns a new OdDbGeoCoordinateSystem object from the current virtual catalog.
    
    \param coordSysIdOrFullDef [in] ID, WKT or XML representation of the CRS definition to load.
    \param pCoordSys [out] New CRS.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  static OdResult create(const OdString& coordSysIdOrFullDef, 
    OdDbGeoCoordinateSystemPtr& pCoordSys);
  /** \details
    Creates and returns a new OdDbGeoCoordinateSystem object for every existing, 
    persistent CRS definition from the current virtual catalog when the passed in 
    geodetic point is within the geodetic extents of the CRS.
    
    \param geoPt [in] Geodetic point.
    \param allCoordSys [out] Array of pointers to the new CRS objects.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
 
    \remarks
    This method is not supported yet.
  */
  static OdResult createAll(const OdGePoint3d& geoPt, OdArray<OdDbGeoCoordinateSystemPtr>& allCoordSys);
  /** \details
    Creates and returns a new OdDbGeoCoordinateSystem object for every existing, 
    persistent CRS definition from the specified catalog.
    
    \param allCoordSys [out] Array of pointers to the new CRS objects.
    \param pCategory [in] Category.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
    
    \remarks
    If pCategory is NULL, all existing and persistent CRS definitions are returned.
  */
  static OdResult createAll(OdArray<OdDbGeoCoordinateSystemPtr>& allCoordSys,
    const OdDbGeoCoordinateSystemCategory* pCategory = NULL);
};
 
/** \details
  This abstract class represents a transformer object which is used to transform points from the source 
  CRS to the target CRS.
 
  <group OdDb_Classes>
*/
class TOOLKIT_EXPORT OdDbGeoCoordinateSystemTransformer : public OdRxObject
{
public:
  ODRX_DECLARE_MEMBERS(OdDbGeoCoordinateSystemTransformer);
  /** \details
    Default constructor.
  */
  OdDbGeoCoordinateSystemTransformer();
  /** \details
    Virtual destructor.
  */
  virtual ~OdDbGeoCoordinateSystemTransformer();
  /** \details
    Returns the source CRS's ID.
    
    \param sourceCoordSysId [out] Source CRS's ID.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  virtual OdResult getSourceCoordinateSystemId(OdString& sourceCoordSysId) const = 0;
  /** \details
    Returns the target CRS's ID.
    
    \param targetCoordSysId [out] Target CRS's ID.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  virtual OdResult getTargetCoordinateSystemId(OdString& targetCoordSysId) const = 0;
  /** \details
    Transforms the point from the source CRS to the target CRS.
    
    \param pointIn [in] Point in the source CRS.
    \param pointOut [out] Point in the target CRS.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  virtual OdResult transformPoint(const OdGePoint3d& pointIn, OdGePoint3d& pointOut) const = 0;
  /** \details
    Transforms the array of points from the source CRS to the target CRS.
    
    \param pointsIn [in] Point array in the source CRS.
    \param pointsOut [out] Point array in the target CRS.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  virtual OdResult transformPoints(const OdGePoint3dArray& pointsIn, OdGePoint3dArray& pointsOut) const = 0;
  /** \details
    Transforms the point from the source CRS to the target CRS.
    
    \param sourceCoordSysId [in] Source CRS's ID.
    \param targetCoordSysId [in] Target CRS's ID.
    \param pointIn [in] Point in the source CRS.
    \param pointOut [out] Point in the target CRS.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  static OdResult transformPoint(const OdString& sourceCoordSysId,
    const OdString& targetCoordSysId,
    const OdGePoint3d& pointIn,
    OdGePoint3d& pointOut);
 
  /** \details
    Transforms the array of points from the source CRS to the target CRS.
    
    \param sourceCoordSysId [in] Source CRS's ID.
    \param targetCoordSysId [in] Target CRS's ID.
    \param pointsIn [in] Point array in the source CRS.
    \param pointsOut [out] Point array in the target CRS.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  static OdResult transformPoints(const OdString& sourceCoordSysId,
    const OdString& targetCoordSysId,
    const OdGePoint3dArray& pointsIn,
    OdGePoint3dArray& pointsOut);
  /** \details
    Creates a new OdDbGeoCoordinateSystemTransformer object from the source CRS and target CRS.
    
    \param sourceCoordSysId [in] Source CRS's ID.
    \param targetCoordSysId [in] Target CRS's ID.
    \param pCoordSysTransformer [out] New OdDbGeoCoordinateSystemTransformer object.
    
    \returns Returns eOK if successful, or an appropriate error code if not.
  */
  static OdResult create(const OdString& sourceCoordSysId, 
    const OdString& targetCoordSysId,
    OdDbGeoCoordinateSystemTransformerPtr& pCoordSysTransformer);
};
 
#include "TD_PackPop.h"
 
#endif //_OD_DB_GEOCOORDINATESYSTEM_