~ubuntu-branches/debian/sid/gdal/sid

« back to all changes in this revision

Viewing changes to swig/csharp/ogr/osr_wrap.cpp

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-05-07 15:04:42 UTC
  • mfrom: (5.5.16 experimental)
  • Revision ID: package-import@ubuntu.com-20120507150442-2eks97loeh6rq005
Tags: 1.9.0-1
* Ready for sid, starting transition.
* All symfiles updated to latest builds.
* Added dh_numpy call in debian/rules to depend on numpy ABI.
* Policy bumped to 3.9.3, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* ----------------------------------------------------------------------------
2
2
 * This file was automatically generated by SWIG (http://www.swig.org).
3
 
 * Version 1.3.39
 
3
 * Version 1.3.40
4
4
 * 
5
5
 * This file is not intended to be easily readable and contains a number of 
6
6
 * coding conventions designed to improve portability and efficiency. Do not make
201
201
static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = {
202
202
  { SWIG_CSharpArgumentException, NULL },
203
203
  { SWIG_CSharpArgumentNullException, NULL },
204
 
  { SWIG_CSharpArgumentOutOfRangeException, NULL },
 
204
  { SWIG_CSharpArgumentOutOfRangeException, NULL }
205
205
};
206
206
 
207
207
static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) {
336
336
#include <stdexcept>
337
337
 
338
338
 
 
339
typedef char retStringAndCPLFree;
 
340
 
 
341
 
339
342
#include <iostream>
340
343
using namespace std;
341
344
 
353
356
typedef void OSRCoordinateTransformationShadow;
354
357
#endif
355
358
 
356
 
typedef char retStringAndCPLFree;
357
 
 
358
 
 
359
359
 
360
360
void VeryQuiteErrorHandler(CPLErr eclass, int code, const char *msg ) {
361
361
  /* If the error class is CE_Fatal, we want to have a message issued
376
376
}
377
377
 
378
378
 
379
 
    typedef char retStringAndCPLFree;
380
 
 
381
 
 
382
379
    void StringListDestroy(void *buffer_ptr) {
383
380
       CSLDestroy((char**)buffer_ptr);
384
381
    }
434
431
      OSRDestroySpatialReference( self );
435
432
    }
436
433
  }
437
 
SWIGINTERN char *OSRSpatialReferenceShadow___str__(OSRSpatialReferenceShadow *self){
 
434
SWIGINTERN retStringAndCPLFree *OSRSpatialReferenceShadow___str__(OSRSpatialReferenceShadow *self){
438
435
    char *buf = 0;
439
436
    OSRExportToPrettyWkt( self, &buf, 0 );
440
437
    return buf;
445
442
SWIGINTERN int OSRSpatialReferenceShadow_IsSameGeogCS(OSRSpatialReferenceShadow *self,OSRSpatialReferenceShadow *rhs){
446
443
    return OSRIsSameGeogCS( self, rhs );
447
444
  }
 
445
SWIGINTERN int OSRSpatialReferenceShadow_IsSameVertCS(OSRSpatialReferenceShadow *self,OSRSpatialReferenceShadow *rhs){
 
446
    return OSRIsSameVertCS( self, rhs );
 
447
  }
448
448
SWIGINTERN int OSRSpatialReferenceShadow_IsGeographic(OSRSpatialReferenceShadow *self){
449
449
    return OSRIsGeographic(self);
450
450
  }
451
451
SWIGINTERN int OSRSpatialReferenceShadow_IsProjected(OSRSpatialReferenceShadow *self){
452
452
    return OSRIsProjected(self);
453
453
  }
 
454
SWIGINTERN int OSRSpatialReferenceShadow_IsCompound(OSRSpatialReferenceShadow *self){
 
455
    return OSRIsCompound(self);
 
456
  }
 
457
SWIGINTERN int OSRSpatialReferenceShadow_IsGeocentric(OSRSpatialReferenceShadow *self){
 
458
    return OSRIsGeocentric(self);
 
459
  }
454
460
SWIGINTERN int OSRSpatialReferenceShadow_IsLocal(OSRSpatialReferenceShadow *self){
455
461
    return OSRIsLocal(self);
456
462
  }
 
463
SWIGINTERN int OSRSpatialReferenceShadow_IsVertical(OSRSpatialReferenceShadow *self){
 
464
    return OSRIsVertical(self);
 
465
  }
457
466
SWIGINTERN int OSRSpatialReferenceShadow_EPSGTreatsAsLatLong(OSRSpatialReferenceShadow *self){
458
467
    return OSREPSGTreatsAsLatLong(self);
459
468
  }
473
482
    // Return code ignored.
474
483
    return OSRGetAngularUnits( self, 0 );
475
484
  }
 
485
SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetTargetLinearUnits(OSRSpatialReferenceShadow *self,char const *target,char const *name,double to_meters){
 
486
    return OSRSetTargetLinearUnits( self, target, name, to_meters );
 
487
  }
476
488
SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetLinearUnits(OSRSpatialReferenceShadow *self,char const *name,double to_meters){
477
489
    return OSRSetLinearUnits( self, name, to_meters );
478
490
  }
506
518
SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetUTM(OSRSpatialReferenceShadow *self,int zone,int north=1){
507
519
    return OSRSetUTM( self, zone, north );
508
520
  }
 
521
SWIGINTERN int OSRSpatialReferenceShadow_GetUTMZone(OSRSpatialReferenceShadow *self){
 
522
    // Note: we will return south zones as negative since it is 
 
523
    // hard to return two values as the C API does. 
 
524
    int bNorth = FALSE;
 
525
    int nZone = OSRGetUTMZone( self, &bNorth );
 
526
    if( !bNorth )
 
527
        nZone = -1 * ABS(nZone);
 
528
    return nZone;
 
529
  }
509
530
SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetStatePlane(OSRSpatialReferenceShadow *self,int zone,int is_nad83=1,char const *unitsname="",double units=0.0){
510
531
    return OSRSetStatePlaneWithUnits( self, zone, is_nad83, unitsname, units );
511
532
  }
529
550
    // Return code ignored.
530
551
    return OSRGetNormProjParm( self, name, default_val, 0 );
531
552
  }
 
553
SWIGINTERN double OSRSpatialReferenceShadow_GetSemiMajor(OSRSpatialReferenceShadow *self){
 
554
    // Return code ignored.
 
555
    return OSRGetSemiMajor( self, 0 );
 
556
  }
 
557
SWIGINTERN double OSRSpatialReferenceShadow_GetSemiMinor(OSRSpatialReferenceShadow *self){
 
558
    // Return code ignored.
 
559
    return OSRGetSemiMinor( self, 0 );
 
560
  }
 
561
SWIGINTERN double OSRSpatialReferenceShadow_GetInvFlattening(OSRSpatialReferenceShadow *self){
 
562
    // Return code ignored.
 
563
    return OSRGetInvFlattening( self, 0 );
 
564
  }
532
565
SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetACEA(OSRSpatialReferenceShadow *self,double stdp1,double stdp2,double clat,double clong,double fe,double fn){
533
566
    return OSRSetACEA( self, stdp1, stdp2, clat, clong, 
534
567
                       fe, fn );
576
609
SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetGH(OSRSpatialReferenceShadow *self,double cm,double fe,double fn){
577
610
    return OSRSetGH( self, cm, fe, fn );
578
611
  }
 
612
SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetIGH(OSRSpatialReferenceShadow *self){
 
613
    return OSRSetIGH( self );
 
614
  }
579
615
SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetGEOS(OSRSpatialReferenceShadow *self,double cm,double satelliteheight,double fe,double fn){
580
616
    return OSRSetGEOS( self, cm, satelliteheight,
581
617
                       fe, fn );
705
741
SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetProjCS(OSRSpatialReferenceShadow *self,char const *name="unnamed"){
706
742
    return OSRSetProjCS( self, name );
707
743
  }
 
744
SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetGeocCS(OSRSpatialReferenceShadow *self,char const *name="unnamed"){
 
745
    return OSRSetGeocCS( self, name );
 
746
  }
 
747
SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetVertCS(OSRSpatialReferenceShadow *self,char const *VertCSName="unnamed",char const *VertDatumName="unnamed",int VertDatumType=0){
 
748
    return OSRSetVertCS( self, VertCSName, VertDatumName, VertDatumType );
 
749
  }
 
750
SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetCompoundCS(OSRSpatialReferenceShadow *self,char const *name,OSRSpatialReferenceShadow *horizcs,OSRSpatialReferenceShadow *vertcs){
 
751
    return OSRSetCompoundCS( self, name, horizcs, vertcs );
 
752
  }
708
753
SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromWkt(OSRSpatialReferenceShadow *self,char **ppszInput){
709
754
    return OSRImportFromWkt( self, ppszInput );
710
755
  }
732
777
SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromXML(OSRSpatialReferenceShadow *self,char const *xmlString){
733
778
    return OSRImportFromXML( self, xmlString );
734
779
  }
 
780
SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromERM(OSRSpatialReferenceShadow *self,char const *proj,char const *datum,char const *units){
 
781
    return OSRImportFromERM( self, proj, datum, units );
 
782
  }
735
783
SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromMICoordSys(OSRSpatialReferenceShadow *self,char const *pszCoordSys){
736
784
    return OSRImportFromMICoordSys( self, pszCoordSys );
737
785
  }
788
836
    OCTDestroyCoordinateTransformation( self );
789
837
  }
790
838
SWIGINTERN void OSRCoordinateTransformationShadow_TransformPoint__SWIG_0(OSRCoordinateTransformationShadow *self,double inout[3]){
 
839
    if (self == NULL)
 
840
        return;
791
841
    OCTTransform( self, 1, &inout[0], &inout[1], &inout[2] );
792
842
  }
793
843
SWIGINTERN void OSRCoordinateTransformationShadow_TransformPoint__SWIG_1(OSRCoordinateTransformationShadow *self,double argout[3],double x,double y,double z=0.0){
 
844
    if (self == NULL)
 
845
        return;
794
846
    argout[0] = x;
795
847
    argout[1] = y;
796
848
    argout[2] = z;
797
849
    OCTTransform( self, 1, &argout[0], &argout[1], &argout[2] );
798
850
  }
799
851
SWIGINTERN void OSRCoordinateTransformationShadow_TransformPoints(OSRCoordinateTransformationShadow *self,int nCount,double *x,double *y,double *z){
 
852
    if (self == NULL)
 
853
        return;
800
854
    OCTTransform( self, nCount, x, y, z );
801
855
  }
802
856
 
1155
1209
SWIGEXPORT char * SWIGSTDCALL CSharp_SpatialReference___str__(void * jarg1) {
1156
1210
  char * jresult ;
1157
1211
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
1158
 
  char *result = 0 ;
 
1212
  retStringAndCPLFree *result = 0 ;
1159
1213
  
1160
1214
  arg1 = (OSRSpatialReferenceShadow *)jarg1; 
1161
1215
  {
1162
1216
    CPLErrorReset();
1163
 
    result = (char *)OSRSpatialReferenceShadow___str__(arg1);
 
1217
    result = (retStringAndCPLFree *)OSRSpatialReferenceShadow___str__(arg1);
1164
1218
    CPLErr eclass = CPLGetLastErrorType();
1165
1219
    if ( eclass == CE_Failure || eclass == CE_Fatal ) {
1166
1220
      SWIG_CSharpException(SWIG_RuntimeError, CPLGetLastErrorMsg());
1180
1234
    
1181
1235
    
1182
1236
  }
1183
 
  jresult = SWIG_csharp_string_callback((const char *)result); 
1184
 
  delete [] result;
 
1237
  
 
1238
  /* %typemap(out) (retStringAndCPLFree*) */
 
1239
  if(result)
 
1240
  {
 
1241
    jresult = SWIG_csharp_string_callback((const char *)result);
 
1242
    CPLFree(result);
 
1243
  }
 
1244
  else
 
1245
  {
 
1246
    jresult = NULL;
 
1247
  }
 
1248
  
1185
1249
  return jresult;
1186
1250
}
1187
1251
 
1270
1334
}
1271
1335
 
