ext/gdal-ruby/osr/osr.cpp in gdal-1.0.0 vs ext/gdal-ruby/osr/osr.cpp in gdal-2.0.0

- old
+ new

@@ -6,13 +6,14 @@ * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ +#include "cpl_port.h" + #define SWIGRUBY - #ifdef __cplusplus /* SwigValueWrapper is described in swig.swg */ template<typename T> class SwigValueWrapper { struct SwigMovePointer { T *ptr; @@ -2471,10 +2472,11 @@ } SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromMICoordSys(OSRSpatialReferenceShadow *self,char const *pszCoordSys){ return OSRImportFromMICoordSys( self, pszCoordSys ); } SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromOzi(OSRSpatialReferenceShadow *self,char const *datum,char const *proj,char const *projParms){ - return OSRImportFromOzi( self, datum, proj, projParms ); + return 0; // TODO(zhm) Removed becaues this function's signature has changed between GDAL 1.x and 2.x. Not worth figuring it out since it's a very exotic function. + /* return OSRImportFromOzi( self, datum, proj, projParms ); */ } SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToWkt(OSRSpatialReferenceShadow *self,char **argout){ return OSRExportToWkt( self, argout ); } SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToPrettyWkt(OSRSpatialReferenceShadow *self,char **argout,int simplify=0){