1272
1336
 
 
1337
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_IsSameVertCS(void * jarg1, void * jarg2) {
 
1338
  int jresult ;
 
1339
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
 
1340
  OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ;
 
1341
  int result;
 
1342
  
 
1343
  arg1 = (OSRSpatialReferenceShadow *)jarg1; 
 
1344
  arg2 = (OSRSpatialReferenceShadow *)jarg2; 
 
1345
  {
 
1346
    if (!arg2) {
 
1347
      {
 
1348
        SWIG_CSharpException(SWIG_ValueError, "Received a NULL pointer."); return 0; 
 
1349
      };
 
1350
    }
 
1351
  }
 
1352
  {
 
1353
    CPLErrorReset();
 
1354
    result = (int)OSRSpatialReferenceShadow_IsSameVertCS(arg1,arg2);
 
1355
    CPLErr eclass = CPLGetLastErrorType();
 
1356
    if ( eclass == CE_Failure || eclass == CE_Fatal ) {
 
1357
      SWIG_CSharpException(SWIG_RuntimeError, CPLGetLastErrorMsg());
 
1358
      
 
1359
      
 
1360
      
 
1361
    }
 
1362
    
 
1363
    
 
1364
    
 
1365
    
 
1366
    
 
1367
    
 
1368
    
 
1369
    
 
1370
    
 
1371
    
 
1372
    
 
1373
  }
 
1374
  jresult = result; 
 
1375
  return jresult;
 
1376
}
 
1377
 
 
1378
 
1273
1379
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_IsGeographic(void * jarg1) {
1274
1380
  int jresult ;
1275
1381
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
1336
1442
}
1337
1443
 
1338
1444
 
 
1445
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_IsCompound(void * jarg1) {
 
1446
  int jresult ;
 
1447
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
 
1448
  int result;
 
1449
  
 
1450
  arg1 = (OSRSpatialReferenceShadow *)jarg1; 
 
1451
  {
 
1452
    CPLErrorReset();
 
1453
    result = (int)OSRSpatialReferenceShadow_IsCompound(arg1);
 
1454
    CPLErr eclass = CPLGetLastErrorType();
 
1455
    if ( eclass == CE_Failure || eclass == CE_Fatal ) {
 
1456
      SWIG_CSharpException(SWIG_RuntimeError, CPLGetLastErrorMsg());
 
1457
      
 
1458
      
 
1459
      
 
1460
    }
 
1461
    
 
1462
    
 
1463
    
 
1464
    
 
1465
    
 
1466
    
 
1467
    
 
1468
    
 
1469
    
 
1470
    
 
1471
    
 
1472
  }
 
1473
  jresult = result; 
 
1474
  return jresult;
 
1475
}
 
1476
 
 
1477
 
 
1478
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_IsGeocentric(void * jarg1) {
 
1479
  int jresult ;
 
1480
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
 
1481
  int result;
 
1482
  
 
1483
  arg1 = (OSRSpatialReferenceShadow *)jarg1; 
 
1484
  {
 
1485
    CPLErrorReset();
 
1486
    result = (int)OSRSpatialReferenceShadow_IsGeocentric(arg1);
 
1487
    CPLErr eclass = CPLGetLastErrorType();
 
1488
    if ( eclass == CE_Failure || eclass == CE_Fatal ) {
 
1489
      SWIG_CSharpException(SWIG_RuntimeError, CPLGetLastErrorMsg());
 
1490
      
 
1491
      
 
1492
      
 
1493
    }
 
1494
    
 
1495
    
 
1496
    
 
1497
    
 
1498
    
 
1499
    
 
1500
    
 
1501
    
 
1502
    
 
1503
    
 
1504
    
 
1505
  }
 
1506
  jresult = result; 
 
1507
  return jresult;
 
1508
}
 
1509
 
 
1510
 
1339
1511
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_IsLocal(void * jarg1) {
1340
1512
  int jresult ;
1341
1513
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
1369
1541
}
1370
1542
 
1371
1543
 
 
1544
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_IsVertical(void * jarg1) {
 
1545
  int jresult ;
 
1546
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
 
1547
  int result;
 
1548
  
 
1549
  arg1 = (OSRSpatialReferenceShadow *)jarg1; 
 
1550
  {
 
1551
    CPLErrorReset();
 
1552
    result = (int)OSRSpatialReferenceShadow_IsVertical(arg1);
 
1553
    CPLErr eclass = CPLGetLastErrorType();
 
1554
    if ( eclass == CE_Failure || eclass == CE_Fatal ) {
 
1555
      SWIG_CSharpException(SWIG_RuntimeError, CPLGetLastErrorMsg());
 
1556
      
 
1557
      
 
1558
      
 
1559
    }
 
1560
    
 
1561
    
 
1562
    
 
1563
    
 
1564
    
 
1565
    
 
1566
    
 
1567
    
 
1568
    
 
1569
    
 
1570
    
 
1571
  }
 
1572
  jresult = result; 
 
1573
  return jresult;
 
1574
}
 
1575
 
 
1576
 
1372
1577
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_EPSGTreatsAsLatLong(void * jarg1) {
1373
1578
  int jresult ;
1374
1579
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
1627
1832
}
1628
1833
 
1629
1834
 
 
1835
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_SetTargetLinearUnits(void * jarg1, char * jarg2, char * jarg3, double jarg4) {
 
1836
  int jresult ;
 
1837
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
 
1838
  char *arg2 = (char *) 0 ;
 
1839
  char *arg3 = (char *) 0 ;
 
1840
  double arg4 ;
 
1841
  OGRErr result;
 
1842
  
 
1843
  arg1 = (OSRSpatialReferenceShadow *)jarg1; 
 
1844
  arg2 = (char *)jarg2; 
 
1845
  arg3 = (char *)jarg3; 
 
1846
  arg4 = (double)jarg4; 
 
1847
  {
 
1848
    if (!arg3) {
 
1849
      {
 
1850
        SWIG_CSharpException(SWIG_ValueError, "Received a NULL pointer."); return 0; 
 
1851
      };
 
1852
    }
 
1853
  }
 
1854
  {
 
1855
    CPLErrorReset();
 
1856
    result = (OGRErr)OSRSpatialReferenceShadow_SetTargetLinearUnits(arg1,(char const *)arg2,(char const *)arg3,arg4);
 
1857
    CPLErr eclass = CPLGetLastErrorType();
 
1858
    if ( eclass == CE_Failure || eclass == CE_Fatal ) {
 
1859
      SWIG_CSharpException(SWIG_RuntimeError, CPLGetLastErrorMsg());
 
1860
      
 
1861
      
 
1862
      
 
1863
    }
 
1864
    
 
1865
    
 
1866
    
 
1867
    
 
1868
    
 
1869
    
 
1870
    
 
1871
    
 
1872
    
 
1873
    
 
1874
    
 
1875
  }
 
1876
  {
 
1877
    /* %typemap(out,fragment="OGRErrMessages",canthrow=1) OGRErr */
 
1878
    jresult = result;
 
1879
  }
 
1880
  {
 
1881
    /* %typemap(ret) OGRErr */
 
1882
    
 
1883
  }
 
1884
  return jresult;
 
1885
}
 
1886
 
 
1887
 
1630
1888
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_SetLinearUnits(void * jarg1, char * jarg2, double jarg3) {
1631
1889
  int jresult ;
1632
1890
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
1909
2167
}
1910
2168
 
1911
2169
 
 
2170
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_GetUTMZone(void * jarg1) {
 
2171
  int jresult ;
 
2172
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
 
2173
  int result;
 
2174
  
 
2175
  arg1 = (OSRSpatialReferenceShadow *)jarg1; 
 
2176
  {
 
2177
    CPLErrorReset();
 
2178
    result = (int)OSRSpatialReferenceShadow_GetUTMZone(arg1);
 
2179
    CPLErr eclass = CPLGetLastErrorType();
 
2180
    if ( eclass == CE_Failure || eclass == CE_Fatal ) {
 
2181
      SWIG_CSharpException(SWIG_RuntimeError, CPLGetLastErrorMsg());
 
2182
      
 
2183
      
 
2184
      
 
2185
    }
 
2186
    
 
2187
    
 
2188
    
 
2189
    
 
2190
    
 
2191
    
 
2192
    
 
2193
    
 
2194
    
 
2195
    
 
2196
    
 
2197
  }
 
2198
  jresult = result; 
 
2199
  return jresult;
 
2200
}
 
2201
 
 
2202
 
1912
2203
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_SetStatePlane(void * jarg1, int jarg2, int jarg3, char * jarg4, double jarg5) {
1913
2204
  int jresult ;
1914
2205
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2229
2520
}
2230
2521
 
2231
2522
 
 
2523
SWIGEXPORT double SWIGSTDCALL CSharp_SpatialReference_GetSemiMajor(void * jarg1) {
 
2524
  double jresult ;
 
2525
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
 
2526
  double result;
 
2527
  
 
2528
  arg1 = (OSRSpatialReferenceShadow *)jarg1; 
 
2529
  {
 
2530
    CPLErrorReset();
 
2531
    result = (double)OSRSpatialReferenceShadow_GetSemiMajor(arg1);
 
2532
    CPLErr eclass = CPLGetLastErrorType();
 
2533
    if ( eclass == CE_Failure || eclass == CE_Fatal ) {
 
2534
      SWIG_CSharpException(SWIG_RuntimeError, CPLGetLastErrorMsg());
 
2535
      
 
2536
      
 
2537
      
 
2538
    }
 
2539
    
 
2540
    
 
2541
    
 
2542
    
 
2543
    
 
2544
    
 
2545
    
 
2546
    
 
2547
    
 
2548
    
 
2549
    
 
2550
  }
 
2551
  jresult = result; 
 
2552
  return jresult;
 
2553
}
 
2554
 
 
2555
 
 
2556
SWIGEXPORT double SWIGSTDCALL CSharp_SpatialReference_GetSemiMinor(void * jarg1) {
 
2557
  double jresult ;
 
2558
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
 
2559
  double result;
 
2560
  
 
2561
  arg1 = (OSRSpatialReferenceShadow *)jarg1; 
 
2562
  {
 
2563
    CPLErrorReset();
 
2564
    result = (double)OSRSpatialReferenceShadow_GetSemiMinor(arg1);
 
2565
    CPLErr eclass = CPLGetLastErrorType();
 
2566
    if ( eclass == CE_Failure || eclass == CE_Fatal ) {
 
2567
      SWIG_CSharpException(SWIG_RuntimeError, CPLGetLastErrorMsg());
 
2568
      
 
2569
      
 
2570
      
 
2571
    }
 
2572
    
 
2573
    
 
2574
    
 
2575
    
 
2576
    
 
2577
    
 
2578
    
 
2579
    
 
2580
    
 
2581
    
 
2582
    
 
2583
  }
 
2584
  jresult = result; 
 
2585
  return jresult;
 
2586
}
 
2587
 
 
2588
 
 
2589
SWIGEXPORT double SWIGSTDCALL CSharp_SpatialReference_GetInvFlattening(void * jarg1) {
 
2590
  double jresult ;
 
2591
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
 
2592
  double result;
 
2593
  
 
2594
  arg1 = (OSRSpatialReferenceShadow *)jarg1; 
 
2595
  {
 
2596
    CPLErrorReset();
 
2597
    result = (double)OSRSpatialReferenceShadow_GetInvFlattening(arg1);
 
2598
    CPLErr eclass = CPLGetLastErrorType();
 
2599
    if ( eclass == CE_Failure || eclass == CE_Fatal ) {
 
2600
      SWIG_CSharpException(SWIG_RuntimeError, CPLGetLastErrorMsg());
 
2601
      
 
2602
      
 
2603
      
 
2604
    }
 
2605
    
 
2606
    
 
2607
    
 
2608
    
 
2609
    
 
2610
    
 
2611
    
 
2612
    
 
2613
    
 
2614
    
 
2615
    
 
2616
  }
 
2617
  jresult = result; 
 
2618
  return jresult;
 
2619
}
 
2620
 
 
2621
 
2232
2622
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_SetACEA(void * jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7) {
2233
2623
  int jresult ;
2234
2624
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2857
3247
}
2858
3248
 
2859
3249
 
 
3250
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_SetIGH(void * jarg1) {
 
3251
  int jresult ;
 
3252
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
 
3253
  OGRErr result;
 
3254
  
 
3255
  arg1 = (OSRSpatialReferenceShadow *)jarg1; 
 
3256
  {
 
3257
    CPLErrorReset();
 
3258
    result = (OGRErr)OSRSpatialReferenceShadow_SetIGH(arg1);
 
3259
    CPLErr eclass = CPLGetLastErrorType();
 
3260
    if ( eclass == CE_Failure || eclass == CE_Fatal ) {
 
3261
      SWIG_CSharpException(SWIG_RuntimeError, CPLGetLastErrorMsg());
 
3262
      
 
3263
      
 
3264
      
 
3265
    }
 
3266
    
 
3267
    
 
3268
    
 
3269
    
 
3270
    
 
3271
    
 
3272
    
 
3273
    
 
3274
    
 
3275
    
 
3276
    
 
3277
  }
 
3278
  {
 
3279
    /* %typemap(out,fragment="OGRErrMessages",canthrow=1) OGRErr */
 
3280
    jresult = result;
 
3281
  }
 
3282
  {
 
3283
    /* %typemap(ret) OGRErr */
 
3284
    
 
3285
  }
 
3286
  return jresult;
 
3287
}
 
3288
 
 
3289
 
2860
3290
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_SetGEOS(void * jarg1, double jarg2, double jarg3, double jarg4, double jarg5) {
2861
3291
  int jresult ;
2862
3292
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4538
4968
}
4539
4969
 
4540
4970
 
 
4971
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_SetGeocCS(void * jarg1, char * jarg2) {
 
4972
  int jresult ;
 
4973
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
 
4974
  char *arg2 = (char *) "unnamed" ;
 
4975
  OGRErr result;
 
4976
  
 
4977
  arg1 = (OSRSpatialReferenceShadow *)jarg1; 
 
4978
  arg2 = (char *)jarg2; 
 
4979
  {
 
4980
    if (!arg2) {
 
4981
      {
 
4982
        SWIG_CSharpException(SWIG_ValueError, "Received a NULL pointer."); return 0; 
 
4983
      };
 
4984
    }
 
4985
  }
 
4986
  {
 
4987
    CPLErrorReset();
 
4988
    result = (OGRErr)OSRSpatialReferenceShadow_SetGeocCS(arg1,(char const *)arg2);
 
4989
    CPLErr eclass = CPLGetLastErrorType();
 
4990
    if ( eclass == CE_Failure || eclass == CE_Fatal ) {
 
4991
      SWIG_CSharpException(SWIG_RuntimeError, CPLGetLastErrorMsg());
 
4992
      
 
4993
      
 
4994
      
 
4995
    }
 
4996
    
 
4997
    
 
4998
    
 
4999
    
 
5000
    
 
5001
    
 
5002
    
 
5003
    
 
5004
    
 
5005
    
 
5006
    
 
5007
  }
 
5008
  {
 
5009
    /* %typemap(out,fragment="OGRErrMessages",canthrow=1) OGRErr */
 
5010
    jresult = result;
 
5011
  }
 
5012
  {
 
5013
    /* %typemap(ret) OGRErr */
 
5014
    
 
5015
  }
 
5016
  return jresult;
 
5017
}
 
5018
 
 
5019
 
 
5020
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_SetVertCS(void * jarg1, char * jarg2, char * jarg3, int jarg4) {
 
5021
  int jresult ;
 
5022
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
 
5023
  char *arg2 = (char *) "unnamed" ;
 
5024
  char *arg3 = (char *) "unnamed" ;
 
5025
  int arg4 = (int) 0 ;
 
5026
  OGRErr result;
 
5027
  
 
5028
  arg1 = (OSRSpatialReferenceShadow *)jarg1; 
 
5029
  arg2 = (char *)jarg2; 
 
5030
  arg3 = (char *)jarg3; 
 
5031
  arg4 = (int)jarg4; 
 
5032
  {
 
5033
    CPLErrorReset();
 
5034
    result = (OGRErr)OSRSpatialReferenceShadow_SetVertCS(arg1,(char const *)arg2,(char const *)arg3,arg4);
 
5035
    CPLErr eclass = CPLGetLastErrorType();
 
5036
    if ( eclass == CE_Failure || eclass == CE_Fatal ) {
 
5037
      SWIG_CSharpException(SWIG_RuntimeError, CPLGetLastErrorMsg());
 
5038
      
 
5039
      
 
5040
      
 
5041
    }
 
5042
    
 
5043
    
 
5044
    
 
5045
    
 
5046
    
 
5047
    
 
5048
    
 
5049
    
 
5050
    
 
5051
    
 
5052
    
 
5053
  }
 
5054
  {
 
5055
    /* %typemap(out,fragment="OGRErrMessages",canthrow=1) OGRErr */
 
5056
    jresult = result;
 
5057
  }
 
5058
  {
 
5059
    /* %typemap(ret) OGRErr */
 
5060
    
 
5061
  }
 
5062
  return jresult;
 
5063
}
 
5064
 
 
5065
 
 
5066
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_SetCompoundCS(void * jarg1, char * jarg2, void * jarg3, void * jarg4) {
 
5067
  int jresult ;
 
5068
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
 
5069
  char *arg2 = (char *) 0 ;
 
5070
  OSRSpatialReferenceShadow *arg3 = (OSRSpatialReferenceShadow *) 0 ;
 
5071
  OSRSpatialReferenceShadow *arg4 = (OSRSpatialReferenceShadow *) 0 ;
 
5072
  OGRErr result;
 
5073
  
 
5074
  arg1 = (OSRSpatialReferenceShadow *)jarg1; 
 
5075
  arg2 = (char *)jarg2; 
 
5076
  arg3 = (OSRSpatialReferenceShadow *)jarg3; 
 
5077
  arg4 = (OSRSpatialReferenceShadow *)jarg4; 
 
5078
  {
 
5079
    if (!arg2) {
 
5080
      {
 
5081
        SWIG_CSharpException(SWIG_ValueError, "Received a NULL pointer."); return 0; 
 
5082
      };
 
5083
    }
 
5084
  }
 
5085
  {
 
5086
    if (!arg3) {
 
5087
      {
 
5088
        SWIG_CSharpException(SWIG_ValueError, "Received a NULL pointer."); return 0; 
 
5089
      };
 
5090
    }
 
5091
  }
 
5092
  {
 
5093
    if (!arg4) {
 
5094
      {
 
5095
        SWIG_CSharpException(SWIG_ValueError, "Received a NULL pointer."); return 0; 
 
5096
      };
 
5097
    }
 
5098
  }
 
5099
  {
 
5100
    CPLErrorReset();
 
5101
    result = (OGRErr)OSRSpatialReferenceShadow_SetCompoundCS(arg1,(char const *)arg2,arg3,arg4);
 
5102
    CPLErr eclass = CPLGetLastErrorType();
 
5103
    if ( eclass == CE_Failure || eclass == CE_Fatal ) {
 
5104
      SWIG_CSharpException(SWIG_RuntimeError, CPLGetLastErrorMsg());
 
5105
      
 
5106
      
 
5107
      
 
5108
    }
 
5109
    
 
5110
    
 
5111
    
 
5112
    
 
5113
    
 
5114
    
 
5115
    
 
5116
    
 
5117
    
 
5118
    
 
5119
    
 
5120
  }
 
5121
  {
 
5122
    /* %typemap(out,fragment="OGRErrMessages",canthrow=1) OGRErr */
 
5123
    jresult = result;
 
5124
  }
 
5125
  {
 
5126
    /* %typemap(ret) OGRErr */
 
5127
    
 
5128
  }
 
5129
  return jresult;
 
5130
}
 
5131
 
 
5132
 
4541
5133
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_ImportFromWkt(void * jarg1, void * jarg2) {
4542
5134
  int jresult ;
4543
5135
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4637
5229
  arg1 = (OSRSpatialReferenceShadow *)jarg1; 
4638
5230
  arg2 = (char *)jarg2; 
4639
5231
  {
 
5232
    if (!arg2) {
 
5233
      {
 
5234
        SWIG_CSharpException(SWIG_ValueError, "Received a NULL pointer."); return 0; 
 
5235
      };
 
5236
    }
 
5237
  }
 
5238
  {
4640
5239
    CPLErrorReset();
4641
5240
    result = (OGRErr)OSRSpatialReferenceShadow_ImportFromUrl(arg1,arg2);
4642
5241
    CPLErr eclass = CPLGetLastErrorType();
4938
5537
}
4939
5538
 
4940
5539
 
 
5540
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_ImportFromERM(void * jarg1, char * jarg2, char * jarg3, char * jarg4) {
 
5541
  int jresult ;
 
5542
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
 
5543
  char *arg2 = (char *) 0 ;
 
5544
  char *arg3 = (char *) 0 ;
 
5545
  char *arg4 = (char *) 0 ;
 
5546
  OGRErr result;
 
5547
  
 
5548
  arg1 = (OSRSpatialReferenceShadow *)jarg1; 
 
5549
  arg2 = (char *)jarg2; 
 
5550
  arg3 = (char *)jarg3; 
 
5551
  arg4 = (char *)jarg4; 
 
5552
  {
 
5553
    if (!arg2) {
 
5554
      {
 
5555
        SWIG_CSharpException(SWIG_ValueError, "Received a NULL pointer."); return 0; 
 
5556
      };
 
5557
    }
 
5558
  }
 
5559
  {
 
5560
    if (!arg3) {
 
5561
      {
 
5562
        SWIG_CSharpException(SWIG_ValueError, "Received a NULL pointer."); return 0; 
 
5563
      };
 
5564
    }
 
5565
  }
 
5566
  {
 
5567
    CPLErrorReset();
 
5568
    result = (OGRErr)OSRSpatialReferenceShadow_ImportFromERM(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
 
5569
    CPLErr eclass = CPLGetLastErrorType();
 
5570
    if ( eclass == CE_Failure || eclass == CE_Fatal ) {
 
5571
      SWIG_CSharpException(SWIG_RuntimeError, CPLGetLastErrorMsg());
 
5572
      
 
5573
      
 
5574
      
 
5575
    }
 
5576
    
 
5577
    
 
5578
    
 
5579
    
 
5580
    
 
5581
    
 
5582
    
 
5583
    
 
5584
    
 
5585
    
 
5586
    
 
5587
  }
 
5588
  {
 
5589
    /* %typemap(out,fragment="OGRErrMessages",canthrow=1) OGRErr */
 
5590
    jresult = result;
 
5591
  }
 
5592
  {
 
5593
    /* %typemap(ret) OGRErr */
 
5594
    
 
5595
  }
 
5596
  return jresult;
 
5597
}
 
5598
 
 
5599
 
4941
5600
SWIGEXPORT int SWIGSTDCALL CSharp_SpatialReference_ImportFromMICoordSys(void * jarg1, char * jarg2) {
4942
5601
  int jresult ;
4943
5602
  OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;