[SCM] gdal branch, master, updated. upstream/1.8.1-93-g6735e3e
Francesco Paolo Lovergine
frankie at debian.org
Wed Feb 22 23:37:39 UTC 2012
The following commit has been merged in the master branch:
commit 845fa9f96b7ae4a196b1308de1bbac45b622b792
Author: Francesco Paolo Lovergine <frankie at debian.org>
Date: Mon Feb 20 13:23:54 2012 +0100
Resync against 1.9.0
diff --git a/frmts/ecw/jp2userbox.h b/frmts/ecw/jp2userbox.h
deleted file mode 100644
index 1e906e5..0000000
--- a/frmts/ecw/jp2userbox.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/******************************************************************************
- * $Id: jp2userbox.h 21325 2010-12-28 23:44:31Z warmerdam $
- *
- * Project: GDAL
- * Purpose: ECW Driver: user defined data box. Simple one to read/write
- * user defined data.
- * Author: Frank Warmerdam, warmerdam at pobox.com
- *
- ******************************************************************************
- * Copyright (c) 2005, Frank Warmerdam <warmerdam at pobox.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included
- * in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- ****************************************************************************/
-
-#ifndef JP2USERBOX_H_INCLUDED
-#define JP2USERBOX_H_INCLUDED
-
-#include "vsiiostream.h"
-
-#if defined(HAVE_COMPRESS)
-
-class JP2UserBox : public CNCSJP2Box {
-
-private:
- int nDataLength;
- unsigned char *pabyData;
-
-public:
- JP2UserBox();
-
- virtual ~JP2UserBox();
-
-#if ECWSDK_VERSION >= 40
- virtual CNCSError Parse( NCS::JP2::CFile &JP2File,
- NCS::CIOStream &Stream);
- virtual CNCSError UnParse( NCS::JP2::CFile &JP2File,
- NCS::CIOStream &Stream);
-#else
- virtual CNCSError Parse(class CNCSJP2File &JP2File,
- CNCSJPCIOStream &Stream);
- virtual CNCSError UnParse(class CNCSJP2File &JP2File,
- CNCSJPCIOStream &Stream);
-#endif
- virtual void UpdateXLBox(void);
-
- void SetData( int nDataLength, const unsigned char *pabyDataIn );
-
- int GetDataLength() { return nDataLength; }
- unsigned char *GetData() { return pabyData; }
-};
-#endif /* HAVE_COMPRES */
-
-#endif /* ndef JP2USERBOX_H_INCLUDED */
-
diff --git a/frmts/ecw/vsiiostream.h b/frmts/ecw/vsiiostream.h
deleted file mode 100644
index aeeb2a8..0000000
--- a/frmts/ecw/vsiiostream.h
+++ /dev/null
@@ -1,214 +0,0 @@
-/******************************************************************************
- * $Id: vsiiostream.h 21341 2010-12-30 09:21:32Z rouault $
- *
- * Project: GDAL
- * Purpose: ECW Driver: virtualized io stream declaration.
- * Author: Frank Warmerdam, warmerdam at pobox.com
- *
- ******************************************************************************
- * Copyright (c) 2004, Frank Warmerdam <warmerdam at pobox.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included
- * in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- ****************************************************************************/
-
-#ifndef VSIIOSTREAM_H_INCLUDED
-#define VSIIOSTREAM_H_INCLUDED
-
-#include "cpl_vsi.h"
-#include "gdal_priv.h"
-#include "gdal_frmts.h"
-
-#ifdef FRMT_ecw
-
-// The following is needed on 4.x+ to enable rw support.
-#if defined(HAVE_COMPRESS)
-# define ECW_COMPRESS_RW_SDK_VERSION
-#endif
-
-#if defined(_MSC_VER)
-# pragma warning(disable:4800)
-#endif
-
-/* -------------------------------------------------------------------- */
-/* These definitions aren't really specific to the VSIIOStream, */
-/* but are shared amoung the ECW driver modules. */
-/* -------------------------------------------------------------------- */
-#include <NCSECWClient.h>
-#include <NCSECWCompressClient.h>
-#include <NCSErrors.h>
-#include <NCSFile.h>
-#include <NCSJP2FileView.h>
-
-/* By default, assume 3.3 SDK Version. */
-#if !defined(ECWSDK_VERSION)
-# define ECWSDK_VERSION 33
-#endif
-
-#if ECWSDK_VERSION < 40
-
-#if !defined(NO_COMPRESS)
-# define HAVE_COMPRESS
-#endif
-
-# include <NCSJP2File.h>
-#else
-# include <ECWJP2BuildNumber.h>
-# define NCS_FASTCALL
-#endif
-
-#ifndef NCSFILEBASE_H
-# include <NCSJP2FileView.h>
-#else
-# undef CNCSJP2FileView
-# define CNCSJP2FileView CNCSFile
-#endif
-
-#ifdef HAVE_COMPRESS
-GDALDataset *
-ECWCreateCopyECW( const char * pszFilename, GDALDataset *poSrcDS,
- int bStrict, char ** papszOptions,
- GDALProgressFunc pfnProgress, void * pProgressData );
-GDALDataset *
-ECWCreateCopyJPEG2000( const char * pszFilename, GDALDataset *poSrcDS,
- int bStrict, char ** papszOptions,
- GDALProgressFunc pfnProgress, void * pProgressData );
-
-GDALDataset *
-ECWCreateECW( const char * pszFilename, int nXSize, int nYSize, int nBands,
- GDALDataType eType, char **papszOptions );
-GDALDataset *
-ECWCreateJPEG2000(const char *pszFilename, int nXSize, int nYSize, int nBands,
- GDALDataType eType, char **papszOptions );
-#endif
-
-/************************************************************************/
-/* ==================================================================== */
-/* VSIIOStream */
-/* ==================================================================== */
-/************************************************************************/
-
-class VSIIOStream : public CNCSJPCIOStream
-
-{
- public:
-
- INT64 startOfJPData;
- INT64 lengthOfJPData;
- VSILFILE *fpVSIL;
- int bWritable;
- int nFileViewCount;
- char *pszFilename;
-
- VSIIOStream() {
- nFileViewCount = 0;
- startOfJPData = 0;
- lengthOfJPData = -1;
- fpVSIL = NULL;
- }
- virtual ~VSIIOStream() {
- Close();
- if( fpVSIL != NULL )
- {
- VSIFCloseL( fpVSIL );
- fpVSIL = NULL;
- }
- }
-#if ECWSDK_VERSION >= 40
- virtual NCS::CIOStream *Clone() { return NULL; }
-#endif /* ECWSDK_VERSION >= 4 */
-
- virtual CNCSError Access( VSILFILE *fpVSILIn, BOOLEAN bWrite,
- const char *pszFilename,
- INT64 start, INT64 size = -1) {
-
- fpVSIL = fpVSILIn;
- startOfJPData = start;
- lengthOfJPData = size;
- bWritable = bWrite;
- VSIFSeekL(fpVSIL, startOfJPData, SEEK_SET);
-
- return(CNCSJPCIOStream::Open((char *)pszFilename, (bool) bWrite));
- }
-
- virtual bool NCS_FASTCALL Seek() {
- return(true);
- }
-
- virtual bool NCS_FASTCALL Seek(INT64 offset, Origin origin = CURRENT) {
- switch(origin) {
- case START:
- return(0 == VSIFSeekL(fpVSIL, offset+startOfJPData, SEEK_SET));
-
- case CURRENT:
- return(0 == VSIFSeekL(fpVSIL, offset, SEEK_CUR));
-
- case END:
- return(0 == VSIFSeekL(fpVSIL, offset, SEEK_END));
- }
-
- return(false);
- }
-
- virtual INT64 NCS_FASTCALL Tell() {
- return VSIFTellL( fpVSIL ) - startOfJPData;
- }
-
- virtual INT64 NCS_FASTCALL Size() {
- if( lengthOfJPData != -1 )
- return lengthOfJPData;
- else
- {
- INT64 curPos = Tell(), size;
-
- Seek( 0, END );
- size = Tell();
- Seek( curPos, START );
-
- return size;
- }
- }
-
- virtual bool NCS_FASTCALL Read(void* buffer, UINT32 count) {
- if( count == 0 )
- return true;
-
-// return(1 == VSIFReadL( buffer, count, 1, fpVSIL ) );
-
- // The following is a hack
- if( VSIFReadL( buffer, count, 1, fpVSIL ) != 1 )
- {
- CPLDebug( "VSIIOSTREAM",
- "Read(%d) failed @ " CPL_FRMT_GIB ", ignoring failure.",
- count, (VSIFTellL( fpVSIL ) - startOfJPData) );
- }
-
- return true;
- }
-
- virtual bool NCS_FASTCALL Write(void* buffer, UINT32 count) {
- if( count == 0 )
- return true;
- return(1 == VSIFWriteL(buffer, count, 1, fpVSIL));
- }
-};
-
-#endif /* def FRMT_ecw */
-
-#endif /* ndef VSIIOSTREAM_H_INCLUDED */
-
diff --git a/frmts/jpipkak/jpipkak.html b/frmts/jpipkak/jpipkak.html
deleted file mode 100644
index af34fe5..0000000
--- a/frmts/jpipkak/jpipkak.html
+++ /dev/null
@@ -1,249 +0,0 @@
-<html>
-<head>
-<title>JPIPKAK - JPIP Streaming</title>
-</head>
-<body bgcolor="#ffffff">
- <h1>JPIPKAK - JPIP Streaming</h1>
- <p>
- JPEG 2000 Interactive Protocol (JPIP) flexibility with respect to random access, code stream reordering and incremental decoding is highly exploitable in a networked environment allowing access to remote large files using limited bandwidth connections or high contention networks.
- </p>
- <h2>JPIPKAK - JPIP Overview</h2>
- <p>
- A brief overview of the JPIP event sequence is presented in this section, more information can be found at <a target="_blank" href="http://www.jpeg.org/jpeg2000/j2kpart9.html">JPEG 2000 Interactive Protocol (Part 9 JPIP)</a> and the specification can (and should) be purchased from <a target="_blank" href="http://www.iso.org">ISO</a>.
- </p>
- <p>
- An earlier version of JPEG 2000 Part 9 is available here <a href="http://www.jpeg.org/public/fcd15444-9v2.pdf">http://www.jpeg.org/public/fcd15444-9v2.pdf</a>, noting the ISO copyright, diagrams are not replicated in this documentation.
- </p>
- <p>
- The JPIP protocol has been abstracted in this format driver, requests are made at the 1:1 resolution level.
- </p>
- <img src="jpipsequence.png" alt="JPIP Sequence Diagram"/>
- <ol>
- <li><a name="initJPIP">Initial</a> JPIP request for a target image, a target id, a session over http, data to be returned as a jpp-stream are requested and a maximum length is put on the response. In this case no initial window is requested, though it can be.
-Server responds with a target identifier that can be used to identify the image on the server and a JPIP-cnew response header which includes the path to the JPIP server which will handle all future requests and a cid session identifier. A session is required so that that the server can model the state of the client connection, only sending the data that is required.
-</li>
- <li>Client requests particular view windows on the target image with a maximum response length and includes the session identifier established in the previous communication.
-'fsiz' is used to identify the resolution associated with the requested view-window. The values 'fx' and 'fy' specify the dimensions of the desired image resolution.
-'roff' is used to identify the upper left hand corner off the spatial region associated with the requested view-windw.
-'rsiz' is used to identify the horizontal and vertical extents of the spatial region associated with the requested view-window.</li>
- </ol>
- <h2>JPIPKAK -approach</h2>
- <p>
- The JPIPKAK driver uses an approach that was first demonstrated here, <a target="_blank" href="http://www.drc-dev.ohiolink.edu/browser/J2KViewer">J2KViewer</a>, by Juan Pablo Garcia Ortiz of separating the communication layer (socket / http) from the Kakadu kdu_cache object. Separating the communication layer from the data object is desirable since it allows the use of optimized http client libraries such as libcurl, Apache HttpClient (note that jportiz used a plain Java socket) and allows SSL communication between the client and server.
- </p>
- <p>
-Kakadu's implementation of client communication with a JPIP server uses a socket, and this socket connection holds the state for this client session. A client session with Kakadu can be recreated using the JPIP cache operations between client and server, but no use of traditional HTTP cookies is supported since JPIP is neutral to the transport layer.
- </p>
- <p>
-The JPIPKAK driver is written using a HTTP client library with the Kakadu cache object and supports optimized communication with a JPIP server (which may or may not support HTTP sessions) and the high performance of the kakadu kdu_region_decompressor.
- </p>
- <img src="components.PNG" alt="Component Diagram"/>
- <h2>JPIPKAK - implementation</h2>
- <p>
- The implementation supports the GDAL C++ and C API, and provides an initial SWIG wrapper for this driver with a Java ImageIO example (<b>TODO</b> - qGIS Example).
- </p>
- <p>
- The driver uses a simple threading model to support requesting reads of the data and remote fetching. This threading model supports two separate client windows, with just one connection to the server. Requests to the server are multiplexed to utilize available bandwidth efficiently. The client identifies these windows by using 0 (low) or 1 (high) values to a PRIORITY metadata request option.
- </p>
- <i>
- <p>
- Note: SSL support
- </p>
- <p>If the client is built with support for SSL, then driver determines whether to use SSL if the request is a jpips:// protocol as opposed to jpip:// . Note that the driver does not verify server certificates using the Curl certificate bundle and is currently set to accept all SSL server certificates.
-</p>
- <p>
- Note: libCurl
- </p>
- <p>
- JPIP sets client/server values using HTTP headers, modifications have been made to the GDAL HTTP portability library to support this.
- </p>
- </i>
- <img src="gdalsequence.PNG" alt="GDAL Sequence Diagram"/>
- <ol>
- <li>
- GDALGetDatasetDriver
- <p>
- Fetch the driver to which this dataset relates.
- </p>
- </li>
- <li>
- Open
- <p>
- If the filename contained in the <code>GDALOpenInfo</code> object has a case insensitive URI scheme of jpip or jpips the <code>JPIPKAKDataset</code> is created and initialised</a>, otherwise NULL is returned.
- </p>
- </li>
- <li>
- Initialize
- <p>
- Initialisation involves making an initial connection to the JPIP Server to establish a session and to retrieve the initial metadata about the image (ref. <a href="#initJPIP">JPIP Sequence Diagram</a>).
- </p>
- <p>
- If the connection fails, the function returns false and the <code>Open</code> function returns NULL indicating that opening the dataset with this driver failed.
- </p>
- <p>
- If the connection is successful, then subsequent requests to the JPIP server are made to retrieve all the available metadata about the image. Metadata items are set using the <code>GDALMajorObject->SetMetadataItem</code> in the "JPIP" domain.
- </p>
- <p>
- If the metadata returned from the server includes GeoJP2 UUID box, or a GMLJP2 XML box then this metadata is parsed and sets the geographic metadata of this dataset.
- </p>
- </li>
- <li>
- GDALGetMetadata
- <p>
- C API to <code>JPIPKAKDataset->GetMetadata</code>
- </p>
- </li>
- <li>
- GetMetadata
- <p>
- returns metadata for the "JPIP" domain, keys are "JPIP_NQUALITYLAYERS", "JPIP_NRESOLUTIONLEVELS", "JPIP_NCOMPS" and "JPIP_SPRECISION"
- </p>
- </li>
- <li>
- GDALEndAsyncRasterIO
- <p>
- If the asynchronous raster IO is active and not required, the C API calls <code>JPIPKAKDataset->EndAsyncRasterIO</code>
- </p>
- </li>
- <li>
- EndAsyncRasterIO
- <p>
- The JPIPKAKAsyncRasterIO object is deleted
- </p>
- </li>
- <li>
- delete
- <p>
- </p>
- </li>
- <li>
- GDALBeginAsyncRasterIO
- <p>
- C API to <code>JPIPKAKDataset->BeginAsyncRasterIO</code>
- </p>
- </li>
- <li>
- BeginAsyncRasterIO
- <p>
- The client has set the requested view window at 1:1 and have optionally set the discard level, quality layers and thread priority metadata items.
- </p>
- </li>
- <li>
- Create
- <p>
- Creates a JPIPKAKAsyncRasterIO Object
- </p>
- </li>
- <li>
- Start
- <p>
- Configures the kakadu machinery and starts a background thread (if not already running) to communicate to the server the current view window request. The background thread results in the <code>kdu_cache</code> object being updated until the JPIP server sends an "End Of Response" (EOR) message for the current view window request.
- </p>
- </li>
- <li>
- GDALLockBuffer<a name="GDALLockBuffer"/>
- <p>
- C API to LockBuffer
- </p>
- </li>
- <li>
- LockBuffer<a name="LockBuffer"/>
- <p>
- Not implemented in <code>JPIPKAKAsyncRasterIO</code>, a lock is acquired in <code>JPIPKAKAsyncRasterIO->GetNextUpdatedRegion</code>
- </p>
- </li>
- <li>
- GDALGetNextUpdatedRegion<a name="GDALGetNextUpdatedRegion"/>
- <p>
- C API to GetNextUpdatedRegion
- </p>
- </li>
- <li>
- GetNextUpdatedRegion<a name="GetNextUpdatedRegion"/>
- <p>
- The function decompresses the available data to generate an image (according to the dataset buffer type set in <code>JPIPKAKDataset->BeginAsyncRasterIO</code>)
- The window width, height (at the requested discard level) decompressed is returned in the region pointer and can be rendered by the client.
- The status of the rendering operation is one of <code>GARIO_PENDING, GARIO_UPDATE, GARIO_ERROR, GARIO_COMPLETE</code> from the <code>GDALAsyncStatusType</code> structure. <code>GARIO_UPDATE, GARIO_PENDING</code> require more reads of GetNextUpdatedRegion to get the full image data, this is the progressive rendering of JPIP. <code>GARIO_COMPLETE</code> indicates the window is complete.
- </p>
- <p>
- <code>GDALAsyncStatusType</code> is a structure used by<code>GetNextUpdatedRegion</code> to indicate whether the function should be called again when either kakadu has more data in its cache to decompress, or the server has not sent an End Of Response (EOR) message to indicate the request window is complete.
- </p>
- <p>
- The region passed into this function is passed by reference, and the caller can read this region when the result returns to find the region that has been decompressed. The image data is packed into the buffer, e.g. RGB if the region requested has 3 components.
- </p>
- </li>
- <li>
- GDALUnlockBuffer<a name="GDALUnlockBuffer"/>
- <p>
- C Api to UnlockBuffer
- </p>
- </li>
- <li>
- UnlockBuffer<a name="UnlockBuffer"/>
- <p>
- Not implemented in <code>JPIPKAKAsyncRasterIO</code>, a lock is acquired in <code>JPIPKAKAsyncRasterIO->GetNextUpdatedRegion</code>
- </p>
- </li>
- <li>
- Draw<a name="Draw"/>
- <p>
- Client renders image data
- </p>
- </li>
- <li>
- <a href="#GDALLockBuffer">GDALLockBuffer</a>
- <p>
- </p>
- </li>
- <li>
- <a href="#LockBuffer">LockBuffer</a>
- <p>
- </p>
- </li>
- <li>
- <a href="#GDALGetNextUpdatedRegion">GDALGetNextUpdatedRegion</a>
- <p>
- </p>
- </li>
- <li>
- <a href="#GetNextUpdatedRegion">GetNextUpdatedRegion</a>
- <p>
- </p>
- </li>
- <li>
- <a href="#GDALUnlockBuffer">GDALUnlockBuffer</a>
- <p>
- </p>
- </li>
- <li>
- <a href="#UnlockBuffer">UnlockBuffer</a>
- <p>
- </p>
- </li>
- <li>
- <a href="#Draw">Draw</a>
- <p>
- </p>
- </li>
- </ol>
- <h2>JPIPKAK - installation requirements</h2>
- <ul>
- <li><a target="_blank" href="http://curl.haxx.se/">Libcurl 7.9.4</a></li>
- <li><a target="_blank" href="http://www.openssl.org/">OpenSSL 0.9.8K</a> (if SSL is required, a JPIPS connection)</li>
- <li><a target="_blank" href="http://www.kakadusoftware.com">Kakadu</a> (tested with v5.2.6 and v6)</li>
- </ul>
- <p>Currently only a Windows makefile is provided, however this should compile on Linux as well as there are no Windows dependencies.</p>
- <p>See Also:
- <ul>
- <li><a target="_blank" href="http://www.jpeg.org/jpeg2000/j2kpart9.html">JPEG 2000 Interactive Protocol (Part 9 JPIP)</a></li>
- <li><a target="_blank" href="http://www.opengeospatial.org/standards/gmljp2">http://www.opengeospatial.org/standards/gmljp2</a></li>
- <li><a target="_blank" href="http://www.kakadusoftware.com">Kakadu Software </a></li>
- <li><a target="_blank" href="http://iasdemo.ittvis.com/">IAS demo (example JPIP(S) streams)</a></li>
- </ul>
- </p>
- <h2>NOTES</h2>
- <p>
- Driver originally developed by <a target="_blank" href="http://www.ittvis.com">ITT VIS</a> and donated to GDAL to enable SSL enabled JPIP client streaming of remote JPEG 2000 datasets.
- </p>
-</body>
-</html>
\ No newline at end of file
diff --git a/frmts/terralib/GNUmakefile b/frmts/terralib/GNUmakefile
deleted file mode 100644
index 3232199..0000000
--- a/frmts/terralib/GNUmakefile
+++ /dev/null
@@ -1,34 +0,0 @@
-include ../../GDALmake.opt
-
-TERRALIB_DIR = ../../../terralib
-
-SRC = $(TERRALIB_DIR)/src/terralib/drivers/MySQL/TeMySQL.cpp
-
-OBJ = TerraLibDataset.o \
- TerraLibRasterBand.o \
- $(TERRALIB_DIR)/src/terralib/drivers/MySQL/TeMySQL.o
-
-TERRALIB_LIB = $(TERRALIB_DIR)/terralibx/lib/libterralib.so \
- $(TERRALIB_DIR)/terralibx/lib/libjpeg.so
-
-EXTRAFLAGS = -I$(TERRALIB_DIR)/src/terralib/kernel \
- -I$(TERRALIB_DIR)/src/terralib/drivers/MySQL \
- -I$(TERRALIB_DIR)/src/terralib/drivers/MySQL/include/
-
-CPPFLAGS := $(GDAL_INCLUDE) $(CPPFLAGS) $(EXTRAFLAGS)
-
-EXTRA_LIBS := $(EXTRA_LIBS) $(TERRALIB_LIB)
-
-default: $(OBJ:.o=.$(OBJ_EXT))
-
-clean:
- rm -f *.o $(O_OBJ)
-
-install-obj: $(O_OBJ:.o=.$(OBJ_EXT))
-
-plugin: gdal_TERRALIB.so
-
-gdal_TERRALIB.so: $(OBJ)
- $(LD_SHARED) $(LNK_FLAGS) $(OBJ) \
- $(GDAL_LIBS) $(EXTRA_LIBS) -o gdal_TERRALIB.so
-
diff --git a/frmts/terralib/TerraLibDataset.cpp b/frmts/terralib/TerraLibDataset.cpp
deleted file mode 100644
index f9faebd..0000000
--- a/frmts/terralib/TerraLibDataset.cpp
+++ /dev/null
@@ -1,340 +0,0 @@
-/*****************************************************************************
- * $Id: $
- *
- * Project: TerraLib Raster Database schema support
- * Purpose: Read TerraLib Raster Dataset (see TerraLib.org)
- * Author: Ivan Lucena [ivan.lucena at pmldnet.com]
- *
- ******************************************************************************
- * Copyright (c) 2007, Ivan Lucena
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files ( the "Software" ),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included
- * in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- *****************************************************************************/
-
-#include "TerraLibDataset.h"
-#include "TerraLibRasterBand.h"
-
-CPL_C_START
-void CPL_DLL GDALRegister_TERRALIB( void );
-CPL_C_END
-
-// ----------------------------------------------------------------------------
-// TerraLibDataset()
-// ----------------------------------------------------------------------------
-
-TerraLibDataset::TerraLibDataset()
-{
- m_ProjectionRef = NULL;
- m_adfGeoTransform[0] = 0.0;
- m_adfGeoTransform[1] = 1.0;
- m_adfGeoTransform[2] = 0.0;
- m_adfGeoTransform[3] = 0.0;
- m_adfGeoTransform[4] = 0.0;
- m_adfGeoTransform[5] = 1.0;
- m_bGeoTransformValid = false;
-}
-
-// ----------------------------------------------------------------------------
-// TerraLibDataset()
-// ----------------------------------------------------------------------------
-
-TerraLibDataset::~TerraLibDataset()
-{
- if( m_ProjectionRef )
- {
- CPLFree( m_ProjectionRef );
- }
-
- if( m_db )
- {
- m_db->close();
- }
-}
-
-// ----------------------------------------------------------------------------
-// TerraLibDataset()
-// ----------------------------------------------------------------------------
-
-GDALDataset *TerraLibDataset::Open( GDALOpenInfo *poOpenInfo )
-{
- // -------------------------------------------------------------------
- // Verify georaster prefix
- // -------------------------------------------------------------------
-
- if( ! poOpenInfo->fp == NULL )
- {
- return NULL;
- }
-
- if( ! EQUALN( poOpenInfo->pszFilename, "terralib:", 9 ) )
- {
- return NULL;
- }
-
- // -------------------------------------------------------------------
- // Parser the arguments
- // -------------------------------------------------------------------
-
- char **papszParam = CSLTokenizeString2( poOpenInfo->pszFilename + 9, ",",
- CSLT_HONOURSTRINGS | CSLT_ALLOWEMPTYTOKENS );
-
- int nArgc = CSLCount( papszParam );
-
- // ------------------------------------------------------------------------
- // Check parameters:
- // ------------------------------------------------------------------------
-
- if( nArgc < 6 )
- {
- CPLError( CE_Failure, CPLE_AppDefined,
- "Incorrect number of paramters (%d). \n"
- "TERRALIB:<rdbms>,<host>,<user>,<password>,<database>,<layer>\n", nArgc );
- CPLFree( papszParam[0] );
- return FALSE;
- }
-
- const char *pszRDBMS = CPLStrdup( papszParam[0] );
- const char *pszHost = CPLStrdup( papszParam[1] );
- const char *pszUser = CPLStrdup( papszParam[2] );
- const char *pszPassword = CPLStrdup( papszParam[3] );
- const char *pszDatabase = CPLStrdup( papszParam[4] );
- const char *pszLayer = CPLStrdup( papszParam[5] );
-
- CSLDestroy( papszParam );
-
- // --------------------------------------------------------------------
- // Create Dataset
- // --------------------------------------------------------------------
-
- TerraLibDataset* poDS = new TerraLibDataset;
- poDS->eAccess = poOpenInfo->eAccess;
-
- // ------------------------------------------------------------------------
- // Create a ADO handler
- // ------------------------------------------------------------------------
-
- if( EQUAL( pszRDBMS, "ADO" ) ||
- EQUAL( pszRDBMS, "SQLServer" ) ||
- EQUAL( pszRDBMS, "OracleADO" ) )
- {
- poDS->m_db = new TeAdo();
- }
-
- // --------------------------------------------------------------------
- // Create a MySQL handler
- // --------------------------------------------------------------------
-
- if( EQUAL( pszRDBMS, "MySQL" ) )
- {
- if( EQUAL( pszHost, "" ) )
- {
- pszHost = CPLStrdup( "localhost" );
- }
-
- if( EQUAL( pszUser, "" ) )
- {
- pszUser = CPLStrdup( "localuser" );
- }
-
- poDS->m_db = new TeMySQL();
- }
-
- // --------------------------------------------------------------------
- // Create PostgreSQL/PostGIS handler
- // --------------------------------------------------------------------
-
- if( EQUAL( pszRDBMS, "PostgreSQL" ) ||
- EQUAL( pszRDBMS, "PostGIS" ) )
- {
- poDS->m_db = new TeMySQL();
- }
-
- // --------------------------------------------------------------------
- // Connect to database
- // --------------------------------------------------------------------
-
- if ( ! poDS->m_db->connect( pszHost, pszUser, pszPassword, pszDatabase ) )
- {
- CPLError( CE_Failure, CPLE_AppDefined, (CPLString) poDS->m_db->errorMessage() );
- delete poDS;
- return NULL;
- }
-
- // --------------------------------------------------------------------
- // Look for layer
- // --------------------------------------------------------------------
-
- if ( ! poDS->m_db->layerExist( pszLayer ) )
- {
- CPLError( CE_Failure, CPLE_AppDefined, (CPLString) poDS->m_db->errorMessage() );
- delete poDS;
- return NULL;
- }
-
- poDS->m_layer = new TeLayer( pszLayer );
-
- if( ! poDS->m_db->loadLayer( poDS->m_layer ) )
- {
- CPLError( CE_Failure, CPLE_AppDefined, (CPLString) poDS->m_db->errorMessage() );
- delete poDS;
- return FALSE;
- }
-
- // --------------------------------------------------------------------
- // Look for raster
- // --------------------------------------------------------------------
-
- poDS->m_raster = poDS->m_layer->raster();
-
- if( ! poDS->m_raster )
- {
- CPLError( CE_Failure, CPLE_AppDefined, (CPLString) poDS->m_db->errorMessage() );
- delete poDS;
- return NULL;
- }
-
- poDS->m_params = poDS->m_raster->params();
-
- // --------------------------------------------------------------------
- // Load raster parameters
- // --------------------------------------------------------------------
-
- poDS->nRasterXSize = poDS->m_params.ncols_;
- poDS->nRasterYSize = poDS->m_params.nlines_;
- poDS->nBands = poDS->m_params.nBands();
- poDS->m_ProjectionRef = CPLStrdup( TeGetWKTFromTeProjection( poDS->m_params.projection() ).c_str() );
- poDS->m_adfGeoTransform[0] = poDS->m_params.box().x1_;
- poDS->m_adfGeoTransform[1] = poDS->m_params.resx_;
- poDS->m_adfGeoTransform[2] = 0.0;
- poDS->m_adfGeoTransform[3] = poDS->m_params.box().y2_;
- poDS->m_adfGeoTransform[4] = 0.0;
- poDS->m_adfGeoTransform[5] = poDS->m_params.resy_;
- poDS->m_bGeoTransformValid = true;
-
- // --------------------------------------------------------------------
- // Create Band(s) Information
- // --------------------------------------------------------------------
-
- int nBands = 0;
-
- do
- {
- nBands++;
- poDS->SetBand( nBands, new TerraLibRasterBand( poDS ) );
- }
- while( nBands < poDS->nBands );
-
- return (GDALDataset*) poDS;
-}
-
-// ----------------------------------------------------------------------------
-// Create()
-// ----------------------------------------------------------------------------
-
-GDALDataset *TerraLibDataset::Create( const char *pszFilename,
- int nXSize,
- int nYSize,
- int nBands,
- GDALDataType eType,
- char **papszOptions )
-{
- return NULL;
-}
-
-// ----------------------------------------------------------------------------
-// CreateCopy()
-// ----------------------------------------------------------------------------
-
-GDALDataset *TerraLibDataset::CreateCopy( const char *pszFilename,
- GDALDataset *poSrcDS,
- int bStrict,
- char **papszOptions,
- GDALProgressFunc pfnProgress,
- void * pProgressData )
-{
- return NULL;
-}
-
-// ----------------------------------------------------------------------------
-// GetGeoTransform()
-// ----------------------------------------------------------------------------
-
-CPLErr TerraLibDataset::GetGeoTransform( double *padfTransform )
-{
- memcpy( padfTransform, m_adfGeoTransform, sizeof(double) * 6 );
-
- if( ! m_bGeoTransformValid )
- return CE_Failure;
- else
- return CE_None;
-}
-
-// ----------------------------------------------------------------------------
-// SetGeoTransform()
-// ----------------------------------------------------------------------------
-
-CPLErr TerraLibDataset::SetGeoTransform( double *padfTransform )
-{
- return CE_None;
-}
-
-// ----------------------------------------------------------------------------
-// GetProjectionRef()
-// ----------------------------------------------------------------------------
-
-const char* TerraLibDataset::GetProjectionRef( void )
-{
- return m_ProjectionRef;
-}
-
-// ----------------------------------------------------------------------------
-// SetProjection()
-// ----------------------------------------------------------------------------
-
-CPLErr TerraLibDataset::SetProjection( const char *pszProjString )
-{
- return CE_None;
-}
-
-
-// ----------------------------------------------------------------------------
-// GDALRegister_TERRALIB()
-// ----------------------------------------------------------------------------
-
-void CPL_DLL GDALRegister_TERRALIB( void )
-{
- GDALDriver *poDriver;
-
- if( GDALGetDriverByName( "TerraLib" ) == NULL )
- {
- poDriver = new GDALDriver();
-
- poDriver->SetDescription( "TerraLib" );
- poDriver->SetMetadataItem( GDAL_DMD_LONGNAME, "TerraLib Raster RDMS Schema" );
- poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC, "frmt_TerraLib.html" );
- poDriver->SetMetadataItem( GDAL_DMD_CREATIONDATATYPES,
- "Byte Int16 Int32 Float32 Float64" );
-
- poDriver->pfnOpen = TerraLibDataset::Open;
- poDriver->pfnCreate = TerraLibDataset::Create;
- poDriver->pfnCreateCopy = TerraLibDataset::CreateCopy;
-
- GetGDALDriverManager()->RegisterDriver( poDriver );
- }
-}
diff --git a/frmts/terralib/TerraLibDataset.h b/frmts/terralib/TerraLibDataset.h
deleted file mode 100644
index 5fc9089..0000000
--- a/frmts/terralib/TerraLibDataset.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/*****************************************************************************
- * $Id: $
- *
- * Project: TerraLib Raster Database schema support
- * Purpose: Read TerraLib Raster Dataset (see TerraLib.org)
- * Author: Ivan Lucena [ivan.lucena at pmldnet.com]
- *
- ******************************************************************************
- * Copyright (c) 2007, Ivan Lucena
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files ( the "Software" ),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included
- * in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- *****************************************************************************/
-
-#include "gdal.h"
-#include "gdal_priv.h"
-#include "gdal_pam.h"
-
-#include "TeDatabase.h"
-#include "TeMySQL.h"
-#include "TeAdoDB.h"
-
-// ----------------------------------------------------------------------------
-// TerraLib GDALDataset
-// ----------------------------------------------------------------------------
-
-class TerraLibDataset : public GDALPamDataset
-{
- friend class TerraLibRasterBand;
-
-private:
- TeDatabase* m_db;
- TeLayer* m_layer;
- TeRaster* m_raster;
- TeRasterParams m_params;
- char* m_ProjectionRef;
- double m_adfGeoTransform[6];
- bool m_bGeoTransformValid;
-
-public:
- TerraLibDataset();
- ~TerraLibDataset();
-
- static GDALDataset *Open( GDALOpenInfo *poOpenInfo );
- static GDALDataset *Create( const char *pszFilename,
- int nXSize,
- int nYSize,
- int nBands,
- GDALDataType eType,
- char **papszOptions );
- static GDALDataset *CreateCopy( const char *pszFilename,
- GDALDataset *poSrcDS,
- int bStrict,
- char **papszOptions,
- GDALProgressFunc pfnProgress,
- void * pProgressData );
-
- virtual CPLErr GetGeoTransform( double *padfTransform );
- virtual CPLErr SetGeoTransform( double *padfTransform );
- virtual CPLErr SetProjection( const char *pszProjString );
- virtual const char* GetProjectionRef( void );
-};
-
diff --git a/frmts/terralib/TerraLibRasterBand.cpp b/frmts/terralib/TerraLibRasterBand.cpp
deleted file mode 100644
index 3372b35..0000000
--- a/frmts/terralib/TerraLibRasterBand.cpp
+++ /dev/null
@@ -1,171 +0,0 @@
-/*****************************************************************************
- * $Id: $
- *
- * Project: TerraLib Raster Database schema support
- * Purpose: Read/Write TerraLib Raster band (see TerraLib.org)
- * Author: Ivan Lucena [ivan.lucena at pmldnet.com]
- *
- ******************************************************************************
- * Copyright (c) 2007, Ivan Lucena
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files ( the "Software" ),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included
- * in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- *****************************************************************************/
-
-#include "TerraLibDataset.h"
-#include "TerraLibRasterBand.h"
-
-// ----------------------------------------------------------------------------
-// TerraLibRasterBand()
-// ----------------------------------------------------------------------------
-
-TerraLibRasterBand::TerraLibRasterBand( TerraLibDataset *poDS )
-{
- this->nBand = nBand != 0 ? nBand : poDS->nBands;
- this->pabyBlockBuf = NULL;
- this->nRasterXSize = poDS->m_params.ncols_;
- this->nRasterYSize = poDS->m_params.nlines_;
- this->nBlockXSize = poDS->m_params.blockWidth_;
- this->nBlockYSize = poDS->m_params.blockHeight_;
-
- switch ( poDS->m_params.dataType_[0] )
- {
- case (TeUNSIGNEDCHAR):
- case (TeCHAR) :
- this->eDataType = GDT_Byte;
- break;
- case (TeUNSIGNEDSHORT):
- this->eDataType = GDT_UInt16;
- break;
- case (TeSHORT):
- this->eDataType = GDT_Int16;
- break;
- case (TeUNSIGNEDLONG):
- this->eDataType = GDT_UInt32;
- break;
- case (TeLONG):
- this->eDataType = GDT_Int32;
- break;
- case (TeFLOAT):
- this->eDataType = GDT_Float32;
- break;
- case (TeDOUBLE):
- this->eDataType = GDT_Float64;
- break;
- default:
- break;
- }
-}
-
-// ----------------------------------------------------------------------------
-// ~TerraLibRasterBand()
-// ----------------------------------------------------------------------------
-
-TerraLibRasterBand::~TerraLibRasterBand()
-{
-}
-
-// ----------------------------------------------------------------------------
-// GetMinimum()
-// ----------------------------------------------------------------------------
-
-double TerraLibRasterBand::GetMinimum( int *pbSuccess )
-{
- return FALSE;
-}
-
-// ----------------------------------------------------------------------------
-// GetMaximum()
-// ----------------------------------------------------------------------------
-
-double TerraLibRasterBand::GetMaximum( int *pbSuccess )
-{
- return FALSE;
-}
-
-// ----------------------------------------------------------------------------
-// GetColorTable()
-// ----------------------------------------------------------------------------
-
-GDALColorTable *TerraLibRasterBand::GetColorTable()
-{
- return NULL;
-}
-
-// ----------------------------------------------------------------------------
-// GetColorInterpretation()
-// ----------------------------------------------------------------------------
-
-GDALColorInterp TerraLibRasterBand::GetColorInterpretation()
-{
- return GCI_Undefined;
-}
-
-// ----------------------------------------------------------------------------
-// IReadBlock()
-// ----------------------------------------------------------------------------
-
-CPLErr TerraLibRasterBand::IReadBlock( int nBlockXOff, int nBlockYOff, void *pImage )
-{
-/***
- * experimenting with the terralib API
- ***
-
- TerraLibDataset* poGDS = (TerraLibDataset*) poDS;
-
- TeDatabasePortal* poDBP = poGDS->m_db->getPortal();
-
- unsigned long nBlockId = ( poGDS->m_params.blockHeight_ * nBlockYOff ) + ( poGDS->m_params.blockWidth_ * nBlockXOff );
-
- CPLDebug( "Te", "%d %d = %d", nBlockXOff, nBlockYOff, nBlockId );
-
- poDBP->getRasterBlock( nBlockId, (GByte*) pImage );
-
-***/
-
- return CE_None;
-}
-
-// ----------------------------------------------------------------------------
-// IWriteBlock()
-// ----------------------------------------------------------------------------
-
-CPLErr TerraLibRasterBand::IWriteBlock( int nBlockXOff, int nBlockYOff, void *pImage )
-{
- return CE_None;
-}
-
-// ----------------------------------------------------------------------------
-// SetColorTable()
-// ----------------------------------------------------------------------------
-
-CPLErr TerraLibRasterBand::SetColorTable( GDALColorTable *poColorTable )
-{
- return CE_None;
-}
-
-// ----------------------------------------------------------------------------
-// SetStatistics()
-// ----------------------------------------------------------------------------
-
-CPLErr TerraLibRasterBand::SetStatistics( double dfMin, double dfMax,
- double dfMean, double dfStdDev )
-{
- return CE_None;
-}
-
diff --git a/frmts/terralib/TerraLibRasterBand.h b/frmts/terralib/TerraLibRasterBand.h
deleted file mode 100644
index 5c26467..0000000
--- a/frmts/terralib/TerraLibRasterBand.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*****************************************************************************
- * $Id: $
- *
- * Project: TerraLib Raster Database schema support
- * Purpose: Read/Write TerraLib Raster band (see TerraLib.org)
- * Author: Ivan Lucena [ivan.lucena at pmldnet.com]
- *
- ******************************************************************************
- * Copyright (c) 2007, Ivan Lucena
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files ( the "Software" ),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included
- * in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- *****************************************************************************/
-
-#include "gdal.h"
-#include "gdal_priv.h"
-
-// ----------------------------------------------------------------------------
-// TerraLib TerraLibRasterBand
-// ----------------------------------------------------------------------------
-
-class TerraLibRasterBand : public GDALRasterBand
-{
- friend class TerraLibDataset;
-
-protected:
- GDALColorTable *poColorTable;
- GByte *pabyBlockBuf;
-
-public:
- TerraLibRasterBand( TerraLibDataset *poDS );
- ~TerraLibRasterBand();
-
- virtual double GetMinimum( int *pbSuccess = NULL );
- virtual double GetMaximum( int *pbSuccess = NULL );
- virtual GDALColorTable *GetColorTable();
- virtual GDALColorInterp GetColorInterpretation();
- virtual CPLErr IReadBlock( int nBlockXOff, int nBlockYOff, void *pImage );
- virtual CPLErr IWriteBlock( int nBlockXOff, int nBlockYOff, void *pImage );
- virtual CPLErr SetColorTable( GDALColorTable *poColorTable );
- virtual CPLErr SetStatistics( double dfMin, double dfMax, double dfMean, double dfStdDev );
-};
diff --git a/frmts/terralib/makefile.vc b/frmts/terralib/makefile.vc
deleted file mode 100644
index 76f685d..0000000
--- a/frmts/terralib/makefile.vc
+++ /dev/null
@@ -1,39 +0,0 @@
-GDAL_ROOT = ..\..
-
-!INCLUDE $(GDAL_ROOT)\nmake.opt
-
-TERRALIB_DIR = C:\Dev\Terralib
-
-OBJ = TerraLibDataset.obj TerraLibRasterBand.obj \
- $(TERRALIB_DIR)\examples\Debug\TeAdoDB.obj \
- $(TERRALIB_DIR)\examples\Debug\TeMySQL.obj
-
-TERRALIB_LIB = $(TERRALIB_DIR)\Debug\terralib\terralib.lib
-
-EXTRAFLAGS = $(EXTRAFLAGS) \
- -I$(TERRALIB_DIR)\src\terralib\kernel \
- -I$(TERRALIB_DIR)\src\terralib\drivers\MySQL \
- -I$(TERRALIB_DIR)\src\terralib\drivers\MySQL\include \
- -I$(TERRALIB_DIR)\src\terralib\application \
- -I$(TERRALIB_DIR)\terralibw\ado\
-
-default: $(OBJ)
- xcopy /D /Y *.obj ..\o
- cd..
-
-clean:
- -del *.obj
- -del *.dll
- -del *.exp
- -del *.ilk
- -del *.lib
- -del *.pdb
- -del *.tlh
- -del *.tli
- cd ..
-
-plugin: gdal_TERRALIB.dll
-
-gdal_TERRALIB.dll: $(OBJ)
- link /nologo /dll $(LDEBUG) /out:gdal_TERRALIB.dll /NODEFAULTLIB:MSVCRT $(OBJ) $(GDALLIB) \
- $(TERRALIB_LIB) $(TERRALIB_DIR)\terralibw\MySQL\libmysql.lib
diff --git a/m4/argz.m4 b/m4/argz.m4
deleted file mode 100644
index 2014c61..0000000
--- a/m4/argz.m4
+++ /dev/null
@@ -1,34 +0,0 @@
-# Portability macros for glibc argz. -*- Autoconf -*-
-#
-# Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
-# Written by Gary V. Vaughan <gary at gnu.org>
-#
-# This file is free software; the Free Software Foundation gives
-# unlimited permission to copy and/or distribute it, with or without
-# modifications, as long as this notice is preserved.
-
-# serial 4 argz.m4
-
-AC_DEFUN([gl_FUNC_ARGZ],
-[gl_PREREQ_ARGZ
-
-AC_CHECK_HEADERS([argz.h], [], [], [AC_INCLUDES_DEFAULT])
-
-AC_CHECK_TYPES([error_t],
- [],
- [AC_DEFINE([error_t], [int],
- [Define to a type to use for `error_t' if it is not otherwise available.])
- AC_DEFINE([__error_t_defined], [1], [Define so that glibc/gnulib argp.h
- does not typedef error_t.])],
- [#if defined(HAVE_ARGZ_H)
-# include <argz.h>
-#endif])
-
-ARGZ_H=
-AC_CHECK_FUNCS([argz_append argz_create_sep argz_insert argz_next \
- argz_stringify], [], [ARGZ_H=argz.h; AC_LIBOBJ([argz])])
-AC_SUBST([ARGZ_H])
-])
-
-# Prerequisites of lib/argz.c.
-AC_DEFUN([gl_PREREQ_ARGZ], [:])
diff --git a/makegdal10.sln b/makegdal10.sln
deleted file mode 100644
index b777ff4..0000000
--- a/makegdal10.sln
+++ /dev/null
@@ -1,20 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "makegdal", "makegdal10.vcxproj", "{769DD10E-E284-46BE-9172-A35184250A3A}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Win32 = Debug|Win32
- Release|Win32 = Release|Win32
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {769DD10E-E284-46BE-9172-A35184250A3A}.Debug|Win32.ActiveCfg = Debug|Win32
- {769DD10E-E284-46BE-9172-A35184250A3A}.Debug|Win32.Build.0 = Debug|Win32
- {769DD10E-E284-46BE-9172-A35184250A3A}.Release|Win32.ActiveCfg = Release|Win32
- {769DD10E-E284-46BE-9172-A35184250A3A}.Release|Win32.Build.0 = Release|Win32
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/makegdal10.vcxproj b/makegdal10.vcxproj
deleted file mode 100644
index e9008a6..0000000
--- a/makegdal10.vcxproj
+++ /dev/null
@@ -1,1595 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectName>makegdal</ProjectName>
- <ProjectGuid>{769DD10E-E284-46BE-9172-A35184250A3A}</ProjectGuid>
- <Keyword>MakeFileProj</Keyword>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <ConfigurationType>Makefile</ConfigurationType>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <ConfigurationType>Makefile</ConfigurationType>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup>
- <_ProjectFileVersion>10.0.21006.1</_ProjectFileVersion>
- <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</OutDir>
- <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</IntDir>
- <NMakeBuildCommandLine Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cd $(ProjectDir) && nmake -f makefile.vc MSVC_VER=1500 DEBUG=1 && nmake -f makefile.vc MSVC_VER=1500 DEBUG=1 install</NMakeBuildCommandLine>
- <NMakeReBuildCommandLine Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cd $(ProjectDir) && nmake -f makefile.vc MSVC_VER=1500 DEBUG=1 clean && nmake -f makefile.vc MSVC_VER=1500 DEBUG=1 && nmake -f makefile.vc MSVC_VER=1500 DEBUG=1 install</NMakeReBuildCommandLine>
- <NMakeCleanCommandLine Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cd $(ProjectDir) && nmake -f makefile.vc MSVC_VER=1500 DEBUG=1 clean</NMakeCleanCommandLine>
- <NMakeOutput Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">gdal17.dll</NMakeOutput>
- <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</OutDir>
- <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</IntDir>
- <NMakeBuildCommandLine Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">cd $(ProjectDir) && nmake -f makefile.vc MSVC_VER=1500 && nmake -f makefile.vc MSVC_VER=1500 install</NMakeBuildCommandLine>
- <NMakeReBuildCommandLine Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">cd $(ProjectDir) && nmake -f makefile.vc MSVC_VER=1500 clean && nmake -f makefile.vc MSVC_VER=1500 && nmake -f makefile.vc MSVC_VER=1500 install</NMakeReBuildCommandLine>
- <NMakeCleanCommandLine Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">cd $(ProjectDir) && nmake -f makefile.vc MSVC_VER=1500 clean</NMakeCleanCommandLine>
- <NMakeOutput Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">gdal17.dll</NMakeOutput>
- </PropertyGroup>
- <ItemDefinitionGroup>
- </ItemDefinitionGroup>
- <ItemGroup>
- <None Include="makefile.vc" />
- <None Include="nmake-wince.opt" />
- <None Include="nmake.opt" />
- <None Include="alg\makefile.vc" />
- <None Include="apps\makefile.vc" />
- <None Include="frmts\makefile.vc" />
- <None Include="frmts\aaigrid\makefile.vc" />
- <None Include="frmts\adrg\makefile.vc" />
- <None Include="frmts\aigrid\makefile.vc" />
- <None Include="frmts\airsar\makefile.vc" />
- <None Include="frmts\blx\makefile.vc" />
- <None Include="frmts\bmp\makefile.vc" />
- <None Include="frmts\bsb\makefile.vc" />
- <None Include="frmts\ceos\makefile.vc" />
- <None Include="frmts\ceos2\makefile.vc" />
- <None Include="frmts\coasp\makefile.vc" />
- <None Include="frmts\cosar\makefile.vc" />
- <None Include="frmts\dimap\makefile.vc" />
- <None Include="frmts\dods\makefile.vc" />
- <None Include="frmts\dted\makefile.vc" />
- <None Include="frmts\ecw\makefile.vc" />
- <None Include="frmts\elas\makefile.vc" />
- <None Include="frmts\envisat\makefile.vc" />
- <None Include="frmts\epsilon\makefile.vc" />
- <None Include="frmts\ers\makefile.vc" />
- <None Include="frmts\fit\makefile.vc" />
- <None Include="frmts\fits\makefile.vc" />
- <None Include="frmts\georaster\makefile.vc" />
- <None Include="frmts\gff\makefile.vc" />
- <None Include="frmts\gif\makefile.vc" />
- <None Include="frmts\gif\giflib\makefile.vc" />
- <None Include="frmts\grib\makefile.vc" />
- <None Include="frmts\grib\degrib18\makefile.vc" />
- <None Include="frmts\grib\degrib18\degrib\makefile.vc" />
- <None Include="frmts\grib\degrib18\g2clib-1.0.4\makefile.vc" />
- <None Include="frmts\gsg\makefile.vc" />
- <None Include="frmts\gtiff\makefile.vc" />
- <None Include="frmts\gtiff\libgeotiff\makefile.vc" />
- <None Include="frmts\gtiff\libtiff\makefile.vc" />
- <None Include="frmts\gxf\makefile.vc" />
- <None Include="frmts\hdf4\makefile.vc" />
- <None Include="frmts\hdf4\hdf-eos\makefile.vc" />
- <None Include="frmts\hdf5\makefile.vc" />
- <None Include="frmts\hfa\makefile.vc" />
- <None Include="frmts\idrisi\makefile.vc" />
- <None Include="frmts\ilwis\makefile.vc" />
- <None Include="frmts\ingr\makefile.vc" />
- <None Include="frmts\iso8211\makefile.vc" />
- <None Include="frmts\jaxapalsar\makefile.vc" />
- <None Include="frmts\jdem\makefile.vc" />
- <None Include="frmts\jp2kak\makefile.vc" />
- <None Include="frmts\jpeg\makefile.vc" />
- <None Include="frmts\jpeg\libjpeg\makefile.vc" />
- <None Include="frmts\jpeg\libjpeg12\makefile.vc" />
- <None Include="frmts\jpeg2000\makefile.vc" />
- <None Include="frmts\l1b\makefile.vc" />
- <None Include="frmts\leveller\makefile.vc" />
- <None Include="frmts\mem\makefile.vc" />
- <None Include="frmts\mrsid\makefile.vc" />
- <None Include="frmts\msg\makefile.vc" />
- <None Include="frmts\msgn\makefile.vc" />
- <None Include="frmts\netcdf\makefile.vc" />
- <None Include="frmts\nitf\makefile.vc" />
- <None Include="frmts\northwood\makefile.vc" />
- <None Include="frmts\ogdi\makefile.vc" />
- <None Include="frmts\pcidsk\makefile.vc" />
- <None Include="frmts\pcidsk\sdk\Makefile.vc" />
- <None Include="frmts\pcraster\makefile.vc" />
- <None Include="frmts\pcraster\libcsf\makefile.vc" />
- <None Include="frmts\pds\makefile.vc" />
- <None Include="frmts\pgchip\makefile.vc" />
- <None Include="frmts\png\makefile.vc" />
- <None Include="frmts\png\libpng\makefile.vc" />
- <None Include="frmts\r\makefile.vc" />
- <None Include="frmts\rasterlite\makefile.vc" />
- <None Include="frmts\raw\makefile.vc" />
- <None Include="frmts\rik\makefile.vc" />
- <None Include="frmts\rmf\makefile.vc" />
- <None Include="frmts\rs2\makefile.vc" />
- <None Include="frmts\saga\makefile.vc" />
- <None Include="frmts\sde\makefile.vc" />
- <None Include="frmts\sdts\makefile.vc" />
- <None Include="frmts\sgi\makefile.vc" />
- <None Include="frmts\srtmhgt\makefile.vc" />
- <None Include="frmts\terragen\makefile.vc" />
- <None Include="frmts\terralib\makefile.vc" />
- <None Include="frmts\til\makefile.vc" />
- <None Include="frmts\tsx\makefile.vc" />
- <None Include="frmts\usgsdem\makefile.vc" />
- <None Include="frmts\vrt\makefile.vc" />
- <None Include="frmts\wcs\makefile.vc" />
- <None Include="frmts\wktraster\makefile.vc" />
- <None Include="frmts\wms\makefile.vc" />
- <None Include="frmts\xpm\makefile.vc" />
- <None Include="frmts\zlib\makefile.vc" />
- <None Include="gcore\makefile.vc" />
- <None Include="ogr\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\avc\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\bna\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\csv\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\dgn\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\dgn\dist\Makefile.vc" />
- <None Include="ogr\ogrsf_frmts\dods\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\dxf\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\fme\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\generic\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\geoconcept\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\geojson\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\geojson\jsonc\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\georss\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\gml\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\gmt\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\gpx\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\gtm\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\idb\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\ili\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\ili\iom\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\kml\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\mem\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\mitab\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\mysql\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\ntf\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\oci\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\odbc\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\ogdi\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\pcidsk\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\pg\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\pgeo\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\rec\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\s57\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\sde\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\sdts\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\shape\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\sqlite\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\tiger\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\vrt\makefile.vc" />
- <None Include="ogr\ogrsf_frmts\xplane\makefile.vc" />
- <None Include="ogr\wcts\makefile.vc" />
- <None Include="port\cpl_config.h.vc" />
- <None Include="port\makefile.vc" />
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="alg\gdalgrid.h" />
- <ClInclude Include="alg\gdalwarper.h" />
- <ClInclude Include="alg\gdal_alg.h" />
- <ClInclude Include="alg\gdal_alg_priv.h" />
- <ClInclude Include="alg\gvgcpfit.h" />
- <ClInclude Include="alg\thinplatespline.h" />
- <ClInclude Include="bridge\gdalbridge.h" />
- <ClInclude Include="frmts\aigrid\aigrid.h" />
- <ClInclude Include="frmts\blx\blx.h" />
- <ClInclude Include="frmts\bsb\bsb_read.h" />
- <ClInclude Include="frmts\ceos\ceosopen.h" />
- <ClInclude Include="frmts\ceos2\ceos.h" />
- <ClInclude Include="frmts\dted\dted_api.h" />
- <ClInclude Include="frmts\ecw\jp2userbox.h" />
- <ClInclude Include="frmts\ecw\vsiiostream.h" />
- <ClInclude Include="frmts\envisat\EnvisatFile.h" />
- <ClInclude Include="frmts\ers\ershdrnode.h" />
- <ClInclude Include="frmts\fit\fit.h" />
- <ClInclude Include="frmts\fit\gstEndian.h" />
- <ClInclude Include="frmts\fit\gstTypes.h" />
- <ClInclude Include="frmts\georaster\georaster_priv.h" />
- <ClInclude Include="frmts\georaster\oci_wrapper.h" />
- <ClInclude Include="frmts\gif\giflib\gif_hash.h" />
- <ClInclude Include="frmts\gif\giflib\gif_lib.h" />
- <ClInclude Include="frmts\gif\giflib\gif_lib_private.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\clock.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\datasource.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\degrib1.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\degrib2.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\engribapi.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\filedatasource.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\fileendian.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\grib2api.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\inventory.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\memendian.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\memorydatasource.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\meta.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\metaname.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\myassert.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\myerror.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\myutil.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\scan.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\tdlpack.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\type.h" />
- <ClInclude Include="frmts\grib\degrib18\degrib\weather.h" />
- <ClInclude Include="frmts\grib\degrib18\g2clib-1.0.4\drstemplates.h" />
- <ClInclude Include="frmts\grib\degrib18\g2clib-1.0.4\grib2.h" />
- <ClInclude Include="frmts\grib\degrib18\g2clib-1.0.4\gridtemplates.h" />
- <ClInclude Include="frmts\grib\degrib18\g2clib-1.0.4\pdstemplates.h" />
- <ClInclude Include="frmts\gtiff\gt_overview.h" />
- <ClInclude Include="frmts\gtiff\libgeotiff\cpl_serv.h" />
- <ClInclude Include="frmts\gtiff\libgeotiff\geokeys.h" />
- <ClInclude Include="frmts\gtiff\libgeotiff\geonames.h" />
- <ClInclude Include="frmts\gtiff\libgeotiff\geotiff.h" />
- <ClInclude Include="frmts\gtiff\libgeotiff\geotiffio.h" />
- <ClInclude Include="frmts\gtiff\libgeotiff\geovalues.h" />
- <ClInclude Include="frmts\gtiff\libgeotiff\geo_config.h" />
- <ClInclude Include="frmts\gtiff\libgeotiff\geo_keyp.h" />
- <ClInclude Include="frmts\gtiff\libgeotiff\geo_normalize.h" />
- <ClInclude Include="frmts\gtiff\libgeotiff\geo_simpletags.h" />
- <ClInclude Include="frmts\gtiff\libgeotiff\geo_tiffp.h" />
- <ClInclude Include="frmts\gtiff\libgeotiff\xtiffio.h" />
- <ClInclude Include="frmts\gtiff\libtiff\t4.h" />
- <ClInclude Include="frmts\gtiff\libtiff\tiff.h" />
- <ClInclude Include="frmts\gtiff\libtiff\tiffconf.h" />
- <ClInclude Include="frmts\gtiff\libtiff\tiffio.h" />
- <ClInclude Include="frmts\gtiff\libtiff\tiffiop.h" />
- <ClInclude Include="frmts\gtiff\libtiff\tiffvers.h" />
- <ClInclude Include="frmts\gtiff\libtiff\tif_config.h" />
- <ClInclude Include="frmts\gtiff\libtiff\tif_dir.h" />
- <ClInclude Include="frmts\gtiff\libtiff\tif_fax3.h" />
- <ClInclude Include="frmts\gtiff\libtiff\tif_predict.h" />
- <ClInclude Include="frmts\gtiff\libtiff\uvcode.h" />
- <ClInclude Include="frmts\gxf\gxfopen.h" />
- <ClInclude Include="frmts\hdf4\hdf4compat.h" />
- <ClInclude Include="frmts\hdf4\hdf4dataset.h" />
- <ClInclude Include="frmts\hdf4\hdf-eos\ease.h" />
- <ClInclude Include="frmts\hdf4\hdf-eos\HdfEosDef.h" />
- <ClInclude Include="frmts\hdf4\hdf-eos\HDFEOSVersion.h" />
- <ClInclude Include="frmts\hdf5\gh5_convenience.h" />
- <ClInclude Include="frmts\hdf5\hdf5dataset.h" />
- <ClInclude Include="frmts\hfa\hfa.h" />
- <ClInclude Include="frmts\hfa\hfa_p.h" />
- <ClInclude Include="frmts\ilwis\ilwisdataset.h" />
- <ClInclude Include="frmts\ingr\IngrTypes.h" />
- <ClInclude Include="frmts\ingr\IntergraphBand.h" />
- <ClInclude Include="frmts\ingr\IntergraphDataset.h" />
- <ClInclude Include="frmts\ingr\JpegHelper.h" />
- <ClInclude Include="frmts\iso8211\iso8211.h" />
- <ClInclude Include="frmts\jp2kak\subfile_source.h" />
- <ClInclude Include="frmts\jp2kak\vsil_target.h" />
- <ClInclude Include="frmts\jpeg\gdalexif.h" />
- <ClInclude Include="frmts\jpeg\libjpeg\jchuff.h" />
- <ClInclude Include="frmts\jpeg\libjpeg\jconfig.h" />
- <ClInclude Include="frmts\jpeg\libjpeg\jdct.h" />
- <ClInclude Include="frmts\jpeg\libjpeg\jdhuff.h" />
- <ClInclude Include="frmts\jpeg\libjpeg\jerror.h" />
- <ClInclude Include="frmts\jpeg\libjpeg\jinclude.h" />
- <ClInclude Include="frmts\jpeg\libjpeg\jmemsys.h" />
- <ClInclude Include="frmts\jpeg\libjpeg\jmorecfg.h" />
- <ClInclude Include="frmts\jpeg\libjpeg\jpegint.h" />
- <ClInclude Include="frmts\jpeg\libjpeg\jpeglib.h" />
- <ClInclude Include="frmts\jpeg\libjpeg\jversion.h" />
- <ClInclude Include="frmts\jpeg\libjpeg12\jchuff.h" />
- <ClInclude Include="frmts\jpeg\libjpeg12\jconfig.h" />
- <ClInclude Include="frmts\jpeg\libjpeg12\jdct.h" />
- <ClInclude Include="frmts\jpeg\libjpeg12\jdhuff.h" />
- <ClInclude Include="frmts\jpeg\libjpeg12\jerror.h" />
- <ClInclude Include="frmts\jpeg\libjpeg12\jinclude.h" />
- <ClInclude Include="frmts\jpeg\libjpeg12\jmemsys.h" />
- <ClInclude Include="frmts\jpeg\libjpeg12\jmorecfg.h" />
- <ClInclude Include="frmts\jpeg\libjpeg12\jpegint.h" />
- <ClInclude Include="frmts\jpeg\libjpeg12\jpeglib.h" />
- <ClInclude Include="frmts\jpeg\libjpeg12\jversion.h" />
- <ClInclude Include="frmts\jpeg2000\jpeg2000_vsil_io.h" />
- <ClInclude Include="frmts\mem\memdataset.h" />
- <ClInclude Include="frmts\mrsid\mrsidstream.h" />
- <ClInclude Include="frmts\msg\msgcommand.h" />
- <ClInclude Include="frmts\msg\msgdataset.h" />
- <ClInclude Include="frmts\msg\prologue.h" />
- <ClInclude Include="frmts\msg\reflectancecalculator.h" />
- <ClInclude Include="frmts\msg\xritheaderparser.h" />
- <ClInclude Include="frmts\msgn\msg_basic_types.h" />
- <ClInclude Include="frmts\msgn\msg_reader_core.h" />
- <ClInclude Include="frmts\netcdf\netcdfdataset.h" />
- <ClInclude Include="frmts\nitf\mgrs.h" />
- <ClInclude Include="frmts\nitf\nitflib.h" />
- <ClInclude Include="frmts\nitf\rpftoclib.h" />
- <ClInclude Include="frmts\northwood\northwood.h" />
- <ClInclude Include="frmts\pcidsk\gdal_pcidsk.h" />
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk.h" />
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_buffer.h" />
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_channel.h" />
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_config.h" />
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_exception.h" />
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_file.h" />
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_georef.h" />
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_interfaces.h" />
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_io.h" />
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_mutex.h" />
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_pct.h" />
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_segment.h" />
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_shape.h" />
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_types.h" />
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_vectorsegment.h" />
- <ClInclude Include="frmts\pcidsk\sdk\channel\cbandinterleavedchannel.h" />
- <ClInclude Include="frmts\pcidsk\sdk\channel\cpcidskchannel.h" />
- <ClInclude Include="frmts\pcidsk\sdk\channel\cpixelinterleavedchannel.h" />
- <ClInclude Include="frmts\pcidsk\sdk\channel\ctiledchannel.h" />
- <ClInclude Include="frmts\pcidsk\sdk\core\cpcidskfile.h" />
- <ClInclude Include="frmts\pcidsk\sdk\core\metadataset.h" />
- <ClInclude Include="frmts\pcidsk\sdk\core\mutexholder.h" />
- <ClInclude Include="frmts\pcidsk\sdk\core\pcidsk_utils.h" />
- <ClInclude Include="frmts\pcidsk\sdk\core\protectedfile.h" />
- <ClInclude Include="frmts\pcidsk\sdk\core\sysvirtualfile.h" />
- <ClInclude Include="frmts\pcidsk\sdk\segment\cpcidskgeoref.h" />
- <ClInclude Include="frmts\pcidsk\sdk\segment\cpcidskpct.h" />
- <ClInclude Include="frmts\pcidsk\sdk\segment\cpcidsksegment.h" />
- <ClInclude Include="frmts\pcidsk\sdk\segment\cpcidskvectorsegment.h" />
- <ClInclude Include="frmts\pcidsk\sdk\segment\metadatasegment.h" />
- <ClInclude Include="frmts\pcidsk\sdk\segment\pcidskgeorefbuilder.h" />
- <ClInclude Include="frmts\pcidsk\sdk\segment\pcidsksegmentbuilder.h" />
- <ClInclude Include="frmts\pcidsk\sdk\segment\segmentfactory.h" />
- <ClInclude Include="frmts\pcidsk\sdk\segment\sysblockmap.h" />
- <ClInclude Include="frmts\pcidsk\sdk\segment\uuid.h" />
- <ClInclude Include="frmts\pcraster\pcrasterdataset.h" />
- <ClInclude Include="frmts\pcraster\pcrasterrasterband.h" />
- <ClInclude Include="frmts\pcraster\pcrasterutil.h" />
- <ClInclude Include="frmts\pcraster\libcsf\csf.h" />
- <ClInclude Include="frmts\pcraster\libcsf\csfattr.h" />
- <ClInclude Include="frmts\pcraster\libcsf\csfimpl.h" />
- <ClInclude Include="frmts\pcraster\libcsf\csftypes.h" />
- <ClInclude Include="frmts\pcraster\libcsf\pcrtypes.h" />
- <ClInclude Include="frmts\pds\nasakeywordhandler.h" />
- <ClInclude Include="frmts\pgchip\pgchip.h" />
- <ClInclude Include="frmts\png\libpng\png.h" />
- <ClInclude Include="frmts\png\libpng\pngconf.h" />
- <ClInclude Include="frmts\rasterlite\rasterlitedataset.h" />
- <ClInclude Include="frmts\raw\atlsci_spheroid.h" />
- <ClInclude Include="frmts\raw\rawdataset.h" />
- <ClInclude Include="frmts\rmf\rmfdataset.h" />
- <ClInclude Include="frmts\sde\gdal_sde.h" />
- <ClInclude Include="frmts\sde\sdedataset.h" />
- <ClInclude Include="frmts\sde\sdeerror.h" />
- <ClInclude Include="frmts\sde\sderasterband.h" />
- <ClInclude Include="frmts\sdts\sdts_al.h" />
- <ClInclude Include="frmts\terralib\TerraLibDataset.h" />
- <ClInclude Include="frmts\terralib\TerraLibRasterBand.h" />
- <ClInclude Include="frmts\vrt\gdal_vrt.h" />
- <ClInclude Include="frmts\vrt\vrtdataset.h" />
- <ClInclude Include="frmts\wktraster\wktraster.h" />
- <ClInclude Include="frmts\wms\gdalhttp.h" />
- <ClInclude Include="frmts\wms\md5.h" />
- <ClInclude Include="frmts\wms\minidriver_tileservice.h" />
- <ClInclude Include="frmts\wms\minidriver_tms.h" />
- <ClInclude Include="frmts\wms\minidriver_wms.h" />
- <ClInclude Include="frmts\wms\minidriver_worldwind.h" />
- <ClInclude Include="frmts\wms\stdinc.h" />
- <ClInclude Include="frmts\wms\wmsdriver.h" />
- <ClInclude Include="frmts\zlib\crc32.h" />
- <ClInclude Include="frmts\zlib\deflate.h" />
- <ClInclude Include="frmts\zlib\inffast.h" />
- <ClInclude Include="frmts\zlib\inffixed.h" />
- <ClInclude Include="frmts\zlib\inflate.h" />
- <ClInclude Include="frmts\zlib\inftrees.h" />
- <ClInclude Include="frmts\zlib\trees.h" />
- <ClInclude Include="frmts\zlib\zconf.h" />
- <ClInclude Include="frmts\zlib\zlib.h" />
- <ClInclude Include="frmts\zlib\zutil.h" />
- <ClInclude Include="gcore\gdal.h" />
- <ClInclude Include="gcore\gdaljp2metadata.h" />
- <ClInclude Include="gcore\gdal_frmts.h" />
- <ClInclude Include="gcore\gdal_pam.h" />
- <ClInclude Include="gcore\gdal_priv.h" />
- <ClInclude Include="gcore\gdal_proxy.h" />
- <ClInclude Include="gcore\gdal_rat.h" />
- <ClInclude Include="gcore\gdal_version.h" />
- <ClInclude Include="ogr\ogr_api.h" />
- <ClInclude Include="ogr\ogr_core.h" />
- <ClInclude Include="ogr\ogr_expat.h" />
- <ClInclude Include="ogr\ogr_feature.h" />
- <ClInclude Include="ogr\ogr_featurestyle.h" />
- <ClInclude Include="ogr\ogr_geometry.h" />
- <ClInclude Include="ogr\ogr_geos.h" />
- <ClInclude Include="ogr\ogr_p.h" />
- <ClInclude Include="ogr\ogr_spatialref.h" />
- <ClInclude Include="ogr\ogr_srs_api.h" />
- <ClInclude Include="ogr\ogr_srs_esri_names.h" />
- <ClInclude Include="ogr\swq.h" />
- <ClInclude Include="ogr\ogrsf_frmts\ogrsf_frmts.h" />
- <ClInclude Include="ogr\ogrsf_frmts\ogr_attrind.h" />
- <ClInclude Include="ogr\ogrsf_frmts\avc\avc.h" />
- <ClInclude Include="ogr\ogrsf_frmts\avc\avc_mbyte.h" />
- <ClInclude Include="ogr\ogrsf_frmts\avc\dbfopen.h" />
- <ClInclude Include="ogr\ogrsf_frmts\avc\ogr_avc.h" />
- <ClInclude Include="ogr\ogrsf_frmts\bna\ogrbnaparser.h" />
- <ClInclude Include="ogr\ogrsf_frmts\bna\ogr_bna.h" />
- <ClInclude Include="ogr\ogrsf_frmts\csv\ogr_csv.h" />
- <ClInclude Include="ogr\ogrsf_frmts\dgn\dgnlib.h" />
- <ClInclude Include="ogr\ogrsf_frmts\dgn\dgnlibp.h" />
- <ClInclude Include="ogr\ogrsf_frmts\dgn\ogr_dgn.h" />
- <ClInclude Include="ogr\ogrsf_frmts\dgn\dist\cpl_config.h" />
- <ClInclude Include="ogr\ogrsf_frmts\dods\ogr_dods.h" />
- <ClInclude Include="ogr\ogrsf_frmts\dxf\ogr_dxf.h" />
- <ClInclude Include="ogr\ogrsf_frmts\fme\fme2ogr.h" />
- <ClInclude Include="ogr\ogrsf_frmts\generic\ogr_gensql.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geoconcept\geoconcept.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geoconcept\geoconcept_syscoord.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geoconcept\ogrgeoconceptdatasource.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geoconcept\ogrgeoconceptdriver.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geoconcept\ogrgeoconceptlayer.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geojson\ogrgeojsonreader.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geojson\ogrgeojsonutils.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geojson\ogrgeojsonwriter.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geojson\ogr_geojson.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\arraylist.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\bits.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\config.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\debug.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\json.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\json_object.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\json_object_private.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\json_tokener.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\json_util.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\linkhash.h" />
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\printbuf.h" />
- <ClInclude Include="ogr\ogrsf_frmts\georss\ogr_georss.h" />
- <ClInclude Include="ogr\ogrsf_frmts\gml\gmlreader.h" />
- <ClInclude Include="ogr\ogrsf_frmts\gml\gmlreaderp.h" />
- <ClInclude Include="ogr\ogrsf_frmts\gml\ogr_gml.h" />
- <ClInclude Include="ogr\ogrsf_frmts\gmt\ogr_gmt.h" />
- <ClInclude Include="ogr\ogrsf_frmts\gpx\ogr_gpx.h" />
- <ClInclude Include="ogr\ogrsf_frmts\grass\ogrgrass.h" />
- <ClInclude Include="ogr\ogrsf_frmts\gtm\gtm.h" />
- <ClInclude Include="ogr\ogrsf_frmts\gtm\ogr_gtm.h" />
- <ClInclude Include="ogr\ogrsf_frmts\idb\ogr_idb.h" />
- <ClInclude Include="ogr\ogrsf_frmts\ili\ili1reader.h" />
- <ClInclude Include="ogr\ogrsf_frmts\ili\ili1readerp.h" />
- <ClInclude Include="ogr\ogrsf_frmts\ili\ili2reader.h" />
- <ClInclude Include="ogr\ogrsf_frmts\ili\ili2readerp.h" />
- <ClInclude Include="ogr\ogrsf_frmts\ili\ilihelper.h" />
- <ClInclude Include="ogr\ogrsf_frmts\ili\iomhelper.h" />
- <ClInclude Include="ogr\ogrsf_frmts\ili\ogr_ili1.h" />
- <ClInclude Include="ogr\ogrsf_frmts\ili\ogr_ili2.h" />
- <ClInclude Include="ogr\ogrsf_frmts\ili\iom\iom.h" />
- <ClInclude Include="ogr\ogrsf_frmts\ili\iom\iom_p.h" />
- <ClInclude Include="ogr\ogrsf_frmts\ingres\ogr_ingres.h" />
- <ClInclude Include="ogr\ogrsf_frmts\kml\kml.h" />
- <ClInclude Include="ogr\ogrsf_frmts\kml\kmlnode.h" />
- <ClInclude Include="ogr\ogrsf_frmts\kml\kmlutility.h" />
- <ClInclude Include="ogr\ogrsf_frmts\kml\kmlvector.h" />
- <ClInclude Include="ogr\ogrsf_frmts\kml\ogr_kml.h" />
- <ClInclude Include="ogr\ogrsf_frmts\mem\ogr_mem.h" />
- <ClInclude Include="ogr\ogrsf_frmts\mitab\mitab.h" />
- <ClInclude Include="ogr\ogrsf_frmts\mitab\mitab_geometry.h" />
- <ClInclude Include="ogr\ogrsf_frmts\mitab\mitab_ogr_driver.h" />
- <ClInclude Include="ogr\ogrsf_frmts\mitab\mitab_priv.h" />
- <ClInclude Include="ogr\ogrsf_frmts\mitab\mitab_utils.h" />
- <ClInclude Include="ogr\ogrsf_frmts\mysql\ogr_mysql.h" />
- <ClInclude Include="ogr\ogrsf_frmts\ntf\ntf.h" />
- <ClInclude Include="ogr\ogrsf_frmts\oci\ogr_oci.h" />
- <ClInclude Include="ogr\ogrsf_frmts\odbc\ogr_odbc.h" />
- <ClInclude Include="ogr\ogrsf_frmts\ogdi\ogrogdi.h" />
- <ClInclude Include="ogr\ogrsf_frmts\pcidsk\ogr_pcidsk.h" />
- <ClInclude Include="ogr\ogrsf_frmts\pg\ogrpgutility.h" />
- <ClInclude Include="ogr\ogrsf_frmts\pg\ogr_pg.h" />
- <ClInclude Include="ogr\ogrsf_frmts\pgeo\ogr_pgeo.h" />
- <ClInclude Include="ogr\ogrsf_frmts\rec\ogr_rec.h" />
- <ClInclude Include="ogr\ogrsf_frmts\s57\ogr_s57.h" />
- <ClInclude Include="ogr\ogrsf_frmts\s57\s57.h" />
- <ClInclude Include="ogr\ogrsf_frmts\s57\s57tables.h" />
- <ClInclude Include="ogr\ogrsf_frmts\sde\ogr_sde.h" />
- <ClInclude Include="ogr\ogrsf_frmts\sdts\ogr_sdts.h" />
- <ClInclude Include="ogr\ogrsf_frmts\shape\ogrshape.h" />
- <ClInclude Include="ogr\ogrsf_frmts\shape\shapefil.h" />
- <ClInclude Include="ogr\ogrsf_frmts\sqlite\ogr_sqlite.h" />
- <ClInclude Include="ogr\ogrsf_frmts\tiger\ogr_tiger.h" />
- <ClInclude Include="ogr\ogrsf_frmts\vrt\ogr_vrt.h" />
- <ClInclude Include="ogr\ogrsf_frmts\xplane\ogr_xplane.h" />
- <ClInclude Include="ogr\ogrsf_frmts\xplane\ogr_xplane_apt_reader.h" />
- <ClInclude Include="ogr\ogrsf_frmts\xplane\ogr_xplane_awy_reader.h" />
- <ClInclude Include="ogr\ogrsf_frmts\xplane\ogr_xplane_fix_reader.h" />
- <ClInclude Include="ogr\ogrsf_frmts\xplane\ogr_xplane_geo_utils.h" />
- <ClInclude Include="ogr\ogrsf_frmts\xplane\ogr_xplane_nav_reader.h" />
- <ClInclude Include="ogr\ogrsf_frmts\xplane\ogr_xplane_reader.h" />
- <ClInclude Include="port\cplkeywordparser.h" />
- <ClInclude Include="port\cpl_atomic_ops.h" />
- <ClInclude Include="port\cpl_config.h" />
- <ClInclude Include="port\cpl_config_extras.h" />
- <ClInclude Include="port\cpl_conv.h" />
- <ClInclude Include="port\cpl_csv.h" />
- <ClInclude Include="port\cpl_error.h" />
- <ClInclude Include="port\cpl_hash_set.h" />
- <ClInclude Include="port\cpl_http.h" />
- <ClInclude Include="port\cpl_list.h" />
- <ClInclude Include="port\cpl_minixml.h" />
- <ClInclude Include="port\cpl_minizip_ioapi.h" />
- <ClInclude Include="port\cpl_minizip_unzip.h" />
- <ClInclude Include="port\cpl_multiproc.h" />
- <ClInclude Include="port\cpl_odbc.h" />
- <ClInclude Include="port\cpl_port.h" />
- <ClInclude Include="port\cpl_quad_tree.h" />
- <ClInclude Include="port\cpl_string.h" />
- <ClInclude Include="port\cpl_time.h" />
- <ClInclude Include="port\cpl_vsi.h" />
- <ClInclude Include="port\cpl_vsi_virtual.h" />
- <ClInclude Include="port\cpl_win32ce_api.h" />
- <ClInclude Include="port\cpl_wince.h" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="alg\gdal_crs.c" />
- <ClCompile Include="alg\gdal_nrgcrs.c" />
- <ClCompile Include="alg\contour.cpp" />
- <ClCompile Include="alg\gdalchecksum.cpp" />
- <ClCompile Include="alg\gdalcutline.cpp" />
- <ClCompile Include="alg\gdaldither.cpp" />
- <ClCompile Include="alg\gdalgeoloc.cpp" />
- <ClCompile Include="alg\gdalgrid.cpp" />
- <ClCompile Include="alg\gdalmediancut.cpp" />
- <ClCompile Include="alg\gdalproximity.cpp" />
- <ClCompile Include="alg\gdalrasterize.cpp" />
- <ClCompile Include="alg\gdalrasterpolygonenumerator.cpp" />
- <ClCompile Include="alg\gdalsievefilter.cpp" />
- <ClCompile Include="alg\gdalsimplewarp.cpp" />
- <ClCompile Include="alg\gdaltransformer.cpp" />
- <ClCompile Include="alg\gdalwarper.cpp" />
- <ClCompile Include="alg\gdalwarpkernel.cpp" />
- <ClCompile Include="alg\gdalwarpoperation.cpp" />
- <ClCompile Include="alg\gdal_rpc.cpp" />
- <ClCompile Include="alg\gdal_tps.cpp" />
- <ClCompile Include="alg\llrasterize.cpp" />
- <ClCompile Include="alg\polygonize.cpp" />
- <ClCompile Include="alg\rasterfill.cpp" />
- <ClCompile Include="alg\thinplatespline.cpp" />
- <ClCompile Include="apps\gdal2ogr.c" />
- <ClCompile Include="apps\gdalflattenmask.c" />
- <ClCompile Include="apps\gdalinfo.c" />
- <ClCompile Include="apps\gdaltindex.c" />
- <ClCompile Include="apps\gdalwarpsimple.c" />
- <ClCompile Include="apps\dumpoverviews.cpp" />
- <ClCompile Include="apps\gdaladdo.cpp" />
- <ClCompile Include="apps\gdalbuildvrt.cpp" />
- <ClCompile Include="apps\gdaldem.cpp" />
- <ClCompile Include="apps\gdalenhance.cpp" />
- <ClCompile Include="apps\gdalmanage.cpp" />
- <ClCompile Include="apps\gdaltorture.cpp" />
- <ClCompile Include="apps\gdaltransform.cpp" />
- <ClCompile Include="apps\gdalwarp.cpp" />
- <ClCompile Include="apps\gdal_contour.cpp" />
- <ClCompile Include="apps\gdal_grid.cpp" />
- <ClCompile Include="apps\gdal_rasterize.cpp" />
- <ClCompile Include="apps\gdal_translate.cpp" />
- <ClCompile Include="apps\multireadtest.cpp" />
- <ClCompile Include="apps\nearblack.cpp" />
- <ClCompile Include="apps\ogr2ogr.cpp" />
- <ClCompile Include="apps\ogrdissolve.cpp" />
- <ClCompile Include="apps\ogrinfo.cpp" />
- <ClCompile Include="apps\ogrtindex.cpp" />
- <ClCompile Include="apps\testepsg.cpp" />
- <ClCompile Include="apps\test_ogrsf.cpp" />
- <ClCompile Include="bridge\bridge_test.cpp" />
- <ClCompile Include="bridge\gbgetsymbol.cpp" />
- <ClCompile Include="bridge\gdalbridge.cpp" />
- <ClCompile Include="frmts\gdalallregister.cpp" />
- <ClCompile Include="frmts\aaigrid\aaigriddataset.cpp" />
- <ClCompile Include="frmts\adrg\adrgdataset.cpp" />
- <ClCompile Include="frmts\adrg\srpdataset.cpp" />
- <ClCompile Include="frmts\aigrid\aigccitt.c" />
- <ClCompile Include="frmts\aigrid\aigopen.c" />
- <ClCompile Include="frmts\aigrid\aitest.c" />
- <ClCompile Include="frmts\aigrid\gridlib.c" />
- <ClCompile Include="frmts\aigrid\aigdataset.cpp" />
- <ClCompile Include="frmts\airsar\airsardataset.cpp" />
- <ClCompile Include="frmts\blx\blx.c" />
- <ClCompile Include="frmts\blx\blxdataset.cpp" />
- <ClCompile Include="frmts\bmp\bmpdataset.cpp" />
- <ClCompile Include="frmts\bsb\bsb2raw.c" />
- <ClCompile Include="frmts\bsb\bsb_read.c" />
- <ClCompile Include="frmts\bsb\bsbdataset.cpp" />
- <ClCompile Include="frmts\ceos\ceosopen.c" />
- <ClCompile Include="frmts\ceos\ceostest.c" />
- <ClCompile Include="frmts\ceos\ceosdataset.cpp" />
- <ClCompile Include="frmts\ceos2\ceos.c" />
- <ClCompile Include="frmts\ceos2\ceosrecipe.c" />
- <ClCompile Include="frmts\ceos2\ceossar.c" />
- <ClCompile Include="frmts\ceos2\link.c" />
- <ClCompile Include="frmts\ceos2\sar_ceosdataset.cpp" />
- <ClCompile Include="frmts\coasp\coasp_dataset.cpp" />
- <ClCompile Include="frmts\cosar\cosar_dataset.cpp" />
- <ClCompile Include="frmts\dimap\dimapdataset.cpp" />
- <ClCompile Include="frmts\dods\dodsdataset2.cpp" />
- <ClCompile Include="frmts\dted\dted_api.c" />
- <ClCompile Include="frmts\dted\dted_create.c" />
- <ClCompile Include="frmts\dted\dted_ptstream.c" />
- <ClCompile Include="frmts\dted\dted_test.c" />
- <ClCompile Include="frmts\dted\dteddataset.cpp" />
- <ClCompile Include="frmts\ecw\ecwcreatecopy.cpp" />
- <ClCompile Include="frmts\ecw\ecwdataset.cpp" />
- <ClCompile Include="frmts\ecw\jp2userbox.cpp" />
- <ClCompile Include="frmts\elas\elasdataset.cpp" />
- <ClCompile Include="frmts\envisat\dumpgeo.c" />
- <ClCompile Include="frmts\envisat\EnvisatFile.c" />
- <ClCompile Include="frmts\envisat\envisat_dump.c" />
- <ClCompile Include="frmts\envisat\envisatdataset.cpp" />
- <ClCompile Include="frmts\epsilon\epsilondataset.cpp" />
- <ClCompile Include="frmts\ers\ersdataset.cpp" />
- <ClCompile Include="frmts\ers\ershdrnode.cpp" />
- <ClCompile Include="frmts\fit\fit.cpp" />
- <ClCompile Include="frmts\fit\fitdataset.cpp" />
- <ClCompile Include="frmts\fits\fitsdataset.cpp" />
- <ClCompile Include="frmts\georaster\georaster_dataset.cpp" />
- <ClCompile Include="frmts\georaster\georaster_driver.cpp" />
- <ClCompile Include="frmts\georaster\georaster_rasterband.cpp" />
- <ClCompile Include="frmts\georaster\georaster_wrapper.cpp" />
- <ClCompile Include="frmts\georaster\oci_wrapper.cpp" />
- <ClCompile Include="frmts\gff\gff_dataset.cpp" />
- <ClCompile Include="frmts\gif\biggifdataset.cpp" />
- <ClCompile Include="frmts\gif\gifdataset.cpp" />
- <ClCompile Include="frmts\gif\giflib\dgif_lib.c" />
- <ClCompile Include="frmts\gif\giflib\egif_lib.c" />
- <ClCompile Include="frmts\gif\giflib\gifalloc.c" />
- <ClCompile Include="frmts\gif\giflib\gif_err.c" />
- <ClCompile Include="frmts\gif\giflib\gif_hash.c" />
- <ClCompile Include="frmts\grass\grass57dataset.cpp" />
- <ClCompile Include="frmts\grass\grassdataset.cpp" />
- <ClCompile Include="frmts\grib\gribdataset.cpp" />
- <ClCompile Include="frmts\grib\degrib18\degrib\clock.c" />
- <ClCompile Include="frmts\grib\degrib18\degrib\engribapi.c" />
- <ClCompile Include="frmts\grib\degrib18\degrib\grib2api.c" />
- <ClCompile Include="frmts\grib\degrib18\degrib\memendian.c" />
- <ClCompile Include="frmts\grib\degrib18\degrib\myassert.c" />
- <ClCompile Include="frmts\grib\degrib18\degrib\myerror.c" />
- <ClCompile Include="frmts\grib\degrib18\degrib\myutil.c" />
- <ClCompile Include="frmts\grib\degrib18\degrib\scan.c" />
- <ClCompile Include="frmts\grib\degrib18\degrib\weather.c" />
- <ClCompile Include="frmts\grib\degrib18\degrib\degrib1.cpp" />
- <ClCompile Include="frmts\grib\degrib18\degrib\degrib2.cpp" />
- <ClCompile Include="frmts\grib\degrib18\degrib\filedatasource.cpp" />
- <ClCompile Include="frmts\grib\degrib18\degrib\fileendian.cpp" />
- <ClCompile Include="frmts\grib\degrib18\degrib\grib1tab.cpp" />
- <ClCompile Include="frmts\grib\degrib18\degrib\inventory.cpp" />
- <ClCompile Include="frmts\grib\degrib18\degrib\memorydatasource.cpp" />
- <ClCompile Include="frmts\grib\degrib18\degrib\metaname.cpp" />
- <ClCompile Include="frmts\grib\degrib18\degrib\metaparse.cpp" />
- <ClCompile Include="frmts\grib\degrib18\degrib\metaprint.cpp" />
- <ClCompile Include="frmts\grib\degrib18\degrib\tdlpack.cpp" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\cmplxpack.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\compack.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\comunpack.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\dec_png.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\drstemplates.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\enc_jpeg2000.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\enc_png.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_addfield.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_addgrid.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_addlocal.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_create.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_free.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_getfld.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_gribend.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_info.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_miss.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_unpack1.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_unpack2.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_unpack3.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_unpack4.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_unpack5.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_unpack6.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_unpack7.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\gbits.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\getdim.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\getpoly.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\gridtemplates.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\int_power.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\jpcpack.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\jpcunpack.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\misspack.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\mkieee.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\pack_gp.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\pdstemplates.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\pngpack.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\pngunpack.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\rdieee.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\reduce.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\seekgb.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\simpack.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\simunpack.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\specpack.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\specunpack.c" />
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\dec_jpeg2000.cpp" />
- <ClCompile Include="frmts\gsg\gs7bgdataset.cpp" />
- <ClCompile Include="frmts\gsg\gsagdataset.cpp" />
- <ClCompile Include="frmts\gsg\gsbgdataset.cpp" />
- <ClCompile Include="frmts\gtiff\tif_float.c" />
- <ClCompile Include="frmts\gtiff\geotiff.cpp" />
- <ClCompile Include="frmts\gtiff\gt_citation.cpp" />
- <ClCompile Include="frmts\gtiff\gt_overview.cpp" />
- <ClCompile Include="frmts\gtiff\gt_wkt_srs.cpp" />
- <ClCompile Include="frmts\gtiff\tifvsi.cpp" />
- <ClCompile Include="frmts\gtiff\libgeotiff\geotiff_proj4.c" />
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_extra.c" />
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_free.c" />
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_get.c" />
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_names.c" />
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_new.c" />
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_normalize.c" />
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_print.c" />
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_set.c" />
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_simpletags.c" />
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_tiffp.c" />
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_trans.c" />
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_write.c" />
- <ClCompile Include="frmts\gtiff\libgeotiff\xtiff.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_aux.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_close.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_codec.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_color.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_compress.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_dir.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_dirinfo.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_dirread.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_dirwrite.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_dumpmode.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_error.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_extension.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_fax3.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_fax3sm.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_flush.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_getimage.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_jpeg.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_jpeg_12.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_luv.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_lzw.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_next.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_ojpeg.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_open.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_packbits.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_pixarlog.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_predict.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_print.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_read.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_strip.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_swab.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_thunder.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_tile.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_version.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_vsi.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_warning.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_write.c" />
- <ClCompile Include="frmts\gtiff\libtiff\tif_zip.c" />
- <ClCompile Include="frmts\gxf\gxfopen.c" />
- <ClCompile Include="frmts\gxf\gxf_ogcwkt.c" />
- <ClCompile Include="frmts\gxf\gxf_proj4.c" />
- <ClCompile Include="frmts\gxf\gxfdataset.cpp" />
- <ClCompile Include="frmts\hdf4\hdf4dataset.cpp" />
- <ClCompile Include="frmts\hdf4\hdf4imagedataset.cpp" />
- <ClCompile Include="frmts\hdf4\hdf-eos\EHapi.c" />
- <ClCompile Include="frmts\hdf4\hdf-eos\gctp_wrap.c" />
- <ClCompile Include="frmts\hdf4\hdf-eos\GDapi.c" />
- <ClCompile Include="frmts\hdf4\hdf-eos\SWapi.c" />
- <ClCompile Include="frmts\hdf5\bagdataset.cpp" />
- <ClCompile Include="frmts\hdf5\gh5_convenience.cpp" />
- <ClCompile Include="frmts\hdf5\hdf5dataset.cpp" />
- <ClCompile Include="frmts\hdf5\hdf5imagedataset.cpp" />
- <ClCompile Include="frmts\hdf5\iso19115_srs.cpp" />
- <ClCompile Include="frmts\hfa\hfaband.cpp" />
- <ClCompile Include="frmts\hfa\hfacompress.cpp" />
- <ClCompile Include="frmts\hfa\hfadataset.cpp" />
- <ClCompile Include="frmts\hfa\hfadictionary.cpp" />
- <ClCompile Include="frmts\hfa\hfaentry.cpp" />
- <ClCompile Include="frmts\hfa\hfafield.cpp" />
- <ClCompile Include="frmts\hfa\hfaopen.cpp" />
- <ClCompile Include="frmts\hfa\hfatest.cpp" />
- <ClCompile Include="frmts\hfa\hfatype.cpp" />
- <ClCompile Include="frmts\hfa\hfa_overviews.cpp" />
- <ClCompile Include="frmts\idrisi\IdrisiDataset.cpp" />
- <ClCompile Include="frmts\ilwis\ilwiscoordinatesystem.cpp" />
- <ClCompile Include="frmts\ilwis\ilwisdataset.cpp" />
- <ClCompile Include="frmts\ingr\IngrTypes.cpp" />
- <ClCompile Include="frmts\ingr\IntergraphBand.cpp" />
- <ClCompile Include="frmts\ingr\IntergraphDataset.cpp" />
- <ClCompile Include="frmts\ingr\JpegHelper.cpp" />
- <ClCompile Include="frmts\iso8211\8211dump.cpp" />
- <ClCompile Include="frmts\iso8211\8211view.cpp" />
- <ClCompile Include="frmts\iso8211\ddffield.cpp" />
- <ClCompile Include="frmts\iso8211\ddffielddefn.cpp" />
- <ClCompile Include="frmts\iso8211\ddfmodule.cpp" />
- <ClCompile Include="frmts\iso8211\ddfrecord.cpp" />
- <ClCompile Include="frmts\iso8211\ddfsubfielddefn.cpp" />
- <ClCompile Include="frmts\iso8211\ddfutils.cpp" />
- <ClCompile Include="frmts\iso8211\mkcatalog.cpp" />
- <ClCompile Include="frmts\iso8211\timetest.cpp" />
- <ClCompile Include="frmts\jaxapalsar\jaxapalsardataset.cpp" />
- <ClCompile Include="frmts\jdem\jdemdataset.cpp" />
- <ClCompile Include="frmts\jp2kak\jp2kakdataset.cpp" />
- <ClCompile Include="frmts\jpeg\jpgdataset.cpp" />
- <ClCompile Include="frmts\jpeg\jpgdataset_12.cpp" />
- <ClCompile Include="frmts\jpeg\vsidataio.cpp" />
- <ClCompile Include="frmts\jpeg\libjpeg\jcapimin.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jcapistd.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jccoefct.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jccolor.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jcdctmgr.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jchuff.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jcinit.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jcmainct.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jcmarker.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jcmaster.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jcomapi.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jcparam.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jcphuff.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jcprepct.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jcsample.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jctrans.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jdapimin.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jdapistd.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jdatadst.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jdatasrc.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jdcoefct.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jdcolor.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jddctmgr.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jdhuff.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jdinput.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jdmainct.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jdmarker.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jdmaster.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jdmerge.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jdphuff.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jdpostct.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jdsample.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jdtrans.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jerror.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jfdctflt.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jfdctfst.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jfdctint.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jidctflt.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jidctfst.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jidctint.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jidctred.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jmemansi.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jmemmgr.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jquant1.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jquant2.c" />
- <ClCompile Include="frmts\jpeg\libjpeg\jutils.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jcapimin12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jcapistd12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jccoefct12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jccolor12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jcdctmgr12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jchuff12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jcinit12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jcmainct12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jcmarker12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jcmaster12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jcomapi12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jcparam12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jcphuff12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jcprepct12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jcsample12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jctrans12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jdapimin12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jdapistd12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jdatadst12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jdatasrc12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jdcoefct12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jdcolor12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jddctmgr12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jdhuff12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jdinput12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jdmainct12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jdmarker12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jdmaster12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jdmerge12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jdphuff12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jdpostct12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jdsample12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jdtrans12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jerror12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jfdctflt12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jfdctfst12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jfdctint12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jidctflt12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jidctfst12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jidctint12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jidctred12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jmemansi12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jmemmgr12.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jquant112.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jquant212.c" />
- <ClCompile Include="frmts\jpeg\libjpeg12\jutils12.c" />
- <ClCompile Include="frmts\jpeg2000\jpeg2000dataset.cpp" />
- <ClCompile Include="frmts\jpeg2000\jpeg2000_vsil_io.cpp" />
- <ClCompile Include="frmts\l1b\l1bdataset.cpp" />
- <ClCompile Include="frmts\leveller\levellerdataset.cpp" />
- <ClCompile Include="frmts\mem\memdataset.cpp" />
- <ClCompile Include="frmts\mrsid\mrsiddataset.cpp" />
- <ClCompile Include="frmts\mrsid\mrsidstream.cpp" />
- <ClCompile Include="frmts\msg\msgcommand.cpp" />
- <ClCompile Include="frmts\msg\msgdataset.cpp" />
- <ClCompile Include="frmts\msg\prologue.cpp" />
- <ClCompile Include="frmts\msg\reflectancecalculator.cpp" />
- <ClCompile Include="frmts\msg\xritheaderparser.cpp" />
- <ClCompile Include="frmts\msgn\msgndataset.cpp" />
- <ClCompile Include="frmts\msgn\msg_basic_types.cpp" />
- <ClCompile Include="frmts\msgn\msg_reader_core.cpp" />
- <ClCompile Include="frmts\netcdf\gmtdataset.cpp" />
- <ClCompile Include="frmts\netcdf\netcdfdataset.cpp" />
- <ClCompile Include="frmts\nitf\mgrs.c" />
- <ClCompile Include="frmts\nitf\nitfdump.c" />
- <ClCompile Include="frmts\nitf\nitffile.c" />
- <ClCompile Include="frmts\nitf\nitfimage.c" />
- <ClCompile Include="frmts\nitf\nitfaridpcm.cpp" />
- <ClCompile Include="frmts\nitf\nitfbilevel.cpp" />
- <ClCompile Include="frmts\nitf\nitfdataset.cpp" />
- <ClCompile Include="frmts\nitf\nitfwritejpeg.cpp" />
- <ClCompile Include="frmts\nitf\nitfwritejpeg_12.cpp" />
- <ClCompile Include="frmts\nitf\rpftocdataset.cpp" />
- <ClCompile Include="frmts\nitf\rpftocfile.cpp" />
- <ClCompile Include="frmts\northwood\grcdataset.cpp" />
- <ClCompile Include="frmts\northwood\grddataset.cpp" />
- <ClCompile Include="frmts\northwood\northwood.cpp" />
- <ClCompile Include="frmts\ogdi\ogdidataset.cpp" />
- <ClCompile Include="frmts\pcidsk\pcidskdataset.cpp" />
- <ClCompile Include="frmts\pcidsk\pcidskdataset2.cpp" />
- <ClCompile Include="frmts\pcidsk\pcidsktiledrasterband.cpp" />
- <ClCompile Include="frmts\pcidsk\vsi_pcidsk_io.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\channel\cbandinterleavedchannel.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\channel\cpcidskchannel.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\channel\cpixelinterleavedchannel.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\channel\ctiledchannel.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\core\cpcidskfile.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\core\libjpeg_io.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\core\metadataset_p.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\core\pcidskbuffer.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\core\pcidskcreate.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\core\pcidskexception.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\core\pcidskinterfaces.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\core\pcidskopen.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\core\pcidsk_pubutils.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\core\pcidsk_utils.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\core\sysvirtualfile.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\port\io_stdio.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\port\io_win32.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\port\pthread_mutex.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\port\win32_mutex.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\segment\cpcidskgeoref.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\segment\cpcidskpct.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\segment\cpcidsksegment.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\segment\cpcidskvectorsegment.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\segment\metadatasegment_p.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\segment\segmentfactory.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\segment\segment_loader.cpp" />
- <ClCompile Include="frmts\pcidsk\sdk\segment\sysblockmap.cpp" />
- <ClCompile Include="frmts\pcraster\pcrasterdataset.cpp" />
- <ClCompile Include="frmts\pcraster\pcrastermisc.cpp" />
- <ClCompile Include="frmts\pcraster\pcrasterrasterband.cpp" />
- <ClCompile Include="frmts\pcraster\pcrasterutil.cpp" />
- <ClCompile Include="frmts\pcraster\libcsf\angle.c" />
- <ClCompile Include="frmts\pcraster\libcsf\attravai.c" />
- <ClCompile Include="frmts\pcraster\libcsf\attrsize.c" />
- <ClCompile Include="frmts\pcraster\libcsf\cellsize.c" />
- <ClCompile Include="frmts\pcraster\libcsf\create2.c" />
- <ClCompile Include="frmts\pcraster\libcsf\csfglob.c" />
- <ClCompile Include="frmts\pcraster\libcsf\csfsup.c" />
- <ClCompile Include="frmts\pcraster\libcsf\delattr.c" />
- <ClCompile Include="frmts\pcraster\libcsf\dumconv.c" />
- <ClCompile Include="frmts\pcraster\libcsf\endian.c" />
- <ClCompile Include="frmts\pcraster\libcsf\filename.c" />
- <ClCompile Include="frmts\pcraster\libcsf\gattrblk.c" />
- <ClCompile Include="frmts\pcraster\libcsf\gattridx.c" />
- <ClCompile Include="frmts\pcraster\libcsf\gcellrep.c" />
- <ClCompile Include="frmts\pcraster\libcsf\gdattype.c" />
- <ClCompile Include="frmts\pcraster\libcsf\getattr.c" />
- <ClCompile Include="frmts\pcraster\libcsf\getx0.c" />
- <ClCompile Include="frmts\pcraster\libcsf\gety0.c" />
- <ClCompile Include="frmts\pcraster\libcsf\ggisfid.c" />
- <ClCompile Include="frmts\pcraster\libcsf\gmaxval.c" />
- <ClCompile Include="frmts\pcraster\libcsf\gminval.c" />
- <ClCompile Include="frmts\pcraster\libcsf\gnrcols.c" />
- <ClCompile Include="frmts\pcraster\libcsf\gnrrows.c" />
- <ClCompile Include="frmts\pcraster\libcsf\gproj.c" />
- <ClCompile Include="frmts\pcraster\libcsf\gputproj.c" />
- <ClCompile Include="frmts\pcraster\libcsf\gvalscal.c" />
- <ClCompile Include="frmts\pcraster\libcsf\gvartype.c" />
- <ClCompile Include="frmts\pcraster\libcsf\gversion.c" />
- <ClCompile Include="frmts\pcraster\libcsf\ismv.c" />
- <ClCompile Include="frmts\pcraster\libcsf\kernlcsf.c" />
- <ClCompile Include="frmts\pcraster\libcsf\legend.c" />
- <ClCompile Include="frmts\pcraster\libcsf\mclose.c" />
- <ClCompile Include="frmts\pcraster\libcsf\mopen.c" />
- <ClCompile Include="frmts\pcraster\libcsf\moreattr.c" />
- <ClCompile Include="frmts\pcraster\libcsf\mperror.c" />
- <ClCompile Include="frmts\pcraster\libcsf\pgisfid.c" />
- <ClCompile Include="frmts\pcraster\libcsf\pmaxval.c" />
- <ClCompile Include="frmts\pcraster\libcsf\pminval.c" />
- <ClCompile Include="frmts\pcraster\libcsf\putallmv.c" />
- <ClCompile Include="frmts\pcraster\libcsf\putattr.c" />
- <ClCompile Include="frmts\pcraster\libcsf\putsomec.c" />
- <ClCompile Include="frmts\pcraster\libcsf\putx0.c" />
- <ClCompile Include="frmts\pcraster\libcsf\puty0.c" />
- <ClCompile Include="frmts\pcraster\libcsf\pvalscal.c" />
- <ClCompile Include="frmts\pcraster\libcsf\rattrblk.c" />
- <ClCompile Include="frmts\pcraster\libcsf\rcomp.c" />
- <ClCompile Include="frmts\pcraster\libcsf\rcoords.c" />
- <ClCompile Include="frmts\pcraster\libcsf\rdup2.c" />
- <ClCompile Include="frmts\pcraster\libcsf\reseterr.c" />
- <ClCompile Include="frmts\pcraster\libcsf\rextend.c" />
- <ClCompile Include="frmts\pcraster\libcsf\rmalloc.c" />
- <ClCompile Include="frmts\pcraster\libcsf\rrowcol.c" />
- <ClCompile Include="frmts\pcraster\libcsf\ruseas.c" />
- <ClCompile Include="frmts\pcraster\libcsf\setangle.c" />
- <ClCompile Include="frmts\pcraster\libcsf\setmv.c" />
- <ClCompile Include="frmts\pcraster\libcsf\setvtmv.c" />
- <ClCompile Include="frmts\pcraster\libcsf\strconst.c" />
- <ClCompile Include="frmts\pcraster\libcsf\strpad.c" />
- <ClCompile Include="frmts\pcraster\libcsf\swapio.c" />
- <ClCompile Include="frmts\pcraster\libcsf\trackmm.c" />
- <ClCompile Include="frmts\pcraster\libcsf\vs2.c" />
- <ClCompile Include="frmts\pcraster\libcsf\vsdef.c" />
- <ClCompile Include="frmts\pcraster\libcsf\vsis.c" />
- <ClCompile Include="frmts\pcraster\libcsf\vsvers.c" />
- <ClCompile Include="frmts\pcraster\libcsf\wattrblk.c" />
- <ClCompile Include="frmts\pcraster\libcsf\_getcell.c" />
- <ClCompile Include="frmts\pcraster\libcsf\_getrow.c" />
- <ClCompile Include="frmts\pcraster\libcsf\_gsomece.c" />
- <ClCompile Include="frmts\pcraster\libcsf\_putcell.c" />
- <ClCompile Include="frmts\pcraster\libcsf\_rputrow.c" />
- <ClCompile Include="frmts\pds\isis2dataset.cpp" />
- <ClCompile Include="frmts\pds\isis3dataset.cpp" />
- <ClCompile Include="frmts\pds\nasakeywordhandler.cpp" />
- <ClCompile Include="frmts\pds\pdsdataset.cpp" />
- <ClCompile Include="frmts\pgchip\pgchipdataset.cpp" />
- <ClCompile Include="frmts\pgchip\pgchiprasterband.cpp" />
- <ClCompile Include="frmts\pgchip\pgchiputilities.cpp" />
- <ClCompile Include="frmts\png\pngdataset.cpp" />
- <ClCompile Include="frmts\png\libpng\png.c" />
- <ClCompile Include="frmts\png\libpng\pngerror.c" />
- <ClCompile Include="frmts\png\libpng\pnggccrd.c" />
- <ClCompile Include="frmts\png\libpng\pngget.c" />
- <ClCompile Include="frmts\png\libpng\pngmem.c" />
- <ClCompile Include="frmts\png\libpng\pngpread.c" />
- <ClCompile Include="frmts\png\libpng\pngread.c" />
- <ClCompile Include="frmts\png\libpng\pngrio.c" />
- <ClCompile Include="frmts\png\libpng\pngrtran.c" />
- <ClCompile Include="frmts\png\libpng\pngrutil.c" />
- <ClCompile Include="frmts\png\libpng\pngset.c" />
- <ClCompile Include="frmts\png\libpng\pngtrans.c" />
- <ClCompile Include="frmts\png\libpng\pngvcrd.c" />
- <ClCompile Include="frmts\png\libpng\pngwio.c" />
- <ClCompile Include="frmts\png\libpng\pngwrite.c" />
- <ClCompile Include="frmts\png\libpng\pngwtran.c" />
- <ClCompile Include="frmts\png\libpng\pngwutil.c" />
- <ClCompile Include="frmts\r\rcreatecopy.cpp" />
- <ClCompile Include="frmts\r\rdataset.cpp" />
- <ClCompile Include="frmts\rasterlite\rasterlitecreatecopy.cpp" />
- <ClCompile Include="frmts\rasterlite\rasterlitedataset.cpp" />
- <ClCompile Include="frmts\rasterlite\rasterliteoverviews.cpp" />
- <ClCompile Include="frmts\raw\atlsci_spheroid.cpp" />
- <ClCompile Include="frmts\raw\btdataset.cpp" />
- <ClCompile Include="frmts\raw\cpgdataset.cpp" />
- <ClCompile Include="frmts\raw\dipxdataset.cpp" />
- <ClCompile Include="frmts\raw\doq1dataset.cpp" />
- <ClCompile Include="frmts\raw\doq2dataset.cpp" />
- <ClCompile Include="frmts\raw\ehdrdataset.cpp" />
- <ClCompile Include="frmts\raw\eirdataset.cpp" />
- <ClCompile Include="frmts\raw\envidataset.cpp" />
- <ClCompile Include="frmts\raw\fastdataset.cpp" />
- <ClCompile Include="frmts\raw\fujibasdataset.cpp" />
- <ClCompile Include="frmts\raw\genbindataset.cpp" />
- <ClCompile Include="frmts\raw\gscdataset.cpp" />
- <ClCompile Include="frmts\raw\hkvdataset.cpp" />
- <ClCompile Include="frmts\raw\idadataset.cpp" />
- <ClCompile Include="frmts\raw\landataset.cpp" />
- <ClCompile Include="frmts\raw\lcpdataset.cpp" />
- <ClCompile Include="frmts\raw\mffdataset.cpp" />
- <ClCompile Include="frmts\raw\ndfdataset.cpp" />
- <ClCompile Include="frmts\raw\pauxdataset.cpp" />
- <ClCompile Include="frmts\raw\pnmdataset.cpp" />
- <ClCompile Include="frmts\raw\rawdataset.cpp" />
- <ClCompile Include="frmts\rik\rikdataset.cpp" />
- <ClCompile Include="frmts\rmf\rmfdataset.cpp" />
- <ClCompile Include="frmts\rmf\rmflzw.cpp" />
- <ClCompile Include="frmts\rs2\rs2dataset.cpp" />
- <ClCompile Include="frmts\saga\sagadataset.cpp" />
- <ClCompile Include="frmts\sde\sdedataset.cpp" />
- <ClCompile Include="frmts\sde\sdeerror.cpp" />
- <ClCompile Include="frmts\sde\sderasterband.cpp" />
- <ClCompile Include="frmts\sdts\sdts2shp.cpp" />
- <ClCompile Include="frmts\sdts\sdtsattrreader.cpp" />
- <ClCompile Include="frmts\sdts\sdtscatd.cpp" />
- <ClCompile Include="frmts\sdts\sdtsdataset.cpp" />
- <ClCompile Include="frmts\sdts\sdtsindexedreader.cpp" />
- <ClCompile Include="frmts\sdts\sdtsiref.cpp" />
- <ClCompile Include="frmts\sdts\sdtslib.cpp" />
- <ClCompile Include="frmts\sdts\sdtslinereader.cpp" />
- <ClCompile Include="frmts\sdts\sdtspointreader.cpp" />
- <ClCompile Include="frmts\sdts\sdtspolygonreader.cpp" />
- <ClCompile Include="frmts\sdts\sdtsrasterreader.cpp" />
- <ClCompile Include="frmts\sdts\sdtstransfer.cpp" />
- <ClCompile Include="frmts\sdts\sdtsxref.cpp" />
- <ClCompile Include="frmts\sgi\sgidataset.cpp" />
- <ClCompile Include="frmts\srtmhgt\srtmhgtdataset.cpp" />
- <ClCompile Include="frmts\terragen\terragendataset.cpp" />
- <ClCompile Include="frmts\terralib\TerraLibDataset.cpp" />
- <ClCompile Include="frmts\terralib\TerraLibRasterBand.cpp" />
- <ClCompile Include="frmts\til\tildataset.cpp" />
- <ClCompile Include="frmts\tsx\tsxdataset.cpp" />
- <ClCompile Include="frmts\usgsdem\usgsdemdataset.cpp" />
- <ClCompile Include="frmts\usgsdem\usgsdem_create.cpp" />
- <ClCompile Include="frmts\vrt\vrtdataset.cpp" />
- <ClCompile Include="frmts\vrt\vrtderivedrasterband.cpp" />
- <ClCompile Include="frmts\vrt\vrtdriver.cpp" />
- <ClCompile Include="frmts\vrt\vrtfilters.cpp" />
- <ClCompile Include="frmts\vrt\vrtrasterband.cpp" />
- <ClCompile Include="frmts\vrt\vrtrawrasterband.cpp" />
- <ClCompile Include="frmts\vrt\vrtsourcedrasterband.cpp" />
- <ClCompile Include="frmts\vrt\vrtsources.cpp" />
- <ClCompile Include="frmts\vrt\vrtwarped.cpp" />
- <ClCompile Include="frmts\wcs\httpdriver.cpp" />
- <ClCompile Include="frmts\wcs\wcsdataset.cpp" />
- <ClCompile Include="frmts\wktraster\wktrasterdataset.cpp" />
- <ClCompile Include="frmts\wktraster\wktrasterrasterband.cpp" />
- <ClCompile Include="frmts\wktraster\wktrasterwrapper.cpp" />
- <ClCompile Include="frmts\wms\cache.cpp" />
- <ClCompile Include="frmts\wms\dataset.cpp" />
- <ClCompile Include="frmts\wms\gdalhttp.cpp" />
- <ClCompile Include="frmts\wms\md5.cpp" />
- <ClCompile Include="frmts\wms\minidriver.cpp" />
- <ClCompile Include="frmts\wms\minidriver_tileservice.cpp" />
- <ClCompile Include="frmts\wms\minidriver_tms.cpp" />
- <ClCompile Include="frmts\wms\minidriver_wms.cpp" />
- <ClCompile Include="frmts\wms\minidriver_worldwind.cpp" />
- <ClCompile Include="frmts\wms\rasterband.cpp" />
- <ClCompile Include="frmts\wms\stuff.cpp" />
- <ClCompile Include="frmts\wms\wmsdriver.cpp" />
- <ClCompile Include="frmts\xpm\xpmdataset.cpp" />
- <ClCompile Include="frmts\zlib\adler32.c" />
- <ClCompile Include="frmts\zlib\compress.c" />
- <ClCompile Include="frmts\zlib\crc32.c" />
- <ClCompile Include="frmts\zlib\deflate.c" />
- <ClCompile Include="frmts\zlib\gzio.c" />
- <ClCompile Include="frmts\zlib\infback.c" />
- <ClCompile Include="frmts\zlib\inffast.c" />
- <ClCompile Include="frmts\zlib\inflate.c" />
- <ClCompile Include="frmts\zlib\inftrees.c" />
- <ClCompile Include="frmts\zlib\trees.c" />
- <ClCompile Include="frmts\zlib\uncompr.c" />
- <ClCompile Include="frmts\zlib\zutil.c" />
- <ClCompile Include="gcore\gdalallvalidmaskband.cpp" />
- <ClCompile Include="gcore\gdalcolortable.cpp" />
- <ClCompile Include="gcore\gdaldataset.cpp" />
- <ClCompile Include="gcore\gdaldefaultoverviews.cpp" />
- <ClCompile Include="gcore\gdaldriver.cpp" />
- <ClCompile Include="gcore\gdaldrivermanager.cpp" />
- <ClCompile Include="gcore\gdalgmlcoverage.cpp" />
- <ClCompile Include="gcore\gdaljp2box.cpp" />
- <ClCompile Include="gcore\gdaljp2metadata.cpp" />
- <ClCompile Include="gcore\gdalmajorobject.cpp" />
- <ClCompile Include="gcore\gdalmultidomainmetadata.cpp" />
- <ClCompile Include="gcore\gdalnodatamaskband.cpp" />
- <ClCompile Include="gcore\gdalnodatavaluesmaskband.cpp" />
- <ClCompile Include="gcore\gdalopeninfo.cpp" />
- <ClCompile Include="gcore\gdalpamdataset.cpp" />
- <ClCompile Include="gcore\gdalpamproxydb.cpp" />
- <ClCompile Include="gcore\gdalpamrasterband.cpp" />
- <ClCompile Include="gcore\gdalproxydataset.cpp" />
- <ClCompile Include="gcore\gdalproxypool.cpp" />
- <ClCompile Include="gcore\gdalrasterband.cpp" />
- <ClCompile Include="gcore\gdalrasterblock.cpp" />
- <ClCompile Include="gcore\gdal_misc.cpp" />
- <ClCompile Include="gcore\gdal_rat.cpp" />
- <ClCompile Include="gcore\gdal_rpcimdio.cpp" />
- <ClCompile Include="gcore\overview.cpp" />
- <ClCompile Include="gcore\rasterio.cpp" />
- <ClCompile Include="ogr\ogr_capi_test.c" />
- <ClCompile Include="ogr\swq.c" />
- <ClCompile Include="ogr\gml2ogrgeometry.cpp" />
- <ClCompile Include="ogr\ogr2gmlgeometry.cpp" />
- <ClCompile Include="ogr\ograssemblepolygon.cpp" />
- <ClCompile Include="ogr\ogrct.cpp" />
- <ClCompile Include="ogr\ogrcurve.cpp" />
- <ClCompile Include="ogr\ogrfeature.cpp" />
- <ClCompile Include="ogr\ogrfeaturedefn.cpp" />
- <ClCompile Include="ogr\ogrfeaturequery.cpp" />
- <ClCompile Include="ogr\ogrfeaturestyle.cpp" />
- <ClCompile Include="ogr\ogrfielddefn.cpp" />
- <ClCompile Include="ogr\ogrgeometry.cpp" />
- <ClCompile Include="ogr\ogrgeometrycollection.cpp" />
- <ClCompile Include="ogr\ogrgeometryfactory.cpp" />
- <ClCompile Include="ogr\ogrlinearring.cpp" />
- <ClCompile Include="ogr\ogrlinestring.cpp" />
- <ClCompile Include="ogr\ogrmultilinestring.cpp" />
- <ClCompile Include="ogr\ogrmultipoint.cpp" />
- <ClCompile Include="ogr\ogrmultipolygon.cpp" />
- <ClCompile Include="ogr\ogrpoint.cpp" />
- <ClCompile Include="ogr\ogrpolygon.cpp" />
- <ClCompile Include="ogr\ogrspatialreference.cpp" />
- <ClCompile Include="ogr\ogrsurface.cpp" />
- <ClCompile Include="ogr\ogrutils.cpp" />
- <ClCompile Include="ogr\ogr_api.cpp" />
- <ClCompile Include="ogr\ogr_expat.cpp" />
- <ClCompile Include="ogr\ogr_fromepsg.cpp" />
- <ClCompile Include="ogr\ogr_opt.cpp" />
- <ClCompile Include="ogr\ogr_srsnode.cpp" />
- <ClCompile Include="ogr\ogr_srs_dict.cpp" />
- <ClCompile Include="ogr\ogr_srs_erm.cpp" />
- <ClCompile Include="ogr\ogr_srs_esri.cpp" />
- <ClCompile Include="ogr\ogr_srs_ozi.cpp" />
- <ClCompile Include="ogr\ogr_srs_panorama.cpp" />
- <ClCompile Include="ogr\ogr_srs_pci.cpp" />
- <ClCompile Include="ogr\ogr_srs_proj4.cpp" />
- <ClCompile Include="ogr\ogr_srs_usgs.cpp" />
- <ClCompile Include="ogr\ogr_srs_validate.cpp" />
- <ClCompile Include="ogr\ogr_srs_xml.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_bin.c" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_binwr.c" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_e00gen.c" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_e00parse.c" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_e00read.c" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_e00write.c" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_mbyte.c" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_misc.c" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_rawbin.c" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\ogravcbindatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\ogravcbindriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\ogravcbinlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\ogravcdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\ogravce00datasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\ogravce00driver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\ogravce00layer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\avc\ogravclayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\bna\ogrbnadatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\bna\ogrbnadriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\bna\ogrbnalayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\bna\ogrbnaparser.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\csv\ogrcsvdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\csv\ogrcsvdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\csv\ogrcsvlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dgn\dgndump.c" />
- <ClCompile Include="ogr\ogrsf_frmts\dgn\dgnwritetest.c" />
- <ClCompile Include="ogr\ogrsf_frmts\dgn\dgnfloat.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dgn\dgnhelp.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dgn\dgnopen.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dgn\dgnread.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dgn\dgnstroke.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dgn\dgnwrite.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dgn\ogrdgndatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dgn\ogrdgndriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dgn\ogrdgnlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dods\ogrdodsdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dods\ogrdodsdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dods\ogrdodsfielddefn.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dods\ogrdodsgrid.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dods\ogrdodslayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dods\ogrdodssequencelayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dxf\ogrdxfdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dxf\ogrdxfdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dxf\ogrdxflayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dxf\ogrdxfwriterds.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dxf\ogrdxfwriterlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dxf\ogrdxf_blockmap.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dxf\ogrdxf_dimension.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\dxf\ogrdxf_diskio.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\fme\fme2ogr_utils.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\fme\ogrfmecacheindex.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\fme\ogrfmedatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\fme\ogrfmedriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\fme\ogrfmelayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\fme\ogrfmelayercached.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\fme\ogrfmelayerdb.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\generic\ogrdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\generic\ogrlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\generic\ogrregisterall.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\generic\ogrsfdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\generic\ogrsfdriverregistrar.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\generic\ogr_attrind.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\generic\ogr_gensql.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\generic\ogr_miattrind.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\geoconcept\geoconcept.c" />
- <ClCompile Include="ogr\ogrsf_frmts\geoconcept\geoconcept_syscoord.c" />
- <ClCompile Include="ogr\ogrsf_frmts\geoconcept\ogrgeoconceptdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\geoconcept\ogrgeoconceptdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\geoconcept\ogrgeoconceptlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\geojson\ogrgeojsondatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\geojson\ogrgeojsondriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\geojson\ogrgeojsonlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\geojson\ogrgeojsonreader.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\geojson\ogrgeojsonutils.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\geojson\ogrgeojsonwriter.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\geojson\jsonc\arraylist.c" />
- <ClCompile Include="ogr\ogrsf_frmts\geojson\jsonc\debug.c" />
- <ClCompile Include="ogr\ogrsf_frmts\geojson\jsonc\json_object.c" />
- <ClCompile Include="ogr\ogrsf_frmts\geojson\jsonc\json_tokener.c" />
- <ClCompile Include="ogr\ogrsf_frmts\geojson\jsonc\json_util.c" />
- <ClCompile Include="ogr\ogrsf_frmts\geojson\jsonc\linkhash.c" />
- <ClCompile Include="ogr\ogrsf_frmts\geojson\jsonc\printbuf.c" />
- <ClCompile Include="ogr\ogrsf_frmts\georss\ogrgeorssdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\georss\ogrgeorssdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\georss\ogrgeorsslayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gml\gmlfeature.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gml\gmlfeatureclass.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gml\gmlhandler.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gml\gmlpropertydefn.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gml\gmlreader.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gml\gmlreadstate.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gml\ogrgmldatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gml\ogrgmldriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gml\ogrgmllayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gml\parsexsd.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gml\trstring.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gml\resolvexlinks.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gmt\ogrgmtdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gmt\ogrgmtdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gmt\ogrgmtlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gpx\ogrgpxdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gpx\ogrgpxdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gpx\ogrgpxlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\grass\ogrgrassdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\grass\ogrgrassdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\grass\ogrgrasslayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gtm\gtm.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gtm\gtmtracklayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gtm\gtmwaypointlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gtm\ogrgtmdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gtm\ogrgtmdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\gtm\ogrgtmlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\idb\ogridbdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\idb\ogridbdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\idb\ogridblayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\idb\ogridbselectlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\idb\ogridbtablelayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\ili1reader.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\ili2handler.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\ili2reader.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\ilihelper.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\iomhelper.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\ogrili1datasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\ogrili1driver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\ogrili1layer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\ogrili2datasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\ogrili2driver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\ogrili2layer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\iom_attr.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\iom_basket.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\iom_error.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\iom_file.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\iom_iterator.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\iom_object.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\iom_utilities.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\iom_value.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\reader.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\tags.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\ustrings.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\writer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ingres\ogringresdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ingres\ogringresdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ingres\ogringreslayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ingres\ogringresresultlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ingres\ogringresstatement.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ingres\ogringrestablelayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\kml\kml.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\kml\kmlnode.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\kml\kmlvector.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\kml\ogr2kmlgeometry.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\kml\ogrkmldatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\kml\ogrkmldriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\kml\ogrkmllayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mem\ogrmemdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mem\ogrmemdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mem\ogrmemlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_bounds.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_coordsys.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_datfile.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_feature.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_feature_mif.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_geometry.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_idfile.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_imapinfofile.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_indfile.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_mapcoordblock.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_mapfile.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_mapheaderblock.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_mapindexblock.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_mapobjectblock.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_maptoolblock.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_middatafile.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_miffile.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_ogr_datasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_ogr_driver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_rawbinblock.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_spatialref.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_tabfile.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_tabseamless.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_tabview.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_tooldef.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_utils.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mysql\ogrmysqldatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mysql\ogrmysqldriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mysql\ogrmysqllayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mysql\ogrmysqlresultlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\mysql\ogrmysqltablelayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ntfdump.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ntffilereader.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ntfrecord.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ntfstroke.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ntf_codelist.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ntf_estlayers.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ntf_generic.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ntf_raster.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ogrntfdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ogrntfdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ogrntffeatureclasslayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ogrntflayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\oci\fastload.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\oci\ocitest.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\oci\oci_utils.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrocidatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrocidriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrocilayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrociloaderlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrociselectlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrocisession.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrocistatement.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrocistringbuf.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrocistroke.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrocitablelayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrociwritablelayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\odbc\ogrodbcdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\odbc\ogrodbcdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\odbc\ogrodbclayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\odbc\ogrodbcselectlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\odbc\ogrodbctablelayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ogdi\ogrogdidatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ogdi\ogrogdidriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\ogdi\ogrogdilayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\pcidsk\ogrpcidskdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\pcidsk\ogrpcidskdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\pcidsk\ogrpcidsklayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\pg\ogrpgdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\pg\ogrpgdebug.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\pg\ogrpgdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\pg\ogrpglayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\pg\ogrpgresultlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\pg\ogrpgtablelayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\pgeo\ogrpgeodatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\pgeo\ogrpgeodriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\pgeo\ogrpgeolayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\pgeo\ogrpgeoselectlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\pgeo\ogrpgeotablelayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\rec\ll_recio.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\rec\ogrrecdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\rec\ogrrecdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\rec\ogrreclayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\s57\ddfrecordindex.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\s57\ogrs57datasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\s57\ogrs57driver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\s57\ogrs57layer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\s57\s57classregistrar.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\s57\s57dump.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\s57\s57featuredefns.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\s57\s57filecollector.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\s57\s57reader.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\s57\s57writer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\sde\ogrsdedatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\sde\ogrsdedriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\sde\ogrsdelayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\sdts\ogrsdtsdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\sdts\ogrsdtsdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\sdts\ogrsdtslayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\shape\dbfopen.c" />
- <ClCompile Include="ogr\ogrsf_frmts\shape\shpopen.c" />
- <ClCompile Include="ogr\ogrsf_frmts\shape\shptree.c" />
- <ClCompile Include="ogr\ogrsf_frmts\shape\shp_vsi.c" />
- <ClCompile Include="ogr\ogrsf_frmts\shape\ogrshapedatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\shape\ogrshapedriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\shape\ogrshapelayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\shape\shape2ogr.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\sqlite\ogrsqlitedatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\sqlite\ogrsqlitedriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\sqlite\ogrsqlitelayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\sqlite\ogrsqliteselectlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\sqlite\ogrsqlitetablelayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\ogrtigerdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\ogrtigerdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\ogrtigerlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigeraltname.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerarealandmarks.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigercompletechain.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerentitynames.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerfeatureids.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerfilebase.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigeridhistory.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerinfo.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerkeyfeatures.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerlandmarks.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigeroverunder.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerpip.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerpoint.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerpolychainlink.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerpolygon.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerpolygoncorrections.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerpolygoneconomic.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerspatialmetadata.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigertlidrange.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerzerocellid.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerzipcodes.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerzipplus4.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\vrt\ogrvrtdatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\vrt\ogrvrtdriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\vrt\ogrvrtlayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogrxplanedatasource.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogrxplanedriver.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogrxplanelayer.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogr_xplane_apt_reader.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogr_xplane_awy_reader.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogr_xplane_fix_reader.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogr_xplane_geo_utils.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogr_xplane_nav_reader.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogr_xplane_reader.cpp" />
- <ClCompile Include="ogr\ogrsf_frmts\xplane\test_geo_utils.cpp" />
- <ClCompile Include="ogr\wcts\ogrwcts.cpp" />
- <ClCompile Include="ogr\wcts\wctsclient.cpp" />
- <ClCompile Include="port\cplgetsymbol.cpp" />
- <ClCompile Include="port\cplkeywordparser.cpp" />
- <ClCompile Include="port\cplstring.cpp" />
- <ClCompile Include="port\cpl_atomic_ops.cpp" />
- <ClCompile Include="port\cpl_conv.cpp" />
- <ClCompile Include="port\cpl_csv.cpp" />
- <ClCompile Include="port\cpl_error.cpp" />
- <ClCompile Include="port\cpl_findfile.cpp" />
- <ClCompile Include="port\cpl_getexecpath.cpp" />
- <ClCompile Include="port\cpl_hash_set.cpp" />
- <ClCompile Include="port\cpl_http.cpp" />
- <ClCompile Include="port\cpl_list.cpp" />
- <ClCompile Include="port\cpl_minixml.cpp" />
- <ClCompile Include="port\cpl_minizip_ioapi.cpp" />
- <ClCompile Include="port\cpl_minizip_unzip.cpp" />
- <ClCompile Include="port\cpl_multiproc.cpp" />
- <ClCompile Include="port\cpl_odbc.cpp" />
- <ClCompile Include="port\cpl_path.cpp" />
- <ClCompile Include="port\cpl_quad_tree.cpp" />
- <ClCompile Include="port\cpl_recode_stub.cpp" />
- <ClCompile Include="port\cpl_string.cpp" />
- <ClCompile Include="port\cpl_strtod.cpp" />
- <ClCompile Include="port\cpl_time.cpp" />
- <ClCompile Include="port\cpl_vsil.cpp" />
- <ClCompile Include="port\cpl_vsil_gzip.cpp" />
- <ClCompile Include="port\cpl_vsil_simple.cpp" />
- <ClCompile Include="port\cpl_vsil_subfile.cpp" />
- <ClCompile Include="port\cpl_vsil_unix_stdio_64.cpp" />
- <ClCompile Include="port\cpl_vsil_win32.cpp" />
- <ClCompile Include="port\cpl_vsisimple.cpp" />
- <ClCompile Include="port\cpl_vsi_mem.cpp" />
- <ClCompile Include="port\cpl_win32ce_api.cpp" />
- <ClCompile Include="port\xmlreformat.cpp" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/makegdal10.vcxproj.filters b/makegdal10.vcxproj.filters
deleted file mode 100644
index 3c35137..0000000
--- a/makegdal10.vcxproj.filters
+++ /dev/null
@@ -1,6189 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Include Files">
- <UniqueIdentifier>{2f55a3da-3fbb-4feb-a97c-4b21b8d82cb0}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\alg">
- <UniqueIdentifier>{3c8dd82a-4d13-4b46-ae61-7fb8c0937ca3}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\bridge">
- <UniqueIdentifier>{1141cd6a-d3f4-40d2-8835-73c9e1ab84d5}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts">
- <UniqueIdentifier>{3b306177-22e5-4335-ad4b-9dc6974b190e}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\aigrid">
- <UniqueIdentifier>{a9d6e342-e6b4-41fb-bab7-d04e9f3b46cd}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\blx">
- <UniqueIdentifier>{8f2f1cde-5371-4730-85bd-eb290e5e2231}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\bsb">
- <UniqueIdentifier>{5200ecc8-0476-4bd5-94a7-34b2dd0e19c0}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\ceos">
- <UniqueIdentifier>{189cc4c4-ff9c-4435-893c-4ca3be8c0104}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\ceos2">
- <UniqueIdentifier>{d02b9674-173c-4f2a-b57c-cf8194411c09}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\dted">
- <UniqueIdentifier>{fdb3c533-fce5-400e-bcd2-60ddb358ad4e}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\ecw">
- <UniqueIdentifier>{068a88d1-0de9-4fb2-966a-8a1de1a9c23c}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\envisat">
- <UniqueIdentifier>{ad39a88e-93c1-4b28-8d7c-01ffeb365cb8}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\ers">
- <UniqueIdentifier>{7d3868ff-b774-449f-b42b-80e859a7d135}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\fit">
- <UniqueIdentifier>{ab5124a1-3cc8-405d-bed0-993440b446e9}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\georaster">
- <UniqueIdentifier>{f9ca78be-5556-4ebd-b9f0-9944ceb98ecb}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\gif">
- <UniqueIdentifier>{c8b9f41d-40e2-4db8-a174-8a7decc6d23c}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\gif\giflib">
- <UniqueIdentifier>{7a2161ee-872f-4b57-b21e-b44041a9916f}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\grib">
- <UniqueIdentifier>{7fc047ab-2073-411c-af58-398005df5095}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\grib\degrib18">
- <UniqueIdentifier>{0bcc2343-2280-4289-87e2-0548f685f604}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\grib\degrib18\degrib">
- <UniqueIdentifier>{b094e079-9f6a-40ee-9278-6eda00265ba4}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\grib\degrib18\g2clib-1.0.4">
- <UniqueIdentifier>{7fffced3-4414-4e7d-a304-0e1f40f644a4}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\gtiff">
- <UniqueIdentifier>{83a76012-946d-4890-bbe3-57eaf09d1171}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\gtiff\libgeotiff">
- <UniqueIdentifier>{7e0695eb-f3df-4e92-a214-fbf12bdbdd68}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\gtiff\libtiff">
- <UniqueIdentifier>{9c44403b-c093-4a5b-9c24-5a83951439ed}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\gxf">
- <UniqueIdentifier>{9546b9cf-7fe5-4306-bdaa-de40b91f5366}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\hdf4">
- <UniqueIdentifier>{a49c61f6-06cf-47e6-bb21-0f4a98ed4464}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\hdf4\hdf-eos">
- <UniqueIdentifier>{f136f844-6f5b-463a-bd2c-e13c89b7e1d4}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\hdf5">
- <UniqueIdentifier>{d8b714fe-866a-4a94-ad5f-922cb00383e9}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\hfa">
- <UniqueIdentifier>{04760ca6-9175-4daa-8d00-43dea11c2a2d}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\ilwis">
- <UniqueIdentifier>{a8eb8f61-6410-49f3-b566-85a37d85d778}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\ingr">
- <UniqueIdentifier>{4eba1326-d7ec-4574-9440-01d6c1c55821}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\iso8211">
- <UniqueIdentifier>{8fc006db-1e97-40fe-b457-34eea7543cb8}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\jp2kak">
- <UniqueIdentifier>{4b60475c-6ca5-46ea-b469-7c21d9c879ad}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\jpeg">
- <UniqueIdentifier>{b80aaa42-cb0e-4d0d-973b-f11a38be6a8e}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\jpeg2000">
- <UniqueIdentifier>{d06c876d-cc51-4dfe-8202-08245dd3a0b3}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\jpeg\libjpeg">
- <UniqueIdentifier>{fdab96b1-db99-4f3d-9295-dffaa0839e9c}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\jpeg\libjpeg12">
- <UniqueIdentifier>{49258e92-5b8f-4b94-b49b-47a3e65b4a6a}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\mem">
- <UniqueIdentifier>{5c3aea17-4c76-44e8-9f80-100a2e487347}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\mrsid">
- <UniqueIdentifier>{bf2f4fef-45da-47e0-9182-037dadb909bb}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\msg">
- <UniqueIdentifier>{d5f2db3b-12f5-427e-bbc8-64f59dac37d4}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\msgn">
- <UniqueIdentifier>{d68de4f2-d518-40d5-8ae6-99748516ae1a}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\netcdf">
- <UniqueIdentifier>{668dc5b2-9487-4556-a878-eb241aa1ba93}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\nitf">
- <UniqueIdentifier>{58bc633d-be8a-4b56-acb7-398df532152f}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\northwood">
- <UniqueIdentifier>{ea792768-c8ad-4383-80aa-527273d61209}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\pcidsk">
- <UniqueIdentifier>{3eefa40e-576b-4f39-98c9-3cf9fdaa72b4}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\pcidsk\sdk">
- <UniqueIdentifier>{c2c26c6c-0de7-43b6-9b08-f789445322d0}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\pcidsk\sdk\channel">
- <UniqueIdentifier>{0867d6c4-acf6-4cbf-b1ba-1359f490074e}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\pcidsk\sdk\core">
- <UniqueIdentifier>{1a466673-8690-483d-829c-03c5d35dfbc9}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\pcidsk\sdk\segment">
- <UniqueIdentifier>{c96a2269-8520-4b79-91da-26a69f1ddff2}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\pcraster">
- <UniqueIdentifier>{0658187a-93cc-4cd4-b878-49b6412a87ed}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\pcraster\libcsf">
- <UniqueIdentifier>{b21948ca-faa1-4b8e-8076-e011646fdffd}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\pds">
- <UniqueIdentifier>{780b4b7c-36b0-46ac-b597-595be3f5de25}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\pgchip">
- <UniqueIdentifier>{40ad555e-7e5a-46c0-9fa4-53a55f36ed58}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\png">
- <UniqueIdentifier>{a5f6ece0-aefb-4409-bd65-bc754acb4d6e}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\png\libpng">
- <UniqueIdentifier>{2e9c523e-a83c-4d6f-8d47-a4e5be16aae7}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\rasterlite">
- <UniqueIdentifier>{af93aefe-41cd-4e53-85f0-aa88bca58c11}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\raw">
- <UniqueIdentifier>{99f97897-780e-41be-9847-b48e34bd43bc}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\rmf">
- <UniqueIdentifier>{3358daf0-f9b1-490b-aba0-7426411c7507}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\sde">
- <UniqueIdentifier>{85035bd4-facd-46a1-9578-fbc87a33270a}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\sdts">
- <UniqueIdentifier>{94f5f379-9335-49d4-8906-807bef4ec41a}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\terralib">
- <UniqueIdentifier>{30b5a1bd-54fd-400f-8efa-aa2b9f13c68c}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\vrt">
- <UniqueIdentifier>{c2e41630-3cd3-4f25-b006-937c634bcde3}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\wktraster">
- <UniqueIdentifier>{b044f4a2-68b7-4062-bfc6-d49423f06027}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\wms">
- <UniqueIdentifier>{68178620-c530-4688-88ef-dd098921e74a}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\frmts\zlib">
- <UniqueIdentifier>{2070067d-c02b-40a1-a79b-d615a0646f74}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\gcore">
- <UniqueIdentifier>{5745d2bf-d658-40d7-b267-4ccd30cd9411}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr">
- <UniqueIdentifier>{2847e7fc-14a9-43f1-aa6c-08f4bc673b3e}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts">
- <UniqueIdentifier>{19fd9459-bd97-4b88-8469-1b53127372ca}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\avc">
- <UniqueIdentifier>{9d52b360-8b65-46d5-93b9-f20aaed0fb1d}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\bna">
- <UniqueIdentifier>{933074f0-e7c1-4be4-9eca-f52739c5b86a}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\csv">
- <UniqueIdentifier>{31c3ef4b-2668-4869-a741-e5b1a8fa4d45}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\dgn">
- <UniqueIdentifier>{0bc460f6-dc12-4bb3-ba8b-708e434cf0e9}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\dgn\dist">
- <UniqueIdentifier>{412e0bd2-e72f-40f0-8afd-18062fba4742}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\dods">
- <UniqueIdentifier>{58d85331-bbdb-49de-866e-6b44f0c7b946}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\dxf">
- <UniqueIdentifier>{590a9b54-025e-43b0-bf72-4d5d26df3ae3}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\fme">
- <UniqueIdentifier>{31e3ce42-110a-4011-8f58-859f9d15703f}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\generic">
- <UniqueIdentifier>{525c4fca-d686-4229-aa7d-9f2c9f1e694a}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\geoconcept">
- <UniqueIdentifier>{d3245ad2-00d3-4c36-9f6f-1d66a0dc069a}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\geojson">
- <UniqueIdentifier>{074bf0fb-69aa-435e-8a48-db18d5008d5b}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\geojson\jsonc">
- <UniqueIdentifier>{1f2c10e3-ca1c-4a1d-b240-5227e82af0ae}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\georss">
- <UniqueIdentifier>{f8900753-f23c-485f-9838-d124f60479b0}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\gml">
- <UniqueIdentifier>{d443a5c8-4214-4c3e-85cc-ad489c74fc53}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\gmt">
- <UniqueIdentifier>{dec8410d-d7fe-463c-b588-7ab3c987e67b}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\gpx">
- <UniqueIdentifier>{611248cf-6c5e-464b-84ee-619974b99e93}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\grass">
- <UniqueIdentifier>{f66f5ad7-2fa2-4898-bf4f-be43e44c8f3b}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\gtm">
- <UniqueIdentifier>{40f59e07-013e-4790-96c5-dcf6e2a26a9f}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\idb">
- <UniqueIdentifier>{bfb13fd8-4c09-408b-a9de-a90052009415}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\ili">
- <UniqueIdentifier>{2f665bda-eaa3-4858-88e8-e2ae651344f1}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\ili\iom">
- <UniqueIdentifier>{a263922b-03e7-415a-8375-2c71b5f7e39b}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\ingres">
- <UniqueIdentifier>{033a9c35-c99d-41c2-88ed-bf04f1450607}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\kml">
- <UniqueIdentifier>{7dda55e5-aab1-4c3a-be13-8f0054b6198c}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\mem">
- <UniqueIdentifier>{669d0482-de71-4724-af30-0bda3d97e331}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\mitab">
- <UniqueIdentifier>{025ea4f5-c6e6-45f4-8355-b12f19167bb3}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\mysql">
- <UniqueIdentifier>{b72fdc31-b01e-49b5-86c0-72c1e4f0804d}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\ntf">
- <UniqueIdentifier>{d637acc7-e5cc-429a-9e06-75a5f1d0557c}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\oci">
- <UniqueIdentifier>{4524a9af-8afb-429c-98f2-68cfea89a4fd}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\odbc">
- <UniqueIdentifier>{e1b40b0f-50c9-4dd9-83cd-46baa77eec6a}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\ogdi">
- <UniqueIdentifier>{d5803ee5-39fb-4acf-86ce-94aa883593b3}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\pcidsk">
- <UniqueIdentifier>{e0a10aeb-ddbe-4ae5-b116-2d178171e03b}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\pg">
- <UniqueIdentifier>{ca3dd2bd-1a17-4417-afc8-d2d86b7612ba}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\pgeo">
- <UniqueIdentifier>{d1bb77f6-4c68-4ddd-8a89-ce573b823817}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\rec">
- <UniqueIdentifier>{ac709f33-4a52-45e0-a10b-c9650ec34ac3}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\s57">
- <UniqueIdentifier>{ec0f118f-a97b-42c8-b957-923e404f07eb}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\sde">
- <UniqueIdentifier>{fe901426-e7fc-44ad-9efd-90630c3a0d3f}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\sdts">
- <UniqueIdentifier>{f8fdef0b-ebf1-4aec-a262-6e370e1468c8}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\shape">
- <UniqueIdentifier>{e7817e52-f3c8-46f3-82c9-fbfe22dab2a2}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\sqlite">
- <UniqueIdentifier>{60333ed3-47d4-4b0f-9dab-57231270030b}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\tiger">
- <UniqueIdentifier>{dff3b123-5681-45e2-a056-91d8b6ef5b53}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\vrt">
- <UniqueIdentifier>{51acbeac-d845-4dc9-820e-ed78fcb6ce7b}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\ogr\ogrsf_frmts\xplane">
- <UniqueIdentifier>{5fa14b0e-b0da-4a70-8c23-536930ebd83d}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Include Files\port">
- <UniqueIdentifier>{9b3244fd-36de-435c-b607-e1429aa5b3b7}</UniqueIdentifier>
- <Extensions>*.h</Extensions>
- </Filter>
- <Filter Include="Make Files">
- <UniqueIdentifier>{42b56f40-348e-4cfa-8158-d0354a076f10}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\alg">
- <UniqueIdentifier>{b734fa2d-26f3-4ec1-94a9-0e5f3ab57666}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\apps">
- <UniqueIdentifier>{cd42c377-c8ec-4c86-8775-e7b1152ba356}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts">
- <UniqueIdentifier>{8722fc0c-8b1e-4c39-baad-21c16c68159b}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\aaigrid">
- <UniqueIdentifier>{542576b9-574d-4284-8408-a0805bd245e7}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\adrg">
- <UniqueIdentifier>{60d86538-ecef-4a78-a1cd-84b6eb21c2ce}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\aigrid">
- <UniqueIdentifier>{71cf509a-816e-42b7-960c-3c851baf0183}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\airsar">
- <UniqueIdentifier>{06c45a3d-c0eb-4cd4-8f14-dadae7fb4053}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\blx">
- <UniqueIdentifier>{5942ad14-6516-4d8a-a225-29402777f02f}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\bmp">
- <UniqueIdentifier>{5310240d-4467-41ba-98e8-24b6c06ab367}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\bsb">
- <UniqueIdentifier>{87de0449-be27-4d22-9807-e43d5204723f}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\ceos">
- <UniqueIdentifier>{b4104479-4f97-4c96-b6dc-a60f31d23e53}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\ceos2">
- <UniqueIdentifier>{47c7b80e-3cc4-4d2c-9b9d-772740e79380}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\coasp">
- <UniqueIdentifier>{ac4be524-2945-4b3d-810c-10088d531dba}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\cosar">
- <UniqueIdentifier>{0dd3e2ff-0aee-4364-9a46-effa672243fc}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\dimap">
- <UniqueIdentifier>{477c119a-e185-4397-a65c-2121cdd50e8d}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\dods">
- <UniqueIdentifier>{00e50a8d-f77e-4e7e-9fec-1d81635d9cb4}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\dted">
- <UniqueIdentifier>{dc91b401-d6b4-4dcc-a419-9b233e959384}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\ecw">
- <UniqueIdentifier>{a43f6b51-5323-482d-96b1-d6df4a8b9027}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\elas">
- <UniqueIdentifier>{d8969c54-4ca0-4e5d-9c9b-9b557bcb0539}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\envisat">
- <UniqueIdentifier>{7a4f3278-fc1c-47e2-8848-0e02413f6d60}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\epsilon">
- <UniqueIdentifier>{38a1598a-6bce-4a23-ad1d-ed58eaee9a6e}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\ers">
- <UniqueIdentifier>{77af9b46-9d26-41f4-94f2-fbd0bbcf4706}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\fit">
- <UniqueIdentifier>{56684134-120f-4f02-874e-5e85a5cb2595}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\fits">
- <UniqueIdentifier>{2be76cd8-18d7-4b78-87e5-34fb24fc1bcf}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\georaster">
- <UniqueIdentifier>{9b711462-887a-4ced-b5e0-a3db085c7f08}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\gff">
- <UniqueIdentifier>{6aa897e2-0cc0-460d-bbc9-b65e8b3b1c2a}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\gif">
- <UniqueIdentifier>{b21d9a8d-fbc1-4f63-b77b-9b748d68a4f3}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\gif\giflib">
- <UniqueIdentifier>{bc4cc257-2b9e-4ed0-b2f3-b27e5af71df4}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\grib">
- <UniqueIdentifier>{830b1b6a-7a5e-4a39-b44a-9c0051f52561}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\grib\degrib18">
- <UniqueIdentifier>{d017451e-23e1-4e92-89e4-20390c6ef9cc}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\grib\degrib18\degrib">
- <UniqueIdentifier>{c450bafb-17df-449f-b0e8-0921bcf7b591}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\grib\degrib18\g2clib-1.0.4">
- <UniqueIdentifier>{0ad31015-518d-4f37-90b2-a241a3ef9abd}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\gsg">
- <UniqueIdentifier>{e96375c9-4921-47eb-8977-60c278e2b9af}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\gtiff">
- <UniqueIdentifier>{f22adb38-39e5-43ae-8b8b-ef39c5b70d06}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\gtiff\libgeotiff">
- <UniqueIdentifier>{199f18d8-5ccc-4492-890d-f44ae9dab2de}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\gtiff\libtiff">
- <UniqueIdentifier>{cc4fc296-cef4-4190-a7e4-f76a0d820479}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\gxf">
- <UniqueIdentifier>{1dab7b71-ad97-4317-b5d7-613f74475757}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\hdf4">
- <UniqueIdentifier>{14e7b046-573e-4cec-ab65-b7bae6f258f0}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\hdf4\hdf-eos">
- <UniqueIdentifier>{31f50b4d-33d8-44be-bf49-57123f2b26a7}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\hdf5">
- <UniqueIdentifier>{f6459896-835c-42c9-b008-b0443eecd921}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\hfa">
- <UniqueIdentifier>{aa4c6ef8-6298-439d-adfe-bdf3a71182fc}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\idrisi">
- <UniqueIdentifier>{44891628-8cc3-4a1e-96fd-54c172a7fba4}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\ilwis">
- <UniqueIdentifier>{ac9b450e-741f-4701-8d1b-13a06c4335fe}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\ingr">
- <UniqueIdentifier>{8cb20333-f1ff-407c-8ca8-8d54b8d20e7f}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\iso8211">
- <UniqueIdentifier>{0293be19-2191-4d6a-be3e-d854541ad061}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\jaxapalsar">
- <UniqueIdentifier>{4e5b7033-f593-4c16-ac80-dd2831e6133b}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\jdem">
- <UniqueIdentifier>{9cb82099-f879-4bfc-8b53-2ed003b199fa}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\jp2kak">
- <UniqueIdentifier>{b1e74f20-8ccd-4770-82c8-6eedac20ab60}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\jpeg">
- <UniqueIdentifier>{71843f58-bcbb-4c63-8053-e1a1fd7c9909}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\jpeg2000">
- <UniqueIdentifier>{63b33bd9-2425-49fa-8f43-8e107934c21f}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\jpeg\libjpeg">
- <UniqueIdentifier>{dd2ee477-f3c1-4411-b663-e37b40df46dd}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\jpeg\libjpeg12">
- <UniqueIdentifier>{ef46adc5-905b-4f3a-bbb6-f42da0c8e1e1}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\l1b">
- <UniqueIdentifier>{6cc7ab23-4684-4489-b06d-2292129848cb}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\leveller">
- <UniqueIdentifier>{bcbe9172-2827-4929-b292-6a7a01ad17cd}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\mem">
- <UniqueIdentifier>{73ea63da-eb29-4b61-8e79-6ffe0d45bf29}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\mrsid">
- <UniqueIdentifier>{70d75129-1395-4a14-8e41-f59fd38fcc2b}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\msg">
- <UniqueIdentifier>{de858920-083a-486d-a5bb-51972a8e8507}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\msgn">
- <UniqueIdentifier>{298f35c4-4bf1-41cd-8e15-a31f681cf4eb}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\netcdf">
- <UniqueIdentifier>{06c14359-ef3b-464e-b274-7ace4771f3d4}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\nitf">
- <UniqueIdentifier>{1d59e4e6-424c-410c-8771-22bc417e6f54}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\northwood">
- <UniqueIdentifier>{f1644e14-6f93-440d-83a1-a4a73241be50}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\ogdi">
- <UniqueIdentifier>{71829827-f223-4c42-80b2-461a7b5af526}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\pcidsk">
- <UniqueIdentifier>{ac3bba5d-ce9b-451a-96c1-8dd2cfba1d4a}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\pcidsk\sdk">
- <UniqueIdentifier>{504eb4ce-6329-46ac-8ca9-19ad8435a8dd}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\pcraster">
- <UniqueIdentifier>{73833e4d-65fb-49d9-8a97-08728bd0d738}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\pcraster\libcsf">
- <UniqueIdentifier>{e2a14749-e0e4-44a0-a602-4b594c36bba6}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\pds">
- <UniqueIdentifier>{c6bf39fc-6605-4941-8747-9d3229cf2cfd}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\pgchip">
- <UniqueIdentifier>{53cdd94e-f2a7-4a4b-99c1-80120fe18dbe}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\png">
- <UniqueIdentifier>{b9951f13-abbf-4b87-8b70-f3d0d333a6a8}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\png\libpng">
- <UniqueIdentifier>{9e8c8f60-204b-4bb9-974d-b4b2be153f5e}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\r">
- <UniqueIdentifier>{4b9c7d67-0cb3-4b1d-bfaf-372a1d6215a3}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\rasterlite">
- <UniqueIdentifier>{74870cdf-0ccd-44f6-a1a4-995acea13f55}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\raw">
- <UniqueIdentifier>{c6bee287-968b-454a-a39d-229e451ccbb8}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\rik">
- <UniqueIdentifier>{2861ce40-ea95-469f-87e1-6853b0f65cfb}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\rmf">
- <UniqueIdentifier>{084c3aad-7f22-4200-b138-2600191180d3}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\rs2">
- <UniqueIdentifier>{08736a67-5aec-4d4b-b30b-f88f794c14ee}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\saga">
- <UniqueIdentifier>{89656196-16ae-4ec4-ad59-dcdee377e93e}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\sde">
- <UniqueIdentifier>{2eb14da4-e32a-40c8-8b92-62e315350edb}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\sdts">
- <UniqueIdentifier>{f980a589-5cc5-41af-918a-09baf811c893}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\sgi">
- <UniqueIdentifier>{aa25154a-c26e-4b5f-97f6-a4ea745da78c}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\srtmhgt">
- <UniqueIdentifier>{f7585c1c-5ebc-4f01-87ae-23655c2f0a3d}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\terragen">
- <UniqueIdentifier>{ce3ab765-f4ba-45bf-9cf7-9113638fc3c4}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\terralib">
- <UniqueIdentifier>{12fa7e3b-dc06-4f1f-8f7e-77896d2347a8}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\til">
- <UniqueIdentifier>{3e7f5d6c-6eb8-4c8f-b7d6-9439efa7acac}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\tsx">
- <UniqueIdentifier>{4f748adb-019c-4060-8fd3-559516138c63}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\usgsdem">
- <UniqueIdentifier>{4ab16d32-5d6e-4c96-b168-a9387c5bca71}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\vrt">
- <UniqueIdentifier>{eee6e27b-a972-43a8-b045-2fc576d46991}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\wcs">
- <UniqueIdentifier>{f193bd7d-9341-48e2-a302-a99a804cd09e}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\wktraster">
- <UniqueIdentifier>{1fa50002-bf3c-4bae-8333-73fbe3a05f95}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\wms">
- <UniqueIdentifier>{7f935bff-2ed4-4cb0-993c-f973ab7aa391}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\xpm">
- <UniqueIdentifier>{bc0fa517-f05d-4743-9a53-b41e08b6d54f}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\frmts\zlib">
- <UniqueIdentifier>{60c52798-4a1e-4ac3-a469-c1c78e518f7a}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\gcore">
- <UniqueIdentifier>{0bbdb3ab-3d03-4b68-ab32-c2bb9825f83e}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr">
- <UniqueIdentifier>{c72008d6-4385-488a-b822-2975cc6ba844}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts">
- <UniqueIdentifier>{80d03b3c-fb8d-443f-bbda-3ac3ead5ebf5}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\avc">
- <UniqueIdentifier>{5679e401-fa22-499e-b945-f89d34d9de1a}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\bna">
- <UniqueIdentifier>{26075fe7-d8f4-4d9b-bed4-be5351f1015e}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\csv">
- <UniqueIdentifier>{14993417-9359-45d0-a9c8-e6f4bee58856}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\dgn">
- <UniqueIdentifier>{e9ea8222-7c5c-4f64-8b87-af2162bf1bdc}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\dgn\dist">
- <UniqueIdentifier>{3585397d-77ba-4fd6-870c-1f15dd98ce26}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\dods">
- <UniqueIdentifier>{2ad4036f-e259-4944-ad74-9fdead54fec0}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\dxf">
- <UniqueIdentifier>{a3adc29b-b76f-4991-bbaf-7099c9eb1f4c}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\fme">
- <UniqueIdentifier>{0bb7ab25-eec2-4b0e-ac3a-3f83cc0b0f92}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\generic">
- <UniqueIdentifier>{b7ccd0d5-11b4-455d-af22-83cb01bcbb6f}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\geoconcept">
- <UniqueIdentifier>{d0b5907a-9144-4a2b-a76f-981cd90ed94f}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\geojson">
- <UniqueIdentifier>{bb37be53-c9e0-4345-8571-92d9291dd115}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\geojson\jsonc">
- <UniqueIdentifier>{d07b3877-0263-44be-97cc-5163f316b626}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\georss">
- <UniqueIdentifier>{257768d2-69cf-4e1e-89ff-cd68fa919d83}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\gml">
- <UniqueIdentifier>{3c27d01d-934f-40cc-b2e2-c216fcad9751}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\gmt">
- <UniqueIdentifier>{dfc538af-435c-4d80-8f26-d86fa77c2eb8}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\gpx">
- <UniqueIdentifier>{1b554f07-35a6-4fbe-903c-d8a68a05d163}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\gtm">
- <UniqueIdentifier>{e581c70c-b637-4dca-88c0-f8d6ef688464}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\idb">
- <UniqueIdentifier>{f1139628-f050-4925-a605-29e9f25d8e3d}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\ili">
- <UniqueIdentifier>{f46e984d-d9a9-4e05-831e-f83b1e411851}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\ili\iom">
- <UniqueIdentifier>{8194ac09-865e-472c-be28-95138d397e41}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\kml">
- <UniqueIdentifier>{b4ec30f6-c794-4063-874f-f400c7c5e183}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\mem">
- <UniqueIdentifier>{da6692b7-9970-4f57-b459-0999b8b7c4e6}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\mitab">
- <UniqueIdentifier>{769a16d2-d5c4-4797-882f-91f3f2e29ef7}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\mysql">
- <UniqueIdentifier>{485f41f1-88b9-453f-9c2e-fdcf46582c90}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\ntf">
- <UniqueIdentifier>{2ab5775f-cab3-4dfe-8b65-aeae53b2e0f4}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\oci">
- <UniqueIdentifier>{65cb7d0d-2dfa-4955-84c9-34e8d8750130}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\odbc">
- <UniqueIdentifier>{ed148028-e1b9-4e40-b897-caa6073448aa}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\ogdi">
- <UniqueIdentifier>{faa218d4-50e1-4f6e-8210-5d38ff928ac9}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\pcidsk">
- <UniqueIdentifier>{499448ca-4c3a-4b60-986c-24232bd6266d}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\pg">
- <UniqueIdentifier>{f296b0ff-12dc-44e0-b506-c777539bfc22}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\pgeo">
- <UniqueIdentifier>{2226ff9b-d167-4c00-9254-8f190b49855b}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\rec">
- <UniqueIdentifier>{d1ccf4e8-18bc-4778-9a7f-e613b71ee74a}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\s57">
- <UniqueIdentifier>{4a2453ef-38b8-4b1c-86d4-e0ce186aee07}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\sde">
- <UniqueIdentifier>{ffc169ae-7a76-4576-9df3-64e79a66a18d}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\sdts">
- <UniqueIdentifier>{2696a667-4bc6-4a5a-83aa-1c1fe89b371b}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\shape">
- <UniqueIdentifier>{d7b5e869-59b3-4a80-b0be-261e44f66127}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\sqlite">
- <UniqueIdentifier>{8e8306ae-ce17-4597-a835-281c5a667677}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\tiger">
- <UniqueIdentifier>{2833ad7c-76c0-4998-924d-0ffe6fea02bf}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\vrt">
- <UniqueIdentifier>{a4f4a834-0ef9-4f06-b262-27d943c1b184}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\ogrsf_frmts\xplane">
- <UniqueIdentifier>{1df67e86-5f34-4cd1-9284-a70786b7868f}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\ogr\wcts">
- <UniqueIdentifier>{18e924c8-4ed1-48d2-9489-ee75ac7f0242}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Make Files\port">
- <UniqueIdentifier>{e581888f-ba3f-46c0-a586-4b23c9182823}</UniqueIdentifier>
- <Extensions>*.vc;*.opt</Extensions>
- </Filter>
- <Filter Include="Source Files">
- <UniqueIdentifier>{928ff5d3-ec5c-4b83-a886-88f7b11003fe}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\alg">
- <UniqueIdentifier>{4dd123a8-c229-441c-9ed5-1b8b60f2af9e}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\apps">
- <UniqueIdentifier>{42d527b2-1a70-4ad7-84e6-e9259eadcdc7}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\bridge">
- <UniqueIdentifier>{4bfb8da9-bf92-401b-bbbe-e9dd626c525a}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts">
- <UniqueIdentifier>{518624cd-62ab-4869-91a5-f1058daf3aab}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\aaigrid">
- <UniqueIdentifier>{baa2eb10-507b-415e-860d-1139146a4e72}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\adrg">
- <UniqueIdentifier>{bb194839-0ba9-4d2b-ae58-304ecf18dad1}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\aigrid">
- <UniqueIdentifier>{b9c7418e-3133-4707-bb46-66eb07adf9fd}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\airsar">
- <UniqueIdentifier>{009dee38-f8cb-4464-bbc9-8c17af50bc8b}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\blx">
- <UniqueIdentifier>{ffec99a0-87eb-420d-a57a-1f933b749685}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\bmp">
- <UniqueIdentifier>{ae135aa2-fb75-4b0d-8d3e-c4ee15c07053}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\bsb">
- <UniqueIdentifier>{f25f6410-0d67-4ee6-b2c3-e89b906bea8f}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\ceos">
- <UniqueIdentifier>{c38b0042-7ae7-45c3-9614-279122e49578}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\ceos2">
- <UniqueIdentifier>{45bb30fe-8394-4870-a970-427868cb09ce}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\coasp">
- <UniqueIdentifier>{39e80543-e138-4d7f-89d4-285fdcc97df8}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\cosar">
- <UniqueIdentifier>{1ae2b351-992c-47da-a85f-c972b39738e8}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\dimap">
- <UniqueIdentifier>{bcb0f87a-a27b-4f23-90d1-7f1c87b77dc2}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\dods">
- <UniqueIdentifier>{260acefb-f3dc-4e25-b4b1-30c6df870c4b}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\dted">
- <UniqueIdentifier>{b62d8caf-336f-416a-bd3a-33262ccde8d9}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\ecw">
- <UniqueIdentifier>{c07c78f7-0925-42d3-aa28-b7493642f50d}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\elas">
- <UniqueIdentifier>{f7c64f6c-7db3-4e27-8c3d-60cf2a935394}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\envisat">
- <UniqueIdentifier>{a2bcb58e-b7eb-4e8c-92f5-6997141e6681}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\epsilon">
- <UniqueIdentifier>{47d257e6-7eb2-4e2f-9ad1-531022f82829}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\ers">
- <UniqueIdentifier>{6cb43304-6666-40ea-882e-50b9690499eb}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\fit">
- <UniqueIdentifier>{72a2bea6-7044-4148-88a9-86b6ac933352}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\fits">
- <UniqueIdentifier>{1f02864c-01b7-4e4a-8bd2-d3b9cca7a0ac}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\georaster">
- <UniqueIdentifier>{691cd713-93c2-408b-afa2-dc0e7af30eb2}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\gff">
- <UniqueIdentifier>{b43f0b1f-b87c-451a-9998-2f82520355b7}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\gif">
- <UniqueIdentifier>{7ce35c83-bf82-4912-afc4-0268b17c365a}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\gif\giflib">
- <UniqueIdentifier>{143e2eae-4531-4a1f-9863-f0f3a3f95d5c}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\grass">
- <UniqueIdentifier>{b7957e3d-7ac9-430a-a532-c97debe115db}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\grib">
- <UniqueIdentifier>{f876a226-14ce-475a-afa5-b65b337d035b}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\grib\degrib18">
- <UniqueIdentifier>{e1695f5e-195e-4b10-9466-f3f420d3bb1f}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\grib\degrib18\degrib">
- <UniqueIdentifier>{c5b03968-ad62-4158-aa53-5ae2b4e78898}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\grib\degrib18\g2clib-1.0.4">
- <UniqueIdentifier>{58a69973-0414-48d5-8a5a-8af860eb2821}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\gsg">
- <UniqueIdentifier>{8f7bff73-baa3-4352-9fc5-a1ca7519cfdf}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\gtiff">
- <UniqueIdentifier>{5c298d61-874d-4eee-92d9-eaddf4e24b41}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\gtiff\libgeotiff">
- <UniqueIdentifier>{4da6e344-6c25-4e03-b5c5-babf8d36e9b0}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\gtiff\libtiff">
- <UniqueIdentifier>{f1a5e875-181b-489d-9645-3c2f7e593fe2}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\gxf">
- <UniqueIdentifier>{85210419-fdef-4eb8-86a2-e4d9f14e82e2}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\hdf4">
- <UniqueIdentifier>{c52edc0c-9fce-4140-9a2d-08467191a587}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\hdf4\hdf-eos">
- <UniqueIdentifier>{22f669a4-ffa3-4544-93b2-c3fc5fa725c7}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\hdf5">
- <UniqueIdentifier>{48970417-c1d1-4185-a512-7f2c6274849a}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\hfa">
- <UniqueIdentifier>{43697ef4-5167-4672-8f92-79757c64b191}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\idrisi">
- <UniqueIdentifier>{00924f08-3ae5-466b-a40e-cc89bfd0c0fc}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\ilwis">
- <UniqueIdentifier>{c154702c-ecc7-48c5-b6c7-e20351f665af}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\ingr">
- <UniqueIdentifier>{c5d7150b-726c-49e4-aa28-6f6d3e239274}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\iso8211">
- <UniqueIdentifier>{960fa934-c3a4-4655-8864-f7ce5562f8df}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\jaxapalsar">
- <UniqueIdentifier>{39a1c82b-0ef3-4c97-b781-6f5bf2ede265}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\jdem">
- <UniqueIdentifier>{dc58ab4e-9914-46bc-bc2f-f670acde1f03}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\jp2kak">
- <UniqueIdentifier>{f0d29641-a13f-4b73-92d1-3ebadf65d5b4}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\jpeg">
- <UniqueIdentifier>{c275e83d-26cc-482a-ae0b-7d1f3f844973}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\jpeg2000">
- <UniqueIdentifier>{5b649e18-4d6f-45c8-8cff-77544723d4ff}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\jpeg\libjpeg">
- <UniqueIdentifier>{5ac27fee-0f3f-42bf-a609-3d307140bd62}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\jpeg\libjpeg12">
- <UniqueIdentifier>{317bee46-5af2-4e54-8701-18165d1bbe52}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\l1b">
- <UniqueIdentifier>{8d9c84ca-1e5b-499d-ba91-ca13810c9d0a}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\leveller">
- <UniqueIdentifier>{6dd75b94-ce27-4eb5-924b-34c754d22806}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\mem">
- <UniqueIdentifier>{29ea68d4-1515-4220-84a8-965fbfc9a223}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\mrsid">
- <UniqueIdentifier>{525134bc-1915-41d9-ad97-f19b9b2c60b8}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\msg">
- <UniqueIdentifier>{3d798d2d-259f-4dcb-9da5-d7a381458c4c}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\msgn">
- <UniqueIdentifier>{76f5d67e-9db7-4ced-8a43-4e3c2d987e4b}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\netcdf">
- <UniqueIdentifier>{aae8336c-a4b0-43b3-b8d3-b121fb012e82}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\nitf">
- <UniqueIdentifier>{be99b37f-5cac-474d-97bb-47b1b3b63b16}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\northwood">
- <UniqueIdentifier>{c52d916b-799a-497d-bc76-ee0ff46ca32c}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\ogdi">
- <UniqueIdentifier>{d60fbe29-e8bc-4d76-9f2e-44742f04c3fb}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\pcidsk">
- <UniqueIdentifier>{5a144c06-df48-4c62-bb6d-c400eeb97a30}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\pcidsk\sdk">
- <UniqueIdentifier>{a62e8372-311b-4667-b1ef-054a4c59e9bc}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\pcidsk\sdk\channel">
- <UniqueIdentifier>{a72f4131-e27d-4ef2-ae4c-3729b0c64b67}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\pcidsk\sdk\core">
- <UniqueIdentifier>{42adb112-2ba4-4d8e-b296-6c481b7796f8}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\pcidsk\sdk\port">
- <UniqueIdentifier>{1fbc342e-a2ab-4394-b212-cf3c4bf4b7eb}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\pcidsk\sdk\segment">
- <UniqueIdentifier>{c4343979-5854-4d8f-9e10-7a2997dee515}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\pcraster">
- <UniqueIdentifier>{46243e8c-bf24-4c24-8a0e-566c359fe14a}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\pcraster\libcsf">
- <UniqueIdentifier>{2a443b3c-033e-4c6c-9fbf-015d64b47d9b}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\pds">
- <UniqueIdentifier>{6511a0de-c451-49be-935f-fa208a7026ba}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\pgchip">
- <UniqueIdentifier>{af1b7703-87d2-41d3-81f9-cd7ee63d64a7}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\png">
- <UniqueIdentifier>{b919e4d4-99c9-4dea-b588-f5009b2e0751}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\png\libpng">
- <UniqueIdentifier>{03efe141-6210-4b02-aba6-3e227dc7addf}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\r">
- <UniqueIdentifier>{dbc9ed80-0b87-4f64-b77c-1f4e912bb9ca}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\rasterlite">
- <UniqueIdentifier>{ba6592d4-8af0-4407-b079-9fc0530031ed}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\raw">
- <UniqueIdentifier>{0d5b642f-5b2a-4ea3-8047-73a05b402a76}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\rik">
- <UniqueIdentifier>{01d1ff02-ac15-474c-a4e3-076f7a4e0409}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\rmf">
- <UniqueIdentifier>{32a00b73-ec95-4f72-b2a1-901599491d99}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\rs2">
- <UniqueIdentifier>{341a53a4-3ba6-458e-b589-a76b256522bd}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\saga">
- <UniqueIdentifier>{307285b9-79b7-42d2-9a71-e1dfa437c7fe}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\sde">
- <UniqueIdentifier>{a5a18625-209d-4fd5-a1af-c6fd483ec8cc}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\sdts">
- <UniqueIdentifier>{0c648c06-14e8-41cd-b220-26aa113108b0}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\sgi">
- <UniqueIdentifier>{b5caa7fe-d694-43cb-8840-c00e2232bdcf}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\srtmhgt">
- <UniqueIdentifier>{1d0aabb1-ba83-454d-9014-044a9b0f54a2}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\terragen">
- <UniqueIdentifier>{9e4f9123-0c0e-430b-9dae-56096dc6ab2f}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\terralib">
- <UniqueIdentifier>{d15c77a0-1ea4-4344-8eae-25bcd1ba8245}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\til">
- <UniqueIdentifier>{76b5736c-83df-4b37-8cd4-72a30db48b51}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\tsx">
- <UniqueIdentifier>{33ae0250-9cc6-4079-b2a9-841ec4b2d0d2}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\usgsdem">
- <UniqueIdentifier>{d5466bed-99a4-471c-80c8-5c8aeee6a11a}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\vrt">
- <UniqueIdentifier>{533dd264-e9ef-4d09-a185-fb9c43e003bc}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\wcs">
- <UniqueIdentifier>{fb4328c3-7e4d-41be-a2d9-0dde14b17fa5}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\wktraster">
- <UniqueIdentifier>{12fcbc79-5bc5-4b3d-a6cb-c46e8059fc60}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\wms">
- <UniqueIdentifier>{cb323329-4807-44fc-b5df-b303a81e1cfb}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\xpm">
- <UniqueIdentifier>{f706d687-b0ef-460e-a246-bd02dba3660f}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\frmts\zlib">
- <UniqueIdentifier>{907361dc-73c9-42c2-9268-f0fb0fd43cce}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\gcore">
- <UniqueIdentifier>{9300a2d4-7d36-4aab-ab79-5cc7c5bb5efa}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr">
- <UniqueIdentifier>{7eca3ad5-0cbb-4883-ae82-795162a2b34e}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts">
- <UniqueIdentifier>{bba6c749-9c4f-4b4f-8679-3c9419e27452}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\avc">
- <UniqueIdentifier>{60967d3d-4b1d-4a6e-968d-ecfc9dd3762f}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\bna">
- <UniqueIdentifier>{ebe4abf3-53b6-4ebe-91d8-39a746d3cd5a}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\csv">
- <UniqueIdentifier>{bcecf060-0de2-49c3-b2e1-1ecc585d76f0}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\dgn">
- <UniqueIdentifier>{72113818-56f5-423d-8bb2-fd642519e86b}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\dods">
- <UniqueIdentifier>{0db6569b-de3e-4a50-9e0e-2eeba3e48610}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\dxf">
- <UniqueIdentifier>{18a2f869-f288-41a7-9849-9ae767208eaa}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\fme">
- <UniqueIdentifier>{37c77c91-c646-419c-98e9-09d6db5abdd8}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\generic">
- <UniqueIdentifier>{eb69582a-b36b-460e-be99-e6734f6ed0f0}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\geoconcept">
- <UniqueIdentifier>{bc2a685a-026c-4e07-90aa-5343d1d908df}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\geojson">
- <UniqueIdentifier>{276d14a1-402c-4048-9dce-334913935193}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\geojson\jsonc">
- <UniqueIdentifier>{ca2aeb79-28c1-4584-8822-841f17052f60}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\georss">
- <UniqueIdentifier>{4cd19c31-5117-4a2c-bc6a-6af2012498ef}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\gml">
- <UniqueIdentifier>{c59a1227-327e-41ca-837c-c0d39e516d7b}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\gmt">
- <UniqueIdentifier>{90bdc50a-fcec-49f4-968a-edaac9c4edcd}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\gpx">
- <UniqueIdentifier>{f2e43d7f-dd00-4235-89c8-32884b3c0ae0}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\grass">
- <UniqueIdentifier>{d2679b54-7dac-4c72-a109-562ef9e6a1fb}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\gtm">
- <UniqueIdentifier>{3bc9f5df-d2d2-435f-8fb5-d48d0c6d0b97}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\idb">
- <UniqueIdentifier>{4ceefeef-3972-4bdc-996c-8aeee54fcbf6}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\ili">
- <UniqueIdentifier>{2cd1cd82-e59a-48a9-b608-c686d0047f12}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\ili\iom">
- <UniqueIdentifier>{feea39b9-2b50-4689-936f-bc6d9b6f65e1}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\ingres">
- <UniqueIdentifier>{38704eee-109c-4dbd-b67e-31b3ab675d9f}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\kml">
- <UniqueIdentifier>{e327db4e-01bb-4e6b-9853-83fcb865f06c}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\mem">
- <UniqueIdentifier>{30801717-8c4a-4ac6-b647-9b12bc0b964e}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\mitab">
- <UniqueIdentifier>{c18fc39c-d526-4238-bdde-9b249053b0a0}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\mysql">
- <UniqueIdentifier>{2b4ecdf5-ccf4-4bdd-9e4c-0f9321b35f4d}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\ntf">
- <UniqueIdentifier>{a697bea6-0a3d-48ec-812f-ab976ac06ce1}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\oci">
- <UniqueIdentifier>{a5debf63-efc7-40e6-b0d2-cdb83ba29d8a}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\odbc">
- <UniqueIdentifier>{dfd896fa-e6a4-4059-b4de-b27cd37c9629}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\ogdi">
- <UniqueIdentifier>{e778b26b-9ff7-40ce-8c2d-89639eb488b3}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\pcidsk">
- <UniqueIdentifier>{94afdd11-3bb4-4960-a641-4aa860ffb3cb}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\pg">
- <UniqueIdentifier>{399bc467-50f7-4ec4-b6eb-236c998e23f5}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\pgeo">
- <UniqueIdentifier>{79923a45-e8d7-445a-875a-48fadd89ad34}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\rec">
- <UniqueIdentifier>{af9e70fa-dc06-429b-b80a-ed2843fb14e6}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\s57">
- <UniqueIdentifier>{f8687351-e813-496e-b5f5-0095ea881547}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\sde">
- <UniqueIdentifier>{d18152ca-a0c3-4482-a42b-f1b79f1bfeb7}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\sdts">
- <UniqueIdentifier>{e5197010-ba99-4410-8838-bcb363a63cc2}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\shape">
- <UniqueIdentifier>{f4ef6cdb-fdc1-47ac-822c-8110095d1547}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\sqlite">
- <UniqueIdentifier>{64f23a02-0a7a-464d-8e1e-91b356ef737e}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\tiger">
- <UniqueIdentifier>{9ad12224-548c-4252-9822-08d34051774a}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\vrt">
- <UniqueIdentifier>{4f7efc9e-875c-4151-9ce4-10676317bcbb}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\ogrsf_frmts\xplane">
- <UniqueIdentifier>{61a02ead-0532-431f-8ab0-5cf5450707de}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\ogr\wcts">
- <UniqueIdentifier>{9bde6f67-208a-458f-b7d6-7c11843da325}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- <Filter Include="Source Files\port">
- <UniqueIdentifier>{dd1de2ac-f536-4de5-aa69-6695ce760f5e}</UniqueIdentifier>
- <Extensions>*.c;*.cpp</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <None Include="alg\makefile.vc">
- <Filter>Make Files\alg</Filter>
- </None>
- <None Include="apps\makefile.vc">
- <Filter>Make Files\apps</Filter>
- </None>
- <None Include="frmts\aaigrid\makefile.vc">
- <Filter>Make Files\frmts\aaigrid</Filter>
- </None>
- <None Include="frmts\adrg\makefile.vc">
- <Filter>Make Files\frmts\adrg</Filter>
- </None>
- <None Include="frmts\aigrid\makefile.vc">
- <Filter>Make Files\frmts\aigrid</Filter>
- </None>
- <None Include="frmts\airsar\makefile.vc">
- <Filter>Make Files\frmts\airsar</Filter>
- </None>
- <None Include="frmts\blx\makefile.vc">
- <Filter>Make Files\frmts\blx</Filter>
- </None>
- <None Include="frmts\bmp\makefile.vc">
- <Filter>Make Files\frmts\bmp</Filter>
- </None>
- <None Include="frmts\bsb\makefile.vc">
- <Filter>Make Files\frmts\bsb</Filter>
- </None>
- <None Include="frmts\ceos2\makefile.vc">
- <Filter>Make Files\frmts\ceos2</Filter>
- </None>
- <None Include="frmts\ceos\makefile.vc">
- <Filter>Make Files\frmts\ceos</Filter>
- </None>
- <None Include="frmts\coasp\makefile.vc">
- <Filter>Make Files\frmts\coasp</Filter>
- </None>
- <None Include="frmts\cosar\makefile.vc">
- <Filter>Make Files\frmts\cosar</Filter>
- </None>
- <None Include="frmts\dimap\makefile.vc">
- <Filter>Make Files\frmts\dimap</Filter>
- </None>
- <None Include="frmts\dods\makefile.vc">
- <Filter>Make Files\frmts\dods</Filter>
- </None>
- <None Include="frmts\dted\makefile.vc">
- <Filter>Make Files\frmts\dted</Filter>
- </None>
- <None Include="frmts\ecw\makefile.vc">
- <Filter>Make Files\frmts\ecw</Filter>
- </None>
- <None Include="frmts\elas\makefile.vc">
- <Filter>Make Files\frmts\elas</Filter>
- </None>
- <None Include="frmts\envisat\makefile.vc">
- <Filter>Make Files\frmts\envisat</Filter>
- </None>
- <None Include="frmts\epsilon\makefile.vc">
- <Filter>Make Files\frmts\epsilon</Filter>
- </None>
- <None Include="frmts\ers\makefile.vc">
- <Filter>Make Files\frmts\ers</Filter>
- </None>
- <None Include="frmts\fits\makefile.vc">
- <Filter>Make Files\frmts\fits</Filter>
- </None>
- <None Include="frmts\fit\makefile.vc">
- <Filter>Make Files\frmts\fit</Filter>
- </None>
- <None Include="frmts\georaster\makefile.vc">
- <Filter>Make Files\frmts\georaster</Filter>
- </None>
- <None Include="frmts\gff\makefile.vc">
- <Filter>Make Files\frmts\gff</Filter>
- </None>
- <None Include="frmts\gif\giflib\makefile.vc">
- <Filter>Make Files\frmts\gif\giflib</Filter>
- </None>
- <None Include="frmts\gif\makefile.vc">
- <Filter>Make Files\frmts\gif</Filter>
- </None>
- <None Include="frmts\grib\degrib18\degrib\makefile.vc">
- <Filter>Make Files\frmts\grib\degrib18\degrib</Filter>
- </None>
- <None Include="frmts\grib\degrib18\g2clib-1.0.4\makefile.vc">
- <Filter>Make Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </None>
- <None Include="frmts\grib\degrib18\makefile.vc">
- <Filter>Make Files\frmts\grib\degrib18</Filter>
- </None>
- <None Include="frmts\grib\makefile.vc">
- <Filter>Make Files\frmts\grib</Filter>
- </None>
- <None Include="frmts\gsg\makefile.vc">
- <Filter>Make Files\frmts\gsg</Filter>
- </None>
- <None Include="frmts\gtiff\libgeotiff\makefile.vc">
- <Filter>Make Files\frmts\gtiff\libgeotiff</Filter>
- </None>
- <None Include="frmts\gtiff\libtiff\makefile.vc">
- <Filter>Make Files\frmts\gtiff\libtiff</Filter>
- </None>
- <None Include="frmts\gtiff\makefile.vc">
- <Filter>Make Files\frmts\gtiff</Filter>
- </None>
- <None Include="frmts\gxf\makefile.vc">
- <Filter>Make Files\frmts\gxf</Filter>
- </None>
- <None Include="frmts\hdf4\hdf-eos\makefile.vc">
- <Filter>Make Files\frmts\hdf4\hdf-eos</Filter>
- </None>
- <None Include="frmts\hdf4\makefile.vc">
- <Filter>Make Files\frmts\hdf4</Filter>
- </None>
- <None Include="frmts\hdf5\makefile.vc">
- <Filter>Make Files\frmts\hdf5</Filter>
- </None>
- <None Include="frmts\hfa\makefile.vc">
- <Filter>Make Files\frmts\hfa</Filter>
- </None>
- <None Include="frmts\idrisi\makefile.vc">
- <Filter>Make Files\frmts\idrisi</Filter>
- </None>
- <None Include="frmts\ilwis\makefile.vc">
- <Filter>Make Files\frmts\ilwis</Filter>
- </None>
- <None Include="frmts\ingr\makefile.vc">
- <Filter>Make Files\frmts\ingr</Filter>
- </None>
- <None Include="frmts\iso8211\makefile.vc">
- <Filter>Make Files\frmts\iso8211</Filter>
- </None>
- <None Include="frmts\jaxapalsar\makefile.vc">
- <Filter>Make Files\frmts\jaxapalsar</Filter>
- </None>
- <None Include="frmts\jdem\makefile.vc">
- <Filter>Make Files\frmts\jdem</Filter>
- </None>
- <None Include="frmts\jp2kak\makefile.vc">
- <Filter>Make Files\frmts\jp2kak</Filter>
- </None>
- <None Include="frmts\jpeg2000\makefile.vc">
- <Filter>Make Files\frmts\jpeg2000</Filter>
- </None>
- <None Include="frmts\jpeg\libjpeg12\makefile.vc">
- <Filter>Make Files\frmts\jpeg\libjpeg12</Filter>
- </None>
- <None Include="frmts\jpeg\libjpeg\makefile.vc">
- <Filter>Make Files\frmts\jpeg\libjpeg</Filter>
- </None>
- <None Include="frmts\jpeg\makefile.vc">
- <Filter>Make Files\frmts\jpeg</Filter>
- </None>
- <None Include="frmts\l1b\makefile.vc">
- <Filter>Make Files\frmts\l1b</Filter>
- </None>
- <None Include="frmts\leveller\makefile.vc">
- <Filter>Make Files\frmts\leveller</Filter>
- </None>
- <None Include="frmts\makefile.vc">
- <Filter>Make Files\frmts</Filter>
- </None>
- <None Include="frmts\mem\makefile.vc">
- <Filter>Make Files\frmts\mem</Filter>
- </None>
- <None Include="frmts\mrsid\makefile.vc">
- <Filter>Make Files\frmts\mrsid</Filter>
- </None>
- <None Include="frmts\msgn\makefile.vc">
- <Filter>Make Files\frmts\msgn</Filter>
- </None>
- <None Include="frmts\msg\makefile.vc">
- <Filter>Make Files\frmts\msg</Filter>
- </None>
- <None Include="frmts\netcdf\makefile.vc">
- <Filter>Make Files\frmts\netcdf</Filter>
- </None>
- <None Include="frmts\nitf\makefile.vc">
- <Filter>Make Files\frmts\nitf</Filter>
- </None>
- <None Include="frmts\northwood\makefile.vc">
- <Filter>Make Files\frmts\northwood</Filter>
- </None>
- <None Include="frmts\ogdi\makefile.vc">
- <Filter>Make Files\frmts\ogdi</Filter>
- </None>
- <None Include="frmts\pcidsk\makefile.vc">
- <Filter>Make Files\frmts\pcidsk</Filter>
- </None>
- <None Include="frmts\pcidsk\sdk\Makefile.vc">
- <Filter>Make Files\frmts\pcidsk\sdk</Filter>
- </None>
- <None Include="frmts\pcraster\libcsf\makefile.vc">
- <Filter>Make Files\frmts\pcraster\libcsf</Filter>
- </None>
- <None Include="frmts\pcraster\makefile.vc">
- <Filter>Make Files\frmts\pcraster</Filter>
- </None>
- <None Include="frmts\pds\makefile.vc">
- <Filter>Make Files\frmts\pds</Filter>
- </None>
- <None Include="frmts\pgchip\makefile.vc">
- <Filter>Make Files\frmts\pgchip</Filter>
- </None>
- <None Include="frmts\png\libpng\makefile.vc">
- <Filter>Make Files\frmts\png\libpng</Filter>
- </None>
- <None Include="frmts\png\makefile.vc">
- <Filter>Make Files\frmts\png</Filter>
- </None>
- <None Include="frmts\rasterlite\makefile.vc">
- <Filter>Make Files\frmts\rasterlite</Filter>
- </None>
- <None Include="frmts\raw\makefile.vc">
- <Filter>Make Files\frmts\raw</Filter>
- </None>
- <None Include="frmts\rik\makefile.vc">
- <Filter>Make Files\frmts\rik</Filter>
- </None>
- <None Include="frmts\rmf\makefile.vc">
- <Filter>Make Files\frmts\rmf</Filter>
- </None>
- <None Include="frmts\rs2\makefile.vc">
- <Filter>Make Files\frmts\rs2</Filter>
- </None>
- <None Include="frmts\r\makefile.vc">
- <Filter>Make Files\frmts\r</Filter>
- </None>
- <None Include="frmts\saga\makefile.vc">
- <Filter>Make Files\frmts\saga</Filter>
- </None>
- <None Include="frmts\sde\makefile.vc">
- <Filter>Make Files\frmts\sde</Filter>
- </None>
- <None Include="frmts\sdts\makefile.vc">
- <Filter>Make Files\frmts\sdts</Filter>
- </None>
- <None Include="frmts\sgi\makefile.vc">
- <Filter>Make Files\frmts\sgi</Filter>
- </None>
- <None Include="frmts\srtmhgt\makefile.vc">
- <Filter>Make Files\frmts\srtmhgt</Filter>
- </None>
- <None Include="frmts\terragen\makefile.vc">
- <Filter>Make Files\frmts\terragen</Filter>
- </None>
- <None Include="frmts\terralib\makefile.vc">
- <Filter>Make Files\frmts\terralib</Filter>
- </None>
- <None Include="frmts\til\makefile.vc">
- <Filter>Make Files\frmts\til</Filter>
- </None>
- <None Include="frmts\tsx\makefile.vc">
- <Filter>Make Files\frmts\tsx</Filter>
- </None>
- <None Include="frmts\usgsdem\makefile.vc">
- <Filter>Make Files\frmts\usgsdem</Filter>
- </None>
- <None Include="frmts\vrt\makefile.vc">
- <Filter>Make Files\frmts\vrt</Filter>
- </None>
- <None Include="frmts\wcs\makefile.vc">
- <Filter>Make Files\frmts\wcs</Filter>
- </None>
- <None Include="frmts\wktraster\makefile.vc">
- <Filter>Make Files\frmts\wktraster</Filter>
- </None>
- <None Include="frmts\wms\makefile.vc">
- <Filter>Make Files\frmts\wms</Filter>
- </None>
- <None Include="frmts\xpm\makefile.vc">
- <Filter>Make Files\frmts\xpm</Filter>
- </None>
- <None Include="frmts\zlib\makefile.vc">
- <Filter>Make Files\frmts\zlib</Filter>
- </None>
- <None Include="gcore\makefile.vc">
- <Filter>Make Files\gcore</Filter>
- </None>
- <None Include="makefile.vc">
- <Filter>Make Files</Filter>
- </None>
- <None Include="nmake-wince.opt">
- <Filter>Make Files</Filter>
- </None>
- <None Include="nmake.opt">
- <Filter>Make Files</Filter>
- </None>
- <None Include="ogr\makefile.vc">
- <Filter>Make Files\ogr</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\avc\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\avc</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\bna\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\bna</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\csv\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\csv</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\dgn\dist\Makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\dgn\dist</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\dgn\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\dgn</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\dods\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\dods</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\dxf\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\dxf</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\fme\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\fme</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\generic\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\generic</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\geoconcept\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\geoconcept</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\geojson\jsonc\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\geojson\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\geojson</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\georss\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\georss</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\gml\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\gml</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\gmt\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\gmt</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\gpx\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\gpx</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\gtm\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\gtm</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\idb\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\idb</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\ili\iom\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\ili\iom</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\ili\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\ili</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\kml\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\kml</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\mem\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\mem</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\mitab\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\mitab</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\mysql\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\mysql</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\ntf\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\ntf</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\oci\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\oci</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\odbc\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\odbc</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\ogdi\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\ogdi</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\pcidsk\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\pcidsk</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\pgeo\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\pgeo</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\pg\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\pg</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\rec\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\rec</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\s57\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\s57</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\sde\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\sde</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\sdts\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\sdts</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\shape\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\shape</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\sqlite\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\sqlite</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\tiger\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\tiger</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\vrt\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\vrt</Filter>
- </None>
- <None Include="ogr\ogrsf_frmts\xplane\makefile.vc">
- <Filter>Make Files\ogr\ogrsf_frmts\xplane</Filter>
- </None>
- <None Include="ogr\wcts\makefile.vc">
- <Filter>Make Files\ogr\wcts</Filter>
- </None>
- <None Include="port\cpl_config.h.vc">
- <Filter>Make Files\port</Filter>
- </None>
- <None Include="port\makefile.vc">
- <Filter>Make Files\port</Filter>
- </None>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="alg\gdalgrid.h">
- <Filter>Include Files\alg</Filter>
- </ClInclude>
- <ClInclude Include="alg\gdalwarper.h">
- <Filter>Include Files\alg</Filter>
- </ClInclude>
- <ClInclude Include="alg\gdal_alg.h">
- <Filter>Include Files\alg</Filter>
- </ClInclude>
- <ClInclude Include="alg\gdal_alg_priv.h">
- <Filter>Include Files\alg</Filter>
- </ClInclude>
- <ClInclude Include="alg\gvgcpfit.h">
- <Filter>Include Files\alg</Filter>
- </ClInclude>
- <ClInclude Include="alg\thinplatespline.h">
- <Filter>Include Files\alg</Filter>
- </ClInclude>
- <ClInclude Include="bridge\gdalbridge.h">
- <Filter>Include Files\bridge</Filter>
- </ClInclude>
- <ClInclude Include="frmts\aigrid\aigrid.h">
- <Filter>Include Files\frmts\aigrid</Filter>
- </ClInclude>
- <ClInclude Include="frmts\blx\blx.h">
- <Filter>Include Files\frmts\blx</Filter>
- </ClInclude>
- <ClInclude Include="frmts\bsb\bsb_read.h">
- <Filter>Include Files\frmts\bsb</Filter>
- </ClInclude>
- <ClInclude Include="frmts\ceos2\ceos.h">
- <Filter>Include Files\frmts\ceos2</Filter>
- </ClInclude>
- <ClInclude Include="frmts\ceos\ceosopen.h">
- <Filter>Include Files\frmts\ceos</Filter>
- </ClInclude>
- <ClInclude Include="frmts\dted\dted_api.h">
- <Filter>Include Files\frmts\dted</Filter>
- </ClInclude>
- <ClInclude Include="frmts\ecw\jp2userbox.h">
- <Filter>Include Files\frmts\ecw</Filter>
- </ClInclude>
- <ClInclude Include="frmts\ecw\vsiiostream.h">
- <Filter>Include Files\frmts\ecw</Filter>
- </ClInclude>
- <ClInclude Include="frmts\envisat\EnvisatFile.h">
- <Filter>Include Files\frmts\envisat</Filter>
- </ClInclude>
- <ClInclude Include="frmts\ers\ershdrnode.h">
- <Filter>Include Files\frmts\ers</Filter>
- </ClInclude>
- <ClInclude Include="frmts\fit\fit.h">
- <Filter>Include Files\frmts\fit</Filter>
- </ClInclude>
- <ClInclude Include="frmts\fit\gstEndian.h">
- <Filter>Include Files\frmts\fit</Filter>
- </ClInclude>
- <ClInclude Include="frmts\fit\gstTypes.h">
- <Filter>Include Files\frmts\fit</Filter>
- </ClInclude>
- <ClInclude Include="frmts\georaster\georaster_priv.h">
- <Filter>Include Files\frmts\georaster</Filter>
- </ClInclude>
- <ClInclude Include="frmts\georaster\oci_wrapper.h">
- <Filter>Include Files\frmts\georaster</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gif\giflib\gif_hash.h">
- <Filter>Include Files\frmts\gif\giflib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gif\giflib\gif_lib.h">
- <Filter>Include Files\frmts\gif\giflib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gif\giflib\gif_lib_private.h">
- <Filter>Include Files\frmts\gif\giflib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\clock.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\datasource.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\degrib1.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\degrib2.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\engribapi.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\filedatasource.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\fileendian.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\grib2api.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\inventory.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\memendian.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\memorydatasource.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\meta.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\metaname.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\myassert.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\myerror.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\myutil.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\scan.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\tdlpack.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\type.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\degrib\weather.h">
- <Filter>Include Files\frmts\grib\degrib18\degrib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\g2clib-1.0.4\drstemplates.h">
- <Filter>Include Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\g2clib-1.0.4\grib2.h">
- <Filter>Include Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\g2clib-1.0.4\gridtemplates.h">
- <Filter>Include Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClInclude>
- <ClInclude Include="frmts\grib\degrib18\g2clib-1.0.4\pdstemplates.h">
- <Filter>Include Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\gt_overview.h">
- <Filter>Include Files\frmts\gtiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libgeotiff\cpl_serv.h">
- <Filter>Include Files\frmts\gtiff\libgeotiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libgeotiff\geokeys.h">
- <Filter>Include Files\frmts\gtiff\libgeotiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libgeotiff\geonames.h">
- <Filter>Include Files\frmts\gtiff\libgeotiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libgeotiff\geotiff.h">
- <Filter>Include Files\frmts\gtiff\libgeotiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libgeotiff\geotiffio.h">
- <Filter>Include Files\frmts\gtiff\libgeotiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libgeotiff\geovalues.h">
- <Filter>Include Files\frmts\gtiff\libgeotiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libgeotiff\geo_config.h">
- <Filter>Include Files\frmts\gtiff\libgeotiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libgeotiff\geo_keyp.h">
- <Filter>Include Files\frmts\gtiff\libgeotiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libgeotiff\geo_normalize.h">
- <Filter>Include Files\frmts\gtiff\libgeotiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libgeotiff\geo_simpletags.h">
- <Filter>Include Files\frmts\gtiff\libgeotiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libgeotiff\geo_tiffp.h">
- <Filter>Include Files\frmts\gtiff\libgeotiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libgeotiff\xtiffio.h">
- <Filter>Include Files\frmts\gtiff\libgeotiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libtiff\t4.h">
- <Filter>Include Files\frmts\gtiff\libtiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libtiff\tiff.h">
- <Filter>Include Files\frmts\gtiff\libtiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libtiff\tiffconf.h">
- <Filter>Include Files\frmts\gtiff\libtiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libtiff\tiffio.h">
- <Filter>Include Files\frmts\gtiff\libtiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libtiff\tiffiop.h">
- <Filter>Include Files\frmts\gtiff\libtiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libtiff\tiffvers.h">
- <Filter>Include Files\frmts\gtiff\libtiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libtiff\tif_config.h">
- <Filter>Include Files\frmts\gtiff\libtiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libtiff\tif_dir.h">
- <Filter>Include Files\frmts\gtiff\libtiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libtiff\tif_fax3.h">
- <Filter>Include Files\frmts\gtiff\libtiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libtiff\tif_predict.h">
- <Filter>Include Files\frmts\gtiff\libtiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gtiff\libtiff\uvcode.h">
- <Filter>Include Files\frmts\gtiff\libtiff</Filter>
- </ClInclude>
- <ClInclude Include="frmts\gxf\gxfopen.h">
- <Filter>Include Files\frmts\gxf</Filter>
- </ClInclude>
- <ClInclude Include="frmts\hdf4\hdf-eos\ease.h">
- <Filter>Include Files\frmts\hdf4\hdf-eos</Filter>
- </ClInclude>
- <ClInclude Include="frmts\hdf4\hdf-eos\HdfEosDef.h">
- <Filter>Include Files\frmts\hdf4\hdf-eos</Filter>
- </ClInclude>
- <ClInclude Include="frmts\hdf4\hdf-eos\HDFEOSVersion.h">
- <Filter>Include Files\frmts\hdf4\hdf-eos</Filter>
- </ClInclude>
- <ClInclude Include="frmts\hdf4\hdf4compat.h">
- <Filter>Include Files\frmts\hdf4</Filter>
- </ClInclude>
- <ClInclude Include="frmts\hdf4\hdf4dataset.h">
- <Filter>Include Files\frmts\hdf4</Filter>
- </ClInclude>
- <ClInclude Include="frmts\hdf5\gh5_convenience.h">
- <Filter>Include Files\frmts\hdf5</Filter>
- </ClInclude>
- <ClInclude Include="frmts\hdf5\hdf5dataset.h">
- <Filter>Include Files\frmts\hdf5</Filter>
- </ClInclude>
- <ClInclude Include="frmts\hfa\hfa.h">
- <Filter>Include Files\frmts\hfa</Filter>
- </ClInclude>
- <ClInclude Include="frmts\hfa\hfa_p.h">
- <Filter>Include Files\frmts\hfa</Filter>
- </ClInclude>
- <ClInclude Include="frmts\ilwis\ilwisdataset.h">
- <Filter>Include Files\frmts\ilwis</Filter>
- </ClInclude>
- <ClInclude Include="frmts\ingr\IngrTypes.h">
- <Filter>Include Files\frmts\ingr</Filter>
- </ClInclude>
- <ClInclude Include="frmts\ingr\IntergraphBand.h">
- <Filter>Include Files\frmts\ingr</Filter>
- </ClInclude>
- <ClInclude Include="frmts\ingr\IntergraphDataset.h">
- <Filter>Include Files\frmts\ingr</Filter>
- </ClInclude>
- <ClInclude Include="frmts\ingr\JpegHelper.h">
- <Filter>Include Files\frmts\ingr</Filter>
- </ClInclude>
- <ClInclude Include="frmts\iso8211\iso8211.h">
- <Filter>Include Files\frmts\iso8211</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jp2kak\subfile_source.h">
- <Filter>Include Files\frmts\jp2kak</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jp2kak\vsil_target.h">
- <Filter>Include Files\frmts\jp2kak</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg2000\jpeg2000_vsil_io.h">
- <Filter>Include Files\frmts\jpeg2000</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\gdalexif.h">
- <Filter>Include Files\frmts\jpeg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg12\jchuff.h">
- <Filter>Include Files\frmts\jpeg\libjpeg12</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg12\jconfig.h">
- <Filter>Include Files\frmts\jpeg\libjpeg12</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg12\jdct.h">
- <Filter>Include Files\frmts\jpeg\libjpeg12</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg12\jdhuff.h">
- <Filter>Include Files\frmts\jpeg\libjpeg12</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg12\jerror.h">
- <Filter>Include Files\frmts\jpeg\libjpeg12</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg12\jinclude.h">
- <Filter>Include Files\frmts\jpeg\libjpeg12</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg12\jmemsys.h">
- <Filter>Include Files\frmts\jpeg\libjpeg12</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg12\jmorecfg.h">
- <Filter>Include Files\frmts\jpeg\libjpeg12</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg12\jpegint.h">
- <Filter>Include Files\frmts\jpeg\libjpeg12</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg12\jpeglib.h">
- <Filter>Include Files\frmts\jpeg\libjpeg12</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg12\jversion.h">
- <Filter>Include Files\frmts\jpeg\libjpeg12</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg\jchuff.h">
- <Filter>Include Files\frmts\jpeg\libjpeg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg\jconfig.h">
- <Filter>Include Files\frmts\jpeg\libjpeg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg\jdct.h">
- <Filter>Include Files\frmts\jpeg\libjpeg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg\jdhuff.h">
- <Filter>Include Files\frmts\jpeg\libjpeg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg\jerror.h">
- <Filter>Include Files\frmts\jpeg\libjpeg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg\jinclude.h">
- <Filter>Include Files\frmts\jpeg\libjpeg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg\jmemsys.h">
- <Filter>Include Files\frmts\jpeg\libjpeg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg\jmorecfg.h">
- <Filter>Include Files\frmts\jpeg\libjpeg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg\jpegint.h">
- <Filter>Include Files\frmts\jpeg\libjpeg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg\jpeglib.h">
- <Filter>Include Files\frmts\jpeg\libjpeg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\jpeg\libjpeg\jversion.h">
- <Filter>Include Files\frmts\jpeg\libjpeg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\mem\memdataset.h">
- <Filter>Include Files\frmts\mem</Filter>
- </ClInclude>
- <ClInclude Include="frmts\mrsid\mrsidstream.h">
- <Filter>Include Files\frmts\mrsid</Filter>
- </ClInclude>
- <ClInclude Include="frmts\msgn\msg_basic_types.h">
- <Filter>Include Files\frmts\msgn</Filter>
- </ClInclude>
- <ClInclude Include="frmts\msgn\msg_reader_core.h">
- <Filter>Include Files\frmts\msgn</Filter>
- </ClInclude>
- <ClInclude Include="frmts\msg\msgcommand.h">
- <Filter>Include Files\frmts\msg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\msg\msgdataset.h">
- <Filter>Include Files\frmts\msg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\msg\prologue.h">
- <Filter>Include Files\frmts\msg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\msg\reflectancecalculator.h">
- <Filter>Include Files\frmts\msg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\msg\xritheaderparser.h">
- <Filter>Include Files\frmts\msg</Filter>
- </ClInclude>
- <ClInclude Include="frmts\netcdf\netcdfdataset.h">
- <Filter>Include Files\frmts\netcdf</Filter>
- </ClInclude>
- <ClInclude Include="frmts\nitf\mgrs.h">
- <Filter>Include Files\frmts\nitf</Filter>
- </ClInclude>
- <ClInclude Include="frmts\nitf\nitflib.h">
- <Filter>Include Files\frmts\nitf</Filter>
- </ClInclude>
- <ClInclude Include="frmts\nitf\rpftoclib.h">
- <Filter>Include Files\frmts\nitf</Filter>
- </ClInclude>
- <ClInclude Include="frmts\northwood\northwood.h">
- <Filter>Include Files\frmts\northwood</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\gdal_pcidsk.h">
- <Filter>Include Files\frmts\pcidsk</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\channel\cbandinterleavedchannel.h">
- <Filter>Include Files\frmts\pcidsk\sdk\channel</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\channel\cpcidskchannel.h">
- <Filter>Include Files\frmts\pcidsk\sdk\channel</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\channel\cpixelinterleavedchannel.h">
- <Filter>Include Files\frmts\pcidsk\sdk\channel</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\channel\ctiledchannel.h">
- <Filter>Include Files\frmts\pcidsk\sdk\channel</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\core\cpcidskfile.h">
- <Filter>Include Files\frmts\pcidsk\sdk\core</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\core\metadataset.h">
- <Filter>Include Files\frmts\pcidsk\sdk\core</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\core\mutexholder.h">
- <Filter>Include Files\frmts\pcidsk\sdk\core</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\core\pcidsk_utils.h">
- <Filter>Include Files\frmts\pcidsk\sdk\core</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\core\protectedfile.h">
- <Filter>Include Files\frmts\pcidsk\sdk\core</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\core\sysvirtualfile.h">
- <Filter>Include Files\frmts\pcidsk\sdk\core</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk.h">
- <Filter>Include Files\frmts\pcidsk\sdk</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_buffer.h">
- <Filter>Include Files\frmts\pcidsk\sdk</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_channel.h">
- <Filter>Include Files\frmts\pcidsk\sdk</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_config.h">
- <Filter>Include Files\frmts\pcidsk\sdk</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_exception.h">
- <Filter>Include Files\frmts\pcidsk\sdk</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_file.h">
- <Filter>Include Files\frmts\pcidsk\sdk</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_georef.h">
- <Filter>Include Files\frmts\pcidsk\sdk</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_interfaces.h">
- <Filter>Include Files\frmts\pcidsk\sdk</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_io.h">
- <Filter>Include Files\frmts\pcidsk\sdk</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_mutex.h">
- <Filter>Include Files\frmts\pcidsk\sdk</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_pct.h">
- <Filter>Include Files\frmts\pcidsk\sdk</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_segment.h">
- <Filter>Include Files\frmts\pcidsk\sdk</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_shape.h">
- <Filter>Include Files\frmts\pcidsk\sdk</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_types.h">
- <Filter>Include Files\frmts\pcidsk\sdk</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\pcidsk_vectorsegment.h">
- <Filter>Include Files\frmts\pcidsk\sdk</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\segment\cpcidskgeoref.h">
- <Filter>Include Files\frmts\pcidsk\sdk\segment</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\segment\cpcidskpct.h">
- <Filter>Include Files\frmts\pcidsk\sdk\segment</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\segment\cpcidsksegment.h">
- <Filter>Include Files\frmts\pcidsk\sdk\segment</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\segment\cpcidskvectorsegment.h">
- <Filter>Include Files\frmts\pcidsk\sdk\segment</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\segment\metadatasegment.h">
- <Filter>Include Files\frmts\pcidsk\sdk\segment</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\segment\pcidskgeorefbuilder.h">
- <Filter>Include Files\frmts\pcidsk\sdk\segment</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\segment\pcidsksegmentbuilder.h">
- <Filter>Include Files\frmts\pcidsk\sdk\segment</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\segment\segmentfactory.h">
- <Filter>Include Files\frmts\pcidsk\sdk\segment</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\segment\sysblockmap.h">
- <Filter>Include Files\frmts\pcidsk\sdk\segment</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcidsk\sdk\segment\uuid.h">
- <Filter>Include Files\frmts\pcidsk\sdk\segment</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcraster\libcsf\csf.h">
- <Filter>Include Files\frmts\pcraster\libcsf</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcraster\libcsf\csfattr.h">
- <Filter>Include Files\frmts\pcraster\libcsf</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcraster\libcsf\csfimpl.h">
- <Filter>Include Files\frmts\pcraster\libcsf</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcraster\libcsf\csftypes.h">
- <Filter>Include Files\frmts\pcraster\libcsf</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcraster\libcsf\pcrtypes.h">
- <Filter>Include Files\frmts\pcraster\libcsf</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcraster\pcrasterdataset.h">
- <Filter>Include Files\frmts\pcraster</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcraster\pcrasterrasterband.h">
- <Filter>Include Files\frmts\pcraster</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pcraster\pcrasterutil.h">
- <Filter>Include Files\frmts\pcraster</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pds\nasakeywordhandler.h">
- <Filter>Include Files\frmts\pds</Filter>
- </ClInclude>
- <ClInclude Include="frmts\pgchip\pgchip.h">
- <Filter>Include Files\frmts\pgchip</Filter>
- </ClInclude>
- <ClInclude Include="frmts\png\libpng\png.h">
- <Filter>Include Files\frmts\png\libpng</Filter>
- </ClInclude>
- <ClInclude Include="frmts\png\libpng\pngconf.h">
- <Filter>Include Files\frmts\png\libpng</Filter>
- </ClInclude>
- <ClInclude Include="frmts\rasterlite\rasterlitedataset.h">
- <Filter>Include Files\frmts\rasterlite</Filter>
- </ClInclude>
- <ClInclude Include="frmts\raw\atlsci_spheroid.h">
- <Filter>Include Files\frmts\raw</Filter>
- </ClInclude>
- <ClInclude Include="frmts\raw\rawdataset.h">
- <Filter>Include Files\frmts\raw</Filter>
- </ClInclude>
- <ClInclude Include="frmts\rmf\rmfdataset.h">
- <Filter>Include Files\frmts\rmf</Filter>
- </ClInclude>
- <ClInclude Include="frmts\sde\gdal_sde.h">
- <Filter>Include Files\frmts\sde</Filter>
- </ClInclude>
- <ClInclude Include="frmts\sde\sdedataset.h">
- <Filter>Include Files\frmts\sde</Filter>
- </ClInclude>
- <ClInclude Include="frmts\sde\sdeerror.h">
- <Filter>Include Files\frmts\sde</Filter>
- </ClInclude>
- <ClInclude Include="frmts\sde\sderasterband.h">
- <Filter>Include Files\frmts\sde</Filter>
- </ClInclude>
- <ClInclude Include="frmts\sdts\sdts_al.h">
- <Filter>Include Files\frmts\sdts</Filter>
- </ClInclude>
- <ClInclude Include="frmts\terralib\TerraLibDataset.h">
- <Filter>Include Files\frmts\terralib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\terralib\TerraLibRasterBand.h">
- <Filter>Include Files\frmts\terralib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\vrt\gdal_vrt.h">
- <Filter>Include Files\frmts\vrt</Filter>
- </ClInclude>
- <ClInclude Include="frmts\vrt\vrtdataset.h">
- <Filter>Include Files\frmts\vrt</Filter>
- </ClInclude>
- <ClInclude Include="frmts\wktraster\wktraster.h">
- <Filter>Include Files\frmts\wktraster</Filter>
- </ClInclude>
- <ClInclude Include="frmts\wms\gdalhttp.h">
- <Filter>Include Files\frmts\wms</Filter>
- </ClInclude>
- <ClInclude Include="frmts\wms\md5.h">
- <Filter>Include Files\frmts\wms</Filter>
- </ClInclude>
- <ClInclude Include="frmts\wms\minidriver_tileservice.h">
- <Filter>Include Files\frmts\wms</Filter>
- </ClInclude>
- <ClInclude Include="frmts\wms\minidriver_tms.h">
- <Filter>Include Files\frmts\wms</Filter>
- </ClInclude>
- <ClInclude Include="frmts\wms\minidriver_wms.h">
- <Filter>Include Files\frmts\wms</Filter>
- </ClInclude>
- <ClInclude Include="frmts\wms\minidriver_worldwind.h">
- <Filter>Include Files\frmts\wms</Filter>
- </ClInclude>
- <ClInclude Include="frmts\wms\stdinc.h">
- <Filter>Include Files\frmts\wms</Filter>
- </ClInclude>
- <ClInclude Include="frmts\wms\wmsdriver.h">
- <Filter>Include Files\frmts\wms</Filter>
- </ClInclude>
- <ClInclude Include="frmts\zlib\crc32.h">
- <Filter>Include Files\frmts\zlib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\zlib\deflate.h">
- <Filter>Include Files\frmts\zlib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\zlib\inffast.h">
- <Filter>Include Files\frmts\zlib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\zlib\inffixed.h">
- <Filter>Include Files\frmts\zlib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\zlib\inflate.h">
- <Filter>Include Files\frmts\zlib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\zlib\inftrees.h">
- <Filter>Include Files\frmts\zlib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\zlib\trees.h">
- <Filter>Include Files\frmts\zlib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\zlib\zconf.h">
- <Filter>Include Files\frmts\zlib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\zlib\zlib.h">
- <Filter>Include Files\frmts\zlib</Filter>
- </ClInclude>
- <ClInclude Include="frmts\zlib\zutil.h">
- <Filter>Include Files\frmts\zlib</Filter>
- </ClInclude>
- <ClInclude Include="gcore\gdal.h">
- <Filter>Include Files\gcore</Filter>
- </ClInclude>
- <ClInclude Include="gcore\gdaljp2metadata.h">
- <Filter>Include Files\gcore</Filter>
- </ClInclude>
- <ClInclude Include="gcore\gdal_frmts.h">
- <Filter>Include Files\gcore</Filter>
- </ClInclude>
- <ClInclude Include="gcore\gdal_pam.h">
- <Filter>Include Files\gcore</Filter>
- </ClInclude>
- <ClInclude Include="gcore\gdal_priv.h">
- <Filter>Include Files\gcore</Filter>
- </ClInclude>
- <ClInclude Include="gcore\gdal_proxy.h">
- <Filter>Include Files\gcore</Filter>
- </ClInclude>
- <ClInclude Include="gcore\gdal_rat.h">
- <Filter>Include Files\gcore</Filter>
- </ClInclude>
- <ClInclude Include="gcore\gdal_version.h">
- <Filter>Include Files\gcore</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\avc\avc.h">
- <Filter>Include Files\ogr\ogrsf_frmts\avc</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\avc\avc_mbyte.h">
- <Filter>Include Files\ogr\ogrsf_frmts\avc</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\avc\dbfopen.h">
- <Filter>Include Files\ogr\ogrsf_frmts\avc</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\avc\ogr_avc.h">
- <Filter>Include Files\ogr\ogrsf_frmts\avc</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\bna\ogrbnaparser.h">
- <Filter>Include Files\ogr\ogrsf_frmts\bna</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\bna\ogr_bna.h">
- <Filter>Include Files\ogr\ogrsf_frmts\bna</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\csv\ogr_csv.h">
- <Filter>Include Files\ogr\ogrsf_frmts\csv</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\dgn\dgnlib.h">
- <Filter>Include Files\ogr\ogrsf_frmts\dgn</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\dgn\dgnlibp.h">
- <Filter>Include Files\ogr\ogrsf_frmts\dgn</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\dgn\dist\cpl_config.h">
- <Filter>Include Files\ogr\ogrsf_frmts\dgn\dist</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\dgn\ogr_dgn.h">
- <Filter>Include Files\ogr\ogrsf_frmts\dgn</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\dods\ogr_dods.h">
- <Filter>Include Files\ogr\ogrsf_frmts\dods</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\dxf\ogr_dxf.h">
- <Filter>Include Files\ogr\ogrsf_frmts\dxf</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\fme\fme2ogr.h">
- <Filter>Include Files\ogr\ogrsf_frmts\fme</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\generic\ogr_gensql.h">
- <Filter>Include Files\ogr\ogrsf_frmts\generic</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geoconcept\geoconcept.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geoconcept</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geoconcept\geoconcept_syscoord.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geoconcept</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geoconcept\ogrgeoconceptdatasource.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geoconcept</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geoconcept\ogrgeoconceptdriver.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geoconcept</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geoconcept\ogrgeoconceptlayer.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geoconcept</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\arraylist.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\bits.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\config.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\debug.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\json.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\json_object.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\json_object_private.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\json_tokener.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\json_util.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\linkhash.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geojson\jsonc\printbuf.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geojson\ogrgeojsonreader.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geojson</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geojson\ogrgeojsonutils.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geojson</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geojson\ogrgeojsonwriter.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geojson</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\geojson\ogr_geojson.h">
- <Filter>Include Files\ogr\ogrsf_frmts\geojson</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\georss\ogr_georss.h">
- <Filter>Include Files\ogr\ogrsf_frmts\georss</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\gml\gmlreader.h">
- <Filter>Include Files\ogr\ogrsf_frmts\gml</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\gml\gmlreaderp.h">
- <Filter>Include Files\ogr\ogrsf_frmts\gml</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\gml\ogr_gml.h">
- <Filter>Include Files\ogr\ogrsf_frmts\gml</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\gmt\ogr_gmt.h">
- <Filter>Include Files\ogr\ogrsf_frmts\gmt</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\gpx\ogr_gpx.h">
- <Filter>Include Files\ogr\ogrsf_frmts\gpx</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\grass\ogrgrass.h">
- <Filter>Include Files\ogr\ogrsf_frmts\grass</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\gtm\gtm.h">
- <Filter>Include Files\ogr\ogrsf_frmts\gtm</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\gtm\ogr_gtm.h">
- <Filter>Include Files\ogr\ogrsf_frmts\gtm</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\idb\ogr_idb.h">
- <Filter>Include Files\ogr\ogrsf_frmts\idb</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\ili\ili1reader.h">
- <Filter>Include Files\ogr\ogrsf_frmts\ili</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\ili\ili1readerp.h">
- <Filter>Include Files\ogr\ogrsf_frmts\ili</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\ili\ili2reader.h">
- <Filter>Include Files\ogr\ogrsf_frmts\ili</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\ili\ili2readerp.h">
- <Filter>Include Files\ogr\ogrsf_frmts\ili</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\ili\ilihelper.h">
- <Filter>Include Files\ogr\ogrsf_frmts\ili</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\ili\iomhelper.h">
- <Filter>Include Files\ogr\ogrsf_frmts\ili</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\ili\iom\iom.h">
- <Filter>Include Files\ogr\ogrsf_frmts\ili\iom</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\ili\iom\iom_p.h">
- <Filter>Include Files\ogr\ogrsf_frmts\ili\iom</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\ili\ogr_ili1.h">
- <Filter>Include Files\ogr\ogrsf_frmts\ili</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\ili\ogr_ili2.h">
- <Filter>Include Files\ogr\ogrsf_frmts\ili</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\ingres\ogr_ingres.h">
- <Filter>Include Files\ogr\ogrsf_frmts\ingres</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\kml\kml.h">
- <Filter>Include Files\ogr\ogrsf_frmts\kml</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\kml\kmlnode.h">
- <Filter>Include Files\ogr\ogrsf_frmts\kml</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\kml\kmlutility.h">
- <Filter>Include Files\ogr\ogrsf_frmts\kml</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\kml\kmlvector.h">
- <Filter>Include Files\ogr\ogrsf_frmts\kml</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\kml\ogr_kml.h">
- <Filter>Include Files\ogr\ogrsf_frmts\kml</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\mem\ogr_mem.h">
- <Filter>Include Files\ogr\ogrsf_frmts\mem</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\mitab\mitab.h">
- <Filter>Include Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\mitab\mitab_geometry.h">
- <Filter>Include Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\mitab\mitab_ogr_driver.h">
- <Filter>Include Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\mitab\mitab_priv.h">
- <Filter>Include Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\mitab\mitab_utils.h">
- <Filter>Include Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\mysql\ogr_mysql.h">
- <Filter>Include Files\ogr\ogrsf_frmts\mysql</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\ntf\ntf.h">
- <Filter>Include Files\ogr\ogrsf_frmts\ntf</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\oci\ogr_oci.h">
- <Filter>Include Files\ogr\ogrsf_frmts\oci</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\odbc\ogr_odbc.h">
- <Filter>Include Files\ogr\ogrsf_frmts\odbc</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\ogdi\ogrogdi.h">
- <Filter>Include Files\ogr\ogrsf_frmts\ogdi</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\ogrsf_frmts.h">
- <Filter>Include Files\ogr\ogrsf_frmts</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\ogr_attrind.h">
- <Filter>Include Files\ogr\ogrsf_frmts</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\pcidsk\ogr_pcidsk.h">
- <Filter>Include Files\ogr\ogrsf_frmts\pcidsk</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\pgeo\ogr_pgeo.h">
- <Filter>Include Files\ogr\ogrsf_frmts\pgeo</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\pg\ogrpgutility.h">
- <Filter>Include Files\ogr\ogrsf_frmts\pg</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\pg\ogr_pg.h">
- <Filter>Include Files\ogr\ogrsf_frmts\pg</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\rec\ogr_rec.h">
- <Filter>Include Files\ogr\ogrsf_frmts\rec</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\s57\ogr_s57.h">
- <Filter>Include Files\ogr\ogrsf_frmts\s57</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\s57\s57.h">
- <Filter>Include Files\ogr\ogrsf_frmts\s57</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\s57\s57tables.h">
- <Filter>Include Files\ogr\ogrsf_frmts\s57</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\sde\ogr_sde.h">
- <Filter>Include Files\ogr\ogrsf_frmts\sde</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\sdts\ogr_sdts.h">
- <Filter>Include Files\ogr\ogrsf_frmts\sdts</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\shape\ogrshape.h">
- <Filter>Include Files\ogr\ogrsf_frmts\shape</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\shape\shapefil.h">
- <Filter>Include Files\ogr\ogrsf_frmts\shape</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\sqlite\ogr_sqlite.h">
- <Filter>Include Files\ogr\ogrsf_frmts\sqlite</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\tiger\ogr_tiger.h">
- <Filter>Include Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\vrt\ogr_vrt.h">
- <Filter>Include Files\ogr\ogrsf_frmts\vrt</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\xplane\ogr_xplane.h">
- <Filter>Include Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\xplane\ogr_xplane_apt_reader.h">
- <Filter>Include Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\xplane\ogr_xplane_awy_reader.h">
- <Filter>Include Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\xplane\ogr_xplane_fix_reader.h">
- <Filter>Include Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\xplane\ogr_xplane_geo_utils.h">
- <Filter>Include Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\xplane\ogr_xplane_nav_reader.h">
- <Filter>Include Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogrsf_frmts\xplane\ogr_xplane_reader.h">
- <Filter>Include Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogr_api.h">
- <Filter>Include Files\ogr</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogr_core.h">
- <Filter>Include Files\ogr</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogr_expat.h">
- <Filter>Include Files\ogr</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogr_feature.h">
- <Filter>Include Files\ogr</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogr_featurestyle.h">
- <Filter>Include Files\ogr</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogr_geometry.h">
- <Filter>Include Files\ogr</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogr_geos.h">
- <Filter>Include Files\ogr</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogr_p.h">
- <Filter>Include Files\ogr</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogr_spatialref.h">
- <Filter>Include Files\ogr</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogr_srs_api.h">
- <Filter>Include Files\ogr</Filter>
- </ClInclude>
- <ClInclude Include="ogr\ogr_srs_esri_names.h">
- <Filter>Include Files\ogr</Filter>
- </ClInclude>
- <ClInclude Include="ogr\swq.h">
- <Filter>Include Files\ogr</Filter>
- </ClInclude>
- <ClInclude Include="port\cplkeywordparser.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_atomic_ops.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_config.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_config_extras.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_conv.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_csv.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_error.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_hash_set.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_http.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_list.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_minixml.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_minizip_ioapi.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_minizip_unzip.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_multiproc.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_odbc.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_port.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_quad_tree.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_string.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_time.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_vsi.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_vsi_virtual.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_win32ce_api.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- <ClInclude Include="port\cpl_wince.h">
- <Filter>Include Files\port</Filter>
- </ClInclude>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="alg\contour.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdalchecksum.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdalcutline.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdaldither.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdalgeoloc.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdalgrid.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdalmediancut.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdalproximity.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdalrasterize.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdalrasterpolygonenumerator.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdalsievefilter.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdalsimplewarp.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdaltransformer.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdalwarper.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdalwarpkernel.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdalwarpoperation.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdal_crs.c">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdal_nrgcrs.c">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdal_rpc.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\gdal_tps.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\llrasterize.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\polygonize.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\rasterfill.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="alg\thinplatespline.cpp">
- <Filter>Source Files\alg</Filter>
- </ClCompile>
- <ClCompile Include="apps\dumpoverviews.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdal2ogr.c">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdaladdo.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdalbuildvrt.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdaldem.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdalenhance.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdalflattenmask.c">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdalinfo.c">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdalmanage.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdaltindex.c">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdaltorture.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdaltransform.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdalwarp.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdalwarpsimple.c">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdal_contour.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdal_grid.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdal_rasterize.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\gdal_translate.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\multireadtest.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\nearblack.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\ogr2ogr.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\ogrdissolve.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\ogrinfo.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\ogrtindex.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\testepsg.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="apps\test_ogrsf.cpp">
- <Filter>Source Files\apps</Filter>
- </ClCompile>
- <ClCompile Include="bridge\bridge_test.cpp">
- <Filter>Source Files\bridge</Filter>
- </ClCompile>
- <ClCompile Include="bridge\gbgetsymbol.cpp">
- <Filter>Source Files\bridge</Filter>
- </ClCompile>
- <ClCompile Include="bridge\gdalbridge.cpp">
- <Filter>Source Files\bridge</Filter>
- </ClCompile>
- <ClCompile Include="frmts\aaigrid\aaigriddataset.cpp">
- <Filter>Source Files\frmts\aaigrid</Filter>
- </ClCompile>
- <ClCompile Include="frmts\adrg\adrgdataset.cpp">
- <Filter>Source Files\frmts\adrg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\adrg\srpdataset.cpp">
- <Filter>Source Files\frmts\adrg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\aigrid\aigccitt.c">
- <Filter>Source Files\frmts\aigrid</Filter>
- </ClCompile>
- <ClCompile Include="frmts\aigrid\aigdataset.cpp">
- <Filter>Source Files\frmts\aigrid</Filter>
- </ClCompile>
- <ClCompile Include="frmts\aigrid\aigopen.c">
- <Filter>Source Files\frmts\aigrid</Filter>
- </ClCompile>
- <ClCompile Include="frmts\aigrid\aitest.c">
- <Filter>Source Files\frmts\aigrid</Filter>
- </ClCompile>
- <ClCompile Include="frmts\aigrid\gridlib.c">
- <Filter>Source Files\frmts\aigrid</Filter>
- </ClCompile>
- <ClCompile Include="frmts\airsar\airsardataset.cpp">
- <Filter>Source Files\frmts\airsar</Filter>
- </ClCompile>
- <ClCompile Include="frmts\blx\blx.c">
- <Filter>Source Files\frmts\blx</Filter>
- </ClCompile>
- <ClCompile Include="frmts\blx\blxdataset.cpp">
- <Filter>Source Files\frmts\blx</Filter>
- </ClCompile>
- <ClCompile Include="frmts\bmp\bmpdataset.cpp">
- <Filter>Source Files\frmts\bmp</Filter>
- </ClCompile>
- <ClCompile Include="frmts\bsb\bsb2raw.c">
- <Filter>Source Files\frmts\bsb</Filter>
- </ClCompile>
- <ClCompile Include="frmts\bsb\bsbdataset.cpp">
- <Filter>Source Files\frmts\bsb</Filter>
- </ClCompile>
- <ClCompile Include="frmts\bsb\bsb_read.c">
- <Filter>Source Files\frmts\bsb</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ceos2\ceos.c">
- <Filter>Source Files\frmts\ceos2</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ceos2\ceosrecipe.c">
- <Filter>Source Files\frmts\ceos2</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ceos2\ceossar.c">
- <Filter>Source Files\frmts\ceos2</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ceos2\link.c">
- <Filter>Source Files\frmts\ceos2</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ceos2\sar_ceosdataset.cpp">
- <Filter>Source Files\frmts\ceos2</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ceos\ceosdataset.cpp">
- <Filter>Source Files\frmts\ceos</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ceos\ceosopen.c">
- <Filter>Source Files\frmts\ceos</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ceos\ceostest.c">
- <Filter>Source Files\frmts\ceos</Filter>
- </ClCompile>
- <ClCompile Include="frmts\coasp\coasp_dataset.cpp">
- <Filter>Source Files\frmts\coasp</Filter>
- </ClCompile>
- <ClCompile Include="frmts\cosar\cosar_dataset.cpp">
- <Filter>Source Files\frmts\cosar</Filter>
- </ClCompile>
- <ClCompile Include="frmts\dimap\dimapdataset.cpp">
- <Filter>Source Files\frmts\dimap</Filter>
- </ClCompile>
- <ClCompile Include="frmts\dods\dodsdataset2.cpp">
- <Filter>Source Files\frmts\dods</Filter>
- </ClCompile>
- <ClCompile Include="frmts\dted\dteddataset.cpp">
- <Filter>Source Files\frmts\dted</Filter>
- </ClCompile>
- <ClCompile Include="frmts\dted\dted_api.c">
- <Filter>Source Files\frmts\dted</Filter>
- </ClCompile>
- <ClCompile Include="frmts\dted\dted_create.c">
- <Filter>Source Files\frmts\dted</Filter>
- </ClCompile>
- <ClCompile Include="frmts\dted\dted_ptstream.c">
- <Filter>Source Files\frmts\dted</Filter>
- </ClCompile>
- <ClCompile Include="frmts\dted\dted_test.c">
- <Filter>Source Files\frmts\dted</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ecw\ecwcreatecopy.cpp">
- <Filter>Source Files\frmts\ecw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ecw\ecwdataset.cpp">
- <Filter>Source Files\frmts\ecw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ecw\jp2userbox.cpp">
- <Filter>Source Files\frmts\ecw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\elas\elasdataset.cpp">
- <Filter>Source Files\frmts\elas</Filter>
- </ClCompile>
- <ClCompile Include="frmts\envisat\dumpgeo.c">
- <Filter>Source Files\frmts\envisat</Filter>
- </ClCompile>
- <ClCompile Include="frmts\envisat\envisatdataset.cpp">
- <Filter>Source Files\frmts\envisat</Filter>
- </ClCompile>
- <ClCompile Include="frmts\envisat\EnvisatFile.c">
- <Filter>Source Files\frmts\envisat</Filter>
- </ClCompile>
- <ClCompile Include="frmts\envisat\envisat_dump.c">
- <Filter>Source Files\frmts\envisat</Filter>
- </ClCompile>
- <ClCompile Include="frmts\epsilon\epsilondataset.cpp">
- <Filter>Source Files\frmts\epsilon</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ers\ersdataset.cpp">
- <Filter>Source Files\frmts\ers</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ers\ershdrnode.cpp">
- <Filter>Source Files\frmts\ers</Filter>
- </ClCompile>
- <ClCompile Include="frmts\fits\fitsdataset.cpp">
- <Filter>Source Files\frmts\fits</Filter>
- </ClCompile>
- <ClCompile Include="frmts\fit\fit.cpp">
- <Filter>Source Files\frmts\fit</Filter>
- </ClCompile>
- <ClCompile Include="frmts\fit\fitdataset.cpp">
- <Filter>Source Files\frmts\fit</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gdalallregister.cpp">
- <Filter>Source Files\frmts</Filter>
- </ClCompile>
- <ClCompile Include="frmts\georaster\georaster_dataset.cpp">
- <Filter>Source Files\frmts\georaster</Filter>
- </ClCompile>
- <ClCompile Include="frmts\georaster\georaster_driver.cpp">
- <Filter>Source Files\frmts\georaster</Filter>
- </ClCompile>
- <ClCompile Include="frmts\georaster\georaster_rasterband.cpp">
- <Filter>Source Files\frmts\georaster</Filter>
- </ClCompile>
- <ClCompile Include="frmts\georaster\georaster_wrapper.cpp">
- <Filter>Source Files\frmts\georaster</Filter>
- </ClCompile>
- <ClCompile Include="frmts\georaster\oci_wrapper.cpp">
- <Filter>Source Files\frmts\georaster</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gff\gff_dataset.cpp">
- <Filter>Source Files\frmts\gff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gif\biggifdataset.cpp">
- <Filter>Source Files\frmts\gif</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gif\gifdataset.cpp">
- <Filter>Source Files\frmts\gif</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gif\giflib\dgif_lib.c">
- <Filter>Source Files\frmts\gif\giflib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gif\giflib\egif_lib.c">
- <Filter>Source Files\frmts\gif\giflib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gif\giflib\gifalloc.c">
- <Filter>Source Files\frmts\gif\giflib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gif\giflib\gif_err.c">
- <Filter>Source Files\frmts\gif\giflib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gif\giflib\gif_hash.c">
- <Filter>Source Files\frmts\gif\giflib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grass\grass57dataset.cpp">
- <Filter>Source Files\frmts\grass</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grass\grassdataset.cpp">
- <Filter>Source Files\frmts\grass</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\clock.c">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\degrib1.cpp">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\degrib2.cpp">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\engribapi.c">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\filedatasource.cpp">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\fileendian.cpp">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\grib1tab.cpp">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\grib2api.c">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\inventory.cpp">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\memendian.c">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\memorydatasource.cpp">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\metaname.cpp">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\metaparse.cpp">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\metaprint.cpp">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\myassert.c">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\myerror.c">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\myutil.c">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\scan.c">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\tdlpack.cpp">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\degrib\weather.c">
- <Filter>Source Files\frmts\grib\degrib18\degrib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\cmplxpack.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\compack.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\comunpack.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\dec_jpeg2000.cpp">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\dec_png.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\drstemplates.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\enc_jpeg2000.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\enc_png.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_addfield.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_addgrid.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_addlocal.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_create.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_free.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_getfld.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_gribend.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_info.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_miss.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_unpack1.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_unpack2.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_unpack3.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_unpack4.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_unpack5.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_unpack6.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\g2_unpack7.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\gbits.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\getdim.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\getpoly.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\gridtemplates.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\int_power.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\jpcpack.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\jpcunpack.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\misspack.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\mkieee.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\pack_gp.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\pdstemplates.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\pngpack.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\pngunpack.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\rdieee.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\reduce.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\seekgb.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\simpack.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\simunpack.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\specpack.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\degrib18\g2clib-1.0.4\specunpack.c">
- <Filter>Source Files\frmts\grib\degrib18\g2clib-1.0.4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\grib\gribdataset.cpp">
- <Filter>Source Files\frmts\grib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gsg\gs7bgdataset.cpp">
- <Filter>Source Files\frmts\gsg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gsg\gsagdataset.cpp">
- <Filter>Source Files\frmts\gsg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gsg\gsbgdataset.cpp">
- <Filter>Source Files\frmts\gsg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\geotiff.cpp">
- <Filter>Source Files\frmts\gtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\gt_citation.cpp">
- <Filter>Source Files\frmts\gtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\gt_overview.cpp">
- <Filter>Source Files\frmts\gtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\gt_wkt_srs.cpp">
- <Filter>Source Files\frmts\gtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libgeotiff\geotiff_proj4.c">
- <Filter>Source Files\frmts\gtiff\libgeotiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_extra.c">
- <Filter>Source Files\frmts\gtiff\libgeotiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_free.c">
- <Filter>Source Files\frmts\gtiff\libgeotiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_get.c">
- <Filter>Source Files\frmts\gtiff\libgeotiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_names.c">
- <Filter>Source Files\frmts\gtiff\libgeotiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_new.c">
- <Filter>Source Files\frmts\gtiff\libgeotiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_normalize.c">
- <Filter>Source Files\frmts\gtiff\libgeotiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_print.c">
- <Filter>Source Files\frmts\gtiff\libgeotiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_set.c">
- <Filter>Source Files\frmts\gtiff\libgeotiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_simpletags.c">
- <Filter>Source Files\frmts\gtiff\libgeotiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_tiffp.c">
- <Filter>Source Files\frmts\gtiff\libgeotiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_trans.c">
- <Filter>Source Files\frmts\gtiff\libgeotiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libgeotiff\geo_write.c">
- <Filter>Source Files\frmts\gtiff\libgeotiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libgeotiff\xtiff.c">
- <Filter>Source Files\frmts\gtiff\libgeotiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_aux.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_close.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_codec.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_color.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_compress.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_dir.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_dirinfo.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_dirread.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_dirwrite.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_dumpmode.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_error.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_extension.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_fax3.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_fax3sm.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_flush.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_getimage.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_jpeg.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_jpeg_12.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_luv.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_lzw.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_next.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_ojpeg.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_open.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_packbits.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_pixarlog.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_predict.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_print.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_read.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_strip.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_swab.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_thunder.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_tile.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_version.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_vsi.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_warning.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_write.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\libtiff\tif_zip.c">
- <Filter>Source Files\frmts\gtiff\libtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\tifvsi.cpp">
- <Filter>Source Files\frmts\gtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gtiff\tif_float.c">
- <Filter>Source Files\frmts\gtiff</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gxf\gxfdataset.cpp">
- <Filter>Source Files\frmts\gxf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gxf\gxfopen.c">
- <Filter>Source Files\frmts\gxf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gxf\gxf_ogcwkt.c">
- <Filter>Source Files\frmts\gxf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\gxf\gxf_proj4.c">
- <Filter>Source Files\frmts\gxf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hdf4\hdf-eos\EHapi.c">
- <Filter>Source Files\frmts\hdf4\hdf-eos</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hdf4\hdf-eos\gctp_wrap.c">
- <Filter>Source Files\frmts\hdf4\hdf-eos</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hdf4\hdf-eos\GDapi.c">
- <Filter>Source Files\frmts\hdf4\hdf-eos</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hdf4\hdf-eos\SWapi.c">
- <Filter>Source Files\frmts\hdf4\hdf-eos</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hdf4\hdf4dataset.cpp">
- <Filter>Source Files\frmts\hdf4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hdf4\hdf4imagedataset.cpp">
- <Filter>Source Files\frmts\hdf4</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hdf5\bagdataset.cpp">
- <Filter>Source Files\frmts\hdf5</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hdf5\gh5_convenience.cpp">
- <Filter>Source Files\frmts\hdf5</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hdf5\hdf5dataset.cpp">
- <Filter>Source Files\frmts\hdf5</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hdf5\hdf5imagedataset.cpp">
- <Filter>Source Files\frmts\hdf5</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hdf5\iso19115_srs.cpp">
- <Filter>Source Files\frmts\hdf5</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hfa\hfaband.cpp">
- <Filter>Source Files\frmts\hfa</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hfa\hfacompress.cpp">
- <Filter>Source Files\frmts\hfa</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hfa\hfadataset.cpp">
- <Filter>Source Files\frmts\hfa</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hfa\hfadictionary.cpp">
- <Filter>Source Files\frmts\hfa</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hfa\hfaentry.cpp">
- <Filter>Source Files\frmts\hfa</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hfa\hfafield.cpp">
- <Filter>Source Files\frmts\hfa</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hfa\hfaopen.cpp">
- <Filter>Source Files\frmts\hfa</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hfa\hfatest.cpp">
- <Filter>Source Files\frmts\hfa</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hfa\hfatype.cpp">
- <Filter>Source Files\frmts\hfa</Filter>
- </ClCompile>
- <ClCompile Include="frmts\hfa\hfa_overviews.cpp">
- <Filter>Source Files\frmts\hfa</Filter>
- </ClCompile>
- <ClCompile Include="frmts\idrisi\IdrisiDataset.cpp">
- <Filter>Source Files\frmts\idrisi</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ilwis\ilwiscoordinatesystem.cpp">
- <Filter>Source Files\frmts\ilwis</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ilwis\ilwisdataset.cpp">
- <Filter>Source Files\frmts\ilwis</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ingr\IngrTypes.cpp">
- <Filter>Source Files\frmts\ingr</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ingr\IntergraphBand.cpp">
- <Filter>Source Files\frmts\ingr</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ingr\IntergraphDataset.cpp">
- <Filter>Source Files\frmts\ingr</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ingr\JpegHelper.cpp">
- <Filter>Source Files\frmts\ingr</Filter>
- </ClCompile>
- <ClCompile Include="frmts\iso8211\8211dump.cpp">
- <Filter>Source Files\frmts\iso8211</Filter>
- </ClCompile>
- <ClCompile Include="frmts\iso8211\8211view.cpp">
- <Filter>Source Files\frmts\iso8211</Filter>
- </ClCompile>
- <ClCompile Include="frmts\iso8211\ddffield.cpp">
- <Filter>Source Files\frmts\iso8211</Filter>
- </ClCompile>
- <ClCompile Include="frmts\iso8211\ddffielddefn.cpp">
- <Filter>Source Files\frmts\iso8211</Filter>
- </ClCompile>
- <ClCompile Include="frmts\iso8211\ddfmodule.cpp">
- <Filter>Source Files\frmts\iso8211</Filter>
- </ClCompile>
- <ClCompile Include="frmts\iso8211\ddfrecord.cpp">
- <Filter>Source Files\frmts\iso8211</Filter>
- </ClCompile>
- <ClCompile Include="frmts\iso8211\ddfsubfielddefn.cpp">
- <Filter>Source Files\frmts\iso8211</Filter>
- </ClCompile>
- <ClCompile Include="frmts\iso8211\ddfutils.cpp">
- <Filter>Source Files\frmts\iso8211</Filter>
- </ClCompile>
- <ClCompile Include="frmts\iso8211\mkcatalog.cpp">
- <Filter>Source Files\frmts\iso8211</Filter>
- </ClCompile>
- <ClCompile Include="frmts\iso8211\timetest.cpp">
- <Filter>Source Files\frmts\iso8211</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jaxapalsar\jaxapalsardataset.cpp">
- <Filter>Source Files\frmts\jaxapalsar</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jdem\jdemdataset.cpp">
- <Filter>Source Files\frmts\jdem</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jp2kak\jp2kakdataset.cpp">
- <Filter>Source Files\frmts\jp2kak</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg2000\jpeg2000dataset.cpp">
- <Filter>Source Files\frmts\jpeg2000</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg2000\jpeg2000_vsil_io.cpp">
- <Filter>Source Files\frmts\jpeg2000</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\jpgdataset.cpp">
- <Filter>Source Files\frmts\jpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\jpgdataset_12.cpp">
- <Filter>Source Files\frmts\jpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jcapimin12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jcapistd12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jccoefct12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jccolor12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jcdctmgr12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jchuff12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jcinit12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jcmainct12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jcmarker12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jcmaster12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jcomapi12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jcparam12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jcphuff12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jcprepct12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jcsample12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jctrans12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jdapimin12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jdapistd12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jdatadst12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jdatasrc12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jdcoefct12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jdcolor12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jddctmgr12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jdhuff12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jdinput12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jdmainct12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jdmarker12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jdmaster12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jdmerge12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jdphuff12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jdpostct12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jdsample12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jdtrans12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jerror12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jfdctflt12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jfdctfst12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jfdctint12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jidctflt12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jidctfst12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jidctint12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jidctred12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jmemansi12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jmemmgr12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jquant112.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jquant212.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg12\jutils12.c">
- <Filter>Source Files\frmts\jpeg\libjpeg12</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jcapimin.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jcapistd.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jccoefct.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jccolor.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jcdctmgr.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jchuff.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jcinit.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jcmainct.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jcmarker.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jcmaster.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jcomapi.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jcparam.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jcphuff.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jcprepct.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jcsample.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jctrans.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jdapimin.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jdapistd.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jdatadst.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jdatasrc.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jdcoefct.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jdcolor.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jddctmgr.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jdhuff.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jdinput.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jdmainct.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jdmarker.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jdmaster.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jdmerge.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jdphuff.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jdpostct.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jdsample.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jdtrans.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jerror.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jfdctflt.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jfdctfst.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jfdctint.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jidctflt.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jidctfst.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jidctint.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jidctred.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jmemansi.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jmemmgr.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jquant1.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jquant2.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\libjpeg\jutils.c">
- <Filter>Source Files\frmts\jpeg\libjpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\jpeg\vsidataio.cpp">
- <Filter>Source Files\frmts\jpeg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\l1b\l1bdataset.cpp">
- <Filter>Source Files\frmts\l1b</Filter>
- </ClCompile>
- <ClCompile Include="frmts\leveller\levellerdataset.cpp">
- <Filter>Source Files\frmts\leveller</Filter>
- </ClCompile>
- <ClCompile Include="frmts\mem\memdataset.cpp">
- <Filter>Source Files\frmts\mem</Filter>
- </ClCompile>
- <ClCompile Include="frmts\mrsid\mrsiddataset.cpp">
- <Filter>Source Files\frmts\mrsid</Filter>
- </ClCompile>
- <ClCompile Include="frmts\mrsid\mrsidstream.cpp">
- <Filter>Source Files\frmts\mrsid</Filter>
- </ClCompile>
- <ClCompile Include="frmts\msgn\msgndataset.cpp">
- <Filter>Source Files\frmts\msgn</Filter>
- </ClCompile>
- <ClCompile Include="frmts\msgn\msg_basic_types.cpp">
- <Filter>Source Files\frmts\msgn</Filter>
- </ClCompile>
- <ClCompile Include="frmts\msgn\msg_reader_core.cpp">
- <Filter>Source Files\frmts\msgn</Filter>
- </ClCompile>
- <ClCompile Include="frmts\msg\msgcommand.cpp">
- <Filter>Source Files\frmts\msg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\msg\msgdataset.cpp">
- <Filter>Source Files\frmts\msg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\msg\prologue.cpp">
- <Filter>Source Files\frmts\msg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\msg\reflectancecalculator.cpp">
- <Filter>Source Files\frmts\msg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\msg\xritheaderparser.cpp">
- <Filter>Source Files\frmts\msg</Filter>
- </ClCompile>
- <ClCompile Include="frmts\netcdf\gmtdataset.cpp">
- <Filter>Source Files\frmts\netcdf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\netcdf\netcdfdataset.cpp">
- <Filter>Source Files\frmts\netcdf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\nitf\mgrs.c">
- <Filter>Source Files\frmts\nitf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\nitf\nitfaridpcm.cpp">
- <Filter>Source Files\frmts\nitf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\nitf\nitfbilevel.cpp">
- <Filter>Source Files\frmts\nitf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\nitf\nitfdataset.cpp">
- <Filter>Source Files\frmts\nitf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\nitf\nitfdump.c">
- <Filter>Source Files\frmts\nitf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\nitf\nitffile.c">
- <Filter>Source Files\frmts\nitf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\nitf\nitfimage.c">
- <Filter>Source Files\frmts\nitf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\nitf\nitfwritejpeg.cpp">
- <Filter>Source Files\frmts\nitf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\nitf\nitfwritejpeg_12.cpp">
- <Filter>Source Files\frmts\nitf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\nitf\rpftocdataset.cpp">
- <Filter>Source Files\frmts\nitf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\nitf\rpftocfile.cpp">
- <Filter>Source Files\frmts\nitf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\northwood\grcdataset.cpp">
- <Filter>Source Files\frmts\northwood</Filter>
- </ClCompile>
- <ClCompile Include="frmts\northwood\grddataset.cpp">
- <Filter>Source Files\frmts\northwood</Filter>
- </ClCompile>
- <ClCompile Include="frmts\northwood\northwood.cpp">
- <Filter>Source Files\frmts\northwood</Filter>
- </ClCompile>
- <ClCompile Include="frmts\ogdi\ogdidataset.cpp">
- <Filter>Source Files\frmts\ogdi</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\pcidskdataset.cpp">
- <Filter>Source Files\frmts\pcidsk</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\pcidskdataset2.cpp">
- <Filter>Source Files\frmts\pcidsk</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\pcidsktiledrasterband.cpp">
- <Filter>Source Files\frmts\pcidsk</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\channel\cbandinterleavedchannel.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\channel</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\channel\cpcidskchannel.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\channel</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\channel\cpixelinterleavedchannel.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\channel</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\channel\ctiledchannel.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\channel</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\core\cpcidskfile.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\core</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\core\libjpeg_io.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\core</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\core\metadataset_p.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\core</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\core\pcidskbuffer.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\core</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\core\pcidskcreate.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\core</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\core\pcidskexception.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\core</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\core\pcidskinterfaces.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\core</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\core\pcidskopen.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\core</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\core\pcidsk_pubutils.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\core</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\core\pcidsk_utils.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\core</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\core\sysvirtualfile.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\core</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\port\io_stdio.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\port</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\port\io_win32.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\port</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\port\pthread_mutex.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\port</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\port\win32_mutex.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\port</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\segment\cpcidskgeoref.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\segment</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\segment\cpcidskpct.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\segment</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\segment\cpcidsksegment.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\segment</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\segment\cpcidskvectorsegment.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\segment</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\segment\metadatasegment_p.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\segment</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\segment\segmentfactory.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\segment</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\segment\segment_loader.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\segment</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\sdk\segment\sysblockmap.cpp">
- <Filter>Source Files\frmts\pcidsk\sdk\segment</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcidsk\vsi_pcidsk_io.cpp">
- <Filter>Source Files\frmts\pcidsk</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\angle.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\attravai.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\attrsize.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\cellsize.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\create2.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\csfglob.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\csfsup.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\delattr.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\dumconv.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\endian.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\filename.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\gattrblk.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\gattridx.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\gcellrep.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\gdattype.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\getattr.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\getx0.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\gety0.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\ggisfid.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\gmaxval.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\gminval.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\gnrcols.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\gnrrows.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\gproj.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\gputproj.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\gvalscal.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\gvartype.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\gversion.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\ismv.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\kernlcsf.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\legend.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\mclose.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\mopen.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\moreattr.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\mperror.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\pgisfid.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\pmaxval.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\pminval.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\putallmv.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\putattr.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\putsomec.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\putx0.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\puty0.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\pvalscal.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\rattrblk.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\rcomp.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\rcoords.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\rdup2.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\reseterr.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\rextend.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\rmalloc.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\rrowcol.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\ruseas.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\setangle.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\setmv.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\setvtmv.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\strconst.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\strpad.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\swapio.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\trackmm.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\vs2.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\vsdef.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\vsis.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\vsvers.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\wattrblk.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\_getcell.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\_getrow.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\_gsomece.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\_putcell.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\libcsf\_rputrow.c">
- <Filter>Source Files\frmts\pcraster\libcsf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\pcrasterdataset.cpp">
- <Filter>Source Files\frmts\pcraster</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\pcrastermisc.cpp">
- <Filter>Source Files\frmts\pcraster</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\pcrasterrasterband.cpp">
- <Filter>Source Files\frmts\pcraster</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pcraster\pcrasterutil.cpp">
- <Filter>Source Files\frmts\pcraster</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pds\isis2dataset.cpp">
- <Filter>Source Files\frmts\pds</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pds\isis3dataset.cpp">
- <Filter>Source Files\frmts\pds</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pds\nasakeywordhandler.cpp">
- <Filter>Source Files\frmts\pds</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pds\pdsdataset.cpp">
- <Filter>Source Files\frmts\pds</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pgchip\pgchipdataset.cpp">
- <Filter>Source Files\frmts\pgchip</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pgchip\pgchiprasterband.cpp">
- <Filter>Source Files\frmts\pgchip</Filter>
- </ClCompile>
- <ClCompile Include="frmts\pgchip\pgchiputilities.cpp">
- <Filter>Source Files\frmts\pgchip</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\png.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\pngerror.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\pnggccrd.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\pngget.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\pngmem.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\pngpread.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\pngread.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\pngrio.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\pngrtran.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\pngrutil.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\pngset.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\pngtrans.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\pngvcrd.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\pngwio.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\pngwrite.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\pngwtran.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\libpng\pngwutil.c">
- <Filter>Source Files\frmts\png\libpng</Filter>
- </ClCompile>
- <ClCompile Include="frmts\png\pngdataset.cpp">
- <Filter>Source Files\frmts\png</Filter>
- </ClCompile>
- <ClCompile Include="frmts\rasterlite\rasterlitecreatecopy.cpp">
- <Filter>Source Files\frmts\rasterlite</Filter>
- </ClCompile>
- <ClCompile Include="frmts\rasterlite\rasterlitedataset.cpp">
- <Filter>Source Files\frmts\rasterlite</Filter>
- </ClCompile>
- <ClCompile Include="frmts\rasterlite\rasterliteoverviews.cpp">
- <Filter>Source Files\frmts\rasterlite</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\atlsci_spheroid.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\btdataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\cpgdataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\dipxdataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\doq1dataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\doq2dataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\ehdrdataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\eirdataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\envidataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\fastdataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\fujibasdataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\genbindataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\gscdataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\hkvdataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\idadataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\landataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\lcpdataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\mffdataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\ndfdataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\pauxdataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\pnmdataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\raw\rawdataset.cpp">
- <Filter>Source Files\frmts\raw</Filter>
- </ClCompile>
- <ClCompile Include="frmts\rik\rikdataset.cpp">
- <Filter>Source Files\frmts\rik</Filter>
- </ClCompile>
- <ClCompile Include="frmts\rmf\rmfdataset.cpp">
- <Filter>Source Files\frmts\rmf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\rmf\rmflzw.cpp">
- <Filter>Source Files\frmts\rmf</Filter>
- </ClCompile>
- <ClCompile Include="frmts\rs2\rs2dataset.cpp">
- <Filter>Source Files\frmts\rs2</Filter>
- </ClCompile>
- <ClCompile Include="frmts\r\rcreatecopy.cpp">
- <Filter>Source Files\frmts\r</Filter>
- </ClCompile>
- <ClCompile Include="frmts\r\rdataset.cpp">
- <Filter>Source Files\frmts\r</Filter>
- </ClCompile>
- <ClCompile Include="frmts\saga\sagadataset.cpp">
- <Filter>Source Files\frmts\saga</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sde\sdedataset.cpp">
- <Filter>Source Files\frmts\sde</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sde\sdeerror.cpp">
- <Filter>Source Files\frmts\sde</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sde\sderasterband.cpp">
- <Filter>Source Files\frmts\sde</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sdts\sdts2shp.cpp">
- <Filter>Source Files\frmts\sdts</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sdts\sdtsattrreader.cpp">
- <Filter>Source Files\frmts\sdts</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sdts\sdtscatd.cpp">
- <Filter>Source Files\frmts\sdts</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sdts\sdtsdataset.cpp">
- <Filter>Source Files\frmts\sdts</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sdts\sdtsindexedreader.cpp">
- <Filter>Source Files\frmts\sdts</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sdts\sdtsiref.cpp">
- <Filter>Source Files\frmts\sdts</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sdts\sdtslib.cpp">
- <Filter>Source Files\frmts\sdts</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sdts\sdtslinereader.cpp">
- <Filter>Source Files\frmts\sdts</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sdts\sdtspointreader.cpp">
- <Filter>Source Files\frmts\sdts</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sdts\sdtspolygonreader.cpp">
- <Filter>Source Files\frmts\sdts</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sdts\sdtsrasterreader.cpp">
- <Filter>Source Files\frmts\sdts</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sdts\sdtstransfer.cpp">
- <Filter>Source Files\frmts\sdts</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sdts\sdtsxref.cpp">
- <Filter>Source Files\frmts\sdts</Filter>
- </ClCompile>
- <ClCompile Include="frmts\sgi\sgidataset.cpp">
- <Filter>Source Files\frmts\sgi</Filter>
- </ClCompile>
- <ClCompile Include="frmts\srtmhgt\srtmhgtdataset.cpp">
- <Filter>Source Files\frmts\srtmhgt</Filter>
- </ClCompile>
- <ClCompile Include="frmts\terragen\terragendataset.cpp">
- <Filter>Source Files\frmts\terragen</Filter>
- </ClCompile>
- <ClCompile Include="frmts\terralib\TerraLibDataset.cpp">
- <Filter>Source Files\frmts\terralib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\terralib\TerraLibRasterBand.cpp">
- <Filter>Source Files\frmts\terralib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\til\tildataset.cpp">
- <Filter>Source Files\frmts\til</Filter>
- </ClCompile>
- <ClCompile Include="frmts\tsx\tsxdataset.cpp">
- <Filter>Source Files\frmts\tsx</Filter>
- </ClCompile>
- <ClCompile Include="frmts\usgsdem\usgsdemdataset.cpp">
- <Filter>Source Files\frmts\usgsdem</Filter>
- </ClCompile>
- <ClCompile Include="frmts\usgsdem\usgsdem_create.cpp">
- <Filter>Source Files\frmts\usgsdem</Filter>
- </ClCompile>
- <ClCompile Include="frmts\vrt\vrtdataset.cpp">
- <Filter>Source Files\frmts\vrt</Filter>
- </ClCompile>
- <ClCompile Include="frmts\vrt\vrtderivedrasterband.cpp">
- <Filter>Source Files\frmts\vrt</Filter>
- </ClCompile>
- <ClCompile Include="frmts\vrt\vrtdriver.cpp">
- <Filter>Source Files\frmts\vrt</Filter>
- </ClCompile>
- <ClCompile Include="frmts\vrt\vrtfilters.cpp">
- <Filter>Source Files\frmts\vrt</Filter>
- </ClCompile>
- <ClCompile Include="frmts\vrt\vrtrasterband.cpp">
- <Filter>Source Files\frmts\vrt</Filter>
- </ClCompile>
- <ClCompile Include="frmts\vrt\vrtrawrasterband.cpp">
- <Filter>Source Files\frmts\vrt</Filter>
- </ClCompile>
- <ClCompile Include="frmts\vrt\vrtsourcedrasterband.cpp">
- <Filter>Source Files\frmts\vrt</Filter>
- </ClCompile>
- <ClCompile Include="frmts\vrt\vrtsources.cpp">
- <Filter>Source Files\frmts\vrt</Filter>
- </ClCompile>
- <ClCompile Include="frmts\vrt\vrtwarped.cpp">
- <Filter>Source Files\frmts\vrt</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wcs\httpdriver.cpp">
- <Filter>Source Files\frmts\wcs</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wcs\wcsdataset.cpp">
- <Filter>Source Files\frmts\wcs</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wktraster\wktrasterdataset.cpp">
- <Filter>Source Files\frmts\wktraster</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wktraster\wktrasterrasterband.cpp">
- <Filter>Source Files\frmts\wktraster</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wktraster\wktrasterwrapper.cpp">
- <Filter>Source Files\frmts\wktraster</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wms\cache.cpp">
- <Filter>Source Files\frmts\wms</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wms\dataset.cpp">
- <Filter>Source Files\frmts\wms</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wms\gdalhttp.cpp">
- <Filter>Source Files\frmts\wms</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wms\md5.cpp">
- <Filter>Source Files\frmts\wms</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wms\minidriver.cpp">
- <Filter>Source Files\frmts\wms</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wms\minidriver_tileservice.cpp">
- <Filter>Source Files\frmts\wms</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wms\minidriver_tms.cpp">
- <Filter>Source Files\frmts\wms</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wms\minidriver_wms.cpp">
- <Filter>Source Files\frmts\wms</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wms\minidriver_worldwind.cpp">
- <Filter>Source Files\frmts\wms</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wms\rasterband.cpp">
- <Filter>Source Files\frmts\wms</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wms\stuff.cpp">
- <Filter>Source Files\frmts\wms</Filter>
- </ClCompile>
- <ClCompile Include="frmts\wms\wmsdriver.cpp">
- <Filter>Source Files\frmts\wms</Filter>
- </ClCompile>
- <ClCompile Include="frmts\xpm\xpmdataset.cpp">
- <Filter>Source Files\frmts\xpm</Filter>
- </ClCompile>
- <ClCompile Include="frmts\zlib\adler32.c">
- <Filter>Source Files\frmts\zlib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\zlib\compress.c">
- <Filter>Source Files\frmts\zlib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\zlib\crc32.c">
- <Filter>Source Files\frmts\zlib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\zlib\deflate.c">
- <Filter>Source Files\frmts\zlib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\zlib\gzio.c">
- <Filter>Source Files\frmts\zlib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\zlib\infback.c">
- <Filter>Source Files\frmts\zlib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\zlib\inffast.c">
- <Filter>Source Files\frmts\zlib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\zlib\inflate.c">
- <Filter>Source Files\frmts\zlib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\zlib\inftrees.c">
- <Filter>Source Files\frmts\zlib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\zlib\trees.c">
- <Filter>Source Files\frmts\zlib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\zlib\uncompr.c">
- <Filter>Source Files\frmts\zlib</Filter>
- </ClCompile>
- <ClCompile Include="frmts\zlib\zutil.c">
- <Filter>Source Files\frmts\zlib</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdalallvalidmaskband.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdalcolortable.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdaldataset.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdaldefaultoverviews.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdaldriver.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdaldrivermanager.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdalgmlcoverage.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdaljp2box.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdaljp2metadata.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdalmajorobject.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdalmultidomainmetadata.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdalnodatamaskband.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdalnodatavaluesmaskband.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdalopeninfo.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdalpamdataset.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdalpamproxydb.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdalpamrasterband.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdalproxydataset.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdalproxypool.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdalrasterband.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdalrasterblock.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdal_misc.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdal_rat.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\gdal_rpcimdio.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\overview.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="gcore\rasterio.cpp">
- <Filter>Source Files\gcore</Filter>
- </ClCompile>
- <ClCompile Include="ogr\gml2ogrgeometry.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr2gmlgeometry.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ograssemblepolygon.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrct.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrcurve.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrfeature.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrfeaturedefn.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrfeaturequery.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrfeaturestyle.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrfielddefn.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrgeometry.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrgeometrycollection.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrgeometryfactory.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrlinearring.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrlinestring.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrmultilinestring.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrmultipoint.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrmultipolygon.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrpoint.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrpolygon.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_bin.c">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_binwr.c">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_e00gen.c">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_e00parse.c">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_e00read.c">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_e00write.c">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_mbyte.c">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_misc.c">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\avc_rawbin.c">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\ogravcbindatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\ogravcbindriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\ogravcbinlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\ogravcdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\ogravce00datasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\ogravce00driver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\ogravce00layer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\avc\ogravclayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\avc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\bna\ogrbnadatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\bna</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\bna\ogrbnadriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\bna</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\bna\ogrbnalayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\bna</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\bna\ogrbnaparser.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\bna</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\csv\ogrcsvdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\csv</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\csv\ogrcsvdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\csv</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\csv\ogrcsvlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\csv</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dgn\dgndump.c">
- <Filter>Source Files\ogr\ogrsf_frmts\dgn</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dgn\dgnfloat.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dgn</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dgn\dgnhelp.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dgn</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dgn\dgnopen.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dgn</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dgn\dgnread.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dgn</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dgn\dgnstroke.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dgn</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dgn\dgnwrite.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dgn</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dgn\dgnwritetest.c">
- <Filter>Source Files\ogr\ogrsf_frmts\dgn</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dgn\ogrdgndatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dgn</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dgn\ogrdgndriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dgn</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dgn\ogrdgnlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dgn</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dods\ogrdodsdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dods</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dods\ogrdodsdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dods</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dods\ogrdodsfielddefn.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dods</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dods\ogrdodsgrid.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dods</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dods\ogrdodslayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dods</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dods\ogrdodssequencelayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dods</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dxf\ogrdxfdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dxf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dxf\ogrdxfdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dxf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dxf\ogrdxflayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dxf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dxf\ogrdxfwriterds.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dxf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dxf\ogrdxfwriterlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dxf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dxf\ogrdxf_blockmap.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dxf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dxf\ogrdxf_dimension.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dxf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\dxf\ogrdxf_diskio.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\dxf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\fme\fme2ogr_utils.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\fme</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\fme\ogrfmecacheindex.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\fme</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\fme\ogrfmedatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\fme</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\fme\ogrfmedriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\fme</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\fme\ogrfmelayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\fme</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\fme\ogrfmelayercached.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\fme</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\fme\ogrfmelayerdb.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\fme</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\generic\ogrdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\generic</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\generic\ogrlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\generic</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\generic\ogrregisterall.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\generic</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\generic\ogrsfdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\generic</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\generic\ogrsfdriverregistrar.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\generic</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\generic\ogr_attrind.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\generic</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\generic\ogr_gensql.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\generic</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\generic\ogr_miattrind.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\generic</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geoconcept\geoconcept.c">
- <Filter>Source Files\ogr\ogrsf_frmts\geoconcept</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geoconcept\geoconcept_syscoord.c">
- <Filter>Source Files\ogr\ogrsf_frmts\geoconcept</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geoconcept\ogrgeoconceptdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\geoconcept</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geoconcept\ogrgeoconceptdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\geoconcept</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geoconcept\ogrgeoconceptlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\geoconcept</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geojson\jsonc\arraylist.c">
- <Filter>Source Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geojson\jsonc\debug.c">
- <Filter>Source Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geojson\jsonc\json_object.c">
- <Filter>Source Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geojson\jsonc\json_tokener.c">
- <Filter>Source Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geojson\jsonc\json_util.c">
- <Filter>Source Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geojson\jsonc\linkhash.c">
- <Filter>Source Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geojson\jsonc\printbuf.c">
- <Filter>Source Files\ogr\ogrsf_frmts\geojson\jsonc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geojson\ogrgeojsondatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\geojson</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geojson\ogrgeojsondriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\geojson</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geojson\ogrgeojsonlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\geojson</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geojson\ogrgeojsonreader.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\geojson</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geojson\ogrgeojsonutils.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\geojson</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\geojson\ogrgeojsonwriter.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\geojson</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\georss\ogrgeorssdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\georss</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\georss\ogrgeorssdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\georss</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\georss\ogrgeorsslayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\georss</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gml\gmlfeature.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gml\gmlfeatureclass.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gml\gmlhandler.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gml\gmlpropertydefn.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gml\gmlreader.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gml\gmlreadstate.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gml\ogrgmldatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gml\ogrgmldriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gml\ogrgmllayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gml\parsexsd.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gml\trstring.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gml\resolvexlinks.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gmt\ogrgmtdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gmt</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gmt\ogrgmtdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gmt</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gmt\ogrgmtlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gmt</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gpx\ogrgpxdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gpx</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gpx\ogrgpxdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gpx</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gpx\ogrgpxlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gpx</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\grass\ogrgrassdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\grass</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\grass\ogrgrassdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\grass</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\grass\ogrgrasslayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\grass</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gtm\gtm.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gtm</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gtm\gtmtracklayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gtm</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gtm\gtmwaypointlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gtm</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gtm\ogrgtmdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gtm</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gtm\ogrgtmdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gtm</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\gtm\ogrgtmlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\gtm</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\idb\ogridbdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\idb</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\idb\ogridbdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\idb</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\idb\ogridblayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\idb</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\idb\ogridbselectlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\idb</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\idb\ogridbtablelayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\idb</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\ili1reader.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\ili2handler.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\ili2reader.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\ilihelper.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\iomhelper.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\iom_attr.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili\iom</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\iom_basket.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili\iom</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\iom_error.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili\iom</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\iom_file.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili\iom</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\iom_iterator.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili\iom</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\iom_object.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili\iom</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\iom_utilities.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili\iom</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\iom_value.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili\iom</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\reader.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili\iom</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\tags.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili\iom</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\ustrings.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili\iom</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\iom\writer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili\iom</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\ogrili1datasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\ogrili1driver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\ogrili1layer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\ogrili2datasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\ogrili2driver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ili\ogrili2layer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ili</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ingres\ogringresdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ingres</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ingres\ogringresdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ingres</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ingres\ogringreslayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ingres</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ingres\ogringresresultlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ingres</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ingres\ogringresstatement.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ingres</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ingres\ogringrestablelayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ingres</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\kml\kml.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\kml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\kml\kmlnode.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\kml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\kml\kmlvector.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\kml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\kml\ogr2kmlgeometry.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\kml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\kml\ogrkmldatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\kml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\kml\ogrkmldriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\kml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\kml\ogrkmllayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\kml</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mem\ogrmemdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mem</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mem\ogrmemdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mem</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mem\ogrmemlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mem</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_bounds.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_coordsys.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_datfile.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_feature.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_feature_mif.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_geometry.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_idfile.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_imapinfofile.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_indfile.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_mapcoordblock.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_mapfile.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_mapheaderblock.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_mapindexblock.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_mapobjectblock.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_maptoolblock.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_middatafile.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_miffile.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_ogr_datasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_ogr_driver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_rawbinblock.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_spatialref.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_tabfile.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_tabseamless.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_tabview.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_tooldef.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mitab\mitab_utils.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mitab</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mysql\ogrmysqldatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mysql</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mysql\ogrmysqldriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mysql</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mysql\ogrmysqllayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mysql</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mysql\ogrmysqlresultlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mysql</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\mysql\ogrmysqltablelayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\mysql</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ntfdump.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ntf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ntffilereader.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ntf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ntfrecord.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ntf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ntfstroke.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ntf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ntf_codelist.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ntf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ntf_estlayers.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ntf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ntf_generic.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ntf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ntf_raster.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ntf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ogrntfdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ntf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ogrntfdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ntf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ogrntffeatureclasslayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ntf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ntf\ogrntflayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ntf</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\oci\fastload.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\oci</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\oci\ocitest.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\oci</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\oci\oci_utils.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\oci</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrocidatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\oci</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrocidriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\oci</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrocilayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\oci</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrociloaderlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\oci</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrociselectlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\oci</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrocisession.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\oci</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrocistatement.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\oci</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrocistringbuf.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\oci</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrocistroke.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\oci</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrocitablelayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\oci</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\oci\ogrociwritablelayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\oci</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\odbc\ogrodbcdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\odbc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\odbc\ogrodbcdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\odbc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\odbc\ogrodbclayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\odbc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\odbc\ogrodbcselectlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\odbc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\odbc\ogrodbctablelayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\odbc</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ogdi\ogrogdidatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ogdi</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ogdi\ogrogdidriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ogdi</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\ogdi\ogrogdilayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\ogdi</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\pcidsk\ogrpcidskdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\pcidsk</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\pcidsk\ogrpcidskdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\pcidsk</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\pcidsk\ogrpcidsklayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\pcidsk</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\pgeo\ogrpgeodatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\pgeo</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\pgeo\ogrpgeodriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\pgeo</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\pgeo\ogrpgeolayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\pgeo</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\pgeo\ogrpgeoselectlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\pgeo</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\pgeo\ogrpgeotablelayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\pgeo</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\pg\ogrpgdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\pg</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\pg\ogrpgdebug.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\pg</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\pg\ogrpgdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\pg</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\pg\ogrpglayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\pg</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\pg\ogrpgresultlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\pg</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\pg\ogrpgtablelayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\pg</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\rec\ll_recio.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\rec</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\rec\ogrrecdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\rec</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\rec\ogrrecdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\rec</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\rec\ogrreclayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\rec</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\s57\ddfrecordindex.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\s57</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\s57\ogrs57datasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\s57</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\s57\ogrs57driver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\s57</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\s57\ogrs57layer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\s57</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\s57\s57classregistrar.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\s57</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\s57\s57dump.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\s57</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\s57\s57featuredefns.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\s57</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\s57\s57filecollector.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\s57</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\s57\s57reader.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\s57</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\s57\s57writer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\s57</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\sde\ogrsdedatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\sde</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\sde\ogrsdedriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\sde</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\sde\ogrsdelayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\sde</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\sdts\ogrsdtsdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\sdts</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\sdts\ogrsdtsdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\sdts</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\sdts\ogrsdtslayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\sdts</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\shape\dbfopen.c">
- <Filter>Source Files\ogr\ogrsf_frmts\shape</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\shape\ogrshapedatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\shape</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\shape\ogrshapedriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\shape</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\shape\ogrshapelayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\shape</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\shape\shape2ogr.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\shape</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\shape\shpopen.c">
- <Filter>Source Files\ogr\ogrsf_frmts\shape</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\shape\shptree.c">
- <Filter>Source Files\ogr\ogrsf_frmts\shape</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\shape\shp_vsi.c">
- <Filter>Source Files\ogr\ogrsf_frmts\shape</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\sqlite\ogrsqlitedatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\sqlite</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\sqlite\ogrsqlitedriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\sqlite</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\sqlite\ogrsqlitelayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\sqlite</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\sqlite\ogrsqliteselectlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\sqlite</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\sqlite\ogrsqlitetablelayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\sqlite</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\ogrtigerdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\ogrtigerdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\ogrtigerlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigeraltname.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerarealandmarks.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigercompletechain.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerentitynames.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerfeatureids.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerfilebase.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigeridhistory.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerinfo.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerkeyfeatures.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerlandmarks.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigeroverunder.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerpip.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerpoint.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerpolychainlink.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerpolygon.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerpolygoncorrections.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerpolygoneconomic.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerspatialmetadata.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigertlidrange.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerzerocellid.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerzipcodes.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\tiger\tigerzipplus4.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\tiger</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\vrt\ogrvrtdatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\vrt</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\vrt\ogrvrtdriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\vrt</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\vrt\ogrvrtlayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\vrt</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogrxplanedatasource.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogrxplanedriver.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogrxplanelayer.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogr_xplane_apt_reader.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogr_xplane_awy_reader.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogr_xplane_fix_reader.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogr_xplane_geo_utils.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogr_xplane_nav_reader.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\xplane\ogr_xplane_reader.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsf_frmts\xplane\test_geo_utils.cpp">
- <Filter>Source Files\ogr\ogrsf_frmts\xplane</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrspatialreference.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrsurface.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogrutils.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr_api.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr_capi_test.c">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr_expat.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr_fromepsg.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr_opt.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr_srsnode.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr_srs_dict.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr_srs_erm.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr_srs_esri.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr_srs_ozi.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr_srs_panorama.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr_srs_pci.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr_srs_proj4.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr_srs_usgs.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr_srs_validate.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\ogr_srs_xml.cpp">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\swq.c">
- <Filter>Source Files\ogr</Filter>
- </ClCompile>
- <ClCompile Include="ogr\wcts\ogrwcts.cpp">
- <Filter>Source Files\ogr\wcts</Filter>
- </ClCompile>
- <ClCompile Include="ogr\wcts\wctsclient.cpp">
- <Filter>Source Files\ogr\wcts</Filter>
- </ClCompile>
- <ClCompile Include="port\cplgetsymbol.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cplkeywordparser.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cplstring.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_atomic_ops.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_conv.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_csv.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_error.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_findfile.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_getexecpath.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_hash_set.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_http.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_list.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_minixml.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_minizip_ioapi.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_minizip_unzip.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_multiproc.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_odbc.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_path.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_quad_tree.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_recode_stub.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_string.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_strtod.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_time.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_vsil.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_vsil_gzip.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_vsil_simple.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_vsil_subfile.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_vsil_unix_stdio_64.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_vsil_win32.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_vsisimple.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_vsi_mem.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\cpl_win32ce_api.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- <ClCompile Include="port\xmlreformat.cpp">
- <Filter>Source Files\port</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/ogr/ogrsf_frmts/pg/ogrpgdebug.cpp b/ogr/ogrsf_frmts/pg/ogrpgdebug.cpp
deleted file mode 100644
index 0d5488b..0000000
--- a/ogr/ogrsf_frmts/pg/ogrpgdebug.cpp
+++ /dev/null
@@ -1,73 +0,0 @@
-/******************************************************************************
- * $Id: ogrpgdebug.cpp 17112 2009-05-24 16:40:16Z rouault $
- *
- * Project: OpenGIS Simple Features Reference Implementation
- * Purpose: Debug infrastructure
- * Author: Even Rouault, <even dot rouault at mines dash paris dot org>
- *
- ******************************************************************************
- * Copyright (c) 2009, Even Rouault
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included
- * in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- ****************************************************************************/
-
-/* Do NOT include ogr_pg.h, otherwise the above PQexec call will expand to the */
-/* OGRPG_PQexec_dbg function */
-#include "libpq-fe.h"
-#include "cpl_conv.h"
-
-CPL_CVSID("$Id: ogrpgdebug.cpp 17112 2009-05-24 16:40:16Z rouault $");
-
-/************************************************************************/
-/* OGRPG_PQexec_dbg() */
-/************************************************************************/
-#ifdef DEBUG
-PGresult *OGRPG_PQexec_dbg(PGconn *conn, const char *query);
-
-
-PGresult *OGRPG_PQexec_dbg(PGconn *conn, const char *query)
-{
- PGresult* hResult = PQexec(conn, query);
- const char* pszRetCode = "UNKNOWN";
- char szNTuples[32];
- szNTuples[0] = '\0';
- if (hResult)
- {
- switch(PQresultStatus(hResult))
- {
- case PGRES_TUPLES_OK:
- pszRetCode = "PGRES_TUPLES_OK";
- sprintf(szNTuples, ", ntuples = %d", PQntuples(hResult));
- break;
- case PGRES_COMMAND_OK:
- pszRetCode = "PGRES_COMMAND_OK";
- break;
- case PGRES_NONFATAL_ERROR:
- pszRetCode = "PGRES_NONFATAL_ERROR";
- break;
- case PGRES_FATAL_ERROR:
- pszRetCode = "PGRES_FATAL_ERROR";
- break;
- default: break;
- }
- }
- CPLDebug("PG", "PQexec(%s) = %s%s", query, pszRetCode, szNTuples);
- return hResult;
-}
-#endif
diff --git a/port/cpl_base64.h b/port/cpl_base64.h
deleted file mode 100644
index dca0dbd..0000000
--- a/port/cpl_base64.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/******************************************************************************
- * $Id: cpl_base64.h 20794 2010-10-08 16:58:27Z warmerdam $
- *
- * Project: MapServer
- * Purpose: Decoding Base64 strings
- * Author: Paul Ramsey <pramsey at cleverelephant.ca>
- * Dave Blasby <dblasby at gmail.com>
- *
- ******************************************************************************
- * Copyright (c) 2008 Paul Ramsey
- * Copyright (c) 2002 Refractions Research
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies of this Software or works derived from this Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- ****************************************************************************/
-
-#ifndef CPL_BASE64_H_INCLUDED
-#define CPL_BASE64_H_INCLUDED
-
-#include "cpl_conv.h"
-
-CPL_C_START
-
-int CPL_DLL CPLBase64DecodeInPlace(GByte* pszBase64);
-
-CPL_C_END
-
-#endif /* ndef CPL_BASE64_H_INCLUDED */
diff --git a/swig/ruby/gdal_wrap.cpp b/swig/ruby/gdal_wrap.cpp
deleted file mode 100644
index 4483ba8..0000000
--- a/swig/ruby/gdal_wrap.cpp
+++ /dev/null
@@ -1,18446 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.40
- *
- * This file is not intended to be easily readable and contains a number of
- * 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.
- * ----------------------------------------------------------------------------- */
-
-#define SWIGRUBY
-
-
-#ifdef __cplusplus
-/* SwigValueWrapper is described in swig.swg */
-template<typename T> class SwigValueWrapper {
- struct SwigMovePointer {
- T *ptr;
- SwigMovePointer(T *p) : ptr(p) { }
- ~SwigMovePointer() { delete ptr; }
- SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
- } pointer;
- SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
- SwigValueWrapper(const SwigValueWrapper<T>& rhs);
-public:
- SwigValueWrapper() : pointer(0) { }
- SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
- operator T&() const { return *pointer.ptr; }
- T *operator&() { return pointer.ptr; }
-};
-
-template <typename T> T SwigValueInit() {
- return T();
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIG_MSC_UNSUPPRESS_4505
-# if defined(_MSC_VER)
-# pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIG_MSC_UNSUPPRESS_4505
-# if defined(_MSC_VER)
-# pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-/* -----------------------------------------------------------------------------
- * swigrun.swg
- *
- * This file contains generic C API SWIG runtime support for pointer
- * type checking.
- * ----------------------------------------------------------------------------- */
-
-/* This should only be incremented when either the layout of swig_type_info changes,
- or for whatever reason, the runtime changes incompatibly */
-#define SWIG_RUNTIME_VERSION "4"
-
-/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
-#ifdef SWIG_TYPE_TABLE
-# define SWIG_QUOTE_STRING(x) #x
-# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
-# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
-#else
-# define SWIG_TYPE_TABLE_NAME
-#endif
-
-/*
- You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
- creating a static or dynamic library from the SWIG runtime code.
- In 99.9% of the cases, SWIG just needs to declare them as 'static'.
-
- But only do this if strictly necessary, ie, if you have problems
- with your compiler or suchlike.
-*/
-
-#ifndef SWIGRUNTIME
-# define SWIGRUNTIME SWIGINTERN
-#endif
-
-#ifndef SWIGRUNTIMEINLINE
-# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
-#endif
-
-/* Generic buffer size */
-#ifndef SWIG_BUFFER_SIZE
-# define SWIG_BUFFER_SIZE 1024
-#endif
-
-/* Flags for pointer conversions */
-#define SWIG_POINTER_DISOWN 0x1
-#define SWIG_CAST_NEW_MEMORY 0x2
-
-/* Flags for new pointer objects */
-#define SWIG_POINTER_OWN 0x1
-
-
-/*
- Flags/methods for returning states.
-
- The SWIG conversion methods, as ConvertPtr, return and integer
- that tells if the conversion was successful or not. And if not,
- an error code can be returned (see swigerrors.swg for the codes).
-
- Use the following macros/flags to set or process the returning
- states.
-
- In old versions of SWIG, code such as the following was usually written:
-
- if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
- // success code
- } else {
- //fail code
- }
-
- Now you can be more explicit:
-
- int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
- if (SWIG_IsOK(res)) {
- // success code
- } else {
- // fail code
- }
-
- which is the same really, but now you can also do
-
- Type *ptr;
- int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
- if (SWIG_IsOK(res)) {
- // success code
- if (SWIG_IsNewObj(res) {
- ...
- delete *ptr;
- } else {
- ...
- }
- } else {
- // fail code
- }
-
- I.e., now SWIG_ConvertPtr can return new objects and you can
- identify the case and take care of the deallocation. Of course that
- also requires SWIG_ConvertPtr to return new result values, such as
-
- int SWIG_ConvertPtr(obj, ptr,...) {
- if (<obj is ok>) {
- if (<need new object>) {
- *ptr = <ptr to new allocated object>;
- return SWIG_NEWOBJ;
- } else {
- *ptr = <ptr to old object>;
- return SWIG_OLDOBJ;
- }
- } else {
- return SWIG_BADOBJ;
- }
- }
-
- Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
- more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
- SWIG errors code.
-
- Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
- allows to return the 'cast rank', for example, if you have this
-
- int food(double)
- int fooi(int);
-
- and you call
-
- food(1) // cast rank '1' (1 -> 1.0)
- fooi(1) // cast rank '0'
-
- just use the SWIG_AddCast()/SWIG_CheckState()
-*/
-
-#define SWIG_OK (0)
-#define SWIG_ERROR (-1)
-#define SWIG_IsOK(r) (r >= 0)
-#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
-
-/* The CastRankLimit says how many bits are used for the cast rank */
-#define SWIG_CASTRANKLIMIT (1 << 8)
-/* The NewMask denotes the object was created (using new/malloc) */
-#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
-/* The TmpMask is for in/out typemaps that use temporal objects */
-#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
-/* Simple returning values */
-#define SWIG_BADOBJ (SWIG_ERROR)
-#define SWIG_OLDOBJ (SWIG_OK)
-#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
-#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
-/* Check, add and del mask methods */
-#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
-#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
-#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
-#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
-#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
-#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
-
-/* Cast-Rank Mode */
-#if defined(SWIG_CASTRANK_MODE)
-# ifndef SWIG_TypeRank
-# define SWIG_TypeRank unsigned long
-# endif
-# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
-# define SWIG_MAXCASTRANK (2)
-# endif
-# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
-# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
-SWIGINTERNINLINE int SWIG_AddCast(int r) {
- return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
-}
-SWIGINTERNINLINE int SWIG_CheckState(int r) {
- return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
-}
-#else /* no cast-rank mode */
-# define SWIG_AddCast
-# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
-#endif
-
-
-#include <string.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef void *(*swig_converter_func)(void *, int *);
-typedef struct swig_type_info *(*swig_dycast_func)(void **);
-
-/* Structure to store information on one type */
-typedef struct swig_type_info {
- const char *name; /* mangled name of this type */
- const char *str; /* human readable name of this type */
- swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
- struct swig_cast_info *cast; /* linked list of types that can cast into this type */
- void *clientdata; /* language specific type data */
- int owndata; /* flag if the structure owns the clientdata */
-} swig_type_info;
-
-/* Structure to store a type and conversion function used for casting */
-typedef struct swig_cast_info {
- swig_type_info *type; /* pointer to type that is equivalent to this type */
- swig_converter_func converter; /* function to cast the void pointers */
- struct swig_cast_info *next; /* pointer to next cast in linked list */
- struct swig_cast_info *prev; /* pointer to the previous cast */
-} swig_cast_info;
-
-/* Structure used to store module information
- * Each module generates one structure like this, and the runtime collects
- * all of these structures and stores them in a circularly linked list.*/
-typedef struct swig_module_info {
- swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
- size_t size; /* Number of types in this module */
- struct swig_module_info *next; /* Pointer to next element in circularly linked list */
- swig_type_info **type_initial; /* Array of initially generated type structures */
- swig_cast_info **cast_initial; /* Array of initially generated casting structures */
- void *clientdata; /* Language specific module data */
-} swig_module_info;
-
-/*
- Compare two type names skipping the space characters, therefore
- "char*" == "char *" and "Class<int>" == "Class<int >", etc.
-
- Return 0 when the two name types are equivalent, as in
- strncmp, but skipping ' '.
-*/
-SWIGRUNTIME int
-SWIG_TypeNameComp(const char *f1, const char *l1,
- const char *f2, const char *l2) {
- for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
- while ((*f1 == ' ') && (f1 != l1)) ++f1;
- while ((*f2 == ' ') && (f2 != l2)) ++f2;
- if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
- }
- return (int)((l1 - f1) - (l2 - f2));
-}
-
-/*
- Check type equivalence in a name list like <name1>|<name2>|...
- Return 0 if not equal, 1 if equal
-*/
-SWIGRUNTIME int
-SWIG_TypeEquiv(const char *nb, const char *tb) {
- int equiv = 0;
- const char* te = tb + strlen(tb);
- const char* ne = nb;
- while (!equiv && *ne) {
- for (nb = ne; *ne; ++ne) {
- if (*ne == '|') break;
- }
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
- if (*ne) ++ne;
- }
- return equiv;
-}
-
-/*
- Check type equivalence in a name list like <name1>|<name2>|...
- Return 0 if equal, -1 if nb < tb, 1 if nb > tb
-*/
-SWIGRUNTIME int
-SWIG_TypeCompare(const char *nb, const char *tb) {
- int equiv = 0;
- const char* te = tb + strlen(tb);
- const char* ne = nb;
- while (!equiv && *ne) {
- for (nb = ne; *ne; ++ne) {
- if (*ne == '|') break;
- }
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
- if (*ne) ++ne;
- }
- return equiv;
-}
-
-
-/*
- Check the typename
-*/
-SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheck(const char *c, swig_type_info *ty) {
- if (ty) {
- swig_cast_info *iter = ty->cast;
- while (iter) {
- if (strcmp(iter->type->name, c) == 0) {
- if (iter == ty->cast)
- return iter;
- /* Move iter to the top of the linked list */
- iter->prev->next = iter->next;
- if (iter->next)
- iter->next->prev = iter->prev;
- iter->next = ty->cast;
- iter->prev = 0;
- if (ty->cast) ty->cast->prev = iter;
- ty->cast = iter;
- return iter;
- }
- iter = iter->next;
- }
- }
- return 0;
-}
-
-/*
- Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
-*/
-SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
- if (ty) {
- swig_cast_info *iter = ty->cast;
- while (iter) {
- if (iter->type == from) {
- if (iter == ty->cast)
- return iter;
- /* Move iter to the top of the linked list */
- iter->prev->next = iter->next;
- if (iter->next)
- iter->next->prev = iter->prev;
- iter->next = ty->cast;
- iter->prev = 0;
- if (ty->cast) ty->cast->prev = iter;
- ty->cast = iter;
- return iter;
- }
- iter = iter->next;
- }
- }
- return 0;
-}
-
-/*
- Cast a pointer up an inheritance hierarchy
-*/
-SWIGRUNTIMEINLINE void *
-SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
- return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
-}
-
-/*
- Dynamic pointer casting. Down an inheritance hierarchy
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
- swig_type_info *lastty = ty;
- if (!ty || !ty->dcast) return ty;
- while (ty && (ty->dcast)) {
- ty = (*ty->dcast)(ptr);
- if (ty) lastty = ty;
- }
- return lastty;
-}
-
-/*
- Return the name associated with this type
-*/
-SWIGRUNTIMEINLINE const char *
-SWIG_TypeName(const swig_type_info *ty) {
- return ty->name;
-}
-
-/*
- Return the pretty name associated with this type,
- that is an unmangled type name in a form presentable to the user.
-*/
-SWIGRUNTIME const char *
-SWIG_TypePrettyName(const swig_type_info *type) {
- /* The "str" field contains the equivalent pretty names of the
- type, separated by vertical-bar characters. We choose
- to print the last name, as it is often (?) the most
- specific. */
- if (!type) return NULL;
- if (type->str != NULL) {
- const char *last_name = type->str;
- const char *s;
- for (s = type->str; *s; s++)
- if (*s == '|') last_name = s+1;
- return last_name;
- }
- else
- return type->name;
-}
-
-/*
- Set the clientdata field for a type
-*/
-SWIGRUNTIME void
-SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
- swig_cast_info *cast = ti->cast;
- /* if (ti->clientdata == clientdata) return; */
- ti->clientdata = clientdata;
-
- while (cast) {
- if (!cast->converter) {
- swig_type_info *tc = cast->type;
- if (!tc->clientdata) {
- SWIG_TypeClientData(tc, clientdata);
- }
- }
- cast = cast->next;
- }
-}
-SWIGRUNTIME void
-SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
- SWIG_TypeClientData(ti, clientdata);
- ti->owndata = 1;
-}
-
-/*
- Search for a swig_type_info structure only by mangled name
- Search is a O(log #types)
-
- We start searching at module start, and finish searching when start == end.
- Note: if start == end at the beginning of the function, we go all the way around
- the circular list.
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_MangledTypeQueryModule(swig_module_info *start,
- swig_module_info *end,
- const char *name) {
- swig_module_info *iter = start;
- do {
- if (iter->size) {
- register size_t l = 0;
- register size_t r = iter->size - 1;
- do {
- /* since l+r >= 0, we can (>> 1) instead (/ 2) */
- register size_t i = (l + r) >> 1;
- const char *iname = iter->types[i]->name;
- if (iname) {
- register int compare = strcmp(name, iname);
- if (compare == 0) {
- return iter->types[i];
- } else if (compare < 0) {
- if (i) {
- r = i - 1;
- } else {
- break;
- }
- } else if (compare > 0) {
- l = i + 1;
- }
- } else {
- break; /* should never happen */
- }
- } while (l <= r);
- }
- iter = iter->next;
- } while (iter != end);
- return 0;
-}
-
-/*
- Search for a swig_type_info structure for either a mangled name or a human readable name.
- It first searches the mangled names of the types, which is a O(log #types)
- If a type is not found it then searches the human readable names, which is O(#types).
-
- We start searching at module start, and finish searching when start == end.
- Note: if start == end at the beginning of the function, we go all the way around
- the circular list.
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_TypeQueryModule(swig_module_info *start,
- swig_module_info *end,
- const char *name) {
- /* STEP 1: Search the name field using binary search */
- swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
- if (ret) {
- return ret;
- } else {
- /* STEP 2: If the type hasn't been found, do a complete search
- of the str field (the human readable name) */
- swig_module_info *iter = start;
- do {
- register size_t i = 0;
- for (; i < iter->size; ++i) {
- if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
- return iter->types[i];
- }
- iter = iter->next;
- } while (iter != end);
- }
-
- /* neither found a match */
- return 0;
-}
-
-/*
- Pack binary data into a string
-*/
-SWIGRUNTIME char *
-SWIG_PackData(char *c, void *ptr, size_t sz) {
- static const char hex[17] = "0123456789abcdef";
- register const unsigned char *u = (unsigned char *) ptr;
- register const unsigned char *eu = u + sz;
- for (; u != eu; ++u) {
- register unsigned char uu = *u;
- *(c++) = hex[(uu & 0xf0) >> 4];
- *(c++) = hex[uu & 0xf];
- }
- return c;
-}
-
-/*
- Unpack binary data from a string
-*/
-SWIGRUNTIME const char *
-SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
- register unsigned char *u = (unsigned char *) ptr;
- register const unsigned char *eu = u + sz;
- for (; u != eu; ++u) {
- register char d = *(c++);
- register unsigned char uu;
- if ((d >= '0') && (d <= '9'))
- uu = ((d - '0') << 4);
- else if ((d >= 'a') && (d <= 'f'))
- uu = ((d - ('a'-10)) << 4);
- else
- return (char *) 0;
- d = *(c++);
- if ((d >= '0') && (d <= '9'))
- uu |= (d - '0');
- else if ((d >= 'a') && (d <= 'f'))
- uu |= (d - ('a'-10));
- else
- return (char *) 0;
- *u = uu;
- }
- return c;
-}
-
-/*
- Pack 'void *' into a string buffer.
-*/
-SWIGRUNTIME char *
-SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
- char *r = buff;
- if ((2*sizeof(void *) + 2) > bsz) return 0;
- *(r++) = '_';
- r = SWIG_PackData(r,&ptr,sizeof(void *));
- if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
- strcpy(r,name);
- return buff;
-}
-
-SWIGRUNTIME const char *
-SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
- if (*c != '_') {
- if (strcmp(c,"NULL") == 0) {
- *ptr = (void *) 0;
- return name;
- } else {
- return 0;
- }
- }
- return SWIG_UnpackData(++c,ptr,sizeof(void *));
-}
-
-SWIGRUNTIME char *
-SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
- char *r = buff;
- size_t lname = (name ? strlen(name) : 0);
- if ((2*sz + 2 + lname) > bsz) return 0;
- *(r++) = '_';
- r = SWIG_PackData(r,ptr,sz);
- if (lname) {
- strncpy(r,name,lname+1);
- } else {
- *r = 0;
- }
- return buff;
-}
-
-SWIGRUNTIME const char *
-SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
- if (*c != '_') {
- if (strcmp(c,"NULL") == 0) {
- memset(ptr,0,sz);
- return name;
- } else {
- return 0;
- }
- }
- return SWIG_UnpackData(++c,ptr,sz);
-}
-
-#ifdef __cplusplus
-}
-#endif
-
-/* Errors in SWIG */
-#define SWIG_UnknownError -1
-#define SWIG_IOError -2
-#define SWIG_RuntimeError -3
-#define SWIG_IndexError -4
-#define SWIG_TypeError -5
-#define SWIG_DivisionByZero -6
-#define SWIG_OverflowError -7
-#define SWIG_SyntaxError -8
-#define SWIG_ValueError -9
-#define SWIG_SystemError -10
-#define SWIG_AttributeError -11
-#define SWIG_MemoryError -12
-#define SWIG_NullReferenceError -13
-
-
-
-#include <ruby.h>
-
-/* Remove global macros defined in Ruby's win32.h */
-#ifdef write
-# undef write
-#endif
-#ifdef read
-# undef read
-#endif
-#ifdef bind
-# undef bind
-#endif
-#ifdef close
-# undef close
-#endif
-#ifdef connect
-# undef connect
-#endif
-
-
-/* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
-#ifndef NUM2LL
-#define NUM2LL(x) NUM2LONG((x))
-#endif
-#ifndef LL2NUM
-#define LL2NUM(x) INT2NUM((long) (x))
-#endif
-#ifndef ULL2NUM
-#define ULL2NUM(x) UINT2NUM((unsigned long) (x))
-#endif
-
-/* Ruby 1.7 doesn't (yet) define NUM2ULL() */
-#ifndef NUM2ULL
-#ifdef HAVE_LONG_LONG
-#define NUM2ULL(x) rb_num2ull((x))
-#else
-#define NUM2ULL(x) NUM2ULONG(x)
-#endif
-#endif
-
-/* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */
-/* Define these for older versions so we can just write code the new way */
-#ifndef RSTRING_LEN
-# define RSTRING_LEN(x) RSTRING(x)->len
-#endif
-#ifndef RSTRING_PTR
-# define RSTRING_PTR(x) RSTRING(x)->ptr
-#endif
-#ifndef RSTRING_END
-# define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
-#endif
-#ifndef RARRAY_LEN
-# define RARRAY_LEN(x) RARRAY(x)->len
-#endif
-#ifndef RARRAY_PTR
-# define RARRAY_PTR(x) RARRAY(x)->ptr
-#endif
-#ifndef RFLOAT_VALUE
-# define RFLOAT_VALUE(x) RFLOAT(x)->value
-#endif
-#ifndef DOUBLE2NUM
-# define DOUBLE2NUM(x) rb_float_new(x)
-#endif
-#ifndef RHASH_TBL
-# define RHASH_TBL(x) (RHASH(x)->tbl)
-#endif
-#ifndef RHASH_ITER_LEV
-# define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
-#endif
-#ifndef RHASH_IFNONE
-# define RHASH_IFNONE(x) (RHASH(x)->ifnone)
-#endif
-#ifndef RHASH_SIZE
-# define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
-#endif
-#ifndef RHASH_EMPTY_P
-# define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
-#endif
-#ifndef RSTRUCT_LEN
-# define RSTRUCT_LEN(x) RSTRUCT(x)->len
-#endif
-#ifndef RSTRUCT_PTR
-# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
-#endif
-
-
-
-/*
- * Need to be very careful about how these macros are defined, especially
- * when compiling C++ code or C code with an ANSI C compiler.
- *
- * VALUEFUNC(f) is a macro used to typecast a C function that implements
- * a Ruby method so that it can be passed as an argument to API functions
- * like rb_define_method() and rb_define_singleton_method().
- *
- * VOIDFUNC(f) is a macro used to typecast a C function that implements
- * either the "mark" or "free" stuff for a Ruby Data object, so that it
- * can be passed as an argument to API functions like Data_Wrap_Struct()
- * and Data_Make_Struct().
- */
-
-#ifdef __cplusplus
-# ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */
-# define PROTECTFUNC(f) ((VALUE (*)()) f)
-# define VALUEFUNC(f) ((VALUE (*)()) f)
-# define VOIDFUNC(f) ((void (*)()) f)
-# else
-# ifndef ANYARGS /* These definitions should work for Ruby 1.6 */
-# define PROTECTFUNC(f) ((VALUE (*)()) f)
-# define VALUEFUNC(f) ((VALUE (*)()) f)
-# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
-# else /* These definitions should work for Ruby 1.7+ */
-# define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
-# define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
-# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
-# endif
-# endif
-#else
-# define VALUEFUNC(f) (f)
-# define VOIDFUNC(f) (f)
-#endif
-
-/* Don't use for expressions have side effect */
-#ifndef RB_STRING_VALUE
-#define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s)))
-#endif
-#ifndef StringValue
-#define StringValue(s) RB_STRING_VALUE(s)
-#endif
-#ifndef StringValuePtr
-#define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s))
-#endif
-#ifndef StringValueLen
-#define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s))
-#endif
-#ifndef SafeStringValue
-#define SafeStringValue(v) do {\
- StringValue(v);\
- rb_check_safe_str(v);\
-} while (0)
-#endif
-
-#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
-#define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1)
-#define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
-#endif
-
-static VALUE _mSWIG = Qnil;
-
-/* -----------------------------------------------------------------------------
- * error manipulation
- * ----------------------------------------------------------------------------- */
-
-
-/* Define some additional error types */
-#define SWIG_ObjectPreviouslyDeletedError -100
-
-
-/* Define custom exceptions for errors that do not map to existing Ruby
- exceptions. Note this only works for C++ since a global cannot be
- initialized by a funtion in C. For C, fallback to rb_eRuntimeError.*/
-
-SWIGINTERN VALUE
-getNullReferenceError(void) {
- static int init = 0;
- static VALUE rb_eNullReferenceError ;
- if (!init) {
- init = 1;
- rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
- }
- return rb_eNullReferenceError;
-}
-
-SWIGINTERN VALUE
-getObjectPreviouslyDeletedError(void) {
- static int init = 0;
- static VALUE rb_eObjectPreviouslyDeleted ;
- if (!init) {
- init = 1;
- rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
- }
- return rb_eObjectPreviouslyDeleted;
-}
-
-
-SWIGINTERN VALUE
-SWIG_Ruby_ErrorType(int SWIG_code) {
- VALUE type;
- switch (SWIG_code) {
- case SWIG_MemoryError:
- type = rb_eNoMemError;
- break;
- case SWIG_IOError:
- type = rb_eIOError;
- break;
- case SWIG_RuntimeError:
- type = rb_eRuntimeError;
- break;
- case SWIG_IndexError:
- type = rb_eIndexError;
- break;
- case SWIG_TypeError:
- type = rb_eTypeError;
- break;
- case SWIG_DivisionByZero:
- type = rb_eZeroDivError;
- break;
- case SWIG_OverflowError:
- type = rb_eRangeError;
- break;
- case SWIG_SyntaxError:
- type = rb_eSyntaxError;
- break;
- case SWIG_ValueError:
- type = rb_eArgError;
- break;
- case SWIG_SystemError:
- type = rb_eFatal;
- break;
- case SWIG_AttributeError:
- type = rb_eRuntimeError;
- break;
- case SWIG_NullReferenceError:
- type = getNullReferenceError();
- break;
- case SWIG_ObjectPreviouslyDeletedError:
- type = getObjectPreviouslyDeletedError();
- break;
- case SWIG_UnknownError:
- type = rb_eRuntimeError;
- break;
- default:
- type = rb_eRuntimeError;
- }
- return type;
-}
-
-
-/* This function is called when a user inputs a wrong argument to
- a method.
- */
-SWIGINTERN
-const char* Ruby_Format_TypeError( const char* msg,
- const char* type,
- const char* name,
- const int argn,
- VALUE input )
-{
- char buf[128];
- VALUE str;
- VALUE asStr;
- if ( msg && *msg )
- {
- str = rb_str_new2(msg);
- }
- else
- {
- str = rb_str_new(NULL, 0);
- }
-
- str = rb_str_cat2( str, "Expected argument " );
- sprintf( buf, "%d of type ", argn-1 );
- str = rb_str_cat2( str, buf );
- str = rb_str_cat2( str, type );
- str = rb_str_cat2( str, ", but got " );
- str = rb_str_cat2( str, rb_obj_classname(input) );
- str = rb_str_cat2( str, " " );
- asStr = rb_inspect(input);
- if ( RSTRING_LEN(asStr) > 30 )
- {
- str = rb_str_cat( str, StringValuePtr(asStr), 30 );
- str = rb_str_cat2( str, "..." );
- }
- else
- {
- str = rb_str_append( str, asStr );
- }
-
- if ( name )
- {
- str = rb_str_cat2( str, "\n\tin SWIG method '" );
- str = rb_str_cat2( str, name );
- str = rb_str_cat2( str, "'" );
- }
-
- return StringValuePtr( str );
-}
-
-/* This function is called when an overloaded method fails */
-SWIGINTERN
-void Ruby_Format_OverloadedError(
- const int argc,
- const int maxargs,
- const char* method,
- const char* prototypes
- )
-{
- const char* msg = "Wrong # of arguments";
- if ( argc <= maxargs ) msg = "Wrong arguments";
- rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
- "Possible C/C++ prototypes are:\n%s",
- msg, method, prototypes);
-}
-
-/* -----------------------------------------------------------------------------
- * See the LICENSE file for information on copyright, usage and redistribution
- * of SWIG, and the README file for authors - http://www.swig.org/release.html.
- *
- * rubytracking.swg
- *
- * This file contains support for tracking mappings from
- * Ruby objects to C++ objects. This functionality is needed
- * to implement mark functions for Ruby's mark and sweep
- * garbage collector.
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Ruby 1.8 actually assumes the first case. */
-#if SIZEOF_VOIDP == SIZEOF_LONG
-# define SWIG2NUM(v) LONG2NUM((unsigned long)v)
-# define NUM2SWIG(x) (unsigned long)NUM2LONG(x)
-#elif SIZEOF_VOIDP == SIZEOF_LONG_LONG
-# define SWIG2NUM(v) LL2NUM((unsigned long long)v)
-# define NUM2SWIG(x) (unsigned long long)NUM2LL(x)
-#else
-# error sizeof(void*) is not the same as long or long long
-#endif
-
-
-/* Global Ruby hash table to store Trackings from C/C++
- structs to Ruby Objects.
-*/
-static VALUE swig_ruby_trackings = Qnil;
-
-/* Global variable that stores a reference to the ruby
- hash table delete function. */
-static ID swig_ruby_hash_delete;
-
-/* Setup a Ruby hash table to store Trackings */
-SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
- /* Create a ruby hash table to store Trackings from C++
- objects to Ruby objects. */
-
- /* Try to see if some other .so has already created a
- tracking hash table, which we keep hidden in an instance var
- in the SWIG module.
- This is done to allow multiple DSOs to share the same
- tracking table.
- */
- ID trackings_id = rb_intern( "@__trackings__" );
- VALUE verbose = rb_gv_get("VERBOSE");
- rb_gv_set("VERBOSE", Qfalse);
- swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id );
- rb_gv_set("VERBOSE", verbose);
-
- /* No, it hasn't. Create one ourselves */
- if ( swig_ruby_trackings == Qnil )
- {
- swig_ruby_trackings = rb_hash_new();
- rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings );
- }
-
- /* Now store a reference to the hash table delete function
- so that we only have to look it up once.*/
- swig_ruby_hash_delete = rb_intern("delete");
-}
-
-/* Get a Ruby number to reference a pointer */
-SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
- /* We cast the pointer to an unsigned long
- and then store a reference to it using
- a Ruby number object. */
-
- /* Convert the pointer to a Ruby number */
- return SWIG2NUM(ptr);
-}
-
-/* Get a Ruby number to reference an object */
-SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
- /* We cast the object to an unsigned long
- and then store a reference to it using
- a Ruby number object. */
-
- /* Convert the Object to a Ruby number */
- return SWIG2NUM(object);
-}
-
-/* Get a Ruby object from a previously stored reference */
-SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
- /* The provided Ruby number object is a reference
- to the Ruby object we want.*/
-
- /* Convert the Ruby number to a Ruby object */
- return NUM2SWIG(reference);
-}
-
-/* Add a Tracking from a C/C++ struct to a Ruby object */
-SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) {
- /* In a Ruby hash table we store the pointer and
- the associated Ruby object. The trick here is
- that we cannot store the Ruby object directly - if
- we do then it cannot be garbage collected. So
- instead we typecast it as a unsigned long and
- convert it to a Ruby number object.*/
-
- /* Get a reference to the pointer as a Ruby number */
- VALUE key = SWIG_RubyPtrToReference(ptr);
-
- /* Get a reference to the Ruby object as a Ruby number */
- VALUE value = SWIG_RubyObjectToReference(object);
-
- /* Store the mapping to the global hash table. */
- rb_hash_aset(swig_ruby_trackings, key, value);
-}
-
-/* Get the Ruby object that owns the specified C/C++ struct */
-SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
- /* Get a reference to the pointer as a Ruby number */
- VALUE key = SWIG_RubyPtrToReference(ptr);
-
- /* Now lookup the value stored in the global hash table */
- VALUE value = rb_hash_aref(swig_ruby_trackings, key);
-
- if (value == Qnil) {
- /* No object exists - return nil. */
- return Qnil;
- }
- else {
- /* Convert this value to Ruby object */
- return SWIG_RubyReferenceToObject(value);
- }
-}
-
-/* Remove a Tracking from a C/C++ struct to a Ruby object. It
- is very important to remove objects once they are destroyed
- since the same memory address may be reused later to create
- a new object. */
-SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) {
- /* Get a reference to the pointer as a Ruby number */
- VALUE key = SWIG_RubyPtrToReference(ptr);
-
- /* Delete the object from the hash table by calling Ruby's
- do this we need to call the Hash.delete method.*/
- rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key);
-}
-
-/* This is a helper method that unlinks a Ruby object from its
- underlying C++ object. This is needed if the lifetime of the
- Ruby object is longer than the C++ object */
-SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
- VALUE object = SWIG_RubyInstanceFor(ptr);
-
- if (object != Qnil) {
- DATA_PTR(object) = 0;
- }
-}
-
-
-#ifdef __cplusplus
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * Ruby API portion that goes into the runtime
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-SWIGINTERN VALUE
-SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
- if (NIL_P(target)) {
- target = o;
- } else {
- if (TYPE(target) != T_ARRAY) {
- VALUE o2 = target;
- target = rb_ary_new();
- rb_ary_push(target, o2);
- }
- rb_ary_push(target, o);
- }
- return target;
-}
-
-/* For ruby1.8.4 and earlier. */
-#ifndef RUBY_INIT_STACK
- RUBY_EXTERN void Init_stack(VALUE* addr);
-# define RUBY_INIT_STACK \
- VALUE variable_in_this_stack_frame; \
- Init_stack(&variable_in_this_stack_frame);
-#endif
-
-
-#ifdef __cplusplus
-}
-#endif
-
-
-/* -----------------------------------------------------------------------------
- * See the LICENSE file for information on copyright, usage and redistribution
- * of SWIG, and the README file for authors - http://www.swig.org/release.html.
- *
- * rubyrun.swg
- *
- * This file contains the runtime support for Ruby modules
- * and includes code for managing global variables and pointer
- * type checking.
- * ----------------------------------------------------------------------------- */
-
-/* For backward compatibility only */
-#define SWIG_POINTER_EXCEPTION 0
-
-/* for raw pointers */
-#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
-#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own)
-#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags)
-#define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own)
-#define swig_owntype ruby_owntype
-
-/* for raw packed data */
-#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
-#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
-
-/* for class or struct pointers */
-#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
-#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
-
-/* for C or C++ function pointers */
-#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
-#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
-
-/* for C++ member pointers, ie, member methods */
-#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty)
-#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
-
-
-/* Runtime API */
-
-#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule()
-#define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer)
-
-
-/* Error manipulation */
-
-#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
-#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), msg)
-#define SWIG_fail goto fail
-
-
-/* Ruby-specific SWIG API */
-
-#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
-#define SWIG_define_class(ty) SWIG_Ruby_define_class(ty)
-#define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty)
-#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
-#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
-
-#include "assert.h"
-
-/* -----------------------------------------------------------------------------
- * pointers/data manipulation
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct {
- VALUE klass;
- VALUE mImpl;
- void (*mark)(void *);
- void (*destroy)(void *);
- int trackObjects;
-} swig_class;
-
-
-/* Global pointer used to keep some internal SWIG stuff */
-static VALUE _cSWIG_Pointer = Qnil;
-static VALUE swig_runtime_data_type_pointer = Qnil;
-
-/* Global IDs used to keep some internal SWIG stuff */
-static ID swig_arity_id = 0;
-static ID swig_call_id = 0;
-
-/*
- If your swig extension is to be run within an embedded ruby and has
- director callbacks, you should set -DRUBY_EMBEDDED during compilation.
- This will reset ruby's stack frame on each entry point from the main
- program the first time a virtual director function is invoked (in a
- non-recursive way).
- If this is not done, you run the risk of Ruby trashing the stack.
-*/
-
-#ifdef RUBY_EMBEDDED
-
-# define SWIG_INIT_STACK \
- if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \
- ++swig_virtual_calls;
-# define SWIG_RELEASE_STACK --swig_virtual_calls;
-# define Ruby_DirectorTypeMismatchException(x) \
- rb_raise( rb_eTypeError, x ); return c_result;
-
- static unsigned int swig_virtual_calls = 0;
-
-#else /* normal non-embedded extension */
-
-# define SWIG_INIT_STACK
-# define SWIG_RELEASE_STACK
-# define Ruby_DirectorTypeMismatchException(x) \
- throw Swig::DirectorTypeMismatchException( x );
-
-#endif /* RUBY_EMBEDDED */
-
-
-SWIGRUNTIME VALUE
-getExceptionClass(void) {
- static int init = 0;
- static VALUE rubyExceptionClass ;
- if (!init) {
- init = 1;
- rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
- }
- return rubyExceptionClass;
-}
-
-/* This code checks to see if the Ruby object being raised as part
- of an exception inherits from the Ruby class Exception. If so,
- the object is simply returned. If not, then a new Ruby exception
- object is created and that will be returned to Ruby.*/
-SWIGRUNTIME VALUE
-SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) {
- VALUE exceptionClass = getExceptionClass();
- if (rb_obj_is_kind_of(obj, exceptionClass)) {
- return obj;
- } else {
- return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj));
- }
-}
-
-/* Initialize Ruby runtime support */
-SWIGRUNTIME void
-SWIG_Ruby_InitRuntime(void)
-{
- if (_mSWIG == Qnil) {
- _mSWIG = rb_define_module("SWIG");
- swig_call_id = rb_intern("call");
- swig_arity_id = rb_intern("arity");
- }
-}
-
-/* Define Ruby class for C type */
-SWIGRUNTIME void
-SWIG_Ruby_define_class(swig_type_info *type)
-{
- VALUE klass;
- char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
- sprintf(klass_name, "TYPE%s", type->name);
- if (NIL_P(_cSWIG_Pointer)) {
- _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
- rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
- }
- klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
- free((void *) klass_name);
-}
-
-/* Create a new pointer object */
-SWIGRUNTIME VALUE
-SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
-{
- int own = flags & SWIG_POINTER_OWN;
- int track;
- char *klass_name;
- swig_class *sklass;
- VALUE klass;
- VALUE obj;
-
- if (!ptr)
- return Qnil;
-
- if (type->clientdata) {
- sklass = (swig_class *) type->clientdata;
-
- /* Are we tracking this class and have we already returned this Ruby object? */
- track = sklass->trackObjects;
- if (track) {
- obj = SWIG_RubyInstanceFor(ptr);
-
- /* Check the object's type and make sure it has the correct type.
- It might not in cases where methods do things like
- downcast methods. */
- if (obj != Qnil) {
- VALUE value = rb_iv_get(obj, "@__swigtype__");
- char* type_name = RSTRING_PTR(value);
-
- if (strcmp(type->name, type_name) == 0) {
- return obj;
- }
- }
- }
-
- /* Create a new Ruby object */
- obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
- ( own ? VOIDFUNC(sklass->destroy) :
- (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
- ), ptr);
-
- /* If tracking is on for this class then track this object. */
- if (track) {
- SWIG_RubyAddTracking(ptr, obj);
- }
- } else {
- klass_name = (char *) malloc(4 + strlen(type->name) + 1);
- sprintf(klass_name, "TYPE%s", type->name);
- klass = rb_const_get(_mSWIG, rb_intern(klass_name));
- free((void *) klass_name);
- obj = Data_Wrap_Struct(klass, 0, 0, ptr);
- }
- rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
-
- return obj;
-}
-
-/* Create a new class instance (always owned) */
-SWIGRUNTIME VALUE
-SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
-{
- VALUE obj;
- swig_class *sklass = (swig_class *) type->clientdata;
- obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
- rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
- return obj;
-}
-
-/* Get type mangle from class name */
-SWIGRUNTIMEINLINE char *
-SWIG_Ruby_MangleStr(VALUE obj)
-{
- VALUE stype = rb_iv_get(obj, "@__swigtype__");
- return StringValuePtr(stype);
-}
-
-/* Acquire a pointer value */
-typedef void (*ruby_owntype)(void*);
-
-SWIGRUNTIME ruby_owntype
-SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) {
- if (obj) {
- ruby_owntype oldown = RDATA(obj)->dfree;
- RDATA(obj)->dfree = own;
- return oldown;
- } else {
- return 0;
- }
-}
-
-/* Convert a pointer value */
-SWIGRUNTIME int
-SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own)
-{
- char *c;
- swig_cast_info *tc;
- void *vptr = 0;
-
- /* Grab the pointer */
- if (NIL_P(obj)) {
- *ptr = 0;
- return SWIG_OK;
- } else {
- if (TYPE(obj) != T_DATA) {
- return SWIG_ERROR;
- }
- Data_Get_Struct(obj, void, vptr);
- }
-
- if (own) *own = RDATA(obj)->dfree;
-
- /* Check to see if the input object is giving up ownership
- of the underlying C struct or C++ object. If so then we
- need to reset the destructor since the Ruby object no
- longer owns the underlying C++ object.*/
- if (flags & SWIG_POINTER_DISOWN) {
- /* Is tracking on for this class? */
- int track = 0;
- if (ty && ty->clientdata) {
- swig_class *sklass = (swig_class *) ty->clientdata;
- track = sklass->trackObjects;
- }
-
- if (track) {
- /* We are tracking objects for this class. Thus we change the destructor
- * to SWIG_RubyRemoveTracking. This allows us to
- * remove the mapping from the C++ to Ruby object
- * when the Ruby object is garbage collected. If we don't
- * do this, then it is possible we will return a reference
- * to a Ruby object that no longer exists thereby crashing Ruby. */
- RDATA(obj)->dfree = SWIG_RubyRemoveTracking;
- } else {
- RDATA(obj)->dfree = 0;
- }
- }
-
- /* Do type-checking if type info was provided */
- if (ty) {
- if (ty->clientdata) {
- if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) {
- if (vptr == 0) {
- /* The object has already been deleted */
- return SWIG_ObjectPreviouslyDeletedError;
- }
- *ptr = vptr;
- return SWIG_OK;
- }
- }
- if ((c = SWIG_MangleStr(obj)) == NULL) {
- return SWIG_ERROR;
- }
- tc = SWIG_TypeCheck(c, ty);
- if (!tc) {
- return SWIG_ERROR;
- } else {
- int newmemory = 0;
- *ptr = SWIG_TypeCast(tc, vptr, &newmemory);
- assert(!newmemory); /* newmemory handling not yet implemented */
- }
- } else {
- *ptr = vptr;
- }
-
- return SWIG_OK;
-}
-
-/* Check convert */
-SWIGRUNTIMEINLINE int
-SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty)
-{
- char *c = SWIG_MangleStr(obj);
- if (!c) return 0;
- return SWIG_TypeCheck(c,ty) != 0;
-}
-
-SWIGRUNTIME VALUE
-SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
- char result[1024];
- char *r = result;
- if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
- *(r++) = '_';
- r = SWIG_PackData(r, ptr, sz);
- strcpy(r, type->name);
- return rb_str_new2(result);
-}
-
-/* Convert a packed value value */
-SWIGRUNTIME int
-SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) {
- swig_cast_info *tc;
- const char *c;
-
- if (TYPE(obj) != T_STRING) goto type_error;
- c = StringValuePtr(obj);
- /* Pointer values must start with leading underscore */
- if (*c != '_') goto type_error;
- c++;
- c = SWIG_UnpackData(c, ptr, sz);
- if (ty) {
- tc = SWIG_TypeCheck(c, ty);
- if (!tc) goto type_error;
- }
- return SWIG_OK;
-
- type_error:
- return SWIG_ERROR;
-}
-
-SWIGRUNTIME swig_module_info *
-SWIG_Ruby_GetModule(void)
-{
- VALUE pointer;
- swig_module_info *ret = 0;
- VALUE verbose = rb_gv_get("VERBOSE");
-
- /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */
- rb_gv_set("VERBOSE", Qfalse);
-
- /* first check if pointer already created */
- pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
- if (pointer != Qnil) {
- Data_Get_Struct(pointer, swig_module_info, ret);
- }
-
- /* reinstate warnings */
- rb_gv_set("VERBOSE", verbose);
- return ret;
-}
-
-SWIGRUNTIME void
-SWIG_Ruby_SetModule(swig_module_info *pointer)
-{
- /* register a new class */
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
- /* create and store the structure pointer to a global variable */
- swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
- rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
-}
-
-/* This function can be used to check whether a proc or method or similarly
- callable function has been passed. Usually used in a %typecheck, like:
-
- %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) {
- $result = SWIG_Ruby_isCallable( $input );
- }
- */
-SWIGINTERN
-int SWIG_Ruby_isCallable( VALUE proc )
-{
- if ( rb_respond_to( proc, swig_call_id ) == Qtrue )
- return 1;
- return 0;
-}
-
-/* This function can be used to check the arity (number of arguments)
- a proc or method can take. Usually used in a %typecheck.
- Valid arities will be that equal to minimal or those < 0
- which indicate a variable number of parameters at the end.
- */
-SWIGINTERN
-int SWIG_Ruby_arity( VALUE proc, int minimal )
-{
- if ( rb_respond_to( proc, swig_arity_id ) == Qtrue )
- {
- VALUE num = rb_funcall( proc, swig_arity_id, 0 );
- int arity = NUM2INT(num);
- if ( arity < 0 && (arity+1) < -minimal ) return 1;
- if ( arity == minimal ) return 1;
- return 1;
- }
- return 0;
-}
-
-
-#ifdef __cplusplus
-}
-#endif
-
-
-
-#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
-
-#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
-
-
-
- #define SWIG_exception(code, msg) do { SWIG_Error(code, msg);; } while(0)
-
-
-/* -------- TYPES TABLE (BEGIN) -------- */
-
-#define SWIGTYPE_p_CPLErrorHandler swig_types[0]
-#define SWIGTYPE_p_CPLXMLNode swig_types[1]
-#define SWIGTYPE_p_GByte swig_types[2]
-#define SWIGTYPE_p_GDALAsyncReaderShadow swig_types[3]
-#define SWIGTYPE_p_GDALColorEntry swig_types[4]
-#define SWIGTYPE_p_GDALColorTableShadow swig_types[5]
-#define SWIGTYPE_p_GDALDatasetShadow swig_types[6]
-#define SWIGTYPE_p_GDALDriverShadow swig_types[7]
-#define SWIGTYPE_p_GDALMajorObjectShadow swig_types[8]
-#define SWIGTYPE_p_GDALProgressFunc swig_types[9]
-#define SWIGTYPE_p_GDALRasterAttributeTableShadow swig_types[10]
-#define SWIGTYPE_p_GDALRasterBandShadow swig_types[11]
-#define SWIGTYPE_p_GDALTransformerInfoShadow swig_types[12]
-#define SWIGTYPE_p_GDAL_GCP swig_types[13]
-#define SWIGTYPE_p_OGRLayerShadow swig_types[14]
-#define SWIGTYPE_p_char swig_types[15]
-#define SWIGTYPE_p_double swig_types[16]
-#define SWIGTYPE_p_f_double_p_q_const__char_p_void__int swig_types[17]
-#define SWIGTYPE_p_int swig_types[18]
-#define SWIGTYPE_p_p_GDALRasterBandShadow swig_types[19]
-#define SWIGTYPE_p_p_GDAL_GCP swig_types[20]
-#define SWIGTYPE_p_p_char swig_types[21]
-#define SWIGTYPE_p_p_int swig_types[22]
-static swig_type_info *swig_types[24];
-static swig_module_info swig_module = {swig_types, 23, 0, 0, 0, 0};
-#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
-#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
-
-/* -------- TYPES TABLE (END) -------- */
-
-#define SWIG_init Init_gdal
-#define SWIG_name "Gdal::Gdal"
-
-static VALUE mGdal;
-
-#define SWIG_RUBY_THREAD_BEGIN_BLOCK
-#define SWIG_RUBY_THREAD_END_BLOCK
-
-
-#define SWIGVERSION 0x010340
-#define SWIG_VERSION SWIGVERSION
-
-
-#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
-#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
-
-
-#include <stdexcept>
-
-
-#include <iostream>
-using namespace std;
-
-#include "cpl_port.h"
-#include "cpl_string.h"
-#include "cpl_multiproc.h"
-
-#include "gdal.h"
-#include "gdal_priv.h"
-#include "gdal_alg.h"
-#include "gdalwarper.h"
-
-typedef void GDALMajorObjectShadow;
-typedef void GDALDriverShadow;
-typedef void GDALDatasetShadow;
-typedef void GDALRasterBandShadow;
-typedef void GDALColorTableShadow;
-typedef void GDALRasterAttributeTableShadow;
-typedef void GDALTransformerInfoShadow;
-typedef void GDALAsyncReaderShadow;
-
-/* use this to not return the int returned by GDAL */
-typedef int RETURN_NONE;
-
-
-
-void VeryQuiteErrorHandler(CPLErr eclass, int code, const char *msg ) {
- /* If the error class is CE_Fatal, we want to have a message issued
- because the CPL support code does an abort() before any exception
- can be generated */
- if (eclass == CE_Fatal ) {
- CPLDefaultErrorHandler(eclass, code, msg );
- }
-}
-
-
-void UseExceptions() {
- CPLSetErrorHandler( (CPLErrorHandler) VeryQuiteErrorHandler );
-}
-
-void DontUseExceptions() {
- CPLSetErrorHandler( CPLDefaultErrorHandler );
-}
-
-
-
-static CPLXMLNode *RubyArrayToXMLTree(VALUE rubyArray)
-{
- int nChildCount = 0, iChild, nType;
- CPLXMLNode *psThisNode;
- CPLXMLNode *psChild;
- char *pszText = NULL;
-
- nChildCount = RARRAY(rubyArray)->len - 2;
- if( nChildCount < 0 )
- {
- rb_raise(rb_eRuntimeError, "Error in input XMLTree, child count is less than zero.");
- }
-
- VALUE item1 = rb_ary_entry(rubyArray, 0);
- nType = NUM2INT(item1);
-
- VALUE item2 = rb_ary_entry(rubyArray, 1);
- pszText = StringValuePtr(item2);
-
- psThisNode = CPLCreateXMLNode( NULL, (CPLXMLNodeType) nType, pszText );
-
- for( iChild = 0; iChild < nChildCount; iChild++ )
- {
- psChild = RubyArrayToXMLTree( rb_ary_entry(rubyArray,iChild+2) );
- CPLAddXMLChild( psThisNode, psChild );
- }
-
- return psThisNode;
-}
-
-static VALUE XMLTreeToRubyArray( CPLXMLNode *psTree )
-{
- int nChildCount = 0, iChild;
- CPLXMLNode *psChild;
-
- for( psChild = psTree->psChild;
- psChild != NULL;
- psChild = psChild->psNext )
- nChildCount++;
-
- VALUE rubyArray = rb_ary_new2(nChildCount+2);
-
- rb_ary_store(rubyArray, 0, INT2NUM((int) psTree->eType));
- rb_ary_store(rubyArray, 1, rb_str_new2(psTree->pszValue));
-
- for( psChild = psTree->psChild, iChild = 2;
- psChild != NULL;
- psChild = psChild->psNext, iChild++ )
- {
- rb_ary_store(rubyArray, iChild, XMLTreeToRubyArray(psChild));
- }
-
- return rubyArray;
-}
-
-
-typedef char retStringAndCPLFree;
-
-
- void Debug( const char *msg_class, const char *message ) {
- CPLDebug( msg_class, "%s", message );
- }
-
- CPLErr PushErrorHandler( char const * pszCallbackName = NULL ) {
- CPLErrorHandler pfnHandler = NULL;
- if( pszCallbackName == NULL || EQUAL(pszCallbackName,"CPLQuietErrorHandler") )
- pfnHandler = CPLQuietErrorHandler;
- else if( EQUAL(pszCallbackName,"CPLDefaultErrorHandler") )
- pfnHandler = CPLDefaultErrorHandler;
- else if( EQUAL(pszCallbackName,"CPLLoggingErrorHandler") )
- pfnHandler = CPLLoggingErrorHandler;
-
- if ( pfnHandler == NULL )
- return CE_Fatal;
-
- CPLPushErrorHandler( pfnHandler );
-
- return CE_None;
- }
-
-
-
-SWIGINTERN swig_type_info*
-SWIG_pchar_descriptor(void)
-{
- static int init = 0;
- static swig_type_info* info = 0;
- if (!init) {
- info = SWIG_TypeQuery("_p_char");
- init = 1;
- }
- return info;
-}
-
-
-SWIGINTERN int
-SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
-{
- if (TYPE(obj) == T_STRING) {
- #if defined(StringValuePtr)
- char *cstr = StringValuePtr(obj);
- #else
- char *cstr = STR2CSTR(obj);
- #endif
- size_t size = RSTRING_LEN(obj) + 1;
- if (cptr) {
- if (alloc) {
- if (*alloc == SWIG_NEWOBJ) {
- *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size)));
- } else {
- *cptr = cstr;
- *alloc = SWIG_OLDOBJ;
- }
- }
- }
- if (psize) *psize = size;
- return SWIG_OK;
- } else {
- swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
- if (pchar_descriptor) {
- void* vptr = 0;
- if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
- if (cptr) *cptr = (char *)vptr;
- if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0;
- if (alloc) *alloc = SWIG_OLDOBJ;
- return SWIG_OK;
- }
- }
- }
- return SWIG_TypeError;
-}
-
-
-
-
-
- void Error( CPLErr msg_class = CE_Failure, int err_code = 0, const char* msg = "error" ) {
- CPLError( msg_class, err_code, "%s", msg );
- }
-
-
-#include <limits.h>
-#if !defined(SWIG_NO_LLONG_MAX)
-# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
-# define LLONG_MAX __LONG_LONG_MAX__
-# define LLONG_MIN (-LLONG_MAX - 1LL)
-# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
-# endif
-#endif
-
-
-SWIGINTERN VALUE
-SWIG_ruby_failed(void)
-{
- return Qnil;
-}
-
-
-/*@SWIG:/usr/share/swig1.3/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
-SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
-{
- VALUE obj = args[0];
- VALUE type = TYPE(obj);
- long *res = (long *)(args[1]);
- *res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj);
- return obj;
-}
-/*@SWIG@*/
-
-SWIGINTERN int
-SWIG_AsVal_long (VALUE obj, long* val)
-{
- VALUE type = TYPE(obj);
- if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
- long v;
- VALUE a[2];
- a[0] = obj;
- a[1] = (VALUE)(&v);
- if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
- if (val) *val = v;
- return SWIG_OK;
- }
- }
- return SWIG_TypeError;
-}
-
-
-SWIGINTERN int
-SWIG_AsVal_int (VALUE obj, int *val)
-{
- long v;
- int res = SWIG_AsVal_long (obj, &v);
- if (SWIG_IsOK(res)) {
- if ((v < INT_MIN || v > INT_MAX)) {
- return SWIG_OverflowError;
- } else {
- if (val) *val = static_cast< int >(v);
- }
- }
- return res;
-}
-
-
-char* EscapeString(int len, char *bin_string , int scheme=CPLES_SQL) {
- return CPLEscapeString(bin_string, len, scheme);
-}
-
-
-SWIGINTERNINLINE VALUE
-SWIG_FromCharPtrAndSize(const char* carray, size_t size)
-{
- if (carray) {
- if (size > LONG_MAX) {
- swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
- return pchar_descriptor ?
- SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil;
- } else {
- return rb_str_new(carray, static_cast< long >(size));
- }
- } else {
- return Qnil;
- }
-}
-
-
-SWIGINTERNINLINE VALUE
-SWIG_FromCharPtr(const char *cptr)
-{
- return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
-}
-
-
- #define SWIG_From_long LONG2NUM
-
-
-SWIGINTERNINLINE VALUE
-SWIG_From_int (int value)
-{
- return SWIG_From_long (value);
-}
-
-
-const char *wrapper_CPLGetConfigOption( const char * pszKey, const char * pszDefault = NULL )
-{
- return CPLGetConfigOption( pszKey, pszDefault );
-}
-
-SWIGINTERN char const *GDALMajorObjectShadow_GetDescription(GDALMajorObjectShadow *self){
- return GDALGetDescription( self );
- }
-SWIGINTERN void GDALMajorObjectShadow_SetDescription(GDALMajorObjectShadow *self,char const *pszNewDesc){
- GDALSetDescription( self, pszNewDesc );
- }
-SWIGINTERN char **GDALMajorObjectShadow_GetMetadata_Dict(GDALMajorObjectShadow *self,char const *pszDomain=""){
- return GDALGetMetadata( self, pszDomain );
- }
-SWIGINTERN char **GDALMajorObjectShadow_GetMetadata_List(GDALMajorObjectShadow *self,char const *pszDomain=""){
- return GDALGetMetadata( self, pszDomain );
- }
-SWIGINTERN CPLErr GDALMajorObjectShadow_SetMetadata__SWIG_0(GDALMajorObjectShadow *self,char **papszMetadata,char const *pszDomain=""){
- return GDALSetMetadata( self, papszMetadata, pszDomain );
- }
-SWIGINTERN CPLErr GDALMajorObjectShadow_SetMetadata__SWIG_1(GDALMajorObjectShadow *self,char *pszMetadataString,char const *pszDomain=""){
- char *tmpList[2];
- tmpList[0] = pszMetadataString;
- tmpList[1] = 0;
- return GDALSetMetadata( self, tmpList, pszDomain );
- }
-SWIGINTERN char const *GDALMajorObjectShadow_GetMetadataItem(GDALMajorObjectShadow *self,char const *pszName,char const *pszDomain=""){
- return GDALGetMetadataItem( self, pszName, pszDomain);
- }
-SWIGINTERN CPLErr GDALMajorObjectShadow_SetMetadataItem(GDALMajorObjectShadow *self,char const *pszName,char const *pszValue,char const *pszDomain=""){
- return GDALSetMetadataItem( self, pszName, pszValue, pszDomain);
- }
-SWIGINTERN GDALDatasetShadow *GDALDriverShadow_Create(GDALDriverShadow *self,char const *utf8_path,int xsize,int ysize,int bands=1,GDALDataType eType=GDT_Byte,char **options=0){
-
- GDALDatasetShadow* ds = (GDALDatasetShadow*) GDALCreate( self,
- utf8_path,
- xsize,
- ysize,
- bands,
- eType,
- options );
- return ds;
- }
-SWIGINTERN GDALDatasetShadow *GDALDriverShadow_CreateCopy(GDALDriverShadow *self,char const *utf8_path,GDALDatasetShadow *src,int strict=1,char **options=0,GDALProgressFunc callback=NULL,void *callback_data=NULL){
-
- GDALDatasetShadow *ds = (GDALDatasetShadow*) GDALCreateCopy( self,
- utf8_path,
- src,
- strict,
- options,
- callback,
- callback_data );
- return ds;
- }
-SWIGINTERN int GDALDriverShadow_Delete(GDALDriverShadow *self,char const *utf8_path){
- return GDALDeleteDataset( self, utf8_path );
- }
-SWIGINTERN int GDALDriverShadow_Rename(GDALDriverShadow *self,char const *newName,char const *oldName){
- return GDALRenameDataset( self, newName, oldName );
- }
-SWIGINTERN int GDALDriverShadow_Register(GDALDriverShadow *self){
- return GDALRegisterDriver( self );
- }
-SWIGINTERN void GDALDriverShadow_Deregister(GDALDriverShadow *self){
- GDALDeregisterDriver( self );
- }
-
-char const *GDALDriverShadow_ShortName_get( GDALDriverShadow *h ) {
- return GDALGetDriverShortName( h );
-}
-char const *GDALDriverShadow_LongName_get( GDALDriverShadow *h ) {
- return GDALGetDriverLongName( h );
-}
-char const *GDALDriverShadow_HelpTopic_get( GDALDriverShadow *h ) {
- return GDALGetDriverHelpTopic( h );
-}
-
-
-SWIGINTERN int
-SWIG_AsVal_short (VALUE obj, short *val)
-{
- long v;
- int res = SWIG_AsVal_long (obj, &v);
- if (SWIG_IsOK(res)) {
- if ((v < SHRT_MIN || v > SHRT_MAX)) {
- return SWIG_OverflowError;
- } else {
- if (val) *val = static_cast< short >(v);
- }
- }
- return res;
-}
-
-
-SWIGINTERNINLINE VALUE
-SWIG_From_short (short value)
-{
- return SWIG_From_long (value);
-}
-
-
-/*@SWIG:/usr/share/swig1.3/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
-SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
-{
- VALUE obj = args[0];
- VALUE type = TYPE(obj);
- double *res = (double *)(args[1]);
- *res = NUM2DBL(obj);
- return obj;
-}
-/*@SWIG@*/
-
-SWIGINTERN int
-SWIG_AsVal_double (VALUE obj, double *val)
-{
- VALUE type = TYPE(obj);
- if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) {
- double v;
- VALUE a[2];
- a[0] = obj;
- a[1] = (VALUE)(&v);
- if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
- if (val) *val = v;
- return SWIG_OK;
- }
- }
- return SWIG_TypeError;
-}
-
-
- #define SWIG_From_double rb_float_new
-
-SWIGINTERN GDAL_GCP *new_GDAL_GCP(double x=0.0,double y=0.0,double z=0.0,double pixel=0.0,double line=0.0,char const *info="",char const *id=""){
-
- GDAL_GCP *self = (GDAL_GCP*) CPLMalloc( sizeof( GDAL_GCP ) );
- self->dfGCPX = x;
- self->dfGCPY = y;
- self->dfGCPZ = z;
- self->dfGCPPixel = pixel;
- self->dfGCPLine = line;
- self->pszInfo = CPLStrdup( (info == 0) ? "" : info );
- self->pszId = CPLStrdup( (id==0)? "" : id );
- return self;
- }
-
-
-double GDAL_GCP_GCPX_get( GDAL_GCP *gcp ) {
- return gcp->dfGCPX;
-}
-void GDAL_GCP_GCPX_set( GDAL_GCP *gcp, double dfGCPX ) {
- gcp->dfGCPX = dfGCPX;
-}
-double GDAL_GCP_GCPY_get( GDAL_GCP *gcp ) {
- return gcp->dfGCPY;
-}
-void GDAL_GCP_GCPY_set( GDAL_GCP *gcp, double dfGCPY ) {
- gcp->dfGCPY = dfGCPY;
-}
-double GDAL_GCP_GCPZ_get( GDAL_GCP *gcp ) {
- return gcp->dfGCPZ;
-}
-void GDAL_GCP_GCPZ_set( GDAL_GCP *gcp, double dfGCPZ ) {
- gcp->dfGCPZ = dfGCPZ;
-}
-double GDAL_GCP_GCPPixel_get( GDAL_GCP *gcp ) {
- return gcp->dfGCPPixel;
-}
-void GDAL_GCP_GCPPixel_set( GDAL_GCP *gcp, double dfGCPPixel ) {
- gcp->dfGCPPixel = dfGCPPixel;
-}
-double GDAL_GCP_GCPLine_get( GDAL_GCP *gcp ) {
- return gcp->dfGCPLine;
-}
-void GDAL_GCP_GCPLine_set( GDAL_GCP *gcp, double dfGCPLine ) {
- gcp->dfGCPLine = dfGCPLine;
-}
-const char * GDAL_GCP_Info_get( GDAL_GCP *gcp ) {
- return gcp->pszInfo;
-}
-void GDAL_GCP_Info_set( GDAL_GCP *gcp, const char * pszInfo ) {
- if ( gcp->pszInfo )
- CPLFree( gcp->pszInfo );
- gcp->pszInfo = CPLStrdup(pszInfo);
-}
-const char * GDAL_GCP_Id_get( GDAL_GCP *gcp ) {
- return gcp->pszId;
-}
-void GDAL_GCP_Id_set( GDAL_GCP *gcp, const char * pszId ) {
- if ( gcp->pszId )
- CPLFree( gcp->pszId );
- gcp->pszId = CPLStrdup(pszId);
-}
-
-
-
-/* Duplicate, but transposed names for C# because
-* the C# module outputs backwards names
-*/
-double GDAL_GCP_get_GCPX( GDAL_GCP *gcp ) {
- return gcp->dfGCPX;
-}
-void GDAL_GCP_set_GCPX( GDAL_GCP *gcp, double dfGCPX ) {
- gcp->dfGCPX = dfGCPX;
-}
-double GDAL_GCP_get_GCPY( GDAL_GCP *gcp ) {
- return gcp->dfGCPY;
-}
-void GDAL_GCP_set_GCPY( GDAL_GCP *gcp, double dfGCPY ) {
- gcp->dfGCPY = dfGCPY;
-}
-double GDAL_GCP_get_GCPZ( GDAL_GCP *gcp ) {
- return gcp->dfGCPZ;
-}
-void GDAL_GCP_set_GCPZ( GDAL_GCP *gcp, double dfGCPZ ) {
- gcp->dfGCPZ = dfGCPZ;
-}
-double GDAL_GCP_get_GCPPixel( GDAL_GCP *gcp ) {
- return gcp->dfGCPPixel;
-}
-void GDAL_GCP_set_GCPPixel( GDAL_GCP *gcp, double dfGCPPixel ) {
- gcp->dfGCPPixel = dfGCPPixel;
-}
-double GDAL_GCP_get_GCPLine( GDAL_GCP *gcp ) {
- return gcp->dfGCPLine;
-}
-void GDAL_GCP_set_GCPLine( GDAL_GCP *gcp, double dfGCPLine ) {
- gcp->dfGCPLine = dfGCPLine;
-}
-const char * GDAL_GCP_get_Info( GDAL_GCP *gcp ) {
- return gcp->pszInfo;
-}
-void GDAL_GCP_set_Info( GDAL_GCP *gcp, const char * pszInfo ) {
- if ( gcp->pszInfo )
- CPLFree( gcp->pszInfo );
- gcp->pszInfo = CPLStrdup(pszInfo);
-}
-const char * GDAL_GCP_get_Id( GDAL_GCP *gcp ) {
- return gcp->pszId;
-}
-void GDAL_GCP_set_Id( GDAL_GCP *gcp, const char * pszId ) {
- if ( gcp->pszId )
- CPLFree( gcp->pszId );
- gcp->pszId = CPLStrdup(pszId);
-}
-
-
-
-/* Returned size is in bytes or 0 if an error occured */
-static
-GIntBig ComputeDatasetRasterIOSize (int buf_xsize, int buf_ysize, int nPixelSize,
- int nBands, int* bandMap, int nBandMapArrayLength,
- int nPixelSpace, int nLineSpace, int nBandSpace,
- int bSpacingShouldBeMultipleOfPixelSize )
-{
-#if SIZEOF_VOIDP == 8
- const GIntBig MAX_INT = (((GIntBig)0x7fffffff) << 32) | 0xffffffff;
-#else
- const GIntBig MAX_INT = 0x7fffffff;
-#endif
- const GIntBig MAX_INT32 = 0x7fffffff;
- if (buf_xsize <= 0 || buf_ysize <= 0)
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "Illegal values for buffer size");
- return 0;
- }
-
- if (nPixelSpace < 0 || nLineSpace < 0 || nBandSpace < 0)
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "Illegal values for space arguments");
- return 0;
- }
-
- if (nPixelSize == 0)
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "Illegal value for data type");
- return 0;
- }
-
- if( nPixelSpace == 0 )
- nPixelSpace = nPixelSize;
- else if ( bSpacingShouldBeMultipleOfPixelSize && (nPixelSpace % nPixelSize) != 0 )
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "nPixelSpace should be a multiple of nPixelSize");
- return 0;
- }
-
- if( nLineSpace == 0 )
- {
- if (nPixelSpace > MAX_INT32 / buf_xsize)
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "Integer overflow for nLineSpace");
- return 0;
- }
- nLineSpace = nPixelSpace * buf_xsize;
- }
- else if ( bSpacingShouldBeMultipleOfPixelSize && (nLineSpace % nPixelSize) != 0 )
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "nLineSpace should be a multiple of nPixelSize");
- return 0;
- }
-
- if( nBandSpace == 0 )
- {
- if (nLineSpace > MAX_INT32 / buf_ysize)
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "Integer overflow for nBandSpace");
- return 0;
- }
- nBandSpace = nLineSpace * buf_ysize;
- }
- else if ( bSpacingShouldBeMultipleOfPixelSize && (nBandSpace % nPixelSize) != 0 )
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "nLineSpace should be a multiple of nPixelSize");
- return 0;
- }
-
- if (nBands <= 0 || (bandMap != NULL && nBands > nBandMapArrayLength))
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "Invalid band count");
- return 0;
- }
-
- GIntBig nRet = (GIntBig)(buf_ysize - 1) * nLineSpace + (GIntBig)(buf_xsize - 1) * nPixelSpace + (GIntBig)(nBands - 1) * nBandSpace + nPixelSize;
- if (nRet > MAX_INT)
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "Integer overflow");
- return 0;
- }
-
- return nRet;
-}
-
-
-static
-CPLErr DSReadRaster_internal( GDALDatasetShadow *obj,
- int xoff, int yoff, int xsize, int ysize,
- int buf_xsize, int buf_ysize,
- GDALDataType buf_type,
- int *buf_size, char **buf,
- int band_list, int *pband_list,
- int pixel_space, int line_space, int band_space)
-{
- CPLErr result;
-
- GIntBig nRequiredSize = ComputeDatasetRasterIOSize (buf_xsize, buf_ysize, GDALGetDataTypeSize( buf_type ) / 8,
- band_list ? band_list : GDALGetRasterCount(obj), pband_list, band_list,
- pixel_space, line_space, band_space, FALSE);
- if (nRequiredSize > 0x7fffffff)
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "Integer overflow");
- nRequiredSize = 0;
- }
- *buf_size = (int)nRequiredSize;
- if (*buf_size == 0)
- {
- *buf = 0;
- return CE_Failure;
- }
-
- *buf = (char*) malloc( *buf_size );
- if (*buf)
- {
- result = GDALDatasetRasterIO(obj, GF_Read, xoff, yoff, xsize, ysize,
- (void*) *buf, buf_xsize, buf_ysize, buf_type,
- band_list, pband_list, pixel_space, line_space, band_space );
- if ( result != CE_None ) {
- free( *buf );
- *buf = 0;
- *buf_size = 0;
- }
- }
- else
- {
- CPLError(CE_Failure, CPLE_OutOfMemory, "Not enough memory to allocate %d bytes", *buf_size);
- result = CE_Failure;
- *buf = 0;
- *buf_size = 0;
- }
- return result;
-}
-
-
-typedef struct
-{
- GDALAsyncReaderH hAsyncReader;
- void *pyObject;
-} GDALAsyncReaderWrapper;
-
-typedef void* GDALAsyncReaderWrapperH;
-
-static GDALAsyncReaderH AsyncReaderWrapperGetReader(GDALAsyncReaderWrapperH hWrapper)
-{
- GDALAsyncReaderWrapper* psWrapper = (GDALAsyncReaderWrapper*)hWrapper;
- if (psWrapper->hAsyncReader == NULL)
- {
- CPLError(CE_Failure, CPLE_AppDefined, "AsyncReader object is defunct");
- }
- return psWrapper->hAsyncReader;
-}
-
-static void* AsyncReaderWrapperGetPyObject(GDALAsyncReaderWrapperH hWrapper)
-{
- GDALAsyncReaderWrapper* psWrapper = (GDALAsyncReaderWrapper*)hWrapper;
- return psWrapper->pyObject;
-}
-
-static void DeleteAsyncReaderWrapper(GDALAsyncReaderWrapperH hWrapper)
-{
- GDALAsyncReaderWrapper* psWrapper = (GDALAsyncReaderWrapper*)hWrapper;
- if (psWrapper->hAsyncReader != NULL)
- {
- CPLError(CE_Failure, CPLE_AppDefined,
- "Native AsyncReader object will leak. EndAsyncReader() should have been called before");
- }
- CPLFree(psWrapper);
-}
-
-
-SWIGINTERN GDALAsyncStatusType GDALAsyncReaderShadow_GetNextUpdatedRegion(GDALAsyncReaderShadow *self,double timeout,int *xoff,int *yoff,int *buf_xsize,int *buf_ysize){
- GDALAsyncReaderH hReader = AsyncReaderWrapperGetReader(self);
- if (hReader == NULL)
- {
- *xoff = 0;
- *yoff = 0;
- *buf_xsize = 0;
- *buf_ysize = 0;
- return GARIO_ERROR;
- }
- return GDALARGetNextUpdatedRegion(hReader, timeout, xoff, yoff, buf_xsize, buf_ysize );
- }
-SWIGINTERN int GDALAsyncReaderShadow_LockBuffer(GDALAsyncReaderShadow *self,double timeout){
- GDALAsyncReaderH hReader = AsyncReaderWrapperGetReader(self);
- if (hReader == NULL)
- {
- return 0;
- }
- return GDALARLockBuffer(hReader,timeout);
- }
-SWIGINTERN void GDALAsyncReaderShadow_UnlockBuffer(GDALAsyncReaderShadow *self){
- GDALAsyncReaderH hReader = AsyncReaderWrapperGetReader(self);
- if (hReader == NULL)
- {
- return;
- }
- GDALARUnlockBuffer(hReader);
- }
-SWIGINTERN GDALDriverShadow *GDALDatasetShadow_GetDriver(GDALDatasetShadow *self){
- return (GDALDriverShadow*) GDALGetDatasetDriver( self );
- }
-SWIGINTERN GDALRasterBandShadow *GDALDatasetShadow_GetRasterBand(GDALDatasetShadow *self,int nBand){
- return (GDALRasterBandShadow*) GDALGetRasterBand( self, nBand );
- }
-SWIGINTERN char const *GDALDatasetShadow_GetProjection(GDALDatasetShadow *self){
- return GDALGetProjectionRef( self );
- }
-SWIGINTERN char const *GDALDatasetShadow_GetProjectionRef(GDALDatasetShadow *self){
- return GDALGetProjectionRef( self );
- }
-SWIGINTERN CPLErr GDALDatasetShadow_SetProjection(GDALDatasetShadow *self,char const *prj){
- return GDALSetProjection( self, prj );
- }
-SWIGINTERN void GDALDatasetShadow_GetGeoTransform(GDALDatasetShadow *self,double argout[6]){
- if ( GDALGetGeoTransform( self, argout ) != CE_None ) {
- argout[0] = 0.0;
- argout[1] = 1.0;
- argout[2] = 0.0;
- argout[3] = 0.0;
- argout[4] = 0.0;
- argout[5] = 1.0;
- }
- }
-SWIGINTERN CPLErr GDALDatasetShadow_SetGeoTransform(GDALDatasetShadow *self,double argin[6]){
- return GDALSetGeoTransform( self, argin );
- }
-SWIGINTERN int GDALDatasetShadow_BuildOverviews(GDALDatasetShadow *self,char const *resampling="NEAREST",int overviewlist=0,int *pOverviews=0,GDALProgressFunc callback=NULL,void *callback_data=NULL){
-
- return GDALBuildOverviews( self,
- resampling ? resampling : "NEAREST",
- overviewlist,
- pOverviews,
- 0,
- 0,
- callback,
- callback_data);
- }
-SWIGINTERN int GDALDatasetShadow_GetGCPCount(GDALDatasetShadow *self){
- return GDALGetGCPCount( self );
- }
-SWIGINTERN char const *GDALDatasetShadow_GetGCPProjection(GDALDatasetShadow *self){
- return GDALGetGCPProjection( self );
- }
-SWIGINTERN void GDALDatasetShadow_GetGCPs(GDALDatasetShadow *self,int *nGCPs,GDAL_GCP const **pGCPs){
- *nGCPs = GDALGetGCPCount( self );
- *pGCPs = GDALGetGCPs( self );
- }
-SWIGINTERN CPLErr GDALDatasetShadow_SetGCPs(GDALDatasetShadow *self,int nGCPs,GDAL_GCP const *pGCPs,char const *pszGCPProjection){
- return GDALSetGCPs( self, nGCPs, pGCPs, pszGCPProjection );
- }
-SWIGINTERN void GDALDatasetShadow_FlushCache(GDALDatasetShadow *self){
- GDALFlushCache( self );
- }
-SWIGINTERN CPLErr GDALDatasetShadow_AddBand(GDALDatasetShadow *self,GDALDataType datatype=GDT_Byte,char **options=0){
- return GDALAddBand( self, datatype, options );
- }
-SWIGINTERN CPLErr GDALDatasetShadow_CreateMaskBand(GDALDatasetShadow *self,int nFlags){
- return GDALCreateDatasetMaskBand( self, nFlags );
- }
-SWIGINTERN char **GDALDatasetShadow_GetFileList(GDALDatasetShadow *self){
- return GDALGetFileList( self );
- }
-SWIGINTERN CPLErr GDALDatasetShadow_WriteRaster(GDALDatasetShadow *self,int xoff,int yoff,int xsize,int ysize,int buf_len,char *buf_string,int *buf_xsize=0,int *buf_ysize=0,GDALDataType *buf_type=0,int band_list=0,int *pband_list=0,int *buf_pixel_space=0,int *buf_line_space=0,int *buf_band_space=0){
- CPLErr eErr;
- int nxsize = (buf_xsize==0) ? xsize : *buf_xsize;
- int nysize = (buf_ysize==0) ? ysize : *buf_ysize;
- GDALDataType ntype;
- if ( buf_type != 0 ) {
- ntype = (GDALDataType) *buf_type;
- } else {
- int lastband = GDALGetRasterCount( self ) - 1;
- if (lastband < 0)
- return CE_Failure;
- ntype = GDALGetRasterDataType( GDALGetRasterBand( self, lastband ) );
- }
-
- int pixel_space = (buf_pixel_space == 0) ? 0 : *buf_pixel_space;
- int line_space = (buf_line_space == 0) ? 0 : *buf_line_space;
- int band_space = (buf_band_space == 0) ? 0 : *buf_band_space;
-
- GIntBig min_buffer_size =
- ComputeDatasetRasterIOSize (nxsize, nysize, GDALGetDataTypeSize( ntype ) / 8,
- band_list ? band_list : GDALGetRasterCount(self), pband_list, band_list,
- pixel_space, line_space, band_space, FALSE);
- if (min_buffer_size == 0)
- return CE_Failure;
-
- if ( buf_len < min_buffer_size )
- {
- CPLError(CE_Failure, CPLE_AppDefined, "Buffer too small");
- return CE_Failure;
- }
-
- eErr = GDALDatasetRasterIO( self, GF_Write, xoff, yoff, xsize, ysize,
- (void*) buf_string, nxsize, nysize, ntype,
- band_list, pband_list, pixel_space, line_space, band_space );
-
- return eErr;
- }
-SWIGINTERN CPLErr GDALDatasetShadow_ReadRaster(GDALDatasetShadow *self,int xoff,int yoff,int xsize,int ysize,int *buf_len,char **buf,int *buf_xsize=0,int *buf_ysize=0,GDALDataType *buf_type=0,int band_list=0,int *pband_list=0,int *buf_pixel_space=0,int *buf_line_space=0,int *buf_band_space=0){
- CPLErr eErr;
- int nxsize = (buf_xsize==0) ? xsize : *buf_xsize;
- int nysize = (buf_ysize==0) ? ysize : *buf_ysize;
- GDALDataType ntype;
- if ( buf_type != 0 ) {
- ntype = (GDALDataType) *buf_type;
- } else {
- int lastband = GDALGetRasterCount( self ) - 1;
- if (lastband < 0)
- return CE_Failure;
- ntype = GDALGetRasterDataType( GDALGetRasterBand( self, lastband ) );
- }
-
- int pixel_space = (buf_pixel_space == 0) ? 0 : *buf_pixel_space;
- int line_space = (buf_line_space == 0) ? 0 : *buf_line_space;
- int band_space = (buf_band_space == 0) ? 0 : *buf_band_space;
-
- eErr = DSReadRaster_internal( self, xoff, yoff, xsize, ysize,
- nxsize, nysize, ntype,
- buf_len, buf,
- band_list, pband_list,
- pixel_space, line_space, band_space);
-
- return eErr;
-}
-
-int GDALDatasetShadow_RasterXSize_get( GDALDatasetShadow *h ) {
- return GDALGetRasterXSize( h );
-}
-int GDALDatasetShadow_RasterYSize_get( GDALDatasetShadow *h ) {
- return GDALGetRasterYSize( h );
-}
-int GDALDatasetShadow_RasterCount_get( GDALDatasetShadow *h ) {
- return GDALGetRasterCount( h );
-}
-
-
-/* Returned size is in bytes or 0 if an error occured */
-static
-GIntBig ComputeBandRasterIOSize (int buf_xsize, int buf_ysize, int nPixelSize,
- int nPixelSpace, int nLineSpace,
- int bSpacingShouldBeMultipleOfPixelSize )
-{
-#if SIZEOF_VOIDP == 8
- const GIntBig MAX_INT = (((GIntBig)0x7fffffff) << 32) | 0xffffffff;
-#else
- const GIntBig MAX_INT = 0x7fffffff;
-#endif
- const GIntBig MAX_INT32 = 0x7fffffff;
- if (buf_xsize <= 0 || buf_ysize <= 0)
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "Illegal values for buffer size");
- return 0;
- }
-
- if (nPixelSpace < 0 || nLineSpace < 0)
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "Illegal values for space arguments");
- return 0;
- }
-
- if (nPixelSize == 0)
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "Illegal value for data type");
- return 0;
- }
-
- if( nPixelSpace == 0 )
- nPixelSpace = nPixelSize;
- else if ( bSpacingShouldBeMultipleOfPixelSize && (nPixelSpace % nPixelSize) != 0 )
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "nPixelSpace should be a multiple of nPixelSize");
- return 0;
- }
-
- if( nLineSpace == 0 )
- {
- if (nPixelSpace > MAX_INT32 / buf_xsize)
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "Integer overflow for nLineSpace");
- return 0;
- }
- nLineSpace = nPixelSpace * buf_xsize;
- }
- else if ( bSpacingShouldBeMultipleOfPixelSize && (nLineSpace % nPixelSize) != 0 )
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "nLineSpace should be a multiple of nPixelSize");
- return 0;
- }
-
- GIntBig nRet = (GIntBig)(buf_ysize - 1) * nLineSpace + (GIntBig)(buf_xsize - 1) * nPixelSpace + nPixelSize;
- if (nRet > MAX_INT)
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "Integer overflow");
- return 0;
- }
-
- return nRet;
-}
-
-
-static
-CPLErr ReadRaster_internal( GDALRasterBandShadow *obj,
- int xoff, int yoff, int xsize, int ysize,
- int buf_xsize, int buf_ysize,
- GDALDataType buf_type,
- int *buf_size, char **buf,
- int pixel_space, int line_space )
-{
- CPLErr result;
-
- GIntBig nRequiredSize = ComputeBandRasterIOSize( buf_xsize, buf_ysize, GDALGetDataTypeSize( buf_type ) / 8,
- pixel_space, line_space, FALSE );
- if (nRequiredSize > 0x7fffffff)
- {
- CPLError(CE_Failure, CPLE_IllegalArg, "Integer overflow");
- nRequiredSize = 0;
- }
- *buf_size = (int)nRequiredSize;
-
- if ( *buf_size == 0 )
- {
- *buf = 0;
- return CE_Failure;
- }
-
- *buf = (char*) malloc( *buf_size );
- if ( *buf )
- {
- result = GDALRasterIO( obj, GF_Read, xoff, yoff, xsize, ysize,
- (void *) *buf, buf_xsize, buf_ysize,
- buf_type, pixel_space, line_space );
- if ( result != CE_None )
- {
- free( *buf );
- *buf = 0;
- *buf_size = 0;
- }
- }
- else
- {
- CPLError(CE_Failure, CPLE_OutOfMemory, "Not enough memory to allocate %d bytes", *buf_size);
- result = CE_Failure;
- *buf = 0;
- *buf_size = 0;
- }
-
- return result;
-}
-
-
-static
-CPLErr WriteRaster_internal( GDALRasterBandShadow *obj,
- int xoff, int yoff, int xsize, int ysize,
- int buf_xsize, int buf_ysize,
- GDALDataType buf_type,
- GIntBig buf_size, char *buffer,
- int pixel_space, int line_space)
-{
- GIntBig min_buffer_size = ComputeBandRasterIOSize (buf_xsize, buf_ysize, GDALGetDataTypeSize( buf_type ) / 8,
- pixel_space, line_space, FALSE );
- if ( min_buffer_size == 0 )
- return CE_Failure;
-
- if ( buf_size < min_buffer_size ) {
- CPLError(CE_Failure, CPLE_AppDefined, "Buffer too small");
- return CE_Failure;
- }
-
- return GDALRasterIO( obj, GF_Write, xoff, yoff, xsize, ysize,
- (void *) buffer, buf_xsize, buf_ysize, buf_type, pixel_space, line_space );
-}
-
-SWIGINTERN int GDALRasterBandShadow_GetBand(GDALRasterBandShadow *self){
- return GDALGetBandNumber(self);
- }
-SWIGINTERN void GDALRasterBandShadow_GetBlockSize(GDALRasterBandShadow *self,int *pnBlockXSize,int *pnBlockYSize){
- GDALGetBlockSize(self, pnBlockXSize, pnBlockYSize);
- }
-SWIGINTERN GDALColorInterp GDALRasterBandShadow_GetColorInterpretation(GDALRasterBandShadow *self){
- return GDALGetRasterColorInterpretation( self );
- }
-SWIGINTERN GDALColorInterp GDALRasterBandShadow_GetRasterColorInterpretation(GDALRasterBandShadow *self){
- return GDALGetRasterColorInterpretation( self );
- }
-SWIGINTERN CPLErr GDALRasterBandShadow_SetColorInterpretation(GDALRasterBandShadow *self,GDALColorInterp val){
- return GDALSetRasterColorInterpretation( self, val );
- }
-SWIGINTERN CPLErr GDALRasterBandShadow_SetRasterColorInterpretation(GDALRasterBandShadow *self,GDALColorInterp val){
- return GDALSetRasterColorInterpretation( self, val );
- }
-SWIGINTERN void GDALRasterBandShadow_GetNoDataValue(GDALRasterBandShadow *self,double *val,int *hasval){
- *val = GDALGetRasterNoDataValue( self, hasval );
- }
-SWIGINTERN CPLErr GDALRasterBandShadow_SetNoDataValue(GDALRasterBandShadow *self,double d){
- return GDALSetRasterNoDataValue( self, d );
- }
-SWIGINTERN char const *GDALRasterBandShadow_GetUnitType(GDALRasterBandShadow *self){
- return GDALGetRasterUnitType( self );
- }
-SWIGINTERN CPLErr GDALRasterBandShadow_SetUnitType(GDALRasterBandShadow *self,char const *val){
- return GDALSetRasterUnitType( self, val );
- }
-SWIGINTERN char **GDALRasterBandShadow_GetRasterCategoryNames(GDALRasterBandShadow *self){
- return GDALGetRasterCategoryNames( self );
- }
-SWIGINTERN CPLErr GDALRasterBandShadow_SetRasterCategoryNames(GDALRasterBandShadow *self,char **names){
- return GDALSetRasterCategoryNames( self, names );
- }
-SWIGINTERN void GDALRasterBandShadow_GetMinimum(GDALRasterBandShadow *self,double *val,int *hasval){
- *val = GDALGetRasterMinimum( self, hasval );
- }
-SWIGINTERN void GDALRasterBandShadow_GetMaximum(GDALRasterBandShadow *self,double *val,int *hasval){
- *val = GDALGetRasterMaximum( self, hasval );
- }
-SWIGINTERN void GDALRasterBandShadow_GetOffset(GDALRasterBandShadow *self,double *val,int *hasval){
- *val = GDALGetRasterOffset( self, hasval );
- }
-SWIGINTERN void GDALRasterBandShadow_GetScale(GDALRasterBandShadow *self,double *val,int *hasval){
- *val = GDALGetRasterScale( self, hasval );
- }
-SWIGINTERN CPLErr GDALRasterBandShadow_SetOffset(GDALRasterBandShadow *self,double val){
- return GDALSetRasterOffset( self, val );
- }
-SWIGINTERN CPLErr GDALRasterBandShadow_SetScale(GDALRasterBandShadow *self,double val){
- return GDALSetRasterScale( self, val );
- }
-SWIGINTERN CPLErr GDALRasterBandShadow_GetStatistics(GDALRasterBandShadow *self,int approx_ok,int force,double *min,double *max,double *mean,double *stddev){
- if (min) *min = 0;
- if (max) *max = 0;
- if (mean) *mean = 0;
- if (stddev) *stddev = -1; /* This is the only way to recognize from Python if GetRasterStatistics() has updated the values */
- return GDALGetRasterStatistics( self, approx_ok, force,
- min, max, mean, stddev );
- }
-
-SWIGINTERN int
-SWIG_AsVal_bool (VALUE obj, bool *val)
-{
- if (obj == Qtrue) {
- if (val) *val = true;
- return SWIG_OK;
- } else if (obj == Qfalse) {
- if (val) *val = false;
- return SWIG_OK;
- } else {
- int res = 0;
- if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
- if (val) *val = res ? true : false;
- return SWIG_OK;
- }
- }
- return SWIG_TypeError;
-}
-
-SWIGINTERN CPLErr GDALRasterBandShadow_ComputeStatistics(GDALRasterBandShadow *self,bool approx_ok,double *min=NULL,double *max=NULL,double *mean=NULL,double *stddev=NULL,GDALProgressFunc callback=NULL,void *callback_data=NULL){
- return GDALComputeRasterStatistics( self, approx_ok, min, max, mean, stddev, callback, callback_data );
- }
-SWIGINTERN CPLErr GDALRasterBandShadow_SetStatistics(GDALRasterBandShadow *self,double min,double max,double mean,double stddev){
- return GDALSetRasterStatistics( self, min, max, mean, stddev );
- }
-SWIGINTERN int GDALRasterBandShadow_GetOverviewCount(GDALRasterBandShadow *self){
- return GDALGetOverviewCount( self );
- }
-SWIGINTERN GDALRasterBandShadow *GDALRasterBandShadow_GetOverview(GDALRasterBandShadow *self,int i){
- return (GDALRasterBandShadow*) GDALGetOverview( self, i );
- }
-SWIGINTERN int GDALRasterBandShadow_Checksum(GDALRasterBandShadow *self,int xoff=0,int yoff=0,int *xsize=0,int *ysize=0){
- int nxsize = (xsize!=0) ? *xsize : GDALGetRasterBandXSize( self );
- int nysize = (ysize!=0) ? *ysize : GDALGetRasterBandYSize( self );
- return GDALChecksumImage( self, xoff, yoff, nxsize, nysize );
- }
-SWIGINTERN void GDALRasterBandShadow_ComputeRasterMinMax(GDALRasterBandShadow *self,double argout[2],int approx_ok=0){
- GDALComputeRasterMinMax( self, approx_ok, argout );
- }
-SWIGINTERN void GDALRasterBandShadow_ComputeBandStats(GDALRasterBandShadow *self,double argout[2],int samplestep=1){
- GDALComputeBandStats( self, samplestep, argout+0, argout+1,
- NULL, NULL );
- }
-SWIGINTERN CPLErr GDALRasterBandShadow_Fill(GDALRasterBandShadow *self,double real_fill,double imag_fill=0.0){
- return GDALFillRaster( self, real_fill, imag_fill );
- }
-SWIGINTERN CPLErr GDALRasterBandShadow_ReadRaster(GDALRasterBandShadow *self,int xoff,int yoff,int xsize,int ysize,int *buf_len,char **buf,int *buf_xsize=0,int *buf_ysize=0,int *buf_type=0,int *buf_pixel_space=0,int *buf_line_space=0){
- int nxsize = (buf_xsize==0) ? xsize : *buf_xsize;
- int nysize = (buf_ysize==0) ? ysize : *buf_ysize;
- GDALDataType ntype = (buf_type==0) ? GDALGetRasterDataType(self)
- : (GDALDataType)*buf_type;
- int pixel_space = (buf_pixel_space == 0) ? 0 : *buf_pixel_space;
- int line_space = (buf_line_space == 0) ? 0 : *buf_line_space;
- return ReadRaster_internal( self, xoff, yoff, xsize, ysize,
- nxsize, nysize, ntype, buf_len, buf, pixel_space, line_space );
- }
-SWIGINTERN CPLErr GDALRasterBandShadow_WriteRaster(GDALRasterBandShadow *self,int xoff,int yoff,int xsize,int ysize,int buf_len,char *buf_string,int *buf_xsize=0,int *buf_ysize=0,int *buf_type=0,int *buf_pixel_space=0,int *buf_line_space=0){
- int nxsize = (buf_xsize==0) ? xsize : *buf_xsize;
- int nysize = (buf_ysize==0) ? ysize : *buf_ysize;
- GDALDataType ntype = (buf_type==0) ? GDALGetRasterDataType(self)
- : (GDALDataType)*buf_type;
- int pixel_space = (buf_pixel_space == 0) ? 0 : *buf_pixel_space;
- int line_space = (buf_line_space == 0) ? 0 : *buf_line_space;
- return WriteRaster_internal( self, xoff, yoff, xsize, ysize,
- nxsize, nysize, ntype, buf_len, buf_string, pixel_space, line_space );
- }
-SWIGINTERN void GDALRasterBandShadow_FlushCache(GDALRasterBandShadow *self){
- GDALFlushRasterCache( self );
- }
-SWIGINTERN GDALColorTableShadow *GDALRasterBandShadow_GetRasterColorTable(GDALRasterBandShadow *self){
- return (GDALColorTableShadow*) GDALGetRasterColorTable( self );
- }
-SWIGINTERN GDALColorTableShadow *GDALRasterBandShadow_GetColorTable(GDALRasterBandShadow *self){
- return (GDALColorTableShadow*) GDALGetRasterColorTable( self );
- }
-SWIGINTERN int GDALRasterBandShadow_SetRasterColorTable(GDALRasterBandShadow *self,GDALColorTableShadow *arg){
- return GDALSetRasterColorTable( self, arg );
- }
-SWIGINTERN int GDALRasterBandShadow_SetColorTable(GDALRasterBandShadow *self,GDALColorTableShadow *arg){
- return GDALSetRasterColorTable( self, arg );
- }
-SWIGINTERN GDALRasterAttributeTableShadow *GDALRasterBandShadow_GetDefaultRAT(GDALRasterBandShadow *self){
- return (GDALRasterAttributeTableShadow*) GDALGetDefaultRAT(self);
- }
-SWIGINTERN int GDALRasterBandShadow_SetDefaultRAT(GDALRasterBandShadow *self,GDALRasterAttributeTableShadow *table){
- return GDALSetDefaultRAT(self, table);
- }
-SWIGINTERN GDALRasterBandShadow *GDALRasterBandShadow_GetMaskBand(GDALRasterBandShadow *self){
- return (GDALRasterBandShadow *) GDALGetMaskBand( self );
- }
-SWIGINTERN int GDALRasterBandShadow_GetMaskFlags(GDALRasterBandShadow *self){
- return GDALGetMaskFlags( self );
- }
-SWIGINTERN CPLErr GDALRasterBandShadow_CreateMaskBand(GDALRasterBandShadow *self,int nFlags){
- return GDALCreateMaskBand( self, nFlags );
- }
-SWIGINTERN CPLErr GDALRasterBandShadow_GetHistogram(GDALRasterBandShadow *self,double min=-0.5,double max=255.5,int buckets=256,int *panHistogram=NULL,int include_out_of_range=0,int approx_ok=1,GDALProgressFunc callback=NULL,void *callback_data=NULL){
- CPLErrorReset();
- CPLErr err = GDALGetRasterHistogram( self, min, max, buckets, panHistogram,
- include_out_of_range, approx_ok,
- callback, callback_data );
- return err;
- }
-SWIGINTERN CPLErr GDALRasterBandShadow_GetDefaultHistogram(GDALRasterBandShadow *self,double *min_ret=NULL,double *max_ret=NULL,int *buckets_ret=NULL,int **ppanHistogram=NULL,int force=1,GDALProgressFunc callback=NULL,void *callback_data=NULL){
- return GDALGetDefaultHistogram( self, min_ret, max_ret, buckets_ret,
- ppanHistogram, force,
- callback, callback_data );
-}
-SWIGINTERN CPLErr GDALRasterBandShadow_SetDefaultHistogram(GDALRasterBandShadow *self,double min,double max,int buckets_in,int *panHistogram_in){
- return GDALSetDefaultHistogram( self, min, max,
- buckets_in, panHistogram_in );
-}
-SWIGINTERN bool GDALRasterBandShadow_HasArbitraryOverviews(GDALRasterBandShadow *self){
- return (GDALHasArbitraryOverviews( self ) != 0) ? true : false;
- }
-
-SWIGINTERNINLINE VALUE
-SWIG_From_bool (bool value)
-{
- return value ? Qtrue : Qfalse;
-}
-
-
-GDALDataType GDALRasterBandShadow_DataType_get( GDALRasterBandShadow *h ) {
- return GDALGetRasterDataType( h );
-}
-int GDALRasterBandShadow_XSize_get( GDALRasterBandShadow *h ) {
- return GDALGetRasterBandXSize( h );
-}
-int GDALRasterBandShadow_YSize_get( GDALRasterBandShadow *h ) {
- return GDALGetRasterBandYSize( h );
-}
-
-SWIGINTERN GDALColorTableShadow *new_GDALColorTableShadow(GDALPaletteInterp palette=GPI_RGB){
- return (GDALColorTableShadow*) GDALCreateColorTable(palette);
- }
-SWIGINTERN GDALColorTableShadow *GDALColorTableShadow_Clone(GDALColorTableShadow *self){
- return (GDALColorTableShadow*) GDALCloneColorTable (self);
- }
-SWIGINTERN GDALPaletteInterp GDALColorTableShadow_GetPaletteInterpretation(GDALColorTableShadow *self){
- return GDALGetPaletteInterpretation(self);
- }
-SWIGINTERN int GDALColorTableShadow_GetColorEntryCount(GDALColorTableShadow *self){
- return GDALGetColorEntryCount(self);
- }
-SWIGINTERN GDALColorEntry *GDALColorTableShadow_GetColorEntry(GDALColorTableShadow *self,int entry){
- return (GDALColorEntry*) GDALGetColorEntry(self, entry);
- }
-SWIGINTERN int GDALColorTableShadow_GetColorEntryAsRGB(GDALColorTableShadow *self,int entry,GDALColorEntry *centry){
- return GDALGetColorEntryAsRGB(self, entry, centry);
- }
-SWIGINTERN void GDALColorTableShadow_SetColorEntry(GDALColorTableShadow *self,int entry,GDALColorEntry const *centry){
- GDALSetColorEntry(self, entry, centry);
- }
-SWIGINTERN void GDALColorTableShadow_CreateColorRamp(GDALColorTableShadow *self,int nStartIndex,GDALColorEntry const *startcolor,int nEndIndex,GDALColorEntry const *endcolor){
- GDALCreateColorRamp(self, nStartIndex, startcolor, nEndIndex, endcolor);
- }
-SWIGINTERN GDALRasterAttributeTableShadow *new_GDALRasterAttributeTableShadow(){
- return (GDALRasterAttributeTableShadow*)
- GDALCreateRasterAttributeTable();
- }
-SWIGINTERN GDALRasterAttributeTableShadow *GDALRasterAttributeTableShadow_Clone(GDALRasterAttributeTableShadow *self){
- return (GDALRasterAttributeTableShadow*) GDALRATClone(self);
- }
-SWIGINTERN int GDALRasterAttributeTableShadow_GetColumnCount(GDALRasterAttributeTableShadow *self){
- return GDALRATGetColumnCount( self );
- }
-SWIGINTERN char const *GDALRasterAttributeTableShadow_GetNameOfCol(GDALRasterAttributeTableShadow *self,int iCol){
- return GDALRATGetNameOfCol( self, iCol );
- }
-SWIGINTERN GDALRATFieldUsage GDALRasterAttributeTableShadow_GetUsageOfCol(GDALRasterAttributeTableShadow *self,int iCol){
- return GDALRATGetUsageOfCol( self, iCol );
- }
-SWIGINTERN GDALRATFieldType GDALRasterAttributeTableShadow_GetTypeOfCol(GDALRasterAttributeTableShadow *self,int iCol){
- return GDALRATGetTypeOfCol( self, iCol );
- }
-SWIGINTERN int GDALRasterAttributeTableShadow_GetColOfUsage(GDALRasterAttributeTableShadow *self,GDALRATFieldUsage eUsage){
- return GDALRATGetColOfUsage( self, eUsage );
- }
-SWIGINTERN int GDALRasterAttributeTableShadow_GetRowCount(GDALRasterAttributeTableShadow *self){
- return GDALRATGetRowCount( self );
- }
-SWIGINTERN char const *GDALRasterAttributeTableShadow_GetValueAsString(GDALRasterAttributeTableShadow *self,int iRow,int iCol){
- return GDALRATGetValueAsString( self, iRow, iCol );
- }
-SWIGINTERN int GDALRasterAttributeTableShadow_GetValueAsInt(GDALRasterAttributeTableShadow *self,int iRow,int iCol){
- return GDALRATGetValueAsInt( self, iRow, iCol );
- }
-SWIGINTERN double GDALRasterAttributeTableShadow_GetValueAsDouble(GDALRasterAttributeTableShadow *self,int iRow,int iCol){
- return GDALRATGetValueAsDouble( self, iRow, iCol );
- }
-SWIGINTERN void GDALRasterAttributeTableShadow_SetValueAsString(GDALRasterAttributeTableShadow *self,int iRow,int iCol,char const *pszValue){
- GDALRATSetValueAsString( self, iRow, iCol, pszValue );
- }
-SWIGINTERN void GDALRasterAttributeTableShadow_SetValueAsInt(GDALRasterAttributeTableShadow *self,int iRow,int iCol,int nValue){
- GDALRATSetValueAsInt( self, iRow, iCol, nValue );
- }
-SWIGINTERN void GDALRasterAttributeTableShadow_SetValueAsDouble(GDALRasterAttributeTableShadow *self,int iRow,int iCol,double dfValue){
- GDALRATSetValueAsDouble( self, iRow, iCol, dfValue );
- }
-SWIGINTERN void GDALRasterAttributeTableShadow_SetRowCount(GDALRasterAttributeTableShadow *self,int nCount){
- GDALRATSetRowCount( self, nCount );
- }
-SWIGINTERN int GDALRasterAttributeTableShadow_CreateColumn(GDALRasterAttributeTableShadow *self,char const *pszName,GDALRATFieldType eType,GDALRATFieldUsage eUsage){
- return GDALRATCreateColumn( self, pszName, eType, eUsage );
- }
-SWIGINTERN bool GDALRasterAttributeTableShadow_GetLinearBinning(GDALRasterAttributeTableShadow *self,double *pdfRow0Min,double *pdfBinSize){
- return (GDALRATGetLinearBinning(self, pdfRow0Min, pdfBinSize) != 0) ? true : false;
- }
-SWIGINTERN int GDALRasterAttributeTableShadow_SetLinearBinning(GDALRasterAttributeTableShadow *self,double dfRow0Min,double dfBinSize){
- return GDALRATSetLinearBinning(self, dfRow0Min, dfBinSize);
- }
-SWIGINTERN int GDALRasterAttributeTableShadow_GetRowOfValue(GDALRasterAttributeTableShadow *self,double dfValue){
- return GDALRATGetRowOfValue( self, dfValue );
- }
-
-#include "gdalgrid.h"
-
-#ifdef DEBUG
-typedef struct OGRLayerHS OGRLayerShadow;
-typedef struct OGRGeometryHS OGRGeometryShadow;
-#else
-typedef void OGRLayerShadow;
-typedef void OGRGeometryShadow;
-#endif
-
-
-int GDALTermProgress_nocb( double dfProgress, const char * pszMessage=NULL, void *pData=NULL ) {
- return GDALTermProgress( dfProgress, pszMessage, pData);
-}
-
-
-int ComputeMedianCutPCT ( GDALRasterBandShadow *red,
- GDALRasterBandShadow *green,
- GDALRasterBandShadow *blue,
- int num_colors,
- GDALColorTableShadow* colors,
- GDALProgressFunc callback = NULL,
- void* callback_data=NULL) {
-
- CPLErrorReset();
-
- int err = GDALComputeMedianCutPCT( red,
- green,
- blue,
- NULL,
- num_colors,
- colors,
- callback,
- callback_data);
-
- return err;
-}
-
-
-int DitherRGB2PCT ( GDALRasterBandShadow *red,
- GDALRasterBandShadow *green,
- GDALRasterBandShadow *blue,
- GDALRasterBandShadow *target,
- GDALColorTableShadow *colors,
- GDALProgressFunc callback = NULL,
- void* callback_data=NULL) {
-
- CPLErrorReset();
- int err;
- err = GDALDitherRGB2PCT( red,
- green,
- blue,
- target,
- colors,
- callback,
- callback_data);
-
- return err;
-}
-
-
-CPLErr ReprojectImage ( GDALDatasetShadow *src_ds,
- GDALDatasetShadow *dst_ds,
- const char *src_wkt=NULL,
- const char *dst_wkt=NULL,
- GDALResampleAlg eResampleAlg=GRA_NearestNeighbour,
- double WarpMemoryLimit=0.0,
- double maxerror = 0.0,
- GDALProgressFunc callback = NULL,
- void* callback_data=NULL) {
-
- CPLErrorReset();
-
- CPLErr err = GDALReprojectImage( src_ds,
- src_wkt,
- dst_ds,
- dst_wkt,
- eResampleAlg,
- WarpMemoryLimit,
- maxerror,
- callback,
- callback_data,
- NULL);
-
- return err;
-}
-
-
-int ComputeProximity( GDALRasterBandShadow *srcBand,
- GDALRasterBandShadow *proximityBand,
- char **options = NULL,
- GDALProgressFunc callback=NULL,
- void* callback_data=NULL) {
-
- CPLErrorReset();
-
- return GDALComputeProximity( srcBand, proximityBand, options,
- callback, callback_data );
-}
-
-
-int RasterizeLayer( GDALDatasetShadow *dataset,
- int bands, int *band_list,
- OGRLayerShadow *layer,
- void *pfnTransformer = NULL,
- void *pTransformArg = NULL,
- int burn_values = 0, double *burn_values_list = NULL,
- char **options = NULL,
- GDALProgressFunc callback=NULL,
- void* callback_data=NULL) {
-
- CPLErr eErr;
-
- CPLErrorReset();
-
- if( burn_values == 0 )
- {
- burn_values_list = (double *) CPLMalloc(sizeof(double)*bands);
- for( int i = 0; i < bands; i++ )
- burn_values_list[i] = 255.0;
- }
- else if( burn_values != bands )
- {
- CPLError( CE_Failure, CPLE_AppDefined,
- "Did not get the expected number of burn values in RasterizeLayer()" );
- return CE_Failure;
- }
-
- eErr = GDALRasterizeLayers( dataset, bands, band_list,
- 1, &layer,
- (GDALTransformerFunc) pfnTransformer,
- pTransformArg,
- burn_values_list, options,
- callback, callback_data );
-
- if( burn_values == 0 )
- CPLFree( burn_values_list );
-
- return eErr;
-}
-
-
-int Polygonize( GDALRasterBandShadow *srcBand,
- GDALRasterBandShadow *maskBand,
- OGRLayerShadow *outLayer,
- int iPixValField,
- char **options = NULL,
- GDALProgressFunc callback=NULL,
- void* callback_data=NULL) {
-
- CPLErrorReset();
-
- return GDALPolygonize( srcBand, maskBand, outLayer, iPixValField,
- options, callback, callback_data );
-}
-
-
-int FillNodata( GDALRasterBandShadow *targetBand,
- GDALRasterBandShadow *maskBand,
- double maxSearchDist,
- int smoothingIterations,
- char **options = NULL,
- GDALProgressFunc callback=NULL,
- void* callback_data=NULL) {
-
- CPLErrorReset();
-
- return GDALFillNodata( targetBand, maskBand, maxSearchDist,
- 0, smoothingIterations, options,
- callback, callback_data );
-}
-
-
-int SieveFilter( GDALRasterBandShadow *srcBand,
- GDALRasterBandShadow *maskBand,
- GDALRasterBandShadow *dstBand,
- int threshold, int connectedness=4,
- char **options = NULL,
- GDALProgressFunc callback=NULL,
- void* callback_data=NULL) {
-
- CPLErrorReset();
-
- return GDALSieveFilter( srcBand, maskBand, dstBand,
- threshold, connectedness,
- options, callback, callback_data );
-}
-
-
-int RegenerateOverviews( GDALRasterBandShadow *srcBand,
- int overviewBandCount,
- GDALRasterBandShadow **overviewBands,
- const char *resampling = "average",
- GDALProgressFunc callback=NULL,
- void* callback_data=NULL) {
-
- CPLErrorReset();
-
- return GDALRegenerateOverviews( srcBand, overviewBandCount, overviewBands,
- resampling ? resampling : "average", callback, callback_data );
-}
-
-
-int RegenerateOverview( GDALRasterBandShadow *srcBand,
- GDALRasterBandShadow *overviewBand,
- const char *resampling = "average",
- GDALProgressFunc callback=NULL,
- void* callback_data=NULL) {
-
- CPLErrorReset();
-
- return GDALRegenerateOverviews( srcBand, 1, &overviewBand,
- resampling ? resampling : "average", callback, callback_data );
-}
-
-
-int ContourGenerate( GDALRasterBandShadow *srcBand,
- double contourInterval,
- double contourBase,
- int fixedLevelCount,
- double *fixedLevels,
- int useNoData,
- double noDataValue,
- OGRLayerShadow* dstLayer,
- int idField,
- int elevField,
- GDALProgressFunc callback = NULL,
- void* callback_data = NULL)
-{
- CPLErr eErr;
-
- CPLErrorReset();
-
- eErr = GDALContourGenerate( srcBand,
- contourInterval,
- contourBase,
- fixedLevelCount,
- fixedLevels,
- useNoData,
- noDataValue,
- dstLayer,
- idField,
- elevField,
- callback,
- callback_data);
-
- return eErr;
-}
-
-
-GDALDatasetShadow *AutoCreateWarpedVRT( GDALDatasetShadow *src_ds,
- const char *src_wkt = 0,
- const char *dst_wkt = 0,
- GDALResampleAlg eResampleAlg = GRA_NearestNeighbour,
- double maxerror = 0.0 ) {
- GDALDatasetShadow *ds = GDALAutoCreateWarpedVRT( src_ds, src_wkt,
- dst_wkt,
- eResampleAlg,
- maxerror,
- 0 );
- if (ds == 0) {
- /*throw CPLGetLastErrorMsg(); causes a SWIG_exception later*/
- }
- return ds;
-
-}
-
-SWIGINTERN GDALTransformerInfoShadow *new_GDALTransformerInfoShadow(GDALDatasetShadow *src,GDALDatasetShadow *dst,char **options){
- GDALTransformerInfoShadow *obj = (GDALTransformerInfoShadow*)
- GDALCreateGenImgProjTransformer2( (GDALDatasetH)src, (GDALDatasetH)dst,
- options );
- return obj;
- }
-SWIGINTERN int GDALTransformerInfoShadow_TransformPoint__SWIG_0(GDALTransformerInfoShadow *self,int bDstToSrc,double inout[3]){
- int nRet, nSuccess = TRUE;
-
- nRet = GDALUseTransformer( self, bDstToSrc,
- 1, &inout[0], &inout[1], &inout[2],
- &nSuccess );
-
- return nRet && nSuccess;
- }
-SWIGINTERN int GDALTransformerInfoShadow_TransformPoint__SWIG_1(GDALTransformerInfoShadow *self,double argout[3],int bDstToSrc,double x,double y,double z=0.0){
- int nRet, nSuccess = TRUE;
-
- argout[0] = x;
- argout[1] = y;
- argout[2] = z;
- nRet = GDALUseTransformer( self, bDstToSrc,
- 1, &argout[0], &argout[1], &argout[2],
- &nSuccess );
-
- return nRet && nSuccess;
- }
-SWIGINTERN int GDALTransformerInfoShadow_TransformPoints(GDALTransformerInfoShadow *self,int bDstToSrc,int nCount,double *x,double *y,double *z,int *panSuccess){
- int nRet;
-
- nRet = GDALUseTransformer( self, bDstToSrc, nCount, x, y, z, panSuccess );
-
- return nRet;
- }
-
-int wrapper_GDALGetCacheMax()
-{
- return GDALGetCacheMax();
-}
-
-
-int wrapper_GDALGetCacheUsed()
-{
- return GDALGetCacheUsed();
-}
-
-
-void wrapper_GDALSetCacheMax(int nBytes)
-{
- return GDALSetCacheMax(nBytes);
-}
-
-
-int GetDriverCount() {
- return GDALGetDriverCount();
-}
-
-
-GDALDriverShadow* GetDriverByName( char const *name ) {
- return (GDALDriverShadow*) GDALGetDriverByName( name );
-}
-
-
-GDALDriverShadow* GetDriver( int i ) {
- return (GDALDriverShadow*) GDALGetDriver( i );
-}
-
-
-GDALDatasetShadow* Open( char const* utf8_path, GDALAccess eAccess = GA_ReadOnly ) {
- CPLErrorReset();
- GDALDatasetShadow *ds = GDALOpen( utf8_path, eAccess );
- if( ds != NULL && CPLGetLastErrorType() == CE_Failure )
- {
- if ( GDALDereferenceDataset( ds ) <= 0 )
- GDALClose(ds);
- ds = NULL;
- }
- return (GDALDatasetShadow*) ds;
-}
-
-
-GDALDatasetShadow* OpenShared( char const* utf8_path, GDALAccess eAccess = GA_ReadOnly ) {
- CPLErrorReset();
- GDALDatasetShadow *ds = GDALOpenShared( utf8_path, eAccess );
- if( ds != NULL && CPLGetLastErrorType() == CE_Failure )
- {
- if ( GDALDereferenceDataset( ds ) <= 0 )
- GDALClose(ds);
- ds = NULL;
- }
- return (GDALDatasetShadow*) ds;
-}
-
-
-GDALDriverShadow *IdentifyDriver( const char *utf8_path,
- char **papszSiblings = NULL ) {
- return (GDALDriverShadow *) GDALIdentifyDriver( utf8_path,
- papszSiblings );
-}
-
-
- char **GeneralCmdLineProcessor( char **papszArgv, int nOptions = 0 ) {
- int nResArgCount;
-
- nResArgCount =
- GDALGeneralCmdLineProcessor( CSLCount(papszArgv), &papszArgv, nOptions );
-
- if( nResArgCount <= 0 )
- return NULL;
- else
- return papszArgv;
- }
-
-SWIGINTERN VALUE
-_wrap_use_exceptions(int argc, VALUE *argv, VALUE self) {
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- UseExceptions();
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_dont_use_exceptions(int argc, VALUE *argv, VALUE self) {
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- DontUseExceptions();
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_debug(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- char *arg2 = (char *) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","Debug", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","Debug", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- CPLErrorReset();
- Debug((char const *)arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_push_error_handler__SWIG_0(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) NULL ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- if (argc > 0) {
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","PushErrorHandler", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- }
- {
- CPLErrorReset();
- result = (CPLErr)PushErrorHandler((char const *)arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_error(int argc, VALUE *argv, VALUE self) {
- CPLErr arg1 = (CPLErr) CE_Failure ;
- int arg2 = (int) 0 ;
- char *arg3 = (char *) "error" ;
- int val2 ;
- int ecode2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
-
- if ((argc < 0) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- if (argc > 0) {
- {
- /* %typemap(in) CPLErr */
- arg1 = (CPLErr) NUM2INT(argv[0]);
- }
- }
- if (argc > 1) {
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","Error", 2, argv[1] ));
- }
- arg2 = static_cast< int >(val2);
- }
- if (argc > 2) {
- res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","Error", 3, argv[2] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- }
- {
- CPLErrorReset();
- Error(arg1,arg2,(char const *)arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return Qnil;
-fail:
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_push_error_handler__SWIG_1(int argc, VALUE *argv, VALUE self) {
- CPLErrorHandler arg1 ;
- void *argp1 ;
- int res1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_CPLErrorHandler, 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CPLErrorHandler","CPLPushErrorHandler", 1, argv[0] ));
- }
- if (!argp1) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "CPLErrorHandler","CPLPushErrorHandler", 1, argv[0]));
- } else {
- arg1 = *(reinterpret_cast< CPLErrorHandler * >(argp1));
- }
- }
- {
- CPLErrorReset();
- CPLPushErrorHandler(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE _wrap_push_error_handler(int nargs, VALUE *args, VALUE self) {
- int argc;
- VALUE argv[1];
- int ii;
-
- argc = nargs;
- if (argc > 1) SWIG_fail;
- for (ii = 0; (ii < argc); ++ii) {
- argv[ii] = args[ii];
- }
- if ((argc >= 0) && (argc <= 1)) {
- int _v;
- if (argc <= 0) {
- return _wrap_push_error_handler__SWIG_0(nargs, args, self);
- }
- int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- return _wrap_push_error_handler__SWIG_0(nargs, args, self);
- }
- }
- if (argc == 1) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CPLErrorHandler, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- return _wrap_push_error_handler__SWIG_1(nargs, args, self);
- }
- }
-
-fail:
- Ruby_Format_OverloadedError( argc, 1, "push_error_handler",
- " void push_error_handler(char const *pszCallbackName)\n"
- " void push_error_handler(CPLErrorHandler)\n");
-
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pop_error_handler(int argc, VALUE *argv, VALUE self) {
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- CPLPopErrorHandler();
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_error_reset(int argc, VALUE *argv, VALUE self) {
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- CPLErrorReset();
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_escape_string(int argc, VALUE *argv, VALUE self) {
- int arg1 ;
- char *arg2 = (char *) 0 ;
- int arg3 = (int) CPLES_SQL ;
- int res1 ;
- char *buf1 = 0 ;
- size_t size1 = 0 ;
- int alloc1 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- char *kwnames[] = {
- "len","scheme", NULL
- };
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, &size1, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int","EscapeString", 1, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf1) ;
- arg1 = static_cast< int >(size1 - 1) ;
- if (argc > 1) {
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","EscapeString", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- }
- {
- CPLErrorReset();
- result = (char *)EscapeString(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_get_last_error_no(int argc, VALUE *argv, VALUE self) {
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- result = (int)CPLGetLastErrorNo();
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_get_last_error_type(int argc, VALUE *argv, VALUE self) {
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- result = (CPLErr)CPLGetLastErrorType();
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_get_last_error_msg(int argc, VALUE *argv, VALUE self) {
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- result = (char *)CPLGetLastErrorMsg();
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_push_finder_location(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","CPLPushFinderLocation", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- {
- CPLErrorReset();
- CPLPushFinderLocation((char const *)arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pop_finder_location(int argc, VALUE *argv, VALUE self) {
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- CPLPopFinderLocation();
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_finder_clean(int argc, VALUE *argv, VALUE self) {
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- CPLFinderClean();
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_find_file(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- char *arg2 = (char *) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","CPLFindFile", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","CPLFindFile", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- CPLErrorReset();
- result = (char *)CPLFindFile((char const *)arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_read_dir(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- char **result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","VSIReadDir", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- {
- CPLErrorReset();
- result = (char **)VSIReadDir((char const *)arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_char, 0 | 0 );
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_set_config_option(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- char *arg2 = (char *) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","CPLSetConfigOption", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","CPLSetConfigOption", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- CPLSetConfigOption((char const *)arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_get_config_option(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- char *arg2 = (char *) NULL ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","wrapper_CPLGetConfigOption", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- if (argc > 1) {
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","wrapper_CPLGetConfigOption", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- }
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (char *)wrapper_CPLGetConfigOption((char const *)arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_binary_to_hex(int argc, VALUE *argv, VALUE self) {
- int arg1 ;
- GByte *arg2 = (GByte *) 0 ;
- int res1 ;
- GByte *buf1 = 0 ;
- size_t size1 = 0 ;
- int alloc1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- /*%typemap(in,numinputs=1,fragment="SWIG_AsCharPtrAndSize") (int nBytes, const GByte *pabyData) */
-
- res1 = SWIG_AsCharPtrAndSize(argv[0], (char**)&buf1, &size1, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "(GByte*, int)","CPLBinaryToHex", 1, argv[0] ));
- }
- arg1 = (int) size1 - 1;
- arg2 = (GByte *) buf1;
- }
- {
- CPLErrorReset();
- result = (char *)CPLBinaryToHex(arg1,(GByte const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- {
- /* %typemap(freearg) (int nBytes, const GByte *pabyData) */
- CPLFree(result);
- }
- return vresult;
-fail:
- {
- /* %typemap(freearg) (int nBytes, const GByte *pabyData) */
- CPLFree(result);
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_hex_to_binary(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- int *arg2 = (int *) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int size1 = 0 ;
- int alloc1 = 0 ;
- GByte *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- /*% typemap(in,numinputs=1,fragment="SWIG_AsCharPtrAndSize") (const char *pszHex, int *pnBytes) */
- arg2 = &size1;
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","CPLHexToBinary", 1, argv[0] ));
- }
- arg1 = buf1;
- }
- {
- CPLErrorReset();
- result = (GByte *)CPLHexToBinary((char const *)arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) GByte* */
-
- /* Stops insertion of default type map. */
- }
- {
- /* %typemap(argout) (const char *pszHex, int *pnBytes) */
- vresult = SWIG_FromCharPtrAndSize((char*)result, (size_t)*arg2);
- CPLFree(result);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-swig_class SwigClassMajorObject;
-
-SWIGINTERN VALUE
-_wrap_MajorObject_get_description(int argc, VALUE *argv, VALUE self) {
- GDALMajorObjectShadow *arg1 = (GDALMajorObjectShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALMajorObjectShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALMajorObjectShadow *","GetDescription", 1, self ));
- }
- arg1 = reinterpret_cast< GDALMajorObjectShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)GDALMajorObjectShadow_GetDescription(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_MajorObject_set_description(int argc, VALUE *argv, VALUE self) {
- GDALMajorObjectShadow *arg1 = (GDALMajorObjectShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALMajorObjectShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALMajorObjectShadow *","SetDescription", 1, self ));
- }
- arg1 = reinterpret_cast< GDALMajorObjectShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetDescription", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- CPLErrorReset();
- GDALMajorObjectShadow_SetDescription(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_MajorObject_get_metadata_dict(int argc, VALUE *argv, VALUE self) {
- GDALMajorObjectShadow *arg1 = (GDALMajorObjectShadow *) 0 ;
- char *arg2 = (char *) "" ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- char **result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALMajorObjectShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALMajorObjectShadow *","GetMetadata_Dict", 1, self ));
- }
- arg1 = reinterpret_cast< GDALMajorObjectShadow * >(argp1);
- if (argc > 0) {
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GetMetadata_Dict", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- }
- {
- CPLErrorReset();
- result = (char **)GDALMajorObjectShadow_GetMetadata_Dict(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) char **dict */
-
- /* Get a pointer to the c array */
- char **stringarray = result;
-
- /* Create a new hash table, this will be returned to Ruby. */
- vresult = rb_hash_new();
- if ( stringarray != NULL ) {
- while (*stringarray != NULL ) {
- /* Get the key and value */
- char const *valptr;
- char *keyptr;
- valptr = CPLParseNameValue( *stringarray, &keyptr );
-
- if ( valptr != 0 ) {
- /* Convert the key and value to Ruby strings */
- VALUE nm = rb_str_new2( keyptr );
- VALUE val = rb_str_new2( valptr );
- /* Save the key, value pair to the hash table. */
- rb_hash_aset(vresult, nm, val);
- CPLFree( keyptr );
- }
- stringarray++;
- }
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_MajorObject_get_metadata_list(int argc, VALUE *argv, VALUE self) {
- GDALMajorObjectShadow *arg1 = (GDALMajorObjectShadow *) 0 ;
- char *arg2 = (char *) "" ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- char **result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALMajorObjectShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALMajorObjectShadow *","GetMetadata_List", 1, self ));
- }
- arg1 = reinterpret_cast< GDALMajorObjectShadow * >(argp1);
- if (argc > 0) {
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GetMetadata_List", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- }
- {
- CPLErrorReset();
- result = (char **)GDALMajorObjectShadow_GetMetadata_List(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) char **options */
-
- char **stringarray = result;
- if ( stringarray == NULL ) {
- vresult = Qnil;
- }
- else {
- int len = CSLCount( stringarray );
- vresult = rb_ary_new2( len );
- for ( int i = 0; i < len; ++i, ++stringarray ) {
- VALUE nm = rb_str_new2( *stringarray );
- rb_ary_push(vresult, nm);
- }
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_MajorObject_set_metadata__SWIG_0(int argc, VALUE *argv, VALUE self) {
- GDALMajorObjectShadow *arg1 = (GDALMajorObjectShadow *) 0 ;
- char **arg2 = (char **) 0 ;
- char *arg3 = (char *) "" ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALMajorObjectShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALMajorObjectShadow *","SetMetadata", 1, self ));
- }
- arg1 = reinterpret_cast< GDALMajorObjectShadow * >(argp1);
- {
- /* %typemap(in) char **dict */
-
- arg2 = NULL;
-
- /* is the provided object an array or a hash? */
- if ( TYPE(argv[0]) == T_ARRAY) {
- /* get the size of the array */
- int size = RARRAY(argv[0])->len;
-
- for (int i = 0; i < size; i++) {
- /* get the ruby object */
- VALUE value = rb_ary_entry(argv[0], i);
-
- /* Convert the value to a string via ruby duck typing
- * (i.e., the object might not actually be a string)
- */
- char *pszItem = StringValuePtr(value);
- arg2 = CSLAddString( arg2, pszItem );
- }
- }
-
- else if ( TYPE(argv[0]) == T_HASH) {
- /* This is a hash - get the size by calling via the ruby method */
- int size = NUM2INT(rb_funcall(argv[0], rb_intern("size"), 0, NULL));
-
- if ( size > 0 ) {
- /* Get the keys by caling via ruby */
- VALUE keys_arr = rb_funcall(argv[0], rb_intern("keys"), 0, NULL);
-
- for( int i=0; i<size; i++ ) {
- /* Get the key and value as ruby objects */
- VALUE key = rb_ary_entry(keys_arr, i);
- VALUE value = rb_hash_aref(argv[0], key);
-
- /* Convert the key and value to strings via ruby duck typing
- * (i.e., the objects might not actually be strings)
- */
- char *nm = StringValuePtr(key);
- char *val = StringValuePtr(value);
-
- /* Add the value */
- arg2 = CSLAddNameValue( arg2, nm, val );
- }
- }
- }
- else {
- rb_raise(rb_eTypeError, "Argument must be dictionary or sequence of strings");
- }
- }
- if (argc > 1) {
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","SetMetadata", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALMajorObjectShadow_SetMetadata__SWIG_0(arg1,arg2,(char const *)arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- {
- /* %typemap(freearg) char **dict */
- CSLDestroy( arg2 );
- }
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return vresult;
-fail:
- {
- /* %typemap(freearg) char **dict */
- CSLDestroy( arg2 );
- }
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_MajorObject_set_metadata__SWIG_1(int argc, VALUE *argv, VALUE self) {
- GDALMajorObjectShadow *arg1 = (GDALMajorObjectShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) "" ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALMajorObjectShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALMajorObjectShadow *","SetMetadata", 1, self ));
- }
- arg1 = reinterpret_cast< GDALMajorObjectShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","SetMetadata", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- if (argc > 1) {
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","SetMetadata", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALMajorObjectShadow_SetMetadata__SWIG_1(arg1,arg2,(char const *)arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE _wrap_MajorObject_set_metadata(int nargs, VALUE *args, VALUE self) {
- int argc;
- VALUE argv[4];
- int ii;
-
- argc = nargs + 1;
- argv[0] = self;
- if (argc > 4) SWIG_fail;
- for (ii = 1; (ii < argc); ++ii) {
- argv[ii] = args[ii-1];
- }
- if ((argc >= 2) && (argc <= 3)) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDALMajorObjectShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- /* %typemap(typecheck,precedence=SWIG_TYPECHECK_POINTER) (char **dict) */
- _v = ((TYPE(argv[1]) == T_HASH) || (TYPE(argv[1]) == T_ARRAY)) ? 1 : 0;
- }
- if (_v) {
- if (argc <= 2) {
- return _wrap_MajorObject_set_metadata__SWIG_0(nargs, args, self);
- }
- int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- return _wrap_MajorObject_set_metadata__SWIG_0(nargs, args, self);
- }
- }
- }
- }
- if ((argc >= 2) && (argc <= 3)) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDALMajorObjectShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- if (argc <= 2) {
- return _wrap_MajorObject_set_metadata__SWIG_1(nargs, args, self);
- }
- int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- return _wrap_MajorObject_set_metadata__SWIG_1(nargs, args, self);
- }
- }
- }
- }
-
-fail:
- Ruby_Format_OverloadedError( argc, 4, "set_metadata",
- " CPLErr set_metadata(char **papszMetadata, char const *pszDomain)\n"
- " CPLErr set_metadata(char *pszMetadataString, char const *pszDomain)\n");
-
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_MajorObject_get_metadata_item(int argc, VALUE *argv, VALUE self) {
- GDALMajorObjectShadow *arg1 = (GDALMajorObjectShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) "" ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALMajorObjectShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALMajorObjectShadow *","GetMetadataItem", 1, self ));
- }
- arg1 = reinterpret_cast< GDALMajorObjectShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GetMetadataItem", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- if (argc > 1) {
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","GetMetadataItem", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (char *)GDALMajorObjectShadow_GetMetadataItem(arg1,(char const *)arg2,(char const *)arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_MajorObject_set_metadata_item(int argc, VALUE *argv, VALUE self) {
- GDALMajorObjectShadow *arg1 = (GDALMajorObjectShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- char *arg4 = (char *) "" ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- int res4 ;
- char *buf4 = 0 ;
- int alloc4 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALMajorObjectShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALMajorObjectShadow *","SetMetadataItem", 1, self ));
- }
- arg1 = reinterpret_cast< GDALMajorObjectShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetMetadataItem", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","SetMetadataItem", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- if (argc > 2) {
- res4 = SWIG_AsCharPtrAndSize(argv[2], &buf4, NULL, &alloc4);
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","SetMetadataItem", 4, argv[2] ));
- }
- arg4 = reinterpret_cast< char * >(buf4);
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALMajorObjectShadow_SetMetadataItem(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- return Qnil;
-}
-
-
-swig_class SwigClassDriver;
-
-SWIGINTERN VALUE
-_wrap_Driver_ShortName_get(int argc, VALUE *argv, VALUE self) {
- GDALDriverShadow *arg1 = (GDALDriverShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDriverShadow *","ShortName", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDriverShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)GDALDriverShadow_ShortName_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Driver_LongName_get(int argc, VALUE *argv, VALUE self) {
- GDALDriverShadow *arg1 = (GDALDriverShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDriverShadow *","LongName", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDriverShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)GDALDriverShadow_LongName_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Driver_HelpTopic_get(int argc, VALUE *argv, VALUE self) {
- GDALDriverShadow *arg1 = (GDALDriverShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDriverShadow *","HelpTopic", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDriverShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)GDALDriverShadow_HelpTopic_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Driver_create(int argc, VALUE *argv, VALUE self) {
- GDALDriverShadow *arg1 = (GDALDriverShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- int arg3 ;
- int arg4 ;
- int arg5 = (int) 1 ;
- GDALDataType arg6 = (GDALDataType) GDT_Byte ;
- char **arg7 = (char **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- int val5 ;
- int ecode5 = 0 ;
- char *kwnames[] = {
- "self","utf8_path","xsize","ysize","bands","eType","options", NULL
- };
- GDALDatasetShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 6)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDriverShadow *","Create", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDriverShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","Create", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","Create", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- ecode4 = SWIG_AsVal_int(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","Create", 4, argv[2] ));
- }
- arg4 = static_cast< int >(val4);
- if (argc > 3) {
- ecode5 = SWIG_AsVal_int(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","Create", 5, argv[3] ));
- }
- arg5 = static_cast< int >(val5);
- }
- if (argc > 4) {
- {
- /* %typemap(in) CPLErr */
- arg6 = (GDALDataType) NUM2INT(argv[4]);
- }
- }
- if (argc > 5) {
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[5], T_ARRAY);
-
- int size = RARRAY(argv[5])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[5], i);
- char *pszItem = StringValuePtr(item);
- arg7 = CSLAddString( arg7, pszItem );
- }
- }
- }
- {
- CPLErrorReset();
- result = (GDALDatasetShadow *)GDALDriverShadow_Create(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALDatasetShadow, SWIG_POINTER_OWN | 0 );
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg7 );
- }
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg7 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Driver_create_copy(int argc, VALUE *argv, VALUE self) {
- GDALDriverShadow *arg1 = (GDALDriverShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- GDALDatasetShadow *arg3 = (GDALDatasetShadow *) 0 ;
- int arg4 = (int) 1 ;
- char **arg5 = (char **) 0 ;
- GDALProgressFunc arg6 = (GDALProgressFunc) NULL ;
- void *arg7 = (void *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- void *argp6 ;
- int res6 = 0 ;
- int res7 ;
- char *kwnames[] = {
- "self","utf8_path","src","strict","options","callback","callback_data", NULL
- };
- GDALDatasetShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 6)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDriverShadow *","CreateCopy", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDriverShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","CreateCopy", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "GDALDatasetShadow *","CreateCopy", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< GDALDatasetShadow * >(argp3);
- if (argc > 2) {
- ecode4 = SWIG_AsVal_int(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","CreateCopy", 4, argv[2] ));
- }
- arg4 = static_cast< int >(val4);
- }
- if (argc > 3) {
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[3], T_ARRAY);
-
- int size = RARRAY(argv[3])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[3], i);
- char *pszItem = StringValuePtr(item);
- arg5 = CSLAddString( arg5, pszItem );
- }
- }
- }
- if (argc > 4) {
- {
- res6 = SWIG_ConvertPtr(argv[4], &argp6, SWIGTYPE_p_GDALProgressFunc, 0 );
- if (!SWIG_IsOK(res6)) {
- SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "GDALProgressFunc","CreateCopy", 6, argv[4] ));
- }
- if (!argp6) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GDALProgressFunc","CreateCopy", 6, argv[4]));
- } else {
- arg6 = *(reinterpret_cast< GDALProgressFunc * >(argp6));
- }
- }
- }
- if (argc > 5) {
- res7 = SWIG_ConvertPtr(argv[5],SWIG_as_voidptrptr(&arg7), 0, 0);
- if (!SWIG_IsOK(res7)) {
- SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "void *","CreateCopy", 7, argv[5] ));
- }
- }
- {
- if (!arg3) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (GDALDatasetShadow *)GDALDriverShadow_CreateCopy(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALDatasetShadow, SWIG_POINTER_OWN | 0 );
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg5 );
- }
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg5 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Driver_delete(int argc, VALUE *argv, VALUE self) {
- GDALDriverShadow *arg1 = (GDALDriverShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDriverShadow *","Delete", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDriverShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","Delete", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- CPLErrorReset();
- result = (int)GDALDriverShadow_Delete(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Driver_rename(int argc, VALUE *argv, VALUE self) {
- GDALDriverShadow *arg1 = (GDALDriverShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDriverShadow *","Rename", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDriverShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","Rename", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","Rename", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- if (!arg3) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (int)GDALDriverShadow_Rename(arg1,(char const *)arg2,(char const *)arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Driver_register(int argc, VALUE *argv, VALUE self) {
- GDALDriverShadow *arg1 = (GDALDriverShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDriverShadow *","Register", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDriverShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)GDALDriverShadow_Register(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Driver_deregister(int argc, VALUE *argv, VALUE self) {
- GDALDriverShadow *arg1 = (GDALDriverShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDriverShadow *","Deregister", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDriverShadow * >(argp1);
- {
- CPLErrorReset();
- GDALDriverShadow_Deregister(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-swig_class SwigClassColorEntry;
-
-SWIGINTERN VALUE
-_wrap_ColorEntry_c1_set(int argc, VALUE *argv, VALUE self) {
- GDALColorEntry *arg1 = (GDALColorEntry *) 0 ;
- short arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- short val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALColorEntry, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALColorEntry *","c1", 1, self ));
- }
- arg1 = reinterpret_cast< GDALColorEntry * >(argp1);
- ecode2 = SWIG_AsVal_short(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","c1", 2, argv[0] ));
- }
- arg2 = static_cast< short >(val2);
- if (arg1) (arg1)->c1 = arg2;
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_ColorEntry_c1_get(int argc, VALUE *argv, VALUE self) {
- GDALColorEntry *arg1 = (GDALColorEntry *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- short result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALColorEntry, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALColorEntry *","c1", 1, self ));
- }
- arg1 = reinterpret_cast< GDALColorEntry * >(argp1);
- result = (short) ((arg1)->c1);
- vresult = SWIG_From_short(static_cast< short >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_ColorEntry_c2_set(int argc, VALUE *argv, VALUE self) {
- GDALColorEntry *arg1 = (GDALColorEntry *) 0 ;
- short arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- short val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALColorEntry, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALColorEntry *","c2", 1, self ));
- }
- arg1 = reinterpret_cast< GDALColorEntry * >(argp1);
- ecode2 = SWIG_AsVal_short(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","c2", 2, argv[0] ));
- }
- arg2 = static_cast< short >(val2);
- if (arg1) (arg1)->c2 = arg2;
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_ColorEntry_c2_get(int argc, VALUE *argv, VALUE self) {
- GDALColorEntry *arg1 = (GDALColorEntry *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- short result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALColorEntry, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALColorEntry *","c2", 1, self ));
- }
- arg1 = reinterpret_cast< GDALColorEntry * >(argp1);
- result = (short) ((arg1)->c2);
- vresult = SWIG_From_short(static_cast< short >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_ColorEntry_c3_set(int argc, VALUE *argv, VALUE self) {
- GDALColorEntry *arg1 = (GDALColorEntry *) 0 ;
- short arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- short val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALColorEntry, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALColorEntry *","c3", 1, self ));
- }
- arg1 = reinterpret_cast< GDALColorEntry * >(argp1);
- ecode2 = SWIG_AsVal_short(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","c3", 2, argv[0] ));
- }
- arg2 = static_cast< short >(val2);
- if (arg1) (arg1)->c3 = arg2;
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_ColorEntry_c3_get(int argc, VALUE *argv, VALUE self) {
- GDALColorEntry *arg1 = (GDALColorEntry *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- short result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALColorEntry, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALColorEntry *","c3", 1, self ));
- }
- arg1 = reinterpret_cast< GDALColorEntry * >(argp1);
- result = (short) ((arg1)->c3);
- vresult = SWIG_From_short(static_cast< short >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_ColorEntry_c4_set(int argc, VALUE *argv, VALUE self) {
- GDALColorEntry *arg1 = (GDALColorEntry *) 0 ;
- short arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- short val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALColorEntry, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALColorEntry *","c4", 1, self ));
- }
- arg1 = reinterpret_cast< GDALColorEntry * >(argp1);
- ecode2 = SWIG_AsVal_short(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","c4", 2, argv[0] ));
- }
- arg2 = static_cast< short >(val2);
- if (arg1) (arg1)->c4 = arg2;
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_ColorEntry_c4_get(int argc, VALUE *argv, VALUE self) {
- GDALColorEntry *arg1 = (GDALColorEntry *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- short result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALColorEntry, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALColorEntry *","c4", 1, self ));
- }
- arg1 = reinterpret_cast< GDALColorEntry * >(argp1);
- result = (short) ((arg1)->c4);
- vresult = SWIG_From_short(static_cast< short >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
-SWIGINTERN VALUE
-_wrap_ColorEntry_allocate(VALUE self) {
-#else
- SWIGINTERN VALUE
- _wrap_ColorEntry_allocate(int argc, VALUE *argv, VALUE self) {
-#endif
-
-
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_GDALColorEntry);
-#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
- rb_obj_call_init(vresult, argc, argv);
-#endif
- return vresult;
- }
-
-
-SWIGINTERN VALUE
-_wrap_new_ColorEntry(int argc, VALUE *argv, VALUE self) {
- GDALColorEntry *result = 0 ;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- result = (GDALColorEntry *)new GDALColorEntry();
- DATA_PTR(self) = result;
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return self;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN void
-free_GDALColorEntry(GDALColorEntry *arg1) {
- delete arg1;
-}
-
-swig_class SwigClassGCP;
-
-SWIGINTERN VALUE
-_wrap_GCP_GCPX_set(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GCPX", 1, self ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GCPX", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- {
- CPLErrorReset();
- GDAL_GCP_GCPX_set(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_GCP_GCPX_get(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GCPX", 1, self ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- CPLErrorReset();
- result = (double)GDAL_GCP_GCPX_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_GCP_GCPY_set(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GCPY", 1, self ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GCPY", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- {
- CPLErrorReset();
- GDAL_GCP_GCPY_set(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_GCP_GCPY_get(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GCPY", 1, self ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- CPLErrorReset();
- result = (double)GDAL_GCP_GCPY_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_GCP_GCPZ_set(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GCPZ", 1, self ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GCPZ", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- {
- CPLErrorReset();
- GDAL_GCP_GCPZ_set(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_GCP_GCPZ_get(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GCPZ", 1, self ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- CPLErrorReset();
- result = (double)GDAL_GCP_GCPZ_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_GCP_GCPPixel_set(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GCPPixel", 1, self ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GCPPixel", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- {
- CPLErrorReset();
- GDAL_GCP_GCPPixel_set(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_GCP_GCPPixel_get(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GCPPixel", 1, self ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- CPLErrorReset();
- result = (double)GDAL_GCP_GCPPixel_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_GCP_GCPLine_set(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GCPLine", 1, self ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GCPLine", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- {
- CPLErrorReset();
- GDAL_GCP_GCPLine_set(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_GCP_GCPLine_get(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GCPLine", 1, self ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- CPLErrorReset();
- result = (double)GDAL_GCP_GCPLine_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_GCP_Info_set(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","Info", 1, self ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","Info", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- CPLErrorReset();
-
- /* char* Info memberin typemap */
- GDAL_GCP_Info_set(arg1,arg2);
-
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_GCP_Info_get(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","Info", 1, self ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- CPLErrorReset();
- result = (char *)GDAL_GCP_Info_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_GCP_Id_set(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","Id", 1, self ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","Id", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- CPLErrorReset();
-
- /* char* Info memberin typemap */
- GDAL_GCP_Id_set(arg1,arg2);
-
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_GCP_Id_get(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","Id", 1, self ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- CPLErrorReset();
- result = (char *)GDAL_GCP_Id_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
-SWIGINTERN VALUE
-_wrap_GCP_allocate(VALUE self) {
-#else
- SWIGINTERN VALUE
- _wrap_GCP_allocate(int argc, VALUE *argv, VALUE self) {
-#endif
-
-
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_GDAL_GCP);
-#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
- rb_obj_call_init(vresult, argc, argv);
-#endif
- return vresult;
- }
-
-
-SWIGINTERN VALUE
-_wrap_new_GCP(int argc, VALUE *argv, VALUE self) {
- double arg1 = (double) 0.0 ;
- double arg2 = (double) 0.0 ;
- double arg3 = (double) 0.0 ;
- double arg4 = (double) 0.0 ;
- double arg5 = (double) 0.0 ;
- char *arg6 = (char *) "" ;
- char *arg7 = (char *) "" ;
- double val1 ;
- int ecode1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- int res6 ;
- char *buf6 = 0 ;
- int alloc6 = 0 ;
- int res7 ;
- char *buf7 = 0 ;
- int alloc7 = 0 ;
- GDAL_GCP *result = 0 ;
-
- if ((argc < 0) || (argc > 7)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- if (argc > 0) {
- ecode1 = SWIG_AsVal_double(argv[0], &val1);
- if (!SWIG_IsOK(ecode1)) {
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","GDAL_GCP", 1, argv[0] ));
- }
- arg1 = static_cast< double >(val1);
- }
- if (argc > 1) {
- ecode2 = SWIG_AsVal_double(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GDAL_GCP", 2, argv[1] ));
- }
- arg2 = static_cast< double >(val2);
- }
- if (argc > 2) {
- ecode3 = SWIG_AsVal_double(argv[2], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","GDAL_GCP", 3, argv[2] ));
- }
- arg3 = static_cast< double >(val3);
- }
- if (argc > 3) {
- ecode4 = SWIG_AsVal_double(argv[3], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","GDAL_GCP", 4, argv[3] ));
- }
- arg4 = static_cast< double >(val4);
- }
- if (argc > 4) {
- ecode5 = SWIG_AsVal_double(argv[4], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","GDAL_GCP", 5, argv[4] ));
- }
- arg5 = static_cast< double >(val5);
- }
- if (argc > 5) {
- res6 = SWIG_AsCharPtrAndSize(argv[5], &buf6, NULL, &alloc6);
- if (!SWIG_IsOK(res6)) {
- SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "char const *","GDAL_GCP", 6, argv[5] ));
- }
- arg6 = reinterpret_cast< char * >(buf6);
- }
- if (argc > 6) {
- res7 = SWIG_AsCharPtrAndSize(argv[6], &buf7, NULL, &alloc7);
- if (!SWIG_IsOK(res7)) {
- SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "char const *","GDAL_GCP", 7, argv[6] ));
- }
- arg7 = reinterpret_cast< char * >(buf7);
- }
- {
- CPLErrorReset();
- result = (GDAL_GCP *)new_GDAL_GCP(arg1,arg2,arg3,arg4,arg5,(char const *)arg6,(char const *)arg7);
- DATA_PTR(self) = result;
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
- if (alloc7 == SWIG_NEWOBJ) delete[] buf7;
- return self;
-fail:
- if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
- if (alloc7 == SWIG_NEWOBJ) delete[] buf7;
- return Qnil;
-}
-
-
-SWIGINTERN void delete_GDAL_GCP(GDAL_GCP *self){
- if ( self->pszInfo )
- CPLFree( self->pszInfo );
- if ( self->pszId )
- CPLFree( self->pszId );
- CPLFree( self );
- }
-SWIGINTERN void
-free_GDAL_GCP(GDAL_GCP *arg1) {
- delete_GDAL_GCP(arg1);
-}
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_gcpx_get(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_GCPX_get", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (double)GDAL_GCP_GCPX_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_gcpx_set(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_GCPX_set", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GDAL_GCP_GCPX_set", 2, argv[1] ));
- }
- arg2 = static_cast< double >(val2);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- GDAL_GCP_GCPX_set(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_gcpy_get(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_GCPY_get", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (double)GDAL_GCP_GCPY_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_gcpy_set(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_GCPY_set", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GDAL_GCP_GCPY_set", 2, argv[1] ));
- }
- arg2 = static_cast< double >(val2);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- GDAL_GCP_GCPY_set(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_gcpz_get(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_GCPZ_get", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (double)GDAL_GCP_GCPZ_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_gcpz_set(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_GCPZ_set", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GDAL_GCP_GCPZ_set", 2, argv[1] ));
- }
- arg2 = static_cast< double >(val2);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- GDAL_GCP_GCPZ_set(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_gcppixel_get(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_GCPPixel_get", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (double)GDAL_GCP_GCPPixel_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_gcppixel_set(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_GCPPixel_set", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GDAL_GCP_GCPPixel_set", 2, argv[1] ));
- }
- arg2 = static_cast< double >(val2);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- GDAL_GCP_GCPPixel_set(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_gcpline_get(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_GCPLine_get", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (double)GDAL_GCP_GCPLine_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_gcpline_set(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_GCPLine_set", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GDAL_GCP_GCPLine_set", 2, argv[1] ));
- }
- arg2 = static_cast< double >(val2);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- GDAL_GCP_GCPLine_set(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_info_get(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_Info_get", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (char *)GDAL_GCP_Info_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_info_set(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_Info_set", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GDAL_GCP_Info_set", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- GDAL_GCP_Info_set(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_id_get(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_Id_get", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (char *)GDAL_GCP_Id_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_id_set(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_Id_set", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GDAL_GCP_Id_set", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- GDAL_GCP_Id_set(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_get_gcpx(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_get_GCPX", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (double)GDAL_GCP_get_GCPX(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_set_gcpx(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_set_GCPX", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GDAL_GCP_set_GCPX", 2, argv[1] ));
- }
- arg2 = static_cast< double >(val2);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- GDAL_GCP_set_GCPX(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_get_gcpy(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_get_GCPY", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (double)GDAL_GCP_get_GCPY(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_set_gcpy(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_set_GCPY", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GDAL_GCP_set_GCPY", 2, argv[1] ));
- }
- arg2 = static_cast< double >(val2);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- GDAL_GCP_set_GCPY(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_get_gcpz(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_get_GCPZ", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (double)GDAL_GCP_get_GCPZ(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_set_gcpz(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_set_GCPZ", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GDAL_GCP_set_GCPZ", 2, argv[1] ));
- }
- arg2 = static_cast< double >(val2);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- GDAL_GCP_set_GCPZ(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_get_gcppixel(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_get_GCPPixel", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (double)GDAL_GCP_get_GCPPixel(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_set_gcppixel(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_set_GCPPixel", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GDAL_GCP_set_GCPPixel", 2, argv[1] ));
- }
- arg2 = static_cast< double >(val2);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- GDAL_GCP_set_GCPPixel(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_get_gcpline(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_get_GCPLine", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (double)GDAL_GCP_get_GCPLine(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_set_gcpline(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_set_GCPLine", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GDAL_GCP_set_GCPLine", 2, argv[1] ));
- }
- arg2 = static_cast< double >(val2);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- GDAL_GCP_set_GCPLine(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_get_info(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_get_Info", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (char *)GDAL_GCP_get_Info(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_set_info(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_set_Info", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GDAL_GCP_set_Info", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- GDAL_GCP_set_Info(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_get_id(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_get_Id", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (char *)GDAL_GCP_get_Id(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdal_gcp_set_id(int argc, VALUE *argv, VALUE self) {
- GDAL_GCP *arg1 = (GDAL_GCP *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDAL_GCP, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDAL_GCP *","GDAL_GCP_set_Id", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDAL_GCP * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GDAL_GCP_set_Id", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- GDAL_GCP_set_Id(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gcps_to_geo_transform(int argc, VALUE *argv, VALUE self) {
- int arg1 ;
- GDAL_GCP *arg2 = (GDAL_GCP *) 0 ;
- double *arg3 ;
- int arg4 = (int) 1 ;
- GDAL_GCP *tmpGCPList1 ;
- double argout3[6] ;
- int val4 ;
- int ecode4 = 0 ;
- RETURN_NONE result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double argout3[ANY]) */
- arg3 = argout3;
- }
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- /* %typemap( in,numinputs=1) (int nGCPs, GDAL_GCP const *pGCPs ) */
-
- /* Check if is a list */
- Check_Type(argv[0], T_ARRAY);
-
- arg1 = RARRAY(argv[0])->len;
- tmpGCPList1 = (GDAL_GCP*) malloc(arg1*sizeof(GDAL_GCP));
- arg2 = tmpGCPList1;
-
- for( int i = 0; i<arg1; i++ ) {
- VALUE rubyItem = rb_ary_entry(argv[0],i);
- GDAL_GCP *item = 0;
-
- SWIG_ConvertPtr( rubyItem, (void**)&item, SWIGTYPE_p_GDAL_GCP, SWIG_POINTER_EXCEPTION | 0 );
-
- if (!item) {
- rb_raise(rb_eRuntimeError, "GDAL_GCP item cannot be nil");
- }
-
- memcpy( (void*) item, (void*) tmpGCPList1, sizeof( GDAL_GCP ) );
- ++tmpGCPList1;
- }
- }
- if (argc > 1) {
- ecode4 = SWIG_AsVal_int(argv[1], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","GDALGCPsToGeoTransform", 4, argv[1] ));
- }
- arg4 = static_cast< int >(val4);
- }
- {
- CPLErrorReset();
- result = GDALGCPsToGeoTransform(arg1,(GDAL_GCP const *)arg2,arg3,arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) IF_FALSE_RETURN_NONE */
- if (result == 0 ) {
- vresult = Qnil;
- }
- }
- {
- /* %typemap(argout) (double argout[ANY]) */
- VALUE outArr = rb_ary_new();
-
- for(int i=0; i<6; i++)
- {
- VALUE value = rb_float_new((arg3)[i]);
- rb_ary_push(outArr, value);
- }
-
- /* Add the output to the result */
- vresult = SWIG_Ruby_AppendOutput(vresult, outArr);
- }
- {
- /* %typemap( freearg) (int nGCPs, GDAL_GCP const *pGCPs ) */
- if (arg2) {
- free( (void*) arg2 );
- }
- }
- return vresult;
-fail:
- {
- /* %typemap( freearg) (int nGCPs, GDAL_GCP const *pGCPs ) */
- if (arg2) {
- free( (void*) arg2 );
- }
- }
- return Qnil;
-}
-
-
-swig_class SwigClassAsyncReader;
-
-SWIGINTERN void delete_GDALAsyncReaderShadow(GDALAsyncReaderShadow *self){
- DeleteAsyncReaderWrapper(self);
- }
-SWIGINTERN void
-free_GDALAsyncReaderShadow(GDALAsyncReaderShadow *arg1) {
- delete_GDALAsyncReaderShadow(arg1);
-}
-
-SWIGINTERN VALUE
-_wrap_AsyncReader_get_next_updated_region(int argc, VALUE *argv, VALUE self) {
- GDALAsyncReaderShadow *arg1 = (GDALAsyncReaderShadow *) 0 ;
- double arg2 ;
- int *arg3 = (int *) 0 ;
- int *arg4 = (int *) 0 ;
- int *arg5 = (int *) 0 ;
- int *arg6 = (int *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- int temp3 ;
- int res3 = SWIG_TMPOBJ ;
- int temp4 ;
- int res4 = SWIG_TMPOBJ ;
- int temp5 ;
- int res5 = SWIG_TMPOBJ ;
- int temp6 ;
- int res6 = SWIG_TMPOBJ ;
- GDALAsyncStatusType result;
- VALUE vresult = Qnil;
-
- arg3 = &temp3;
- arg4 = &temp4;
- arg5 = &temp5;
- arg6 = &temp6;
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALAsyncReaderShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALAsyncReaderShadow *","GetNextUpdatedRegion", 1, self ));
- }
- arg1 = reinterpret_cast< GDALAsyncReaderShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GetNextUpdatedRegion", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- {
- CPLErrorReset();
- result = (GDALAsyncStatusType)GDALAsyncReaderShadow_GetNextUpdatedRegion(arg1,arg2,arg3,arg4,arg5,arg6);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- if (SWIG_IsTmpObj(res3)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
- } else {
- int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
- }
- if (SWIG_IsTmpObj(res4)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg4)));
- } else {
- int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
- }
- if (SWIG_IsTmpObj(res5)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
- } else {
- int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
- }
- if (SWIG_IsTmpObj(res6)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
- } else {
- int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_AsyncReader_lock_buffer(int argc, VALUE *argv, VALUE self) {
- GDALAsyncReaderShadow *arg1 = (GDALAsyncReaderShadow *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALAsyncReaderShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALAsyncReaderShadow *","LockBuffer", 1, self ));
- }
- arg1 = reinterpret_cast< GDALAsyncReaderShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","LockBuffer", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- {
- CPLErrorReset();
- result = (int)GDALAsyncReaderShadow_LockBuffer(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_AsyncReader_unlock_buffer(int argc, VALUE *argv, VALUE self) {
- GDALAsyncReaderShadow *arg1 = (GDALAsyncReaderShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALAsyncReaderShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALAsyncReaderShadow *","UnlockBuffer", 1, self ));
- }
- arg1 = reinterpret_cast< GDALAsyncReaderShadow * >(argp1);
- {
- CPLErrorReset();
- GDALAsyncReaderShadow_UnlockBuffer(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-swig_class SwigClassDataset;
-
-SWIGINTERN VALUE
-_wrap_Dataset_RasterXSize_get(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","RasterXSize", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)GDALDatasetShadow_RasterXSize_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_RasterYSize_get(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","RasterYSize", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)GDALDatasetShadow_RasterYSize_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_RasterCount_get(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","RasterCount", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)GDALDatasetShadow_RasterCount_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN void delete_GDALDatasetShadow(GDALDatasetShadow *self){
- if ( GDALDereferenceDataset( self ) <= 0 ) {
- GDALClose(self);
- }
- }
-SWIGINTERN void
-free_GDALDatasetShadow(GDALDatasetShadow *arg1) {
- delete_GDALDatasetShadow(arg1);
-}
-
-SWIGINTERN VALUE
-_wrap_Dataset_get_driver(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- GDALDriverShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","GetDriver", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- {
- CPLErrorReset();
- result = (GDALDriverShadow *)GDALDatasetShadow_GetDriver(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALDriverShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_get_raster_band(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- GDALRasterBandShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","GetRasterBand", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetRasterBand", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (GDALRasterBandShadow *)GDALDatasetShadow_GetRasterBand(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_get_projection(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","GetProjection", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)GDALDatasetShadow_GetProjection(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_get_projection_ref(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","GetProjectionRef", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)GDALDatasetShadow_GetProjectionRef(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_set_projection(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","SetProjection", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetProjection", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALDatasetShadow_SetProjection(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_get_geo_transform(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- double *arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double argout2[6] ;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double argout2[ANY]) */
- arg2 = argout2;
- }
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","GetGeoTransform", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- {
- CPLErrorReset();
- GDALDatasetShadow_GetGeoTransform(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(argout) (double argout[ANY]) */
- VALUE outArr = rb_ary_new();
-
- for(int i=0; i<6; i++)
- {
- VALUE value = rb_float_new((arg2)[i]);
- rb_ary_push(outArr, value);
- }
-
- /* Add the output to the result */
- vresult = SWIG_Ruby_AppendOutput(vresult, outArr);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_set_geo_transform(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- double *arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double temp2[6] ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","SetGeoTransform", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- {
- /* %typemap(in) (double argin[ANY]) (double temp2[6]) */
- /* Make sure this is an array. */
- Check_Type(argv[0], T_ARRAY);
-
- /* Get the length */
- int seq_size = RARRAY(argv[0])->len;
-
- if ( seq_size != 6 ) {
- rb_raise(rb_eRangeError, "sequence must have length %i.", seq_size);
- }
-
- for( int i = 0; i<6; i++ ) {
- /* Get the Ruby Object */
- VALUE item = rb_ary_entry(argv[0],i);
-
- /* Convert to double and store in array*/
- temp2[i] = NUM2DBL(item);
- }
-
- /* Set argument arg2 equal to the temp2 array */
- arg2 = temp2;
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALDatasetShadow_SetGeoTransform(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_build_overviews(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- char *arg2 = (char *) "NEAREST" ;
- int arg3 = (int) 0 ;
- int *arg4 = (int *) 0 ;
- GDALProgressFunc arg5 = (GDALProgressFunc) NULL ;
- void *arg6 = (void *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- void *argp5 ;
- int res5 = 0 ;
- int res6 ;
- char *kwnames[] = {
- "self","resampling","overviewlist","callback","callback_data", NULL
- };
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","BuildOverviews", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- if (argc > 0) {
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","BuildOverviews", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- }
- if (argc > 1) {
- {
- /* %typemap(in,numinputs=1) (int nList, int* pList) */
-
- /* Make sure this is an array. */
- Check_Type(argv[1], T_ARRAY);
-
- /* Get the length */
- arg3 = RARRAY(argv[1])->len;
-
- /* Allocate space for the C array. */
- arg4 = (int*) malloc(arg3*sizeof(int));
-
- for( int i = 0; i<arg3; i++ ) {
- /* Get the Ruby Object */
- VALUE item = rb_ary_entry(argv[1],i);
- /* Conver to an integer */
- arg4[i] = NUM2INT(item);
- }
- }
- }
- if (argc > 2) {
- {
- res5 = SWIG_ConvertPtr(argv[2], &argp5, SWIGTYPE_p_GDALProgressFunc, 0 );
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "GDALProgressFunc","BuildOverviews", 5, argv[2] ));
- }
- if (!argp5) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GDALProgressFunc","BuildOverviews", 5, argv[2]));
- } else {
- arg5 = *(reinterpret_cast< GDALProgressFunc * >(argp5));
- }
- }
- }
- if (argc > 3) {
- res6 = SWIG_ConvertPtr(argv[3],SWIG_as_voidptrptr(&arg6), 0, 0);
- if (!SWIG_IsOK(res6)) {
- SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "void *","BuildOverviews", 6, argv[3] ));
- }
- }
- {
- CPLErrorReset();
- result = (int)GDALDatasetShadow_BuildOverviews(arg1,(char const *)arg2,arg3,arg4,arg5,arg6);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(freearg) (int nList, int* pList) */
- if (arg4) {
- free((void*) arg4);
- }
- }
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(freearg) (int nList, int* pList) */
- if (arg4) {
- free((void*) arg4);
- }
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_get_gcpcount(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","GetGCPCount", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)GDALDatasetShadow_GetGCPCount(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_get_gcpprojection(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","GetGCPProjection", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)GDALDatasetShadow_GetGCPProjection(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_get_gcps(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- int *arg2 = (int *) 0 ;
- GDAL_GCP **arg3 = (GDAL_GCP **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int nGCPs2 = 0 ;
- GDAL_GCP *pGCPs2 = 0 ;
- VALUE vresult = Qnil;
-
- {
- /* %typemap( in,numinputs=0) (int *nGCPs2, GDAL_GCP const **pGCPs2 ) */
- arg2 = &nGCPs2;
- arg3 = &pGCPs2;
- }
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","GetGCPs", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- {
- CPLErrorReset();
- GDALDatasetShadow_GetGCPs(arg1,arg2,(GDAL_GCP const **)arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap( argout) (int *nGCPs, GDAL_GCP const **pGCPs ) */
-
- /* vresult = rb_ary_new2(*arg2);
-
- for( int i = 0; i < *arg2; i++ ) {
- GDAL_GCP *o = new_GDAL_GCP( (*arg3)[i].dfGCPX,
- (*arg3)[i].dfGCPY,
- (*arg3)[i].dfGCPZ,
- (*arg3)[i].dfGCPPixel,
- (*arg3)[i].dfGCPLine,
- (*arg3)[i].pszInfo,
- (*arg3)[i].pszId );
-
- rb_ary_store(vresult, i,
- SWIG_NewPointerObj((void*)o, SWIGTYPE_p_GDAL_GCP,1));
- }*/
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_set_gcps(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- int arg2 ;
- GDAL_GCP *arg3 = (GDAL_GCP *) 0 ;
- char *arg4 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- GDAL_GCP *tmpGCPList2 ;
- int res4 ;
- char *buf4 = 0 ;
- int alloc4 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","SetGCPs", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- {
- /* %typemap( in,numinputs=1) (int nGCPs, GDAL_GCP const *pGCPs ) */
-
- /* Check if is a list */
- Check_Type(argv[0], T_ARRAY);
-
- arg2 = RARRAY(argv[0])->len;
- tmpGCPList2 = (GDAL_GCP*) malloc(arg2*sizeof(GDAL_GCP));
- arg3 = tmpGCPList2;
-
- for( int i = 0; i<arg2; i++ ) {
- VALUE rubyItem = rb_ary_entry(argv[0],i);
- GDAL_GCP *item = 0;
-
- SWIG_ConvertPtr( rubyItem, (void**)&item, SWIGTYPE_p_GDAL_GCP, SWIG_POINTER_EXCEPTION | 0 );
-
- if (!item) {
- rb_raise(rb_eRuntimeError, "GDAL_GCP item cannot be nil");
- }
-
- memcpy( (void*) item, (void*) tmpGCPList2, sizeof( GDAL_GCP ) );
- ++tmpGCPList2;
- }
- }
- res4 = SWIG_AsCharPtrAndSize(argv[1], &buf4, NULL, &alloc4);
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","SetGCPs", 4, argv[1] ));
- }
- arg4 = reinterpret_cast< char * >(buf4);
- {
- CPLErrorReset();
- result = (CPLErr)GDALDatasetShadow_SetGCPs(arg1,arg2,(GDAL_GCP const *)arg3,(char const *)arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- {
- /* %typemap( freearg) (int nGCPs, GDAL_GCP const *pGCPs ) */
- if (arg3) {
- free( (void*) arg3 );
- }
- }
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- return vresult;
-fail:
- {
- /* %typemap( freearg) (int nGCPs, GDAL_GCP const *pGCPs ) */
- if (arg3) {
- free( (void*) arg3 );
- }
- }
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_flush_cache(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","FlushCache", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- {
- CPLErrorReset();
- GDALDatasetShadow_FlushCache(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_add_band(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- GDALDataType arg2 = (GDALDataType) GDT_Byte ;
- char **arg3 = (char **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *kwnames[] = {
- "self","datatype","options", NULL
- };
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","AddBand", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- if (argc > 0) {
- {
- /* %typemap(in) CPLErr */
- arg2 = (GDALDataType) NUM2INT(argv[0]);
- }
- }
- if (argc > 1) {
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[1], T_ARRAY);
-
- int size = RARRAY(argv[1])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[1], i);
- char *pszItem = StringValuePtr(item);
- arg3 = CSLAddString( arg3, pszItem );
- }
- }
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALDatasetShadow_AddBand(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg3 );
- }
- return vresult;
-fail:
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg3 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_create_mask_band(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","CreateMaskBand", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","CreateMaskBand", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (CPLErr)GDALDatasetShadow_CreateMaskBand(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_get_file_list(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char **result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","GetFileList", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char **)GDALDatasetShadow_GetFileList(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_char, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_write_raster(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- int arg2 ;
- int arg3 ;
- int arg4 ;
- int arg5 ;
- int arg6 ;
- char *arg7 = (char *) 0 ;
- int *arg8 = (int *) 0 ;
- int *arg9 = (int *) 0 ;
- GDALDataType *arg10 = (GDALDataType *) 0 ;
- int arg11 = (int) 0 ;
- int *arg12 = (int *) 0 ;
- int *arg13 = (int *) 0 ;
- int *arg14 = (int *) 0 ;
- int *arg15 = (int *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- int val5 ;
- int ecode5 = 0 ;
- int res6 ;
- char *buf6 = 0 ;
- size_t size6 = 0 ;
- int alloc6 = 0 ;
- void *argp8 = 0 ;
- int res8 = 0 ;
- void *argp9 = 0 ;
- int res9 = 0 ;
- void *argp10 = 0 ;
- int res10 = 0 ;
- void *argp13 = 0 ;
- int res13 = 0 ;
- void *argp14 = 0 ;
- int res14 = 0 ;
- void *argp15 = 0 ;
- int res15 = 0 ;
- char *kwnames[] = {
- "self","xoff","yoff","xsize","ysize","buf_len","buf_xsize","buf_ysize","buf_type","band_list","buf_pixel_space","buf_line_space","buf_band_space", NULL
- };
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 5) || (argc > 12)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","WriteRaster", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","WriteRaster", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","WriteRaster", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- ecode4 = SWIG_AsVal_int(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","WriteRaster", 4, argv[2] ));
- }
- arg4 = static_cast< int >(val4);
- ecode5 = SWIG_AsVal_int(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","WriteRaster", 5, argv[3] ));
- }
- arg5 = static_cast< int >(val5);
- res6 = SWIG_AsCharPtrAndSize(argv[4], &buf6, &size6, &alloc6);
- if (!SWIG_IsOK(res6)) {
- SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "int","WriteRaster", 6, argv[4] ));
- }
- arg7 = reinterpret_cast< char * >(buf6) ;
- arg6 = static_cast< int >(size6 - 1) ;
- if (argc > 5) {
- res8 = SWIG_ConvertPtr(argv[5], &argp8,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res8)) {
- SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "int *","WriteRaster", 8, argv[5] ));
- }
- arg8 = reinterpret_cast< int * >(argp8);
- }
- if (argc > 6) {
- res9 = SWIG_ConvertPtr(argv[6], &argp9,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res9)) {
- SWIG_exception_fail(SWIG_ArgError(res9), Ruby_Format_TypeError( "", "int *","WriteRaster", 9, argv[6] ));
- }
- arg9 = reinterpret_cast< int * >(argp9);
- }
- if (argc > 7) {
- res10 = SWIG_ConvertPtr(argv[7], &argp10,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res10)) {
- SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "GDALDataType *","WriteRaster", 10, argv[7] ));
- }
- arg10 = reinterpret_cast< GDALDataType * >(argp10);
- }
- if (argc > 8) {
- {
- /* %typemap(in,numinputs=1) (int nList, int* pList) */
-
- /* Make sure this is an array. */
- Check_Type(argv[8], T_ARRAY);
-
- /* Get the length */
- arg11 = RARRAY(argv[8])->len;
-
- /* Allocate space for the C array. */
- arg12 = (int*) malloc(arg11*sizeof(int));
-
- for( int i = 0; i<arg11; i++ ) {
- /* Get the Ruby Object */
- VALUE item = rb_ary_entry(argv[8],i);
- /* Conver to an integer */
- arg12[i] = NUM2INT(item);
- }
- }
- }
- if (argc > 9) {
- res13 = SWIG_ConvertPtr(argv[9], &argp13,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res13)) {
- SWIG_exception_fail(SWIG_ArgError(res13), Ruby_Format_TypeError( "", "int *","WriteRaster", 13, argv[9] ));
- }
- arg13 = reinterpret_cast< int * >(argp13);
- }
- if (argc > 10) {
- res14 = SWIG_ConvertPtr(argv[10], &argp14,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res14)) {
- SWIG_exception_fail(SWIG_ArgError(res14), Ruby_Format_TypeError( "", "int *","WriteRaster", 14, argv[10] ));
- }
- arg14 = reinterpret_cast< int * >(argp14);
- }
- if (argc > 11) {
- res15 = SWIG_ConvertPtr(argv[11], &argp15,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res15)) {
- SWIG_exception_fail(SWIG_ArgError(res15), Ruby_Format_TypeError( "", "int *","WriteRaster", 15, argv[11] ));
- }
- arg15 = reinterpret_cast< int * >(argp15);
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALDatasetShadow_WriteRaster(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- {
- /* %typemap(freearg) (int nList, int* pList) */
- if (arg12) {
- free((void*) arg12);
- }
- }
- return vresult;
-fail:
- {
- /* %typemap(freearg) (int nList, int* pList) */
- if (arg12) {
- free((void*) arg12);
- }
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Dataset_read_raster(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- int arg2 ;
- int arg3 ;
- int arg4 ;
- int arg5 ;
- int *arg6 = (int *) 0 ;
- char **arg7 = (char **) 0 ;
- int *arg8 = (int *) 0 ;
- int *arg9 = (int *) 0 ;
- GDALDataType *arg10 = (GDALDataType *) 0 ;
- int arg11 = (int) 0 ;
- int *arg12 = (int *) 0 ;
- int *arg13 = (int *) 0 ;
- int *arg14 = (int *) 0 ;
- int *arg15 = (int *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- int val5 ;
- int ecode5 = 0 ;
- int nLen6 = 0 ;
- char *pBuf6 = 0 ;
- void *argp8 = 0 ;
- int res8 = 0 ;
- void *argp9 = 0 ;
- int res9 = 0 ;
- void *argp10 = 0 ;
- int res10 = 0 ;
- void *argp13 = 0 ;
- int res13 = 0 ;
- void *argp14 = 0 ;
- int res14 = 0 ;
- void *argp15 = 0 ;
- int res15 = 0 ;
- char *kwnames[] = {
- "self","xoff","yoff","xsize","ysize","buf_xsize","buf_ysize","buf_type","band_list","buf_pixel_space","buf_line_space","buf_band_space", NULL
- };
- CPLErr result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (int *nLen6, char **pBuf6 ) ( int nLen6 = 0, char *pBuf6 = 0 ) */
- arg6 = &nLen6;
- arg7 = &pBuf6;
- }
- if ((argc < 4) || (argc > 11)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","ReadRaster", 1, self ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ReadRaster", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReadRaster", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- ecode4 = SWIG_AsVal_int(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ReadRaster", 4, argv[2] ));
- }
- arg4 = static_cast< int >(val4);
- ecode5 = SWIG_AsVal_int(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","ReadRaster", 5, argv[3] ));
- }
- arg5 = static_cast< int >(val5);
- if (argc > 4) {
- res8 = SWIG_ConvertPtr(argv[4], &argp8,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res8)) {
- SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "int *","ReadRaster", 8, argv[4] ));
- }
- arg8 = reinterpret_cast< int * >(argp8);
- }
- if (argc > 5) {
- res9 = SWIG_ConvertPtr(argv[5], &argp9,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res9)) {
- SWIG_exception_fail(SWIG_ArgError(res9), Ruby_Format_TypeError( "", "int *","ReadRaster", 9, argv[5] ));
- }
- arg9 = reinterpret_cast< int * >(argp9);
- }
- if (argc > 6) {
- res10 = SWIG_ConvertPtr(argv[6], &argp10,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res10)) {
- SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "GDALDataType *","ReadRaster", 10, argv[6] ));
- }
- arg10 = reinterpret_cast< GDALDataType * >(argp10);
- }
- if (argc > 7) {
- {
- /* %typemap(in,numinputs=1) (int nList, int* pList) */
-
- /* Make sure this is an array. */
- Check_Type(argv[7], T_ARRAY);
-
- /* Get the length */
- arg11 = RARRAY(argv[7])->len;
-
- /* Allocate space for the C array. */
- arg12 = (int*) malloc(arg11*sizeof(int));
-
- for( int i = 0; i<arg11; i++ ) {
- /* Get the Ruby Object */
- VALUE item = rb_ary_entry(argv[7],i);
- /* Conver to an integer */
- arg12[i] = NUM2INT(item);
- }
- }
- }
- if (argc > 8) {
- res13 = SWIG_ConvertPtr(argv[8], &argp13,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res13)) {
- SWIG_exception_fail(SWIG_ArgError(res13), Ruby_Format_TypeError( "", "int *","ReadRaster", 13, argv[8] ));
- }
- arg13 = reinterpret_cast< int * >(argp13);
- }
- if (argc > 9) {
- res14 = SWIG_ConvertPtr(argv[9], &argp14,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res14)) {
- SWIG_exception_fail(SWIG_ArgError(res14), Ruby_Format_TypeError( "", "int *","ReadRaster", 14, argv[9] ));
- }
- arg14 = reinterpret_cast< int * >(argp14);
- }
- if (argc > 10) {
- res15 = SWIG_ConvertPtr(argv[10], &argp15,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res15)) {
- SWIG_exception_fail(SWIG_ArgError(res15), Ruby_Format_TypeError( "", "int *","ReadRaster", 15, argv[10] ));
- }
- arg15 = reinterpret_cast< int * >(argp15);
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALDatasetShadow_ReadRaster(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- {
- /* %typemap(argout) (int *nLen, char **pBuf ) */
- vresult = rb_str_new(*arg7, *arg6);
- }
- {
- /* %typemap(freearg) (int *nLen, char **pBuf ) */
- if( *arg7 ) {
- free( *arg7 );
- }
- }
- {
- /* %typemap(freearg) (int nList, int* pList) */
- if (arg12) {
- free((void*) arg12);
- }
- }
- return vresult;
-fail:
- {
- /* %typemap(freearg) (int *nLen, char **pBuf ) */
- if( *arg7 ) {
- free( *arg7 );
- }
- }
- {
- /* %typemap(freearg) (int nList, int* pList) */
- if (arg12) {
- free((void*) arg12);
- }
- }
- return Qnil;
-}
-
-
-swig_class SwigClassBand;
-
-SWIGINTERN VALUE
-_wrap_Band_XSize_get(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","XSize", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)GDALRasterBandShadow_XSize_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_YSize_get(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","YSize", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)GDALRasterBandShadow_YSize_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_DataType_get(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- GDALDataType result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","DataType", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- result = (GDALDataType)GDALRasterBandShadow_DataType_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_band(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetBand", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)GDALRasterBandShadow_GetBand(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_block_size(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- int *arg2 = (int *) 0 ;
- int *arg3 = (int *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int temp2 ;
- int res2 = SWIG_TMPOBJ ;
- int temp3 ;
- int res3 = SWIG_TMPOBJ ;
- VALUE vresult = Qnil;
-
- arg2 = &temp2;
- arg3 = &temp3;
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetBlockSize", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- GDALRasterBandShadow_GetBlockSize(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = rb_ary_new();
- if (SWIG_IsTmpObj(res2)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg2)));
- } else {
- int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
- }
- if (SWIG_IsTmpObj(res3)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
- } else {
- int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_color_interpretation(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- GDALColorInterp result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetColorInterpretation", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- result = (GDALColorInterp)GDALRasterBandShadow_GetColorInterpretation(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_raster_color_interpretation(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- GDALColorInterp result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetRasterColorInterpretation", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- result = (GDALColorInterp)GDALRasterBandShadow_GetRasterColorInterpretation(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_set_color_interpretation(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- GDALColorInterp arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","SetColorInterpretation", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- /* %typemap(in) CPLErr */
- arg2 = (GDALColorInterp) NUM2INT(argv[0]);
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_SetColorInterpretation(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_set_raster_color_interpretation(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- GDALColorInterp arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","SetRasterColorInterpretation", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- /* %typemap(in) CPLErr */
- arg2 = (GDALColorInterp) NUM2INT(argv[0]);
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_SetRasterColorInterpretation(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_no_data_value(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- double *arg2 = (double *) 0 ;
- int *arg3 = (int *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double tmpval2 ;
- int tmphasval2 ;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double *val, int*hasval) */
- arg2 = &tmpval2;
- arg3 = &tmphasval2;
- }
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetNoDataValue", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- GDALRasterBandShadow_GetNoDataValue(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(argout) (double *val, int *hasval) */
- VALUE argOut;
-
- if ( !*arg3 ) {
- argOut = Qnil;
- }
- else {
- argOut = rb_float_new(*arg2);
- }
-
- vresult = SWIG_Ruby_AppendOutput(vresult, argOut);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_set_no_data_value(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","SetNoDataValue", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetNoDataValue", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_SetNoDataValue(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_unit_type(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetUnitType", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)GDALRasterBandShadow_GetUnitType(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_set_unit_type(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","SetUnitType", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetUnitType", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_SetUnitType(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_raster_category_names(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char **result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetRasterCategoryNames", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char **)GDALRasterBandShadow_GetRasterCategoryNames(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) char **options */
-
- char **stringarray = result;
- if ( stringarray == NULL ) {
- vresult = Qnil;
- }
- else {
- int len = CSLCount( stringarray );
- vresult = rb_ary_new2( len );
- for ( int i = 0; i < len; ++i, ++stringarray ) {
- VALUE nm = rb_str_new2( *stringarray );
- rb_ary_push(vresult, nm);
- }
- }
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_set_raster_category_names(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- char **arg2 = (char **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","SetRasterCategoryNames", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[0], T_ARRAY);
-
- int size = RARRAY(argv[0])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[0], i);
- char *pszItem = StringValuePtr(item);
- arg2 = CSLAddString( arg2, pszItem );
- }
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_SetRasterCategoryNames(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg2 );
- }
- return vresult;
-fail:
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg2 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_minimum(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- double *arg2 = (double *) 0 ;
- int *arg3 = (int *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double tmpval2 ;
- int tmphasval2 ;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double *val, int*hasval) */
- arg2 = &tmpval2;
- arg3 = &tmphasval2;
- }
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetMinimum", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- GDALRasterBandShadow_GetMinimum(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(argout) (double *val, int *hasval) */
- VALUE argOut;
-
- if ( !*arg3 ) {
- argOut = Qnil;
- }
- else {
- argOut = rb_float_new(*arg2);
- }
-
- vresult = SWIG_Ruby_AppendOutput(vresult, argOut);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_maximum(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- double *arg2 = (double *) 0 ;
- int *arg3 = (int *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double tmpval2 ;
- int tmphasval2 ;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double *val, int*hasval) */
- arg2 = &tmpval2;
- arg3 = &tmphasval2;
- }
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetMaximum", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- GDALRasterBandShadow_GetMaximum(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(argout) (double *val, int *hasval) */
- VALUE argOut;
-
- if ( !*arg3 ) {
- argOut = Qnil;
- }
- else {
- argOut = rb_float_new(*arg2);
- }
-
- vresult = SWIG_Ruby_AppendOutput(vresult, argOut);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_offset(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- double *arg2 = (double *) 0 ;
- int *arg3 = (int *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double tmpval2 ;
- int tmphasval2 ;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double *val, int*hasval) */
- arg2 = &tmpval2;
- arg3 = &tmphasval2;
- }
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetOffset", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- GDALRasterBandShadow_GetOffset(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(argout) (double *val, int *hasval) */
- VALUE argOut;
-
- if ( !*arg3 ) {
- argOut = Qnil;
- }
- else {
- argOut = rb_float_new(*arg2);
- }
-
- vresult = SWIG_Ruby_AppendOutput(vresult, argOut);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_scale(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- double *arg2 = (double *) 0 ;
- int *arg3 = (int *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double tmpval2 ;
- int tmphasval2 ;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double *val, int*hasval) */
- arg2 = &tmpval2;
- arg3 = &tmphasval2;
- }
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetScale", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- GDALRasterBandShadow_GetScale(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(argout) (double *val, int *hasval) */
- VALUE argOut;
-
- if ( !*arg3 ) {
- argOut = Qnil;
- }
- else {
- argOut = rb_float_new(*arg2);
- }
-
- vresult = SWIG_Ruby_AppendOutput(vresult, argOut);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_set_offset(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","SetOffset", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetOffset", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_SetOffset(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_set_scale(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","SetScale", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetScale", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_SetScale(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_statistics(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- int arg2 ;
- int arg3 ;
- double *arg4 = (double *) 0 ;
- double *arg5 = (double *) 0 ;
- double *arg6 = (double *) 0 ;
- double *arg7 = (double *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- double temp4 ;
- int res4 = SWIG_TMPOBJ ;
- double temp5 ;
- int res5 = SWIG_TMPOBJ ;
- double temp6 ;
- int res6 = SWIG_TMPOBJ ;
- double temp7 ;
- int res7 = SWIG_TMPOBJ ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- arg4 = &temp4;
- arg5 = &temp5;
- arg6 = &temp6;
- arg7 = &temp7;
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetStatistics", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetStatistics", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","GetStatistics", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_GetStatistics(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) CPLErr */
- vresult = (CPLErr)LONG2NUM(result);
- }
- if (SWIG_IsTmpObj(res4)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg4)));
- } else {
- int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
- }
- if (SWIG_IsTmpObj(res5)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg5)));
- } else {
- int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
- }
- if (SWIG_IsTmpObj(res6)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
- } else {
- int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
- }
- if (SWIG_IsTmpObj(res7)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg7)));
- } else {
- int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_compute_statistics(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- bool arg2 ;
- double *arg3 = (double *) NULL ;
- double *arg4 = (double *) NULL ;
- double *arg5 = (double *) NULL ;
- double *arg6 = (double *) NULL ;
- GDALProgressFunc arg7 = (GDALProgressFunc) NULL ;
- void *arg8 = (void *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- bool val2 ;
- int ecode2 = 0 ;
- double temp3 ;
- int res3 = SWIG_TMPOBJ ;
- double temp4 ;
- int res4 = SWIG_TMPOBJ ;
- double temp5 ;
- int res5 = SWIG_TMPOBJ ;
- double temp6 ;
- int res6 = SWIG_TMPOBJ ;
- void *argp7 ;
- int res7 = 0 ;
- int res8 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- arg3 = &temp3;
- arg4 = &temp4;
- arg5 = &temp5;
- arg6 = &temp6;
- if ((argc < 1) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","ComputeStatistics", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- ecode2 = SWIG_AsVal_bool(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","ComputeStatistics", 2, argv[0] ));
- }
- arg2 = static_cast< bool >(val2);
- if (argc > 1) {
- {
- res7 = SWIG_ConvertPtr(argv[1], &argp7, SWIGTYPE_p_GDALProgressFunc, 0 );
- if (!SWIG_IsOK(res7)) {
- SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "GDALProgressFunc","ComputeStatistics", 7, argv[1] ));
- }
- if (!argp7) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GDALProgressFunc","ComputeStatistics", 7, argv[1]));
- } else {
- arg7 = *(reinterpret_cast< GDALProgressFunc * >(argp7));
- }
- }
- }
- if (argc > 2) {
- res8 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg8), 0, 0);
- if (!SWIG_IsOK(res8)) {
- SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "void *","ComputeStatistics", 8, argv[2] ));
- }
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_ComputeStatistics(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- if (SWIG_IsTmpObj(res3)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg3)));
- } else {
- int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
- }
- if (SWIG_IsTmpObj(res4)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg4)));
- } else {
- int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
- }
- if (SWIG_IsTmpObj(res5)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg5)));
- } else {
- int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
- }
- if (SWIG_IsTmpObj(res6)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
- } else {
- int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_set_statistics(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","SetStatistics", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetStatistics", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetStatistics", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetStatistics", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetStatistics", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_SetStatistics(arg1,arg2,arg3,arg4,arg5);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_overview_count(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetOverviewCount", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)GDALRasterBandShadow_GetOverviewCount(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_overview(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- GDALRasterBandShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetOverview", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetOverview", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (GDALRasterBandShadow *)GDALRasterBandShadow_GetOverview(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_checksum(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- int arg2 = (int) 0 ;
- int arg3 = (int) 0 ;
- int *arg4 = (int *) 0 ;
- int *arg5 = (int *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- void *argp4 = 0 ;
- int res4 = 0 ;
- void *argp5 = 0 ;
- int res5 = 0 ;
- char *kwnames[] = {
- "self","xoff","yoff","xsize","ysize", NULL
- };
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","Checksum", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- if (argc > 0) {
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","Checksum", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- }
- if (argc > 1) {
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","Checksum", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- }
- if (argc > 2) {
- res4 = SWIG_ConvertPtr(argv[2], &argp4,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "int *","Checksum", 4, argv[2] ));
- }
- arg4 = reinterpret_cast< int * >(argp4);
- }
- if (argc > 3) {
- res5 = SWIG_ConvertPtr(argv[3], &argp5,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "int *","Checksum", 5, argv[3] ));
- }
- arg5 = reinterpret_cast< int * >(argp5);
- }
- {
- CPLErrorReset();
- result = (int)GDALRasterBandShadow_Checksum(arg1,arg2,arg3,arg4,arg5);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_compute_raster_min_max(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- double *arg2 ;
- int arg3 = (int) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double argout2[2] ;
- int val3 ;
- int ecode3 = 0 ;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double argout2[ANY]) */
- arg2 = argout2;
- }
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","ComputeRasterMinMax", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- if (argc > 0) {
- ecode3 = SWIG_AsVal_int(argv[0], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ComputeRasterMinMax", 3, argv[0] ));
- }
- arg3 = static_cast< int >(val3);
- }
- {
- CPLErrorReset();
- GDALRasterBandShadow_ComputeRasterMinMax(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(argout) (double argout[ANY]) */
- VALUE outArr = rb_ary_new();
-
- for(int i=0; i<2; i++)
- {
- VALUE value = rb_float_new((arg2)[i]);
- rb_ary_push(outArr, value);
- }
-
- /* Add the output to the result */
- vresult = SWIG_Ruby_AppendOutput(vresult, outArr);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_compute_band_stats(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- double *arg2 ;
- int arg3 = (int) 1 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double argout2[2] ;
- int val3 ;
- int ecode3 = 0 ;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double argout2[ANY]) */
- arg2 = argout2;
- }
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","ComputeBandStats", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- if (argc > 0) {
- ecode3 = SWIG_AsVal_int(argv[0], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ComputeBandStats", 3, argv[0] ));
- }
- arg3 = static_cast< int >(val3);
- }
- {
- CPLErrorReset();
- GDALRasterBandShadow_ComputeBandStats(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(argout) (double argout[ANY]) */
- VALUE outArr = rb_ary_new();
-
- for(int i=0; i<2; i++)
- {
- VALUE value = rb_float_new((arg2)[i]);
- rb_ary_push(outArr, value);
- }
-
- /* Add the output to the result */
- vresult = SWIG_Ruby_AppendOutput(vresult, outArr);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_fill(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- double arg2 ;
- double arg3 = (double) 0.0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","Fill", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","Fill", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- if (argc > 1) {
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","Fill", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_Fill(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_read_raster(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- int arg2 ;
- int arg3 ;
- int arg4 ;
- int arg5 ;
- int *arg6 = (int *) 0 ;
- char **arg7 = (char **) 0 ;
- int *arg8 = (int *) 0 ;
- int *arg9 = (int *) 0 ;
- int *arg10 = (int *) 0 ;
- int *arg11 = (int *) 0 ;
- int *arg12 = (int *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- int val5 ;
- int ecode5 = 0 ;
- int nLen6 = 0 ;
- char *pBuf6 = 0 ;
- void *argp8 = 0 ;
- int res8 = 0 ;
- void *argp9 = 0 ;
- int res9 = 0 ;
- void *argp10 = 0 ;
- int res10 = 0 ;
- void *argp11 = 0 ;
- int res11 = 0 ;
- void *argp12 = 0 ;
- int res12 = 0 ;
- char *kwnames[] = {
- "self","xoff","yoff","xsize","ysize","buf_xsize","buf_ysize","buf_type","buf_pixel_space","buf_line_space", NULL
- };
- CPLErr result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (int *nLen6, char **pBuf6 ) ( int nLen6 = 0, char *pBuf6 = 0 ) */
- arg6 = &nLen6;
- arg7 = &pBuf6;
- }
- if ((argc < 4) || (argc > 9)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","ReadRaster", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ReadRaster", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReadRaster", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- ecode4 = SWIG_AsVal_int(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ReadRaster", 4, argv[2] ));
- }
- arg4 = static_cast< int >(val4);
- ecode5 = SWIG_AsVal_int(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","ReadRaster", 5, argv[3] ));
- }
- arg5 = static_cast< int >(val5);
- if (argc > 4) {
- res8 = SWIG_ConvertPtr(argv[4], &argp8,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res8)) {
- SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "int *","ReadRaster", 8, argv[4] ));
- }
- arg8 = reinterpret_cast< int * >(argp8);
- }
- if (argc > 5) {
- res9 = SWIG_ConvertPtr(argv[5], &argp9,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res9)) {
- SWIG_exception_fail(SWIG_ArgError(res9), Ruby_Format_TypeError( "", "int *","ReadRaster", 9, argv[5] ));
- }
- arg9 = reinterpret_cast< int * >(argp9);
- }
- if (argc > 6) {
- res10 = SWIG_ConvertPtr(argv[6], &argp10,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res10)) {
- SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "int *","ReadRaster", 10, argv[6] ));
- }
- arg10 = reinterpret_cast< int * >(argp10);
- }
- if (argc > 7) {
- res11 = SWIG_ConvertPtr(argv[7], &argp11,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res11)) {
- SWIG_exception_fail(SWIG_ArgError(res11), Ruby_Format_TypeError( "", "int *","ReadRaster", 11, argv[7] ));
- }
- arg11 = reinterpret_cast< int * >(argp11);
- }
- if (argc > 8) {
- res12 = SWIG_ConvertPtr(argv[8], &argp12,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res12)) {
- SWIG_exception_fail(SWIG_ArgError(res12), Ruby_Format_TypeError( "", "int *","ReadRaster", 12, argv[8] ));
- }
- arg12 = reinterpret_cast< int * >(argp12);
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_ReadRaster(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- {
- /* %typemap(argout) (int *nLen, char **pBuf ) */
- vresult = rb_str_new(*arg7, *arg6);
- }
- {
- /* %typemap(freearg) (int *nLen, char **pBuf ) */
- if( *arg7 ) {
- free( *arg7 );
- }
- }
- return vresult;
-fail:
- {
- /* %typemap(freearg) (int *nLen, char **pBuf ) */
- if( *arg7 ) {
- free( *arg7 );
- }
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_write_raster(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- int arg2 ;
- int arg3 ;
- int arg4 ;
- int arg5 ;
- int arg6 ;
- char *arg7 = (char *) 0 ;
- int *arg8 = (int *) 0 ;
- int *arg9 = (int *) 0 ;
- int *arg10 = (int *) 0 ;
- int *arg11 = (int *) 0 ;
- int *arg12 = (int *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- int val5 ;
- int ecode5 = 0 ;
- int res6 ;
- char *buf6 = 0 ;
- size_t size6 = 0 ;
- int alloc6 = 0 ;
- void *argp8 = 0 ;
- int res8 = 0 ;
- void *argp9 = 0 ;
- int res9 = 0 ;
- void *argp10 = 0 ;
- int res10 = 0 ;
- void *argp11 = 0 ;
- int res11 = 0 ;
- void *argp12 = 0 ;
- int res12 = 0 ;
- char *kwnames[] = {
- "self","xoff","yoff","xsize","ysize","buf_len","buf_xsize","buf_ysize","buf_type","buf_pixel_space","buf_line_space", NULL
- };
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 5) || (argc > 10)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","WriteRaster", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","WriteRaster", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","WriteRaster", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- ecode4 = SWIG_AsVal_int(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","WriteRaster", 4, argv[2] ));
- }
- arg4 = static_cast< int >(val4);
- ecode5 = SWIG_AsVal_int(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","WriteRaster", 5, argv[3] ));
- }
- arg5 = static_cast< int >(val5);
- res6 = SWIG_AsCharPtrAndSize(argv[4], &buf6, &size6, &alloc6);
- if (!SWIG_IsOK(res6)) {
- SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "int","WriteRaster", 6, argv[4] ));
- }
- arg7 = reinterpret_cast< char * >(buf6) ;
- arg6 = static_cast< int >(size6 - 1) ;
- if (argc > 5) {
- res8 = SWIG_ConvertPtr(argv[5], &argp8,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res8)) {
- SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "int *","WriteRaster", 8, argv[5] ));
- }
- arg8 = reinterpret_cast< int * >(argp8);
- }
- if (argc > 6) {
- res9 = SWIG_ConvertPtr(argv[6], &argp9,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res9)) {
- SWIG_exception_fail(SWIG_ArgError(res9), Ruby_Format_TypeError( "", "int *","WriteRaster", 9, argv[6] ));
- }
- arg9 = reinterpret_cast< int * >(argp9);
- }
- if (argc > 7) {
- res10 = SWIG_ConvertPtr(argv[7], &argp10,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res10)) {
- SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "int *","WriteRaster", 10, argv[7] ));
- }
- arg10 = reinterpret_cast< int * >(argp10);
- }
- if (argc > 8) {
- res11 = SWIG_ConvertPtr(argv[8], &argp11,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res11)) {
- SWIG_exception_fail(SWIG_ArgError(res11), Ruby_Format_TypeError( "", "int *","WriteRaster", 11, argv[8] ));
- }
- arg11 = reinterpret_cast< int * >(argp11);
- }
- if (argc > 9) {
- res12 = SWIG_ConvertPtr(argv[9], &argp12,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res12)) {
- SWIG_exception_fail(SWIG_ArgError(res12), Ruby_Format_TypeError( "", "int *","WriteRaster", 12, argv[9] ));
- }
- arg12 = reinterpret_cast< int * >(argp12);
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_WriteRaster(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_flush_cache(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","FlushCache", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- GDALRasterBandShadow_FlushCache(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_raster_color_table(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- GDALColorTableShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetRasterColorTable", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- result = (GDALColorTableShadow *)GDALRasterBandShadow_GetRasterColorTable(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALColorTableShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_color_table(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- GDALColorTableShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetColorTable", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- result = (GDALColorTableShadow *)GDALRasterBandShadow_GetColorTable(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALColorTableShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_set_raster_color_table(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- GDALColorTableShadow *arg2 = (GDALColorTableShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","SetRasterColorTable", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_GDALColorTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "GDALColorTableShadow *","SetRasterColorTable", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< GDALColorTableShadow * >(argp2);
- {
- CPLErrorReset();
- result = (int)GDALRasterBandShadow_SetRasterColorTable(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_set_color_table(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- GDALColorTableShadow *arg2 = (GDALColorTableShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","SetColorTable", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_GDALColorTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "GDALColorTableShadow *","SetColorTable", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< GDALColorTableShadow * >(argp2);
- {
- CPLErrorReset();
- result = (int)GDALRasterBandShadow_SetColorTable(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_default_rat(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- GDALRasterAttributeTableShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetDefaultRAT", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- result = (GDALRasterAttributeTableShadow *)GDALRasterBandShadow_GetDefaultRAT(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_set_default_rat(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- GDALRasterAttributeTableShadow *arg2 = (GDALRasterAttributeTableShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","SetDefaultRAT", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","SetDefaultRAT", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp2);
- {
- CPLErrorReset();
- result = (int)GDALRasterBandShadow_SetDefaultRAT(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_mask_band(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- GDALRasterBandShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetMaskBand", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- result = (GDALRasterBandShadow *)GDALRasterBandShadow_GetMaskBand(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_mask_flags(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetMaskFlags", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)GDALRasterBandShadow_GetMaskFlags(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_create_mask_band(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","CreateMaskBand", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","CreateMaskBand", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_CreateMaskBand(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_histogram(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- double arg2 = (double) -0.5 ;
- double arg3 = (double) 255.5 ;
- int arg4 = (int) 256 ;
- int *arg5 = (int *) NULL ;
- int arg6 = (int) 0 ;
- int arg7 = (int) 1 ;
- GDALProgressFunc arg8 = (GDALProgressFunc) NULL ;
- void *arg9 = (void *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- void *argp5 = 0 ;
- int res5 = 0 ;
- int val6 ;
- int ecode6 = 0 ;
- int val7 ;
- int ecode7 = 0 ;
- void *argp8 ;
- int res8 = 0 ;
- int res9 ;
- char *kwnames[] = {
- "self","min","max","buckets","panHistogram","include_out_of_range","approx_ok","callback","callback_data", NULL
- };
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 8)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetHistogram", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- if (argc > 0) {
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GetHistogram", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- }
- if (argc > 1) {
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","GetHistogram", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- }
- if (argc > 2) {
- ecode4 = SWIG_AsVal_int(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","GetHistogram", 4, argv[2] ));
- }
- arg4 = static_cast< int >(val4);
- }
- if (argc > 3) {
- res5 = SWIG_ConvertPtr(argv[3], &argp5,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "int *","GetHistogram", 5, argv[3] ));
- }
- arg5 = reinterpret_cast< int * >(argp5);
- }
- if (argc > 4) {
- ecode6 = SWIG_AsVal_int(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","GetHistogram", 6, argv[4] ));
- }
- arg6 = static_cast< int >(val6);
- }
- if (argc > 5) {
- ecode7 = SWIG_AsVal_int(argv[5], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","GetHistogram", 7, argv[5] ));
- }
- arg7 = static_cast< int >(val7);
- }
- if (argc > 6) {
- {
- res8 = SWIG_ConvertPtr(argv[6], &argp8, SWIGTYPE_p_GDALProgressFunc, 0 );
- if (!SWIG_IsOK(res8)) {
- SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "GDALProgressFunc","GetHistogram", 8, argv[6] ));
- }
- if (!argp8) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GDALProgressFunc","GetHistogram", 8, argv[6]));
- } else {
- arg8 = *(reinterpret_cast< GDALProgressFunc * >(argp8));
- }
- }
- }
- if (argc > 7) {
- res9 = SWIG_ConvertPtr(argv[7],SWIG_as_voidptrptr(&arg9), 0, 0);
- if (!SWIG_IsOK(res9)) {
- SWIG_exception_fail(SWIG_ArgError(res9), Ruby_Format_TypeError( "", "void *","GetHistogram", 9, argv[7] ));
- }
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_GetHistogram(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_get_default_histogram(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- double *arg2 = (double *) NULL ;
- double *arg3 = (double *) NULL ;
- int *arg4 = (int *) NULL ;
- int **arg5 = (int **) NULL ;
- int arg6 = (int) 1 ;
- GDALProgressFunc arg7 = (GDALProgressFunc) NULL ;
- void *arg8 = (void *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- void *argp4 = 0 ;
- int res4 = 0 ;
- void *argp5 = 0 ;
- int res5 = 0 ;
- int val6 ;
- int ecode6 = 0 ;
- void *argp7 ;
- int res7 = 0 ;
- int res8 ;
- char *kwnames[] = {
- "self","min_ret","max_ret","buckets_ret","ppanHistogram","force","callback","callback_data", NULL
- };
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 7)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","GetDefaultHistogram", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- if (argc > 0) {
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_double, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "double *","GetDefaultHistogram", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< double * >(argp2);
- }
- if (argc > 1) {
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_double, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "double *","GetDefaultHistogram", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< double * >(argp3);
- }
- if (argc > 2) {
- res4 = SWIG_ConvertPtr(argv[2], &argp4,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "int *","GetDefaultHistogram", 4, argv[2] ));
- }
- arg4 = reinterpret_cast< int * >(argp4);
- }
- if (argc > 3) {
- res5 = SWIG_ConvertPtr(argv[3], &argp5,SWIGTYPE_p_p_int, 0 | 0 );
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "int **","GetDefaultHistogram", 5, argv[3] ));
- }
- arg5 = reinterpret_cast< int ** >(argp5);
- }
- if (argc > 4) {
- ecode6 = SWIG_AsVal_int(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","GetDefaultHistogram", 6, argv[4] ));
- }
- arg6 = static_cast< int >(val6);
- }
- if (argc > 5) {
- {
- res7 = SWIG_ConvertPtr(argv[5], &argp7, SWIGTYPE_p_GDALProgressFunc, 0 );
- if (!SWIG_IsOK(res7)) {
- SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "GDALProgressFunc","GetDefaultHistogram", 7, argv[5] ));
- }
- if (!argp7) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GDALProgressFunc","GetDefaultHistogram", 7, argv[5]));
- } else {
- arg7 = *(reinterpret_cast< GDALProgressFunc * >(argp7));
- }
- }
- }
- if (argc > 6) {
- res8 = SWIG_ConvertPtr(argv[6],SWIG_as_voidptrptr(&arg8), 0, 0);
- if (!SWIG_IsOK(res8)) {
- SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "void *","GetDefaultHistogram", 8, argv[6] ));
- }
- }
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_GetDefaultHistogram(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_set_default_histogram(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- int arg4 ;
- int *arg5 = (int *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- void *argp5 = 0 ;
- int res5 = 0 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","SetDefaultHistogram", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetDefaultHistogram", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetDefaultHistogram", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_int(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","SetDefaultHistogram", 4, argv[2] ));
- }
- arg4 = static_cast< int >(val4);
- res5 = SWIG_ConvertPtr(argv[3], &argp5,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "int *","SetDefaultHistogram", 5, argv[3] ));
- }
- arg5 = reinterpret_cast< int * >(argp5);
- {
- CPLErrorReset();
- result = (CPLErr)GDALRasterBandShadow_SetDefaultHistogram(arg1,arg2,arg3,arg4,arg5);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Band_has_arbitrary_overviews(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","HasArbitraryOverviews", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- {
- CPLErrorReset();
- result = (bool)GDALRasterBandShadow_HasArbitraryOverviews(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-swig_class SwigClassColorTable;
-
-#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
-SWIGINTERN VALUE
-_wrap_ColorTable_allocate(VALUE self) {
-#else
- SWIGINTERN VALUE
- _wrap_ColorTable_allocate(int argc, VALUE *argv, VALUE self) {
-#endif
-
-
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_GDALColorTableShadow);
-#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
- rb_obj_call_init(vresult, argc, argv);
-#endif
- return vresult;
- }
-
-
-SWIGINTERN VALUE
-_wrap_new_ColorTable(int argc, VALUE *argv, VALUE self) {
- GDALPaletteInterp arg1 = (GDALPaletteInterp) GPI_RGB ;
- char *kwnames[] = {
- "palette", NULL
- };
- GDALColorTableShadow *result = 0 ;
-
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- if (argc > 0) {
- {
- /* %typemap(in) CPLErr */
- arg1 = (GDALPaletteInterp) NUM2INT(argv[0]);
- }
- }
- {
- CPLErrorReset();
- result = (GDALColorTableShadow *)new_GDALColorTableShadow(arg1);
- DATA_PTR(self) = result;
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return self;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN void delete_GDALColorTableShadow(GDALColorTableShadow *self){
- GDALDestroyColorTable(self);
- }
-SWIGINTERN void
-free_GDALColorTableShadow(GDALColorTableShadow *arg1) {
- delete_GDALColorTableShadow(arg1);
-}
-
-SWIGINTERN VALUE
-_wrap_ColorTable_clone(int argc, VALUE *argv, VALUE self) {
- GDALColorTableShadow *arg1 = (GDALColorTableShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- GDALColorTableShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALColorTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALColorTableShadow *","Clone", 1, self ));
- }
- arg1 = reinterpret_cast< GDALColorTableShadow * >(argp1);
- {
- CPLErrorReset();
- result = (GDALColorTableShadow *)GDALColorTableShadow_Clone(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALColorTableShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_ColorTable_get_palette_interpretation(int argc, VALUE *argv, VALUE self) {
- GDALColorTableShadow *arg1 = (GDALColorTableShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- GDALPaletteInterp result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALColorTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALColorTableShadow *","GetPaletteInterpretation", 1, self ));
- }
- arg1 = reinterpret_cast< GDALColorTableShadow * >(argp1);
- {
- CPLErrorReset();
- result = (GDALPaletteInterp)GDALColorTableShadow_GetPaletteInterpretation(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_ColorTable_get_count(int argc, VALUE *argv, VALUE self) {
- GDALColorTableShadow *arg1 = (GDALColorTableShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALColorTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALColorTableShadow *","GetColorEntryCount", 1, self ));
- }
- arg1 = reinterpret_cast< GDALColorTableShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)GDALColorTableShadow_GetColorEntryCount(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_ColorTable_get_color_entry(int argc, VALUE *argv, VALUE self) {
- GDALColorTableShadow *arg1 = (GDALColorTableShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- GDALColorEntry *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALColorTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALColorTableShadow *","GetColorEntry", 1, self ));
- }
- arg1 = reinterpret_cast< GDALColorTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetColorEntry", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (GDALColorEntry *)GDALColorTableShadow_GetColorEntry(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALColorEntry, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_ColorTable_get_color_entry_as_rgb(int argc, VALUE *argv, VALUE self) {
- GDALColorTableShadow *arg1 = (GDALColorTableShadow *) 0 ;
- int arg2 ;
- GDALColorEntry *arg3 = (GDALColorEntry *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALColorTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALColorTableShadow *","GetColorEntryAsRGB", 1, self ));
- }
- arg1 = reinterpret_cast< GDALColorTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetColorEntryAsRGB", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_GDALColorEntry, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "GDALColorEntry *","GetColorEntryAsRGB", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< GDALColorEntry * >(argp3);
- {
- CPLErrorReset();
- result = (int)GDALColorTableShadow_GetColorEntryAsRGB(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_ColorTable_set_color_entry(int argc, VALUE *argv, VALUE self) {
- GDALColorTableShadow *arg1 = (GDALColorTableShadow *) 0 ;
- int arg2 ;
- GDALColorEntry *arg3 = (GDALColorEntry *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALColorTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALColorTableShadow *","SetColorEntry", 1, self ));
- }
- arg1 = reinterpret_cast< GDALColorTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetColorEntry", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_GDALColorEntry, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "GDALColorEntry const *","SetColorEntry", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< GDALColorEntry * >(argp3);
- {
- CPLErrorReset();
- GDALColorTableShadow_SetColorEntry(arg1,arg2,(GDALColorEntry const *)arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_ColorTable_create_color_ramp(int argc, VALUE *argv, VALUE self) {
- GDALColorTableShadow *arg1 = (GDALColorTableShadow *) 0 ;
- int arg2 ;
- GDALColorEntry *arg3 = (GDALColorEntry *) 0 ;
- int arg4 ;
- GDALColorEntry *arg5 = (GDALColorEntry *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- void *argp5 = 0 ;
- int res5 = 0 ;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALColorTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALColorTableShadow *","CreateColorRamp", 1, self ));
- }
- arg1 = reinterpret_cast< GDALColorTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","CreateColorRamp", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_GDALColorEntry, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "GDALColorEntry const *","CreateColorRamp", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< GDALColorEntry * >(argp3);
- ecode4 = SWIG_AsVal_int(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","CreateColorRamp", 4, argv[2] ));
- }
- arg4 = static_cast< int >(val4);
- res5 = SWIG_ConvertPtr(argv[3], &argp5,SWIGTYPE_p_GDALColorEntry, 0 | 0 );
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "GDALColorEntry const *","CreateColorRamp", 5, argv[3] ));
- }
- arg5 = reinterpret_cast< GDALColorEntry * >(argp5);
- {
- CPLErrorReset();
- GDALColorTableShadow_CreateColorRamp(arg1,arg2,(GDALColorEntry const *)arg3,arg4,(GDALColorEntry const *)arg5);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-swig_class SwigClassRasterAttributeTable;
-
-#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_allocate(VALUE self) {
-#else
- SWIGINTERN VALUE
- _wrap_RasterAttributeTable_allocate(int argc, VALUE *argv, VALUE self) {
-#endif
-
-
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_GDALRasterAttributeTableShadow);
-#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
- rb_obj_call_init(vresult, argc, argv);
-#endif
- return vresult;
- }
-
-
-SWIGINTERN VALUE
-_wrap_new_RasterAttributeTable(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *result = 0 ;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- result = (GDALRasterAttributeTableShadow *)new_GDALRasterAttributeTableShadow();
- DATA_PTR(self) = result;
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return self;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN void delete_GDALRasterAttributeTableShadow(GDALRasterAttributeTableShadow *self){
- GDALDestroyRasterAttributeTable(self);
- }
-SWIGINTERN void
-free_GDALRasterAttributeTableShadow(GDALRasterAttributeTableShadow *arg1) {
- delete_GDALRasterAttributeTableShadow(arg1);
-}
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_clone(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- GDALRasterAttributeTableShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","Clone", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- {
- CPLErrorReset();
- result = (GDALRasterAttributeTableShadow *)GDALRasterAttributeTableShadow_Clone(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALRasterAttributeTableShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_get_column_count(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","GetColumnCount", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)GDALRasterAttributeTableShadow_GetColumnCount(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_get_name_of_col(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","GetNameOfCol", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetNameOfCol", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (char *)GDALRasterAttributeTableShadow_GetNameOfCol(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_get_usage_of_col(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- GDALRATFieldUsage result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","GetUsageOfCol", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetUsageOfCol", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (GDALRATFieldUsage)GDALRasterAttributeTableShadow_GetUsageOfCol(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_get_type_of_col(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- GDALRATFieldType result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","GetTypeOfCol", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetTypeOfCol", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (GDALRATFieldType)GDALRasterAttributeTableShadow_GetTypeOfCol(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_get_col_of_usage(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- GDALRATFieldUsage arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","GetColOfUsage", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "GDALRATFieldUsage","GetColOfUsage", 2, argv[0] ));
- }
- arg2 = static_cast< GDALRATFieldUsage >(val2);
- {
- CPLErrorReset();
- result = (int)GDALRasterAttributeTableShadow_GetColOfUsage(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_get_row_count(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","GetRowCount", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)GDALRasterAttributeTableShadow_GetRowCount(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_get_value_as_string(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- int arg2 ;
- int arg3 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","GetValueAsString", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetValueAsString", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","GetValueAsString", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- {
- CPLErrorReset();
- result = (char *)GDALRasterAttributeTableShadow_GetValueAsString(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_get_value_as_int(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- int arg2 ;
- int arg3 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","GetValueAsInt", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetValueAsInt", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","GetValueAsInt", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- {
- CPLErrorReset();
- result = (int)GDALRasterAttributeTableShadow_GetValueAsInt(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_get_value_as_double(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- int arg2 ;
- int arg3 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","GetValueAsDouble", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetValueAsDouble", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","GetValueAsDouble", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- {
- CPLErrorReset();
- result = (double)GDALRasterAttributeTableShadow_GetValueAsDouble(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_set_value_as_string(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- int arg2 ;
- int arg3 ;
- char *arg4 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- int res4 ;
- char *buf4 = 0 ;
- int alloc4 = 0 ;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","SetValueAsString", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetValueAsString", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","SetValueAsString", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- res4 = SWIG_AsCharPtrAndSize(argv[2], &buf4, NULL, &alloc4);
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","SetValueAsString", 4, argv[2] ));
- }
- arg4 = reinterpret_cast< char * >(buf4);
- {
- CPLErrorReset();
- GDALRasterAttributeTableShadow_SetValueAsString(arg1,arg2,arg3,(char const *)arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- return Qnil;
-fail:
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_set_value_as_int(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- int arg2 ;
- int arg3 ;
- int arg4 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","SetValueAsInt", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetValueAsInt", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","SetValueAsInt", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- ecode4 = SWIG_AsVal_int(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","SetValueAsInt", 4, argv[2] ));
- }
- arg4 = static_cast< int >(val4);
- {
- CPLErrorReset();
- GDALRasterAttributeTableShadow_SetValueAsInt(arg1,arg2,arg3,arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_set_value_as_double(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- int arg2 ;
- int arg3 ;
- double arg4 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","SetValueAsDouble", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetValueAsDouble", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","SetValueAsDouble", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetValueAsDouble", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- {
- CPLErrorReset();
- GDALRasterAttributeTableShadow_SetValueAsDouble(arg1,arg2,arg3,arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_set_row_count(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","SetRowCount", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetRowCount", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- GDALRasterAttributeTableShadow_SetRowCount(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_create_column(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- GDALRATFieldType arg3 ;
- GDALRATFieldUsage arg4 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","CreateColumn", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","CreateColumn", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "GDALRATFieldType","CreateColumn", 3, argv[1] ));
- }
- arg3 = static_cast< GDALRATFieldType >(val3);
- ecode4 = SWIG_AsVal_int(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "GDALRATFieldUsage","CreateColumn", 4, argv[2] ));
- }
- arg4 = static_cast< GDALRATFieldUsage >(val4);
- {
- CPLErrorReset();
- result = (int)GDALRasterAttributeTableShadow_CreateColumn(arg1,(char const *)arg2,arg3,arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_get_linear_binning(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- double *arg2 = (double *) 0 ;
- double *arg3 = (double *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double temp2 ;
- int res2 = SWIG_TMPOBJ ;
- double temp3 ;
- int res3 = SWIG_TMPOBJ ;
- bool result;
- VALUE vresult = Qnil;
-
- arg2 = &temp2;
- arg3 = &temp3;
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","GetLinearBinning", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- {
- CPLErrorReset();
- result = (bool)GDALRasterAttributeTableShadow_GetLinearBinning(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- if (SWIG_IsTmpObj(res2)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg2)));
- } else {
- int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
- }
- if (SWIG_IsTmpObj(res3)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg3)));
- } else {
- int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_set_linear_binning(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","SetLinearBinning", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetLinearBinning", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetLinearBinning", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- {
- CPLErrorReset();
- result = (int)GDALRasterAttributeTableShadow_SetLinearBinning(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_RasterAttributeTable_get_row_of_value(int argc, VALUE *argv, VALUE self) {
- GDALRasterAttributeTableShadow *arg1 = (GDALRasterAttributeTableShadow *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALRasterAttributeTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterAttributeTableShadow *","GetRowOfValue", 1, self ));
- }
- arg1 = reinterpret_cast< GDALRasterAttributeTableShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GetRowOfValue", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- {
- CPLErrorReset();
- result = (int)GDALRasterAttributeTableShadow_GetRowOfValue(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_TermProgress_nocb(int argc, VALUE *argv, VALUE self) {
- double arg1 ;
- char *arg2 = (char *) NULL ;
- void *arg3 = (void *) NULL ;
- double val1 ;
- int ecode1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int res3 ;
- char *kwnames[] = {
- "dfProgress","pszMessage","pData", NULL
- };
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- ecode1 = SWIG_AsVal_double(argv[0], &val1);
- if (!SWIG_IsOK(ecode1)) {
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","GDALTermProgress_nocb", 1, argv[0] ));
- }
- arg1 = static_cast< double >(val1);
- if (argc > 1) {
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GDALTermProgress_nocb", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- }
- if (argc > 2) {
- res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","GDALTermProgress_nocb", 3, argv[2] ));
- }
- }
- {
- CPLErrorReset();
- result = (int)GDALTermProgress_nocb(arg1,(char const *)arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_compute_median_cut_pct(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- GDALRasterBandShadow *arg2 = (GDALRasterBandShadow *) 0 ;
- GDALRasterBandShadow *arg3 = (GDALRasterBandShadow *) 0 ;
- int arg4 ;
- GDALColorTableShadow *arg5 = (GDALColorTableShadow *) 0 ;
- GDALProgressFunc arg6 = (GDALProgressFunc) NULL ;
- void *arg7 = (void *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- void *argp5 = 0 ;
- int res5 = 0 ;
- void *argp6 ;
- int res6 = 0 ;
- int res7 ;
- char *kwnames[] = {
- "red","green","blue","num_colors","colors","callback","callback_data", NULL
- };
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 5) || (argc > 7)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","ComputeMedianCutPCT", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","ComputeMedianCutPCT", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< GDALRasterBandShadow * >(argp2);
- res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","ComputeMedianCutPCT", 3, argv[2] ));
- }
- arg3 = reinterpret_cast< GDALRasterBandShadow * >(argp3);
- ecode4 = SWIG_AsVal_int(argv[3], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ComputeMedianCutPCT", 4, argv[3] ));
- }
- arg4 = static_cast< int >(val4);
- res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_GDALColorTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "GDALColorTableShadow *","ComputeMedianCutPCT", 5, argv[4] ));
- }
- arg5 = reinterpret_cast< GDALColorTableShadow * >(argp5);
- if (argc > 5) {
- {
- res6 = SWIG_ConvertPtr(argv[5], &argp6, SWIGTYPE_p_GDALProgressFunc, 0 );
- if (!SWIG_IsOK(res6)) {
- SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "GDALProgressFunc","ComputeMedianCutPCT", 6, argv[5] ));
- }
- if (!argp6) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GDALProgressFunc","ComputeMedianCutPCT", 6, argv[5]));
- } else {
- arg6 = *(reinterpret_cast< GDALProgressFunc * >(argp6));
- }
- }
- }
- if (argc > 6) {
- res7 = SWIG_ConvertPtr(argv[6],SWIG_as_voidptrptr(&arg7), 0, 0);
- if (!SWIG_IsOK(res7)) {
- SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "void *","ComputeMedianCutPCT", 7, argv[6] ));
- }
- }
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- if (!arg3) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- if (!arg5) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (int)ComputeMedianCutPCT(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_dither_rgb_2pct(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- GDALRasterBandShadow *arg2 = (GDALRasterBandShadow *) 0 ;
- GDALRasterBandShadow *arg3 = (GDALRasterBandShadow *) 0 ;
- GDALRasterBandShadow *arg4 = (GDALRasterBandShadow *) 0 ;
- GDALColorTableShadow *arg5 = (GDALColorTableShadow *) 0 ;
- GDALProgressFunc arg6 = (GDALProgressFunc) NULL ;
- void *arg7 = (void *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- void *argp4 = 0 ;
- int res4 = 0 ;
- void *argp5 = 0 ;
- int res5 = 0 ;
- void *argp6 ;
- int res6 = 0 ;
- int res7 ;
- char *kwnames[] = {
- "red","green","blue","target","colors","callback","callback_data", NULL
- };
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 5) || (argc > 7)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","DitherRGB2PCT", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","DitherRGB2PCT", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< GDALRasterBandShadow * >(argp2);
- res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","DitherRGB2PCT", 3, argv[2] ));
- }
- arg3 = reinterpret_cast< GDALRasterBandShadow * >(argp3);
- res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","DitherRGB2PCT", 4, argv[3] ));
- }
- arg4 = reinterpret_cast< GDALRasterBandShadow * >(argp4);
- res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_GDALColorTableShadow, 0 | 0 );
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "GDALColorTableShadow *","DitherRGB2PCT", 5, argv[4] ));
- }
- arg5 = reinterpret_cast< GDALColorTableShadow * >(argp5);
- if (argc > 5) {
- {
- res6 = SWIG_ConvertPtr(argv[5], &argp6, SWIGTYPE_p_GDALProgressFunc, 0 );
- if (!SWIG_IsOK(res6)) {
- SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "GDALProgressFunc","DitherRGB2PCT", 6, argv[5] ));
- }
- if (!argp6) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GDALProgressFunc","DitherRGB2PCT", 6, argv[5]));
- } else {
- arg6 = *(reinterpret_cast< GDALProgressFunc * >(argp6));
- }
- }
- }
- if (argc > 6) {
- res7 = SWIG_ConvertPtr(argv[6],SWIG_as_voidptrptr(&arg7), 0, 0);
- if (!SWIG_IsOK(res7)) {
- SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "void *","DitherRGB2PCT", 7, argv[6] ));
- }
- }
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- if (!arg3) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- if (!arg4) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- if (!arg5) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (int)DitherRGB2PCT(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_reproject_image(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- GDALDatasetShadow *arg2 = (GDALDatasetShadow *) 0 ;
- char *arg3 = (char *) NULL ;
- char *arg4 = (char *) NULL ;
- GDALResampleAlg arg5 = (GDALResampleAlg) GRA_NearestNeighbour ;
- double arg6 = (double) 0.0 ;
- double arg7 = (double) 0.0 ;
- GDALProgressFunc arg8 = (GDALProgressFunc) NULL ;
- void *arg9 = (void *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- int res4 ;
- char *buf4 = 0 ;
- int alloc4 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- double val7 ;
- int ecode7 = 0 ;
- void *argp8 ;
- int res8 = 0 ;
- int res9 ;
- CPLErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 9)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","ReprojectImage", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "GDALDatasetShadow *","ReprojectImage", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< GDALDatasetShadow * >(argp2);
- if (argc > 2) {
- res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","ReprojectImage", 3, argv[2] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- }
- if (argc > 3) {
- res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","ReprojectImage", 4, argv[3] ));
- }
- arg4 = reinterpret_cast< char * >(buf4);
- }
- if (argc > 4) {
- {
- /* %typemap(in) CPLErr */
- arg5 = (GDALResampleAlg) NUM2INT(argv[4]);
- }
- }
- if (argc > 5) {
- ecode6 = SWIG_AsVal_double(argv[5], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","ReprojectImage", 6, argv[5] ));
- }
- arg6 = static_cast< double >(val6);
- }
- if (argc > 6) {
- ecode7 = SWIG_AsVal_double(argv[6], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "double","ReprojectImage", 7, argv[6] ));
- }
- arg7 = static_cast< double >(val7);
- }
- if (argc > 7) {
- {
- res8 = SWIG_ConvertPtr(argv[7], &argp8, SWIGTYPE_p_GDALProgressFunc, 0 );
- if (!SWIG_IsOK(res8)) {
- SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "GDALProgressFunc","ReprojectImage", 8, argv[7] ));
- }
- if (!argp8) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GDALProgressFunc","ReprojectImage", 8, argv[7]));
- } else {
- arg8 = *(reinterpret_cast< GDALProgressFunc * >(argp8));
- }
- }
- }
- if (argc > 8) {
- res9 = SWIG_ConvertPtr(argv[8],SWIG_as_voidptrptr(&arg9), 0, 0);
- if (!SWIG_IsOK(res9)) {
- SWIG_exception_fail(SWIG_ArgError(res9), Ruby_Format_TypeError( "", "void *","ReprojectImage", 9, argv[8] ));
- }
- }
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (CPLErr)ReprojectImage(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,arg7,arg8,arg9);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- return vresult;
-fail:
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_compute_proximity(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- GDALRasterBandShadow *arg2 = (GDALRasterBandShadow *) 0 ;
- char **arg3 = (char **) NULL ;
- GDALProgressFunc arg4 = (GDALProgressFunc) NULL ;
- void *arg5 = (void *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- void *argp4 ;
- int res4 = 0 ;
- int res5 ;
- char *kwnames[] = {
- "srcBand","proximityBand","options","callback","callback_data", NULL
- };
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 5)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","ComputeProximity", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","ComputeProximity", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< GDALRasterBandShadow * >(argp2);
- if (argc > 2) {
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[2], T_ARRAY);
-
- int size = RARRAY(argv[2])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[2], i);
- char *pszItem = StringValuePtr(item);
- arg3 = CSLAddString( arg3, pszItem );
- }
- }
- }
- if (argc > 3) {
- {
- res4 = SWIG_ConvertPtr(argv[3], &argp4, SWIGTYPE_p_GDALProgressFunc, 0 );
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "GDALProgressFunc","ComputeProximity", 4, argv[3] ));
- }
- if (!argp4) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GDALProgressFunc","ComputeProximity", 4, argv[3]));
- } else {
- arg4 = *(reinterpret_cast< GDALProgressFunc * >(argp4));
- }
- }
- }
- if (argc > 4) {
- res5 = SWIG_ConvertPtr(argv[4],SWIG_as_voidptrptr(&arg5), 0, 0);
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "void *","ComputeProximity", 5, argv[4] ));
- }
- }
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (int)ComputeProximity(arg1,arg2,arg3,arg4,arg5);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg3 );
- }
- return vresult;
-fail:
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg3 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_rasterize_layer(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- int arg2 ;
- int *arg3 = (int *) 0 ;
- OGRLayerShadow *arg4 = (OGRLayerShadow *) 0 ;
- void *arg5 = (void *) NULL ;
- void *arg6 = (void *) NULL ;
- int arg7 = (int) 0 ;
- double *arg8 = (double *) NULL ;
- char **arg9 = (char **) NULL ;
- GDALProgressFunc arg10 = (GDALProgressFunc) NULL ;
- void *arg11 = (void *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp4 = 0 ;
- int res4 = 0 ;
- int res5 ;
- int res6 ;
- int val7 ;
- int ecode7 = 0 ;
- void *argp8 = 0 ;
- int res8 = 0 ;
- void *argp10 ;
- int res10 = 0 ;
- int res11 ;
- char *kwnames[] = {
- "dataset","bands","layer","pfnTransformer","pTransformArg","burn_values","burn_values_list","options","callback","callback_data", NULL
- };
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 10)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","RasterizeLayer", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- {
- /* %typemap(in,numinputs=1) (int nList, int* pList) */
-
- /* Make sure this is an array. */
- Check_Type(argv[1], T_ARRAY);
-
- /* Get the length */
- arg2 = RARRAY(argv[1])->len;
-
- /* Allocate space for the C array. */
- arg3 = (int*) malloc(arg2*sizeof(int));
-
- for( int i = 0; i<arg2; i++ ) {
- /* Get the Ruby Object */
- VALUE item = rb_ary_entry(argv[1],i);
- /* Conver to an integer */
- arg3[i] = NUM2INT(item);
- }
- }
- res4 = SWIG_ConvertPtr(argv[2], &argp4,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "OGRLayerShadow *","RasterizeLayer", 4, argv[2] ));
- }
- arg4 = reinterpret_cast< OGRLayerShadow * >(argp4);
- if (argc > 3) {
- res5 = SWIG_ConvertPtr(argv[3],SWIG_as_voidptrptr(&arg5), 0, 0);
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "void *","RasterizeLayer", 5, argv[3] ));
- }
- }
- if (argc > 4) {
- res6 = SWIG_ConvertPtr(argv[4],SWIG_as_voidptrptr(&arg6), 0, 0);
- if (!SWIG_IsOK(res6)) {
- SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "void *","RasterizeLayer", 6, argv[4] ));
- }
- }
- if (argc > 5) {
- ecode7 = SWIG_AsVal_int(argv[5], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","RasterizeLayer", 7, argv[5] ));
- }
- arg7 = static_cast< int >(val7);
- }
- if (argc > 6) {
- res8 = SWIG_ConvertPtr(argv[6], &argp8,SWIGTYPE_p_double, 0 | 0 );
- if (!SWIG_IsOK(res8)) {
- SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "double *","RasterizeLayer", 8, argv[6] ));
- }
- arg8 = reinterpret_cast< double * >(argp8);
- }
- if (argc > 7) {
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[7], T_ARRAY);
-
- int size = RARRAY(argv[7])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[7], i);
- char *pszItem = StringValuePtr(item);
- arg9 = CSLAddString( arg9, pszItem );
- }
- }
- }
- if (argc > 8) {
- {
- res10 = SWIG_ConvertPtr(argv[8], &argp10, SWIGTYPE_p_GDALProgressFunc, 0 );
- if (!SWIG_IsOK(res10)) {
- SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "GDALProgressFunc","RasterizeLayer", 10, argv[8] ));
- }
- if (!argp10) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GDALProgressFunc","RasterizeLayer", 10, argv[8]));
- } else {
- arg10 = *(reinterpret_cast< GDALProgressFunc * >(argp10));
- }
- }
- }
- if (argc > 9) {
- res11 = SWIG_ConvertPtr(argv[9],SWIG_as_voidptrptr(&arg11), 0, 0);
- if (!SWIG_IsOK(res11)) {
- SWIG_exception_fail(SWIG_ArgError(res11), Ruby_Format_TypeError( "", "void *","RasterizeLayer", 11, argv[9] ));
- }
- }
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- if (!arg4) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (int)RasterizeLayer(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- {
- /* %typemap(freearg) (int nList, int* pList) */
- if (arg3) {
- free((void*) arg3);
- }
- }
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg9 );
- }
- return vresult;
-fail:
- {
- /* %typemap(freearg) (int nList, int* pList) */
- if (arg3) {
- free((void*) arg3);
- }
- }
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg9 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_polygonize(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- GDALRasterBandShadow *arg2 = (GDALRasterBandShadow *) 0 ;
- OGRLayerShadow *arg3 = (OGRLayerShadow *) 0 ;
- int arg4 ;
- char **arg5 = (char **) NULL ;
- GDALProgressFunc arg6 = (GDALProgressFunc) NULL ;
- void *arg7 = (void *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- void *argp6 ;
- int res6 = 0 ;
- int res7 ;
- char *kwnames[] = {
- "srcBand","maskBand","outLayer","iPixValField","options","callback","callback_data", NULL
- };
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 7)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","Polygonize", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","Polygonize", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< GDALRasterBandShadow * >(argp2);
- res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "OGRLayerShadow *","Polygonize", 3, argv[2] ));
- }
- arg3 = reinterpret_cast< OGRLayerShadow * >(argp3);
- ecode4 = SWIG_AsVal_int(argv[3], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","Polygonize", 4, argv[3] ));
- }
- arg4 = static_cast< int >(val4);
- if (argc > 4) {
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[4], T_ARRAY);
-
- int size = RARRAY(argv[4])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[4], i);
- char *pszItem = StringValuePtr(item);
- arg5 = CSLAddString( arg5, pszItem );
- }
- }
- }
- if (argc > 5) {
- {
- res6 = SWIG_ConvertPtr(argv[5], &argp6, SWIGTYPE_p_GDALProgressFunc, 0 );
- if (!SWIG_IsOK(res6)) {
- SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "GDALProgressFunc","Polygonize", 6, argv[5] ));
- }
- if (!argp6) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GDALProgressFunc","Polygonize", 6, argv[5]));
- } else {
- arg6 = *(reinterpret_cast< GDALProgressFunc * >(argp6));
- }
- }
- }
- if (argc > 6) {
- res7 = SWIG_ConvertPtr(argv[6],SWIG_as_voidptrptr(&arg7), 0, 0);
- if (!SWIG_IsOK(res7)) {
- SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "void *","Polygonize", 7, argv[6] ));
- }
- }
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- if (!arg3) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (int)Polygonize(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg5 );
- }
- return vresult;
-fail:
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg5 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_fill_nodata(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- GDALRasterBandShadow *arg2 = (GDALRasterBandShadow *) 0 ;
- double arg3 ;
- int arg4 ;
- char **arg5 = (char **) NULL ;
- GDALProgressFunc arg6 = (GDALProgressFunc) NULL ;
- void *arg7 = (void *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- void *argp6 ;
- int res6 = 0 ;
- int res7 ;
- char *kwnames[] = {
- "targetBand","maskBand","maxSearchDist","smoothingIterations","options","callback","callback_data", NULL
- };
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 7)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","FillNodata", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","FillNodata", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< GDALRasterBandShadow * >(argp2);
- ecode3 = SWIG_AsVal_double(argv[2], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","FillNodata", 3, argv[2] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_int(argv[3], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","FillNodata", 4, argv[3] ));
- }
- arg4 = static_cast< int >(val4);
- if (argc > 4) {
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[4], T_ARRAY);
-
- int size = RARRAY(argv[4])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[4], i);
- char *pszItem = StringValuePtr(item);
- arg5 = CSLAddString( arg5, pszItem );
- }
- }
- }
- if (argc > 5) {
- {
- res6 = SWIG_ConvertPtr(argv[5], &argp6, SWIGTYPE_p_GDALProgressFunc, 0 );
- if (!SWIG_IsOK(res6)) {
- SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "GDALProgressFunc","FillNodata", 6, argv[5] ));
- }
- if (!argp6) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GDALProgressFunc","FillNodata", 6, argv[5]));
- } else {
- arg6 = *(reinterpret_cast< GDALProgressFunc * >(argp6));
- }
- }
- }
- if (argc > 6) {
- res7 = SWIG_ConvertPtr(argv[6],SWIG_as_voidptrptr(&arg7), 0, 0);
- if (!SWIG_IsOK(res7)) {
- SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "void *","FillNodata", 7, argv[6] ));
- }
- }
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (int)FillNodata(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg5 );
- }
- return vresult;
-fail:
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg5 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_sieve_filter(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- GDALRasterBandShadow *arg2 = (GDALRasterBandShadow *) 0 ;
- GDALRasterBandShadow *arg3 = (GDALRasterBandShadow *) 0 ;
- int arg4 ;
- int arg5 = (int) 4 ;
- char **arg6 = (char **) NULL ;
- GDALProgressFunc arg7 = (GDALProgressFunc) NULL ;
- void *arg8 = (void *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- int val5 ;
- int ecode5 = 0 ;
- void *argp7 ;
- int res7 = 0 ;
- int res8 ;
- char *kwnames[] = {
- "srcBand","maskBand","dstBand","threshold","connectedness","options","callback","callback_data", NULL
- };
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 8)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","SieveFilter", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","SieveFilter", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< GDALRasterBandShadow * >(argp2);
- res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","SieveFilter", 3, argv[2] ));
- }
- arg3 = reinterpret_cast< GDALRasterBandShadow * >(argp3);
- ecode4 = SWIG_AsVal_int(argv[3], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","SieveFilter", 4, argv[3] ));
- }
- arg4 = static_cast< int >(val4);
- if (argc > 4) {
- ecode5 = SWIG_AsVal_int(argv[4], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","SieveFilter", 5, argv[4] ));
- }
- arg5 = static_cast< int >(val5);
- }
- if (argc > 5) {
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[5], T_ARRAY);
-
- int size = RARRAY(argv[5])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[5], i);
- char *pszItem = StringValuePtr(item);
- arg6 = CSLAddString( arg6, pszItem );
- }
- }
- }
- if (argc > 6) {
- {
- res7 = SWIG_ConvertPtr(argv[6], &argp7, SWIGTYPE_p_GDALProgressFunc, 0 );
- if (!SWIG_IsOK(res7)) {
- SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "GDALProgressFunc","SieveFilter", 7, argv[6] ));
- }
- if (!argp7) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GDALProgressFunc","SieveFilter", 7, argv[6]));
- } else {
- arg7 = *(reinterpret_cast< GDALProgressFunc * >(argp7));
- }
- }
- }
- if (argc > 7) {
- res8 = SWIG_ConvertPtr(argv[7],SWIG_as_voidptrptr(&arg8), 0, 0);
- if (!SWIG_IsOK(res8)) {
- SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "void *","SieveFilter", 8, argv[7] ));
- }
- }
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- if (!arg3) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (int)SieveFilter(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg6 );
- }
- return vresult;
-fail:
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg6 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_regenerate_overviews(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- int arg2 ;
- GDALRasterBandShadow **arg3 = (GDALRasterBandShadow **) 0 ;
- char *arg4 = (char *) "average" ;
- GDALProgressFunc arg5 = (GDALProgressFunc) NULL ;
- void *arg6 = (void *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- int res4 ;
- char *buf4 = 0 ;
- int alloc4 = 0 ;
- void *argp5 ;
- int res5 = 0 ;
- int res6 ;
- char *kwnames[] = {
- "srcBand","overviewBandCount","overviewBands","resampling","callback","callback_data", NULL
- };
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 6)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","RegenerateOverviews", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","RegenerateOverviews", 2, argv[1] ));
- }
- arg2 = static_cast< int >(val2);
- res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "GDALRasterBandShadow **","RegenerateOverviews", 3, argv[2] ));
- }
- arg3 = reinterpret_cast< GDALRasterBandShadow ** >(argp3);
- if (argc > 3) {
- res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","RegenerateOverviews", 4, argv[3] ));
- }
- arg4 = reinterpret_cast< char * >(buf4);
- }
- if (argc > 4) {
- {
- res5 = SWIG_ConvertPtr(argv[4], &argp5, SWIGTYPE_p_GDALProgressFunc, 0 );
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "GDALProgressFunc","RegenerateOverviews", 5, argv[4] ));
- }
- if (!argp5) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GDALProgressFunc","RegenerateOverviews", 5, argv[4]));
- } else {
- arg5 = *(reinterpret_cast< GDALProgressFunc * >(argp5));
- }
- }
- }
- if (argc > 5) {
- res6 = SWIG_ConvertPtr(argv[5],SWIG_as_voidptrptr(&arg6), 0, 0);
- if (!SWIG_IsOK(res6)) {
- SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "void *","RegenerateOverviews", 6, argv[5] ));
- }
- }
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (int)RegenerateOverviews(arg1,arg2,arg3,(char const *)arg4,arg5,arg6);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- return vresult;
-fail:
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_regenerate_overview(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- GDALRasterBandShadow *arg2 = (GDALRasterBandShadow *) 0 ;
- char *arg3 = (char *) "average" ;
- GDALProgressFunc arg4 = (GDALProgressFunc) NULL ;
- void *arg5 = (void *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- void *argp4 ;
- int res4 = 0 ;
- int res5 ;
- char *kwnames[] = {
- "srcBand","overviewBand","resampling","callback","callback_data", NULL
- };
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 5)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","RegenerateOverview", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","RegenerateOverview", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< GDALRasterBandShadow * >(argp2);
- if (argc > 2) {
- res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","RegenerateOverview", 3, argv[2] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- }
- if (argc > 3) {
- {
- res4 = SWIG_ConvertPtr(argv[3], &argp4, SWIGTYPE_p_GDALProgressFunc, 0 );
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "GDALProgressFunc","RegenerateOverview", 4, argv[3] ));
- }
- if (!argp4) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GDALProgressFunc","RegenerateOverview", 4, argv[3]));
- } else {
- arg4 = *(reinterpret_cast< GDALProgressFunc * >(argp4));
- }
- }
- }
- if (argc > 4) {
- res5 = SWIG_ConvertPtr(argv[4],SWIG_as_voidptrptr(&arg5), 0, 0);
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "void *","RegenerateOverview", 5, argv[4] ));
- }
- }
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (int)RegenerateOverview(arg1,arg2,(char const *)arg3,arg4,arg5);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return vresult;
-fail:
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_contour_generate(int argc, VALUE *argv, VALUE self) {
- GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- int arg4 ;
- double *arg5 = (double *) 0 ;
- int arg6 ;
- double arg7 ;
- OGRLayerShadow *arg8 = (OGRLayerShadow *) 0 ;
- int arg9 ;
- int arg10 ;
- GDALProgressFunc arg11 = (GDALProgressFunc) NULL ;
- void *arg12 = (void *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- void *argp5 = 0 ;
- int res5 = 0 ;
- int val6 ;
- int ecode6 = 0 ;
- double val7 ;
- int ecode7 = 0 ;
- void *argp8 = 0 ;
- int res8 = 0 ;
- int val9 ;
- int ecode9 = 0 ;
- int val10 ;
- int ecode10 = 0 ;
- void *argp11 ;
- int res11 = 0 ;
- int res12 ;
- char *kwnames[] = {
- "srcBand","contourInterval","contourBase","fixedLevelCount","fixedLevels","useNoData","noDataValue","dstLayer","idField","elevField","callback","callback_data", NULL
- };
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 10) || (argc > 12)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 10)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALRasterBandShadow *","ContourGenerate", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDALRasterBandShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","ContourGenerate", 2, argv[1] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[2], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","ContourGenerate", 3, argv[2] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_int(argv[3], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ContourGenerate", 4, argv[3] ));
- }
- arg4 = static_cast< int >(val4);
- res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_double, 0 | 0 );
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "double *","ContourGenerate", 5, argv[4] ));
- }
- arg5 = reinterpret_cast< double * >(argp5);
- ecode6 = SWIG_AsVal_int(argv[5], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","ContourGenerate", 6, argv[5] ));
- }
- arg6 = static_cast< int >(val6);
- ecode7 = SWIG_AsVal_double(argv[6], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "double","ContourGenerate", 7, argv[6] ));
- }
- arg7 = static_cast< double >(val7);
- res8 = SWIG_ConvertPtr(argv[7], &argp8,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res8)) {
- SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "OGRLayerShadow *","ContourGenerate", 8, argv[7] ));
- }
- arg8 = reinterpret_cast< OGRLayerShadow * >(argp8);
- ecode9 = SWIG_AsVal_int(argv[8], &val9);
- if (!SWIG_IsOK(ecode9)) {
- SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "int","ContourGenerate", 9, argv[8] ));
- }
- arg9 = static_cast< int >(val9);
- ecode10 = SWIG_AsVal_int(argv[9], &val10);
- if (!SWIG_IsOK(ecode10)) {
- SWIG_exception_fail(SWIG_ArgError(ecode10), Ruby_Format_TypeError( "", "int","ContourGenerate", 10, argv[9] ));
- }
- arg10 = static_cast< int >(val10);
- if (argc > 10) {
- {
- res11 = SWIG_ConvertPtr(argv[10], &argp11, SWIGTYPE_p_GDALProgressFunc, 0 );
- if (!SWIG_IsOK(res11)) {
- SWIG_exception_fail(SWIG_ArgError(res11), Ruby_Format_TypeError( "", "GDALProgressFunc","ContourGenerate", 11, argv[10] ));
- }
- if (!argp11) {
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "GDALProgressFunc","ContourGenerate", 11, argv[10]));
- } else {
- arg11 = *(reinterpret_cast< GDALProgressFunc * >(argp11));
- }
- }
- }
- if (argc > 11) {
- res12 = SWIG_ConvertPtr(argv[11],SWIG_as_voidptrptr(&arg12), 0, 0);
- if (!SWIG_IsOK(res12)) {
- SWIG_exception_fail(SWIG_ArgError(res12), Ruby_Format_TypeError( "", "void *","ContourGenerate", 12, argv[11] ));
- }
- }
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- if (!arg8) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (int)ContourGenerate(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_auto_create_warped_vrt(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- GDALResampleAlg arg4 = (GDALResampleAlg) GRA_NearestNeighbour ;
- double arg5 = (double) 0.0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- GDALDatasetShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 5)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","AutoCreateWarpedVRT", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- if (argc > 1) {
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","AutoCreateWarpedVRT", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- }
- if (argc > 2) {
- res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","AutoCreateWarpedVRT", 3, argv[2] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- }
- if (argc > 3) {
- {
- /* %typemap(in) CPLErr */
- arg4 = (GDALResampleAlg) NUM2INT(argv[3]);
- }
- }
- if (argc > 4) {
- ecode5 = SWIG_AsVal_double(argv[4], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","AutoCreateWarpedVRT", 5, argv[4] ));
- }
- arg5 = static_cast< double >(val5);
- }
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (GDALDatasetShadow *)AutoCreateWarpedVRT(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALDatasetShadow, SWIG_POINTER_OWN | 0 );
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return Qnil;
-}
-
-
-swig_class SwigClassTransformer;
-
-#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
-SWIGINTERN VALUE
-_wrap_Transformer_allocate(VALUE self) {
-#else
- SWIGINTERN VALUE
- _wrap_Transformer_allocate(int argc, VALUE *argv, VALUE self) {
-#endif
-
-
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_GDALTransformerInfoShadow);
-#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
- rb_obj_call_init(vresult, argc, argv);
-#endif
- return vresult;
- }
-
-
-SWIGINTERN VALUE
-_wrap_new_Transformer(int argc, VALUE *argv, VALUE self) {
- GDALDatasetShadow *arg1 = (GDALDatasetShadow *) 0 ;
- GDALDatasetShadow *arg2 = (GDALDatasetShadow *) 0 ;
- char **arg3 = (char **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- GDALTransformerInfoShadow *result = 0 ;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALDatasetShadow *","GDALTransformerInfoShadow", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< GDALDatasetShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "GDALDatasetShadow *","GDALTransformerInfoShadow", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< GDALDatasetShadow * >(argp2);
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[2], T_ARRAY);
-
- int size = RARRAY(argv[2])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[2], i);
- char *pszItem = StringValuePtr(item);
- arg3 = CSLAddString( arg3, pszItem );
- }
- }
- {
- CPLErrorReset();
- result = (GDALTransformerInfoShadow *)new_GDALTransformerInfoShadow(arg1,arg2,arg3);
- DATA_PTR(self) = result;
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg3 );
- }
- return self;
-fail:
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg3 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN void delete_GDALTransformerInfoShadow(GDALTransformerInfoShadow *self){
- GDALDestroyTransformer( self );
- }
-SWIGINTERN void
-free_GDALTransformerInfoShadow(GDALTransformerInfoShadow *arg1) {
- delete_GDALTransformerInfoShadow(arg1);
-}
-
-SWIGINTERN VALUE
-_wrap_Transformer_transform_point__SWIG_0(int argc, VALUE *argv, VALUE self) {
- GDALTransformerInfoShadow *arg1 = (GDALTransformerInfoShadow *) 0 ;
- int arg2 ;
- double *arg3 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- double temp3[3] ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALTransformerInfoShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALTransformerInfoShadow *","TransformPoint", 1, self ));
- }
- arg1 = reinterpret_cast< GDALTransformerInfoShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","TransformPoint", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- /* %typemap(in) (double argin[ANY]) (double temp3[3]) */
- /* Make sure this is an array. */
- Check_Type(argv[1], T_ARRAY);
-
- /* Get the length */
- int seq_size = RARRAY(argv[1])->len;
-
- if ( seq_size != 3 ) {
- rb_raise(rb_eRangeError, "sequence must have length %i.", seq_size);
- }
-
- for( int i = 0; i<3; i++ ) {
- /* Get the Ruby Object */
- VALUE item = rb_ary_entry(argv[1],i);
-
- /* Convert to double and store in array*/
- temp3[i] = NUM2DBL(item);
- }
-
- /* Set argument arg3 equal to the temp3 array */
- arg3 = temp3;
- }
- {
- CPLErrorReset();
- result = (int)GDALTransformerInfoShadow_TransformPoint__SWIG_0(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- {
- /* %typemap(argout) (double argout[ANY]) */
- VALUE outArr = rb_ary_new();
-
- for(int i=0; i<3; i++)
- {
- VALUE value = rb_float_new((arg3)[i]);
- rb_ary_push(outArr, value);
- }
-
- /* Add the output to the result */
- vresult = SWIG_Ruby_AppendOutput(vresult, outArr);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Transformer_transform_point__SWIG_1(int argc, VALUE *argv, VALUE self) {
- GDALTransformerInfoShadow *arg1 = (GDALTransformerInfoShadow *) 0 ;
- double *arg2 ;
- int arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 = (double) 0.0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double argout2[3] ;
- int val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double argout2[ANY]) */
- arg2 = argout2;
- }
- if ((argc < 3) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALTransformerInfoShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALTransformerInfoShadow *","TransformPoint", 1, self ));
- }
- arg1 = reinterpret_cast< GDALTransformerInfoShadow * >(argp1);
- ecode3 = SWIG_AsVal_int(argv[0], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","TransformPoint", 3, argv[0] ));
- }
- arg3 = static_cast< int >(val3);
- ecode4 = SWIG_AsVal_double(argv[1], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","TransformPoint", 4, argv[1] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[2], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","TransformPoint", 5, argv[2] ));
- }
- arg5 = static_cast< double >(val5);
- if (argc > 3) {
- ecode6 = SWIG_AsVal_double(argv[3], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","TransformPoint", 6, argv[3] ));
- }
- arg6 = static_cast< double >(val6);
- }
- {
- CPLErrorReset();
- result = (int)GDALTransformerInfoShadow_TransformPoint__SWIG_1(arg1,arg2,arg3,arg4,arg5,arg6);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- {
- /* %typemap(argout) (double argout[ANY]) */
- VALUE outArr = rb_ary_new();
-
- for(int i=0; i<3; i++)
- {
- VALUE value = rb_float_new((arg2)[i]);
- rb_ary_push(outArr, value);
- }
-
- /* Add the output to the result */
- vresult = SWIG_Ruby_AppendOutput(vresult, outArr);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE _wrap_Transformer_transform_point(int nargs, VALUE *args, VALUE self) {
- int argc;
- VALUE argv[6];
- int ii;
-
- argc = nargs + 1;
- argv[0] = self;
- if (argc > 6) SWIG_fail;
- for (ii = 1; (ii < argc); ++ii) {
- argv[ii] = args[ii-1];
- }
- if (argc == 3) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDALTransformerInfoShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[1], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_double, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- return _wrap_Transformer_transform_point__SWIG_0(nargs, args, self);
- }
- }
- }
- }
- if ((argc >= 4) && (argc <= 5)) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDALTransformerInfoShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[1], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_double(argv[2], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_double(argv[3], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- if (argc <= 4) {
- return _wrap_Transformer_transform_point__SWIG_1(nargs, args, self);
- }
- {
- int res = SWIG_AsVal_double(argv[4], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- return _wrap_Transformer_transform_point__SWIG_1(nargs, args, self);
- }
- }
- }
- }
- }
- }
-
-fail:
- Ruby_Format_OverloadedError( argc, 6, "transform_point",
- " int transform_point(int bDstToSrc, double inout[3])\n"
- " int transform_point(double argout[3], int bDstToSrc, double x, double y, double z)\n");
-
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Transformer_transform_points(int argc, VALUE *argv, VALUE self) {
- GDALTransformerInfoShadow *arg1 = (GDALTransformerInfoShadow *) 0 ;
- int arg2 ;
- int arg3 ;
- double *arg4 = (double *) 0 ;
- double *arg5 = (double *) 0 ;
- double *arg6 = (double *) 0 ;
- int *arg7 = (int *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- void *argp4 = 0 ;
- int res4 = 0 ;
- void *argp5 = 0 ;
- int res5 = 0 ;
- void *argp6 = 0 ;
- int res6 = 0 ;
- void *argp7 = 0 ;
- int res7 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 6) || (argc > 6)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_GDALTransformerInfoShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "GDALTransformerInfoShadow *","TransformPoints", 1, self ));
- }
- arg1 = reinterpret_cast< GDALTransformerInfoShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","TransformPoints", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","TransformPoints", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- res4 = SWIG_ConvertPtr(argv[2], &argp4,SWIGTYPE_p_double, 0 | 0 );
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "double *","TransformPoints", 4, argv[2] ));
- }
- arg4 = reinterpret_cast< double * >(argp4);
- res5 = SWIG_ConvertPtr(argv[3], &argp5,SWIGTYPE_p_double, 0 | 0 );
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "double *","TransformPoints", 5, argv[3] ));
- }
- arg5 = reinterpret_cast< double * >(argp5);
- res6 = SWIG_ConvertPtr(argv[4], &argp6,SWIGTYPE_p_double, 0 | 0 );
- if (!SWIG_IsOK(res6)) {
- SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "double *","TransformPoints", 6, argv[4] ));
- }
- arg6 = reinterpret_cast< double * >(argp6);
- res7 = SWIG_ConvertPtr(argv[5], &argp7,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res7)) {
- SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "int *","TransformPoints", 7, argv[5] ));
- }
- arg7 = reinterpret_cast< int * >(argp7);
- {
- CPLErrorReset();
- result = (int)GDALTransformerInfoShadow_TransformPoints(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdalapply_geo_transform(int argc, VALUE *argv, VALUE self) {
- double *arg1 ;
- double arg2 ;
- double arg3 ;
- double *arg4 = (double *) 0 ;
- double *arg5 = (double *) 0 ;
- double temp1[6] ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double temp4 ;
- int res4 = SWIG_TMPOBJ ;
- double temp5 ;
- int res5 = SWIG_TMPOBJ ;
- VALUE vresult = Qnil;
-
- arg4 = &temp4;
- arg5 = &temp5;
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- {
- /* %typemap(in) (double argin[ANY]) (double temp1[6]) */
- /* Make sure this is an array. */
- Check_Type(argv[0], T_ARRAY);
-
- /* Get the length */
- int seq_size = RARRAY(argv[0])->len;
-
- if ( seq_size != 6 ) {
- rb_raise(rb_eRangeError, "sequence must have length %i.", seq_size);
- }
-
- for( int i = 0; i<6; i++ ) {
- /* Get the Ruby Object */
- VALUE item = rb_ary_entry(argv[0],i);
-
- /* Convert to double and store in array*/
- temp1[i] = NUM2DBL(item);
- }
-
- /* Set argument arg1 equal to the temp1 array */
- arg1 = temp1;
- }
- ecode2 = SWIG_AsVal_double(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","GDALApplyGeoTransform", 2, argv[1] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[2], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","GDALApplyGeoTransform", 3, argv[2] ));
- }
- arg3 = static_cast< double >(val3);
- {
- CPLErrorReset();
- GDALApplyGeoTransform(arg1,arg2,arg3,arg4,arg5);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = rb_ary_new();
- if (SWIG_IsTmpObj(res4)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg4)));
- } else {
- int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
- }
- if (SWIG_IsTmpObj(res5)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg5)));
- } else {
- int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdalinv_geo_transform(int argc, VALUE *argv, VALUE self) {
- double *arg1 ;
- double *arg2 ;
- double temp1[6] ;
- double argout2[6] ;
- int result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double argout2[ANY]) */
- arg2 = argout2;
- }
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- /* %typemap(in) (double argin[ANY]) (double temp1[6]) */
- /* Make sure this is an array. */
- Check_Type(argv[0], T_ARRAY);
-
- /* Get the length */
- int seq_size = RARRAY(argv[0])->len;
-
- if ( seq_size != 6 ) {
- rb_raise(rb_eRangeError, "sequence must have length %i.", seq_size);
- }
-
- for( int i = 0; i<6; i++ ) {
- /* Get the Ruby Object */
- VALUE item = rb_ary_entry(argv[0],i);
-
- /* Convert to double and store in array*/
- temp1[i] = NUM2DBL(item);
- }
-
- /* Set argument arg1 equal to the temp1 array */
- arg1 = temp1;
- }
- {
- CPLErrorReset();
- result = (int)GDALInvGeoTransform(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- {
- /* %typemap(argout) (double argout[ANY]) */
- VALUE outArr = rb_ary_new();
-
- for(int i=0; i<6; i++)
- {
- VALUE value = rb_float_new((arg2)[i]);
- rb_ary_push(outArr, value);
- }
-
- /* Add the output to the result */
- vresult = SWIG_Ruby_AppendOutput(vresult, outArr);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdalversion_info(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) "VERSION_NUM" ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- if (argc > 0) {
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","GDALVersionInfo", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- }
- {
- CPLErrorReset();
- result = (char *)GDALVersionInfo((char const *)arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_all_register(int argc, VALUE *argv, VALUE self) {
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- GDALAllRegister();
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_gdaldestroy_driver_manager(int argc, VALUE *argv, VALUE self) {
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- GDALDestroyDriverManager();
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_get_cache_max(int argc, VALUE *argv, VALUE self) {
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- result = (int)wrapper_GDALGetCacheMax();
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_get_cache_used(int argc, VALUE *argv, VALUE self) {
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- result = (int)wrapper_GDALGetCacheUsed();
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_set_cache_max(int argc, VALUE *argv, VALUE self) {
- int arg1 ;
- int val1 ;
- int ecode1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- ecode1 = SWIG_AsVal_int(argv[0], &val1);
- if (!SWIG_IsOK(ecode1)) {
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wrapper_GDALSetCacheMax", 1, argv[0] ));
- }
- arg1 = static_cast< int >(val1);
- {
- CPLErrorReset();
- wrapper_GDALSetCacheMax(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_get_data_type_size(int argc, VALUE *argv, VALUE self) {
- GDALDataType arg1 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- /* %typemap(in) CPLErr */
- arg1 = (GDALDataType) NUM2INT(argv[0]);
- }
- {
- CPLErrorReset();
- result = (int)GDALGetDataTypeSize(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_data_type_is_complex(int argc, VALUE *argv, VALUE self) {
- GDALDataType arg1 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- /* %typemap(in) CPLErr */
- arg1 = (GDALDataType) NUM2INT(argv[0]);
- }
- {
- CPLErrorReset();
- result = (int)GDALDataTypeIsComplex(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_get_data_type_name(int argc, VALUE *argv, VALUE self) {
- GDALDataType arg1 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- /* %typemap(in) CPLErr */
- arg1 = (GDALDataType) NUM2INT(argv[0]);
- }
- {
- CPLErrorReset();
- result = (char *)GDALGetDataTypeName(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_get_data_type_by_name(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- GDALDataType result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","GDALGetDataTypeByName", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- {
- CPLErrorReset();
- result = (GDALDataType)GDALGetDataTypeByName((char const *)arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_get_color_interpretation_name(int argc, VALUE *argv, VALUE self) {
- GDALColorInterp arg1 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- /* %typemap(in) CPLErr */
- arg1 = (GDALColorInterp) NUM2INT(argv[0]);
- }
- {
- CPLErrorReset();
- result = (char *)GDALGetColorInterpretationName(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_get_palette_interpretation_name(int argc, VALUE *argv, VALUE self) {
- GDALPaletteInterp arg1 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- /* %typemap(in) CPLErr */
- arg1 = (GDALPaletteInterp) NUM2INT(argv[0]);
- }
- {
- CPLErrorReset();
- result = (char *)GDALGetPaletteInterpretationName(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_dec_to_dms(int argc, VALUE *argv, VALUE self) {
- double arg1 ;
- char *arg2 = (char *) 0 ;
- int arg3 = (int) 2 ;
- double val1 ;
- int ecode1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- ecode1 = SWIG_AsVal_double(argv[0], &val1);
- if (!SWIG_IsOK(ecode1)) {
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","GDALDecToDMS", 1, argv[0] ));
- }
- arg1 = static_cast< double >(val1);
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GDALDecToDMS", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- if (argc > 2) {
- ecode3 = SWIG_AsVal_int(argv[2], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","GDALDecToDMS", 3, argv[2] ));
- }
- arg3 = static_cast< int >(val3);
- }
- {
- CPLErrorReset();
- result = (char *)GDALDecToDMS(arg1,(char const *)arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_packed_dms_to_dec(int argc, VALUE *argv, VALUE self) {
- double arg1 ;
- double val1 ;
- int ecode1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- ecode1 = SWIG_AsVal_double(argv[0], &val1);
- if (!SWIG_IsOK(ecode1)) {
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","GDALPackedDMSToDec", 1, argv[0] ));
- }
- arg1 = static_cast< double >(val1);
- {
- CPLErrorReset();
- result = (double)GDALPackedDMSToDec(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_dec_to_packed_dms(int argc, VALUE *argv, VALUE self) {
- double arg1 ;
- double val1 ;
- int ecode1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- ecode1 = SWIG_AsVal_double(argv[0], &val1);
- if (!SWIG_IsOK(ecode1)) {
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","GDALDecToPackedDMS", 1, argv[0] ));
- }
- arg1 = static_cast< double >(val1);
- {
- CPLErrorReset();
- result = (double)GDALDecToPackedDMS(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_parse_xml_string(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- CPLXMLNode *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char *","CPLParseXMLString", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- {
- CPLErrorReset();
- result = (CPLXMLNode *)CPLParseXMLString(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) (CPLXMLNode*) */
-
- vresult = XMLTreeToRubyArray(result);
- }
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- {
- /* %typemap(ret) (CPLXMLNode*) */
- if ( result ) {
- CPLDestroyXMLNode( result );
- }
- } return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_serialize_xml_tree(int argc, VALUE *argv, VALUE self) {
- CPLXMLNode *arg1 = (CPLXMLNode *) 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- /* %typemap(in) (CPLXMLNode* xmlnode ) */
- arg1 = RubyArrayToXMLTree(argv[0]);
-
- if ( !arg1 ) {
- rb_raise(rb_eRuntimeError, "Could not convert Ruby Array to XML tree.");
- }
- }
- {
- CPLErrorReset();
- result = (char *)CPLSerializeXMLTree(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- {
- /* %typemap(freearg) (CPLXMLNode *xmlnode) */
-
- if ( arg1 ) {
- CPLDestroyXMLNode( arg1 );
- }
- }
- return vresult;
-fail:
- {
- /* %typemap(freearg) (CPLXMLNode *xmlnode) */
-
- if ( arg1 ) {
- CPLDestroyXMLNode( arg1 );
- }
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_get_driver_count(int argc, VALUE *argv, VALUE self) {
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- result = (int)GetDriverCount();
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_get_driver_by_name(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- GDALDriverShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","GetDriverByName", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (GDALDriverShadow *)GetDriverByName((char const *)arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALDriverShadow, 0 | 0 );
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_get_driver(int argc, VALUE *argv, VALUE self) {
- int arg1 ;
- int val1 ;
- int ecode1 = 0 ;
- GDALDriverShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- ecode1 = SWIG_AsVal_int(argv[0], &val1);
- if (!SWIG_IsOK(ecode1)) {
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","GetDriver", 1, argv[0] ));
- }
- arg1 = static_cast< int >(val1);
- {
- CPLErrorReset();
- result = (GDALDriverShadow *)GetDriver(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALDriverShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_open(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- GDALAccess arg2 = (GDALAccess) GA_ReadOnly ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- GDALDatasetShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","Open", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- if (argc > 1) {
- {
- /* %typemap(in) CPLErr */
- arg2 = (GDALAccess) NUM2INT(argv[1]);
- }
- }
- {
- CPLErrorReset();
- result = (GDALDatasetShadow *)Open((char const *)arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALDatasetShadow, SWIG_POINTER_OWN | 0 );
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_open_shared(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- GDALAccess arg2 = (GDALAccess) GA_ReadOnly ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- GDALDatasetShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","OpenShared", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- if (argc > 1) {
- {
- /* %typemap(in) CPLErr */
- arg2 = (GDALAccess) NUM2INT(argv[1]);
- }
- }
- {
- CPLErrorReset();
- result = (GDALDatasetShadow *)OpenShared((char const *)arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALDatasetShadow, SWIG_POINTER_OWN | 0 );
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_identify_driver(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- char **arg2 = (char **) NULL ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- GDALDriverShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","IdentifyDriver", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- if (argc > 1) {
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[1], T_ARRAY);
-
- int size = RARRAY(argv[1])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[1], i);
- char *pszItem = StringValuePtr(item);
- arg2 = CSLAddString( arg2, pszItem );
- }
- }
- }
- {
- CPLErrorReset();
- result = (GDALDriverShadow *)IdentifyDriver((char const *)arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDALDriverShadow, 0 | 0 );
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg2 );
- }
- return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg2 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_general_cmd_line_processor(int argc, VALUE *argv, VALUE self) {
- char **arg1 = (char **) 0 ;
- int arg2 = (int) 0 ;
- int val2 ;
- int ecode2 = 0 ;
- char **result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[0], T_ARRAY);
-
- int size = RARRAY(argv[0])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[0], i);
- char *pszItem = StringValuePtr(item);
- arg1 = CSLAddString( arg1, pszItem );
- }
- }
- if (argc > 1) {
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GeneralCmdLineProcessor", 2, argv[1] ));
- }
- arg2 = static_cast< int >(val2);
- }
- {
- CPLErrorReset();
- result = (char **)GeneralCmdLineProcessor(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) char **options */
-
- char **stringarray = result;
- if ( stringarray == NULL ) {
- vresult = Qnil;
- }
- else {
- int len = CSLCount( stringarray );
- vresult = rb_ary_new2( len );
- for ( int i = 0; i < len; ++i, ++stringarray ) {
- VALUE nm = rb_str_new2( *stringarray );
- rb_ary_push(vresult, nm);
- }
- }
- }
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg1 );
- }
- return vresult;
-fail:
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg1 );
- }
- return Qnil;
-}
-
-
-
-/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
-
-static void *_p_GDALDriverShadowTo_p_GDALMajorObjectShadow(void *x, int *SWIGUNUSEDPARM(newmemory)) {
- return (void *)((GDALMajorObjectShadow *) ((GDALDriverShadow *) x));
-}
-static void *_p_GDALDatasetShadowTo_p_GDALMajorObjectShadow(void *x, int *SWIGUNUSEDPARM(newmemory)) {
- return (void *)((GDALMajorObjectShadow *) ((GDALDatasetShadow *) x));
-}
-static void *_p_GDALRasterBandShadowTo_p_GDALMajorObjectShadow(void *x, int *SWIGUNUSEDPARM(newmemory)) {
- return (void *)((GDALMajorObjectShadow *) ((GDALRasterBandShadow *) x));
-}
-static swig_type_info _swigt__p_CPLErrorHandler = {"_p_CPLErrorHandler", "CPLErrorHandler *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_CPLXMLNode = {"_p_CPLXMLNode", "CPLXMLNode *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_GByte = {"_p_GByte", "GByte *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_GDALAsyncReaderShadow = {"_p_GDALAsyncReaderShadow", "GDALAsyncReaderShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_GDALColorEntry = {"_p_GDALColorEntry", "GDALColorEntry *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_GDALColorTableShadow = {"_p_GDALColorTableShadow", "GDALColorTableShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_GDALDatasetShadow = {"_p_GDALDatasetShadow", "GDALDatasetShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_GDALDriverShadow = {"_p_GDALDriverShadow", "GDALDriverShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_GDALMajorObjectShadow = {"_p_GDALMajorObjectShadow", "GDALMajorObjectShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_GDALProgressFunc = {"_p_GDALProgressFunc", "GDALProgressFunc *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_GDALRasterAttributeTableShadow = {"_p_GDALRasterAttributeTableShadow", "GDALRasterAttributeTableShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_GDALRasterBandShadow = {"_p_GDALRasterBandShadow", "GDALRasterBandShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_GDALTransformerInfoShadow = {"_p_GDALTransformerInfoShadow", "GDALTransformerInfoShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_GDAL_GCP = {"_p_GDAL_GCP", "GDAL_GCP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_OGRLayerShadow = {"_p_OGRLayerShadow", "OGRLayerShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_char = {"_p_char", "char *|retStringAndCPLFree *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_f_double_p_q_const__char_p_void__int = {"_p_f_double_p_q_const__char_p_void__int", "int (*)(double,char const *,void *)", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_int = {"_p_int", "CPLErr *|GDALRATFieldType *|int *|GDALColorInterp *|GDALAccess *|GDALPaletteInterp *|GDALDataType *|GDALAsyncStatusType *|GDALRATFieldUsage *|GDALResampleAlg *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_p_GDALRasterBandShadow = {"_p_p_GDALRasterBandShadow", "GDALRasterBandShadow **", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_p_GDAL_GCP = {"_p_p_GDAL_GCP", "GDAL_GCP **", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_p_int = {"_p_p_int", "int **", 0, 0, (void*)0, 0};
-
-static swig_type_info *swig_type_initial[] = {
- &_swigt__p_CPLErrorHandler,
- &_swigt__p_CPLXMLNode,
- &_swigt__p_GByte,
- &_swigt__p_GDALAsyncReaderShadow,
- &_swigt__p_GDALColorEntry,
- &_swigt__p_GDALColorTableShadow,
- &_swigt__p_GDALDatasetShadow,
- &_swigt__p_GDALDriverShadow,
- &_swigt__p_GDALMajorObjectShadow,
- &_swigt__p_GDALProgressFunc,
- &_swigt__p_GDALRasterAttributeTableShadow,
- &_swigt__p_GDALRasterBandShadow,
- &_swigt__p_GDALTransformerInfoShadow,
- &_swigt__p_GDAL_GCP,
- &_swigt__p_OGRLayerShadow,
- &_swigt__p_char,
- &_swigt__p_double,
- &_swigt__p_f_double_p_q_const__char_p_void__int,
- &_swigt__p_int,
- &_swigt__p_p_GDALRasterBandShadow,
- &_swigt__p_p_GDAL_GCP,
- &_swigt__p_p_char,
- &_swigt__p_p_int,
-};
-
-static swig_cast_info _swigc__p_CPLErrorHandler[] = { {&_swigt__p_CPLErrorHandler, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_CPLXMLNode[] = { {&_swigt__p_CPLXMLNode, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_GByte[] = { {&_swigt__p_GByte, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_GDALAsyncReaderShadow[] = { {&_swigt__p_GDALAsyncReaderShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_GDALColorEntry[] = { {&_swigt__p_GDALColorEntry, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_GDALColorTableShadow[] = { {&_swigt__p_GDALColorTableShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_GDALDatasetShadow[] = { {&_swigt__p_GDALDatasetShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_GDALDriverShadow[] = { {&_swigt__p_GDALDriverShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_GDALMajorObjectShadow[] = { {&_swigt__p_GDALMajorObjectShadow, 0, 0, 0}, {&_swigt__p_GDALDriverShadow, _p_GDALDriverShadowTo_p_GDALMajorObjectShadow, 0, 0}, {&_swigt__p_GDALDatasetShadow, _p_GDALDatasetShadowTo_p_GDALMajorObjectShadow, 0, 0}, {&_swigt__p_GDALRasterBandShadow, _p_GDALRasterBandShadowTo_p_GDALMajorObjectShadow, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_GDALProgressFunc[] = { {&_swigt__p_GDALProgressFunc, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_GDALRasterAttributeTableShadow[] = { {&_swigt__p_GDALRasterAttributeTableShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_GDALRasterBandShadow[] = { {&_swigt__p_GDALRasterBandShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_GDALTransformerInfoShadow[] = { {&_swigt__p_GDALTransformerInfoShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_GDAL_GCP[] = { {&_swigt__p_GDAL_GCP, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_OGRLayerShadow[] = { {&_swigt__p_OGRLayerShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_f_double_p_q_const__char_p_void__int[] = { {&_swigt__p_f_double_p_q_const__char_p_void__int, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_p_GDALRasterBandShadow[] = { {&_swigt__p_p_GDALRasterBandShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_p_GDAL_GCP[] = { {&_swigt__p_p_GDAL_GCP, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_p_int[] = { {&_swigt__p_p_int, 0, 0, 0},{0, 0, 0, 0}};
-
-static swig_cast_info *swig_cast_initial[] = {
- _swigc__p_CPLErrorHandler,
- _swigc__p_CPLXMLNode,
- _swigc__p_GByte,
- _swigc__p_GDALAsyncReaderShadow,
- _swigc__p_GDALColorEntry,
- _swigc__p_GDALColorTableShadow,
- _swigc__p_GDALDatasetShadow,
- _swigc__p_GDALDriverShadow,
- _swigc__p_GDALMajorObjectShadow,
- _swigc__p_GDALProgressFunc,
- _swigc__p_GDALRasterAttributeTableShadow,
- _swigc__p_GDALRasterBandShadow,
- _swigc__p_GDALTransformerInfoShadow,
- _swigc__p_GDAL_GCP,
- _swigc__p_OGRLayerShadow,
- _swigc__p_char,
- _swigc__p_double,
- _swigc__p_f_double_p_q_const__char_p_void__int,
- _swigc__p_int,
- _swigc__p_p_GDALRasterBandShadow,
- _swigc__p_p_GDAL_GCP,
- _swigc__p_p_char,
- _swigc__p_p_int,
-};
-
-
-/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
-
-/* -----------------------------------------------------------------------------
- * Type initialization:
- * This problem is tough by the requirement that no dynamic
- * memory is used. Also, since swig_type_info structures store pointers to
- * swig_cast_info structures and swig_cast_info structures store pointers back
- * to swig_type_info structures, we need some lookup code at initialization.
- * The idea is that swig generates all the structures that are needed.
- * The runtime then collects these partially filled structures.
- * The SWIG_InitializeModule function takes these initial arrays out of
- * swig_module, and does all the lookup, filling in the swig_module.types
- * array with the correct data and linking the correct swig_cast_info
- * structures together.
- *
- * The generated swig_type_info structures are assigned staticly to an initial
- * array. We just loop through that array, and handle each type individually.
- * First we lookup if this type has been already loaded, and if so, use the
- * loaded structure instead of the generated one. Then we have to fill in the
- * cast linked list. The cast data is initially stored in something like a
- * two-dimensional array. Each row corresponds to a type (there are the same
- * number of rows as there are in the swig_type_initial array). Each entry in
- * a column is one of the swig_cast_info structures for that type.
- * The cast_initial array is actually an array of arrays, because each row has
- * a variable number of columns. So to actually build the cast linked list,
- * we find the array of casts associated with the type, and loop through it
- * adding the casts to the list. The one last trick we need to do is making
- * sure the type pointer in the swig_cast_info struct is correct.
- *
- * First off, we lookup the cast->type name to see if it is already loaded.
- * There are three cases to handle:
- * 1) If the cast->type has already been loaded AND the type we are adding
- * casting info to has not been loaded (it is in this module), THEN we
- * replace the cast->type pointer with the type pointer that has already
- * been loaded.
- * 2) If BOTH types (the one we are adding casting info to, and the
- * cast->type) are loaded, THEN the cast info has already been loaded by
- * the previous module so we just ignore it.
- * 3) Finally, if cast->type has not already been loaded, then we add that
- * swig_cast_info to the linked list (because the cast->type) pointer will
- * be correct.
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#if 0
-} /* c-mode */
-#endif
-#endif
-
-#if 0
-#define SWIGRUNTIME_DEBUG
-#endif
-
-
-SWIGRUNTIME void
-SWIG_InitializeModule(void *clientdata) {
- size_t i;
- swig_module_info *module_head, *iter;
- int found, init;
-
- clientdata = clientdata;
-
- /* check to see if the circular list has been setup, if not, set it up */
- if (swig_module.next==0) {
- /* Initialize the swig_module */
- swig_module.type_initial = swig_type_initial;
- swig_module.cast_initial = swig_cast_initial;
- swig_module.next = &swig_module;
- init = 1;
- } else {
- init = 0;
- }
-
- /* Try and load any already created modules */
- module_head = SWIG_GetModule(clientdata);
- if (!module_head) {
- /* This is the first module loaded for this interpreter */
- /* so set the swig module into the interpreter */
- SWIG_SetModule(clientdata, &swig_module);
- module_head = &swig_module;
- } else {
- /* the interpreter has loaded a SWIG module, but has it loaded this one? */
- found=0;
- iter=module_head;
- do {
- if (iter==&swig_module) {
- found=1;
- break;
- }
- iter=iter->next;
- } while (iter!= module_head);
-
- /* if the is found in the list, then all is done and we may leave */
- if (found) return;
- /* otherwise we must add out module into the list */
- swig_module.next = module_head->next;
- module_head->next = &swig_module;
- }
-
- /* When multiple interpeters are used, a module could have already been initialized in
- a different interpreter, but not yet have a pointer in this interpreter.
- In this case, we do not want to continue adding types... everything should be
- set up already */
- if (init == 0) return;
-
- /* Now work on filling in swig_module.types */
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: size %d\n", swig_module.size);
-#endif
- for (i = 0; i < swig_module.size; ++i) {
- swig_type_info *type = 0;
- swig_type_info *ret;
- swig_cast_info *cast;
-
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
-#endif
-
- /* if there is another module already loaded */
- if (swig_module.next != &swig_module) {
- type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
- }
- if (type) {
- /* Overwrite clientdata field */
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: found type %s\n", type->name);
-#endif
- if (swig_module.type_initial[i]->clientdata) {
- type->clientdata = swig_module.type_initial[i]->clientdata;
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
-#endif
- }
- } else {
- type = swig_module.type_initial[i];
- }
-
- /* Insert casting types */
- cast = swig_module.cast_initial[i];
- while (cast->type) {
-
- /* Don't need to add information already in the list */
- ret = 0;
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
-#endif
- if (swig_module.next != &swig_module) {
- ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
-#ifdef SWIGRUNTIME_DEBUG
- if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
-#endif
- }
- if (ret) {
- if (type == swig_module.type_initial[i]) {
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
-#endif
- cast->type = ret;
- ret = 0;
- } else {
- /* Check for casting already in the list */
- swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
-#ifdef SWIGRUNTIME_DEBUG
- if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
-#endif
- if (!ocast) ret = 0;
- }
- }
-
- if (!ret) {
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
-#endif
- if (type->cast) {
- type->cast->prev = cast;
- cast->next = type->cast;
- }
- type->cast = cast;
- }
- cast++;
- }
- /* Set entry in modules->types array equal to the type */
- swig_module.types[i] = type;
- }
- swig_module.types[i] = 0;
-
-#ifdef SWIGRUNTIME_DEBUG
- printf("**** SWIG_InitializeModule: Cast List ******\n");
- for (i = 0; i < swig_module.size; ++i) {
- int j = 0;
- swig_cast_info *cast = swig_module.cast_initial[i];
- printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
- while (cast->type) {
- printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
- cast++;
- ++j;
- }
- printf("---- Total casts: %d\n",j);
- }
- printf("**** SWIG_InitializeModule: Cast List ******\n");
-#endif
-}
-
-/* This function will propagate the clientdata field of type to
-* any new swig_type_info structures that have been added into the list
-* of equivalent types. It is like calling
-* SWIG_TypeClientData(type, clientdata) a second time.
-*/
-SWIGRUNTIME void
-SWIG_PropagateClientData(void) {
- size_t i;
- swig_cast_info *equiv;
- static int init_run = 0;
-
- if (init_run) return;
- init_run = 1;
-
- for (i = 0; i < swig_module.size; i++) {
- if (swig_module.types[i]->clientdata) {
- equiv = swig_module.types[i]->cast;
- while (equiv) {
- if (!equiv->converter) {
- if (equiv->type && !equiv->type->clientdata)
- SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
- }
- equiv = equiv->next;
- }
- }
- }
-}
-
-#ifdef __cplusplus
-#if 0
-{ /* c-mode */
-#endif
-}
-#endif
-
-/*
-
-*/
-#ifdef __cplusplus
-extern "C"
-#endif
-SWIGEXPORT void Init_gdal(void) {
- size_t i;
-
- SWIG_InitRuntime();
- mGdal = rb_define_module("Gdal");
- mGdal = rb_define_module_under(mGdal, "Gdal");
-
- SWIG_InitializeModule(0);
- for (i = 0; i < swig_module.size; i++) {
- SWIG_define_class(swig_module.types[i]);
- }
-
- SWIG_RubyInitializeTrackings();
-
- /* gdal_ruby.i %init code */
- if ( GDALGetDriverCount() == 0 ) {
- GDALAllRegister();
- }
-
- rb_define_module_function(mGdal, "use_exceptions", VALUEFUNC(_wrap_use_exceptions), -1);
- rb_define_module_function(mGdal, "dont_use_exceptions", VALUEFUNC(_wrap_dont_use_exceptions), -1);
- rb_define_module_function(mGdal, "debug", VALUEFUNC(_wrap_debug), -1);
- rb_define_module_function(mGdal, "error", VALUEFUNC(_wrap_error), -1);
- rb_define_module_function(mGdal, "push_error_handler", VALUEFUNC(_wrap_push_error_handler), -1);
- rb_define_module_function(mGdal, "pop_error_handler", VALUEFUNC(_wrap_pop_error_handler), -1);
- rb_define_module_function(mGdal, "error_reset", VALUEFUNC(_wrap_error_reset), -1);
- rb_define_module_function(mGdal, "escape_string", VALUEFUNC(_wrap_escape_string), -1);
- rb_define_module_function(mGdal, "get_last_error_no", VALUEFUNC(_wrap_get_last_error_no), -1);
- rb_define_module_function(mGdal, "get_last_error_type", VALUEFUNC(_wrap_get_last_error_type), -1);
- rb_define_module_function(mGdal, "get_last_error_msg", VALUEFUNC(_wrap_get_last_error_msg), -1);
- rb_define_module_function(mGdal, "push_finder_location", VALUEFUNC(_wrap_push_finder_location), -1);
- rb_define_module_function(mGdal, "pop_finder_location", VALUEFUNC(_wrap_pop_finder_location), -1);
- rb_define_module_function(mGdal, "finder_clean", VALUEFUNC(_wrap_finder_clean), -1);
- rb_define_module_function(mGdal, "find_file", VALUEFUNC(_wrap_find_file), -1);
- rb_define_module_function(mGdal, "read_dir", VALUEFUNC(_wrap_read_dir), -1);
- rb_define_module_function(mGdal, "set_config_option", VALUEFUNC(_wrap_set_config_option), -1);
- rb_define_module_function(mGdal, "get_config_option", VALUEFUNC(_wrap_get_config_option), -1);
- rb_define_module_function(mGdal, "binary_to_hex", VALUEFUNC(_wrap_binary_to_hex), -1);
- rb_define_module_function(mGdal, "hex_to_binary", VALUEFUNC(_wrap_hex_to_binary), -1);
-
- SwigClassMajorObject.klass = rb_define_class_under(mGdal, "MajorObject", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_GDALMajorObjectShadow, (void *) &SwigClassMajorObject);
- rb_undef_alloc_func(SwigClassMajorObject.klass);
- rb_define_method(SwigClassMajorObject.klass, "get_description", VALUEFUNC(_wrap_MajorObject_get_description), -1);
- rb_define_method(SwigClassMajorObject.klass, "set_description", VALUEFUNC(_wrap_MajorObject_set_description), -1);
- rb_define_method(SwigClassMajorObject.klass, "get_metadata_dict", VALUEFUNC(_wrap_MajorObject_get_metadata_dict), -1);
- rb_define_method(SwigClassMajorObject.klass, "get_metadata_list", VALUEFUNC(_wrap_MajorObject_get_metadata_list), -1);
- rb_define_method(SwigClassMajorObject.klass, "set_metadata", VALUEFUNC(_wrap_MajorObject_set_metadata), -1);
- rb_define_method(SwigClassMajorObject.klass, "get_metadata_item", VALUEFUNC(_wrap_MajorObject_get_metadata_item), -1);
- rb_define_method(SwigClassMajorObject.klass, "set_metadata_item", VALUEFUNC(_wrap_MajorObject_set_metadata_item), -1);
- SwigClassMajorObject.mark = 0;
- SwigClassMajorObject.trackObjects = 0;
-
- SwigClassDriver.klass = rb_define_class_under(mGdal, "Driver", ((swig_class *) SWIGTYPE_p_GDALMajorObjectShadow->clientdata)->klass);
- SWIG_TypeClientData(SWIGTYPE_p_GDALDriverShadow, (void *) &SwigClassDriver);
- rb_undef_alloc_func(SwigClassDriver.klass);
- rb_define_method(SwigClassDriver.klass, "ShortName", VALUEFUNC(_wrap_Driver_ShortName_get), -1);
- rb_define_method(SwigClassDriver.klass, "LongName", VALUEFUNC(_wrap_Driver_LongName_get), -1);
- rb_define_method(SwigClassDriver.klass, "HelpTopic", VALUEFUNC(_wrap_Driver_HelpTopic_get), -1);
- rb_define_method(SwigClassDriver.klass, "create", VALUEFUNC(_wrap_Driver_create), -1);
- rb_define_method(SwigClassDriver.klass, "create_copy", VALUEFUNC(_wrap_Driver_create_copy), -1);
- rb_define_method(SwigClassDriver.klass, "delete", VALUEFUNC(_wrap_Driver_delete), -1);
- rb_define_method(SwigClassDriver.klass, "rename", VALUEFUNC(_wrap_Driver_rename), -1);
- rb_define_method(SwigClassDriver.klass, "register", VALUEFUNC(_wrap_Driver_register), -1);
- rb_define_method(SwigClassDriver.klass, "deregister", VALUEFUNC(_wrap_Driver_deregister), -1);
- SwigClassDriver.mark = 0;
- SwigClassDriver.trackObjects = 0;
-
- SwigClassColorEntry.klass = rb_define_class_under(mGdal, "ColorEntry", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_GDALColorEntry, (void *) &SwigClassColorEntry);
- rb_define_alloc_func(SwigClassColorEntry.klass, _wrap_ColorEntry_allocate);
- rb_define_method(SwigClassColorEntry.klass, "initialize", VALUEFUNC(_wrap_new_ColorEntry), -1);
- rb_define_method(SwigClassColorEntry.klass, "c1=", VALUEFUNC(_wrap_ColorEntry_c1_set), -1);
- rb_define_method(SwigClassColorEntry.klass, "c1", VALUEFUNC(_wrap_ColorEntry_c1_get), -1);
- rb_define_method(SwigClassColorEntry.klass, "c2=", VALUEFUNC(_wrap_ColorEntry_c2_set), -1);
- rb_define_method(SwigClassColorEntry.klass, "c2", VALUEFUNC(_wrap_ColorEntry_c2_get), -1);
- rb_define_method(SwigClassColorEntry.klass, "c3=", VALUEFUNC(_wrap_ColorEntry_c3_set), -1);
- rb_define_method(SwigClassColorEntry.klass, "c3", VALUEFUNC(_wrap_ColorEntry_c3_get), -1);
- rb_define_method(SwigClassColorEntry.klass, "c4=", VALUEFUNC(_wrap_ColorEntry_c4_set), -1);
- rb_define_method(SwigClassColorEntry.klass, "c4", VALUEFUNC(_wrap_ColorEntry_c4_get), -1);
- SwigClassColorEntry.mark = 0;
- SwigClassColorEntry.destroy = (void (*)(void *)) free_GDALColorEntry;
- SwigClassColorEntry.trackObjects = 0;
-
- SwigClassGCP.klass = rb_define_class_under(mGdal, "GCP", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_GDAL_GCP, (void *) &SwigClassGCP);
- rb_define_alloc_func(SwigClassGCP.klass, _wrap_GCP_allocate);
- rb_define_method(SwigClassGCP.klass, "initialize", VALUEFUNC(_wrap_new_GCP), -1);
- rb_define_method(SwigClassGCP.klass, "GCPX=", VALUEFUNC(_wrap_GCP_GCPX_set), -1);
- rb_define_method(SwigClassGCP.klass, "GCPX", VALUEFUNC(_wrap_GCP_GCPX_get), -1);
- rb_define_method(SwigClassGCP.klass, "GCPY=", VALUEFUNC(_wrap_GCP_GCPY_set), -1);
- rb_define_method(SwigClassGCP.klass, "GCPY", VALUEFUNC(_wrap_GCP_GCPY_get), -1);
- rb_define_method(SwigClassGCP.klass, "GCPZ=", VALUEFUNC(_wrap_GCP_GCPZ_set), -1);
- rb_define_method(SwigClassGCP.klass, "GCPZ", VALUEFUNC(_wrap_GCP_GCPZ_get), -1);
- rb_define_method(SwigClassGCP.klass, "GCPPixel=", VALUEFUNC(_wrap_GCP_GCPPixel_set), -1);
- rb_define_method(SwigClassGCP.klass, "GCPPixel", VALUEFUNC(_wrap_GCP_GCPPixel_get), -1);
- rb_define_method(SwigClassGCP.klass, "GCPLine=", VALUEFUNC(_wrap_GCP_GCPLine_set), -1);
- rb_define_method(SwigClassGCP.klass, "GCPLine", VALUEFUNC(_wrap_GCP_GCPLine_get), -1);
- rb_define_method(SwigClassGCP.klass, "Info=", VALUEFUNC(_wrap_GCP_Info_set), -1);
- rb_define_method(SwigClassGCP.klass, "Info", VALUEFUNC(_wrap_GCP_Info_get), -1);
- rb_define_method(SwigClassGCP.klass, "Id=", VALUEFUNC(_wrap_GCP_Id_set), -1);
- rb_define_method(SwigClassGCP.klass, "Id", VALUEFUNC(_wrap_GCP_Id_get), -1);
- SwigClassGCP.mark = 0;
- SwigClassGCP.destroy = (void (*)(void *)) free_GDAL_GCP;
- SwigClassGCP.trackObjects = 0;
- rb_define_module_function(mGdal, "gdal_gcp_gcpx_get", VALUEFUNC(_wrap_gdal_gcp_gcpx_get), -1);
- rb_define_module_function(mGdal, "gdal_gcp_gcpx_set", VALUEFUNC(_wrap_gdal_gcp_gcpx_set), -1);
- rb_define_module_function(mGdal, "gdal_gcp_gcpy_get", VALUEFUNC(_wrap_gdal_gcp_gcpy_get), -1);
- rb_define_module_function(mGdal, "gdal_gcp_gcpy_set", VALUEFUNC(_wrap_gdal_gcp_gcpy_set), -1);
- rb_define_module_function(mGdal, "gdal_gcp_gcpz_get", VALUEFUNC(_wrap_gdal_gcp_gcpz_get), -1);
- rb_define_module_function(mGdal, "gdal_gcp_gcpz_set", VALUEFUNC(_wrap_gdal_gcp_gcpz_set), -1);
- rb_define_module_function(mGdal, "gdal_gcp_gcppixel_get", VALUEFUNC(_wrap_gdal_gcp_gcppixel_get), -1);
- rb_define_module_function(mGdal, "gdal_gcp_gcppixel_set", VALUEFUNC(_wrap_gdal_gcp_gcppixel_set), -1);
- rb_define_module_function(mGdal, "gdal_gcp_gcpline_get", VALUEFUNC(_wrap_gdal_gcp_gcpline_get), -1);
- rb_define_module_function(mGdal, "gdal_gcp_gcpline_set", VALUEFUNC(_wrap_gdal_gcp_gcpline_set), -1);
- rb_define_module_function(mGdal, "gdal_gcp_info_get", VALUEFUNC(_wrap_gdal_gcp_info_get), -1);
- rb_define_module_function(mGdal, "gdal_gcp_info_set", VALUEFUNC(_wrap_gdal_gcp_info_set), -1);
- rb_define_module_function(mGdal, "gdal_gcp_id_get", VALUEFUNC(_wrap_gdal_gcp_id_get), -1);
- rb_define_module_function(mGdal, "gdal_gcp_id_set", VALUEFUNC(_wrap_gdal_gcp_id_set), -1);
- rb_define_module_function(mGdal, "gdal_gcp_get_gcpx", VALUEFUNC(_wrap_gdal_gcp_get_gcpx), -1);
- rb_define_module_function(mGdal, "gdal_gcp_set_gcpx", VALUEFUNC(_wrap_gdal_gcp_set_gcpx), -1);
- rb_define_module_function(mGdal, "gdal_gcp_get_gcpy", VALUEFUNC(_wrap_gdal_gcp_get_gcpy), -1);
- rb_define_module_function(mGdal, "gdal_gcp_set_gcpy", VALUEFUNC(_wrap_gdal_gcp_set_gcpy), -1);
- rb_define_module_function(mGdal, "gdal_gcp_get_gcpz", VALUEFUNC(_wrap_gdal_gcp_get_gcpz), -1);
- rb_define_module_function(mGdal, "gdal_gcp_set_gcpz", VALUEFUNC(_wrap_gdal_gcp_set_gcpz), -1);
- rb_define_module_function(mGdal, "gdal_gcp_get_gcppixel", VALUEFUNC(_wrap_gdal_gcp_get_gcppixel), -1);
- rb_define_module_function(mGdal, "gdal_gcp_set_gcppixel", VALUEFUNC(_wrap_gdal_gcp_set_gcppixel), -1);
- rb_define_module_function(mGdal, "gdal_gcp_get_gcpline", VALUEFUNC(_wrap_gdal_gcp_get_gcpline), -1);
- rb_define_module_function(mGdal, "gdal_gcp_set_gcpline", VALUEFUNC(_wrap_gdal_gcp_set_gcpline), -1);
- rb_define_module_function(mGdal, "gdal_gcp_get_info", VALUEFUNC(_wrap_gdal_gcp_get_info), -1);
- rb_define_module_function(mGdal, "gdal_gcp_set_info", VALUEFUNC(_wrap_gdal_gcp_set_info), -1);
- rb_define_module_function(mGdal, "gdal_gcp_get_id", VALUEFUNC(_wrap_gdal_gcp_get_id), -1);
- rb_define_module_function(mGdal, "gdal_gcp_set_id", VALUEFUNC(_wrap_gdal_gcp_set_id), -1);
- rb_define_module_function(mGdal, "gcps_to_geo_transform", VALUEFUNC(_wrap_gcps_to_geo_transform), -1);
-
- SwigClassAsyncReader.klass = rb_define_class_under(mGdal, "AsyncReader", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_GDALAsyncReaderShadow, (void *) &SwigClassAsyncReader);
- rb_undef_alloc_func(SwigClassAsyncReader.klass);
- rb_define_method(SwigClassAsyncReader.klass, "get_next_updated_region", VALUEFUNC(_wrap_AsyncReader_get_next_updated_region), -1);
- rb_define_method(SwigClassAsyncReader.klass, "lock_buffer", VALUEFUNC(_wrap_AsyncReader_lock_buffer), -1);
- rb_define_method(SwigClassAsyncReader.klass, "unlock_buffer", VALUEFUNC(_wrap_AsyncReader_unlock_buffer), -1);
- SwigClassAsyncReader.mark = 0;
- SwigClassAsyncReader.destroy = (void (*)(void *)) free_GDALAsyncReaderShadow;
- SwigClassAsyncReader.trackObjects = 0;
-
- SwigClassDataset.klass = rb_define_class_under(mGdal, "Dataset", ((swig_class *) SWIGTYPE_p_GDALMajorObjectShadow->clientdata)->klass);
- SWIG_TypeClientData(SWIGTYPE_p_GDALDatasetShadow, (void *) &SwigClassDataset);
- rb_undef_alloc_func(SwigClassDataset.klass);
- rb_define_method(SwigClassDataset.klass, "RasterXSize", VALUEFUNC(_wrap_Dataset_RasterXSize_get), -1);
- rb_define_method(SwigClassDataset.klass, "RasterYSize", VALUEFUNC(_wrap_Dataset_RasterYSize_get), -1);
- rb_define_method(SwigClassDataset.klass, "RasterCount", VALUEFUNC(_wrap_Dataset_RasterCount_get), -1);
- rb_define_method(SwigClassDataset.klass, "get_driver", VALUEFUNC(_wrap_Dataset_get_driver), -1);
- rb_define_method(SwigClassDataset.klass, "get_raster_band", VALUEFUNC(_wrap_Dataset_get_raster_band), -1);
- rb_define_method(SwigClassDataset.klass, "get_projection", VALUEFUNC(_wrap_Dataset_get_projection), -1);
- rb_define_method(SwigClassDataset.klass, "get_projection_ref", VALUEFUNC(_wrap_Dataset_get_projection_ref), -1);
- rb_define_method(SwigClassDataset.klass, "set_projection", VALUEFUNC(_wrap_Dataset_set_projection), -1);
- rb_define_method(SwigClassDataset.klass, "get_geo_transform", VALUEFUNC(_wrap_Dataset_get_geo_transform), -1);
- rb_define_method(SwigClassDataset.klass, "set_geo_transform", VALUEFUNC(_wrap_Dataset_set_geo_transform), -1);
- rb_define_method(SwigClassDataset.klass, "build_overviews", VALUEFUNC(_wrap_Dataset_build_overviews), -1);
- rb_define_method(SwigClassDataset.klass, "get_gcpcount", VALUEFUNC(_wrap_Dataset_get_gcpcount), -1);
- rb_define_method(SwigClassDataset.klass, "get_gcpprojection", VALUEFUNC(_wrap_Dataset_get_gcpprojection), -1);
- rb_define_method(SwigClassDataset.klass, "get_gcps", VALUEFUNC(_wrap_Dataset_get_gcps), -1);
- rb_define_method(SwigClassDataset.klass, "set_gcps", VALUEFUNC(_wrap_Dataset_set_gcps), -1);
- rb_define_method(SwigClassDataset.klass, "flush_cache", VALUEFUNC(_wrap_Dataset_flush_cache), -1);
- rb_define_method(SwigClassDataset.klass, "add_band", VALUEFUNC(_wrap_Dataset_add_band), -1);
- rb_define_method(SwigClassDataset.klass, "create_mask_band", VALUEFUNC(_wrap_Dataset_create_mask_band), -1);
- rb_define_method(SwigClassDataset.klass, "get_file_list", VALUEFUNC(_wrap_Dataset_get_file_list), -1);
- rb_define_method(SwigClassDataset.klass, "write_raster", VALUEFUNC(_wrap_Dataset_write_raster), -1);
- rb_define_method(SwigClassDataset.klass, "read_raster", VALUEFUNC(_wrap_Dataset_read_raster), -1);
- SwigClassDataset.mark = 0;
- SwigClassDataset.destroy = (void (*)(void *)) free_GDALDatasetShadow;
- SwigClassDataset.trackObjects = 0;
-
- SwigClassBand.klass = rb_define_class_under(mGdal, "Band", ((swig_class *) SWIGTYPE_p_GDALMajorObjectShadow->clientdata)->klass);
- SWIG_TypeClientData(SWIGTYPE_p_GDALRasterBandShadow, (void *) &SwigClassBand);
- rb_undef_alloc_func(SwigClassBand.klass);
- rb_define_method(SwigClassBand.klass, "XSize", VALUEFUNC(_wrap_Band_XSize_get), -1);
- rb_define_method(SwigClassBand.klass, "YSize", VALUEFUNC(_wrap_Band_YSize_get), -1);
- rb_define_method(SwigClassBand.klass, "DataType", VALUEFUNC(_wrap_Band_DataType_get), -1);
- rb_define_method(SwigClassBand.klass, "get_band", VALUEFUNC(_wrap_Band_get_band), -1);
- rb_define_method(SwigClassBand.klass, "get_block_size", VALUEFUNC(_wrap_Band_get_block_size), -1);
- rb_define_method(SwigClassBand.klass, "get_color_interpretation", VALUEFUNC(_wrap_Band_get_color_interpretation), -1);
- rb_define_method(SwigClassBand.klass, "get_raster_color_interpretation", VALUEFUNC(_wrap_Band_get_raster_color_interpretation), -1);
- rb_define_method(SwigClassBand.klass, "set_color_interpretation", VALUEFUNC(_wrap_Band_set_color_interpretation), -1);
- rb_define_method(SwigClassBand.klass, "set_raster_color_interpretation", VALUEFUNC(_wrap_Band_set_raster_color_interpretation), -1);
- rb_define_method(SwigClassBand.klass, "get_no_data_value", VALUEFUNC(_wrap_Band_get_no_data_value), -1);
- rb_define_method(SwigClassBand.klass, "set_no_data_value", VALUEFUNC(_wrap_Band_set_no_data_value), -1);
- rb_define_method(SwigClassBand.klass, "get_unit_type", VALUEFUNC(_wrap_Band_get_unit_type), -1);
- rb_define_method(SwigClassBand.klass, "set_unit_type", VALUEFUNC(_wrap_Band_set_unit_type), -1);
- rb_define_method(SwigClassBand.klass, "get_raster_category_names", VALUEFUNC(_wrap_Band_get_raster_category_names), -1);
- rb_define_method(SwigClassBand.klass, "set_raster_category_names", VALUEFUNC(_wrap_Band_set_raster_category_names), -1);
- rb_define_method(SwigClassBand.klass, "get_minimum", VALUEFUNC(_wrap_Band_get_minimum), -1);
- rb_define_method(SwigClassBand.klass, "get_maximum", VALUEFUNC(_wrap_Band_get_maximum), -1);
- rb_define_method(SwigClassBand.klass, "get_offset", VALUEFUNC(_wrap_Band_get_offset), -1);
- rb_define_method(SwigClassBand.klass, "get_scale", VALUEFUNC(_wrap_Band_get_scale), -1);
- rb_define_method(SwigClassBand.klass, "set_offset", VALUEFUNC(_wrap_Band_set_offset), -1);
- rb_define_method(SwigClassBand.klass, "set_scale", VALUEFUNC(_wrap_Band_set_scale), -1);
- rb_define_method(SwigClassBand.klass, "get_statistics", VALUEFUNC(_wrap_Band_get_statistics), -1);
- rb_define_method(SwigClassBand.klass, "compute_statistics", VALUEFUNC(_wrap_Band_compute_statistics), -1);
- rb_define_method(SwigClassBand.klass, "set_statistics", VALUEFUNC(_wrap_Band_set_statistics), -1);
- rb_define_method(SwigClassBand.klass, "get_overview_count", VALUEFUNC(_wrap_Band_get_overview_count), -1);
- rb_define_method(SwigClassBand.klass, "get_overview", VALUEFUNC(_wrap_Band_get_overview), -1);
- rb_define_method(SwigClassBand.klass, "checksum", VALUEFUNC(_wrap_Band_checksum), -1);
- rb_define_method(SwigClassBand.klass, "compute_raster_min_max", VALUEFUNC(_wrap_Band_compute_raster_min_max), -1);
- rb_define_method(SwigClassBand.klass, "compute_band_stats", VALUEFUNC(_wrap_Band_compute_band_stats), -1);
- rb_define_method(SwigClassBand.klass, "fill", VALUEFUNC(_wrap_Band_fill), -1);
- rb_define_method(SwigClassBand.klass, "read_raster", VALUEFUNC(_wrap_Band_read_raster), -1);
- rb_define_method(SwigClassBand.klass, "write_raster", VALUEFUNC(_wrap_Band_write_raster), -1);
- rb_define_method(SwigClassBand.klass, "flush_cache", VALUEFUNC(_wrap_Band_flush_cache), -1);
- rb_define_method(SwigClassBand.klass, "get_raster_color_table", VALUEFUNC(_wrap_Band_get_raster_color_table), -1);
- rb_define_method(SwigClassBand.klass, "get_color_table", VALUEFUNC(_wrap_Band_get_color_table), -1);
- rb_define_method(SwigClassBand.klass, "set_raster_color_table", VALUEFUNC(_wrap_Band_set_raster_color_table), -1);
- rb_define_method(SwigClassBand.klass, "set_color_table", VALUEFUNC(_wrap_Band_set_color_table), -1);
- rb_define_method(SwigClassBand.klass, "get_default_rat", VALUEFUNC(_wrap_Band_get_default_rat), -1);
- rb_define_method(SwigClassBand.klass, "set_default_rat", VALUEFUNC(_wrap_Band_set_default_rat), -1);
- rb_define_method(SwigClassBand.klass, "get_mask_band", VALUEFUNC(_wrap_Band_get_mask_band), -1);
- rb_define_method(SwigClassBand.klass, "get_mask_flags", VALUEFUNC(_wrap_Band_get_mask_flags), -1);
- rb_define_method(SwigClassBand.klass, "create_mask_band", VALUEFUNC(_wrap_Band_create_mask_band), -1);
- rb_define_method(SwigClassBand.klass, "get_histogram", VALUEFUNC(_wrap_Band_get_histogram), -1);
- rb_define_method(SwigClassBand.klass, "get_default_histogram", VALUEFUNC(_wrap_Band_get_default_histogram), -1);
- rb_define_method(SwigClassBand.klass, "set_default_histogram", VALUEFUNC(_wrap_Band_set_default_histogram), -1);
- rb_define_method(SwigClassBand.klass, "has_arbitrary_overviews", VALUEFUNC(_wrap_Band_has_arbitrary_overviews), -1);
- SwigClassBand.mark = 0;
- SwigClassBand.trackObjects = 0;
-
- SwigClassColorTable.klass = rb_define_class_under(mGdal, "ColorTable", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_GDALColorTableShadow, (void *) &SwigClassColorTable);
- rb_define_alloc_func(SwigClassColorTable.klass, _wrap_ColorTable_allocate);
- rb_define_method(SwigClassColorTable.klass, "initialize", VALUEFUNC(_wrap_new_ColorTable), -1);
- rb_define_method(SwigClassColorTable.klass, "clone", VALUEFUNC(_wrap_ColorTable_clone), -1);
- rb_define_method(SwigClassColorTable.klass, "get_palette_interpretation", VALUEFUNC(_wrap_ColorTable_get_palette_interpretation), -1);
- rb_define_method(SwigClassColorTable.klass, "get_count", VALUEFUNC(_wrap_ColorTable_get_count), -1);
- rb_define_method(SwigClassColorTable.klass, "get_color_entry", VALUEFUNC(_wrap_ColorTable_get_color_entry), -1);
- rb_define_method(SwigClassColorTable.klass, "get_color_entry_as_rgb", VALUEFUNC(_wrap_ColorTable_get_color_entry_as_rgb), -1);
- rb_define_method(SwigClassColorTable.klass, "set_color_entry", VALUEFUNC(_wrap_ColorTable_set_color_entry), -1);
- rb_define_method(SwigClassColorTable.klass, "create_color_ramp", VALUEFUNC(_wrap_ColorTable_create_color_ramp), -1);
- SwigClassColorTable.mark = 0;
- SwigClassColorTable.destroy = (void (*)(void *)) free_GDALColorTableShadow;
- SwigClassColorTable.trackObjects = 0;
-
- SwigClassRasterAttributeTable.klass = rb_define_class_under(mGdal, "RasterAttributeTable", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_GDALRasterAttributeTableShadow, (void *) &SwigClassRasterAttributeTable);
- rb_define_alloc_func(SwigClassRasterAttributeTable.klass, _wrap_RasterAttributeTable_allocate);
- rb_define_method(SwigClassRasterAttributeTable.klass, "initialize", VALUEFUNC(_wrap_new_RasterAttributeTable), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "clone", VALUEFUNC(_wrap_RasterAttributeTable_clone), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "get_column_count", VALUEFUNC(_wrap_RasterAttributeTable_get_column_count), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "get_name_of_col", VALUEFUNC(_wrap_RasterAttributeTable_get_name_of_col), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "get_usage_of_col", VALUEFUNC(_wrap_RasterAttributeTable_get_usage_of_col), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "get_type_of_col", VALUEFUNC(_wrap_RasterAttributeTable_get_type_of_col), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "get_col_of_usage", VALUEFUNC(_wrap_RasterAttributeTable_get_col_of_usage), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "get_row_count", VALUEFUNC(_wrap_RasterAttributeTable_get_row_count), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "get_value_as_string", VALUEFUNC(_wrap_RasterAttributeTable_get_value_as_string), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "get_value_as_int", VALUEFUNC(_wrap_RasterAttributeTable_get_value_as_int), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "get_value_as_double", VALUEFUNC(_wrap_RasterAttributeTable_get_value_as_double), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "set_value_as_string", VALUEFUNC(_wrap_RasterAttributeTable_set_value_as_string), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "set_value_as_int", VALUEFUNC(_wrap_RasterAttributeTable_set_value_as_int), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "set_value_as_double", VALUEFUNC(_wrap_RasterAttributeTable_set_value_as_double), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "set_row_count", VALUEFUNC(_wrap_RasterAttributeTable_set_row_count), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "create_column", VALUEFUNC(_wrap_RasterAttributeTable_create_column), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "get_linear_binning", VALUEFUNC(_wrap_RasterAttributeTable_get_linear_binning), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "set_linear_binning", VALUEFUNC(_wrap_RasterAttributeTable_set_linear_binning), -1);
- rb_define_method(SwigClassRasterAttributeTable.klass, "get_row_of_value", VALUEFUNC(_wrap_RasterAttributeTable_get_row_of_value), -1);
- SwigClassRasterAttributeTable.mark = 0;
- SwigClassRasterAttributeTable.destroy = (void (*)(void *)) free_GDALRasterAttributeTableShadow;
- SwigClassRasterAttributeTable.trackObjects = 0;
- rb_define_module_function(mGdal, "TermProgress_nocb", VALUEFUNC(_wrap_TermProgress_nocb), -1);
- rb_define_const(mGdal, "TermProgress", SWIG_NewFunctionPtrObj((void *)(int (*)(double,char const *,void *))(GDALTermProgress), SWIGTYPE_p_f_double_p_q_const__char_p_void__int));
- rb_define_module_function(mGdal, "compute_median_cut_pct", VALUEFUNC(_wrap_compute_median_cut_pct), -1);
- rb_define_module_function(mGdal, "dither_rgb_2pct", VALUEFUNC(_wrap_dither_rgb_2pct), -1);
- rb_define_module_function(mGdal, "reproject_image", VALUEFUNC(_wrap_reproject_image), -1);
- rb_define_module_function(mGdal, "compute_proximity", VALUEFUNC(_wrap_compute_proximity), -1);
- rb_define_module_function(mGdal, "rasterize_layer", VALUEFUNC(_wrap_rasterize_layer), -1);
- rb_define_module_function(mGdal, "polygonize", VALUEFUNC(_wrap_polygonize), -1);
- rb_define_module_function(mGdal, "fill_nodata", VALUEFUNC(_wrap_fill_nodata), -1);
- rb_define_module_function(mGdal, "sieve_filter", VALUEFUNC(_wrap_sieve_filter), -1);
- rb_define_module_function(mGdal, "regenerate_overviews", VALUEFUNC(_wrap_regenerate_overviews), -1);
- rb_define_module_function(mGdal, "regenerate_overview", VALUEFUNC(_wrap_regenerate_overview), -1);
- rb_define_module_function(mGdal, "contour_generate", VALUEFUNC(_wrap_contour_generate), -1);
- rb_define_module_function(mGdal, "auto_create_warped_vrt", VALUEFUNC(_wrap_auto_create_warped_vrt), -1);
-
- SwigClassTransformer.klass = rb_define_class_under(mGdal, "Transformer", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_GDALTransformerInfoShadow, (void *) &SwigClassTransformer);
- rb_define_alloc_func(SwigClassTransformer.klass, _wrap_Transformer_allocate);
- rb_define_method(SwigClassTransformer.klass, "initialize", VALUEFUNC(_wrap_new_Transformer), -1);
- rb_define_method(SwigClassTransformer.klass, "transform_point", VALUEFUNC(_wrap_Transformer_transform_point), -1);
- rb_define_method(SwigClassTransformer.klass, "transform_points", VALUEFUNC(_wrap_Transformer_transform_points), -1);
- SwigClassTransformer.mark = 0;
- SwigClassTransformer.destroy = (void (*)(void *)) free_GDALTransformerInfoShadow;
- SwigClassTransformer.trackObjects = 0;
- rb_define_module_function(mGdal, "gdalapply_geo_transform", VALUEFUNC(_wrap_gdalapply_geo_transform), -1);
- rb_define_module_function(mGdal, "gdalinv_geo_transform", VALUEFUNC(_wrap_gdalinv_geo_transform), -1);
- rb_define_module_function(mGdal, "gdalversion_info", VALUEFUNC(_wrap_gdalversion_info), -1);
- rb_define_module_function(mGdal, "all_register", VALUEFUNC(_wrap_all_register), -1);
- rb_define_module_function(mGdal, "gdaldestroy_driver_manager", VALUEFUNC(_wrap_gdaldestroy_driver_manager), -1);
- rb_define_module_function(mGdal, "get_cache_max", VALUEFUNC(_wrap_get_cache_max), -1);
- rb_define_module_function(mGdal, "get_cache_used", VALUEFUNC(_wrap_get_cache_used), -1);
- rb_define_module_function(mGdal, "set_cache_max", VALUEFUNC(_wrap_set_cache_max), -1);
- rb_define_module_function(mGdal, "get_data_type_size", VALUEFUNC(_wrap_get_data_type_size), -1);
- rb_define_module_function(mGdal, "data_type_is_complex", VALUEFUNC(_wrap_data_type_is_complex), -1);
- rb_define_module_function(mGdal, "get_data_type_name", VALUEFUNC(_wrap_get_data_type_name), -1);
- rb_define_module_function(mGdal, "get_data_type_by_name", VALUEFUNC(_wrap_get_data_type_by_name), -1);
- rb_define_module_function(mGdal, "get_color_interpretation_name", VALUEFUNC(_wrap_get_color_interpretation_name), -1);
- rb_define_module_function(mGdal, "get_palette_interpretation_name", VALUEFUNC(_wrap_get_palette_interpretation_name), -1);
- rb_define_module_function(mGdal, "dec_to_dms", VALUEFUNC(_wrap_dec_to_dms), -1);
- rb_define_module_function(mGdal, "packed_dms_to_dec", VALUEFUNC(_wrap_packed_dms_to_dec), -1);
- rb_define_module_function(mGdal, "dec_to_packed_dms", VALUEFUNC(_wrap_dec_to_packed_dms), -1);
- rb_define_module_function(mGdal, "parse_xml_string", VALUEFUNC(_wrap_parse_xml_string), -1);
- rb_define_module_function(mGdal, "serialize_xml_tree", VALUEFUNC(_wrap_serialize_xml_tree), -1);
- rb_define_module_function(mGdal, "get_driver_count", VALUEFUNC(_wrap_get_driver_count), -1);
- rb_define_module_function(mGdal, "get_driver_by_name", VALUEFUNC(_wrap_get_driver_by_name), -1);
- rb_define_module_function(mGdal, "get_driver", VALUEFUNC(_wrap_get_driver), -1);
- rb_define_module_function(mGdal, "open", VALUEFUNC(_wrap_open), -1);
- rb_define_module_function(mGdal, "open_shared", VALUEFUNC(_wrap_open_shared), -1);
- rb_define_module_function(mGdal, "identify_driver", VALUEFUNC(_wrap_identify_driver), -1);
- rb_define_module_function(mGdal, "general_cmd_line_processor", VALUEFUNC(_wrap_general_cmd_line_processor), -1);
-}
-
diff --git a/swig/ruby/gdalconst_wrap.c b/swig/ruby/gdalconst_wrap.c
deleted file mode 100644
index f173bbf..0000000
--- a/swig/ruby/gdalconst_wrap.c
+++ /dev/null
@@ -1,2258 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.40
- *
- * This file is not intended to be easily readable and contains a number of
- * 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.
- * ----------------------------------------------------------------------------- */
-
-#define SWIGRUBY
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIG_MSC_UNSUPPRESS_4505
-# if defined(_MSC_VER)
-# pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIG_MSC_UNSUPPRESS_4505
-# if defined(_MSC_VER)
-# pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-/* -----------------------------------------------------------------------------
- * swigrun.swg
- *
- * This file contains generic C API SWIG runtime support for pointer
- * type checking.
- * ----------------------------------------------------------------------------- */
-
-/* This should only be incremented when either the layout of swig_type_info changes,
- or for whatever reason, the runtime changes incompatibly */
-#define SWIG_RUNTIME_VERSION "4"
-
-/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
-#ifdef SWIG_TYPE_TABLE
-# define SWIG_QUOTE_STRING(x) #x
-# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
-# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
-#else
-# define SWIG_TYPE_TABLE_NAME
-#endif
-
-/*
- You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
- creating a static or dynamic library from the SWIG runtime code.
- In 99.9% of the cases, SWIG just needs to declare them as 'static'.
-
- But only do this if strictly necessary, ie, if you have problems
- with your compiler or suchlike.
-*/
-
-#ifndef SWIGRUNTIME
-# define SWIGRUNTIME SWIGINTERN
-#endif
-
-#ifndef SWIGRUNTIMEINLINE
-# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
-#endif
-
-/* Generic buffer size */
-#ifndef SWIG_BUFFER_SIZE
-# define SWIG_BUFFER_SIZE 1024
-#endif
-
-/* Flags for pointer conversions */
-#define SWIG_POINTER_DISOWN 0x1
-#define SWIG_CAST_NEW_MEMORY 0x2
-
-/* Flags for new pointer objects */
-#define SWIG_POINTER_OWN 0x1
-
-
-/*
- Flags/methods for returning states.
-
- The SWIG conversion methods, as ConvertPtr, return and integer
- that tells if the conversion was successful or not. And if not,
- an error code can be returned (see swigerrors.swg for the codes).
-
- Use the following macros/flags to set or process the returning
- states.
-
- In old versions of SWIG, code such as the following was usually written:
-
- if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
- // success code
- } else {
- //fail code
- }
-
- Now you can be more explicit:
-
- int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
- if (SWIG_IsOK(res)) {
- // success code
- } else {
- // fail code
- }
-
- which is the same really, but now you can also do
-
- Type *ptr;
- int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
- if (SWIG_IsOK(res)) {
- // success code
- if (SWIG_IsNewObj(res) {
- ...
- delete *ptr;
- } else {
- ...
- }
- } else {
- // fail code
- }
-
- I.e., now SWIG_ConvertPtr can return new objects and you can
- identify the case and take care of the deallocation. Of course that
- also requires SWIG_ConvertPtr to return new result values, such as
-
- int SWIG_ConvertPtr(obj, ptr,...) {
- if (<obj is ok>) {
- if (<need new object>) {
- *ptr = <ptr to new allocated object>;
- return SWIG_NEWOBJ;
- } else {
- *ptr = <ptr to old object>;
- return SWIG_OLDOBJ;
- }
- } else {
- return SWIG_BADOBJ;
- }
- }
-
- Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
- more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
- SWIG errors code.
-
- Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
- allows to return the 'cast rank', for example, if you have this
-
- int food(double)
- int fooi(int);
-
- and you call
-
- food(1) // cast rank '1' (1 -> 1.0)
- fooi(1) // cast rank '0'
-
- just use the SWIG_AddCast()/SWIG_CheckState()
-*/
-
-#define SWIG_OK (0)
-#define SWIG_ERROR (-1)
-#define SWIG_IsOK(r) (r >= 0)
-#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
-
-/* The CastRankLimit says how many bits are used for the cast rank */
-#define SWIG_CASTRANKLIMIT (1 << 8)
-/* The NewMask denotes the object was created (using new/malloc) */
-#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
-/* The TmpMask is for in/out typemaps that use temporal objects */
-#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
-/* Simple returning values */
-#define SWIG_BADOBJ (SWIG_ERROR)
-#define SWIG_OLDOBJ (SWIG_OK)
-#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
-#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
-/* Check, add and del mask methods */
-#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
-#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
-#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
-#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
-#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
-#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
-
-/* Cast-Rank Mode */
-#if defined(SWIG_CASTRANK_MODE)
-# ifndef SWIG_TypeRank
-# define SWIG_TypeRank unsigned long
-# endif
-# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
-# define SWIG_MAXCASTRANK (2)
-# endif
-# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
-# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
-SWIGINTERNINLINE int SWIG_AddCast(int r) {
- return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
-}
-SWIGINTERNINLINE int SWIG_CheckState(int r) {
- return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
-}
-#else /* no cast-rank mode */
-# define SWIG_AddCast
-# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
-#endif
-
-
-#include <string.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef void *(*swig_converter_func)(void *, int *);
-typedef struct swig_type_info *(*swig_dycast_func)(void **);
-
-/* Structure to store information on one type */
-typedef struct swig_type_info {
- const char *name; /* mangled name of this type */
- const char *str; /* human readable name of this type */
- swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
- struct swig_cast_info *cast; /* linked list of types that can cast into this type */
- void *clientdata; /* language specific type data */
- int owndata; /* flag if the structure owns the clientdata */
-} swig_type_info;
-
-/* Structure to store a type and conversion function used for casting */
-typedef struct swig_cast_info {
- swig_type_info *type; /* pointer to type that is equivalent to this type */
- swig_converter_func converter; /* function to cast the void pointers */
- struct swig_cast_info *next; /* pointer to next cast in linked list */
- struct swig_cast_info *prev; /* pointer to the previous cast */
-} swig_cast_info;
-
-/* Structure used to store module information
- * Each module generates one structure like this, and the runtime collects
- * all of these structures and stores them in a circularly linked list.*/
-typedef struct swig_module_info {
- swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
- size_t size; /* Number of types in this module */
- struct swig_module_info *next; /* Pointer to next element in circularly linked list */
- swig_type_info **type_initial; /* Array of initially generated type structures */
- swig_cast_info **cast_initial; /* Array of initially generated casting structures */
- void *clientdata; /* Language specific module data */
-} swig_module_info;
-
-/*
- Compare two type names skipping the space characters, therefore
- "char*" == "char *" and "Class<int>" == "Class<int >", etc.
-
- Return 0 when the two name types are equivalent, as in
- strncmp, but skipping ' '.
-*/
-SWIGRUNTIME int
-SWIG_TypeNameComp(const char *f1, const char *l1,
- const char *f2, const char *l2) {
- for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
- while ((*f1 == ' ') && (f1 != l1)) ++f1;
- while ((*f2 == ' ') && (f2 != l2)) ++f2;
- if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
- }
- return (int)((l1 - f1) - (l2 - f2));
-}
-
-/*
- Check type equivalence in a name list like <name1>|<name2>|...
- Return 0 if not equal, 1 if equal
-*/
-SWIGRUNTIME int
-SWIG_TypeEquiv(const char *nb, const char *tb) {
- int equiv = 0;
- const char* te = tb + strlen(tb);
- const char* ne = nb;
- while (!equiv && *ne) {
- for (nb = ne; *ne; ++ne) {
- if (*ne == '|') break;
- }
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
- if (*ne) ++ne;
- }
- return equiv;
-}
-
-/*
- Check type equivalence in a name list like <name1>|<name2>|...
- Return 0 if equal, -1 if nb < tb, 1 if nb > tb
-*/
-SWIGRUNTIME int
-SWIG_TypeCompare(const char *nb, const char *tb) {
- int equiv = 0;
- const char* te = tb + strlen(tb);
- const char* ne = nb;
- while (!equiv && *ne) {
- for (nb = ne; *ne; ++ne) {
- if (*ne == '|') break;
- }
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
- if (*ne) ++ne;
- }
- return equiv;
-}
-
-
-/*
- Check the typename
-*/
-SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheck(const char *c, swig_type_info *ty) {
- if (ty) {
- swig_cast_info *iter = ty->cast;
- while (iter) {
- if (strcmp(iter->type->name, c) == 0) {
- if (iter == ty->cast)
- return iter;
- /* Move iter to the top of the linked list */
- iter->prev->next = iter->next;
- if (iter->next)
- iter->next->prev = iter->prev;
- iter->next = ty->cast;
- iter->prev = 0;
- if (ty->cast) ty->cast->prev = iter;
- ty->cast = iter;
- return iter;
- }
- iter = iter->next;
- }
- }
- return 0;
-}
-
-/*
- Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
-*/
-SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
- if (ty) {
- swig_cast_info *iter = ty->cast;
- while (iter) {
- if (iter->type == from) {
- if (iter == ty->cast)
- return iter;
- /* Move iter to the top of the linked list */
- iter->prev->next = iter->next;
- if (iter->next)
- iter->next->prev = iter->prev;
- iter->next = ty->cast;
- iter->prev = 0;
- if (ty->cast) ty->cast->prev = iter;
- ty->cast = iter;
- return iter;
- }
- iter = iter->next;
- }
- }
- return 0;
-}
-
-/*
- Cast a pointer up an inheritance hierarchy
-*/
-SWIGRUNTIMEINLINE void *
-SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
- return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
-}
-
-/*
- Dynamic pointer casting. Down an inheritance hierarchy
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
- swig_type_info *lastty = ty;
- if (!ty || !ty->dcast) return ty;
- while (ty && (ty->dcast)) {
- ty = (*ty->dcast)(ptr);
- if (ty) lastty = ty;
- }
- return lastty;
-}
-
-/*
- Return the name associated with this type
-*/
-SWIGRUNTIMEINLINE const char *
-SWIG_TypeName(const swig_type_info *ty) {
- return ty->name;
-}
-
-/*
- Return the pretty name associated with this type,
- that is an unmangled type name in a form presentable to the user.
-*/
-SWIGRUNTIME const char *
-SWIG_TypePrettyName(const swig_type_info *type) {
- /* The "str" field contains the equivalent pretty names of the
- type, separated by vertical-bar characters. We choose
- to print the last name, as it is often (?) the most
- specific. */
- if (!type) return NULL;
- if (type->str != NULL) {
- const char *last_name = type->str;
- const char *s;
- for (s = type->str; *s; s++)
- if (*s == '|') last_name = s+1;
- return last_name;
- }
- else
- return type->name;
-}
-
-/*
- Set the clientdata field for a type
-*/
-SWIGRUNTIME void
-SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
- swig_cast_info *cast = ti->cast;
- /* if (ti->clientdata == clientdata) return; */
- ti->clientdata = clientdata;
-
- while (cast) {
- if (!cast->converter) {
- swig_type_info *tc = cast->type;
- if (!tc->clientdata) {
- SWIG_TypeClientData(tc, clientdata);
- }
- }
- cast = cast->next;
- }
-}
-SWIGRUNTIME void
-SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
- SWIG_TypeClientData(ti, clientdata);
- ti->owndata = 1;
-}
-
-/*
- Search for a swig_type_info structure only by mangled name
- Search is a O(log #types)
-
- We start searching at module start, and finish searching when start == end.
- Note: if start == end at the beginning of the function, we go all the way around
- the circular list.
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_MangledTypeQueryModule(swig_module_info *start,
- swig_module_info *end,
- const char *name) {
- swig_module_info *iter = start;
- do {
- if (iter->size) {
- register size_t l = 0;
- register size_t r = iter->size - 1;
- do {
- /* since l+r >= 0, we can (>> 1) instead (/ 2) */
- register size_t i = (l + r) >> 1;
- const char *iname = iter->types[i]->name;
- if (iname) {
- register int compare = strcmp(name, iname);
- if (compare == 0) {
- return iter->types[i];
- } else if (compare < 0) {
- if (i) {
- r = i - 1;
- } else {
- break;
- }
- } else if (compare > 0) {
- l = i + 1;
- }
- } else {
- break; /* should never happen */
- }
- } while (l <= r);
- }
- iter = iter->next;
- } while (iter != end);
- return 0;
-}
-
-/*
- Search for a swig_type_info structure for either a mangled name or a human readable name.
- It first searches the mangled names of the types, which is a O(log #types)
- If a type is not found it then searches the human readable names, which is O(#types).
-
- We start searching at module start, and finish searching when start == end.
- Note: if start == end at the beginning of the function, we go all the way around
- the circular list.
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_TypeQueryModule(swig_module_info *start,
- swig_module_info *end,
- const char *name) {
- /* STEP 1: Search the name field using binary search */
- swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
- if (ret) {
- return ret;
- } else {
- /* STEP 2: If the type hasn't been found, do a complete search
- of the str field (the human readable name) */
- swig_module_info *iter = start;
- do {
- register size_t i = 0;
- for (; i < iter->size; ++i) {
- if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
- return iter->types[i];
- }
- iter = iter->next;
- } while (iter != end);
- }
-
- /* neither found a match */
- return 0;
-}
-
-/*
- Pack binary data into a string
-*/
-SWIGRUNTIME char *
-SWIG_PackData(char *c, void *ptr, size_t sz) {
- static const char hex[17] = "0123456789abcdef";
- register const unsigned char *u = (unsigned char *) ptr;
- register const unsigned char *eu = u + sz;
- for (; u != eu; ++u) {
- register unsigned char uu = *u;
- *(c++) = hex[(uu & 0xf0) >> 4];
- *(c++) = hex[uu & 0xf];
- }
- return c;
-}
-
-/*
- Unpack binary data from a string
-*/
-SWIGRUNTIME const char *
-SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
- register unsigned char *u = (unsigned char *) ptr;
- register const unsigned char *eu = u + sz;
- for (; u != eu; ++u) {
- register char d = *(c++);
- register unsigned char uu;
- if ((d >= '0') && (d <= '9'))
- uu = ((d - '0') << 4);
- else if ((d >= 'a') && (d <= 'f'))
- uu = ((d - ('a'-10)) << 4);
- else
- return (char *) 0;
- d = *(c++);
- if ((d >= '0') && (d <= '9'))
- uu |= (d - '0');
- else if ((d >= 'a') && (d <= 'f'))
- uu |= (d - ('a'-10));
- else
- return (char *) 0;
- *u = uu;
- }
- return c;
-}
-
-/*
- Pack 'void *' into a string buffer.
-*/
-SWIGRUNTIME char *
-SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
- char *r = buff;
- if ((2*sizeof(void *) + 2) > bsz) return 0;
- *(r++) = '_';
- r = SWIG_PackData(r,&ptr,sizeof(void *));
- if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
- strcpy(r,name);
- return buff;
-}
-
-SWIGRUNTIME const char *
-SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
- if (*c != '_') {
- if (strcmp(c,"NULL") == 0) {
- *ptr = (void *) 0;
- return name;
- } else {
- return 0;
- }
- }
- return SWIG_UnpackData(++c,ptr,sizeof(void *));
-}
-
-SWIGRUNTIME char *
-SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
- char *r = buff;
- size_t lname = (name ? strlen(name) : 0);
- if ((2*sz + 2 + lname) > bsz) return 0;
- *(r++) = '_';
- r = SWIG_PackData(r,ptr,sz);
- if (lname) {
- strncpy(r,name,lname+1);
- } else {
- *r = 0;
- }
- return buff;
-}
-
-SWIGRUNTIME const char *
-SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
- if (*c != '_') {
- if (strcmp(c,"NULL") == 0) {
- memset(ptr,0,sz);
- return name;
- } else {
- return 0;
- }
- }
- return SWIG_UnpackData(++c,ptr,sz);
-}
-
-#ifdef __cplusplus
-}
-#endif
-
-/* Errors in SWIG */
-#define SWIG_UnknownError -1
-#define SWIG_IOError -2
-#define SWIG_RuntimeError -3
-#define SWIG_IndexError -4
-#define SWIG_TypeError -5
-#define SWIG_DivisionByZero -6
-#define SWIG_OverflowError -7
-#define SWIG_SyntaxError -8
-#define SWIG_ValueError -9
-#define SWIG_SystemError -10
-#define SWIG_AttributeError -11
-#define SWIG_MemoryError -12
-#define SWIG_NullReferenceError -13
-
-
-
-#include <ruby.h>
-
-/* Remove global macros defined in Ruby's win32.h */
-#ifdef write
-# undef write
-#endif
-#ifdef read
-# undef read
-#endif
-#ifdef bind
-# undef bind
-#endif
-#ifdef close
-# undef close
-#endif
-#ifdef connect
-# undef connect
-#endif
-
-
-/* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
-#ifndef NUM2LL
-#define NUM2LL(x) NUM2LONG((x))
-#endif
-#ifndef LL2NUM
-#define LL2NUM(x) INT2NUM((long) (x))
-#endif
-#ifndef ULL2NUM
-#define ULL2NUM(x) UINT2NUM((unsigned long) (x))
-#endif
-
-/* Ruby 1.7 doesn't (yet) define NUM2ULL() */
-#ifndef NUM2ULL
-#ifdef HAVE_LONG_LONG
-#define NUM2ULL(x) rb_num2ull((x))
-#else
-#define NUM2ULL(x) NUM2ULONG(x)
-#endif
-#endif
-
-/* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */
-/* Define these for older versions so we can just write code the new way */
-#ifndef RSTRING_LEN
-# define RSTRING_LEN(x) RSTRING(x)->len
-#endif
-#ifndef RSTRING_PTR
-# define RSTRING_PTR(x) RSTRING(x)->ptr
-#endif
-#ifndef RSTRING_END
-# define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
-#endif
-#ifndef RARRAY_LEN
-# define RARRAY_LEN(x) RARRAY(x)->len
-#endif
-#ifndef RARRAY_PTR
-# define RARRAY_PTR(x) RARRAY(x)->ptr
-#endif
-#ifndef RFLOAT_VALUE
-# define RFLOAT_VALUE(x) RFLOAT(x)->value
-#endif
-#ifndef DOUBLE2NUM
-# define DOUBLE2NUM(x) rb_float_new(x)
-#endif
-#ifndef RHASH_TBL
-# define RHASH_TBL(x) (RHASH(x)->tbl)
-#endif
-#ifndef RHASH_ITER_LEV
-# define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
-#endif
-#ifndef RHASH_IFNONE
-# define RHASH_IFNONE(x) (RHASH(x)->ifnone)
-#endif
-#ifndef RHASH_SIZE
-# define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
-#endif
-#ifndef RHASH_EMPTY_P
-# define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
-#endif
-#ifndef RSTRUCT_LEN
-# define RSTRUCT_LEN(x) RSTRUCT(x)->len
-#endif
-#ifndef RSTRUCT_PTR
-# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
-#endif
-
-
-
-/*
- * Need to be very careful about how these macros are defined, especially
- * when compiling C++ code or C code with an ANSI C compiler.
- *
- * VALUEFUNC(f) is a macro used to typecast a C function that implements
- * a Ruby method so that it can be passed as an argument to API functions
- * like rb_define_method() and rb_define_singleton_method().
- *
- * VOIDFUNC(f) is a macro used to typecast a C function that implements
- * either the "mark" or "free" stuff for a Ruby Data object, so that it
- * can be passed as an argument to API functions like Data_Wrap_Struct()
- * and Data_Make_Struct().
- */
-
-#ifdef __cplusplus
-# ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */
-# define PROTECTFUNC(f) ((VALUE (*)()) f)
-# define VALUEFUNC(f) ((VALUE (*)()) f)
-# define VOIDFUNC(f) ((void (*)()) f)
-# else
-# ifndef ANYARGS /* These definitions should work for Ruby 1.6 */
-# define PROTECTFUNC(f) ((VALUE (*)()) f)
-# define VALUEFUNC(f) ((VALUE (*)()) f)
-# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
-# else /* These definitions should work for Ruby 1.7+ */
-# define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
-# define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
-# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
-# endif
-# endif
-#else
-# define VALUEFUNC(f) (f)
-# define VOIDFUNC(f) (f)
-#endif
-
-/* Don't use for expressions have side effect */
-#ifndef RB_STRING_VALUE
-#define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s)))
-#endif
-#ifndef StringValue
-#define StringValue(s) RB_STRING_VALUE(s)
-#endif
-#ifndef StringValuePtr
-#define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s))
-#endif
-#ifndef StringValueLen
-#define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s))
-#endif
-#ifndef SafeStringValue
-#define SafeStringValue(v) do {\
- StringValue(v);\
- rb_check_safe_str(v);\
-} while (0)
-#endif
-
-#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
-#define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1)
-#define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
-#endif
-
-static VALUE _mSWIG = Qnil;
-
-/* -----------------------------------------------------------------------------
- * error manipulation
- * ----------------------------------------------------------------------------- */
-
-
-/* Define some additional error types */
-#define SWIG_ObjectPreviouslyDeletedError -100
-
-
-/* Define custom exceptions for errors that do not map to existing Ruby
- exceptions. Note this only works for C++ since a global cannot be
- initialized by a funtion in C. For C, fallback to rb_eRuntimeError.*/
-
-SWIGINTERN VALUE
-getNullReferenceError(void) {
- static int init = 0;
- static VALUE rb_eNullReferenceError ;
- if (!init) {
- init = 1;
- rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
- }
- return rb_eNullReferenceError;
-}
-
-SWIGINTERN VALUE
-getObjectPreviouslyDeletedError(void) {
- static int init = 0;
- static VALUE rb_eObjectPreviouslyDeleted ;
- if (!init) {
- init = 1;
- rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
- }
- return rb_eObjectPreviouslyDeleted;
-}
-
-
-SWIGINTERN VALUE
-SWIG_Ruby_ErrorType(int SWIG_code) {
- VALUE type;
- switch (SWIG_code) {
- case SWIG_MemoryError:
- type = rb_eNoMemError;
- break;
- case SWIG_IOError:
- type = rb_eIOError;
- break;
- case SWIG_RuntimeError:
- type = rb_eRuntimeError;
- break;
- case SWIG_IndexError:
- type = rb_eIndexError;
- break;
- case SWIG_TypeError:
- type = rb_eTypeError;
- break;
- case SWIG_DivisionByZero:
- type = rb_eZeroDivError;
- break;
- case SWIG_OverflowError:
- type = rb_eRangeError;
- break;
- case SWIG_SyntaxError:
- type = rb_eSyntaxError;
- break;
- case SWIG_ValueError:
- type = rb_eArgError;
- break;
- case SWIG_SystemError:
- type = rb_eFatal;
- break;
- case SWIG_AttributeError:
- type = rb_eRuntimeError;
- break;
- case SWIG_NullReferenceError:
- type = getNullReferenceError();
- break;
- case SWIG_ObjectPreviouslyDeletedError:
- type = getObjectPreviouslyDeletedError();
- break;
- case SWIG_UnknownError:
- type = rb_eRuntimeError;
- break;
- default:
- type = rb_eRuntimeError;
- }
- return type;
-}
-
-
-/* This function is called when a user inputs a wrong argument to
- a method.
- */
-SWIGINTERN
-const char* Ruby_Format_TypeError( const char* msg,
- const char* type,
- const char* name,
- const int argn,
- VALUE input )
-{
- char buf[128];
- VALUE str;
- VALUE asStr;
- if ( msg && *msg )
- {
- str = rb_str_new2(msg);
- }
- else
- {
- str = rb_str_new(NULL, 0);
- }
-
- str = rb_str_cat2( str, "Expected argument " );
- sprintf( buf, "%d of type ", argn-1 );
- str = rb_str_cat2( str, buf );
- str = rb_str_cat2( str, type );
- str = rb_str_cat2( str, ", but got " );
- str = rb_str_cat2( str, rb_obj_classname(input) );
- str = rb_str_cat2( str, " " );
- asStr = rb_inspect(input);
- if ( RSTRING_LEN(asStr) > 30 )
- {
- str = rb_str_cat( str, StringValuePtr(asStr), 30 );
- str = rb_str_cat2( str, "..." );
- }
- else
- {
- str = rb_str_append( str, asStr );
- }
-
- if ( name )
- {
- str = rb_str_cat2( str, "\n\tin SWIG method '" );
- str = rb_str_cat2( str, name );
- str = rb_str_cat2( str, "'" );
- }
-
- return StringValuePtr( str );
-}
-
-/* This function is called when an overloaded method fails */
-SWIGINTERN
-void Ruby_Format_OverloadedError(
- const int argc,
- const int maxargs,
- const char* method,
- const char* prototypes
- )
-{
- const char* msg = "Wrong # of arguments";
- if ( argc <= maxargs ) msg = "Wrong arguments";
- rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
- "Possible C/C++ prototypes are:\n%s",
- msg, method, prototypes);
-}
-
-/* -----------------------------------------------------------------------------
- * See the LICENSE file for information on copyright, usage and redistribution
- * of SWIG, and the README file for authors - http://www.swig.org/release.html.
- *
- * rubytracking.swg
- *
- * This file contains support for tracking mappings from
- * Ruby objects to C++ objects. This functionality is needed
- * to implement mark functions for Ruby's mark and sweep
- * garbage collector.
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Ruby 1.8 actually assumes the first case. */
-#if SIZEOF_VOIDP == SIZEOF_LONG
-# define SWIG2NUM(v) LONG2NUM((unsigned long)v)
-# define NUM2SWIG(x) (unsigned long)NUM2LONG(x)
-#elif SIZEOF_VOIDP == SIZEOF_LONG_LONG
-# define SWIG2NUM(v) LL2NUM((unsigned long long)v)
-# define NUM2SWIG(x) (unsigned long long)NUM2LL(x)
-#else
-# error sizeof(void*) is not the same as long or long long
-#endif
-
-
-/* Global Ruby hash table to store Trackings from C/C++
- structs to Ruby Objects.
-*/
-static VALUE swig_ruby_trackings = Qnil;
-
-/* Global variable that stores a reference to the ruby
- hash table delete function. */
-static ID swig_ruby_hash_delete;
-
-/* Setup a Ruby hash table to store Trackings */
-SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
- /* Create a ruby hash table to store Trackings from C++
- objects to Ruby objects. */
-
- /* Try to see if some other .so has already created a
- tracking hash table, which we keep hidden in an instance var
- in the SWIG module.
- This is done to allow multiple DSOs to share the same
- tracking table.
- */
- ID trackings_id = rb_intern( "@__trackings__" );
- VALUE verbose = rb_gv_get("VERBOSE");
- rb_gv_set("VERBOSE", Qfalse);
- swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id );
- rb_gv_set("VERBOSE", verbose);
-
- /* No, it hasn't. Create one ourselves */
- if ( swig_ruby_trackings == Qnil )
- {
- swig_ruby_trackings = rb_hash_new();
- rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings );
- }
-
- /* Now store a reference to the hash table delete function
- so that we only have to look it up once.*/
- swig_ruby_hash_delete = rb_intern("delete");
-}
-
-/* Get a Ruby number to reference a pointer */
-SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
- /* We cast the pointer to an unsigned long
- and then store a reference to it using
- a Ruby number object. */
-
- /* Convert the pointer to a Ruby number */
- return SWIG2NUM(ptr);
-}
-
-/* Get a Ruby number to reference an object */
-SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
- /* We cast the object to an unsigned long
- and then store a reference to it using
- a Ruby number object. */
-
- /* Convert the Object to a Ruby number */
- return SWIG2NUM(object);
-}
-
-/* Get a Ruby object from a previously stored reference */
-SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
- /* The provided Ruby number object is a reference
- to the Ruby object we want.*/
-
- /* Convert the Ruby number to a Ruby object */
- return NUM2SWIG(reference);
-}
-
-/* Add a Tracking from a C/C++ struct to a Ruby object */
-SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) {
- /* In a Ruby hash table we store the pointer and
- the associated Ruby object. The trick here is
- that we cannot store the Ruby object directly - if
- we do then it cannot be garbage collected. So
- instead we typecast it as a unsigned long and
- convert it to a Ruby number object.*/
-
- /* Get a reference to the pointer as a Ruby number */
- VALUE key = SWIG_RubyPtrToReference(ptr);
-
- /* Get a reference to the Ruby object as a Ruby number */
- VALUE value = SWIG_RubyObjectToReference(object);
-
- /* Store the mapping to the global hash table. */
- rb_hash_aset(swig_ruby_trackings, key, value);
-}
-
-/* Get the Ruby object that owns the specified C/C++ struct */
-SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
- /* Get a reference to the pointer as a Ruby number */
- VALUE key = SWIG_RubyPtrToReference(ptr);
-
- /* Now lookup the value stored in the global hash table */
- VALUE value = rb_hash_aref(swig_ruby_trackings, key);
-
- if (value == Qnil) {
- /* No object exists - return nil. */
- return Qnil;
- }
- else {
- /* Convert this value to Ruby object */
- return SWIG_RubyReferenceToObject(value);
- }
-}
-
-/* Remove a Tracking from a C/C++ struct to a Ruby object. It
- is very important to remove objects once they are destroyed
- since the same memory address may be reused later to create
- a new object. */
-SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) {
- /* Get a reference to the pointer as a Ruby number */
- VALUE key = SWIG_RubyPtrToReference(ptr);
-
- /* Delete the object from the hash table by calling Ruby's
- do this we need to call the Hash.delete method.*/
- rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key);
-}
-
-/* This is a helper method that unlinks a Ruby object from its
- underlying C++ object. This is needed if the lifetime of the
- Ruby object is longer than the C++ object */
-SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
- VALUE object = SWIG_RubyInstanceFor(ptr);
-
- if (object != Qnil) {
- DATA_PTR(object) = 0;
- }
-}
-
-
-#ifdef __cplusplus
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * Ruby API portion that goes into the runtime
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-SWIGINTERN VALUE
-SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
- if (NIL_P(target)) {
- target = o;
- } else {
- if (TYPE(target) != T_ARRAY) {
- VALUE o2 = target;
- target = rb_ary_new();
- rb_ary_push(target, o2);
- }
- rb_ary_push(target, o);
- }
- return target;
-}
-
-/* For ruby1.8.4 and earlier. */
-#ifndef RUBY_INIT_STACK
- RUBY_EXTERN void Init_stack(VALUE* addr);
-# define RUBY_INIT_STACK \
- VALUE variable_in_this_stack_frame; \
- Init_stack(&variable_in_this_stack_frame);
-#endif
-
-
-#ifdef __cplusplus
-}
-#endif
-
-
-/* -----------------------------------------------------------------------------
- * See the LICENSE file for information on copyright, usage and redistribution
- * of SWIG, and the README file for authors - http://www.swig.org/release.html.
- *
- * rubyrun.swg
- *
- * This file contains the runtime support for Ruby modules
- * and includes code for managing global variables and pointer
- * type checking.
- * ----------------------------------------------------------------------------- */
-
-/* For backward compatibility only */
-#define SWIG_POINTER_EXCEPTION 0
-
-/* for raw pointers */
-#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
-#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own)
-#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags)
-#define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own)
-#define swig_owntype ruby_owntype
-
-/* for raw packed data */
-#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
-#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
-
-/* for class or struct pointers */
-#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
-#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
-
-/* for C or C++ function pointers */
-#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
-#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
-
-/* for C++ member pointers, ie, member methods */
-#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty)
-#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
-
-
-/* Runtime API */
-
-#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule()
-#define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer)
-
-
-/* Error manipulation */
-
-#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
-#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), msg)
-#define SWIG_fail goto fail
-
-
-/* Ruby-specific SWIG API */
-
-#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
-#define SWIG_define_class(ty) SWIG_Ruby_define_class(ty)
-#define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty)
-#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
-#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
-
-#include "assert.h"
-
-/* -----------------------------------------------------------------------------
- * pointers/data manipulation
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct {
- VALUE klass;
- VALUE mImpl;
- void (*mark)(void *);
- void (*destroy)(void *);
- int trackObjects;
-} swig_class;
-
-
-/* Global pointer used to keep some internal SWIG stuff */
-static VALUE _cSWIG_Pointer = Qnil;
-static VALUE swig_runtime_data_type_pointer = Qnil;
-
-/* Global IDs used to keep some internal SWIG stuff */
-static ID swig_arity_id = 0;
-static ID swig_call_id = 0;
-
-/*
- If your swig extension is to be run within an embedded ruby and has
- director callbacks, you should set -DRUBY_EMBEDDED during compilation.
- This will reset ruby's stack frame on each entry point from the main
- program the first time a virtual director function is invoked (in a
- non-recursive way).
- If this is not done, you run the risk of Ruby trashing the stack.
-*/
-
-#ifdef RUBY_EMBEDDED
-
-# define SWIG_INIT_STACK \
- if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \
- ++swig_virtual_calls;
-# define SWIG_RELEASE_STACK --swig_virtual_calls;
-# define Ruby_DirectorTypeMismatchException(x) \
- rb_raise( rb_eTypeError, x ); return c_result;
-
- static unsigned int swig_virtual_calls = 0;
-
-#else /* normal non-embedded extension */
-
-# define SWIG_INIT_STACK
-# define SWIG_RELEASE_STACK
-# define Ruby_DirectorTypeMismatchException(x) \
- throw Swig::DirectorTypeMismatchException( x );
-
-#endif /* RUBY_EMBEDDED */
-
-
-SWIGRUNTIME VALUE
-getExceptionClass(void) {
- static int init = 0;
- static VALUE rubyExceptionClass ;
- if (!init) {
- init = 1;
- rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
- }
- return rubyExceptionClass;
-}
-
-/* This code checks to see if the Ruby object being raised as part
- of an exception inherits from the Ruby class Exception. If so,
- the object is simply returned. If not, then a new Ruby exception
- object is created and that will be returned to Ruby.*/
-SWIGRUNTIME VALUE
-SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) {
- VALUE exceptionClass = getExceptionClass();
- if (rb_obj_is_kind_of(obj, exceptionClass)) {
- return obj;
- } else {
- return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj));
- }
-}
-
-/* Initialize Ruby runtime support */
-SWIGRUNTIME void
-SWIG_Ruby_InitRuntime(void)
-{
- if (_mSWIG == Qnil) {
- _mSWIG = rb_define_module("SWIG");
- swig_call_id = rb_intern("call");
- swig_arity_id = rb_intern("arity");
- }
-}
-
-/* Define Ruby class for C type */
-SWIGRUNTIME void
-SWIG_Ruby_define_class(swig_type_info *type)
-{
- VALUE klass;
- char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
- sprintf(klass_name, "TYPE%s", type->name);
- if (NIL_P(_cSWIG_Pointer)) {
- _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
- rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
- }
- klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
- free((void *) klass_name);
-}
-
-/* Create a new pointer object */
-SWIGRUNTIME VALUE
-SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
-{
- int own = flags & SWIG_POINTER_OWN;
- int track;
- char *klass_name;
- swig_class *sklass;
- VALUE klass;
- VALUE obj;
-
- if (!ptr)
- return Qnil;
-
- if (type->clientdata) {
- sklass = (swig_class *) type->clientdata;
-
- /* Are we tracking this class and have we already returned this Ruby object? */
- track = sklass->trackObjects;
- if (track) {
- obj = SWIG_RubyInstanceFor(ptr);
-
- /* Check the object's type and make sure it has the correct type.
- It might not in cases where methods do things like
- downcast methods. */
- if (obj != Qnil) {
- VALUE value = rb_iv_get(obj, "@__swigtype__");
- char* type_name = RSTRING_PTR(value);
-
- if (strcmp(type->name, type_name) == 0) {
- return obj;
- }
- }
- }
-
- /* Create a new Ruby object */
- obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
- ( own ? VOIDFUNC(sklass->destroy) :
- (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
- ), ptr);
-
- /* If tracking is on for this class then track this object. */
- if (track) {
- SWIG_RubyAddTracking(ptr, obj);
- }
- } else {
- klass_name = (char *) malloc(4 + strlen(type->name) + 1);
- sprintf(klass_name, "TYPE%s", type->name);
- klass = rb_const_get(_mSWIG, rb_intern(klass_name));
- free((void *) klass_name);
- obj = Data_Wrap_Struct(klass, 0, 0, ptr);
- }
- rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
-
- return obj;
-}
-
-/* Create a new class instance (always owned) */
-SWIGRUNTIME VALUE
-SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
-{
- VALUE obj;
- swig_class *sklass = (swig_class *) type->clientdata;
- obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
- rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
- return obj;
-}
-
-/* Get type mangle from class name */
-SWIGRUNTIMEINLINE char *
-SWIG_Ruby_MangleStr(VALUE obj)
-{
- VALUE stype = rb_iv_get(obj, "@__swigtype__");
- return StringValuePtr(stype);
-}
-
-/* Acquire a pointer value */
-typedef void (*ruby_owntype)(void*);
-
-SWIGRUNTIME ruby_owntype
-SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) {
- if (obj) {
- ruby_owntype oldown = RDATA(obj)->dfree;
- RDATA(obj)->dfree = own;
- return oldown;
- } else {
- return 0;
- }
-}
-
-/* Convert a pointer value */
-SWIGRUNTIME int
-SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own)
-{
- char *c;
- swig_cast_info *tc;
- void *vptr = 0;
-
- /* Grab the pointer */
- if (NIL_P(obj)) {
- *ptr = 0;
- return SWIG_OK;
- } else {
- if (TYPE(obj) != T_DATA) {
- return SWIG_ERROR;
- }
- Data_Get_Struct(obj, void, vptr);
- }
-
- if (own) *own = RDATA(obj)->dfree;
-
- /* Check to see if the input object is giving up ownership
- of the underlying C struct or C++ object. If so then we
- need to reset the destructor since the Ruby object no
- longer owns the underlying C++ object.*/
- if (flags & SWIG_POINTER_DISOWN) {
- /* Is tracking on for this class? */
- int track = 0;
- if (ty && ty->clientdata) {
- swig_class *sklass = (swig_class *) ty->clientdata;
- track = sklass->trackObjects;
- }
-
- if (track) {
- /* We are tracking objects for this class. Thus we change the destructor
- * to SWIG_RubyRemoveTracking. This allows us to
- * remove the mapping from the C++ to Ruby object
- * when the Ruby object is garbage collected. If we don't
- * do this, then it is possible we will return a reference
- * to a Ruby object that no longer exists thereby crashing Ruby. */
- RDATA(obj)->dfree = SWIG_RubyRemoveTracking;
- } else {
- RDATA(obj)->dfree = 0;
- }
- }
-
- /* Do type-checking if type info was provided */
- if (ty) {
- if (ty->clientdata) {
- if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) {
- if (vptr == 0) {
- /* The object has already been deleted */
- return SWIG_ObjectPreviouslyDeletedError;
- }
- *ptr = vptr;
- return SWIG_OK;
- }
- }
- if ((c = SWIG_MangleStr(obj)) == NULL) {
- return SWIG_ERROR;
- }
- tc = SWIG_TypeCheck(c, ty);
- if (!tc) {
- return SWIG_ERROR;
- } else {
- int newmemory = 0;
- *ptr = SWIG_TypeCast(tc, vptr, &newmemory);
- assert(!newmemory); /* newmemory handling not yet implemented */
- }
- } else {
- *ptr = vptr;
- }
-
- return SWIG_OK;
-}
-
-/* Check convert */
-SWIGRUNTIMEINLINE int
-SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty)
-{
- char *c = SWIG_MangleStr(obj);
- if (!c) return 0;
- return SWIG_TypeCheck(c,ty) != 0;
-}
-
-SWIGRUNTIME VALUE
-SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
- char result[1024];
- char *r = result;
- if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
- *(r++) = '_';
- r = SWIG_PackData(r, ptr, sz);
- strcpy(r, type->name);
- return rb_str_new2(result);
-}
-
-/* Convert a packed value value */
-SWIGRUNTIME int
-SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) {
- swig_cast_info *tc;
- const char *c;
-
- if (TYPE(obj) != T_STRING) goto type_error;
- c = StringValuePtr(obj);
- /* Pointer values must start with leading underscore */
- if (*c != '_') goto type_error;
- c++;
- c = SWIG_UnpackData(c, ptr, sz);
- if (ty) {
- tc = SWIG_TypeCheck(c, ty);
- if (!tc) goto type_error;
- }
- return SWIG_OK;
-
- type_error:
- return SWIG_ERROR;
-}
-
-SWIGRUNTIME swig_module_info *
-SWIG_Ruby_GetModule(void)
-{
- VALUE pointer;
- swig_module_info *ret = 0;
- VALUE verbose = rb_gv_get("VERBOSE");
-
- /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */
- rb_gv_set("VERBOSE", Qfalse);
-
- /* first check if pointer already created */
- pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
- if (pointer != Qnil) {
- Data_Get_Struct(pointer, swig_module_info, ret);
- }
-
- /* reinstate warnings */
- rb_gv_set("VERBOSE", verbose);
- return ret;
-}
-
-SWIGRUNTIME void
-SWIG_Ruby_SetModule(swig_module_info *pointer)
-{
- /* register a new class */
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
- /* create and store the structure pointer to a global variable */
- swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
- rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
-}
-
-/* This function can be used to check whether a proc or method or similarly
- callable function has been passed. Usually used in a %typecheck, like:
-
- %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) {
- $result = SWIG_Ruby_isCallable( $input );
- }
- */
-SWIGINTERN
-int SWIG_Ruby_isCallable( VALUE proc )
-{
- if ( rb_respond_to( proc, swig_call_id ) == Qtrue )
- return 1;
- return 0;
-}
-
-/* This function can be used to check the arity (number of arguments)
- a proc or method can take. Usually used in a %typecheck.
- Valid arities will be that equal to minimal or those < 0
- which indicate a variable number of parameters at the end.
- */
-SWIGINTERN
-int SWIG_Ruby_arity( VALUE proc, int minimal )
-{
- if ( rb_respond_to( proc, swig_arity_id ) == Qtrue )
- {
- VALUE num = rb_funcall( proc, swig_arity_id, 0 );
- int arity = NUM2INT(num);
- if ( arity < 0 && (arity+1) < -minimal ) return 1;
- if ( arity == minimal ) return 1;
- return 1;
- }
- return 0;
-}
-
-
-#ifdef __cplusplus
-}
-#endif
-
-
-
-#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
-
-#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
-
-
-
-/* -------- TYPES TABLE (BEGIN) -------- */
-
-#define SWIGTYPE_p_char swig_types[0]
-static swig_type_info *swig_types[2];
-static swig_module_info swig_module = {swig_types, 1, 0, 0, 0, 0};
-#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
-#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
-
-/* -------- TYPES TABLE (END) -------- */
-
-#define SWIG_init Init_gdalconst
-#define SWIG_name "Gdal::Gdalconst"
-
-static VALUE mGdalconst;
-
-#define SWIG_RUBY_THREAD_BEGIN_BLOCK
-#define SWIG_RUBY_THREAD_END_BLOCK
-
-
-#define SWIGVERSION 0x010340
-#define SWIG_VERSION SWIGVERSION
-
-
-#define SWIG_as_voidptr(a) (void *)((const void *)(a))
-#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
-
-
-#include "gdal.h"
-#include "gdalwarper.h"
-#include "cpl_string.h"
-#include "cpl_minixml.h"
-
-
-#include <limits.h>
-#if !defined(SWIG_NO_LLONG_MAX)
-# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
-# define LLONG_MAX __LONG_LONG_MAX__
-# define LLONG_MIN (-LLONG_MAX - 1LL)
-# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
-# endif
-#endif
-
-
- #define SWIG_From_long LONG2NUM
-
-
-SWIGINTERNINLINE VALUE
-SWIG_From_int (int value)
-{
- return SWIG_From_long (value);
-}
-
-
-SWIGINTERN swig_type_info*
-SWIG_pchar_descriptor(void)
-{
- static int init = 0;
- static swig_type_info* info = 0;
- if (!init) {
- info = SWIG_TypeQuery("_p_char");
- init = 1;
- }
- return info;
-}
-
-
-SWIGINTERNINLINE VALUE
-SWIG_FromCharPtrAndSize(const char* carray, size_t size)
-{
- if (carray) {
- if (size > LONG_MAX) {
- swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
- return pchar_descriptor ?
- SWIG_NewPointerObj((char *)(carray), pchar_descriptor, 0) : Qnil;
- } else {
- return rb_str_new(carray, (long)(size));
- }
- } else {
- return Qnil;
- }
-}
-
-
-SWIGINTERNINLINE VALUE
-SWIG_FromCharPtr(const char *cptr)
-{
- return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
-}
-
-
-/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
-
-static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
-
-static swig_type_info *swig_type_initial[] = {
- &_swigt__p_char,
-};
-
-static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
-
-static swig_cast_info *swig_cast_initial[] = {
- _swigc__p_char,
-};
-
-
-/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
-
-/* -----------------------------------------------------------------------------
- * Type initialization:
- * This problem is tough by the requirement that no dynamic
- * memory is used. Also, since swig_type_info structures store pointers to
- * swig_cast_info structures and swig_cast_info structures store pointers back
- * to swig_type_info structures, we need some lookup code at initialization.
- * The idea is that swig generates all the structures that are needed.
- * The runtime then collects these partially filled structures.
- * The SWIG_InitializeModule function takes these initial arrays out of
- * swig_module, and does all the lookup, filling in the swig_module.types
- * array with the correct data and linking the correct swig_cast_info
- * structures together.
- *
- * The generated swig_type_info structures are assigned staticly to an initial
- * array. We just loop through that array, and handle each type individually.
- * First we lookup if this type has been already loaded, and if so, use the
- * loaded structure instead of the generated one. Then we have to fill in the
- * cast linked list. The cast data is initially stored in something like a
- * two-dimensional array. Each row corresponds to a type (there are the same
- * number of rows as there are in the swig_type_initial array). Each entry in
- * a column is one of the swig_cast_info structures for that type.
- * The cast_initial array is actually an array of arrays, because each row has
- * a variable number of columns. So to actually build the cast linked list,
- * we find the array of casts associated with the type, and loop through it
- * adding the casts to the list. The one last trick we need to do is making
- * sure the type pointer in the swig_cast_info struct is correct.
- *
- * First off, we lookup the cast->type name to see if it is already loaded.
- * There are three cases to handle:
- * 1) If the cast->type has already been loaded AND the type we are adding
- * casting info to has not been loaded (it is in this module), THEN we
- * replace the cast->type pointer with the type pointer that has already
- * been loaded.
- * 2) If BOTH types (the one we are adding casting info to, and the
- * cast->type) are loaded, THEN the cast info has already been loaded by
- * the previous module so we just ignore it.
- * 3) Finally, if cast->type has not already been loaded, then we add that
- * swig_cast_info to the linked list (because the cast->type) pointer will
- * be correct.
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#if 0
-} /* c-mode */
-#endif
-#endif
-
-#if 0
-#define SWIGRUNTIME_DEBUG
-#endif
-
-
-SWIGRUNTIME void
-SWIG_InitializeModule(void *clientdata) {
- size_t i;
- swig_module_info *module_head, *iter;
- int found, init;
-
- clientdata = clientdata;
-
- /* check to see if the circular list has been setup, if not, set it up */
- if (swig_module.next==0) {
- /* Initialize the swig_module */
- swig_module.type_initial = swig_type_initial;
- swig_module.cast_initial = swig_cast_initial;
- swig_module.next = &swig_module;
- init = 1;
- } else {
- init = 0;
- }
-
- /* Try and load any already created modules */
- module_head = SWIG_GetModule(clientdata);
- if (!module_head) {
- /* This is the first module loaded for this interpreter */
- /* so set the swig module into the interpreter */
- SWIG_SetModule(clientdata, &swig_module);
- module_head = &swig_module;
- } else {
- /* the interpreter has loaded a SWIG module, but has it loaded this one? */
- found=0;
- iter=module_head;
- do {
- if (iter==&swig_module) {
- found=1;
- break;
- }
- iter=iter->next;
- } while (iter!= module_head);
-
- /* if the is found in the list, then all is done and we may leave */
- if (found) return;
- /* otherwise we must add out module into the list */
- swig_module.next = module_head->next;
- module_head->next = &swig_module;
- }
-
- /* When multiple interpeters are used, a module could have already been initialized in
- a different interpreter, but not yet have a pointer in this interpreter.
- In this case, we do not want to continue adding types... everything should be
- set up already */
- if (init == 0) return;
-
- /* Now work on filling in swig_module.types */
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: size %d\n", swig_module.size);
-#endif
- for (i = 0; i < swig_module.size; ++i) {
- swig_type_info *type = 0;
- swig_type_info *ret;
- swig_cast_info *cast;
-
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
-#endif
-
- /* if there is another module already loaded */
- if (swig_module.next != &swig_module) {
- type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
- }
- if (type) {
- /* Overwrite clientdata field */
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: found type %s\n", type->name);
-#endif
- if (swig_module.type_initial[i]->clientdata) {
- type->clientdata = swig_module.type_initial[i]->clientdata;
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
-#endif
- }
- } else {
- type = swig_module.type_initial[i];
- }
-
- /* Insert casting types */
- cast = swig_module.cast_initial[i];
- while (cast->type) {
-
- /* Don't need to add information already in the list */
- ret = 0;
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
-#endif
- if (swig_module.next != &swig_module) {
- ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
-#ifdef SWIGRUNTIME_DEBUG
- if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
-#endif
- }
- if (ret) {
- if (type == swig_module.type_initial[i]) {
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
-#endif
- cast->type = ret;
- ret = 0;
- } else {
- /* Check for casting already in the list */
- swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
-#ifdef SWIGRUNTIME_DEBUG
- if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
-#endif
- if (!ocast) ret = 0;
- }
- }
-
- if (!ret) {
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
-#endif
- if (type->cast) {
- type->cast->prev = cast;
- cast->next = type->cast;
- }
- type->cast = cast;
- }
- cast++;
- }
- /* Set entry in modules->types array equal to the type */
- swig_module.types[i] = type;
- }
- swig_module.types[i] = 0;
-
-#ifdef SWIGRUNTIME_DEBUG
- printf("**** SWIG_InitializeModule: Cast List ******\n");
- for (i = 0; i < swig_module.size; ++i) {
- int j = 0;
- swig_cast_info *cast = swig_module.cast_initial[i];
- printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
- while (cast->type) {
- printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
- cast++;
- ++j;
- }
- printf("---- Total casts: %d\n",j);
- }
- printf("**** SWIG_InitializeModule: Cast List ******\n");
-#endif
-}
-
-/* This function will propagate the clientdata field of type to
-* any new swig_type_info structures that have been added into the list
-* of equivalent types. It is like calling
-* SWIG_TypeClientData(type, clientdata) a second time.
-*/
-SWIGRUNTIME void
-SWIG_PropagateClientData(void) {
- size_t i;
- swig_cast_info *equiv;
- static int init_run = 0;
-
- if (init_run) return;
- init_run = 1;
-
- for (i = 0; i < swig_module.size; i++) {
- if (swig_module.types[i]->clientdata) {
- equiv = swig_module.types[i]->cast;
- while (equiv) {
- if (!equiv->converter) {
- if (equiv->type && !equiv->type->clientdata)
- SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
- }
- equiv = equiv->next;
- }
- }
- }
-}
-
-#ifdef __cplusplus
-#if 0
-{ /* c-mode */
-#endif
-}
-#endif
-
-/*
-
-*/
-#ifdef __cplusplus
-extern "C"
-#endif
-SWIGEXPORT void Init_gdalconst(void) {
- size_t i;
-
- SWIG_InitRuntime();
- mGdalconst = rb_define_module("Gdal");
- mGdalconst = rb_define_module_under(mGdalconst, "Gdalconst");
-
- SWIG_InitializeModule(0);
- for (i = 0; i < swig_module.size; i++) {
- SWIG_define_class(swig_module.types[i]);
- }
-
- SWIG_RubyInitializeTrackings();
- rb_define_const(mGdalconst, "GDT_UNKNOWN", SWIG_From_int((int)(GDT_Unknown)));
- rb_define_const(mGdalconst, "GDT_BYTE", SWIG_From_int((int)(GDT_Byte)));
- rb_define_const(mGdalconst, "GDT_UINT16", SWIG_From_int((int)(GDT_UInt16)));
- rb_define_const(mGdalconst, "GDT_INT16", SWIG_From_int((int)(GDT_Int16)));
- rb_define_const(mGdalconst, "GDT_UINT32", SWIG_From_int((int)(GDT_UInt32)));
- rb_define_const(mGdalconst, "GDT_INT32", SWIG_From_int((int)(GDT_Int32)));
- rb_define_const(mGdalconst, "GDT_FLOAT32", SWIG_From_int((int)(GDT_Float32)));
- rb_define_const(mGdalconst, "GDT_FLOAT64", SWIG_From_int((int)(GDT_Float64)));
- rb_define_const(mGdalconst, "GDT_CINT16", SWIG_From_int((int)(GDT_CInt16)));
- rb_define_const(mGdalconst, "GDT_CINT32", SWIG_From_int((int)(GDT_CInt32)));
- rb_define_const(mGdalconst, "GDT_CFLOAT32", SWIG_From_int((int)(GDT_CFloat32)));
- rb_define_const(mGdalconst, "GDT_CFLOAT64", SWIG_From_int((int)(GDT_CFloat64)));
- rb_define_const(mGdalconst, "GDT_TYPECOUNT", SWIG_From_int((int)(GDT_TypeCount)));
- rb_define_const(mGdalconst, "GA_READONLY", SWIG_From_int((int)(GA_ReadOnly)));
- rb_define_const(mGdalconst, "GA_UPDATE", SWIG_From_int((int)(GA_Update)));
- rb_define_const(mGdalconst, "GF_READ", SWIG_From_int((int)(GF_Read)));
- rb_define_const(mGdalconst, "GF_WRITE", SWIG_From_int((int)(GF_Write)));
- rb_define_const(mGdalconst, "GCI_UNDEFINED", SWIG_From_int((int)(GCI_Undefined)));
- rb_define_const(mGdalconst, "GCI_GRAYINDEX", SWIG_From_int((int)(GCI_GrayIndex)));
- rb_define_const(mGdalconst, "GCI_PALETTEINDEX", SWIG_From_int((int)(GCI_PaletteIndex)));
- rb_define_const(mGdalconst, "GCI_REDBAND", SWIG_From_int((int)(GCI_RedBand)));
- rb_define_const(mGdalconst, "GCI_GREENBAND", SWIG_From_int((int)(GCI_GreenBand)));
- rb_define_const(mGdalconst, "GCI_BLUEBAND", SWIG_From_int((int)(GCI_BlueBand)));
- rb_define_const(mGdalconst, "GCI_ALPHABAND", SWIG_From_int((int)(GCI_AlphaBand)));
- rb_define_const(mGdalconst, "GCI_HUEBAND", SWIG_From_int((int)(GCI_HueBand)));
- rb_define_const(mGdalconst, "GCI_SATURATIONBAND", SWIG_From_int((int)(GCI_SaturationBand)));
- rb_define_const(mGdalconst, "GCI_LIGHTNESSBAND", SWIG_From_int((int)(GCI_LightnessBand)));
- rb_define_const(mGdalconst, "GCI_CYANBAND", SWIG_From_int((int)(GCI_CyanBand)));
- rb_define_const(mGdalconst, "GCI_MAGENTABAND", SWIG_From_int((int)(GCI_MagentaBand)));
- rb_define_const(mGdalconst, "GCI_YELLOWBAND", SWIG_From_int((int)(GCI_YellowBand)));
- rb_define_const(mGdalconst, "GCI_BLACKBAND", SWIG_From_int((int)(GCI_BlackBand)));
- rb_define_const(mGdalconst, "GCI_YCBCR_YBAND", SWIG_From_int((int)(GCI_YCbCr_YBand)));
- rb_define_const(mGdalconst, "GCI_YCBCR_CRBAND", SWIG_From_int((int)(GCI_YCbCr_CrBand)));
- rb_define_const(mGdalconst, "GCI_YCBCR_CBBAND", SWIG_From_int((int)(GCI_YCbCr_CbBand)));
- rb_define_const(mGdalconst, "GRA_NEARESTNEIGHBOUR", SWIG_From_int((int)(GRA_NearestNeighbour)));
- rb_define_const(mGdalconst, "GRA_BILINEAR", SWIG_From_int((int)(GRA_Bilinear)));
- rb_define_const(mGdalconst, "GRA_CUBIC", SWIG_From_int((int)(GRA_Cubic)));
- rb_define_const(mGdalconst, "GRA_CUBICSPLINE", SWIG_From_int((int)(GRA_CubicSpline)));
- rb_define_const(mGdalconst, "GRA_LANCZOS", SWIG_From_int((int)(GRA_Lanczos)));
- rb_define_const(mGdalconst, "GPI_GRAY", SWIG_From_int((int)(GPI_Gray)));
- rb_define_const(mGdalconst, "GPI_RGB", SWIG_From_int((int)(GPI_RGB)));
- rb_define_const(mGdalconst, "GPI_CMYK", SWIG_From_int((int)(GPI_CMYK)));
- rb_define_const(mGdalconst, "GPI_HLS", SWIG_From_int((int)(GPI_HLS)));
- rb_define_const(mGdalconst, "CXT_ELEMENT", SWIG_From_int((int)(CXT_Element)));
- rb_define_const(mGdalconst, "CXT_TEXT", SWIG_From_int((int)(CXT_Text)));
- rb_define_const(mGdalconst, "CXT_ATTRIBUTE", SWIG_From_int((int)(CXT_Attribute)));
- rb_define_const(mGdalconst, "CXT_COMMENT", SWIG_From_int((int)(CXT_Comment)));
- rb_define_const(mGdalconst, "CXT_LITERAL", SWIG_From_int((int)(CXT_Literal)));
- rb_define_const(mGdalconst, "CE_NONE", SWIG_From_int((int)(CE_None)));
- rb_define_const(mGdalconst, "CE_DEBUG", SWIG_From_int((int)(CE_Debug)));
- rb_define_const(mGdalconst, "CE_WARNING", SWIG_From_int((int)(CE_Warning)));
- rb_define_const(mGdalconst, "CE_FAILURE", SWIG_From_int((int)(CE_Failure)));
- rb_define_const(mGdalconst, "CE_FATAL", SWIG_From_int((int)(CE_Fatal)));
- rb_define_const(mGdalconst, "CPLE_NONE", SWIG_From_int((int)(CPLE_None)));
- rb_define_const(mGdalconst, "CPLE_APPDEFINED", SWIG_From_int((int)(CPLE_AppDefined)));
- rb_define_const(mGdalconst, "CPLE_OUTOFMEMORY", SWIG_From_int((int)(CPLE_OutOfMemory)));
- rb_define_const(mGdalconst, "CPLE_FILEIO", SWIG_From_int((int)(CPLE_FileIO)));
- rb_define_const(mGdalconst, "CPLE_OPENFAILED", SWIG_From_int((int)(CPLE_OpenFailed)));
- rb_define_const(mGdalconst, "CPLE_ILLEGALARG", SWIG_From_int((int)(CPLE_IllegalArg)));
- rb_define_const(mGdalconst, "CPLE_NOTSUPPORTED", SWIG_From_int((int)(CPLE_NotSupported)));
- rb_define_const(mGdalconst, "CPLE_ASSERTIONFAILED", SWIG_From_int((int)(CPLE_AssertionFailed)));
- rb_define_const(mGdalconst, "CPLE_NOWRITEACCESS", SWIG_From_int((int)(CPLE_NoWriteAccess)));
- rb_define_const(mGdalconst, "CPLE_USERINTERRUPT", SWIG_From_int((int)(CPLE_UserInterrupt)));
- rb_define_const(mGdalconst, "DMD_LONGNAME", SWIG_FromCharPtr(GDAL_DMD_LONGNAME));
- rb_define_const(mGdalconst, "DMD_HELPTOPIC", SWIG_FromCharPtr(GDAL_DMD_HELPTOPIC));
- rb_define_const(mGdalconst, "DMD_MIMETYPE", SWIG_FromCharPtr(GDAL_DMD_MIMETYPE));
- rb_define_const(mGdalconst, "DMD_EXTENSION", SWIG_FromCharPtr(GDAL_DMD_EXTENSION));
- rb_define_const(mGdalconst, "DMD_CREATIONOPTIONLIST", SWIG_FromCharPtr(GDAL_DMD_CREATIONOPTIONLIST));
- rb_define_const(mGdalconst, "DMD_CREATIONDATATYPES", SWIG_FromCharPtr(GDAL_DMD_CREATIONDATATYPES));
- rb_define_const(mGdalconst, "DCAP_CREATE", SWIG_FromCharPtr(GDAL_DCAP_CREATE));
- rb_define_const(mGdalconst, "DCAP_CREATECOPY", SWIG_FromCharPtr(GDAL_DCAP_CREATECOPY));
- rb_define_const(mGdalconst, "DCAP_VIRTUALIO", SWIG_FromCharPtr(GDAL_DCAP_VIRTUALIO));
- rb_define_const(mGdalconst, "CPLES_BACKSLASHQUOTABLE", SWIG_From_int((int)(CPLES_BackslashQuotable)));
- rb_define_const(mGdalconst, "CPLES_XML", SWIG_From_int((int)(CPLES_XML)));
- rb_define_const(mGdalconst, "CPLES_URL", SWIG_From_int((int)(CPLES_URL)));
- rb_define_const(mGdalconst, "CPLES_SQL", SWIG_From_int((int)(CPLES_SQL)));
- rb_define_const(mGdalconst, "CPLES_CSV", SWIG_From_int((int)(CPLES_CSV)));
- rb_define_const(mGdalconst, "GFT_INTEGER", SWIG_From_int((int)(GFT_Integer)));
- rb_define_const(mGdalconst, "GFT_REAL", SWIG_From_int((int)(GFT_Real)));
- rb_define_const(mGdalconst, "GFT_STRING", SWIG_From_int((int)(GFT_String)));
- rb_define_const(mGdalconst, "GFU_GENERIC", SWIG_From_int((int)(GFU_Generic)));
- rb_define_const(mGdalconst, "GFU_PIXELCOUNT", SWIG_From_int((int)(GFU_PixelCount)));
- rb_define_const(mGdalconst, "GFU_NAME", SWIG_From_int((int)(GFU_Name)));
- rb_define_const(mGdalconst, "GFU_MIN", SWIG_From_int((int)(GFU_Min)));
- rb_define_const(mGdalconst, "GFU_MAX", SWIG_From_int((int)(GFU_Max)));
- rb_define_const(mGdalconst, "GFU_MINMAX", SWIG_From_int((int)(GFU_MinMax)));
- rb_define_const(mGdalconst, "GFU_RED", SWIG_From_int((int)(GFU_Red)));
- rb_define_const(mGdalconst, "GFU_GREEN", SWIG_From_int((int)(GFU_Green)));
- rb_define_const(mGdalconst, "GFU_BLUE", SWIG_From_int((int)(GFU_Blue)));
- rb_define_const(mGdalconst, "GFU_ALPHA", SWIG_From_int((int)(GFU_Alpha)));
- rb_define_const(mGdalconst, "GFU_REDMIN", SWIG_From_int((int)(GFU_RedMin)));
- rb_define_const(mGdalconst, "GFU_GREENMIN", SWIG_From_int((int)(GFU_GreenMin)));
- rb_define_const(mGdalconst, "GFU_BLUEMIN", SWIG_From_int((int)(GFU_BlueMin)));
- rb_define_const(mGdalconst, "GFU_ALPHAMIN", SWIG_From_int((int)(GFU_AlphaMin)));
- rb_define_const(mGdalconst, "GFU_REDMAX", SWIG_From_int((int)(GFU_RedMax)));
- rb_define_const(mGdalconst, "GFU_GREENMAX", SWIG_From_int((int)(GFU_GreenMax)));
- rb_define_const(mGdalconst, "GFU_BLUEMAX", SWIG_From_int((int)(GFU_BlueMax)));
- rb_define_const(mGdalconst, "GFU_ALPHAMAX", SWIG_From_int((int)(GFU_AlphaMax)));
- rb_define_const(mGdalconst, "GFU_MAXCOUNT", SWIG_From_int((int)(GFU_MaxCount)));
- rb_define_const(mGdalconst, "GMF_ALL_VALID", SWIG_From_int((int)(0x01)));
- rb_define_const(mGdalconst, "GMF_PER_DATASET", SWIG_From_int((int)(0x02)));
- rb_define_const(mGdalconst, "GMF_ALPHA", SWIG_From_int((int)(0x04)));
- rb_define_const(mGdalconst, "GMF_NODATA", SWIG_From_int((int)(0x08)));
- rb_define_const(mGdalconst, "GARIO_PENDING", SWIG_From_int((int)(GARIO_PENDING)));
- rb_define_const(mGdalconst, "GARIO_UPDATE", SWIG_From_int((int)(GARIO_UPDATE)));
- rb_define_const(mGdalconst, "GARIO_ERROR", SWIG_From_int((int)(GARIO_ERROR)));
- rb_define_const(mGdalconst, "GARIO_COMPLETE", SWIG_From_int((int)(GARIO_COMPLETE)));
-}
-
diff --git a/swig/ruby/ogr_wrap.cpp b/swig/ruby/ogr_wrap.cpp
deleted file mode 100644
index 678efa7..0000000
--- a/swig/ruby/ogr_wrap.cpp
+++ /dev/null
@@ -1,18198 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.40
- *
- * This file is not intended to be easily readable and contains a number of
- * 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.
- * ----------------------------------------------------------------------------- */
-
-#define SWIGRUBY
-
-
-#ifdef __cplusplus
-/* SwigValueWrapper is described in swig.swg */
-template<typename T> class SwigValueWrapper {
- struct SwigMovePointer {
- T *ptr;
- SwigMovePointer(T *p) : ptr(p) { }
- ~SwigMovePointer() { delete ptr; }
- SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
- } pointer;
- SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
- SwigValueWrapper(const SwigValueWrapper<T>& rhs);
-public:
- SwigValueWrapper() : pointer(0) { }
- SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
- operator T&() const { return *pointer.ptr; }
- T *operator&() { return pointer.ptr; }
-};
-
-template <typename T> T SwigValueInit() {
- return T();
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIG_MSC_UNSUPPRESS_4505
-# if defined(_MSC_VER)
-# pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIG_MSC_UNSUPPRESS_4505
-# if defined(_MSC_VER)
-# pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-/* -----------------------------------------------------------------------------
- * swigrun.swg
- *
- * This file contains generic C API SWIG runtime support for pointer
- * type checking.
- * ----------------------------------------------------------------------------- */
-
-/* This should only be incremented when either the layout of swig_type_info changes,
- or for whatever reason, the runtime changes incompatibly */
-#define SWIG_RUNTIME_VERSION "4"
-
-/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
-#ifdef SWIG_TYPE_TABLE
-# define SWIG_QUOTE_STRING(x) #x
-# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
-# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
-#else
-# define SWIG_TYPE_TABLE_NAME
-#endif
-
-/*
- You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
- creating a static or dynamic library from the SWIG runtime code.
- In 99.9% of the cases, SWIG just needs to declare them as 'static'.
-
- But only do this if strictly necessary, ie, if you have problems
- with your compiler or suchlike.
-*/
-
-#ifndef SWIGRUNTIME
-# define SWIGRUNTIME SWIGINTERN
-#endif
-
-#ifndef SWIGRUNTIMEINLINE
-# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
-#endif
-
-/* Generic buffer size */
-#ifndef SWIG_BUFFER_SIZE
-# define SWIG_BUFFER_SIZE 1024
-#endif
-
-/* Flags for pointer conversions */
-#define SWIG_POINTER_DISOWN 0x1
-#define SWIG_CAST_NEW_MEMORY 0x2
-
-/* Flags for new pointer objects */
-#define SWIG_POINTER_OWN 0x1
-
-
-/*
- Flags/methods for returning states.
-
- The SWIG conversion methods, as ConvertPtr, return and integer
- that tells if the conversion was successful or not. And if not,
- an error code can be returned (see swigerrors.swg for the codes).
-
- Use the following macros/flags to set or process the returning
- states.
-
- In old versions of SWIG, code such as the following was usually written:
-
- if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
- // success code
- } else {
- //fail code
- }
-
- Now you can be more explicit:
-
- int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
- if (SWIG_IsOK(res)) {
- // success code
- } else {
- // fail code
- }
-
- which is the same really, but now you can also do
-
- Type *ptr;
- int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
- if (SWIG_IsOK(res)) {
- // success code
- if (SWIG_IsNewObj(res) {
- ...
- delete *ptr;
- } else {
- ...
- }
- } else {
- // fail code
- }
-
- I.e., now SWIG_ConvertPtr can return new objects and you can
- identify the case and take care of the deallocation. Of course that
- also requires SWIG_ConvertPtr to return new result values, such as
-
- int SWIG_ConvertPtr(obj, ptr,...) {
- if (<obj is ok>) {
- if (<need new object>) {
- *ptr = <ptr to new allocated object>;
- return SWIG_NEWOBJ;
- } else {
- *ptr = <ptr to old object>;
- return SWIG_OLDOBJ;
- }
- } else {
- return SWIG_BADOBJ;
- }
- }
-
- Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
- more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
- SWIG errors code.
-
- Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
- allows to return the 'cast rank', for example, if you have this
-
- int food(double)
- int fooi(int);
-
- and you call
-
- food(1) // cast rank '1' (1 -> 1.0)
- fooi(1) // cast rank '0'
-
- just use the SWIG_AddCast()/SWIG_CheckState()
-*/
-
-#define SWIG_OK (0)
-#define SWIG_ERROR (-1)
-#define SWIG_IsOK(r) (r >= 0)
-#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
-
-/* The CastRankLimit says how many bits are used for the cast rank */
-#define SWIG_CASTRANKLIMIT (1 << 8)
-/* The NewMask denotes the object was created (using new/malloc) */
-#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
-/* The TmpMask is for in/out typemaps that use temporal objects */
-#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
-/* Simple returning values */
-#define SWIG_BADOBJ (SWIG_ERROR)
-#define SWIG_OLDOBJ (SWIG_OK)
-#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
-#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
-/* Check, add and del mask methods */
-#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
-#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
-#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
-#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
-#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
-#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
-
-/* Cast-Rank Mode */
-#if defined(SWIG_CASTRANK_MODE)
-# ifndef SWIG_TypeRank
-# define SWIG_TypeRank unsigned long
-# endif
-# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
-# define SWIG_MAXCASTRANK (2)
-# endif
-# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
-# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
-SWIGINTERNINLINE int SWIG_AddCast(int r) {
- return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
-}
-SWIGINTERNINLINE int SWIG_CheckState(int r) {
- return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
-}
-#else /* no cast-rank mode */
-# define SWIG_AddCast
-# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
-#endif
-
-
-#include <string.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef void *(*swig_converter_func)(void *, int *);
-typedef struct swig_type_info *(*swig_dycast_func)(void **);
-
-/* Structure to store information on one type */
-typedef struct swig_type_info {
- const char *name; /* mangled name of this type */
- const char *str; /* human readable name of this type */
- swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
- struct swig_cast_info *cast; /* linked list of types that can cast into this type */
- void *clientdata; /* language specific type data */
- int owndata; /* flag if the structure owns the clientdata */
-} swig_type_info;
-
-/* Structure to store a type and conversion function used for casting */
-typedef struct swig_cast_info {
- swig_type_info *type; /* pointer to type that is equivalent to this type */
- swig_converter_func converter; /* function to cast the void pointers */
- struct swig_cast_info *next; /* pointer to next cast in linked list */
- struct swig_cast_info *prev; /* pointer to the previous cast */
-} swig_cast_info;
-
-/* Structure used to store module information
- * Each module generates one structure like this, and the runtime collects
- * all of these structures and stores them in a circularly linked list.*/
-typedef struct swig_module_info {
- swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
- size_t size; /* Number of types in this module */
- struct swig_module_info *next; /* Pointer to next element in circularly linked list */
- swig_type_info **type_initial; /* Array of initially generated type structures */
- swig_cast_info **cast_initial; /* Array of initially generated casting structures */
- void *clientdata; /* Language specific module data */
-} swig_module_info;
-
-/*
- Compare two type names skipping the space characters, therefore
- "char*" == "char *" and "Class<int>" == "Class<int >", etc.
-
- Return 0 when the two name types are equivalent, as in
- strncmp, but skipping ' '.
-*/
-SWIGRUNTIME int
-SWIG_TypeNameComp(const char *f1, const char *l1,
- const char *f2, const char *l2) {
- for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
- while ((*f1 == ' ') && (f1 != l1)) ++f1;
- while ((*f2 == ' ') && (f2 != l2)) ++f2;
- if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
- }
- return (int)((l1 - f1) - (l2 - f2));
-}
-
-/*
- Check type equivalence in a name list like <name1>|<name2>|...
- Return 0 if not equal, 1 if equal
-*/
-SWIGRUNTIME int
-SWIG_TypeEquiv(const char *nb, const char *tb) {
- int equiv = 0;
- const char* te = tb + strlen(tb);
- const char* ne = nb;
- while (!equiv && *ne) {
- for (nb = ne; *ne; ++ne) {
- if (*ne == '|') break;
- }
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
- if (*ne) ++ne;
- }
- return equiv;
-}
-
-/*
- Check type equivalence in a name list like <name1>|<name2>|...
- Return 0 if equal, -1 if nb < tb, 1 if nb > tb
-*/
-SWIGRUNTIME int
-SWIG_TypeCompare(const char *nb, const char *tb) {
- int equiv = 0;
- const char* te = tb + strlen(tb);
- const char* ne = nb;
- while (!equiv && *ne) {
- for (nb = ne; *ne; ++ne) {
- if (*ne == '|') break;
- }
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
- if (*ne) ++ne;
- }
- return equiv;
-}
-
-
-/*
- Check the typename
-*/
-SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheck(const char *c, swig_type_info *ty) {
- if (ty) {
- swig_cast_info *iter = ty->cast;
- while (iter) {
- if (strcmp(iter->type->name, c) == 0) {
- if (iter == ty->cast)
- return iter;
- /* Move iter to the top of the linked list */
- iter->prev->next = iter->next;
- if (iter->next)
- iter->next->prev = iter->prev;
- iter->next = ty->cast;
- iter->prev = 0;
- if (ty->cast) ty->cast->prev = iter;
- ty->cast = iter;
- return iter;
- }
- iter = iter->next;
- }
- }
- return 0;
-}
-
-/*
- Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
-*/
-SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
- if (ty) {
- swig_cast_info *iter = ty->cast;
- while (iter) {
- if (iter->type == from) {
- if (iter == ty->cast)
- return iter;
- /* Move iter to the top of the linked list */
- iter->prev->next = iter->next;
- if (iter->next)
- iter->next->prev = iter->prev;
- iter->next = ty->cast;
- iter->prev = 0;
- if (ty->cast) ty->cast->prev = iter;
- ty->cast = iter;
- return iter;
- }
- iter = iter->next;
- }
- }
- return 0;
-}
-
-/*
- Cast a pointer up an inheritance hierarchy
-*/
-SWIGRUNTIMEINLINE void *
-SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
- return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
-}
-
-/*
- Dynamic pointer casting. Down an inheritance hierarchy
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
- swig_type_info *lastty = ty;
- if (!ty || !ty->dcast) return ty;
- while (ty && (ty->dcast)) {
- ty = (*ty->dcast)(ptr);
- if (ty) lastty = ty;
- }
- return lastty;
-}
-
-/*
- Return the name associated with this type
-*/
-SWIGRUNTIMEINLINE const char *
-SWIG_TypeName(const swig_type_info *ty) {
- return ty->name;
-}
-
-/*
- Return the pretty name associated with this type,
- that is an unmangled type name in a form presentable to the user.
-*/
-SWIGRUNTIME const char *
-SWIG_TypePrettyName(const swig_type_info *type) {
- /* The "str" field contains the equivalent pretty names of the
- type, separated by vertical-bar characters. We choose
- to print the last name, as it is often (?) the most
- specific. */
- if (!type) return NULL;
- if (type->str != NULL) {
- const char *last_name = type->str;
- const char *s;
- for (s = type->str; *s; s++)
- if (*s == '|') last_name = s+1;
- return last_name;
- }
- else
- return type->name;
-}
-
-/*
- Set the clientdata field for a type
-*/
-SWIGRUNTIME void
-SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
- swig_cast_info *cast = ti->cast;
- /* if (ti->clientdata == clientdata) return; */
- ti->clientdata = clientdata;
-
- while (cast) {
- if (!cast->converter) {
- swig_type_info *tc = cast->type;
- if (!tc->clientdata) {
- SWIG_TypeClientData(tc, clientdata);
- }
- }
- cast = cast->next;
- }
-}
-SWIGRUNTIME void
-SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
- SWIG_TypeClientData(ti, clientdata);
- ti->owndata = 1;
-}
-
-/*
- Search for a swig_type_info structure only by mangled name
- Search is a O(log #types)
-
- We start searching at module start, and finish searching when start == end.
- Note: if start == end at the beginning of the function, we go all the way around
- the circular list.
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_MangledTypeQueryModule(swig_module_info *start,
- swig_module_info *end,
- const char *name) {
- swig_module_info *iter = start;
- do {
- if (iter->size) {
- register size_t l = 0;
- register size_t r = iter->size - 1;
- do {
- /* since l+r >= 0, we can (>> 1) instead (/ 2) */
- register size_t i = (l + r) >> 1;
- const char *iname = iter->types[i]->name;
- if (iname) {
- register int compare = strcmp(name, iname);
- if (compare == 0) {
- return iter->types[i];
- } else if (compare < 0) {
- if (i) {
- r = i - 1;
- } else {
- break;
- }
- } else if (compare > 0) {
- l = i + 1;
- }
- } else {
- break; /* should never happen */
- }
- } while (l <= r);
- }
- iter = iter->next;
- } while (iter != end);
- return 0;
-}
-
-/*
- Search for a swig_type_info structure for either a mangled name or a human readable name.
- It first searches the mangled names of the types, which is a O(log #types)
- If a type is not found it then searches the human readable names, which is O(#types).
-
- We start searching at module start, and finish searching when start == end.
- Note: if start == end at the beginning of the function, we go all the way around
- the circular list.
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_TypeQueryModule(swig_module_info *start,
- swig_module_info *end,
- const char *name) {
- /* STEP 1: Search the name field using binary search */
- swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
- if (ret) {
- return ret;
- } else {
- /* STEP 2: If the type hasn't been found, do a complete search
- of the str field (the human readable name) */
- swig_module_info *iter = start;
- do {
- register size_t i = 0;
- for (; i < iter->size; ++i) {
- if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
- return iter->types[i];
- }
- iter = iter->next;
- } while (iter != end);
- }
-
- /* neither found a match */
- return 0;
-}
-
-/*
- Pack binary data into a string
-*/
-SWIGRUNTIME char *
-SWIG_PackData(char *c, void *ptr, size_t sz) {
- static const char hex[17] = "0123456789abcdef";
- register const unsigned char *u = (unsigned char *) ptr;
- register const unsigned char *eu = u + sz;
- for (; u != eu; ++u) {
- register unsigned char uu = *u;
- *(c++) = hex[(uu & 0xf0) >> 4];
- *(c++) = hex[uu & 0xf];
- }
- return c;
-}
-
-/*
- Unpack binary data from a string
-*/
-SWIGRUNTIME const char *
-SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
- register unsigned char *u = (unsigned char *) ptr;
- register const unsigned char *eu = u + sz;
- for (; u != eu; ++u) {
- register char d = *(c++);
- register unsigned char uu;
- if ((d >= '0') && (d <= '9'))
- uu = ((d - '0') << 4);
- else if ((d >= 'a') && (d <= 'f'))
- uu = ((d - ('a'-10)) << 4);
- else
- return (char *) 0;
- d = *(c++);
- if ((d >= '0') && (d <= '9'))
- uu |= (d - '0');
- else if ((d >= 'a') && (d <= 'f'))
- uu |= (d - ('a'-10));
- else
- return (char *) 0;
- *u = uu;
- }
- return c;
-}
-
-/*
- Pack 'void *' into a string buffer.
-*/
-SWIGRUNTIME char *
-SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
- char *r = buff;
- if ((2*sizeof(void *) + 2) > bsz) return 0;
- *(r++) = '_';
- r = SWIG_PackData(r,&ptr,sizeof(void *));
- if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
- strcpy(r,name);
- return buff;
-}
-
-SWIGRUNTIME const char *
-SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
- if (*c != '_') {
- if (strcmp(c,"NULL") == 0) {
- *ptr = (void *) 0;
- return name;
- } else {
- return 0;
- }
- }
- return SWIG_UnpackData(++c,ptr,sizeof(void *));
-}
-
-SWIGRUNTIME char *
-SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
- char *r = buff;
- size_t lname = (name ? strlen(name) : 0);
- if ((2*sz + 2 + lname) > bsz) return 0;
- *(r++) = '_';
- r = SWIG_PackData(r,ptr,sz);
- if (lname) {
- strncpy(r,name,lname+1);
- } else {
- *r = 0;
- }
- return buff;
-}
-
-SWIGRUNTIME const char *
-SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
- if (*c != '_') {
- if (strcmp(c,"NULL") == 0) {
- memset(ptr,0,sz);
- return name;
- } else {
- return 0;
- }
- }
- return SWIG_UnpackData(++c,ptr,sz);
-}
-
-#ifdef __cplusplus
-}
-#endif
-
-/* Errors in SWIG */
-#define SWIG_UnknownError -1
-#define SWIG_IOError -2
-#define SWIG_RuntimeError -3
-#define SWIG_IndexError -4
-#define SWIG_TypeError -5
-#define SWIG_DivisionByZero -6
-#define SWIG_OverflowError -7
-#define SWIG_SyntaxError -8
-#define SWIG_ValueError -9
-#define SWIG_SystemError -10
-#define SWIG_AttributeError -11
-#define SWIG_MemoryError -12
-#define SWIG_NullReferenceError -13
-
-
-
-#include <ruby.h>
-
-/* Remove global macros defined in Ruby's win32.h */
-#ifdef write
-# undef write
-#endif
-#ifdef read
-# undef read
-#endif
-#ifdef bind
-# undef bind
-#endif
-#ifdef close
-# undef close
-#endif
-#ifdef connect
-# undef connect
-#endif
-
-
-/* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
-#ifndef NUM2LL
-#define NUM2LL(x) NUM2LONG((x))
-#endif
-#ifndef LL2NUM
-#define LL2NUM(x) INT2NUM((long) (x))
-#endif
-#ifndef ULL2NUM
-#define ULL2NUM(x) UINT2NUM((unsigned long) (x))
-#endif
-
-/* Ruby 1.7 doesn't (yet) define NUM2ULL() */
-#ifndef NUM2ULL
-#ifdef HAVE_LONG_LONG
-#define NUM2ULL(x) rb_num2ull((x))
-#else
-#define NUM2ULL(x) NUM2ULONG(x)
-#endif
-#endif
-
-/* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */
-/* Define these for older versions so we can just write code the new way */
-#ifndef RSTRING_LEN
-# define RSTRING_LEN(x) RSTRING(x)->len
-#endif
-#ifndef RSTRING_PTR
-# define RSTRING_PTR(x) RSTRING(x)->ptr
-#endif
-#ifndef RSTRING_END
-# define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
-#endif
-#ifndef RARRAY_LEN
-# define RARRAY_LEN(x) RARRAY(x)->len
-#endif
-#ifndef RARRAY_PTR
-# define RARRAY_PTR(x) RARRAY(x)->ptr
-#endif
-#ifndef RFLOAT_VALUE
-# define RFLOAT_VALUE(x) RFLOAT(x)->value
-#endif
-#ifndef DOUBLE2NUM
-# define DOUBLE2NUM(x) rb_float_new(x)
-#endif
-#ifndef RHASH_TBL
-# define RHASH_TBL(x) (RHASH(x)->tbl)
-#endif
-#ifndef RHASH_ITER_LEV
-# define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
-#endif
-#ifndef RHASH_IFNONE
-# define RHASH_IFNONE(x) (RHASH(x)->ifnone)
-#endif
-#ifndef RHASH_SIZE
-# define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
-#endif
-#ifndef RHASH_EMPTY_P
-# define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
-#endif
-#ifndef RSTRUCT_LEN
-# define RSTRUCT_LEN(x) RSTRUCT(x)->len
-#endif
-#ifndef RSTRUCT_PTR
-# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
-#endif
-
-
-
-/*
- * Need to be very careful about how these macros are defined, especially
- * when compiling C++ code or C code with an ANSI C compiler.
- *
- * VALUEFUNC(f) is a macro used to typecast a C function that implements
- * a Ruby method so that it can be passed as an argument to API functions
- * like rb_define_method() and rb_define_singleton_method().
- *
- * VOIDFUNC(f) is a macro used to typecast a C function that implements
- * either the "mark" or "free" stuff for a Ruby Data object, so that it
- * can be passed as an argument to API functions like Data_Wrap_Struct()
- * and Data_Make_Struct().
- */
-
-#ifdef __cplusplus
-# ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */
-# define PROTECTFUNC(f) ((VALUE (*)()) f)
-# define VALUEFUNC(f) ((VALUE (*)()) f)
-# define VOIDFUNC(f) ((void (*)()) f)
-# else
-# ifndef ANYARGS /* These definitions should work for Ruby 1.6 */
-# define PROTECTFUNC(f) ((VALUE (*)()) f)
-# define VALUEFUNC(f) ((VALUE (*)()) f)
-# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
-# else /* These definitions should work for Ruby 1.7+ */
-# define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
-# define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
-# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
-# endif
-# endif
-#else
-# define VALUEFUNC(f) (f)
-# define VOIDFUNC(f) (f)
-#endif
-
-/* Don't use for expressions have side effect */
-#ifndef RB_STRING_VALUE
-#define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s)))
-#endif
-#ifndef StringValue
-#define StringValue(s) RB_STRING_VALUE(s)
-#endif
-#ifndef StringValuePtr
-#define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s))
-#endif
-#ifndef StringValueLen
-#define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s))
-#endif
-#ifndef SafeStringValue
-#define SafeStringValue(v) do {\
- StringValue(v);\
- rb_check_safe_str(v);\
-} while (0)
-#endif
-
-#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
-#define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1)
-#define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
-#endif
-
-static VALUE _mSWIG = Qnil;
-
-/* -----------------------------------------------------------------------------
- * error manipulation
- * ----------------------------------------------------------------------------- */
-
-
-/* Define some additional error types */
-#define SWIG_ObjectPreviouslyDeletedError -100
-
-
-/* Define custom exceptions for errors that do not map to existing Ruby
- exceptions. Note this only works for C++ since a global cannot be
- initialized by a funtion in C. For C, fallback to rb_eRuntimeError.*/
-
-SWIGINTERN VALUE
-getNullReferenceError(void) {
- static int init = 0;
- static VALUE rb_eNullReferenceError ;
- if (!init) {
- init = 1;
- rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
- }
- return rb_eNullReferenceError;
-}
-
-SWIGINTERN VALUE
-getObjectPreviouslyDeletedError(void) {
- static int init = 0;
- static VALUE rb_eObjectPreviouslyDeleted ;
- if (!init) {
- init = 1;
- rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
- }
- return rb_eObjectPreviouslyDeleted;
-}
-
-
-SWIGINTERN VALUE
-SWIG_Ruby_ErrorType(int SWIG_code) {
- VALUE type;
- switch (SWIG_code) {
- case SWIG_MemoryError:
- type = rb_eNoMemError;
- break;
- case SWIG_IOError:
- type = rb_eIOError;
- break;
- case SWIG_RuntimeError:
- type = rb_eRuntimeError;
- break;
- case SWIG_IndexError:
- type = rb_eIndexError;
- break;
- case SWIG_TypeError:
- type = rb_eTypeError;
- break;
- case SWIG_DivisionByZero:
- type = rb_eZeroDivError;
- break;
- case SWIG_OverflowError:
- type = rb_eRangeError;
- break;
- case SWIG_SyntaxError:
- type = rb_eSyntaxError;
- break;
- case SWIG_ValueError:
- type = rb_eArgError;
- break;
- case SWIG_SystemError:
- type = rb_eFatal;
- break;
- case SWIG_AttributeError:
- type = rb_eRuntimeError;
- break;
- case SWIG_NullReferenceError:
- type = getNullReferenceError();
- break;
- case SWIG_ObjectPreviouslyDeletedError:
- type = getObjectPreviouslyDeletedError();
- break;
- case SWIG_UnknownError:
- type = rb_eRuntimeError;
- break;
- default:
- type = rb_eRuntimeError;
- }
- return type;
-}
-
-
-/* This function is called when a user inputs a wrong argument to
- a method.
- */
-SWIGINTERN
-const char* Ruby_Format_TypeError( const char* msg,
- const char* type,
- const char* name,
- const int argn,
- VALUE input )
-{
- char buf[128];
- VALUE str;
- VALUE asStr;
- if ( msg && *msg )
- {
- str = rb_str_new2(msg);
- }
- else
- {
- str = rb_str_new(NULL, 0);
- }
-
- str = rb_str_cat2( str, "Expected argument " );
- sprintf( buf, "%d of type ", argn-1 );
- str = rb_str_cat2( str, buf );
- str = rb_str_cat2( str, type );
- str = rb_str_cat2( str, ", but got " );
- str = rb_str_cat2( str, rb_obj_classname(input) );
- str = rb_str_cat2( str, " " );
- asStr = rb_inspect(input);
- if ( RSTRING_LEN(asStr) > 30 )
- {
- str = rb_str_cat( str, StringValuePtr(asStr), 30 );
- str = rb_str_cat2( str, "..." );
- }
- else
- {
- str = rb_str_append( str, asStr );
- }
-
- if ( name )
- {
- str = rb_str_cat2( str, "\n\tin SWIG method '" );
- str = rb_str_cat2( str, name );
- str = rb_str_cat2( str, "'" );
- }
-
- return StringValuePtr( str );
-}
-
-/* This function is called when an overloaded method fails */
-SWIGINTERN
-void Ruby_Format_OverloadedError(
- const int argc,
- const int maxargs,
- const char* method,
- const char* prototypes
- )
-{
- const char* msg = "Wrong # of arguments";
- if ( argc <= maxargs ) msg = "Wrong arguments";
- rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
- "Possible C/C++ prototypes are:\n%s",
- msg, method, prototypes);
-}
-
-/* -----------------------------------------------------------------------------
- * See the LICENSE file for information on copyright, usage and redistribution
- * of SWIG, and the README file for authors - http://www.swig.org/release.html.
- *
- * rubytracking.swg
- *
- * This file contains support for tracking mappings from
- * Ruby objects to C++ objects. This functionality is needed
- * to implement mark functions for Ruby's mark and sweep
- * garbage collector.
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Ruby 1.8 actually assumes the first case. */
-#if SIZEOF_VOIDP == SIZEOF_LONG
-# define SWIG2NUM(v) LONG2NUM((unsigned long)v)
-# define NUM2SWIG(x) (unsigned long)NUM2LONG(x)
-#elif SIZEOF_VOIDP == SIZEOF_LONG_LONG
-# define SWIG2NUM(v) LL2NUM((unsigned long long)v)
-# define NUM2SWIG(x) (unsigned long long)NUM2LL(x)
-#else
-# error sizeof(void*) is not the same as long or long long
-#endif
-
-
-/* Global Ruby hash table to store Trackings from C/C++
- structs to Ruby Objects.
-*/
-static VALUE swig_ruby_trackings = Qnil;
-
-/* Global variable that stores a reference to the ruby
- hash table delete function. */
-static ID swig_ruby_hash_delete;
-
-/* Setup a Ruby hash table to store Trackings */
-SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
- /* Create a ruby hash table to store Trackings from C++
- objects to Ruby objects. */
-
- /* Try to see if some other .so has already created a
- tracking hash table, which we keep hidden in an instance var
- in the SWIG module.
- This is done to allow multiple DSOs to share the same
- tracking table.
- */
- ID trackings_id = rb_intern( "@__trackings__" );
- VALUE verbose = rb_gv_get("VERBOSE");
- rb_gv_set("VERBOSE", Qfalse);
- swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id );
- rb_gv_set("VERBOSE", verbose);
-
- /* No, it hasn't. Create one ourselves */
- if ( swig_ruby_trackings == Qnil )
- {
- swig_ruby_trackings = rb_hash_new();
- rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings );
- }
-
- /* Now store a reference to the hash table delete function
- so that we only have to look it up once.*/
- swig_ruby_hash_delete = rb_intern("delete");
-}
-
-/* Get a Ruby number to reference a pointer */
-SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
- /* We cast the pointer to an unsigned long
- and then store a reference to it using
- a Ruby number object. */
-
- /* Convert the pointer to a Ruby number */
- return SWIG2NUM(ptr);
-}
-
-/* Get a Ruby number to reference an object */
-SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
- /* We cast the object to an unsigned long
- and then store a reference to it using
- a Ruby number object. */
-
- /* Convert the Object to a Ruby number */
- return SWIG2NUM(object);
-}
-
-/* Get a Ruby object from a previously stored reference */
-SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
- /* The provided Ruby number object is a reference
- to the Ruby object we want.*/
-
- /* Convert the Ruby number to a Ruby object */
- return NUM2SWIG(reference);
-}
-
-/* Add a Tracking from a C/C++ struct to a Ruby object */
-SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) {
- /* In a Ruby hash table we store the pointer and
- the associated Ruby object. The trick here is
- that we cannot store the Ruby object directly - if
- we do then it cannot be garbage collected. So
- instead we typecast it as a unsigned long and
- convert it to a Ruby number object.*/
-
- /* Get a reference to the pointer as a Ruby number */
- VALUE key = SWIG_RubyPtrToReference(ptr);
-
- /* Get a reference to the Ruby object as a Ruby number */
- VALUE value = SWIG_RubyObjectToReference(object);
-
- /* Store the mapping to the global hash table. */
- rb_hash_aset(swig_ruby_trackings, key, value);
-}
-
-/* Get the Ruby object that owns the specified C/C++ struct */
-SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
- /* Get a reference to the pointer as a Ruby number */
- VALUE key = SWIG_RubyPtrToReference(ptr);
-
- /* Now lookup the value stored in the global hash table */
- VALUE value = rb_hash_aref(swig_ruby_trackings, key);
-
- if (value == Qnil) {
- /* No object exists - return nil. */
- return Qnil;
- }
- else {
- /* Convert this value to Ruby object */
- return SWIG_RubyReferenceToObject(value);
- }
-}
-
-/* Remove a Tracking from a C/C++ struct to a Ruby object. It
- is very important to remove objects once they are destroyed
- since the same memory address may be reused later to create
- a new object. */
-SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) {
- /* Get a reference to the pointer as a Ruby number */
- VALUE key = SWIG_RubyPtrToReference(ptr);
-
- /* Delete the object from the hash table by calling Ruby's
- do this we need to call the Hash.delete method.*/
- rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key);
-}
-
-/* This is a helper method that unlinks a Ruby object from its
- underlying C++ object. This is needed if the lifetime of the
- Ruby object is longer than the C++ object */
-SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
- VALUE object = SWIG_RubyInstanceFor(ptr);
-
- if (object != Qnil) {
- DATA_PTR(object) = 0;
- }
-}
-
-
-#ifdef __cplusplus
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * Ruby API portion that goes into the runtime
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-SWIGINTERN VALUE
-SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
- if (NIL_P(target)) {
- target = o;
- } else {
- if (TYPE(target) != T_ARRAY) {
- VALUE o2 = target;
- target = rb_ary_new();
- rb_ary_push(target, o2);
- }
- rb_ary_push(target, o);
- }
- return target;
-}
-
-/* For ruby1.8.4 and earlier. */
-#ifndef RUBY_INIT_STACK
- RUBY_EXTERN void Init_stack(VALUE* addr);
-# define RUBY_INIT_STACK \
- VALUE variable_in_this_stack_frame; \
- Init_stack(&variable_in_this_stack_frame);
-#endif
-
-
-#ifdef __cplusplus
-}
-#endif
-
-
-/* -----------------------------------------------------------------------------
- * See the LICENSE file for information on copyright, usage and redistribution
- * of SWIG, and the README file for authors - http://www.swig.org/release.html.
- *
- * rubyrun.swg
- *
- * This file contains the runtime support for Ruby modules
- * and includes code for managing global variables and pointer
- * type checking.
- * ----------------------------------------------------------------------------- */
-
-/* For backward compatibility only */
-#define SWIG_POINTER_EXCEPTION 0
-
-/* for raw pointers */
-#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
-#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own)
-#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags)
-#define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own)
-#define swig_owntype ruby_owntype
-
-/* for raw packed data */
-#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
-#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
-
-/* for class or struct pointers */
-#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
-#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
-
-/* for C or C++ function pointers */
-#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
-#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
-
-/* for C++ member pointers, ie, member methods */
-#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty)
-#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
-
-
-/* Runtime API */
-
-#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule()
-#define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer)
-
-
-/* Error manipulation */
-
-#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
-#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), msg)
-#define SWIG_fail goto fail
-
-
-/* Ruby-specific SWIG API */
-
-#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
-#define SWIG_define_class(ty) SWIG_Ruby_define_class(ty)
-#define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty)
-#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
-#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
-
-#include "assert.h"
-
-/* -----------------------------------------------------------------------------
- * pointers/data manipulation
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct {
- VALUE klass;
- VALUE mImpl;
- void (*mark)(void *);
- void (*destroy)(void *);
- int trackObjects;
-} swig_class;
-
-
-/* Global pointer used to keep some internal SWIG stuff */
-static VALUE _cSWIG_Pointer = Qnil;
-static VALUE swig_runtime_data_type_pointer = Qnil;
-
-/* Global IDs used to keep some internal SWIG stuff */
-static ID swig_arity_id = 0;
-static ID swig_call_id = 0;
-
-/*
- If your swig extension is to be run within an embedded ruby and has
- director callbacks, you should set -DRUBY_EMBEDDED during compilation.
- This will reset ruby's stack frame on each entry point from the main
- program the first time a virtual director function is invoked (in a
- non-recursive way).
- If this is not done, you run the risk of Ruby trashing the stack.
-*/
-
-#ifdef RUBY_EMBEDDED
-
-# define SWIG_INIT_STACK \
- if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \
- ++swig_virtual_calls;
-# define SWIG_RELEASE_STACK --swig_virtual_calls;
-# define Ruby_DirectorTypeMismatchException(x) \
- rb_raise( rb_eTypeError, x ); return c_result;
-
- static unsigned int swig_virtual_calls = 0;
-
-#else /* normal non-embedded extension */
-
-# define SWIG_INIT_STACK
-# define SWIG_RELEASE_STACK
-# define Ruby_DirectorTypeMismatchException(x) \
- throw Swig::DirectorTypeMismatchException( x );
-
-#endif /* RUBY_EMBEDDED */
-
-
-SWIGRUNTIME VALUE
-getExceptionClass(void) {
- static int init = 0;
- static VALUE rubyExceptionClass ;
- if (!init) {
- init = 1;
- rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
- }
- return rubyExceptionClass;
-}
-
-/* This code checks to see if the Ruby object being raised as part
- of an exception inherits from the Ruby class Exception. If so,
- the object is simply returned. If not, then a new Ruby exception
- object is created and that will be returned to Ruby.*/
-SWIGRUNTIME VALUE
-SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) {
- VALUE exceptionClass = getExceptionClass();
- if (rb_obj_is_kind_of(obj, exceptionClass)) {
- return obj;
- } else {
- return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj));
- }
-}
-
-/* Initialize Ruby runtime support */
-SWIGRUNTIME void
-SWIG_Ruby_InitRuntime(void)
-{
- if (_mSWIG == Qnil) {
- _mSWIG = rb_define_module("SWIG");
- swig_call_id = rb_intern("call");
- swig_arity_id = rb_intern("arity");
- }
-}
-
-/* Define Ruby class for C type */
-SWIGRUNTIME void
-SWIG_Ruby_define_class(swig_type_info *type)
-{
- VALUE klass;
- char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
- sprintf(klass_name, "TYPE%s", type->name);
- if (NIL_P(_cSWIG_Pointer)) {
- _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
- rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
- }
- klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
- free((void *) klass_name);
-}
-
-/* Create a new pointer object */
-SWIGRUNTIME VALUE
-SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
-{
- int own = flags & SWIG_POINTER_OWN;
- int track;
- char *klass_name;
- swig_class *sklass;
- VALUE klass;
- VALUE obj;
-
- if (!ptr)
- return Qnil;
-
- if (type->clientdata) {
- sklass = (swig_class *) type->clientdata;
-
- /* Are we tracking this class and have we already returned this Ruby object? */
- track = sklass->trackObjects;
- if (track) {
- obj = SWIG_RubyInstanceFor(ptr);
-
- /* Check the object's type and make sure it has the correct type.
- It might not in cases where methods do things like
- downcast methods. */
- if (obj != Qnil) {
- VALUE value = rb_iv_get(obj, "@__swigtype__");
- char* type_name = RSTRING_PTR(value);
-
- if (strcmp(type->name, type_name) == 0) {
- return obj;
- }
- }
- }
-
- /* Create a new Ruby object */
- obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
- ( own ? VOIDFUNC(sklass->destroy) :
- (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
- ), ptr);
-
- /* If tracking is on for this class then track this object. */
- if (track) {
- SWIG_RubyAddTracking(ptr, obj);
- }
- } else {
- klass_name = (char *) malloc(4 + strlen(type->name) + 1);
- sprintf(klass_name, "TYPE%s", type->name);
- klass = rb_const_get(_mSWIG, rb_intern(klass_name));
- free((void *) klass_name);
- obj = Data_Wrap_Struct(klass, 0, 0, ptr);
- }
- rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
-
- return obj;
-}
-
-/* Create a new class instance (always owned) */
-SWIGRUNTIME VALUE
-SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
-{
- VALUE obj;
- swig_class *sklass = (swig_class *) type->clientdata;
- obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
- rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
- return obj;
-}
-
-/* Get type mangle from class name */
-SWIGRUNTIMEINLINE char *
-SWIG_Ruby_MangleStr(VALUE obj)
-{
- VALUE stype = rb_iv_get(obj, "@__swigtype__");
- return StringValuePtr(stype);
-}
-
-/* Acquire a pointer value */
-typedef void (*ruby_owntype)(void*);
-
-SWIGRUNTIME ruby_owntype
-SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) {
- if (obj) {
- ruby_owntype oldown = RDATA(obj)->dfree;
- RDATA(obj)->dfree = own;
- return oldown;
- } else {
- return 0;
- }
-}
-
-/* Convert a pointer value */
-SWIGRUNTIME int
-SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own)
-{
- char *c;
- swig_cast_info *tc;
- void *vptr = 0;
-
- /* Grab the pointer */
- if (NIL_P(obj)) {
- *ptr = 0;
- return SWIG_OK;
- } else {
- if (TYPE(obj) != T_DATA) {
- return SWIG_ERROR;
- }
- Data_Get_Struct(obj, void, vptr);
- }
-
- if (own) *own = RDATA(obj)->dfree;
-
- /* Check to see if the input object is giving up ownership
- of the underlying C struct or C++ object. If so then we
- need to reset the destructor since the Ruby object no
- longer owns the underlying C++ object.*/
- if (flags & SWIG_POINTER_DISOWN) {
- /* Is tracking on for this class? */
- int track = 0;
- if (ty && ty->clientdata) {
- swig_class *sklass = (swig_class *) ty->clientdata;
- track = sklass->trackObjects;
- }
-
- if (track) {
- /* We are tracking objects for this class. Thus we change the destructor
- * to SWIG_RubyRemoveTracking. This allows us to
- * remove the mapping from the C++ to Ruby object
- * when the Ruby object is garbage collected. If we don't
- * do this, then it is possible we will return a reference
- * to a Ruby object that no longer exists thereby crashing Ruby. */
- RDATA(obj)->dfree = SWIG_RubyRemoveTracking;
- } else {
- RDATA(obj)->dfree = 0;
- }
- }
-
- /* Do type-checking if type info was provided */
- if (ty) {
- if (ty->clientdata) {
- if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) {
- if (vptr == 0) {
- /* The object has already been deleted */
- return SWIG_ObjectPreviouslyDeletedError;
- }
- *ptr = vptr;
- return SWIG_OK;
- }
- }
- if ((c = SWIG_MangleStr(obj)) == NULL) {
- return SWIG_ERROR;
- }
- tc = SWIG_TypeCheck(c, ty);
- if (!tc) {
- return SWIG_ERROR;
- } else {
- int newmemory = 0;
- *ptr = SWIG_TypeCast(tc, vptr, &newmemory);
- assert(!newmemory); /* newmemory handling not yet implemented */
- }
- } else {
- *ptr = vptr;
- }
-
- return SWIG_OK;
-}
-
-/* Check convert */
-SWIGRUNTIMEINLINE int
-SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty)
-{
- char *c = SWIG_MangleStr(obj);
- if (!c) return 0;
- return SWIG_TypeCheck(c,ty) != 0;
-}
-
-SWIGRUNTIME VALUE
-SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
- char result[1024];
- char *r = result;
- if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
- *(r++) = '_';
- r = SWIG_PackData(r, ptr, sz);
- strcpy(r, type->name);
- return rb_str_new2(result);
-}
-
-/* Convert a packed value value */
-SWIGRUNTIME int
-SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) {
- swig_cast_info *tc;
- const char *c;
-
- if (TYPE(obj) != T_STRING) goto type_error;
- c = StringValuePtr(obj);
- /* Pointer values must start with leading underscore */
- if (*c != '_') goto type_error;
- c++;
- c = SWIG_UnpackData(c, ptr, sz);
- if (ty) {
- tc = SWIG_TypeCheck(c, ty);
- if (!tc) goto type_error;
- }
- return SWIG_OK;
-
- type_error:
- return SWIG_ERROR;
-}
-
-SWIGRUNTIME swig_module_info *
-SWIG_Ruby_GetModule(void)
-{
- VALUE pointer;
- swig_module_info *ret = 0;
- VALUE verbose = rb_gv_get("VERBOSE");
-
- /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */
- rb_gv_set("VERBOSE", Qfalse);
-
- /* first check if pointer already created */
- pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
- if (pointer != Qnil) {
- Data_Get_Struct(pointer, swig_module_info, ret);
- }
-
- /* reinstate warnings */
- rb_gv_set("VERBOSE", verbose);
- return ret;
-}
-
-SWIGRUNTIME void
-SWIG_Ruby_SetModule(swig_module_info *pointer)
-{
- /* register a new class */
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
- /* create and store the structure pointer to a global variable */
- swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
- rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
-}
-
-/* This function can be used to check whether a proc or method or similarly
- callable function has been passed. Usually used in a %typecheck, like:
-
- %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) {
- $result = SWIG_Ruby_isCallable( $input );
- }
- */
-SWIGINTERN
-int SWIG_Ruby_isCallable( VALUE proc )
-{
- if ( rb_respond_to( proc, swig_call_id ) == Qtrue )
- return 1;
- return 0;
-}
-
-/* This function can be used to check the arity (number of arguments)
- a proc or method can take. Usually used in a %typecheck.
- Valid arities will be that equal to minimal or those < 0
- which indicate a variable number of parameters at the end.
- */
-SWIGINTERN
-int SWIG_Ruby_arity( VALUE proc, int minimal )
-{
- if ( rb_respond_to( proc, swig_arity_id ) == Qtrue )
- {
- VALUE num = rb_funcall( proc, swig_arity_id, 0 );
- int arity = NUM2INT(num);
- if ( arity < 0 && (arity+1) < -minimal ) return 1;
- if ( arity == minimal ) return 1;
- return 1;
- }
- return 0;
-}
-
-
-#ifdef __cplusplus
-}
-#endif
-
-
-
-#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
-
-#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
-
-
-
- #define SWIG_exception(code, msg) do { SWIG_Error(code, msg);; } while(0)
-
-
-/* -------- TYPES TABLE (BEGIN) -------- */
-
-#define SWIGTYPE_p_GIntBig swig_types[0]
-#define SWIGTYPE_p_OGRDataSourceShadow swig_types[1]
-#define SWIGTYPE_p_OGRDriverShadow swig_types[2]
-#define SWIGTYPE_p_OGRFeatureDefnShadow swig_types[3]
-#define SWIGTYPE_p_OGRFeatureShadow swig_types[4]
-#define SWIGTYPE_p_OGRFieldDefnShadow swig_types[5]
-#define SWIGTYPE_p_OGRGeometryShadow swig_types[6]
-#define SWIGTYPE_p_OGRLayerShadow swig_types[7]
-#define SWIGTYPE_p_OSRCoordinateTransformationShadow swig_types[8]
-#define SWIGTYPE_p_OSRSpatialReferenceShadow swig_types[9]
-#define SWIGTYPE_p_char swig_types[10]
-#define SWIGTYPE_p_double swig_types[11]
-#define SWIGTYPE_p_int swig_types[12]
-#define SWIGTYPE_p_p_char swig_types[13]
-#define SWIGTYPE_p_p_double swig_types[14]
-#define SWIGTYPE_p_p_int swig_types[15]
-#define SWIGTYPE_p_p_p_char swig_types[16]
-static swig_type_info *swig_types[18];
-static swig_module_info swig_module = {swig_types, 17, 0, 0, 0, 0};
-#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
-#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
-
-/* -------- TYPES TABLE (END) -------- */
-
-#define SWIG_init Init_ogr
-#define SWIG_name "Gdal::Ogr"
-
-static VALUE mOgr;
-
-#define SWIG_RUBY_THREAD_BEGIN_BLOCK
-#define SWIG_RUBY_THREAD_END_BLOCK
-
-
-#define SWIGVERSION 0x010340
-#define SWIG_VERSION SWIGVERSION
-
-
-#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
-#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
-
-
-#include <stdexcept>
-
-
-typedef char retStringAndCPLFree;
-
-
-#include <iostream>
-using namespace std;
-
-#include "ogr_api.h"
-#include "ogr_p.h"
-#include "ogr_core.h"
-#include "cpl_port.h"
-#include "cpl_string.h"
-#include "ogr_srs_api.h"
-
-#ifdef DEBUG
-typedef struct OGRSpatialReferenceHS OSRSpatialReferenceShadow;
-typedef struct OGRDriverHS OGRDriverShadow;
-typedef struct OGRDataSourceHS OGRDataSourceShadow;
-typedef struct OGRLayerHS OGRLayerShadow;
-typedef struct OGRFeatureHS OGRFeatureShadow;
-typedef struct OGRFeatureDefnHS OGRFeatureDefnShadow;
-typedef struct OGRGeometryHS OGRGeometryShadow;
-typedef struct OGRCoordinateTransformationHS OSRCoordinateTransformationShadow;
-typedef struct OGRCoordinateTransformationHS OGRCoordinateTransformationShadow;
-typedef struct OGRFieldDefnHS OGRFieldDefnShadow;
-#else
-typedef void OSRSpatialReferenceShadow;
-typedef void OGRDriverShadow;
-typedef void OGRDataSourceShadow;
-typedef void OGRLayerShadow;
-typedef void OGRFeatureShadow;
-typedef void OGRFeatureDefnShadow;
-typedef void OGRGeometryShadow;
-typedef void OSRCoordinateTransformationShadow;
-typedef void OGRFieldDefnShadow;
-#endif
-
-
-#include <limits.h>
-#if !defined(SWIG_NO_LLONG_MAX)
-# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
-# define LLONG_MAX __LONG_LONG_MAX__
-# define LLONG_MIN (-LLONG_MAX - 1LL)
-# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
-# endif
-#endif
-
-
- #define SWIG_From_long LONG2NUM
-
-
-SWIGINTERNINLINE VALUE
-SWIG_From_int (int value)
-{
- return SWIG_From_long (value);
-}
-
-
-SWIGINTERN swig_type_info*
-SWIG_pchar_descriptor(void)
-{
- static int init = 0;
- static swig_type_info* info = 0;
- if (!init) {
- info = SWIG_TypeQuery("_p_char");
- init = 1;
- }
- return info;
-}
-
-
-SWIGINTERNINLINE VALUE
-SWIG_FromCharPtrAndSize(const char* carray, size_t size)
-{
- if (carray) {
- if (size > LONG_MAX) {
- swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
- return pchar_descriptor ?
- SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil;
- } else {
- return rb_str_new(carray, static_cast< long >(size));
- }
- } else {
- return Qnil;
- }
-}
-
-
-SWIGINTERNINLINE VALUE
-SWIG_FromCharPtr(const char *cptr)
-{
- return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
-}
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-// Ruby 1.9 changed the file name of this header
-#ifdef HAVE_RUBY_IO_H
-#include "ruby/io.h"
-#else
-#include "rubyio.h"
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-struct timeval rb_time_timeval(VALUE);
-#endif
-#ifdef __cplusplus
-}
-#endif
-
-
-
-#include "ogr_core.h"
-static char const *
-OGRErrMessages( int rc ) {
- switch( rc ) {
- case OGRERR_NONE:
- return "OGR Error: None";
- case OGRERR_NOT_ENOUGH_DATA:
- return "OGR Error: Not enough data to deserialize";
- case OGRERR_NOT_ENOUGH_MEMORY:
- return "OGR Error: Not enough memory";
- case OGRERR_UNSUPPORTED_GEOMETRY_TYPE:
- return "OGR Error: Unsupported geometry type";
- case OGRERR_UNSUPPORTED_OPERATION:
- return "OGR Error: Unsupported operation";
- case OGRERR_CORRUPT_DATA:
- return "OGR Error: Corrupt data";
- case OGRERR_FAILURE:
- return "OGR Error: General Error";
- case OGRERR_UNSUPPORTED_SRS:
- return "OGR Error: Unsupported SRS";
- case OGRERR_INVALID_HANDLE:
- return "OGR Error: Invalid handle";
- default:
- return "OGR Error: Unknown";
- }
-}
-
-
-void VeryQuiteErrorHandler(CPLErr eclass, int code, const char *msg ) {
- /* If the error class is CE_Fatal, we want to have a message issued
- because the CPL support code does an abort() before any exception
- can be generated */
- if (eclass == CE_Fatal ) {
- CPLDefaultErrorHandler(eclass, code, msg );
- }
-}
-
-
-void UseExceptions() {
- CPLSetErrorHandler( (CPLErrorHandler) VeryQuiteErrorHandler );
-}
-
-void DontUseExceptions() {
- CPLSetErrorHandler( CPLDefaultErrorHandler );
-}
-
-
-SWIGINTERN int
-SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
-{
- if (TYPE(obj) == T_STRING) {
- #if defined(StringValuePtr)
- char *cstr = StringValuePtr(obj);
- #else
- char *cstr = STR2CSTR(obj);
- #endif
- size_t size = RSTRING_LEN(obj) + 1;
- if (cptr) {
- if (alloc) {
- if (*alloc == SWIG_NEWOBJ) {
- *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size)));
- } else {
- *cptr = cstr;
- *alloc = SWIG_OLDOBJ;
- }
- }
- }
- if (psize) *psize = size;
- return SWIG_OK;
- } else {
- swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
- if (pchar_descriptor) {
- void* vptr = 0;
- if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
- if (cptr) *cptr = (char *)vptr;
- if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0;
- if (alloc) *alloc = SWIG_OLDOBJ;
- return SWIG_OK;
- }
- }
- }
- return SWIG_TypeError;
-}
-
-
-
-
-SWIGINTERN OGRDataSourceShadow *OGRDriverShadow_CreateDataSource(OGRDriverShadow *self,char const *name,char **options=0){
- OGRDataSourceShadow *ds = (OGRDataSourceShadow*) OGR_Dr_CreateDataSource( self, name, options);
- return ds;
- }
-SWIGINTERN OGRDataSourceShadow *OGRDriverShadow_CopyDataSource(OGRDriverShadow *self,OGRDataSourceShadow *copy_ds,char const *utf8_path,char **options=0){
- OGRDataSourceShadow *ds = (OGRDataSourceShadow*) OGR_Dr_CopyDataSource(self, copy_ds, utf8_path, options);
- return ds;
- }
-
-SWIGINTERN VALUE
-SWIG_ruby_failed(void)
-{
- return Qnil;
-}
-
-
-/*@SWIG:/usr/share/swig1.3/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
-SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
-{
- VALUE obj = args[0];
- VALUE type = TYPE(obj);
- long *res = (long *)(args[1]);
- *res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj);
- return obj;
-}
-/*@SWIG@*/
-
-SWIGINTERN int
-SWIG_AsVal_long (VALUE obj, long* val)
-{
- VALUE type = TYPE(obj);
- if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
- long v;
- VALUE a[2];
- a[0] = obj;
- a[1] = (VALUE)(&v);
- if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
- if (val) *val = v;
- return SWIG_OK;
- }
- }
- return SWIG_TypeError;
-}
-
-
-SWIGINTERN int
-SWIG_AsVal_int (VALUE obj, int *val)
-{
- long v;
- int res = SWIG_AsVal_long (obj, &v);
- if (SWIG_IsOK(res)) {
- if ((v < INT_MIN || v > INT_MAX)) {
- return SWIG_OverflowError;
- } else {
- if (val) *val = static_cast< int >(v);
- }
- }
- return res;
-}
-
-SWIGINTERN OGRDataSourceShadow *OGRDriverShadow_Open(OGRDriverShadow *self,char const *utf8_path,int update=0){
- OGRDataSourceShadow* ds = (OGRDataSourceShadow*) OGR_Dr_Open(self, utf8_path, update);
- return ds;
- }
-SWIGINTERN int OGRDriverShadow_DeleteDataSource(OGRDriverShadow *self,char const *name){
-
- return OGR_Dr_DeleteDataSource( self, name );
- }
-SWIGINTERN bool OGRDriverShadow_TestCapability(OGRDriverShadow *self,char const *cap){
- return (OGR_Dr_TestCapability(self, cap) > 0);
- }
-
-SWIGINTERNINLINE VALUE
-SWIG_From_bool (bool value)
-{
- return value ? Qtrue : Qfalse;
-}
-
-SWIGINTERN char const *OGRDriverShadow_GetName(OGRDriverShadow *self){
- return OGR_Dr_GetName( self );
- }
-SWIGINTERN void OGRDriverShadow_Register(OGRDriverShadow *self){
- OGRRegisterDriver( self );
- }
-SWIGINTERN void OGRDriverShadow_Deregister(OGRDriverShadow *self){
- OGRDeregisterDriver( self );
- }
-SWIGINTERN int OGRDataSourceShadow_GetRefCount(OGRDataSourceShadow *self){
- return OGR_DS_GetRefCount(self);
- }
-SWIGINTERN int OGRDataSourceShadow_GetSummaryRefCount(OGRDataSourceShadow *self){
- return OGR_DS_GetSummaryRefCount(self);
- }
-SWIGINTERN int OGRDataSourceShadow_GetLayerCount(OGRDataSourceShadow *self){
- return OGR_DS_GetLayerCount(self);
- }
-SWIGINTERN OGRDriverShadow *OGRDataSourceShadow_GetDriver(OGRDataSourceShadow *self){
- return (OGRDriverShadow *) OGR_DS_GetDriver( self );
- }
-SWIGINTERN char const *OGRDataSourceShadow_GetName(OGRDataSourceShadow *self){
- return OGR_DS_GetName(self);
- }
-SWIGINTERN OGRErr OGRDataSourceShadow_DeleteLayer(OGRDataSourceShadow *self,int index){
- return OGR_DS_DeleteLayer(self, index);
- }
-SWIGINTERN OGRLayerShadow *OGRDataSourceShadow_CreateLayer(OGRDataSourceShadow *self,char const *name,OSRSpatialReferenceShadow *srs=NULL,OGRwkbGeometryType geom_type=wkbUnknown,char **options=0){
- OGRLayerShadow* layer = (OGRLayerShadow*) OGR_DS_CreateLayer( self,
- name,
- srs,
- geom_type,
- options);
- return layer;
- }
-SWIGINTERN OGRLayerShadow *OGRDataSourceShadow_CopyLayer(OGRDataSourceShadow *self,OGRLayerShadow *src_layer,char const *new_name,char **options=0){
- OGRLayerShadow* layer = (OGRLayerShadow*) OGR_DS_CopyLayer( self,
- src_layer,
- new_name,
- options);
- return layer;
- }
-SWIGINTERN bool OGRDataSourceShadow_TestCapability(OGRDataSourceShadow *self,char const *cap){
- return (OGR_DS_TestCapability(self, cap) > 0);
- }
-SWIGINTERN OGRLayerShadow *OGRDataSourceShadow_ExecuteSQL(OGRDataSourceShadow *self,char const *statement,OGRGeometryShadow *spatialFilter=NULL,char const *dialect=""){
- OGRLayerShadow* layer = (OGRLayerShadow*) OGR_DS_ExecuteSQL((OGRDataSourceShadow*)self,
- statement,
- spatialFilter,
- dialect);
- return layer;
- }
-SWIGINTERN void OGRDataSourceShadow_ReleaseResultSet(OGRDataSourceShadow *self,OGRLayerShadow *layer){
- OGR_DS_ReleaseResultSet(self, layer);
- }
-SWIGINTERN OGRLayerShadow *OGRDataSourceShadow_GetLayer(OGRDataSourceShadow *self,VALUE whichLayer){
- // get field index
- switch (TYPE(whichLayer)) {
- case T_STRING: {
- char* name = StringValuePtr(whichLayer);
- return OGR_DS_GetLayerByName(self, name);
- break;
- }
- case T_FIXNUM: {
- int index = NUM2INT(whichLayer);
- return OGR_DS_GetLayer(self, index);
- break;
- }
- default:
- SWIG_exception(SWIG_TypeError, "Value must be a string or integer.");
- }
- }
-SWIGINTERN int OGRLayerShadow_GetRefCount(OGRLayerShadow *self){
- return OGR_L_GetRefCount(self);
- }
-SWIGINTERN void OGRLayerShadow_SetSpatialFilter(OGRLayerShadow *self,OGRGeometryShadow *filter){
- OGR_L_SetSpatialFilter (self, filter);
- }
-
-/*@SWIG:/usr/share/swig1.3/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
-SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
-{
- VALUE obj = args[0];
- VALUE type = TYPE(obj);
- double *res = (double *)(args[1]);
- *res = NUM2DBL(obj);
- return obj;
-}
-/*@SWIG@*/
-
-SWIGINTERN int
-SWIG_AsVal_double (VALUE obj, double *val)
-{
- VALUE type = TYPE(obj);
- if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) {
- double v;
- VALUE a[2];
- a[0] = obj;
- a[1] = (VALUE)(&v);
- if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
- if (val) *val = v;
- return SWIG_OK;
- }
- }
- return SWIG_TypeError;
-}
-
-SWIGINTERN void OGRLayerShadow_SetSpatialFilterRect(OGRLayerShadow *self,double minx,double miny,double maxx,double maxy){
- OGR_L_SetSpatialFilterRect(self, minx, miny, maxx, maxy);
- }
-SWIGINTERN OGRGeometryShadow *OGRLayerShadow_GetSpatialFilter(OGRLayerShadow *self){
- return (OGRGeometryShadow *) OGR_L_GetSpatialFilter(self);
- }
-SWIGINTERN OGRErr OGRLayerShadow_SetAttributeFilter(OGRLayerShadow *self,char *filter_string){
- return OGR_L_SetAttributeFilter((OGRLayerShadow*)self, filter_string);
- }
-SWIGINTERN void OGRLayerShadow_ResetReading(OGRLayerShadow *self){
- OGR_L_ResetReading(self);
- }
-SWIGINTERN char const *OGRLayerShadow_GetName(OGRLayerShadow *self){
- return OGR_L_GetName(self);
- }
-SWIGINTERN OGRwkbGeometryType OGRLayerShadow_GetGeomType(OGRLayerShadow *self){
- return (OGRwkbGeometryType) OGR_L_GetGeomType(self);
- }
-SWIGINTERN char const *OGRLayerShadow_GetGeometryColumn(OGRLayerShadow *self){
- return OGR_L_GetGeometryColumn(self);
- }
-SWIGINTERN char const *OGRLayerShadow_GetFIDColumn(OGRLayerShadow *self){
- return OGR_L_GetFIDColumn(self);
- }
-SWIGINTERN OGRFeatureShadow *OGRLayerShadow_GetFeature(OGRLayerShadow *self,long fid){
- return (OGRFeatureShadow*) OGR_L_GetFeature(self, fid);
- }
-SWIGINTERN OGRFeatureShadow *OGRLayerShadow_GetNextFeature(OGRLayerShadow *self){
- return (OGRFeatureShadow*) OGR_L_GetNextFeature(self);
- }
-SWIGINTERN OGRErr OGRLayerShadow_SetNextByIndex(OGRLayerShadow *self,long new_index){
- return OGR_L_SetNextByIndex(self, new_index);
- }
-SWIGINTERN OGRErr OGRLayerShadow_SetFeature(OGRLayerShadow *self,OGRFeatureShadow *feature){
- return OGR_L_SetFeature(self, feature);
- }
-SWIGINTERN OGRErr OGRLayerShadow_CreateFeature(OGRLayerShadow *self,OGRFeatureShadow *feature){
- return OGR_L_CreateFeature(self, feature);
- }
-SWIGINTERN OGRErr OGRLayerShadow_DeleteFeature(OGRLayerShadow *self,long fid){
- return OGR_L_DeleteFeature(self, fid);
- }
-SWIGINTERN OGRErr OGRLayerShadow_SyncToDisk(OGRLayerShadow *self){
- return OGR_L_SyncToDisk(self);
- }
-SWIGINTERN OGRFeatureDefnShadow *OGRLayerShadow_GetLayerDefn(OGRLayerShadow *self){
- return (OGRFeatureDefnShadow*) OGR_L_GetLayerDefn(self);
- }
-SWIGINTERN int OGRLayerShadow_GetFeatureCount(OGRLayerShadow *self,int force=1){
- return OGR_L_GetFeatureCount(self, force);
- }
-SWIGINTERN OGRErr OGRLayerShadow_GetExtent(OGRLayerShadow *self,double argout[4],int force=1){
-
-
-
- return OGR_L_GetExtent(self, (OGREnvelope*)argout, force);
- }
-SWIGINTERN bool OGRLayerShadow_TestCapability(OGRLayerShadow *self,char const *cap){
- return (OGR_L_TestCapability(self, cap) > 0);
- }
-SWIGINTERN OGRErr OGRLayerShadow_CreateField(OGRLayerShadow *self,OGRFieldDefnShadow *field_def,int approx_ok=1){
- return OGR_L_CreateField(self, field_def, approx_ok);
- }
-SWIGINTERN OGRErr OGRLayerShadow_StartTransaction(OGRLayerShadow *self){
- return OGR_L_StartTransaction(self);
- }
-SWIGINTERN OGRErr OGRLayerShadow_CommitTransaction(OGRLayerShadow *self){
- return OGR_L_CommitTransaction(self);
- }
-SWIGINTERN OGRErr OGRLayerShadow_RollbackTransaction(OGRLayerShadow *self){
- return OGR_L_RollbackTransaction(self);
- }
-SWIGINTERN OSRSpatialReferenceShadow *OGRLayerShadow_GetSpatialRef(OGRLayerShadow *self){
- OGRSpatialReferenceH ref = OGR_L_GetSpatialRef(self);
- if( ref )
- OSRReference(ref);
- return (OSRSpatialReferenceShadow*) ref;
- }
-SWIGINTERN GIntBig OGRLayerShadow_GetFeaturesRead(OGRLayerShadow *self){
- return OGR_L_GetFeaturesRead(self);
- }
-SWIGINTERN OGRErr OGRLayerShadow_SetIgnoredFields(OGRLayerShadow *self,char const **options){
- return OGR_L_SetIgnoredFields( self, options );
- }
-SWIGINTERN void OGRLayerShadow_each(OGRLayerShadow *self){
- OGRFeatureShadow* feature = NULL;
-
- while (feature = (OGRFeatureShadow*) OGR_L_GetNextFeature(self))
- {
- /* Convert the pointer to a Ruby object. Note we set the flag
- to one manually to show this is a new object */
- VALUE object = SWIG_NewPointerObj((void *) feature, SWIGTYPE_p_OGRFeatureShadow, SWIG_POINTER_OWN);
-
- /* Now invoke the block specified for this method. */
- rb_yield(object);
- }
- }
-SWIGINTERN OGRFeatureShadow *new_OGRFeatureShadow(OGRFeatureDefnShadow *feature_def){
- return (OGRFeatureShadow*) OGR_F_Create( feature_def );
- }
-SWIGINTERN OGRFeatureDefnShadow *OGRFeatureShadow_GetDefnRef(OGRFeatureShadow *self){
- return (OGRFeatureDefnShadow*) OGR_F_GetDefnRef(self);
- }
-SWIGINTERN OGRErr OGRFeatureShadow_SetGeometry(OGRFeatureShadow *self,OGRGeometryShadow *geom){
- return OGR_F_SetGeometry(self, geom);
- }
-SWIGINTERN OGRErr OGRFeatureShadow_SetGeometryDirectly(OGRFeatureShadow *self,OGRGeometryShadow *geom){
- return OGR_F_SetGeometryDirectly(self, geom);
- }
-SWIGINTERN OGRGeometryShadow *OGRFeatureShadow_GetGeometryRef(OGRFeatureShadow *self){
- return (OGRGeometryShadow*) OGR_F_GetGeometryRef(self);
- }
-SWIGINTERN OGRFeatureShadow *OGRFeatureShadow_Clone(OGRFeatureShadow *self){
- return (OGRFeatureShadow*) OGR_F_Clone(self);
- }
-SWIGINTERN bool OGRFeatureShadow_Equal(OGRFeatureShadow *self,OGRFeatureShadow *feature){
- return (OGR_F_Equal(self, feature) > 0);
- }
-SWIGINTERN int OGRFeatureShadow_GetFieldCount(OGRFeatureShadow *self){
- return OGR_F_GetFieldCount(self);
- }
-SWIGINTERN OGRFieldDefnShadow *OGRFeatureShadow_GetFieldDefnRef__SWIG_0(OGRFeatureShadow *self,int id){
- return (OGRFieldDefnShadow *) OGR_F_GetFieldDefnRef(self, id);
- }
-SWIGINTERN OGRFieldDefnShadow *OGRFeatureShadow_GetFieldDefnRef__SWIG_1(OGRFeatureShadow *self,char const *name){
- int i = OGR_F_GetFieldIndex(self, name);
- if (i == -1)
- CPLError(CE_Failure, 1, "No such field: '%s'", name);
- else
- return (OGRFieldDefnShadow *) OGR_F_GetFieldDefnRef(self, i);
- return NULL;
- }
-SWIGINTERN char const *OGRFeatureShadow_GetFieldAsString__SWIG_0(OGRFeatureShadow *self,int id){
- return (const char *) OGR_F_GetFieldAsString(self, id);
- }
-SWIGINTERN char const *OGRFeatureShadow_GetFieldAsString__SWIG_1(OGRFeatureShadow *self,char const *name){
- int i = OGR_F_GetFieldIndex(self, name);
- if (i == -1)
- CPLError(CE_Failure, 1, "No such field: '%s'", name);
- else
- return (const char *) OGR_F_GetFieldAsString(self, i);
- return NULL;
- }
-SWIGINTERN int OGRFeatureShadow_GetFieldAsInteger__SWIG_0(OGRFeatureShadow *self,int id){
- return OGR_F_GetFieldAsInteger(self, id);
- }
-SWIGINTERN int OGRFeatureShadow_GetFieldAsInteger__SWIG_1(OGRFeatureShadow *self,char const *name){
- int i = OGR_F_GetFieldIndex(self, name);
- if (i == -1)
- CPLError(CE_Failure, 1, "No such field: '%s'", name);
- else
- return OGR_F_GetFieldAsInteger(self, i);
- return 0;
- }
-SWIGINTERN double OGRFeatureShadow_GetFieldAsDouble__SWIG_0(OGRFeatureShadow *self,int id){
- return OGR_F_GetFieldAsDouble(self, id);
- }
-
- #define SWIG_From_double rb_float_new
-
-SWIGINTERN double OGRFeatureShadow_GetFieldAsDouble__SWIG_1(OGRFeatureShadow *self,char const *name){
- int i = OGR_F_GetFieldIndex(self, name);
- if (i == -1)
- CPLError(CE_Failure, 1, "No such field: '%s'", name);
- else
- return OGR_F_GetFieldAsDouble(self, i);
- return 0;
- }
-SWIGINTERN void OGRFeatureShadow_GetFieldAsDateTime(OGRFeatureShadow *self,int id,int *pnYear,int *pnMonth,int *pnDay,int *pnHour,int *pnMinute,int *pnSecond,int *pnTZFlag){
- OGR_F_GetFieldAsDateTime(self, id, pnYear, pnMonth, pnDay,
- pnHour, pnMinute, pnSecond,
- pnTZFlag);
- }
-SWIGINTERN void OGRFeatureShadow_GetFieldAsIntegerList(OGRFeatureShadow *self,int id,int *nLen,int const **pList){
- *pList = OGR_F_GetFieldAsIntegerList(self, id, nLen);
- }
-SWIGINTERN void OGRFeatureShadow_GetFieldAsDoubleList(OGRFeatureShadow *self,int id,int *nLen,double const **pList){
- *pList = OGR_F_GetFieldAsDoubleList(self, id, nLen);
- }
-SWIGINTERN void OGRFeatureShadow_GetFieldAsStringList(OGRFeatureShadow *self,int id,char ***pList){
- *pList = OGR_F_GetFieldAsStringList(self, id);
- }
-SWIGINTERN bool OGRFeatureShadow_IsFieldSet__SWIG_0(OGRFeatureShadow *self,int id){
- return (OGR_F_IsFieldSet(self, id) > 0);
- }
-SWIGINTERN bool OGRFeatureShadow_IsFieldSet__SWIG_1(OGRFeatureShadow *self,char const *name){
- int i = OGR_F_GetFieldIndex(self, name);
- if (i == -1)
- CPLError(CE_Failure, 1, "No such field: '%s'", name);
- else
- return (OGR_F_IsFieldSet(self, i) > 0);
- return false;
- }
-SWIGINTERN int OGRFeatureShadow_GetFieldIndex(OGRFeatureShadow *self,char const *name){
- return OGR_F_GetFieldIndex(self, name);
- }
-SWIGINTERN int OGRFeatureShadow_GetFID(OGRFeatureShadow *self){
- return OGR_F_GetFID(self);
- }
-SWIGINTERN OGRErr OGRFeatureShadow_SetFID(OGRFeatureShadow *self,int fid){
- return OGR_F_SetFID(self, fid);
- }
-SWIGINTERN void OGRFeatureShadow_DumpReadable(OGRFeatureShadow *self){
- OGR_F_DumpReadable(self, NULL);
- }
-SWIGINTERN void OGRFeatureShadow_UnsetField__SWIG_0(OGRFeatureShadow *self,int id){
- OGR_F_UnsetField(self, id);
- }
-SWIGINTERN void OGRFeatureShadow_UnsetField__SWIG_1(OGRFeatureShadow *self,char const *name){
- int i = OGR_F_GetFieldIndex(self, name);
- if (i == -1)
- CPLError(CE_Failure, 1, "No such field: '%s'", name);
- else
- OGR_F_UnsetField(self, i);
- }
-SWIGINTERN void OGRFeatureShadow_SetField__SWIG_0(OGRFeatureShadow *self,int id,char const *value){
- OGR_F_SetFieldString(self, id, value);
- }
-SWIGINTERN void OGRFeatureShadow_SetField__SWIG_1(OGRFeatureShadow *self,char const *name,char const *value){
- int i = OGR_F_GetFieldIndex(self, name);
- if (i == -1)
- CPLError(CE_Failure, 1, "No such field: '%s'", name);
- else
- OGR_F_SetFieldString(self, i, value);
- }
-SWIGINTERN void OGRFeatureShadow_SetField__SWIG_2(OGRFeatureShadow *self,int id,int value){
- OGR_F_SetFieldInteger(self, id, value);
- }
-SWIGINTERN void OGRFeatureShadow_SetField__SWIG_3(OGRFeatureShadow *self,char const *name,int value){
- int i = OGR_F_GetFieldIndex(self, name);
- if (i == -1)
- CPLError(CE_Failure, 1, "No such field: '%s'", name);
- else
- OGR_F_SetFieldInteger(self, i, value);
- }
-SWIGINTERN void OGRFeatureShadow_SetField__SWIG_4(OGRFeatureShadow *self,int id,double value){
- OGR_F_SetFieldDouble(self, id, value);
- }
-SWIGINTERN void OGRFeatureShadow_SetField__SWIG_5(OGRFeatureShadow *self,char const *name,double value){
- int i = OGR_F_GetFieldIndex(self, name);
- if (i == -1)
- CPLError(CE_Failure, 1, "No such field: '%s'", name);
- else
- OGR_F_SetFieldDouble(self, i, value);
- }
-SWIGINTERN void OGRFeatureShadow_SetField__SWIG_6(OGRFeatureShadow *self,int id,int year,int month,int day,int hour,int minute,int second,int tzflag){
- OGR_F_SetFieldDateTime(self, id, year, month, day,
- hour, minute, second,
- tzflag);
- }
-SWIGINTERN void OGRFeatureShadow_SetField__SWIG_7(OGRFeatureShadow *self,char const *name,int year,int month,int day,int hour,int minute,int second,int tzflag){
- int i = OGR_F_GetFieldIndex(self, name);
- if (i == -1)
- CPLError(CE_Failure, 1, "No such field: '%s'", name);
- else
- OGR_F_SetFieldDateTime(self, i, year, month, day,
- hour, minute, second,
- tzflag);
- }
-SWIGINTERN void OGRFeatureShadow_SetFieldIntegerList(OGRFeatureShadow *self,int id,int nList,int *pList){
- OGR_F_SetFieldIntegerList(self, id, nList, pList);
- }
-SWIGINTERN void OGRFeatureShadow_SetFieldDoubleList(OGRFeatureShadow *self,int id,int nList,double *pList){
- OGR_F_SetFieldDoubleList(self, id, nList, pList);
- }
-SWIGINTERN void OGRFeatureShadow_SetFieldStringList(OGRFeatureShadow *self,int id,char **pList){
- OGR_F_SetFieldStringList(self, id, pList);
- }
-SWIGINTERN OGRErr OGRFeatureShadow_SetFrom(OGRFeatureShadow *self,OGRFeatureShadow *other,int forgiving=1){
- return OGR_F_SetFrom(self, other, forgiving);
- }
-SWIGINTERN char const *OGRFeatureShadow_GetStyleString(OGRFeatureShadow *self){
- return (const char*) OGR_F_GetStyleString(self);
- }
-SWIGINTERN void OGRFeatureShadow_SetStyleString(OGRFeatureShadow *self,char const *the_string){
- OGR_F_SetStyleString(self, the_string);
- }
-SWIGINTERN OGRFieldType OGRFeatureShadow_GetFieldType__SWIG_0(OGRFeatureShadow *self,int id){
- return (OGRFieldType) OGR_Fld_GetType( OGR_F_GetFieldDefnRef( self, id));
- }
-SWIGINTERN OGRFieldType OGRFeatureShadow_GetFieldType__SWIG_1(OGRFeatureShadow *self,char const *name){
- int i = OGR_F_GetFieldIndex(self, name);
- if (i == -1) {
- CPLError(CE_Failure, 1, "No such field: '%s'", name);
- return (OGRFieldType)0;
- } else
- return (OGRFieldType) OGR_Fld_GetType(
- OGR_F_GetFieldDefnRef( self, i )
- );
- }
-SWIGINTERN VALUE OGRFeatureShadow_GetField(OGRFeatureShadow *self,VALUE object){
- VALUE result;
-
- int index;
-
- // get field index
- switch (TYPE(object)) {
- case T_STRING:
- index = OGR_F_GetFieldIndex(self, StringValuePtr(object));
- break;
- case T_FIXNUM:
- index = NUM2INT(object);
- break;
- default:
- SWIG_exception(SWIG_TypeError, "Value must be a string or integer.");
- }
-
- int count = OGR_F_GetFieldCount(self);
-
- if (index < 0 || index > count) {
- SWIG_exception(SWIG_IndexError, "Illegal field requested.");
- }
-
- // is the field unset?
- if (!OGR_F_IsFieldSet(self, index)) {
- result = Qnil;
- return result;
- }
-
- // get field type
- OGRFieldType field_type = (OGRFieldType) OGR_Fld_GetType(OGR_F_GetFieldDefnRef( self, index));
-
- switch (field_type) {
- case OFTInteger: {
- const int value = OGR_F_GetFieldAsInteger(self, index);
- result = INT2NUM(value);
- break;
- }
-
- case OFTIntegerList: {
- int len = 0;
- const int* list = OGR_F_GetFieldAsIntegerList(self, index, &len);
-
- result = rb_ary_new2(len);
-
- for ( int i = 0; i < len; ++i, ++list ) {
- VALUE item = INT2NUM(*list);
- rb_ary_store(result, item, i);
- }
- break;
- }
-
- case OFTReal: {
- const double value = OGR_F_GetFieldAsDouble(self, index);
- return rb_float_new(value);
- break;
- }
-
- case OFTRealList: {
- int len = 0;
- const double* list = OGR_F_GetFieldAsDoubleList(self, index, &len);
-
- result = rb_ary_new2(len);
-
- for ( int i = 0; i < len; ++i, ++list ) {
- VALUE item = rb_float_new(*list);
- rb_ary_store(result, item, i);
- }
- break;
- }
-
- case OFTString: {
- const char* value = (const char *) OGR_F_GetFieldAsString(self, index);
- return rb_str_new2(value);
- break;
- }
-
- case OFTStringList:
-/* int len3 = 0;
- const char** string_list = OGR_F_GetFieldAsStringList(self, index, &len);
-
- result = rb_ary_new2(len3);
-
- for ( int i = 0; i < len; ++i, ++string_list ) {
- VALUE item = rb_str_new2(*string_list);
- rb_ary_store(result, item, i);
- }*/
- result = Qnil;
- break;
- default:
- SWIG_exception(SWIG_TypeError, "Unsupported field type.");
- }
-
- return result;
- }
-SWIGINTERN OGRFeatureDefnShadow *new_OGRFeatureDefnShadow(char const *name_null_ok=NULL){
- OGRFeatureDefnH h = OGR_FD_Create(name_null_ok);
- OGR_FD_Reference(h);
- return (OGRFeatureDefnShadow* )h;
- }
-SWIGINTERN char const *OGRFeatureDefnShadow_GetName(OGRFeatureDefnShadow *self){
- return OGR_FD_GetName(self);
- }
-SWIGINTERN int OGRFeatureDefnShadow_GetFieldCount(OGRFeatureDefnShadow *self){
- return OGR_FD_GetFieldCount(self);
- }
-SWIGINTERN OGRFieldDefnShadow *OGRFeatureDefnShadow_GetFieldDefn(OGRFeatureDefnShadow *self,int i){
- return (OGRFieldDefnShadow*) OGR_FD_GetFieldDefn(self, i);
- }
-SWIGINTERN int OGRFeatureDefnShadow_GetFieldIndex(OGRFeatureDefnShadow *self,char const *name){
- return OGR_FD_GetFieldIndex(self, name);
- }
-SWIGINTERN void OGRFeatureDefnShadow_AddFieldDefn(OGRFeatureDefnShadow *self,OGRFieldDefnShadow *defn){
- OGR_FD_AddFieldDefn(self, defn);
- }
-SWIGINTERN OGRwkbGeometryType OGRFeatureDefnShadow_GetGeomType(OGRFeatureDefnShadow *self){
- return (OGRwkbGeometryType) OGR_FD_GetGeomType(self);
- }
-SWIGINTERN void OGRFeatureDefnShadow_SetGeomType(OGRFeatureDefnShadow *self,OGRwkbGeometryType geom_type){
- OGR_FD_SetGeomType(self, geom_type);
- }
-SWIGINTERN int OGRFeatureDefnShadow_GetReferenceCount(OGRFeatureDefnShadow *self){
- return OGR_FD_GetReferenceCount(self);
- }
-SWIGINTERN int OGRFeatureDefnShadow_IsGeometryIgnored(OGRFeatureDefnShadow *self){
- return OGR_FD_IsGeometryIgnored(self);
- }
-SWIGINTERN void OGRFeatureDefnShadow_SetGeometryIgnored(OGRFeatureDefnShadow *self,int bIgnored){
- return OGR_FD_SetGeometryIgnored(self,bIgnored);
- }
-SWIGINTERN int OGRFeatureDefnShadow_IsStyleIgnored(OGRFeatureDefnShadow *self){
- return OGR_FD_IsStyleIgnored(self);
- }
-SWIGINTERN void OGRFeatureDefnShadow_SetStyleIgnored(OGRFeatureDefnShadow *self,int bIgnored){
- return OGR_FD_SetStyleIgnored(self,bIgnored);
- }
-
- static int ValidateOGRFieldType(OGRFieldType field_type)
- {
- switch(field_type)
- {
- case OFTInteger:
- case OFTIntegerList:
- case OFTReal:
- case OFTRealList:
- case OFTString:
- case OFTStringList:
- case OFTBinary:
- case OFTDate:
- case OFTTime:
- case OFTDateTime:
- return TRUE;
- default:
- CPLError(CE_Failure, CPLE_IllegalArg, "Illegal field type value");
- return FALSE;
- }
- }
-
-SWIGINTERN OGRFieldDefnShadow *new_OGRFieldDefnShadow(char const *name_null_ok="unnamed",OGRFieldType field_type=OFTString){
- if (ValidateOGRFieldType(field_type))
- return (OGRFieldDefnShadow*) OGR_Fld_Create(name_null_ok, field_type);
- else
- return NULL;
- }
-SWIGINTERN char const *OGRFieldDefnShadow_GetName(OGRFieldDefnShadow *self){
- return (const char *) OGR_Fld_GetNameRef(self);
- }
-SWIGINTERN char const *OGRFieldDefnShadow_GetNameRef(OGRFieldDefnShadow *self){
- return (const char *) OGR_Fld_GetNameRef(self);
- }
-SWIGINTERN void OGRFieldDefnShadow_SetName(OGRFieldDefnShadow *self,char const *name){
- OGR_Fld_SetName(self, name);
- }
-SWIGINTERN OGRFieldType OGRFieldDefnShadow_GetType(OGRFieldDefnShadow *self){
- return OGR_Fld_GetType(self);
- }
-SWIGINTERN void OGRFieldDefnShadow_SetType(OGRFieldDefnShadow *self,OGRFieldType type){
- if (ValidateOGRFieldType(type))
- OGR_Fld_SetType(self, type);
- }
-SWIGINTERN OGRJustification OGRFieldDefnShadow_GetJustify(OGRFieldDefnShadow *self){
- return OGR_Fld_GetJustify(self);
- }
-SWIGINTERN void OGRFieldDefnShadow_SetJustify(OGRFieldDefnShadow *self,OGRJustification justify){
- OGR_Fld_SetJustify(self, justify);
- }
-SWIGINTERN int OGRFieldDefnShadow_GetWidth(OGRFieldDefnShadow *self){
- return OGR_Fld_GetWidth(self);
- }
-SWIGINTERN void OGRFieldDefnShadow_SetWidth(OGRFieldDefnShadow *self,int width){
- OGR_Fld_SetWidth(self, width);
- }
-SWIGINTERN int OGRFieldDefnShadow_GetPrecision(OGRFieldDefnShadow *self){
- return OGR_Fld_GetPrecision(self);
- }
-SWIGINTERN void OGRFieldDefnShadow_SetPrecision(OGRFieldDefnShadow *self,int precision){
- OGR_Fld_SetPrecision(self, precision);
- }
-SWIGINTERN char const *OGRFieldDefnShadow_GetTypeName(OGRFieldDefnShadow *self){
- return OGR_GetFieldTypeName(OGR_Fld_GetType(self));
- }
-SWIGINTERN char const *OGRFieldDefnShadow_GetFieldTypeName(OGRFieldDefnShadow *self,OGRFieldType type){
- return OGR_GetFieldTypeName(type);
- }
-SWIGINTERN int OGRFieldDefnShadow_IsIgnored(OGRFieldDefnShadow *self){
- return OGR_Fld_IsIgnored( self );
- }
-SWIGINTERN void OGRFieldDefnShadow_SetIgnored(OGRFieldDefnShadow *self,int bIgnored){
- return OGR_Fld_SetIgnored( self, bIgnored );
- }
-
- OGRGeometryShadow* CreateGeometryFromWkb( int len, char *bin_string,
- OSRSpatialReferenceShadow *reference=NULL ) {
- OGRGeometryShadow *geom;
- OGRErr err = OGR_G_CreateFromWkb( (unsigned char *) bin_string,
- reference,
- &geom,
- len );
- if (err != 0 ) {
- CPLError(CE_Failure, err, "%s", OGRErrMessages(err));
- return NULL;
- }
- return (OGRGeometryShadow*) geom;
- }
-
-
-
- OGRGeometryShadow* CreateGeometryFromWkt( char **val,
- OSRSpatialReferenceShadow *reference=NULL ) {
- OGRGeometryShadow *geom;
- OGRErr err = OGR_G_CreateFromWkt(val,
- reference,
- &geom);
- if (err != 0 ) {
- CPLError(CE_Failure, err, "%s", OGRErrMessages(err));
- return NULL;
- }
- return (OGRGeometryShadow*) geom;
- }
-
-
-
- OGRGeometryShadow *CreateGeometryFromGML( const char * input_string ) {
- OGRGeometryShadow* geom = (OGRGeometryShadow*)OGR_G_CreateFromGML(input_string);
- return geom;
- }
-
-
-
- OGRGeometryShadow *CreateGeometryFromJson( const char * input_string ) {
- OGRGeometryShadow* geom = (OGRGeometryShadow*)OGR_G_CreateGeometryFromJson(input_string);
- return geom;
- }
-
-
-
- OGRGeometryShadow* BuildPolygonFromEdges( OGRGeometryShadow* hLineCollection,
- int bBestEffort = 0,
- int bAutoClose = 0,
- double dfTolerance=0) {
-
- OGRGeometryH hPolygon = NULL;
-
- OGRErr eErr;
-
- hPolygon = OGRBuildPolygonFromEdges( hLineCollection, bBestEffort,
- bAutoClose, dfTolerance, &eErr );
-
- if (eErr != OGRERR_NONE ) {
- CPLError(CE_Failure, eErr, "%s", OGRErrMessages(eErr));
- return NULL;
- }
-
- return hPolygon;
- }
-
-
- OGRGeometryShadow* ApproximateArcAngles(
- double dfCenterX, double dfCenterY, double dfZ,
- double dfPrimaryRadius, double dfSecondaryAxis, double dfRotation,
- double dfStartAngle, double dfEndAngle,
- double dfMaxAngleStepSizeDegrees ) {
-
- return OGR_G_ApproximateArcAngles(
- dfCenterX, dfCenterY, dfZ,
- dfPrimaryRadius, dfSecondaryAxis, dfRotation,
- dfStartAngle, dfEndAngle, dfMaxAngleStepSizeDegrees );
- }
-
-
-OGRGeometryShadow* ForceToPolygon( OGRGeometryShadow *geom_in ) {
- if (geom_in == NULL)
- return NULL;
- return OGR_G_ForceToPolygon( OGR_G_Clone(geom_in) );
-}
-
-
-OGRGeometryShadow* ForceToMultiPolygon( OGRGeometryShadow *geom_in ) {
- if (geom_in == NULL)
- return NULL;
- return OGR_G_ForceToMultiPolygon( OGR_G_Clone(geom_in) );
-}
-
-
-OGRGeometryShadow* ForceToMultiPoint( OGRGeometryShadow *geom_in ) {
- if (geom_in == NULL)
- return NULL;
- return OGR_G_ForceToMultiPoint( OGR_G_Clone(geom_in) );
-}
-
-
-OGRGeometryShadow* ForceToMultiLineString( OGRGeometryShadow *geom_in ) {
- if (geom_in == NULL)
- return NULL;
- return OGR_G_ForceToMultiLineString( OGR_G_Clone(geom_in) );
-}
-
-SWIGINTERN OGRGeometryShadow *new_OGRGeometryShadow(OGRwkbGeometryType type=wkbUnknown,char *wkt=0,int wkb=0,char *wkb_buf=0,char *gml=0){
- if (type != wkbUnknown ) {
- return (OGRGeometryShadow*) OGR_G_CreateGeometry( type );
- }
- else if ( wkt != 0 ) {
- return CreateGeometryFromWkt( &wkt );
- }
- else if ( wkb != 0 ) {
- return CreateGeometryFromWkb( wkb, wkb_buf );
- }
- else if ( gml != 0 ) {
- return CreateGeometryFromGML( gml );
- }
- // throw?
- else {
- CPLError(CE_Failure, 1, "Empty geometries cannot be constructed");
- return NULL;}
-
- }
-
-#define output_helper SWIG_Ruby_AppendOutput
-
-SWIGINTERN OGRErr OGRGeometryShadow_ExportToWkt(OGRGeometryShadow *self,char **argout){
- return OGR_G_ExportToWkt(self, argout);
- }
-SWIGINTERN OGRErr OGRGeometryShadow_ExportToWkb(OGRGeometryShadow *self,int *nLen,char **pBuf,OGRwkbByteOrder byte_order=wkbXDR){
- *nLen = OGR_G_WkbSize( self );
- *pBuf = (char *) malloc( *nLen * sizeof(unsigned char) );
- return OGR_G_ExportToWkb(self, byte_order, (unsigned char*) *pBuf );
- }
-SWIGINTERN char const *OGRGeometryShadow_ExportToGML(OGRGeometryShadow *self){
- return (const char *) OGR_G_ExportToGML(self);
- }
-SWIGINTERN char const *OGRGeometryShadow_ExportToKML(OGRGeometryShadow *self,char const *altitude_mode=NULL){
- return (const char *) OGR_G_ExportToKML(self, altitude_mode);
- }
-SWIGINTERN char const *OGRGeometryShadow_ExportToJson(OGRGeometryShadow *self){
- return (const char *) OGR_G_ExportToJson(self);
- }
-SWIGINTERN void OGRGeometryShadow_AddPoint(OGRGeometryShadow *self,double x,double y,double z=0){
- OGR_G_AddPoint( self, x, y, z );
- }
-SWIGINTERN void OGRGeometryShadow_AddPoint_2D(OGRGeometryShadow *self,double x,double y){
- OGR_G_AddPoint_2D( self, x, y );
- }
-SWIGINTERN OGRErr OGRGeometryShadow_AddGeometryDirectly(OGRGeometryShadow *self,OGRGeometryShadow *other_disown){
- return OGR_G_AddGeometryDirectly( self, other_disown );
- }
-SWIGINTERN OGRErr OGRGeometryShadow_AddGeometry(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return OGR_G_AddGeometry( self, other );
- }
-SWIGINTERN OGRGeometryShadow *OGRGeometryShadow_Clone(OGRGeometryShadow *self){
- return (OGRGeometryShadow*) OGR_G_Clone(self);
- }
-SWIGINTERN OGRwkbGeometryType OGRGeometryShadow_GetGeometryType(OGRGeometryShadow *self){
- return (OGRwkbGeometryType) OGR_G_GetGeometryType(self);
- }
-SWIGINTERN char const *OGRGeometryShadow_GetGeometryName(OGRGeometryShadow *self){
- return (const char *) OGR_G_GetGeometryName(self);
- }
-SWIGINTERN double OGRGeometryShadow_Length(OGRGeometryShadow *self){
- return OGR_G_Length(self);
- }
-SWIGINTERN double OGRGeometryShadow_Area(OGRGeometryShadow *self){
- return OGR_G_Area(self);
- }
-SWIGINTERN double OGRGeometryShadow_GetArea(OGRGeometryShadow *self){
- return OGR_G_Area(self);
- }
-SWIGINTERN int OGRGeometryShadow_GetPointCount(OGRGeometryShadow *self){
- return OGR_G_GetPointCount(self);
- }
-SWIGINTERN double OGRGeometryShadow_GetX(OGRGeometryShadow *self,int point=0){
- return OGR_G_GetX(self, point);
- }
-SWIGINTERN double OGRGeometryShadow_GetY(OGRGeometryShadow *self,int point=0){
- return OGR_G_GetY(self, point);
- }
-SWIGINTERN double OGRGeometryShadow_GetZ(OGRGeometryShadow *self,int point=0){
- return OGR_G_GetZ(self, point);
- }
-SWIGINTERN void OGRGeometryShadow_GetPoint(OGRGeometryShadow *self,int iPoint=0,double argout[3]=NULL){
-
- OGR_G_GetPoint( self, iPoint, argout+0, argout+1, argout+2 );
- }
-SWIGINTERN void OGRGeometryShadow_GetPoint_2D(OGRGeometryShadow *self,int iPoint=0,double argout[2]=NULL){
-
- OGR_G_GetPoint( self, iPoint, argout+0, argout+1, NULL );
- }
-SWIGINTERN int OGRGeometryShadow_GetGeometryCount(OGRGeometryShadow *self){
- return OGR_G_GetGeometryCount(self);
- }
-SWIGINTERN void OGRGeometryShadow_SetPoint(OGRGeometryShadow *self,int point,double x,double y,double z=0){
- OGR_G_SetPoint(self, point, x, y, z);
- }
-SWIGINTERN void OGRGeometryShadow_SetPoint_2D(OGRGeometryShadow *self,int point,double x,double y){
- OGR_G_SetPoint_2D(self, point, x, y);
- }
-SWIGINTERN OGRGeometryShadow *OGRGeometryShadow_GetGeometryRef(OGRGeometryShadow *self,int geom){
- return (OGRGeometryShadow*) OGR_G_GetGeometryRef(self, geom);
- }
-SWIGINTERN OGRGeometryShadow *OGRGeometryShadow_Simplify(OGRGeometryShadow *self,double tolerance){
- return (OGRGeometryShadow*) OGR_G_Simplify(self, tolerance);
- }
-SWIGINTERN OGRGeometryShadow *OGRGeometryShadow_Boundary(OGRGeometryShadow *self){
- return (OGRGeometryShadow*) OGR_G_Boundary(self);
- }
-SWIGINTERN OGRGeometryShadow *OGRGeometryShadow_GetBoundary(OGRGeometryShadow *self){
- return (OGRGeometryShadow*) OGR_G_Boundary(self);
- }
-SWIGINTERN OGRGeometryShadow *OGRGeometryShadow_ConvexHull(OGRGeometryShadow *self){
- return (OGRGeometryShadow*) OGR_G_ConvexHull(self);
- }
-SWIGINTERN OGRGeometryShadow *OGRGeometryShadow_Buffer(OGRGeometryShadow *self,double distance,int quadsecs=30){
- return (OGRGeometryShadow*) OGR_G_Buffer( self, distance, quadsecs );
- }
-SWIGINTERN OGRGeometryShadow *OGRGeometryShadow_Intersection(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return (OGRGeometryShadow*) OGR_G_Intersection( self, other );
- }
-SWIGINTERN OGRGeometryShadow *OGRGeometryShadow_Union(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return (OGRGeometryShadow*) OGR_G_Union( self, other );
- }
-SWIGINTERN OGRGeometryShadow *OGRGeometryShadow_UnionCascaded(OGRGeometryShadow *self){
- return (OGRGeometryShadow*) OGR_G_UnionCascaded( self );
- }
-SWIGINTERN OGRGeometryShadow *OGRGeometryShadow_Difference(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return (OGRGeometryShadow*) OGR_G_Difference( self, other );
- }
-SWIGINTERN OGRGeometryShadow *OGRGeometryShadow_SymDifference(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return (OGRGeometryShadow*) OGR_G_SymDifference( self, other );
- }
-SWIGINTERN OGRGeometryShadow *OGRGeometryShadow_SymmetricDifference(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return (OGRGeometryShadow*) OGR_G_SymDifference( self, other );
- }
-SWIGINTERN double OGRGeometryShadow_Distance(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return OGR_G_Distance(self, other);
- }
-SWIGINTERN void OGRGeometryShadow_Empty(OGRGeometryShadow *self){
- OGR_G_Empty(self);
- }
-SWIGINTERN bool OGRGeometryShadow_IsEmpty(OGRGeometryShadow *self){
- return (OGR_G_IsEmpty(self) > 0);
- }
-SWIGINTERN bool OGRGeometryShadow_IsValid(OGRGeometryShadow *self){
- return (OGR_G_IsValid(self) > 0);
- }
-SWIGINTERN bool OGRGeometryShadow_IsSimple(OGRGeometryShadow *self){
- return (OGR_G_IsSimple(self) > 0);
- }
-SWIGINTERN bool OGRGeometryShadow_IsRing(OGRGeometryShadow *self){
- return (OGR_G_IsRing(self) > 0);
- }
-SWIGINTERN bool OGRGeometryShadow_Intersects(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return (OGR_G_Intersects(self, other) > 0);
- }
-SWIGINTERN bool OGRGeometryShadow_Intersect(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return (OGR_G_Intersects(self, other) > 0);
- }
-SWIGINTERN bool OGRGeometryShadow_Equals(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return (OGR_G_Equals(self, other) > 0);
- }
-SWIGINTERN bool OGRGeometryShadow_Equal(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return (OGR_G_Equals(self, other) > 0);
- }
-SWIGINTERN bool OGRGeometryShadow_Disjoint(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return (OGR_G_Disjoint(self, other) > 0);
- }
-SWIGINTERN bool OGRGeometryShadow_Touches(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return (OGR_G_Touches(self, other) > 0);
- }
-SWIGINTERN bool OGRGeometryShadow_Crosses(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return (OGR_G_Crosses(self, other) > 0);
- }
-SWIGINTERN bool OGRGeometryShadow_Within(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return (OGR_G_Within(self, other) > 0);
- }
-SWIGINTERN bool OGRGeometryShadow_Contains(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return (OGR_G_Contains(self, other) > 0);
- }
-SWIGINTERN bool OGRGeometryShadow_Overlaps(OGRGeometryShadow *self,OGRGeometryShadow *other){
- return (OGR_G_Overlaps(self, other) > 0);
- }
-SWIGINTERN OGRErr OGRGeometryShadow_TransformTo(OGRGeometryShadow *self,OSRSpatialReferenceShadow *reference){
- return OGR_G_TransformTo(self, reference);
- }
-SWIGINTERN OGRErr OGRGeometryShadow_Transform(OGRGeometryShadow *self,OSRCoordinateTransformationShadow *trans){
- return OGR_G_Transform(self, trans);
- }
-SWIGINTERN OSRSpatialReferenceShadow *OGRGeometryShadow_GetSpatialReference(OGRGeometryShadow *self){
- OGRSpatialReferenceH ref = OGR_G_GetSpatialReference(self);
- if( ref )
- OSRReference(ref);
- return (OSRSpatialReferenceShadow*) ref;
- }
-SWIGINTERN void OGRGeometryShadow_AssignSpatialReference(OGRGeometryShadow *self,OSRSpatialReferenceShadow *reference){
- OGR_G_AssignSpatialReference(self, reference);
- }
-SWIGINTERN void OGRGeometryShadow_CloseRings(OGRGeometryShadow *self){
- OGR_G_CloseRings(self);
- }
-SWIGINTERN void OGRGeometryShadow_FlattenTo2D(OGRGeometryShadow *self){
- OGR_G_FlattenTo2D(self);
- }
-SWIGINTERN void OGRGeometryShadow_Segmentize(OGRGeometryShadow *self,double dfMaxLength){
- OGR_G_Segmentize(self, dfMaxLength);
- }
-SWIGINTERN void OGRGeometryShadow_GetEnvelope(OGRGeometryShadow *self,double argout[4]){
- OGR_G_GetEnvelope(self, (OGREnvelope*)argout);
- }
-SWIGINTERN OGRGeometryShadow *OGRGeometryShadow_Centroid(OGRGeometryShadow *self){
- OGRGeometryShadow *pt = (OGRGeometryShadow*) OGR_G_CreateGeometry( wkbPoint );
- OGR_G_Centroid( self, pt );
- return pt;
- }
-SWIGINTERN int OGRGeometryShadow_WkbSize(OGRGeometryShadow *self){
- return OGR_G_WkbSize(self);
- }
-SWIGINTERN int OGRGeometryShadow_GetCoordinateDimension(OGRGeometryShadow *self){
- return OGR_G_GetCoordinateDimension(self);
- }
-SWIGINTERN void OGRGeometryShadow_SetCoordinateDimension(OGRGeometryShadow *self,int dimension){
- OGR_G_SetCoordinateDimension(self, dimension);
- }
-SWIGINTERN int OGRGeometryShadow_GetDimension(OGRGeometryShadow *self){
- return OGR_G_GetDimension(self);
- }
-
-char const *OGRDriverShadow_get_name( OGRDriverShadow *h ) {
- return OGR_Dr_GetName( h );
-}
-
-char const *OGRDataSourceShadow_get_name( OGRDataSourceShadow *h ) {
- return OGR_DS_GetName( h );
-}
-
-char const *OGRDriverShadow_name_get( OGRDriverShadow *h ) {
- return OGR_Dr_GetName( h );
-}
-
-char const *OGRDataSourceShadow_name_get( OGRDataSourceShadow *h ) {
- return OGR_DS_GetName( h );
-}
-
-
- OGRDataSourceShadow* GetOpenDS(int ds_number) {
- OGRDataSourceShadow* layer = (OGRDataSourceShadow*) OGRGetOpenDS(ds_number);
- return layer;
- }
-
-
- OGRDataSourceShadow* Open( const char *filename, int update =0 ) {
- CPLErrorReset();
- OGRDataSourceShadow* ds = (OGRDataSourceShadow*)OGROpen(filename,update,NULL);
- if( CPLGetLastErrorType() == CE_Failure && ds != NULL )
- {
- CPLDebug( "SWIG",
- "OGROpen() succeeded, but an error is posted, so we destroy"
- " the datasource and fail at swig level." );
- OGRReleaseDataSource(ds);
- ds = NULL;
- }
-
- return ds;
- }
-
-
- OGRDataSourceShadow* OpenShared( const char *utf8_path, int update =0 ) {
- CPLErrorReset();
- OGRDataSourceShadow* ds = (OGRDataSourceShadow*)OGROpenShared(utf8_path,update,NULL);
- if( CPLGetLastErrorType() == CE_Failure && ds != NULL )
- {
- OGRReleaseDataSource(ds);
- ds = NULL;
- }
-
- return ds;
- }
-
-
-OGRDriverShadow* GetDriverByName( char const *name ) {
- return (OGRDriverShadow*) OGRGetDriverByName( name );
-}
-
-OGRDriverShadow* GetDriver(int driver_number) {
- return (OGRDriverShadow*) OGRGetDriver(driver_number);
-}
-
-
- char **GeneralCmdLineProcessor( char **papszArgv, int nOptions = 0 ) {
- int nResArgCount;
-
- nResArgCount =
- OGRGeneralCmdLineProcessor( CSLCount(papszArgv), &papszArgv, nOptions );
-
- if( nResArgCount <= 0 )
- return NULL;
- else
- return papszArgv;
- }
-
-
-/*
- Document-method: Gdal::Ogr.use_exceptions
-
- call-seq:
- use_exceptions
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_use_exceptions(int argc, VALUE *argv, VALUE self) {
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- UseExceptions();
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.dont_use_exceptions
-
- call-seq:
- dont_use_exceptions
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_dont_use_exceptions(int argc, VALUE *argv, VALUE self) {
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- DontUseExceptions();
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-class: Gdal::Ogr::Driver
-
- Proxy of C++ Gdal::Ogr::Driver class
-
-
-*/
-swig_class SwigClassDriver;
-
-
-/*
- Document-method: Gdal::Ogr::Driver.name
-
- call-seq:
- name -> char
-
-Get value of attribute.
-
-*/
-SWIGINTERN VALUE
-_wrap_Driver_name_get(int argc, VALUE *argv, VALUE self) {
- OGRDriverShadow *arg1 = (OGRDriverShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDriverShadow *","name", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDriverShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)OGRDriverShadow_name_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Driver.create_data_source
-
- call-seq:
- create_data_source(char name, char options=0) -> DataSource
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Driver_create_data_source(int argc, VALUE *argv, VALUE self) {
- OGRDriverShadow *arg1 = (OGRDriverShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- char **arg3 = (char **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- char *kwnames[] = {
- "self","name","options", NULL
- };
- OGRDataSourceShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDriverShadow *","CreateDataSource", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDriverShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","CreateDataSource", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- if (argc > 1) {
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[1], T_ARRAY);
-
- int size = RARRAY(argv[1])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[1], i);
- char *pszItem = StringValuePtr(item);
- arg3 = CSLAddString( arg3, pszItem );
- }
- }
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRDataSourceShadow *)OGRDriverShadow_CreateDataSource(arg1,(char const *)arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRDataSourceShadow, SWIG_POINTER_OWN | 0 );
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg3 );
- }
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg3 );
- }
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Driver.copy_data_source
-
- call-seq:
- copy_data_source(DataSource copy_ds, char utf8_path, char options=0) -> DataSource
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Driver_copy_data_source(int argc, VALUE *argv, VALUE self) {
- OGRDriverShadow *arg1 = (OGRDriverShadow *) 0 ;
- OGRDataSourceShadow *arg2 = (OGRDataSourceShadow *) 0 ;
- char *arg3 = (char *) 0 ;
- char **arg4 = (char **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- char *kwnames[] = {
- "self","copy_ds","utf8_path","options", NULL
- };
- OGRDataSourceShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDriverShadow *","CopyDataSource", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDriverShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRDataSourceShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRDataSourceShadow *","CopyDataSource", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRDataSourceShadow * >(argp2);
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","CopyDataSource", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- if (argc > 2) {
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[2], T_ARRAY);
-
- int size = RARRAY(argv[2])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[2], i);
- char *pszItem = StringValuePtr(item);
- arg4 = CSLAddString( arg4, pszItem );
- }
- }
- }
- {
- CPLErrorReset();
- result = (OGRDataSourceShadow *)OGRDriverShadow_CopyDataSource(arg1,arg2,(char const *)arg3,arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRDataSourceShadow, SWIG_POINTER_OWN | 0 );
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg4 );
- }
- return vresult;
-fail:
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg4 );
- }
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Driver.open
-
- call-seq:
- open(char utf8_path, int update=0) -> DataSource
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Driver_open(int argc, VALUE *argv, VALUE self) {
- OGRDriverShadow *arg1 = (OGRDriverShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- int arg3 = (int) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- char *kwnames[] = {
- "self","utf8_path","update", NULL
- };
- OGRDataSourceShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDriverShadow *","Open", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDriverShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","Open", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- if (argc > 1) {
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","Open", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- }
- {
- CPLErrorReset();
- result = (OGRDataSourceShadow *)OGRDriverShadow_Open(arg1,(char const *)arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRDataSourceShadow, SWIG_POINTER_OWN | 0 );
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Driver.delete_data_source
-
- call-seq:
- delete_data_source(char name) -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Driver_delete_data_source(int argc, VALUE *argv, VALUE self) {
- OGRDriverShadow *arg1 = (OGRDriverShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDriverShadow *","DeleteDataSource", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDriverShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","DeleteDataSource", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (int)OGRDriverShadow_DeleteDataSource(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Driver.test_capability
-
- call-seq:
- test_capability(char cap) -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Driver_test_capability(int argc, VALUE *argv, VALUE self) {
- OGRDriverShadow *arg1 = (OGRDriverShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDriverShadow *","TestCapability", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDriverShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","TestCapability", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (bool)OGRDriverShadow_TestCapability(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Driver.get_name
-
- call-seq:
- get_name -> char
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Driver_get_name(int argc, VALUE *argv, VALUE self) {
- OGRDriverShadow *arg1 = (OGRDriverShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDriverShadow *","GetName", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDriverShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)OGRDriverShadow_GetName(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Driver.register
-
- call-seq:
- register
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Driver_register(int argc, VALUE *argv, VALUE self) {
- OGRDriverShadow *arg1 = (OGRDriverShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDriverShadow *","Register", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDriverShadow * >(argp1);
- {
- CPLErrorReset();
- OGRDriverShadow_Register(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Driver.deregister
-
- call-seq:
- deregister
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Driver_deregister(int argc, VALUE *argv, VALUE self) {
- OGRDriverShadow *arg1 = (OGRDriverShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDriverShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDriverShadow *","Deregister", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDriverShadow * >(argp1);
- {
- CPLErrorReset();
- OGRDriverShadow_Deregister(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-class: Gdal::Ogr::DataSource
-
- Proxy of C++ Gdal::Ogr::DataSource class
-
-
-*/
-swig_class SwigClassDataSource;
-
-
-/*
- Document-method: Gdal::Ogr::DataSource.name
-
- call-seq:
- name -> char
-
-Get value of attribute.
-
-*/
-SWIGINTERN VALUE
-_wrap_DataSource_name_get(int argc, VALUE *argv, VALUE self) {
- OGRDataSourceShadow *arg1 = (OGRDataSourceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDataSourceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDataSourceShadow *","name", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDataSourceShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)OGRDataSourceShadow_name_get(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN void delete_OGRDataSourceShadow(OGRDataSourceShadow *self){
- OGRReleaseDataSource(self);
- }
-SWIGINTERN void
-free_OGRDataSourceShadow(OGRDataSourceShadow *arg1) {
- delete_OGRDataSourceShadow(arg1);
-}
-
-
-/*
- Document-method: Gdal::Ogr::DataSource.get_ref_count
-
- call-seq:
- get_ref_count -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_DataSource_get_ref_count(int argc, VALUE *argv, VALUE self) {
- OGRDataSourceShadow *arg1 = (OGRDataSourceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDataSourceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDataSourceShadow *","GetRefCount", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDataSourceShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRDataSourceShadow_GetRefCount(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::DataSource.get_summary_ref_count
-
- call-seq:
- get_summary_ref_count -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_DataSource_get_summary_ref_count(int argc, VALUE *argv, VALUE self) {
- OGRDataSourceShadow *arg1 = (OGRDataSourceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDataSourceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDataSourceShadow *","GetSummaryRefCount", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDataSourceShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRDataSourceShadow_GetSummaryRefCount(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::DataSource.get_layer_count
-
- call-seq:
- get_layer_count -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_DataSource_get_layer_count(int argc, VALUE *argv, VALUE self) {
- OGRDataSourceShadow *arg1 = (OGRDataSourceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDataSourceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDataSourceShadow *","GetLayerCount", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDataSourceShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRDataSourceShadow_GetLayerCount(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::DataSource.get_driver
-
- call-seq:
- get_driver -> Driver
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_DataSource_get_driver(int argc, VALUE *argv, VALUE self) {
- OGRDataSourceShadow *arg1 = (OGRDataSourceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRDriverShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDataSourceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDataSourceShadow *","GetDriver", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDataSourceShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRDriverShadow *)OGRDataSourceShadow_GetDriver(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRDriverShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::DataSource.get_name
-
- call-seq:
- get_name -> char
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_DataSource_get_name(int argc, VALUE *argv, VALUE self) {
- OGRDataSourceShadow *arg1 = (OGRDataSourceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDataSourceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDataSourceShadow *","GetName", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDataSourceShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)OGRDataSourceShadow_GetName(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::DataSource.delete_layer
-
- call-seq:
- delete_layer(int index) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_DataSource_delete_layer(int argc, VALUE *argv, VALUE self) {
- OGRDataSourceShadow *arg1 = (OGRDataSourceShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDataSourceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDataSourceShadow *","DeleteLayer", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDataSourceShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","DeleteLayer", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (OGRErr)OGRDataSourceShadow_DeleteLayer(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::DataSource.create_layer
-
- call-seq:
- create_layer(char name, SpatialReference srs=nil, OGRwkbGeometryType geom_type=WKBUNKNOWN,
- char options=0) -> Layer
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_DataSource_create_layer(int argc, VALUE *argv, VALUE self) {
- OGRDataSourceShadow *arg1 = (OGRDataSourceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- OSRSpatialReferenceShadow *arg3 = (OSRSpatialReferenceShadow *) NULL ;
- OGRwkbGeometryType arg4 = (OGRwkbGeometryType) wkbUnknown ;
- char **arg5 = (char **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- char *kwnames[] = {
- "self","name","srs","geom_type","options", NULL
- };
- OGRLayerShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDataSourceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDataSourceShadow *","CreateLayer", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDataSourceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","CreateLayer", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- if (argc > 1) {
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","CreateLayer", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp3);
- }
- if (argc > 2) {
- {
- /* %typemap(in) CPLErr */
- arg4 = (OGRwkbGeometryType) NUM2INT(argv[2]);
- }
- }
- if (argc > 3) {
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[3], T_ARRAY);
-
- int size = RARRAY(argv[3])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[3], i);
- char *pszItem = StringValuePtr(item);
- arg5 = CSLAddString( arg5, pszItem );
- }
- }
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRLayerShadow *)OGRDataSourceShadow_CreateLayer(arg1,(char const *)arg2,arg3,arg4,arg5);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg5 );
- }
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg5 );
- }
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::DataSource.copy_layer
-
- call-seq:
- copy_layer(Layer src_layer, char new_name, char options=0) -> Layer
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_DataSource_copy_layer(int argc, VALUE *argv, VALUE self) {
- OGRDataSourceShadow *arg1 = (OGRDataSourceShadow *) 0 ;
- OGRLayerShadow *arg2 = (OGRLayerShadow *) 0 ;
- char *arg3 = (char *) 0 ;
- char **arg4 = (char **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- char *kwnames[] = {
- "self","src_layer","new_name","options", NULL
- };
- OGRLayerShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDataSourceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDataSourceShadow *","CopyLayer", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDataSourceShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRLayerShadow *","CopyLayer", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRLayerShadow * >(argp2);
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","CopyLayer", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- if (argc > 2) {
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[2], T_ARRAY);
-
- int size = RARRAY(argv[2])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[2], i);
- char *pszItem = StringValuePtr(item);
- arg4 = CSLAddString( arg4, pszItem );
- }
- }
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRLayerShadow *)OGRDataSourceShadow_CopyLayer(arg1,arg2,(char const *)arg3,arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg4 );
- }
- return vresult;
-fail:
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg4 );
- }
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::DataSource.test_capability
-
- call-seq:
- test_capability(char cap) -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_DataSource_test_capability(int argc, VALUE *argv, VALUE self) {
- OGRDataSourceShadow *arg1 = (OGRDataSourceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDataSourceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDataSourceShadow *","TestCapability", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDataSourceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","TestCapability", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (bool)OGRDataSourceShadow_TestCapability(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::DataSource.execute_sql
-
- call-seq:
- execute_sql(char statement, Geometry spatialFilter=nil, char dialect="") -> Layer
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_DataSource_execute_sql(int argc, VALUE *argv, VALUE self) {
- OGRDataSourceShadow *arg1 = (OGRDataSourceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- OGRGeometryShadow *arg3 = (OGRGeometryShadow *) NULL ;
- char *arg4 = (char *) "" ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- int res4 ;
- char *buf4 = 0 ;
- int alloc4 = 0 ;
- char *kwnames[] = {
- "self","statement","spatialFilter","dialect", NULL
- };
- OGRLayerShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDataSourceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDataSourceShadow *","ExecuteSQL", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDataSourceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ExecuteSQL", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- if (argc > 1) {
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "OGRGeometryShadow *","ExecuteSQL", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< OGRGeometryShadow * >(argp3);
- }
- if (argc > 2) {
- res4 = SWIG_AsCharPtrAndSize(argv[2], &buf4, NULL, &alloc4);
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","ExecuteSQL", 4, argv[2] ));
- }
- arg4 = reinterpret_cast< char * >(buf4);
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRLayerShadow *)OGRDataSourceShadow_ExecuteSQL(arg1,(char const *)arg2,arg3,(char const *)arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::DataSource.release_result_set
-
- call-seq:
- release_result_set(Layer layer)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_DataSource_release_result_set(int argc, VALUE *argv, VALUE self) {
- OGRDataSourceShadow *arg1 = (OGRDataSourceShadow *) 0 ;
- OGRLayerShadow *arg2 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDataSourceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDataSourceShadow *","ReleaseResultSet", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDataSourceShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_OGRLayerShadow, SWIG_POINTER_DISOWN | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRLayerShadow *","ReleaseResultSet", 2, argv[0] ));
- }
- {
- CPLErrorReset();
- OGRDataSourceShadow_ReleaseResultSet(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::DataSource.get_layer
-
- call-seq:
- get_layer(VALUE whichLayer) -> Layer
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_DataSource_get_layer(int argc, VALUE *argv, VALUE self) {
- OGRDataSourceShadow *arg1 = (OGRDataSourceShadow *) 0 ;
- VALUE arg2 = (VALUE) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRLayerShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRDataSourceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRDataSourceShadow *","GetLayer", 1, self ));
- }
- arg1 = reinterpret_cast< OGRDataSourceShadow * >(argp1);
- arg2 = argv[0];
- {
- CPLErrorReset();
- result = (OGRLayerShadow *)OGRDataSourceShadow_GetLayer(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-class: Gdal::Ogr::Layer
-
- Proxy of C++ Gdal::Ogr::Layer class
-
-
-*/
-swig_class SwigClassLayer;
-
-
-/*
- Document-method: Gdal::Ogr::Layer.get_ref_count
-
- call-seq:
- get_ref_count -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_get_ref_count(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","GetRefCount", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRLayerShadow_GetRefCount(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.set_spatial_filter
-
- call-seq:
- set_spatial_filter(Geometry filter)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_set_spatial_filter(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","SetSpatialFilter", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","SetSpatialFilter", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- CPLErrorReset();
- OGRLayerShadow_SetSpatialFilter(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.set_spatial_filter_rect
-
- call-seq:
- set_spatial_filter_rect(double minx, double miny, double maxx, double maxy)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_set_spatial_filter_rect(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","SetSpatialFilterRect", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetSpatialFilterRect", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetSpatialFilterRect", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetSpatialFilterRect", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetSpatialFilterRect", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- {
- CPLErrorReset();
- OGRLayerShadow_SetSpatialFilterRect(arg1,arg2,arg3,arg4,arg5);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.get_spatial_filter
-
- call-seq:
- get_spatial_filter -> Geometry
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_get_spatial_filter(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","GetSpatialFilter", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)OGRLayerShadow_GetSpatialFilter(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.set_attribute_filter
-
- call-seq:
- set_attribute_filter(char filter_string) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_set_attribute_filter(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","SetAttributeFilter", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","SetAttributeFilter", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- CPLErrorReset();
- result = (OGRErr)OGRLayerShadow_SetAttributeFilter(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.reset_reading
-
- call-seq:
- reset_reading
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_reset_reading(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","ResetReading", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- CPLErrorReset();
- OGRLayerShadow_ResetReading(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.get_name
-
- call-seq:
- get_name -> char
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_get_name(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","GetName", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)OGRLayerShadow_GetName(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.get_geom_type
-
- call-seq:
- get_geom_type -> OGRwkbGeometryType
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_get_geom_type(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRwkbGeometryType result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","GetGeomType", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRwkbGeometryType)OGRLayerShadow_GetGeomType(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.get_geometry_column
-
- call-seq:
- get_geometry_column -> char
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_get_geometry_column(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","GetGeometryColumn", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)OGRLayerShadow_GetGeometryColumn(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.get_fidcolumn
-
- call-seq:
- get_fidcolumn -> char
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_get_fidcolumn(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","GetFIDColumn", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)OGRLayerShadow_GetFIDColumn(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.get_feature
-
- call-seq:
- get_feature(long fid) -> Feature
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_get_feature(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- long arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- long val2 ;
- int ecode2 = 0 ;
- OGRFeatureShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","GetFeature", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- ecode2 = SWIG_AsVal_long(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","GetFeature", 2, argv[0] ));
- }
- arg2 = static_cast< long >(val2);
- {
- CPLErrorReset();
- result = (OGRFeatureShadow *)OGRLayerShadow_GetFeature(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRFeatureShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.get_next_feature
-
- call-seq:
- get_next_feature -> Feature
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_get_next_feature(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRFeatureShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","GetNextFeature", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRFeatureShadow *)OGRLayerShadow_GetNextFeature(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRFeatureShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.set_next_by_index
-
- call-seq:
- set_next_by_index(long new_index) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_set_next_by_index(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- long arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- long val2 ;
- int ecode2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","SetNextByIndex", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- ecode2 = SWIG_AsVal_long(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","SetNextByIndex", 2, argv[0] ));
- }
- arg2 = static_cast< long >(val2);
- {
- CPLErrorReset();
- result = (OGRErr)OGRLayerShadow_SetNextByIndex(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.set_feature
-
- call-seq:
- set_feature(Feature feature) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_set_feature(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- OGRFeatureShadow *arg2 = (OGRFeatureShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","SetFeature", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetFeature", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRFeatureShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRErr)OGRLayerShadow_SetFeature(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.create_feature
-
- call-seq:
- create_feature(Feature feature) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_create_feature(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- OGRFeatureShadow *arg2 = (OGRFeatureShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","CreateFeature", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRFeatureShadow *","CreateFeature", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRFeatureShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRErr)OGRLayerShadow_CreateFeature(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.delete_feature
-
- call-seq:
- delete_feature(long fid) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_delete_feature(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- long arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- long val2 ;
- int ecode2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","DeleteFeature", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- ecode2 = SWIG_AsVal_long(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","DeleteFeature", 2, argv[0] ));
- }
- arg2 = static_cast< long >(val2);
- {
- CPLErrorReset();
- result = (OGRErr)OGRLayerShadow_DeleteFeature(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.sync_to_disk
-
- call-seq:
- sync_to_disk -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_sync_to_disk(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","SyncToDisk", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRErr)OGRLayerShadow_SyncToDisk(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.get_layer_defn
-
- call-seq:
- get_layer_defn -> FeatureDefn
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_get_layer_defn(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRFeatureDefnShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","GetLayerDefn", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRFeatureDefnShadow *)OGRLayerShadow_GetLayerDefn(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRFeatureDefnShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.get_feature_count
-
- call-seq:
- get_feature_count(int force=1) -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_get_feature_count(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- int arg2 = (int) 1 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- char *kwnames[] = {
- "self","force", NULL
- };
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","GetFeatureCount", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- if (argc > 0) {
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetFeatureCount", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- }
- {
- CPLErrorReset();
- result = (int)OGRLayerShadow_GetFeatureCount(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.get_extent
-
- call-seq:
- get_extent(int force=1) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_get_extent(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- double *arg2 ;
- int arg3 = (int) 1 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double argout2[4] ;
- int val3 ;
- int ecode3 = 0 ;
- char *kwnames[] = {
- "self","force", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double argout2[ANY]) */
- arg2 = argout2;
- }
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","GetExtent", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- if (argc > 0) {
- ecode3 = SWIG_AsVal_int(argv[0], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","GetExtent", 3, argv[0] ));
- }
- arg3 = static_cast< int >(val3);
- }
- {
- CPLErrorReset();
- result = (OGRErr)OGRLayerShadow_GetExtent(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(argout) (double argout[ANY]) */
- VALUE outArr = rb_ary_new();
-
- for(int i=0; i<4; i++)
- {
- VALUE value = rb_float_new((arg2)[i]);
- rb_ary_push(outArr, value);
- }
-
- /* Add the output to the result */
- vresult = SWIG_Ruby_AppendOutput(vresult, outArr);
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.test_capability
-
- call-seq:
- test_capability(char cap) -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_test_capability(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","TestCapability", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","TestCapability", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (bool)OGRLayerShadow_TestCapability(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.create_field
-
- call-seq:
- create_field(FieldDefn field_def, int approx_ok=1) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_create_field(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- OGRFieldDefnShadow *arg2 = (OGRFieldDefnShadow *) 0 ;
- int arg3 = (int) 1 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- char *kwnames[] = {
- "self","field_def","approx_ok", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","CreateField", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","CreateField", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRFieldDefnShadow * >(argp2);
- if (argc > 1) {
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","CreateField", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRErr)OGRLayerShadow_CreateField(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.start_transaction
-
- call-seq:
- start_transaction -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_start_transaction(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","StartTransaction", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRErr)OGRLayerShadow_StartTransaction(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.commit_transaction
-
- call-seq:
- commit_transaction -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_commit_transaction(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","CommitTransaction", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRErr)OGRLayerShadow_CommitTransaction(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.rollback_transaction
-
- call-seq:
- rollback_transaction -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_rollback_transaction(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","RollbackTransaction", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRErr)OGRLayerShadow_RollbackTransaction(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.get_spatial_ref
-
- call-seq:
- get_spatial_ref -> SpatialReference
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_get_spatial_ref(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OSRSpatialReferenceShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","GetSpatialRef", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OSRSpatialReferenceShadow *)OGRLayerShadow_GetSpatialRef(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OSRSpatialReferenceShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.get_features_read
-
- call-seq:
- get_features_read -> GIntBig
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_get_features_read(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- GIntBig result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","GetFeaturesRead", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- CPLErrorReset();
- result = OGRLayerShadow_GetFeaturesRead(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj((new GIntBig(static_cast< const GIntBig& >(result))), SWIGTYPE_p_GIntBig, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.set_ignored_fields
-
- call-seq:
- set_ignored_fields(char options) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Layer_set_ignored_fields(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- char **arg2 = (char **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","SetIgnoredFields", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[0], T_ARRAY);
-
- int size = RARRAY(argv[0])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[0], i);
- char *pszItem = StringValuePtr(item);
- arg2 = CSLAddString( arg2, pszItem );
- }
- }
- {
- CPLErrorReset();
- result = (OGRErr)OGRLayerShadow_SetIgnoredFields(arg1,(char const **)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg2 );
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg2 );
- }
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Layer.each
-
- call-seq:
- each
-
-Iterate thru each element in the Layer. A block must be provided.
-*/
-SWIGINTERN VALUE
-_wrap_Layer_each(int argc, VALUE *argv, VALUE self) {
- OGRLayerShadow *arg1 = (OGRLayerShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRLayerShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRLayerShadow *","each", 1, self ));
- }
- arg1 = reinterpret_cast< OGRLayerShadow * >(argp1);
- {
- CPLErrorReset();
- OGRLayerShadow_each(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-class: Gdal::Ogr::Feature
-
- Proxy of C++ Gdal::Ogr::Feature class
-
-
-*/
-swig_class SwigClassFeature;
-
-SWIGINTERN void delete_OGRFeatureShadow(OGRFeatureShadow *self){
- OGR_F_Destroy(self);
- }
-SWIGINTERN void
-free_OGRFeatureShadow(OGRFeatureShadow *arg1) {
- delete_OGRFeatureShadow(arg1);
-}
-
-#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
-SWIGINTERN VALUE
-_wrap_Feature_allocate(VALUE self) {
-#else
- SWIGINTERN VALUE
- _wrap_Feature_allocate(int argc, VALUE *argv, VALUE self) {
-#endif
-
-
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OGRFeatureShadow);
-#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
- rb_obj_call_init(vresult, argc, argv);
-#endif
- return vresult;
- }
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.new
-
- call-seq:
- Feature.new(FeatureDefn feature_def)
-
-Class constructor.
-
-*/
-SWIGINTERN VALUE
-_wrap_new_Feature(int argc, VALUE *argv, VALUE self) {
- OGRFeatureDefnShadow *arg1 = (OGRFeatureDefnShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *kwnames[] = {
- "feature_def", NULL
- };
- OGRFeatureShadow *result = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_OGRFeatureDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureDefnShadow *","OGRFeatureShadow", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< OGRFeatureDefnShadow * >(argp1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRFeatureShadow *)new_OGRFeatureShadow(arg1);
- DATA_PTR(self) = result;
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return self;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.get_defn_ref
-
- call-seq:
- get_defn_ref -> FeatureDefn
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_get_defn_ref(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRFeatureDefnShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetDefnRef", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRFeatureDefnShadow *)OGRFeatureShadow_GetDefnRef(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRFeatureDefnShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.set_geometry
-
- call-seq:
- set_geometry(Geometry geom) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_set_geometry(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetGeometry", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","SetGeometry", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- CPLErrorReset();
- result = (OGRErr)OGRFeatureShadow_SetGeometry(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.set_geometry_directly
-
- call-seq:
- set_geometry_directly(Geometry geom) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_set_geometry_directly(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetGeometryDirectly", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_DISOWN | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","SetGeometryDirectly", 2, argv[0] ));
- }
- {
- CPLErrorReset();
- result = (OGRErr)OGRFeatureShadow_SetGeometryDirectly(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.get_geometry_ref
-
- call-seq:
- get_geometry_ref -> Geometry
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_get_geometry_ref(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetGeometryRef", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)OGRFeatureShadow_GetGeometryRef(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.clone
-
- call-seq:
- clone -> Feature
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_clone(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRFeatureShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","Clone", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRFeatureShadow *)OGRFeatureShadow_Clone(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRFeatureShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.equal
-
- call-seq:
- equal(Feature feature) -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_equal(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- OGRFeatureShadow *arg2 = (OGRFeatureShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","Equal", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRFeatureShadow *","Equal", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRFeatureShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (bool)OGRFeatureShadow_Equal(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.get_field_count
-
- call-seq:
- get_field_count -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_get_field_count(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFieldCount", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRFeatureShadow_GetFieldCount(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.get_field_defn_ref
-
- call-seq:
- get_field_defn_ref(int id) -> FieldDefn
- get_field_defn_ref(char name) -> FieldDefn
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_get_field_defn_ref__SWIG_0(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- OGRFieldDefnShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFieldDefnRef", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetFieldDefnRef", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (OGRFieldDefnShadow *)OGRFeatureShadow_GetFieldDefnRef__SWIG_0(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Feature_get_field_defn_ref__SWIG_1(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- OGRFieldDefnShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFieldDefnRef", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GetFieldDefnRef", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRFieldDefnShadow *)OGRFeatureShadow_GetFieldDefnRef__SWIG_1(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE _wrap_Feature_get_field_defn_ref(int nargs, VALUE *args, VALUE self) {
- int argc;
- VALUE argv[3];
- int ii;
-
- argc = nargs + 1;
- argv[0] = self;
- if (argc > 3) SWIG_fail;
- for (ii = 1; (ii < argc); ++ii) {
- argv[ii] = args[ii-1];
- }
- if (argc == 2) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[1], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- return _wrap_Feature_get_field_defn_ref__SWIG_0(nargs, args, self);
- }
- }
- }
- if (argc == 2) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- return _wrap_Feature_get_field_defn_ref__SWIG_1(nargs, args, self);
- }
- }
- }
-
-fail:
- Ruby_Format_OverloadedError( argc, 3, "get_field_defn_ref",
- " OGRFieldDefnShadow * get_field_defn_ref(int id)\n"
- " OGRFieldDefnShadow * get_field_defn_ref(char const *name)\n");
-
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.get_field_as_string
-
- call-seq:
- get_field_as_string(int id) -> char
- get_field_as_string(char name) -> char
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_get_field_as_string__SWIG_0(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFieldAsString", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetFieldAsString", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (char *)OGRFeatureShadow_GetFieldAsString__SWIG_0(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Feature_get_field_as_string__SWIG_1(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFieldAsString", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GetFieldAsString", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (char *)OGRFeatureShadow_GetFieldAsString__SWIG_1(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE _wrap_Feature_get_field_as_string(int nargs, VALUE *args, VALUE self) {
- int argc;
- VALUE argv[3];
- int ii;
-
- argc = nargs + 1;
- argv[0] = self;
- if (argc > 3) SWIG_fail;
- for (ii = 1; (ii < argc); ++ii) {
- argv[ii] = args[ii-1];
- }
- if (argc == 2) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[1], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- return _wrap_Feature_get_field_as_string__SWIG_0(nargs, args, self);
- }
- }
- }
- if (argc == 2) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- return _wrap_Feature_get_field_as_string__SWIG_1(nargs, args, self);
- }
- }
- }
-
-fail:
- Ruby_Format_OverloadedError( argc, 3, "get_field_as_string",
- " char const * get_field_as_string(int id)\n"
- " char const * get_field_as_string(char const *name)\n");
-
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.get_field_as_integer
-
- call-seq:
- get_field_as_integer(int id) -> int
- get_field_as_integer(char name) -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_get_field_as_integer__SWIG_0(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFieldAsInteger", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetFieldAsInteger", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (int)OGRFeatureShadow_GetFieldAsInteger__SWIG_0(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Feature_get_field_as_integer__SWIG_1(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFieldAsInteger", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GetFieldAsInteger", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (int)OGRFeatureShadow_GetFieldAsInteger__SWIG_1(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE _wrap_Feature_get_field_as_integer(int nargs, VALUE *args, VALUE self) {
- int argc;
- VALUE argv[3];
- int ii;
-
- argc = nargs + 1;
- argv[0] = self;
- if (argc > 3) SWIG_fail;
- for (ii = 1; (ii < argc); ++ii) {
- argv[ii] = args[ii-1];
- }
- if (argc == 2) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[1], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- return _wrap_Feature_get_field_as_integer__SWIG_0(nargs, args, self);
- }
- }
- }
- if (argc == 2) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- return _wrap_Feature_get_field_as_integer__SWIG_1(nargs, args, self);
- }
- }
- }
-
-fail:
- Ruby_Format_OverloadedError( argc, 3, "get_field_as_integer",
- " int get_field_as_integer(int id)\n"
- " int get_field_as_integer(char const *name)\n");
-
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.get_field_as_double
-
- call-seq:
- get_field_as_double(int id) -> double
- get_field_as_double(char name) -> double
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_get_field_as_double__SWIG_0(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFieldAsDouble", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetFieldAsDouble", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (double)OGRFeatureShadow_GetFieldAsDouble__SWIG_0(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Feature_get_field_as_double__SWIG_1(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFieldAsDouble", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GetFieldAsDouble", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (double)OGRFeatureShadow_GetFieldAsDouble__SWIG_1(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE _wrap_Feature_get_field_as_double(int nargs, VALUE *args, VALUE self) {
- int argc;
- VALUE argv[3];
- int ii;
-
- argc = nargs + 1;
- argv[0] = self;
- if (argc > 3) SWIG_fail;
- for (ii = 1; (ii < argc); ++ii) {
- argv[ii] = args[ii-1];
- }
- if (argc == 2) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[1], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- return _wrap_Feature_get_field_as_double__SWIG_0(nargs, args, self);
- }
- }
- }
- if (argc == 2) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- return _wrap_Feature_get_field_as_double__SWIG_1(nargs, args, self);
- }
- }
- }
-
-fail:
- Ruby_Format_OverloadedError( argc, 3, "get_field_as_double",
- " double get_field_as_double(int id)\n"
- " double get_field_as_double(char const *name)\n");
-
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.get_field_as_date_time
-
- call-seq:
- get_field_as_date_time(int id)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_get_field_as_date_time(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- int *arg3 = (int *) 0 ;
- int *arg4 = (int *) 0 ;
- int *arg5 = (int *) 0 ;
- int *arg6 = (int *) 0 ;
- int *arg7 = (int *) 0 ;
- int *arg8 = (int *) 0 ;
- int *arg9 = (int *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int temp3 ;
- int res3 = SWIG_TMPOBJ ;
- int temp4 ;
- int res4 = SWIG_TMPOBJ ;
- int temp5 ;
- int res5 = SWIG_TMPOBJ ;
- int temp6 ;
- int res6 = SWIG_TMPOBJ ;
- int temp7 ;
- int res7 = SWIG_TMPOBJ ;
- int temp8 ;
- int res8 = SWIG_TMPOBJ ;
- int temp9 ;
- int res9 = SWIG_TMPOBJ ;
- VALUE vresult = Qnil;
-
- arg3 = &temp3;
- arg4 = &temp4;
- arg5 = &temp5;
- arg6 = &temp6;
- arg7 = &temp7;
- arg8 = &temp8;
- arg9 = &temp9;
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFieldAsDateTime", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetFieldAsDateTime", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- OGRFeatureShadow_GetFieldAsDateTime(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = rb_ary_new();
- if (SWIG_IsTmpObj(res3)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
- } else {
- int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
- }
- if (SWIG_IsTmpObj(res4)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg4)));
- } else {
- int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
- }
- if (SWIG_IsTmpObj(res5)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
- } else {
- int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
- }
- if (SWIG_IsTmpObj(res6)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
- } else {
- int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
- }
- if (SWIG_IsTmpObj(res7)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg7)));
- } else {
- int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, new_flags));
- }
- if (SWIG_IsTmpObj(res8)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
- } else {
- int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
- }
- if (SWIG_IsTmpObj(res9)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
- } else {
- int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.get_field_as_integer_list
-
- call-seq:
- get_field_as_integer_list(int id, int nLen, int pList)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_get_field_as_integer_list(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- int *arg3 = (int *) 0 ;
- int **arg4 = (int **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- void *argp4 = 0 ;
- int res4 = 0 ;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFieldAsIntegerList", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetFieldAsIntegerList", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "int *","GetFieldAsIntegerList", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< int * >(argp3);
- res4 = SWIG_ConvertPtr(argv[2], &argp4,SWIGTYPE_p_p_int, 0 | 0 );
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "int const **","GetFieldAsIntegerList", 4, argv[2] ));
- }
- arg4 = reinterpret_cast< int ** >(argp4);
- {
- CPLErrorReset();
- OGRFeatureShadow_GetFieldAsIntegerList(arg1,arg2,arg3,(int const **)arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.get_field_as_double_list
-
- call-seq:
- get_field_as_double_list(int id, int nLen, double pList)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_get_field_as_double_list(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- int *arg3 = (int *) 0 ;
- double **arg4 = (double **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- void *argp4 = 0 ;
- int res4 = 0 ;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFieldAsDoubleList", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetFieldAsDoubleList", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_int, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "int *","GetFieldAsDoubleList", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< int * >(argp3);
- res4 = SWIG_ConvertPtr(argv[2], &argp4,SWIGTYPE_p_p_double, 0 | 0 );
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "double const **","GetFieldAsDoubleList", 4, argv[2] ));
- }
- arg4 = reinterpret_cast< double ** >(argp4);
- {
- CPLErrorReset();
- OGRFeatureShadow_GetFieldAsDoubleList(arg1,arg2,arg3,(double const **)arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.get_field_as_string_list
-
- call-seq:
- get_field_as_string_list(int id, char pList)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_get_field_as_string_list(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- char ***arg3 = (char ***) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFieldAsStringList", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetFieldAsStringList", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_p_p_char, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char ***","GetFieldAsStringList", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< char *** >(argp3);
- {
- CPLErrorReset();
- OGRFeatureShadow_GetFieldAsStringList(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.is_field_set
-
- call-seq:
- is_field_set(int id) -> bool
- is_field_set(char name) -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_is_field_set__SWIG_0(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","IsFieldSet", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","IsFieldSet", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (bool)OGRFeatureShadow_IsFieldSet__SWIG_0(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Feature_is_field_set__SWIG_1(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","IsFieldSet", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","IsFieldSet", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (bool)OGRFeatureShadow_IsFieldSet__SWIG_1(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE _wrap_Feature_is_field_set(int nargs, VALUE *args, VALUE self) {
- int argc;
- VALUE argv[3];
- int ii;
-
- argc = nargs + 1;
- argv[0] = self;
- if (argc > 3) SWIG_fail;
- for (ii = 1; (ii < argc); ++ii) {
- argv[ii] = args[ii-1];
- }
- if (argc == 2) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[1], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- return _wrap_Feature_is_field_set__SWIG_0(nargs, args, self);
- }
- }
- }
- if (argc == 2) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- return _wrap_Feature_is_field_set__SWIG_1(nargs, args, self);
- }
- }
- }
-
-fail:
- Ruby_Format_OverloadedError( argc, 3, "is_field_set",
- " bool is_field_set(int id)\n"
- " bool is_field_set(char const *name)\n");
-
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.get_field_index
-
- call-seq:
- get_field_index(char name) -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_get_field_index(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFieldIndex", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GetFieldIndex", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (int)OGRFeatureShadow_GetFieldIndex(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.get_fid
-
- call-seq:
- get_fid -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_get_fid(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFID", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRFeatureShadow_GetFID(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.set_fid
-
- call-seq:
- set_fid(int fid) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_set_fid(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetFID", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetFID", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (OGRErr)OGRFeatureShadow_SetFID(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.dump_readable
-
- call-seq:
- dump_readable
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_dump_readable(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","DumpReadable", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- {
- CPLErrorReset();
- OGRFeatureShadow_DumpReadable(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.unset_field
-
- call-seq:
- unset_field(int id)
- unset_field(char name)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_unset_field__SWIG_0(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","UnsetField", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","UnsetField", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- OGRFeatureShadow_UnsetField__SWIG_0(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Feature_unset_field__SWIG_1(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","UnsetField", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","UnsetField", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- OGRFeatureShadow_UnsetField__SWIG_1(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE _wrap_Feature_unset_field(int nargs, VALUE *args, VALUE self) {
- int argc;
- VALUE argv[3];
- int ii;
-
- argc = nargs + 1;
- argv[0] = self;
- if (argc > 3) SWIG_fail;
- for (ii = 1; (ii < argc); ++ii) {
- argv[ii] = args[ii-1];
- }
- if (argc == 2) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[1], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- return _wrap_Feature_unset_field__SWIG_0(nargs, args, self);
- }
- }
- }
- if (argc == 2) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- return _wrap_Feature_unset_field__SWIG_1(nargs, args, self);
- }
- }
- }
-
-fail:
- Ruby_Format_OverloadedError( argc, 3, "unset_field",
- " void unset_field(int id)\n"
- " void unset_field(char const *name)\n");
-
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.set_field
-
- call-seq:
- set_field(int id, char value)
- set_field(char name, char value)
- set_field(int id, int value)
- set_field(char name, int value)
- set_field(int id, double value)
- set_field(char name, double value)
- set_field(int id, int year, int month, int day, int hour, int minute,
- int second, int tzflag)
- set_field(char name, int year, int month, int day, int hour,
- int minute, int second, int tzflag)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_set_field__SWIG_0(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- char *arg3 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetField", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetField", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","SetField", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- {
- CPLErrorReset();
- OGRFeatureShadow_SetField__SWIG_0(arg1,arg2,(char const *)arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return Qnil;
-fail:
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Feature_set_field__SWIG_1(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetField", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetField", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","SetField", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- OGRFeatureShadow_SetField__SWIG_1(arg1,(char const *)arg2,(char const *)arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return Qnil;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Feature_set_field__SWIG_2(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- int arg3 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetField", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetField", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","SetField", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- {
- CPLErrorReset();
- OGRFeatureShadow_SetField__SWIG_2(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Feature_set_field__SWIG_3(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- int arg3 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetField", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetField", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","SetField", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- OGRFeatureShadow_SetField__SWIG_3(arg1,(char const *)arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Feature_set_field__SWIG_4(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- double arg3 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetField", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetField", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetField", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- {
- CPLErrorReset();
- OGRFeatureShadow_SetField__SWIG_4(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Feature_set_field__SWIG_5(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- double arg3 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetField", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetField", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetField", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- OGRFeatureShadow_SetField__SWIG_5(arg1,(char const *)arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Feature_set_field__SWIG_6(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- int arg3 ;
- int arg4 ;
- int arg5 ;
- int arg6 ;
- int arg7 ;
- int arg8 ;
- int arg9 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- int val5 ;
- int ecode5 = 0 ;
- int val6 ;
- int ecode6 = 0 ;
- int val7 ;
- int ecode7 = 0 ;
- int val8 ;
- int ecode8 = 0 ;
- int val9 ;
- int ecode9 = 0 ;
-
- if ((argc < 8) || (argc > 8)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetField", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetField", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","SetField", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- ecode4 = SWIG_AsVal_int(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","SetField", 4, argv[2] ));
- }
- arg4 = static_cast< int >(val4);
- ecode5 = SWIG_AsVal_int(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","SetField", 5, argv[3] ));
- }
- arg5 = static_cast< int >(val5);
- ecode6 = SWIG_AsVal_int(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","SetField", 6, argv[4] ));
- }
- arg6 = static_cast< int >(val6);
- ecode7 = SWIG_AsVal_int(argv[5], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","SetField", 7, argv[5] ));
- }
- arg7 = static_cast< int >(val7);
- ecode8 = SWIG_AsVal_int(argv[6], &val8);
- if (!SWIG_IsOK(ecode8)) {
- SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "int","SetField", 8, argv[6] ));
- }
- arg8 = static_cast< int >(val8);
- ecode9 = SWIG_AsVal_int(argv[7], &val9);
- if (!SWIG_IsOK(ecode9)) {
- SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "int","SetField", 9, argv[7] ));
- }
- arg9 = static_cast< int >(val9);
- {
- CPLErrorReset();
- OGRFeatureShadow_SetField__SWIG_6(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Feature_set_field__SWIG_7(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- int arg3 ;
- int arg4 ;
- int arg5 ;
- int arg6 ;
- int arg7 ;
- int arg8 ;
- int arg9 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- int val5 ;
- int ecode5 = 0 ;
- int val6 ;
- int ecode6 = 0 ;
- int val7 ;
- int ecode7 = 0 ;
- int val8 ;
- int ecode8 = 0 ;
- int val9 ;
- int ecode9 = 0 ;
-
- if ((argc < 8) || (argc > 8)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetField", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetField", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","SetField", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- ecode4 = SWIG_AsVal_int(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","SetField", 4, argv[2] ));
- }
- arg4 = static_cast< int >(val4);
- ecode5 = SWIG_AsVal_int(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","SetField", 5, argv[3] ));
- }
- arg5 = static_cast< int >(val5);
- ecode6 = SWIG_AsVal_int(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","SetField", 6, argv[4] ));
- }
- arg6 = static_cast< int >(val6);
- ecode7 = SWIG_AsVal_int(argv[5], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","SetField", 7, argv[5] ));
- }
- arg7 = static_cast< int >(val7);
- ecode8 = SWIG_AsVal_int(argv[6], &val8);
- if (!SWIG_IsOK(ecode8)) {
- SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "int","SetField", 8, argv[6] ));
- }
- arg8 = static_cast< int >(val8);
- ecode9 = SWIG_AsVal_int(argv[7], &val9);
- if (!SWIG_IsOK(ecode9)) {
- SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "int","SetField", 9, argv[7] ));
- }
- arg9 = static_cast< int >(val9);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- OGRFeatureShadow_SetField__SWIG_7(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE _wrap_Feature_set_field(int nargs, VALUE *args, VALUE self) {
- int argc;
- VALUE argv[10];
- int ii;
-
- argc = nargs + 1;
- argv[0] = self;
- if (argc > 10) SWIG_fail;
- for (ii = 1; (ii < argc); ++ii) {
- argv[ii] = args[ii-1];
- }
- if (argc == 3) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[1], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[2], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- return _wrap_Feature_set_field__SWIG_2(nargs, args, self);
- }
- }
- }
- }
- if (argc == 3) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[1], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_double(argv[2], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- return _wrap_Feature_set_field__SWIG_4(nargs, args, self);
- }
- }
- }
- }
- if (argc == 3) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[1], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- return _wrap_Feature_set_field__SWIG_0(nargs, args, self);
- }
- }
- }
- }
- if (argc == 3) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[2], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- return _wrap_Feature_set_field__SWIG_3(nargs, args, self);
- }
- }
- }
- }
- if (argc == 3) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_double(argv[2], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- return _wrap_Feature_set_field__SWIG_5(nargs, args, self);
- }
- }
- }
- }
- if (argc == 3) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- return _wrap_Feature_set_field__SWIG_1(nargs, args, self);
- }
- }
- }
- }
- if (argc == 9) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[1], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[2], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[3], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[4], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[5], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[6], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[7], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[8], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- return _wrap_Feature_set_field__SWIG_6(nargs, args, self);
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- if (argc == 9) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[2], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[3], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[4], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[5], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[6], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[7], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[8], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- return _wrap_Feature_set_field__SWIG_7(nargs, args, self);
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
-
-fail:
- Ruby_Format_OverloadedError( argc, 10, "set_field",
- " void set_field(int id, char const *value)\n"
- " void set_field(char const *name, char const *value)\n"
- " void set_field(int id, int value)\n"
- " void set_field(char const *name, int value)\n"
- " void set_field(int id, double value)\n"
- " void set_field(char const *name, double value)\n"
- " void set_field(int id, int year, int month, int day, int hour, int minute, int second, int tzflag)\n"
- " void set_field(char const *name, int year, int month, int day, int hour, int minute, int second, int tzflag)\n");
-
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.set_field_integer_list
-
- call-seq:
- set_field_integer_list(int id, int nList)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_set_field_integer_list(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- int arg3 ;
- int *arg4 = (int *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetFieldIntegerList", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetFieldIntegerList", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- /* %typemap(in,numinputs=1) (int nList, int* pList) */
-
- /* Make sure this is an array. */
- Check_Type(argv[1], T_ARRAY);
-
- /* Get the length */
- arg3 = RARRAY(argv[1])->len;
-
- /* Allocate space for the C array. */
- arg4 = (int*) malloc(arg3*sizeof(int));
-
- for( int i = 0; i<arg3; i++ ) {
- /* Get the Ruby Object */
- VALUE item = rb_ary_entry(argv[1],i);
- /* Conver to an integer */
- arg4[i] = NUM2INT(item);
- }
- }
- {
- CPLErrorReset();
- OGRFeatureShadow_SetFieldIntegerList(arg1,arg2,arg3,arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(freearg) (int nList, int* pList) */
- if (arg4) {
- free((void*) arg4);
- }
- }
- return Qnil;
-fail:
- {
- /* %typemap(freearg) (int nList, int* pList) */
- if (arg4) {
- free((void*) arg4);
- }
- }
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.set_field_double_list
-
- call-seq:
- set_field_double_list(int id, int nList, double pList)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_set_field_double_list(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- int arg3 ;
- double *arg4 = (double *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- void *argp4 = 0 ;
- int res4 = 0 ;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetFieldDoubleList", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetFieldDoubleList", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","SetFieldDoubleList", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- res4 = SWIG_ConvertPtr(argv[2], &argp4,SWIGTYPE_p_double, 0 | 0 );
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "double *","SetFieldDoubleList", 4, argv[2] ));
- }
- arg4 = reinterpret_cast< double * >(argp4);
- {
- CPLErrorReset();
- OGRFeatureShadow_SetFieldDoubleList(arg1,arg2,arg3,arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.set_field_string_list
-
- call-seq:
- set_field_string_list(int id, char pList)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_set_field_string_list(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- char **arg3 = (char **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetFieldStringList", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetFieldStringList", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[1], T_ARRAY);
-
- int size = RARRAY(argv[1])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[1], i);
- char *pszItem = StringValuePtr(item);
- arg3 = CSLAddString( arg3, pszItem );
- }
- }
- {
- CPLErrorReset();
- OGRFeatureShadow_SetFieldStringList(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg3 );
- }
- return Qnil;
-fail:
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg3 );
- }
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.set_from
-
- call-seq:
- set_from(Feature other, int forgiving=1) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_set_from(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- OGRFeatureShadow *arg2 = (OGRFeatureShadow *) 0 ;
- int arg3 = (int) 1 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- char *kwnames[] = {
- "self","other","forgiving", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetFrom", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetFrom", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRFeatureShadow * >(argp2);
- if (argc > 1) {
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","SetFrom", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRErr)OGRFeatureShadow_SetFrom(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.get_style_string
-
- call-seq:
- get_style_string -> char
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_get_style_string(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetStyleString", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)OGRFeatureShadow_GetStyleString(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.set_style_string
-
- call-seq:
- set_style_string(char the_string)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_set_style_string(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","SetStyleString", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetStyleString", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- CPLErrorReset();
- OGRFeatureShadow_SetStyleString(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.get_field_type
-
- call-seq:
- get_field_type(int id) -> OGRFieldType
- get_field_type(char name) -> OGRFieldType
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_get_field_type__SWIG_0(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- OGRFieldType result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFieldType", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetFieldType", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (OGRFieldType)OGRFeatureShadow_GetFieldType__SWIG_0(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_Feature_get_field_type__SWIG_1(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- OGRFieldType result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetFieldType", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GetFieldType", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRFieldType)OGRFeatureShadow_GetFieldType__SWIG_1(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE _wrap_Feature_get_field_type(int nargs, VALUE *args, VALUE self) {
- int argc;
- VALUE argv[3];
- int ii;
-
- argc = nargs + 1;
- argv[0] = self;
- if (argc > 3) SWIG_fail;
- for (ii = 1; (ii < argc); ++ii) {
- argv[ii] = args[ii-1];
- }
- if (argc == 2) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_int(argv[1], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- return _wrap_Feature_get_field_type__SWIG_0(nargs, args, self);
- }
- }
- }
- if (argc == 2) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OGRFeatureShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- return _wrap_Feature_get_field_type__SWIG_1(nargs, args, self);
- }
- }
- }
-
-fail:
- Ruby_Format_OverloadedError( argc, 3, "get_field_type",
- " OGRFieldType get_field_type(int id)\n"
- " OGRFieldType get_field_type(char const *name)\n");
-
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Feature.get_field
-
- call-seq:
- get_field(VALUE object) -> VALUE
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Feature_get_field(int argc, VALUE *argv, VALUE self) {
- OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
- VALUE arg2 = (VALUE) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- VALUE result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureShadow *","GetField", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureShadow * >(argp1);
- arg2 = argv[0];
- {
- CPLErrorReset();
- result = (VALUE)OGRFeatureShadow_GetField(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = result;
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-class: Gdal::Ogr::FeatureDefn
-
- Proxy of C++ Gdal::Ogr::FeatureDefn class
-
-
-*/
-swig_class SwigClassFeatureDefn;
-
-SWIGINTERN void delete_OGRFeatureDefnShadow(OGRFeatureDefnShadow *self){
- /*OGR_FD_Destroy(self);*/
- OGR_FD_Release( OGRFeatureDefnH(self) );
- }
-SWIGINTERN void
-free_OGRFeatureDefnShadow(OGRFeatureDefnShadow *arg1) {
- delete_OGRFeatureDefnShadow(arg1);
-}
-
-#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
-SWIGINTERN VALUE
-_wrap_FeatureDefn_allocate(VALUE self) {
-#else
- SWIGINTERN VALUE
- _wrap_FeatureDefn_allocate(int argc, VALUE *argv, VALUE self) {
-#endif
-
-
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OGRFeatureDefnShadow);
-#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
- rb_obj_call_init(vresult, argc, argv);
-#endif
- return vresult;
- }
-
-
-
-/*
- Document-method: Gdal::Ogr::FeatureDefn.new
-
- call-seq:
- FeatureDefn.new(char name_null_ok=nil)
-
-Class constructor.
-
-*/
-SWIGINTERN VALUE
-_wrap_new_FeatureDefn(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) NULL ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- char *kwnames[] = {
- "name_null_ok", NULL
- };
- OGRFeatureDefnShadow *result = 0 ;
-
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- if (argc > 0) {
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","OGRFeatureDefnShadow", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- }
- {
- CPLErrorReset();
- result = (OGRFeatureDefnShadow *)new_OGRFeatureDefnShadow((char const *)arg1);
- DATA_PTR(self) = result;
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return self;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FeatureDefn.get_name
-
- call-seq:
- get_name -> char
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FeatureDefn_get_name(int argc, VALUE *argv, VALUE self) {
- OGRFeatureDefnShadow *arg1 = (OGRFeatureDefnShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureDefnShadow *","GetName", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureDefnShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)OGRFeatureDefnShadow_GetName(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FeatureDefn.get_field_count
-
- call-seq:
- get_field_count -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FeatureDefn_get_field_count(int argc, VALUE *argv, VALUE self) {
- OGRFeatureDefnShadow *arg1 = (OGRFeatureDefnShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureDefnShadow *","GetFieldCount", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureDefnShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRFeatureDefnShadow_GetFieldCount(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FeatureDefn.get_field_defn
-
- call-seq:
- get_field_defn(int i) -> FieldDefn
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FeatureDefn_get_field_defn(int argc, VALUE *argv, VALUE self) {
- OGRFeatureDefnShadow *arg1 = (OGRFeatureDefnShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- OGRFieldDefnShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureDefnShadow *","GetFieldDefn", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureDefnShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetFieldDefn", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (OGRFieldDefnShadow *)OGRFeatureDefnShadow_GetFieldDefn(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FeatureDefn.get_field_index
-
- call-seq:
- get_field_index(char name) -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FeatureDefn_get_field_index(int argc, VALUE *argv, VALUE self) {
- OGRFeatureDefnShadow *arg1 = (OGRFeatureDefnShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureDefnShadow *","GetFieldIndex", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureDefnShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GetFieldIndex", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (int)OGRFeatureDefnShadow_GetFieldIndex(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FeatureDefn.add_field_defn
-
- call-seq:
- add_field_defn(FieldDefn defn)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FeatureDefn_add_field_defn(int argc, VALUE *argv, VALUE self) {
- OGRFeatureDefnShadow *arg1 = (OGRFeatureDefnShadow *) 0 ;
- OGRFieldDefnShadow *arg2 = (OGRFieldDefnShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureDefnShadow *","AddFieldDefn", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureDefnShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","AddFieldDefn", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRFieldDefnShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- OGRFeatureDefnShadow_AddFieldDefn(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FeatureDefn.get_geom_type
-
- call-seq:
- get_geom_type -> OGRwkbGeometryType
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FeatureDefn_get_geom_type(int argc, VALUE *argv, VALUE self) {
- OGRFeatureDefnShadow *arg1 = (OGRFeatureDefnShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRwkbGeometryType result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureDefnShadow *","GetGeomType", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureDefnShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRwkbGeometryType)OGRFeatureDefnShadow_GetGeomType(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FeatureDefn.set_geom_type
-
- call-seq:
- set_geom_type(OGRwkbGeometryType geom_type)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FeatureDefn_set_geom_type(int argc, VALUE *argv, VALUE self) {
- OGRFeatureDefnShadow *arg1 = (OGRFeatureDefnShadow *) 0 ;
- OGRwkbGeometryType arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureDefnShadow *","SetGeomType", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureDefnShadow * >(argp1);
- {
- /* %typemap(in) CPLErr */
- arg2 = (OGRwkbGeometryType) NUM2INT(argv[0]);
- }
- {
- CPLErrorReset();
- OGRFeatureDefnShadow_SetGeomType(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FeatureDefn.get_reference_count
-
- call-seq:
- get_reference_count -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FeatureDefn_get_reference_count(int argc, VALUE *argv, VALUE self) {
- OGRFeatureDefnShadow *arg1 = (OGRFeatureDefnShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureDefnShadow *","GetReferenceCount", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureDefnShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRFeatureDefnShadow_GetReferenceCount(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FeatureDefn.is_geometry_ignored
-
- call-seq:
- is_geometry_ignored -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FeatureDefn_is_geometry_ignored(int argc, VALUE *argv, VALUE self) {
- OGRFeatureDefnShadow *arg1 = (OGRFeatureDefnShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureDefnShadow *","IsGeometryIgnored", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureDefnShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRFeatureDefnShadow_IsGeometryIgnored(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FeatureDefn.set_geometry_ignored
-
- call-seq:
- set_geometry_ignored(int bIgnored)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FeatureDefn_set_geometry_ignored(int argc, VALUE *argv, VALUE self) {
- OGRFeatureDefnShadow *arg1 = (OGRFeatureDefnShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureDefnShadow *","SetGeometryIgnored", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureDefnShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetGeometryIgnored", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- OGRFeatureDefnShadow_SetGeometryIgnored(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FeatureDefn.is_style_ignored
-
- call-seq:
- is_style_ignored -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FeatureDefn_is_style_ignored(int argc, VALUE *argv, VALUE self) {
- OGRFeatureDefnShadow *arg1 = (OGRFeatureDefnShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureDefnShadow *","IsStyleIgnored", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureDefnShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRFeatureDefnShadow_IsStyleIgnored(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FeatureDefn.set_style_ignored
-
- call-seq:
- set_style_ignored(int bIgnored)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FeatureDefn_set_style_ignored(int argc, VALUE *argv, VALUE self) {
- OGRFeatureDefnShadow *arg1 = (OGRFeatureDefnShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFeatureDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFeatureDefnShadow *","SetStyleIgnored", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFeatureDefnShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetStyleIgnored", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- OGRFeatureDefnShadow_SetStyleIgnored(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-class: Gdal::Ogr::FieldDefn
-
- Proxy of C++ Gdal::Ogr::FieldDefn class
-
-
-*/
-swig_class SwigClassFieldDefn;
-
-SWIGINTERN void delete_OGRFieldDefnShadow(OGRFieldDefnShadow *self){
- OGR_Fld_Destroy(self);
- }
-SWIGINTERN void
-free_OGRFieldDefnShadow(OGRFieldDefnShadow *arg1) {
- delete_OGRFieldDefnShadow(arg1);
-}
-
-#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
-SWIGINTERN VALUE
-_wrap_FieldDefn_allocate(VALUE self) {
-#else
- SWIGINTERN VALUE
- _wrap_FieldDefn_allocate(int argc, VALUE *argv, VALUE self) {
-#endif
-
-
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OGRFieldDefnShadow);
-#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
- rb_obj_call_init(vresult, argc, argv);
-#endif
- return vresult;
- }
-
-
-
-/*
- Document-method: Gdal::Ogr::FieldDefn.new
-
- call-seq:
- FieldDefn.new(char name_null_ok="unnamed", OGRFieldType field_type=OFTSTRING)
-
-Class constructor.
-
-*/
-SWIGINTERN VALUE
-_wrap_new_FieldDefn(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) "unnamed" ;
- OGRFieldType arg2 = (OGRFieldType) OFTString ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- char *kwnames[] = {
- "name_null_ok","field_type", NULL
- };
- OGRFieldDefnShadow *result = 0 ;
-
- if ((argc < 0) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- if (argc > 0) {
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","OGRFieldDefnShadow", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- }
- if (argc > 1) {
- {
- /* %typemap(in) CPLErr */
- arg2 = (OGRFieldType) NUM2INT(argv[1]);
- }
- }
- {
- CPLErrorReset();
- result = (OGRFieldDefnShadow *)new_OGRFieldDefnShadow((char const *)arg1,arg2);
- DATA_PTR(self) = result;
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return self;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FieldDefn.get_name
-
- call-seq:
- get_name -> char
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FieldDefn_get_name(int argc, VALUE *argv, VALUE self) {
- OGRFieldDefnShadow *arg1 = (OGRFieldDefnShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","GetName", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFieldDefnShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)OGRFieldDefnShadow_GetName(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FieldDefn.get_name_ref
-
- call-seq:
- get_name_ref -> char
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FieldDefn_get_name_ref(int argc, VALUE *argv, VALUE self) {
- OGRFieldDefnShadow *arg1 = (OGRFieldDefnShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","GetNameRef", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFieldDefnShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)OGRFieldDefnShadow_GetNameRef(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FieldDefn.set_name
-
- call-seq:
- set_name(char name)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FieldDefn_set_name(int argc, VALUE *argv, VALUE self) {
- OGRFieldDefnShadow *arg1 = (OGRFieldDefnShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","SetName", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFieldDefnShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetName", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- OGRFieldDefnShadow_SetName(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FieldDefn.get_type
-
- call-seq:
- get_type -> OGRFieldType
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FieldDefn_get_type(int argc, VALUE *argv, VALUE self) {
- OGRFieldDefnShadow *arg1 = (OGRFieldDefnShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRFieldType result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","GetType", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFieldDefnShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRFieldType)OGRFieldDefnShadow_GetType(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FieldDefn.set_type
-
- call-seq:
- set_type(OGRFieldType type)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FieldDefn_set_type(int argc, VALUE *argv, VALUE self) {
- OGRFieldDefnShadow *arg1 = (OGRFieldDefnShadow *) 0 ;
- OGRFieldType arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","SetType", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFieldDefnShadow * >(argp1);
- {
- /* %typemap(in) CPLErr */
- arg2 = (OGRFieldType) NUM2INT(argv[0]);
- }
- {
- CPLErrorReset();
- OGRFieldDefnShadow_SetType(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FieldDefn.get_justify
-
- call-seq:
- get_justify -> OGRJustification
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FieldDefn_get_justify(int argc, VALUE *argv, VALUE self) {
- OGRFieldDefnShadow *arg1 = (OGRFieldDefnShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRJustification result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","GetJustify", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFieldDefnShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRJustification)OGRFieldDefnShadow_GetJustify(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FieldDefn.set_justify
-
- call-seq:
- set_justify(OGRJustification justify)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FieldDefn_set_justify(int argc, VALUE *argv, VALUE self) {
- OGRFieldDefnShadow *arg1 = (OGRFieldDefnShadow *) 0 ;
- OGRJustification arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","SetJustify", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFieldDefnShadow * >(argp1);
- {
- /* %typemap(in) CPLErr */
- arg2 = (OGRJustification) NUM2INT(argv[0]);
- }
- {
- CPLErrorReset();
- OGRFieldDefnShadow_SetJustify(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FieldDefn.get_width
-
- call-seq:
- get_width -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FieldDefn_get_width(int argc, VALUE *argv, VALUE self) {
- OGRFieldDefnShadow *arg1 = (OGRFieldDefnShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","GetWidth", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFieldDefnShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRFieldDefnShadow_GetWidth(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FieldDefn.set_width
-
- call-seq:
- set_width(int width)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FieldDefn_set_width(int argc, VALUE *argv, VALUE self) {
- OGRFieldDefnShadow *arg1 = (OGRFieldDefnShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","SetWidth", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFieldDefnShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetWidth", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- OGRFieldDefnShadow_SetWidth(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FieldDefn.get_precision
-
- call-seq:
- get_precision -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FieldDefn_get_precision(int argc, VALUE *argv, VALUE self) {
- OGRFieldDefnShadow *arg1 = (OGRFieldDefnShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","GetPrecision", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFieldDefnShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRFieldDefnShadow_GetPrecision(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FieldDefn.set_precision
-
- call-seq:
- set_precision(int precision)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FieldDefn_set_precision(int argc, VALUE *argv, VALUE self) {
- OGRFieldDefnShadow *arg1 = (OGRFieldDefnShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","SetPrecision", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFieldDefnShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetPrecision", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- OGRFieldDefnShadow_SetPrecision(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FieldDefn.get_type_name
-
- call-seq:
- get_type_name -> char
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FieldDefn_get_type_name(int argc, VALUE *argv, VALUE self) {
- OGRFieldDefnShadow *arg1 = (OGRFieldDefnShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","GetTypeName", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFieldDefnShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)OGRFieldDefnShadow_GetTypeName(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FieldDefn.get_field_type_name
-
- call-seq:
- get_field_type_name(OGRFieldType type) -> char
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FieldDefn_get_field_type_name(int argc, VALUE *argv, VALUE self) {
- OGRFieldDefnShadow *arg1 = (OGRFieldDefnShadow *) 0 ;
- OGRFieldType arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","GetFieldTypeName", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFieldDefnShadow * >(argp1);
- {
- /* %typemap(in) CPLErr */
- arg2 = (OGRFieldType) NUM2INT(argv[0]);
- }
- {
- CPLErrorReset();
- result = (char *)OGRFieldDefnShadow_GetFieldTypeName(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FieldDefn.is_ignored
-
- call-seq:
- is_ignored -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FieldDefn_is_ignored(int argc, VALUE *argv, VALUE self) {
- OGRFieldDefnShadow *arg1 = (OGRFieldDefnShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","IsIgnored", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFieldDefnShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRFieldDefnShadow_IsIgnored(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::FieldDefn.set_ignored
-
- call-seq:
- set_ignored(int bIgnored)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_FieldDefn_set_ignored(int argc, VALUE *argv, VALUE self) {
- OGRFieldDefnShadow *arg1 = (OGRFieldDefnShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRFieldDefnShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRFieldDefnShadow *","SetIgnored", 1, self ));
- }
- arg1 = reinterpret_cast< OGRFieldDefnShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetIgnored", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- OGRFieldDefnShadow_SetIgnored(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.create_geometry_from_wkb
-
- call-seq:
- create_geometry_from_wkb(int len, SpatialReference reference=nil) -> Geometry
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_create_geometry_from_wkb(int argc, VALUE *argv, VALUE self) {
- int arg1 ;
- char *arg2 = (char *) 0 ;
- OSRSpatialReferenceShadow *arg3 = (OSRSpatialReferenceShadow *) NULL ;
- int res1 ;
- char *buf1 = 0 ;
- size_t size1 = 0 ;
- int alloc1 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- char *kwnames[] = {
- "len","reference", NULL
- };
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, &size1, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int","CreateGeometryFromWkb", 1, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf1) ;
- arg1 = static_cast< int >(size1 - 1) ;
- if (argc > 1) {
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","CreateGeometryFromWkb", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp3);
- }
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)CreateGeometryFromWkb(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.create_geometry_from_wkt
-
- call-seq:
- create_geometry_from_wkt(char val, SpatialReference reference=nil) -> Geometry
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_create_geometry_from_wkt(int argc, VALUE *argv, VALUE self) {
- char **arg1 = (char **) 0 ;
- OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) NULL ;
- char *val1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- char *kwnames[] = {
- "val","reference", NULL
- };
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- /* %typemap(in) char ** ( char *val1=0 ) */
-
- val1 = StringValuePtr(argv[0]);
- arg1 = &val1;
- }
- if (argc > 1) {
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","CreateGeometryFromWkt", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp2);
- }
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)CreateGeometryFromWkt(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.create_geometry_from_gml
-
- call-seq:
- create_geometry_from_gml(char input_string) -> Geometry
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_create_geometry_from_gml(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","CreateGeometryFromGML", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)CreateGeometryFromGML((char const *)arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.create_geometry_from_json
-
- call-seq:
- create_geometry_from_json(char input_string) -> Geometry
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_create_geometry_from_json(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","CreateGeometryFromJson", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)CreateGeometryFromJson((char const *)arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.build_polygon_from_edges
-
- call-seq:
- build_polygon_from_edges(Geometry hLineCollection, int bBestEffort=0, int bAutoClose=0,
- double dfTolerance=0) -> Geometry
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_build_polygon_from_edges(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- int arg2 = (int) 0 ;
- int arg3 = (int) 0 ;
- double arg4 = (double) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- char *kwnames[] = {
- "hLineCollection","bBestEffort","bAutoClose","dfTolerance", NULL
- };
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","BuildPolygonFromEdges", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- if (argc > 1) {
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","BuildPolygonFromEdges", 2, argv[1] ));
- }
- arg2 = static_cast< int >(val2);
- }
- if (argc > 2) {
- ecode3 = SWIG_AsVal_int(argv[2], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","BuildPolygonFromEdges", 3, argv[2] ));
- }
- arg3 = static_cast< int >(val3);
- }
- if (argc > 3) {
- ecode4 = SWIG_AsVal_double(argv[3], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","BuildPolygonFromEdges", 4, argv[3] ));
- }
- arg4 = static_cast< double >(val4);
- }
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)BuildPolygonFromEdges(arg1,arg2,arg3,arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.approximate_arc_angles
-
- call-seq:
- approximate_arc_angles(double dfCenterX, double dfCenterY, double dfZ, double dfPrimaryRadius,
- double dfSecondaryAxis,
- double dfRotation, double dfStartAngle, double dfEndAngle,
- double dfMaxAngleStepSizeDegrees) -> Geometry
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_approximate_arc_angles(int argc, VALUE *argv, VALUE self) {
- double arg1 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- double arg7 ;
- double arg8 ;
- double arg9 ;
- double val1 ;
- int ecode1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- double val7 ;
- int ecode7 = 0 ;
- double val8 ;
- int ecode8 = 0 ;
- double val9 ;
- int ecode9 = 0 ;
- char *kwnames[] = {
- "dfCenterX","dfCenterY","dfZ","dfPrimaryRadius","dfSecondaryAxis","dfRotation","dfStartAngle","dfEndAngle","dfMaxAngleStepSizeDegrees", NULL
- };
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 9) || (argc > 9)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc); SWIG_fail;
- }
- ecode1 = SWIG_AsVal_double(argv[0], &val1);
- if (!SWIG_IsOK(ecode1)) {
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","ApproximateArcAngles", 1, argv[0] ));
- }
- arg1 = static_cast< double >(val1);
- ecode2 = SWIG_AsVal_double(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","ApproximateArcAngles", 2, argv[1] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[2], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","ApproximateArcAngles", 3, argv[2] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[3], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","ApproximateArcAngles", 4, argv[3] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[4], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","ApproximateArcAngles", 5, argv[4] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[5], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","ApproximateArcAngles", 6, argv[5] ));
- }
- arg6 = static_cast< double >(val6);
- ecode7 = SWIG_AsVal_double(argv[6], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "double","ApproximateArcAngles", 7, argv[6] ));
- }
- arg7 = static_cast< double >(val7);
- ecode8 = SWIG_AsVal_double(argv[7], &val8);
- if (!SWIG_IsOK(ecode8)) {
- SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "double","ApproximateArcAngles", 8, argv[7] ));
- }
- arg8 = static_cast< double >(val8);
- ecode9 = SWIG_AsVal_double(argv[8], &val9);
- if (!SWIG_IsOK(ecode9)) {
- SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "double","ApproximateArcAngles", 9, argv[8] ));
- }
- arg9 = static_cast< double >(val9);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)ApproximateArcAngles(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.force_to_polygon
-
- call-seq:
- force_to_polygon(Geometry geom_in) -> Geometry
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_force_to_polygon(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","ForceToPolygon", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)ForceToPolygon(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.force_to_multi_polygon
-
- call-seq:
- force_to_multi_polygon(Geometry geom_in) -> Geometry
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_force_to_multi_polygon(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","ForceToMultiPolygon", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)ForceToMultiPolygon(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.force_to_multi_point
-
- call-seq:
- force_to_multi_point(Geometry geom_in) -> Geometry
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_force_to_multi_point(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","ForceToMultiPoint", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)ForceToMultiPoint(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.force_to_multi_line_string
-
- call-seq:
- force_to_multi_line_string(Geometry geom_in) -> Geometry
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_force_to_multi_line_string(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","ForceToMultiLineString", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)ForceToMultiLineString(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-class: Gdal::Ogr::Geometry
-
- Proxy of C++ Gdal::Ogr::Geometry class
-
-
-*/
-swig_class SwigClassGeometry;
-
-SWIGINTERN void delete_OGRGeometryShadow(OGRGeometryShadow *self){
- OGR_G_DestroyGeometry( self );
- }
-SWIGINTERN void
-free_OGRGeometryShadow(OGRGeometryShadow *arg1) {
- delete_OGRGeometryShadow(arg1);
-}
-
-#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
-SWIGINTERN VALUE
-_wrap_Geometry_allocate(VALUE self) {
-#else
- SWIGINTERN VALUE
- _wrap_Geometry_allocate(int argc, VALUE *argv, VALUE self) {
-#endif
-
-
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OGRGeometryShadow);
-#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
- rb_obj_call_init(vresult, argc, argv);
-#endif
- return vresult;
- }
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.new
-
- call-seq:
- Geometry.new(OGRwkbGeometryType type=WKBUNKNOWN, char wkt=0, int wkb=0,
- char gml=0)
-
-Class constructor.
-
-*/
-SWIGINTERN VALUE
-_wrap_new_Geometry(int argc, VALUE *argv, VALUE self) {
- OGRwkbGeometryType arg1 = (OGRwkbGeometryType) wkbUnknown ;
- char *arg2 = (char *) 0 ;
- int arg3 = (int) 0 ;
- char *arg4 = (char *) 0 ;
- char *arg5 = (char *) 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- size_t size3 = 0 ;
- int alloc3 = 0 ;
- int res5 ;
- char *buf5 = 0 ;
- int alloc5 = 0 ;
- char *kwnames[] = {
- "type","wkt","wkb","gml", NULL
- };
- OGRGeometryShadow *result = 0 ;
-
- if ((argc < 0) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- if (argc > 0) {
- {
- /* %typemap(in) CPLErr */
- arg1 = (OGRwkbGeometryType) NUM2INT(argv[0]);
- }
- }
- if (argc > 1) {
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","OGRGeometryShadow", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- }
- if (argc > 2) {
- res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, &size3, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "int","OGRGeometryShadow", 3, argv[2] ));
- }
- arg4 = reinterpret_cast< char * >(buf3) ;
- arg3 = static_cast< int >(size3 - 1) ;
- }
- if (argc > 3) {
- res5 = SWIG_AsCharPtrAndSize(argv[3], &buf5, NULL, &alloc5);
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char *","OGRGeometryShadow", 5, argv[3] ));
- }
- arg5 = reinterpret_cast< char * >(buf5);
- }
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)new_OGRGeometryShadow(arg1,arg2,arg3,arg4,arg5);
- DATA_PTR(self) = result;
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
- return self;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.export_to_wkt
-
- call-seq:
- export_to_wkt -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_export_to_wkt(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- char **arg2 = (char **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *argout2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (char **argout2) ( char *argout2=0 ) */
- arg2 = &argout2;
- }
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","ExportToWkt", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRErr)OGRGeometryShadow_ExportToWkt(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(argout) (char **argout) */
- VALUE outArg;
- if ( arg2 ) {
- outArg = rb_str_new2( *arg2 );
- }
- else {
- outArg = Qnil;
- }
-
- vresult = SWIG_Ruby_AppendOutput(vresult, outArg);
- }
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.export_to_wkb
-
- call-seq:
- export_to_wkb(OGRwkbByteOrder byte_order=WKBXDR) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_export_to_wkb(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- int *arg2 = (int *) 0 ;
- char **arg3 = (char **) 0 ;
- OGRwkbByteOrder arg4 = (OGRwkbByteOrder) wkbXDR ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int nLen2 = 0 ;
- char *pBuf2 = 0 ;
- char *kwnames[] = {
- "self","byte_order", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (int *nLen2, char **pBuf2 ) ( int nLen2 = 0, char *pBuf2 = 0 ) */
- arg2 = &nLen2;
- arg3 = &pBuf2;
- }
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","ExportToWkb", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- if (argc > 0) {
- {
- /* %typemap(in) CPLErr */
- arg4 = (OGRwkbByteOrder) NUM2INT(argv[0]);
- }
- }
- {
- CPLErrorReset();
- result = (OGRErr)OGRGeometryShadow_ExportToWkb(arg1,arg2,arg3,arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(argout) (int *nLen, char **pBuf ) */
- vresult = rb_str_new(*arg3, *arg2);
- }
- {
- /* %typemap(freearg) (int *nLen, char **pBuf ) */
- if( *arg3 ) {
- free( *arg3 );
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- {
- /* %typemap(freearg) (int *nLen, char **pBuf ) */
- if( *arg3 ) {
- free( *arg3 );
- }
- }
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.export_to_gml
-
- call-seq:
- export_to_gml -> char
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_export_to_gml(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","ExportToGML", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)OGRGeometryShadow_ExportToGML(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.export_to_kml
-
- call-seq:
- export_to_kml(char altitude_mode=nil) -> char
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_export_to_kml(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- char *arg2 = (char *) NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","ExportToKML", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- if (argc > 0) {
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ExportToKML", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- }
- {
- CPLErrorReset();
- result = (char *)OGRGeometryShadow_ExportToKML(arg1,(char const *)arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.export_to_json
-
- call-seq:
- export_to_json -> char
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_export_to_json(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","ExportToJson", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)OGRGeometryShadow_ExportToJson(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.add_point
-
- call-seq:
- add_point(double x, double y, double z=0)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_add_point(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 = (double) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- char *kwnames[] = {
- "self","x","y","z", NULL
- };
-
- if ((argc < 2) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","AddPoint", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","AddPoint", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","AddPoint", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- if (argc > 2) {
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","AddPoint", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- }
- {
- CPLErrorReset();
- OGRGeometryShadow_AddPoint(arg1,arg2,arg3,arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.add_point_2d
-
- call-seq:
- add_point_2d(double x, double y)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_add_point_2d(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","AddPoint_2D", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","AddPoint_2D", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","AddPoint_2D", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- {
- CPLErrorReset();
- OGRGeometryShadow_AddPoint_2D(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.add_geometry_directly
-
- call-seq:
- add_geometry_directly(Geometry other_disown) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_add_geometry_directly(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","AddGeometryDirectly", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_DISOWN | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","AddGeometryDirectly", 2, argv[0] ));
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRErr)OGRGeometryShadow_AddGeometryDirectly(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.add_geometry
-
- call-seq:
- add_geometry(Geometry other) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_add_geometry(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","AddGeometry", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","AddGeometry", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRErr)OGRGeometryShadow_AddGeometry(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.clone
-
- call-seq:
- clone -> Geometry
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_clone(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Clone", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)OGRGeometryShadow_Clone(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.get_geometry_type
-
- call-seq:
- get_geometry_type -> OGRwkbGeometryType
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_get_geometry_type(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRwkbGeometryType result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","GetGeometryType", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRwkbGeometryType)OGRGeometryShadow_GetGeometryType(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.get_geometry_name
-
- call-seq:
- get_geometry_name -> char
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_get_geometry_name(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","GetGeometryName", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (char *)OGRGeometryShadow_GetGeometryName(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.length
-
- call-seq:
- length -> double
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_length(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Length", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (double)OGRGeometryShadow_Length(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.area
-
- call-seq:
- area -> double
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_area(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Area", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (double)OGRGeometryShadow_Area(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.get_area
-
- call-seq:
- get_area -> double
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_get_area(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","GetArea", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (double)OGRGeometryShadow_GetArea(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.get_point_count
-
- call-seq:
- get_point_count -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_get_point_count(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","GetPointCount", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRGeometryShadow_GetPointCount(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.get_x
-
- call-seq:
- get_x(int point=0) -> double
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_get_x(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- int arg2 = (int) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- char *kwnames[] = {
- "self","point", NULL
- };
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","GetX", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- if (argc > 0) {
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetX", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- }
- {
- CPLErrorReset();
- result = (double)OGRGeometryShadow_GetX(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.get_y
-
- call-seq:
- get_y(int point=0) -> double
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_get_y(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- int arg2 = (int) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- char *kwnames[] = {
- "self","point", NULL
- };
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","GetY", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- if (argc > 0) {
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetY", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- }
- {
- CPLErrorReset();
- result = (double)OGRGeometryShadow_GetY(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.get_z
-
- call-seq:
- get_z(int point=0) -> double
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_get_z(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- int arg2 = (int) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- char *kwnames[] = {
- "self","point", NULL
- };
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","GetZ", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- if (argc > 0) {
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetZ", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- }
- {
- CPLErrorReset();
- result = (double)OGRGeometryShadow_GetZ(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.get_point
-
- call-seq:
- get_point(int iPoint=0)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_get_point(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- int arg2 = (int) 0 ;
- double *arg3 = (double *) (double *)NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- double argout3[3] ;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double argout3[ANY]) */
- arg3 = argout3;
- }
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","GetPoint", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- if (argc > 0) {
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetPoint", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- }
- {
- CPLErrorReset();
- OGRGeometryShadow_GetPoint(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(argout) (double argout[ANY]) */
- VALUE outArr = rb_ary_new();
-
- for(int i=0; i<3; i++)
- {
- VALUE value = rb_float_new((arg3)[i]);
- rb_ary_push(outArr, value);
- }
-
- /* Add the output to the result */
- vresult = SWIG_Ruby_AppendOutput(vresult, outArr);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.get_point_2d
-
- call-seq:
- get_point_2d(int iPoint=0)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_get_point_2d(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- int arg2 = (int) 0 ;
- double *arg3 = (double *) (double *)NULL ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- double argout3[2] ;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double argout3[ANY]) */
- arg3 = argout3;
- }
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","GetPoint_2D", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- if (argc > 0) {
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetPoint_2D", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- }
- {
- CPLErrorReset();
- OGRGeometryShadow_GetPoint_2D(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(argout) (double argout[ANY]) */
- VALUE outArr = rb_ary_new();
-
- for(int i=0; i<2; i++)
- {
- VALUE value = rb_float_new((arg3)[i]);
- rb_ary_push(outArr, value);
- }
-
- /* Add the output to the result */
- vresult = SWIG_Ruby_AppendOutput(vresult, outArr);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.get_geometry_count
-
- call-seq:
- get_geometry_count -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_get_geometry_count(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","GetGeometryCount", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRGeometryShadow_GetGeometryCount(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.set_point
-
- call-seq:
- set_point(int point, double x, double y, double z=0)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_set_point(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- int arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 = (double) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- char *kwnames[] = {
- "self","point","x","y","z", NULL
- };
-
- if ((argc < 3) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","SetPoint", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetPoint", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetPoint", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetPoint", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- if (argc > 3) {
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetPoint", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- }
- {
- CPLErrorReset();
- OGRGeometryShadow_SetPoint(arg1,arg2,arg3,arg4,arg5);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.set_point_2d
-
- call-seq:
- set_point_2d(int point, double x, double y)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_set_point_2d(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- int arg2 ;
- double arg3 ;
- double arg4 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- char *kwnames[] = {
- "self","point","x","y", NULL
- };
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","SetPoint_2D", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetPoint_2D", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetPoint_2D", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetPoint_2D", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- {
- CPLErrorReset();
- OGRGeometryShadow_SetPoint_2D(arg1,arg2,arg3,arg4);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.get_geometry_ref
-
- call-seq:
- get_geometry_ref(int geom) -> Geometry
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_get_geometry_ref(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","GetGeometryRef", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetGeometryRef", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)OGRGeometryShadow_GetGeometryRef(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.simplify
-
- call-seq:
- simplify(double tolerance) -> Geometry
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_simplify(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Simplify", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","Simplify", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)OGRGeometryShadow_Simplify(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.boundary
-
- call-seq:
- boundary -> Geometry
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_boundary(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Boundary", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)OGRGeometryShadow_Boundary(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.get_boundary
-
- call-seq:
- get_boundary -> Geometry
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_get_boundary(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","GetBoundary", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)OGRGeometryShadow_GetBoundary(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.convex_hull
-
- call-seq:
- convex_hull -> Geometry
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_convex_hull(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","ConvexHull", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)OGRGeometryShadow_ConvexHull(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.buffer
-
- call-seq:
- buffer(double distance, int quadsecs=30) -> Geometry
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_buffer(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- double arg2 ;
- int arg3 = (int) 30 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- char *kwnames[] = {
- "self","distance","quadsecs", NULL
- };
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Buffer", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","Buffer", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- if (argc > 1) {
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","Buffer", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- }
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)OGRGeometryShadow_Buffer(arg1,arg2,arg3);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.intersection
-
- call-seq:
- intersection(Geometry other) -> Geometry
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_intersection(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Intersection", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Intersection", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)OGRGeometryShadow_Intersection(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.union
-
- call-seq:
- union(Geometry other) -> Geometry
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_union(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Union", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Union", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)OGRGeometryShadow_Union(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.union_cascaded
-
- call-seq:
- union_cascaded -> Geometry
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_union_cascaded(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","UnionCascaded", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)OGRGeometryShadow_UnionCascaded(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.difference
-
- call-seq:
- difference(Geometry other) -> Geometry
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_difference(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Difference", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Difference", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)OGRGeometryShadow_Difference(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.sym_difference
-
- call-seq:
- sym_difference(Geometry other) -> Geometry
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_sym_difference(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","SymDifference", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","SymDifference", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)OGRGeometryShadow_SymDifference(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.symmetric_difference
-
- call-seq:
- symmetric_difference(Geometry other) -> Geometry
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_symmetric_difference(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","SymmetricDifference", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","SymmetricDifference", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)OGRGeometryShadow_SymmetricDifference(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.distance
-
- call-seq:
- distance(Geometry other) -> double
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_distance(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Distance", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Distance", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (double)OGRGeometryShadow_Distance(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.empty
-
- call-seq:
- empty
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_empty(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Empty", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- OGRGeometryShadow_Empty(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.is_empty
-
- call-seq:
- is_empty -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_is_empty(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","IsEmpty", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (bool)OGRGeometryShadow_IsEmpty(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.is_valid
-
- call-seq:
- is_valid -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_is_valid(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","IsValid", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (bool)OGRGeometryShadow_IsValid(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.is_simple
-
- call-seq:
- is_simple -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_is_simple(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","IsSimple", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (bool)OGRGeometryShadow_IsSimple(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.is_ring
-
- call-seq:
- is_ring -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_is_ring(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","IsRing", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (bool)OGRGeometryShadow_IsRing(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.intersects
-
- call-seq:
- intersects(Geometry other) -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_intersects(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Intersects", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Intersects", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (bool)OGRGeometryShadow_Intersects(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.intersect
-
- call-seq:
- intersect(Geometry other) -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_intersect(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Intersect", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Intersect", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (bool)OGRGeometryShadow_Intersect(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.equals
-
- call-seq:
- equals(Geometry other) -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_equals(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Equals", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Equals", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (bool)OGRGeometryShadow_Equals(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.equal
-
- call-seq:
- equal(Geometry other) -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_equal(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Equal", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Equal", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (bool)OGRGeometryShadow_Equal(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.disjoint
-
- call-seq:
- disjoint(Geometry other) -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_disjoint(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Disjoint", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Disjoint", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (bool)OGRGeometryShadow_Disjoint(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.touches
-
- call-seq:
- touches(Geometry other) -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_touches(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Touches", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Touches", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (bool)OGRGeometryShadow_Touches(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.crosses
-
- call-seq:
- crosses(Geometry other) -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_crosses(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Crosses", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Crosses", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (bool)OGRGeometryShadow_Crosses(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.within
-
- call-seq:
- within(Geometry other) -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_within(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Within", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Within", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (bool)OGRGeometryShadow_Within(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.contains
-
- call-seq:
- contains(Geometry other) -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_contains(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Contains", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Contains", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (bool)OGRGeometryShadow_Contains(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.overlaps
-
- call-seq:
- overlaps(Geometry other) -> bool
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_overlaps(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OGRGeometryShadow *arg2 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- bool result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Overlaps", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Overlaps", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OGRGeometryShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (bool)OGRGeometryShadow_Overlaps(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_bool(static_cast< bool >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.transform_to
-
- call-seq:
- transform_to(SpatialReference reference) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_transform_to(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","TransformTo", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","TransformTo", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRErr)OGRGeometryShadow_TransformTo(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.transform
-
- call-seq:
- transform(CoordinateTransformation trans) -> OGRErr
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_transform(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OSRCoordinateTransformationShadow *arg2 = (OSRCoordinateTransformationShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Transform", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OSRCoordinateTransformationShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OSRCoordinateTransformationShadow *","Transform", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OSRCoordinateTransformationShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRErr)OGRGeometryShadow_Transform(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.get_spatial_reference
-
- call-seq:
- get_spatial_reference -> SpatialReference
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_get_spatial_reference(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OSRSpatialReferenceShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","GetSpatialReference", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OSRSpatialReferenceShadow *)OGRGeometryShadow_GetSpatialReference(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OSRSpatialReferenceShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.assign_spatial_reference
-
- call-seq:
- assign_spatial_reference(SpatialReference reference)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_assign_spatial_reference(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","AssignSpatialReference", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","AssignSpatialReference", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp2);
- {
- CPLErrorReset();
- OGRGeometryShadow_AssignSpatialReference(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.close_rings
-
- call-seq:
- close_rings
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_close_rings(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","CloseRings", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- OGRGeometryShadow_CloseRings(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.flatten_to_2d
-
- call-seq:
- flatten_to_2d
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_flatten_to_2d(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","FlattenTo2D", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- OGRGeometryShadow_FlattenTo2D(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.segmentize
-
- call-seq:
- segmentize(double dfMaxLength)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_segmentize(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- double arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Segmentize", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","Segmentize", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- {
- CPLErrorReset();
- OGRGeometryShadow_Segmentize(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.get_envelope
-
- call-seq:
- get_envelope
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_get_envelope(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- double *arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double argout2[4] ;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double argout2[ANY]) */
- arg2 = argout2;
- }
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","GetEnvelope", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- OGRGeometryShadow_GetEnvelope(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(argout) (double argout[ANY]) */
- VALUE outArr = rb_ary_new();
-
- for(int i=0; i<4; i++)
- {
- VALUE value = rb_float_new((arg2)[i]);
- rb_ary_push(outArr, value);
- }
-
- /* Add the output to the result */
- vresult = SWIG_Ruby_AppendOutput(vresult, outArr);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.centroid
-
- call-seq:
- centroid -> Geometry
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_centroid(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRGeometryShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","Centroid", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (OGRGeometryShadow *)OGRGeometryShadow_Centroid(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRGeometryShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.wkb_size
-
- call-seq:
- wkb_size -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_wkb_size(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","WkbSize", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRGeometryShadow_WkbSize(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.get_coordinate_dimension
-
- call-seq:
- get_coordinate_dimension -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_get_coordinate_dimension(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","GetCoordinateDimension", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRGeometryShadow_GetCoordinateDimension(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.set_coordinate_dimension
-
- call-seq:
- set_coordinate_dimension(int dimension)
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_set_coordinate_dimension(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","SetCoordinateDimension", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetCoordinateDimension", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- {
- CPLErrorReset();
- OGRGeometryShadow_SetCoordinateDimension(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr::Geometry.get_dimension
-
- call-seq:
- get_dimension -> int
-
-An instance method.
-
-*/
-SWIGINTERN VALUE
-_wrap_Geometry_get_dimension(int argc, VALUE *argv, VALUE self) {
- OGRGeometryShadow *arg1 = (OGRGeometryShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OGRGeometryShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OGRGeometryShadow *","GetDimension", 1, self ));
- }
- arg1 = reinterpret_cast< OGRGeometryShadow * >(argp1);
- {
- CPLErrorReset();
- result = (int)OGRGeometryShadow_GetDimension(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.get_driver_count
-
- call-seq:
- get_driver_count -> int
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_get_driver_count(int argc, VALUE *argv, VALUE self) {
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- result = (int)OGRGetDriverCount();
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.get_open_dscount
-
- call-seq:
- get_open_dscount -> int
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_get_open_dscount(int argc, VALUE *argv, VALUE self) {
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- result = (int)OGRGetOpenDSCount();
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.set_generate_db2_v72_byte_order
-
- call-seq:
- set_generate_db2_v72_byte_order(int bGenerate_DB2_V72_BYTE_ORDER) -> OGRErr
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_set_generate_db2_v72_byte_order(int argc, VALUE *argv, VALUE self) {
- int arg1 ;
- int val1 ;
- int ecode1 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- ecode1 = SWIG_AsVal_int(argv[0], &val1);
- if (!SWIG_IsOK(ecode1)) {
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","OGRSetGenerate_DB2_V72_BYTE_ORDER", 1, argv[0] ));
- }
- arg1 = static_cast< int >(val1);
- {
- CPLErrorReset();
- result = (OGRErr)OGRSetGenerate_DB2_V72_BYTE_ORDER(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.register_all
-
- call-seq:
- register_all
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_register_all(int argc, VALUE *argv, VALUE self) {
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- {
- CPLErrorReset();
- OGRRegisterAll();
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.GeometryTypeToName
-
- call-seq:
- GeometryTypeToName(OGRwkbGeometryType eType) -> char
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_GeometryTypeToName(int argc, VALUE *argv, VALUE self) {
- OGRwkbGeometryType arg1 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- /* %typemap(in) CPLErr */
- arg1 = (OGRwkbGeometryType) NUM2INT(argv[0]);
- }
- {
- CPLErrorReset();
- result = (char *)OGRGeometryTypeToName(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.GetFieldTypeName
-
- call-seq:
- GetFieldTypeName(OGRFieldType type) -> char
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_GetFieldTypeName(int argc, VALUE *argv, VALUE self) {
- OGRFieldType arg1 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- /* %typemap(in) CPLErr */
- arg1 = (OGRFieldType) NUM2INT(argv[0]);
- }
- {
- CPLErrorReset();
- result = (char *)OGR_GetFieldTypeName(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.get_open_ds
-
- call-seq:
- get_open_ds(int ds_number) -> DataSource
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_get_open_ds(int argc, VALUE *argv, VALUE self) {
- int arg1 ;
- int val1 ;
- int ecode1 = 0 ;
- OGRDataSourceShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- ecode1 = SWIG_AsVal_int(argv[0], &val1);
- if (!SWIG_IsOK(ecode1)) {
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","GetOpenDS", 1, argv[0] ));
- }
- arg1 = static_cast< int >(val1);
- {
- CPLErrorReset();
- result = (OGRDataSourceShadow *)GetOpenDS(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRDataSourceShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.open
-
- call-seq:
- open(char filename, int update=0) -> DataSource
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_open(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- int arg2 = (int) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- char *kwnames[] = {
- "filename","update", NULL
- };
- OGRDataSourceShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","Open", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- if (argc > 1) {
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","Open", 2, argv[1] ));
- }
- arg2 = static_cast< int >(val2);
- }
- {
- CPLErrorReset();
- result = (OGRDataSourceShadow *)Open((char const *)arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRDataSourceShadow, SWIG_POINTER_OWN | 0 );
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.open_shared
-
- call-seq:
- open_shared(char utf8_path, int update=0) -> DataSource
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_open_shared(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- int arg2 = (int) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- char *kwnames[] = {
- "utf8_path","update", NULL
- };
- OGRDataSourceShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","OpenShared", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- if (argc > 1) {
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","OpenShared", 2, argv[1] ));
- }
- arg2 = static_cast< int >(val2);
- }
- {
- CPLErrorReset();
- result = (OGRDataSourceShadow *)OpenShared((char const *)arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRDataSourceShadow, SWIG_POINTER_OWN | 0 );
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.get_driver_by_name
-
- call-seq:
- get_driver_by_name(char name) -> Driver
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_get_driver_by_name(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- OGRDriverShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","GetDriverByName", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- {
- CPLErrorReset();
- result = (OGRDriverShadow *)GetDriverByName((char const *)arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRDriverShadow, 0 | 0 );
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.get_driver
-
- call-seq:
- get_driver(int driver_number) -> Driver
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_get_driver(int argc, VALUE *argv, VALUE self) {
- int arg1 ;
- int val1 ;
- int ecode1 = 0 ;
- OGRDriverShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- ecode1 = SWIG_AsVal_int(argv[0], &val1);
- if (!SWIG_IsOK(ecode1)) {
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","GetDriver", 1, argv[0] ));
- }
- arg1 = static_cast< int >(val1);
- {
- CPLErrorReset();
- result = (OGRDriverShadow *)GetDriver(arg1);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OGRDriverShadow, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-
-/*
- Document-method: Gdal::Ogr.general_cmd_line_processor
-
- call-seq:
- general_cmd_line_processor(char papszArgv, int nOptions=0) -> char
-
-A module function.
-
-*/
-SWIGINTERN VALUE
-_wrap_general_cmd_line_processor(int argc, VALUE *argv, VALUE self) {
- char **arg1 = (char **) 0 ;
- int arg2 = (int) 0 ;
- int val2 ;
- int ecode2 = 0 ;
- char **result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[0], T_ARRAY);
-
- int size = RARRAY(argv[0])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[0], i);
- char *pszItem = StringValuePtr(item);
- arg1 = CSLAddString( arg1, pszItem );
- }
- }
- if (argc > 1) {
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GeneralCmdLineProcessor", 2, argv[1] ));
- }
- arg2 = static_cast< int >(val2);
- }
- {
- CPLErrorReset();
- result = (char **)GeneralCmdLineProcessor(arg1,arg2);
- CPLErr eclass = CPLGetLastErrorType();
- if ( eclass == CE_Failure || eclass == CE_Fatal ) {
- SWIG_exception( SWIG_RuntimeError, CPLGetLastErrorMsg() );
-
- }
-
-
-
-
-
-
-
-
-
-
-
- }
- {
- /* %typemap(out) char **options */
-
- char **stringarray = result;
- if ( stringarray == NULL ) {
- vresult = Qnil;
- }
- else {
- int len = CSLCount( stringarray );
- vresult = rb_ary_new2( len );
- for ( int i = 0; i < len; ++i, ++stringarray ) {
- VALUE nm = rb_str_new2( *stringarray );
- rb_ary_push(vresult, nm);
- }
- }
- }
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg1 );
- }
- return vresult;
-fail:
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg1 );
- }
- return Qnil;
-}
-
-
-
-/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
-
-static swig_type_info _swigt__p_GIntBig = {"_p_GIntBig", "GIntBig *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_OGRDataSourceShadow = {"_p_OGRDataSourceShadow", "OGRDataSourceShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_OGRDriverShadow = {"_p_OGRDriverShadow", "OGRDriverShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_OGRFeatureDefnShadow = {"_p_OGRFeatureDefnShadow", "OGRFeatureDefnShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_OGRFeatureShadow = {"_p_OGRFeatureShadow", "OGRFeatureShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_OGRFieldDefnShadow = {"_p_OGRFieldDefnShadow", "OGRFieldDefnShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_OGRGeometryShadow = {"_p_OGRGeometryShadow", "OGRGeometryShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_OGRLayerShadow = {"_p_OGRLayerShadow", "OGRLayerShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_OSRCoordinateTransformationShadow = {"_p_OSRCoordinateTransformationShadow", "OSRCoordinateTransformationShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_OSRSpatialReferenceShadow = {"_p_OSRSpatialReferenceShadow", "OSRSpatialReferenceShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_char = {"_p_char", "char *|retStringAndCPLFree *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_int = {"_p_int", "OGRFieldType *|int *|OGRwkbGeometryType *|OGRJustification *|OGRwkbByteOrder *|OGRErr *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_p_double = {"_p_p_double", "double **", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_p_int = {"_p_p_int", "int **", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_p_p_char = {"_p_p_p_char", "char ***", 0, 0, (void*)0, 0};
-
-static swig_type_info *swig_type_initial[] = {
- &_swigt__p_GIntBig,
- &_swigt__p_OGRDataSourceShadow,
- &_swigt__p_OGRDriverShadow,
- &_swigt__p_OGRFeatureDefnShadow,
- &_swigt__p_OGRFeatureShadow,
- &_swigt__p_OGRFieldDefnShadow,
- &_swigt__p_OGRGeometryShadow,
- &_swigt__p_OGRLayerShadow,
- &_swigt__p_OSRCoordinateTransformationShadow,
- &_swigt__p_OSRSpatialReferenceShadow,
- &_swigt__p_char,
- &_swigt__p_double,
- &_swigt__p_int,
- &_swigt__p_p_char,
- &_swigt__p_p_double,
- &_swigt__p_p_int,
- &_swigt__p_p_p_char,
-};
-
-static swig_cast_info _swigc__p_GIntBig[] = { {&_swigt__p_GIntBig, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_OGRDataSourceShadow[] = { {&_swigt__p_OGRDataSourceShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_OGRDriverShadow[] = { {&_swigt__p_OGRDriverShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_OGRFeatureDefnShadow[] = { {&_swigt__p_OGRFeatureDefnShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_OGRFeatureShadow[] = { {&_swigt__p_OGRFeatureShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_OGRFieldDefnShadow[] = { {&_swigt__p_OGRFieldDefnShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_OGRGeometryShadow[] = { {&_swigt__p_OGRGeometryShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_OGRLayerShadow[] = { {&_swigt__p_OGRLayerShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_OSRCoordinateTransformationShadow[] = { {&_swigt__p_OSRCoordinateTransformationShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_OSRSpatialReferenceShadow[] = { {&_swigt__p_OSRSpatialReferenceShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_p_double[] = { {&_swigt__p_p_double, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_p_int[] = { {&_swigt__p_p_int, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_p_p_char[] = { {&_swigt__p_p_p_char, 0, 0, 0},{0, 0, 0, 0}};
-
-static swig_cast_info *swig_cast_initial[] = {
- _swigc__p_GIntBig,
- _swigc__p_OGRDataSourceShadow,
- _swigc__p_OGRDriverShadow,
- _swigc__p_OGRFeatureDefnShadow,
- _swigc__p_OGRFeatureShadow,
- _swigc__p_OGRFieldDefnShadow,
- _swigc__p_OGRGeometryShadow,
- _swigc__p_OGRLayerShadow,
- _swigc__p_OSRCoordinateTransformationShadow,
- _swigc__p_OSRSpatialReferenceShadow,
- _swigc__p_char,
- _swigc__p_double,
- _swigc__p_int,
- _swigc__p_p_char,
- _swigc__p_p_double,
- _swigc__p_p_int,
- _swigc__p_p_p_char,
-};
-
-
-/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
-
-/* -----------------------------------------------------------------------------
- * Type initialization:
- * This problem is tough by the requirement that no dynamic
- * memory is used. Also, since swig_type_info structures store pointers to
- * swig_cast_info structures and swig_cast_info structures store pointers back
- * to swig_type_info structures, we need some lookup code at initialization.
- * The idea is that swig generates all the structures that are needed.
- * The runtime then collects these partially filled structures.
- * The SWIG_InitializeModule function takes these initial arrays out of
- * swig_module, and does all the lookup, filling in the swig_module.types
- * array with the correct data and linking the correct swig_cast_info
- * structures together.
- *
- * The generated swig_type_info structures are assigned staticly to an initial
- * array. We just loop through that array, and handle each type individually.
- * First we lookup if this type has been already loaded, and if so, use the
- * loaded structure instead of the generated one. Then we have to fill in the
- * cast linked list. The cast data is initially stored in something like a
- * two-dimensional array. Each row corresponds to a type (there are the same
- * number of rows as there are in the swig_type_initial array). Each entry in
- * a column is one of the swig_cast_info structures for that type.
- * The cast_initial array is actually an array of arrays, because each row has
- * a variable number of columns. So to actually build the cast linked list,
- * we find the array of casts associated with the type, and loop through it
- * adding the casts to the list. The one last trick we need to do is making
- * sure the type pointer in the swig_cast_info struct is correct.
- *
- * First off, we lookup the cast->type name to see if it is already loaded.
- * There are three cases to handle:
- * 1) If the cast->type has already been loaded AND the type we are adding
- * casting info to has not been loaded (it is in this module), THEN we
- * replace the cast->type pointer with the type pointer that has already
- * been loaded.
- * 2) If BOTH types (the one we are adding casting info to, and the
- * cast->type) are loaded, THEN the cast info has already been loaded by
- * the previous module so we just ignore it.
- * 3) Finally, if cast->type has not already been loaded, then we add that
- * swig_cast_info to the linked list (because the cast->type) pointer will
- * be correct.
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#if 0
-} /* c-mode */
-#endif
-#endif
-
-#if 0
-#define SWIGRUNTIME_DEBUG
-#endif
-
-
-SWIGRUNTIME void
-SWIG_InitializeModule(void *clientdata) {
- size_t i;
- swig_module_info *module_head, *iter;
- int found, init;
-
- clientdata = clientdata;
-
- /* check to see if the circular list has been setup, if not, set it up */
- if (swig_module.next==0) {
- /* Initialize the swig_module */
- swig_module.type_initial = swig_type_initial;
- swig_module.cast_initial = swig_cast_initial;
- swig_module.next = &swig_module;
- init = 1;
- } else {
- init = 0;
- }
-
- /* Try and load any already created modules */
- module_head = SWIG_GetModule(clientdata);
- if (!module_head) {
- /* This is the first module loaded for this interpreter */
- /* so set the swig module into the interpreter */
- SWIG_SetModule(clientdata, &swig_module);
- module_head = &swig_module;
- } else {
- /* the interpreter has loaded a SWIG module, but has it loaded this one? */
- found=0;
- iter=module_head;
- do {
- if (iter==&swig_module) {
- found=1;
- break;
- }
- iter=iter->next;
- } while (iter!= module_head);
-
- /* if the is found in the list, then all is done and we may leave */
- if (found) return;
- /* otherwise we must add out module into the list */
- swig_module.next = module_head->next;
- module_head->next = &swig_module;
- }
-
- /* When multiple interpeters are used, a module could have already been initialized in
- a different interpreter, but not yet have a pointer in this interpreter.
- In this case, we do not want to continue adding types... everything should be
- set up already */
- if (init == 0) return;
-
- /* Now work on filling in swig_module.types */
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: size %d\n", swig_module.size);
-#endif
- for (i = 0; i < swig_module.size; ++i) {
- swig_type_info *type = 0;
- swig_type_info *ret;
- swig_cast_info *cast;
-
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
-#endif
-
- /* if there is another module already loaded */
- if (swig_module.next != &swig_module) {
- type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
- }
- if (type) {
- /* Overwrite clientdata field */
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: found type %s\n", type->name);
-#endif
- if (swig_module.type_initial[i]->clientdata) {
- type->clientdata = swig_module.type_initial[i]->clientdata;
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
-#endif
- }
- } else {
- type = swig_module.type_initial[i];
- }
-
- /* Insert casting types */
- cast = swig_module.cast_initial[i];
- while (cast->type) {
-
- /* Don't need to add information already in the list */
- ret = 0;
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
-#endif
- if (swig_module.next != &swig_module) {
- ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
-#ifdef SWIGRUNTIME_DEBUG
- if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
-#endif
- }
- if (ret) {
- if (type == swig_module.type_initial[i]) {
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
-#endif
- cast->type = ret;
- ret = 0;
- } else {
- /* Check for casting already in the list */
- swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
-#ifdef SWIGRUNTIME_DEBUG
- if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
-#endif
- if (!ocast) ret = 0;
- }
- }
-
- if (!ret) {
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
-#endif
- if (type->cast) {
- type->cast->prev = cast;
- cast->next = type->cast;
- }
- type->cast = cast;
- }
- cast++;
- }
- /* Set entry in modules->types array equal to the type */
- swig_module.types[i] = type;
- }
- swig_module.types[i] = 0;
-
-#ifdef SWIGRUNTIME_DEBUG
- printf("**** SWIG_InitializeModule: Cast List ******\n");
- for (i = 0; i < swig_module.size; ++i) {
- int j = 0;
- swig_cast_info *cast = swig_module.cast_initial[i];
- printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
- while (cast->type) {
- printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
- cast++;
- ++j;
- }
- printf("---- Total casts: %d\n",j);
- }
- printf("**** SWIG_InitializeModule: Cast List ******\n");
-#endif
-}
-
-/* This function will propagate the clientdata field of type to
-* any new swig_type_info structures that have been added into the list
-* of equivalent types. It is like calling
-* SWIG_TypeClientData(type, clientdata) a second time.
-*/
-SWIGRUNTIME void
-SWIG_PropagateClientData(void) {
- size_t i;
- swig_cast_info *equiv;
- static int init_run = 0;
-
- if (init_run) return;
- init_run = 1;
-
- for (i = 0; i < swig_module.size; i++) {
- if (swig_module.types[i]->clientdata) {
- equiv = swig_module.types[i]->cast;
- while (equiv) {
- if (!equiv->converter) {
- if (equiv->type && !equiv->type->clientdata)
- SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
- }
- equiv = equiv->next;
- }
- }
- }
-}
-
-#ifdef __cplusplus
-#if 0
-{ /* c-mode */
-#endif
-}
-#endif
-
-/*
-
-*/
-#ifdef __cplusplus
-extern "C"
-#endif
-SWIGEXPORT void Init_ogr(void) {
- size_t i;
-
- SWIG_InitRuntime();
- mOgr = rb_define_module("Gdal");
- mOgr = rb_define_module_under(mOgr, "Ogr");
-
- SWIG_InitializeModule(0);
- for (i = 0; i < swig_module.size; i++) {
- SWIG_define_class(swig_module.types[i]);
- }
-
- SWIG_RubyInitializeTrackings();
- rb_define_const(mOgr, "WKB25DBIT", SWIG_From_int(static_cast< int >(0x80000000)));
- rb_define_const(mOgr, "WKB25BIT", SWIG_From_int(static_cast< int >(0x80000000)));
- rb_define_const(mOgr, "WKBUNKNOWN", SWIG_From_int(static_cast< int >(0)));
- rb_define_const(mOgr, "WKBPOINT", SWIG_From_int(static_cast< int >(1)));
- rb_define_const(mOgr, "WKBLINESTRING", SWIG_From_int(static_cast< int >(2)));
- rb_define_const(mOgr, "WKBPOLYGON", SWIG_From_int(static_cast< int >(3)));
- rb_define_const(mOgr, "WKBMULTIPOINT", SWIG_From_int(static_cast< int >(4)));
- rb_define_const(mOgr, "WKBMULTILINESTRING", SWIG_From_int(static_cast< int >(5)));
- rb_define_const(mOgr, "WKBMULTIPOLYGON", SWIG_From_int(static_cast< int >(6)));
- rb_define_const(mOgr, "WKBGEOMETRYCOLLECTION", SWIG_From_int(static_cast< int >(7)));
- rb_define_const(mOgr, "WKBNONE", SWIG_From_int(static_cast< int >(100)));
- rb_define_const(mOgr, "WKBLINEARRING", SWIG_From_int(static_cast< int >(101)));
- rb_define_const(mOgr, "WKBPOINT25D", SWIG_From_int(static_cast< int >(wkbPoint+wkb25DBit)));
- rb_define_const(mOgr, "WKBLINESTRING25D", SWIG_From_int(static_cast< int >(wkbLineString+wkb25DBit)));
- rb_define_const(mOgr, "WKBPOLYGON25D", SWIG_From_int(static_cast< int >(wkbPolygon+wkb25DBit)));
- rb_define_const(mOgr, "WKBMULTIPOINT25D", SWIG_From_int(static_cast< int >(wkbMultiPoint+wkb25DBit)));
- rb_define_const(mOgr, "WKBMULTILINESTRING25D", SWIG_From_int(static_cast< int >(wkbMultiLineString+wkb25DBit)));
- rb_define_const(mOgr, "WKBMULTIPOLYGON25D", SWIG_From_int(static_cast< int >(wkbMultiPolygon+wkb25DBit)));
- rb_define_const(mOgr, "WKBGEOMETRYCOLLECTION25D", SWIG_From_int(static_cast< int >(wkbGeometryCollection+wkb25DBit)));
- rb_define_const(mOgr, "OFTINTEGER", SWIG_From_int(static_cast< int >(0)));
- rb_define_const(mOgr, "OFTINTEGERLIST", SWIG_From_int(static_cast< int >(1)));
- rb_define_const(mOgr, "OFTREAL", SWIG_From_int(static_cast< int >(2)));
- rb_define_const(mOgr, "OFTREALLIST", SWIG_From_int(static_cast< int >(3)));
- rb_define_const(mOgr, "OFTSTRING", SWIG_From_int(static_cast< int >(4)));
- rb_define_const(mOgr, "OFTSTRINGLIST", SWIG_From_int(static_cast< int >(5)));
- rb_define_const(mOgr, "OFTWIDESTRING", SWIG_From_int(static_cast< int >(6)));
- rb_define_const(mOgr, "OFTWIDESTRINGLIST", SWIG_From_int(static_cast< int >(7)));
- rb_define_const(mOgr, "OFTBINARY", SWIG_From_int(static_cast< int >(8)));
- rb_define_const(mOgr, "OFTDATE", SWIG_From_int(static_cast< int >(9)));
- rb_define_const(mOgr, "OFTTIME", SWIG_From_int(static_cast< int >(10)));
- rb_define_const(mOgr, "OFTDATETIME", SWIG_From_int(static_cast< int >(11)));
- rb_define_const(mOgr, "OJUNDEFINED", SWIG_From_int(static_cast< int >(0)));
- rb_define_const(mOgr, "OJLEFT", SWIG_From_int(static_cast< int >(1)));
- rb_define_const(mOgr, "OJRIGHT", SWIG_From_int(static_cast< int >(2)));
- rb_define_const(mOgr, "WKBXDR", SWIG_From_int(static_cast< int >(0)));
- rb_define_const(mOgr, "WKBNDR", SWIG_From_int(static_cast< int >(1)));
- rb_define_const(mOgr, "NULLFID", SWIG_From_int(static_cast< int >(-1)));
- rb_define_const(mOgr, "OLCRANDOMREAD", SWIG_FromCharPtr("RandomRead"));
- rb_define_const(mOgr, "OLCSEQUENTIALWRITE", SWIG_FromCharPtr("SequentialWrite"));
- rb_define_const(mOgr, "OLCRANDOMWRITE", SWIG_FromCharPtr("RandomWrite"));
- rb_define_const(mOgr, "OLCFASTSPATIALFILTER", SWIG_FromCharPtr("FastSpatialFilter"));
- rb_define_const(mOgr, "OLCFASTFEATURECOUNT", SWIG_FromCharPtr("FastFeatureCount"));
- rb_define_const(mOgr, "OLCFASTGETEXTENT", SWIG_FromCharPtr("FastGetExtent"));
- rb_define_const(mOgr, "OLCCREATEFIELD", SWIG_FromCharPtr("CreateField"));
- rb_define_const(mOgr, "OLCTRANSACTIONS", SWIG_FromCharPtr("Transactions"));
- rb_define_const(mOgr, "OLCDELETEFEATURE", SWIG_FromCharPtr("DeleteFeature"));
- rb_define_const(mOgr, "OLCFASTSETNEXTBYINDEX", SWIG_FromCharPtr("FastSetNextByIndex"));
- rb_define_const(mOgr, "OLCSTRINGSASUTF8", SWIG_FromCharPtr("StringsAsUTF8"));
- rb_define_const(mOgr, "OLCIGNOREFIELDS", SWIG_FromCharPtr("IgnoreFields"));
- rb_define_const(mOgr, "ODSCCREATELAYER", SWIG_FromCharPtr("CreateLayer"));
- rb_define_const(mOgr, "ODSCDELETELAYER", SWIG_FromCharPtr("DeleteLayer"));
- rb_define_const(mOgr, "ODRCCREATEDATASOURCE", SWIG_FromCharPtr("CreateDataSource"));
- rb_define_const(mOgr, "ODRCDELETEDATASOURCE", SWIG_FromCharPtr("DeleteDataSource"));
- rb_define_module_function(mOgr, "use_exceptions", VALUEFUNC(_wrap_use_exceptions), -1);
- rb_define_module_function(mOgr, "dont_use_exceptions", VALUEFUNC(_wrap_dont_use_exceptions), -1);
-
-
- if ( OGRGetDriverCount() == 0 ) {
- OGRRegisterAll();
- }
-
- /* Setup exception handling */
- UseExceptions();
-
- rb_require("gdal/osr");
-
- SwigClassDriver.klass = rb_define_class_under(mOgr, "Driver", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_OGRDriverShadow, (void *) &SwigClassDriver);
- rb_undef_alloc_func(SwigClassDriver.klass);
- rb_define_method(SwigClassDriver.klass, "name", VALUEFUNC(_wrap_Driver_name_get), -1);
- rb_define_method(SwigClassDriver.klass, "create_data_source", VALUEFUNC(_wrap_Driver_create_data_source), -1);
- rb_define_method(SwigClassDriver.klass, "copy_data_source", VALUEFUNC(_wrap_Driver_copy_data_source), -1);
- rb_define_method(SwigClassDriver.klass, "open", VALUEFUNC(_wrap_Driver_open), -1);
- rb_define_method(SwigClassDriver.klass, "delete_data_source", VALUEFUNC(_wrap_Driver_delete_data_source), -1);
- rb_define_method(SwigClassDriver.klass, "test_capability", VALUEFUNC(_wrap_Driver_test_capability), -1);
- rb_define_method(SwigClassDriver.klass, "get_name", VALUEFUNC(_wrap_Driver_get_name), -1);
- rb_define_method(SwigClassDriver.klass, "register", VALUEFUNC(_wrap_Driver_register), -1);
- rb_define_method(SwigClassDriver.klass, "deregister", VALUEFUNC(_wrap_Driver_deregister), -1);
- SwigClassDriver.mark = 0;
- SwigClassDriver.trackObjects = 0;
-
- SwigClassDataSource.klass = rb_define_class_under(mOgr, "DataSource", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_OGRDataSourceShadow, (void *) &SwigClassDataSource);
- rb_undef_alloc_func(SwigClassDataSource.klass);
- rb_define_method(SwigClassDataSource.klass, "name", VALUEFUNC(_wrap_DataSource_name_get), -1);
- rb_define_method(SwigClassDataSource.klass, "get_ref_count", VALUEFUNC(_wrap_DataSource_get_ref_count), -1);
- rb_define_method(SwigClassDataSource.klass, "get_summary_ref_count", VALUEFUNC(_wrap_DataSource_get_summary_ref_count), -1);
- rb_define_method(SwigClassDataSource.klass, "get_layer_count", VALUEFUNC(_wrap_DataSource_get_layer_count), -1);
- rb_define_method(SwigClassDataSource.klass, "get_driver", VALUEFUNC(_wrap_DataSource_get_driver), -1);
- rb_define_method(SwigClassDataSource.klass, "get_name", VALUEFUNC(_wrap_DataSource_get_name), -1);
- rb_define_method(SwigClassDataSource.klass, "delete_layer", VALUEFUNC(_wrap_DataSource_delete_layer), -1);
- rb_define_method(SwigClassDataSource.klass, "create_layer", VALUEFUNC(_wrap_DataSource_create_layer), -1);
- rb_define_method(SwigClassDataSource.klass, "copy_layer", VALUEFUNC(_wrap_DataSource_copy_layer), -1);
- rb_define_method(SwigClassDataSource.klass, "test_capability", VALUEFUNC(_wrap_DataSource_test_capability), -1);
- rb_define_method(SwigClassDataSource.klass, "execute_sql", VALUEFUNC(_wrap_DataSource_execute_sql), -1);
- rb_define_method(SwigClassDataSource.klass, "release_result_set", VALUEFUNC(_wrap_DataSource_release_result_set), -1);
- rb_define_method(SwigClassDataSource.klass, "get_layer", VALUEFUNC(_wrap_DataSource_get_layer), -1);
- SwigClassDataSource.mark = 0;
- SwigClassDataSource.destroy = (void (*)(void *)) free_OGRDataSourceShadow;
- SwigClassDataSource.trackObjects = 0;
-
- SwigClassLayer.klass = rb_define_class_under(mOgr, "Layer", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_OGRLayerShadow, (void *) &SwigClassLayer);
- rb_include_module(SwigClassLayer.klass, rb_eval_string("Enumerable"));
- rb_undef_alloc_func(SwigClassLayer.klass);
- rb_define_method(SwigClassLayer.klass, "get_ref_count", VALUEFUNC(_wrap_Layer_get_ref_count), -1);
- rb_define_method(SwigClassLayer.klass, "set_spatial_filter", VALUEFUNC(_wrap_Layer_set_spatial_filter), -1);
- rb_define_method(SwigClassLayer.klass, "set_spatial_filter_rect", VALUEFUNC(_wrap_Layer_set_spatial_filter_rect), -1);
- rb_define_method(SwigClassLayer.klass, "get_spatial_filter", VALUEFUNC(_wrap_Layer_get_spatial_filter), -1);
- rb_define_method(SwigClassLayer.klass, "set_attribute_filter", VALUEFUNC(_wrap_Layer_set_attribute_filter), -1);
- rb_define_method(SwigClassLayer.klass, "reset_reading", VALUEFUNC(_wrap_Layer_reset_reading), -1);
- rb_define_method(SwigClassLayer.klass, "get_name", VALUEFUNC(_wrap_Layer_get_name), -1);
- rb_define_method(SwigClassLayer.klass, "get_geom_type", VALUEFUNC(_wrap_Layer_get_geom_type), -1);
- rb_define_method(SwigClassLayer.klass, "get_geometry_column", VALUEFUNC(_wrap_Layer_get_geometry_column), -1);
- rb_define_method(SwigClassLayer.klass, "get_fidcolumn", VALUEFUNC(_wrap_Layer_get_fidcolumn), -1);
- rb_define_method(SwigClassLayer.klass, "get_feature", VALUEFUNC(_wrap_Layer_get_feature), -1);
- rb_define_method(SwigClassLayer.klass, "get_next_feature", VALUEFUNC(_wrap_Layer_get_next_feature), -1);
- rb_define_method(SwigClassLayer.klass, "set_next_by_index", VALUEFUNC(_wrap_Layer_set_next_by_index), -1);
- rb_define_method(SwigClassLayer.klass, "set_feature", VALUEFUNC(_wrap_Layer_set_feature), -1);
- rb_define_method(SwigClassLayer.klass, "create_feature", VALUEFUNC(_wrap_Layer_create_feature), -1);
- rb_define_method(SwigClassLayer.klass, "delete_feature", VALUEFUNC(_wrap_Layer_delete_feature), -1);
- rb_define_method(SwigClassLayer.klass, "sync_to_disk", VALUEFUNC(_wrap_Layer_sync_to_disk), -1);
- rb_define_method(SwigClassLayer.klass, "get_layer_defn", VALUEFUNC(_wrap_Layer_get_layer_defn), -1);
- rb_define_method(SwigClassLayer.klass, "get_feature_count", VALUEFUNC(_wrap_Layer_get_feature_count), -1);
- rb_define_method(SwigClassLayer.klass, "get_extent", VALUEFUNC(_wrap_Layer_get_extent), -1);
- rb_define_method(SwigClassLayer.klass, "test_capability", VALUEFUNC(_wrap_Layer_test_capability), -1);
- rb_define_method(SwigClassLayer.klass, "create_field", VALUEFUNC(_wrap_Layer_create_field), -1);
- rb_define_method(SwigClassLayer.klass, "start_transaction", VALUEFUNC(_wrap_Layer_start_transaction), -1);
- rb_define_method(SwigClassLayer.klass, "commit_transaction", VALUEFUNC(_wrap_Layer_commit_transaction), -1);
- rb_define_method(SwigClassLayer.klass, "rollback_transaction", VALUEFUNC(_wrap_Layer_rollback_transaction), -1);
- rb_define_method(SwigClassLayer.klass, "get_spatial_ref", VALUEFUNC(_wrap_Layer_get_spatial_ref), -1);
- rb_define_method(SwigClassLayer.klass, "get_features_read", VALUEFUNC(_wrap_Layer_get_features_read), -1);
- rb_define_method(SwigClassLayer.klass, "set_ignored_fields", VALUEFUNC(_wrap_Layer_set_ignored_fields), -1);
- rb_define_method(SwigClassLayer.klass, "each", VALUEFUNC(_wrap_Layer_each), -1);
- SwigClassLayer.mark = 0;
- SwigClassLayer.trackObjects = 0;
-
- SwigClassFeature.klass = rb_define_class_under(mOgr, "Feature", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_OGRFeatureShadow, (void *) &SwigClassFeature);
- rb_define_alloc_func(SwigClassFeature.klass, _wrap_Feature_allocate);
- rb_define_method(SwigClassFeature.klass, "initialize", VALUEFUNC(_wrap_new_Feature), -1);
- rb_define_method(SwigClassFeature.klass, "get_defn_ref", VALUEFUNC(_wrap_Feature_get_defn_ref), -1);
- rb_define_method(SwigClassFeature.klass, "set_geometry", VALUEFUNC(_wrap_Feature_set_geometry), -1);
- rb_define_method(SwigClassFeature.klass, "set_geometry_directly", VALUEFUNC(_wrap_Feature_set_geometry_directly), -1);
- rb_define_method(SwigClassFeature.klass, "get_geometry_ref", VALUEFUNC(_wrap_Feature_get_geometry_ref), -1);
- rb_define_method(SwigClassFeature.klass, "clone", VALUEFUNC(_wrap_Feature_clone), -1);
- rb_define_method(SwigClassFeature.klass, "equal", VALUEFUNC(_wrap_Feature_equal), -1);
- rb_define_method(SwigClassFeature.klass, "get_field_count", VALUEFUNC(_wrap_Feature_get_field_count), -1);
- rb_define_method(SwigClassFeature.klass, "get_field_defn_ref", VALUEFUNC(_wrap_Feature_get_field_defn_ref), -1);
- rb_define_method(SwigClassFeature.klass, "get_field_as_string", VALUEFUNC(_wrap_Feature_get_field_as_string), -1);
- rb_define_method(SwigClassFeature.klass, "get_field_as_integer", VALUEFUNC(_wrap_Feature_get_field_as_integer), -1);
- rb_define_method(SwigClassFeature.klass, "get_field_as_double", VALUEFUNC(_wrap_Feature_get_field_as_double), -1);
- rb_define_method(SwigClassFeature.klass, "get_field_as_date_time", VALUEFUNC(_wrap_Feature_get_field_as_date_time), -1);
- rb_define_method(SwigClassFeature.klass, "get_field_as_integer_list", VALUEFUNC(_wrap_Feature_get_field_as_integer_list), -1);
- rb_define_method(SwigClassFeature.klass, "get_field_as_double_list", VALUEFUNC(_wrap_Feature_get_field_as_double_list), -1);
- rb_define_method(SwigClassFeature.klass, "get_field_as_string_list", VALUEFUNC(_wrap_Feature_get_field_as_string_list), -1);
- rb_define_method(SwigClassFeature.klass, "is_field_set", VALUEFUNC(_wrap_Feature_is_field_set), -1);
- rb_define_method(SwigClassFeature.klass, "get_field_index", VALUEFUNC(_wrap_Feature_get_field_index), -1);
- rb_define_method(SwigClassFeature.klass, "get_fid", VALUEFUNC(_wrap_Feature_get_fid), -1);
- rb_define_method(SwigClassFeature.klass, "set_fid", VALUEFUNC(_wrap_Feature_set_fid), -1);
- rb_define_method(SwigClassFeature.klass, "dump_readable", VALUEFUNC(_wrap_Feature_dump_readable), -1);
- rb_define_method(SwigClassFeature.klass, "unset_field", VALUEFUNC(_wrap_Feature_unset_field), -1);
- rb_define_method(SwigClassFeature.klass, "set_field", VALUEFUNC(_wrap_Feature_set_field), -1);
- rb_define_method(SwigClassFeature.klass, "set_field_integer_list", VALUEFUNC(_wrap_Feature_set_field_integer_list), -1);
- rb_define_method(SwigClassFeature.klass, "set_field_double_list", VALUEFUNC(_wrap_Feature_set_field_double_list), -1);
- rb_define_method(SwigClassFeature.klass, "set_field_string_list", VALUEFUNC(_wrap_Feature_set_field_string_list), -1);
- rb_define_method(SwigClassFeature.klass, "set_from", VALUEFUNC(_wrap_Feature_set_from), -1);
- rb_define_method(SwigClassFeature.klass, "get_style_string", VALUEFUNC(_wrap_Feature_get_style_string), -1);
- rb_define_method(SwigClassFeature.klass, "set_style_string", VALUEFUNC(_wrap_Feature_set_style_string), -1);
- rb_define_method(SwigClassFeature.klass, "get_field_type", VALUEFUNC(_wrap_Feature_get_field_type), -1);
- rb_define_method(SwigClassFeature.klass, "get_field", VALUEFUNC(_wrap_Feature_get_field), -1);
- SwigClassFeature.mark = 0;
- SwigClassFeature.destroy = (void (*)(void *)) free_OGRFeatureShadow;
- SwigClassFeature.trackObjects = 0;
-
- SwigClassFeatureDefn.klass = rb_define_class_under(mOgr, "FeatureDefn", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_OGRFeatureDefnShadow, (void *) &SwigClassFeatureDefn);
- rb_define_alloc_func(SwigClassFeatureDefn.klass, _wrap_FeatureDefn_allocate);
- rb_define_method(SwigClassFeatureDefn.klass, "initialize", VALUEFUNC(_wrap_new_FeatureDefn), -1);
- rb_define_method(SwigClassFeatureDefn.klass, "get_name", VALUEFUNC(_wrap_FeatureDefn_get_name), -1);
- rb_define_method(SwigClassFeatureDefn.klass, "get_field_count", VALUEFUNC(_wrap_FeatureDefn_get_field_count), -1);
- rb_define_method(SwigClassFeatureDefn.klass, "get_field_defn", VALUEFUNC(_wrap_FeatureDefn_get_field_defn), -1);
- rb_define_method(SwigClassFeatureDefn.klass, "get_field_index", VALUEFUNC(_wrap_FeatureDefn_get_field_index), -1);
- rb_define_method(SwigClassFeatureDefn.klass, "add_field_defn", VALUEFUNC(_wrap_FeatureDefn_add_field_defn), -1);
- rb_define_method(SwigClassFeatureDefn.klass, "get_geom_type", VALUEFUNC(_wrap_FeatureDefn_get_geom_type), -1);
- rb_define_method(SwigClassFeatureDefn.klass, "set_geom_type", VALUEFUNC(_wrap_FeatureDefn_set_geom_type), -1);
- rb_define_method(SwigClassFeatureDefn.klass, "get_reference_count", VALUEFUNC(_wrap_FeatureDefn_get_reference_count), -1);
- rb_define_method(SwigClassFeatureDefn.klass, "is_geometry_ignored", VALUEFUNC(_wrap_FeatureDefn_is_geometry_ignored), -1);
- rb_define_method(SwigClassFeatureDefn.klass, "set_geometry_ignored", VALUEFUNC(_wrap_FeatureDefn_set_geometry_ignored), -1);
- rb_define_method(SwigClassFeatureDefn.klass, "is_style_ignored", VALUEFUNC(_wrap_FeatureDefn_is_style_ignored), -1);
- rb_define_method(SwigClassFeatureDefn.klass, "set_style_ignored", VALUEFUNC(_wrap_FeatureDefn_set_style_ignored), -1);
- SwigClassFeatureDefn.mark = 0;
- SwigClassFeatureDefn.destroy = (void (*)(void *)) free_OGRFeatureDefnShadow;
- SwigClassFeatureDefn.trackObjects = 0;
-
- SwigClassFieldDefn.klass = rb_define_class_under(mOgr, "FieldDefn", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_OGRFieldDefnShadow, (void *) &SwigClassFieldDefn);
- rb_define_alloc_func(SwigClassFieldDefn.klass, _wrap_FieldDefn_allocate);
- rb_define_method(SwigClassFieldDefn.klass, "initialize", VALUEFUNC(_wrap_new_FieldDefn), -1);
- rb_define_method(SwigClassFieldDefn.klass, "get_name", VALUEFUNC(_wrap_FieldDefn_get_name), -1);
- rb_define_method(SwigClassFieldDefn.klass, "get_name_ref", VALUEFUNC(_wrap_FieldDefn_get_name_ref), -1);
- rb_define_method(SwigClassFieldDefn.klass, "set_name", VALUEFUNC(_wrap_FieldDefn_set_name), -1);
- rb_define_method(SwigClassFieldDefn.klass, "get_type", VALUEFUNC(_wrap_FieldDefn_get_type), -1);
- rb_define_method(SwigClassFieldDefn.klass, "set_type", VALUEFUNC(_wrap_FieldDefn_set_type), -1);
- rb_define_method(SwigClassFieldDefn.klass, "get_justify", VALUEFUNC(_wrap_FieldDefn_get_justify), -1);
- rb_define_method(SwigClassFieldDefn.klass, "set_justify", VALUEFUNC(_wrap_FieldDefn_set_justify), -1);
- rb_define_method(SwigClassFieldDefn.klass, "get_width", VALUEFUNC(_wrap_FieldDefn_get_width), -1);
- rb_define_method(SwigClassFieldDefn.klass, "set_width", VALUEFUNC(_wrap_FieldDefn_set_width), -1);
- rb_define_method(SwigClassFieldDefn.klass, "get_precision", VALUEFUNC(_wrap_FieldDefn_get_precision), -1);
- rb_define_method(SwigClassFieldDefn.klass, "set_precision", VALUEFUNC(_wrap_FieldDefn_set_precision), -1);
- rb_define_method(SwigClassFieldDefn.klass, "get_type_name", VALUEFUNC(_wrap_FieldDefn_get_type_name), -1);
- rb_define_method(SwigClassFieldDefn.klass, "get_field_type_name", VALUEFUNC(_wrap_FieldDefn_get_field_type_name), -1);
- rb_define_method(SwigClassFieldDefn.klass, "is_ignored", VALUEFUNC(_wrap_FieldDefn_is_ignored), -1);
- rb_define_method(SwigClassFieldDefn.klass, "set_ignored", VALUEFUNC(_wrap_FieldDefn_set_ignored), -1);
- SwigClassFieldDefn.mark = 0;
- SwigClassFieldDefn.destroy = (void (*)(void *)) free_OGRFieldDefnShadow;
- SwigClassFieldDefn.trackObjects = 0;
- rb_define_module_function(mOgr, "create_geometry_from_wkb", VALUEFUNC(_wrap_create_geometry_from_wkb), -1);
- rb_define_module_function(mOgr, "create_geometry_from_wkt", VALUEFUNC(_wrap_create_geometry_from_wkt), -1);
- rb_define_module_function(mOgr, "create_geometry_from_gml", VALUEFUNC(_wrap_create_geometry_from_gml), -1);
- rb_define_module_function(mOgr, "create_geometry_from_json", VALUEFUNC(_wrap_create_geometry_from_json), -1);
- rb_define_module_function(mOgr, "build_polygon_from_edges", VALUEFUNC(_wrap_build_polygon_from_edges), -1);
- rb_define_module_function(mOgr, "approximate_arc_angles", VALUEFUNC(_wrap_approximate_arc_angles), -1);
- rb_define_module_function(mOgr, "force_to_polygon", VALUEFUNC(_wrap_force_to_polygon), -1);
- rb_define_module_function(mOgr, "force_to_multi_polygon", VALUEFUNC(_wrap_force_to_multi_polygon), -1);
- rb_define_module_function(mOgr, "force_to_multi_point", VALUEFUNC(_wrap_force_to_multi_point), -1);
- rb_define_module_function(mOgr, "force_to_multi_line_string", VALUEFUNC(_wrap_force_to_multi_line_string), -1);
-
- SwigClassGeometry.klass = rb_define_class_under(mOgr, "Geometry", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_OGRGeometryShadow, (void *) &SwigClassGeometry);
- rb_define_alloc_func(SwigClassGeometry.klass, _wrap_Geometry_allocate);
- rb_define_method(SwigClassGeometry.klass, "initialize", VALUEFUNC(_wrap_new_Geometry), -1);
- rb_define_method(SwigClassGeometry.klass, "export_to_wkt", VALUEFUNC(_wrap_Geometry_export_to_wkt), -1);
- rb_define_method(SwigClassGeometry.klass, "export_to_wkb", VALUEFUNC(_wrap_Geometry_export_to_wkb), -1);
- rb_define_method(SwigClassGeometry.klass, "export_to_gml", VALUEFUNC(_wrap_Geometry_export_to_gml), -1);
- rb_define_method(SwigClassGeometry.klass, "export_to_kml", VALUEFUNC(_wrap_Geometry_export_to_kml), -1);
- rb_define_method(SwigClassGeometry.klass, "export_to_json", VALUEFUNC(_wrap_Geometry_export_to_json), -1);
- rb_define_method(SwigClassGeometry.klass, "add_point", VALUEFUNC(_wrap_Geometry_add_point), -1);
- rb_define_method(SwigClassGeometry.klass, "add_point_2d", VALUEFUNC(_wrap_Geometry_add_point_2d), -1);
- rb_define_method(SwigClassGeometry.klass, "add_geometry_directly", VALUEFUNC(_wrap_Geometry_add_geometry_directly), -1);
- rb_define_method(SwigClassGeometry.klass, "add_geometry", VALUEFUNC(_wrap_Geometry_add_geometry), -1);
- rb_define_method(SwigClassGeometry.klass, "clone", VALUEFUNC(_wrap_Geometry_clone), -1);
- rb_define_method(SwigClassGeometry.klass, "get_geometry_type", VALUEFUNC(_wrap_Geometry_get_geometry_type), -1);
- rb_define_method(SwigClassGeometry.klass, "get_geometry_name", VALUEFUNC(_wrap_Geometry_get_geometry_name), -1);
- rb_define_method(SwigClassGeometry.klass, "length", VALUEFUNC(_wrap_Geometry_length), -1);
- rb_define_method(SwigClassGeometry.klass, "area", VALUEFUNC(_wrap_Geometry_area), -1);
- rb_define_method(SwigClassGeometry.klass, "get_area", VALUEFUNC(_wrap_Geometry_get_area), -1);
- rb_define_method(SwigClassGeometry.klass, "get_point_count", VALUEFUNC(_wrap_Geometry_get_point_count), -1);
- rb_define_method(SwigClassGeometry.klass, "get_x", VALUEFUNC(_wrap_Geometry_get_x), -1);
- rb_define_method(SwigClassGeometry.klass, "get_y", VALUEFUNC(_wrap_Geometry_get_y), -1);
- rb_define_method(SwigClassGeometry.klass, "get_z", VALUEFUNC(_wrap_Geometry_get_z), -1);
- rb_define_method(SwigClassGeometry.klass, "get_point", VALUEFUNC(_wrap_Geometry_get_point), -1);
- rb_define_method(SwigClassGeometry.klass, "get_point_2d", VALUEFUNC(_wrap_Geometry_get_point_2d), -1);
- rb_define_method(SwigClassGeometry.klass, "get_geometry_count", VALUEFUNC(_wrap_Geometry_get_geometry_count), -1);
- rb_define_method(SwigClassGeometry.klass, "set_point", VALUEFUNC(_wrap_Geometry_set_point), -1);
- rb_define_method(SwigClassGeometry.klass, "set_point_2d", VALUEFUNC(_wrap_Geometry_set_point_2d), -1);
- rb_define_method(SwigClassGeometry.klass, "get_geometry_ref", VALUEFUNC(_wrap_Geometry_get_geometry_ref), -1);
- rb_define_method(SwigClassGeometry.klass, "simplify", VALUEFUNC(_wrap_Geometry_simplify), -1);
- rb_define_method(SwigClassGeometry.klass, "boundary", VALUEFUNC(_wrap_Geometry_boundary), -1);
- rb_define_method(SwigClassGeometry.klass, "get_boundary", VALUEFUNC(_wrap_Geometry_get_boundary), -1);
- rb_define_method(SwigClassGeometry.klass, "convex_hull", VALUEFUNC(_wrap_Geometry_convex_hull), -1);
- rb_define_method(SwigClassGeometry.klass, "buffer", VALUEFUNC(_wrap_Geometry_buffer), -1);
- rb_define_method(SwigClassGeometry.klass, "intersection", VALUEFUNC(_wrap_Geometry_intersection), -1);
- rb_define_method(SwigClassGeometry.klass, "union", VALUEFUNC(_wrap_Geometry_union), -1);
- rb_define_method(SwigClassGeometry.klass, "union_cascaded", VALUEFUNC(_wrap_Geometry_union_cascaded), -1);
- rb_define_method(SwigClassGeometry.klass, "difference", VALUEFUNC(_wrap_Geometry_difference), -1);
- rb_define_method(SwigClassGeometry.klass, "sym_difference", VALUEFUNC(_wrap_Geometry_sym_difference), -1);
- rb_define_method(SwigClassGeometry.klass, "symmetric_difference", VALUEFUNC(_wrap_Geometry_symmetric_difference), -1);
- rb_define_method(SwigClassGeometry.klass, "distance", VALUEFUNC(_wrap_Geometry_distance), -1);
- rb_define_method(SwigClassGeometry.klass, "empty", VALUEFUNC(_wrap_Geometry_empty), -1);
- rb_define_method(SwigClassGeometry.klass, "is_empty", VALUEFUNC(_wrap_Geometry_is_empty), -1);
- rb_define_method(SwigClassGeometry.klass, "is_valid", VALUEFUNC(_wrap_Geometry_is_valid), -1);
- rb_define_method(SwigClassGeometry.klass, "is_simple", VALUEFUNC(_wrap_Geometry_is_simple), -1);
- rb_define_method(SwigClassGeometry.klass, "is_ring", VALUEFUNC(_wrap_Geometry_is_ring), -1);
- rb_define_method(SwigClassGeometry.klass, "intersects", VALUEFUNC(_wrap_Geometry_intersects), -1);
- rb_define_method(SwigClassGeometry.klass, "intersect", VALUEFUNC(_wrap_Geometry_intersect), -1);
- rb_define_method(SwigClassGeometry.klass, "equals", VALUEFUNC(_wrap_Geometry_equals), -1);
- rb_define_method(SwigClassGeometry.klass, "equal", VALUEFUNC(_wrap_Geometry_equal), -1);
- rb_define_method(SwigClassGeometry.klass, "disjoint", VALUEFUNC(_wrap_Geometry_disjoint), -1);
- rb_define_method(SwigClassGeometry.klass, "touches", VALUEFUNC(_wrap_Geometry_touches), -1);
- rb_define_method(SwigClassGeometry.klass, "crosses", VALUEFUNC(_wrap_Geometry_crosses), -1);
- rb_define_method(SwigClassGeometry.klass, "within", VALUEFUNC(_wrap_Geometry_within), -1);
- rb_define_method(SwigClassGeometry.klass, "contains", VALUEFUNC(_wrap_Geometry_contains), -1);
- rb_define_method(SwigClassGeometry.klass, "overlaps", VALUEFUNC(_wrap_Geometry_overlaps), -1);
- rb_define_method(SwigClassGeometry.klass, "transform_to", VALUEFUNC(_wrap_Geometry_transform_to), -1);
- rb_define_method(SwigClassGeometry.klass, "transform", VALUEFUNC(_wrap_Geometry_transform), -1);
- rb_define_method(SwigClassGeometry.klass, "get_spatial_reference", VALUEFUNC(_wrap_Geometry_get_spatial_reference), -1);
- rb_define_method(SwigClassGeometry.klass, "assign_spatial_reference", VALUEFUNC(_wrap_Geometry_assign_spatial_reference), -1);
- rb_define_method(SwigClassGeometry.klass, "close_rings", VALUEFUNC(_wrap_Geometry_close_rings), -1);
- rb_define_method(SwigClassGeometry.klass, "flatten_to_2d", VALUEFUNC(_wrap_Geometry_flatten_to_2d), -1);
- rb_define_method(SwigClassGeometry.klass, "segmentize", VALUEFUNC(_wrap_Geometry_segmentize), -1);
- rb_define_method(SwigClassGeometry.klass, "get_envelope", VALUEFUNC(_wrap_Geometry_get_envelope), -1);
- rb_define_method(SwigClassGeometry.klass, "centroid", VALUEFUNC(_wrap_Geometry_centroid), -1);
- rb_define_method(SwigClassGeometry.klass, "wkb_size", VALUEFUNC(_wrap_Geometry_wkb_size), -1);
- rb_define_method(SwigClassGeometry.klass, "get_coordinate_dimension", VALUEFUNC(_wrap_Geometry_get_coordinate_dimension), -1);
- rb_define_method(SwigClassGeometry.klass, "set_coordinate_dimension", VALUEFUNC(_wrap_Geometry_set_coordinate_dimension), -1);
- rb_define_method(SwigClassGeometry.klass, "get_dimension", VALUEFUNC(_wrap_Geometry_get_dimension), -1);
- SwigClassGeometry.mark = 0;
- SwigClassGeometry.destroy = (void (*)(void *)) free_OGRGeometryShadow;
- SwigClassGeometry.trackObjects = 0;
- rb_define_module_function(mOgr, "get_driver_count", VALUEFUNC(_wrap_get_driver_count), -1);
- rb_define_module_function(mOgr, "get_open_dscount", VALUEFUNC(_wrap_get_open_dscount), -1);
- rb_define_module_function(mOgr, "set_generate_db2_v72_byte_order", VALUEFUNC(_wrap_set_generate_db2_v72_byte_order), -1);
- rb_define_module_function(mOgr, "register_all", VALUEFUNC(_wrap_register_all), -1);
- rb_define_module_function(mOgr, "GeometryTypeToName", VALUEFUNC(_wrap_GeometryTypeToName), -1);
- rb_define_module_function(mOgr, "GetFieldTypeName", VALUEFUNC(_wrap_GetFieldTypeName), -1);
- rb_define_module_function(mOgr, "get_open_ds", VALUEFUNC(_wrap_get_open_ds), -1);
- rb_define_module_function(mOgr, "open", VALUEFUNC(_wrap_open), -1);
- rb_define_module_function(mOgr, "open_shared", VALUEFUNC(_wrap_open_shared), -1);
- rb_define_module_function(mOgr, "get_driver_by_name", VALUEFUNC(_wrap_get_driver_by_name), -1);
- rb_define_module_function(mOgr, "get_driver", VALUEFUNC(_wrap_get_driver), -1);
- rb_define_module_function(mOgr, "general_cmd_line_processor", VALUEFUNC(_wrap_general_cmd_line_processor), -1);
-}
-
diff --git a/swig/ruby/osr_wrap.cpp b/swig/ruby/osr_wrap.cpp
deleted file mode 100644
index 8bf9989..0000000
--- a/swig/ruby/osr_wrap.cpp
+++ /dev/null
@@ -1,9684 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.40
- *
- * This file is not intended to be easily readable and contains a number of
- * 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.
- * ----------------------------------------------------------------------------- */
-
-#define SWIGRUBY
-
-
-#ifdef __cplusplus
-/* SwigValueWrapper is described in swig.swg */
-template<typename T> class SwigValueWrapper {
- struct SwigMovePointer {
- T *ptr;
- SwigMovePointer(T *p) : ptr(p) { }
- ~SwigMovePointer() { delete ptr; }
- SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
- } pointer;
- SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
- SwigValueWrapper(const SwigValueWrapper<T>& rhs);
-public:
- SwigValueWrapper() : pointer(0) { }
- SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
- operator T&() const { return *pointer.ptr; }
- T *operator&() { return pointer.ptr; }
-};
-
-template <typename T> T SwigValueInit() {
- return T();
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIG_MSC_UNSUPPRESS_4505
-# if defined(_MSC_VER)
-# pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIG_MSC_UNSUPPRESS_4505
-# if defined(_MSC_VER)
-# pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-/* -----------------------------------------------------------------------------
- * swigrun.swg
- *
- * This file contains generic C API SWIG runtime support for pointer
- * type checking.
- * ----------------------------------------------------------------------------- */
-
-/* This should only be incremented when either the layout of swig_type_info changes,
- or for whatever reason, the runtime changes incompatibly */
-#define SWIG_RUNTIME_VERSION "4"
-
-/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
-#ifdef SWIG_TYPE_TABLE
-# define SWIG_QUOTE_STRING(x) #x
-# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
-# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
-#else
-# define SWIG_TYPE_TABLE_NAME
-#endif
-
-/*
- You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
- creating a static or dynamic library from the SWIG runtime code.
- In 99.9% of the cases, SWIG just needs to declare them as 'static'.
-
- But only do this if strictly necessary, ie, if you have problems
- with your compiler or suchlike.
-*/
-
-#ifndef SWIGRUNTIME
-# define SWIGRUNTIME SWIGINTERN
-#endif
-
-#ifndef SWIGRUNTIMEINLINE
-# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
-#endif
-
-/* Generic buffer size */
-#ifndef SWIG_BUFFER_SIZE
-# define SWIG_BUFFER_SIZE 1024
-#endif
-
-/* Flags for pointer conversions */
-#define SWIG_POINTER_DISOWN 0x1
-#define SWIG_CAST_NEW_MEMORY 0x2
-
-/* Flags for new pointer objects */
-#define SWIG_POINTER_OWN 0x1
-
-
-/*
- Flags/methods for returning states.
-
- The SWIG conversion methods, as ConvertPtr, return and integer
- that tells if the conversion was successful or not. And if not,
- an error code can be returned (see swigerrors.swg for the codes).
-
- Use the following macros/flags to set or process the returning
- states.
-
- In old versions of SWIG, code such as the following was usually written:
-
- if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
- // success code
- } else {
- //fail code
- }
-
- Now you can be more explicit:
-
- int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
- if (SWIG_IsOK(res)) {
- // success code
- } else {
- // fail code
- }
-
- which is the same really, but now you can also do
-
- Type *ptr;
- int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
- if (SWIG_IsOK(res)) {
- // success code
- if (SWIG_IsNewObj(res) {
- ...
- delete *ptr;
- } else {
- ...
- }
- } else {
- // fail code
- }
-
- I.e., now SWIG_ConvertPtr can return new objects and you can
- identify the case and take care of the deallocation. Of course that
- also requires SWIG_ConvertPtr to return new result values, such as
-
- int SWIG_ConvertPtr(obj, ptr,...) {
- if (<obj is ok>) {
- if (<need new object>) {
- *ptr = <ptr to new allocated object>;
- return SWIG_NEWOBJ;
- } else {
- *ptr = <ptr to old object>;
- return SWIG_OLDOBJ;
- }
- } else {
- return SWIG_BADOBJ;
- }
- }
-
- Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
- more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
- SWIG errors code.
-
- Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
- allows to return the 'cast rank', for example, if you have this
-
- int food(double)
- int fooi(int);
-
- and you call
-
- food(1) // cast rank '1' (1 -> 1.0)
- fooi(1) // cast rank '0'
-
- just use the SWIG_AddCast()/SWIG_CheckState()
-*/
-
-#define SWIG_OK (0)
-#define SWIG_ERROR (-1)
-#define SWIG_IsOK(r) (r >= 0)
-#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
-
-/* The CastRankLimit says how many bits are used for the cast rank */
-#define SWIG_CASTRANKLIMIT (1 << 8)
-/* The NewMask denotes the object was created (using new/malloc) */
-#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
-/* The TmpMask is for in/out typemaps that use temporal objects */
-#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
-/* Simple returning values */
-#define SWIG_BADOBJ (SWIG_ERROR)
-#define SWIG_OLDOBJ (SWIG_OK)
-#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
-#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
-/* Check, add and del mask methods */
-#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
-#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
-#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
-#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
-#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
-#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
-
-/* Cast-Rank Mode */
-#if defined(SWIG_CASTRANK_MODE)
-# ifndef SWIG_TypeRank
-# define SWIG_TypeRank unsigned long
-# endif
-# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
-# define SWIG_MAXCASTRANK (2)
-# endif
-# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
-# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
-SWIGINTERNINLINE int SWIG_AddCast(int r) {
- return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
-}
-SWIGINTERNINLINE int SWIG_CheckState(int r) {
- return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
-}
-#else /* no cast-rank mode */
-# define SWIG_AddCast
-# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
-#endif
-
-
-#include <string.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef void *(*swig_converter_func)(void *, int *);
-typedef struct swig_type_info *(*swig_dycast_func)(void **);
-
-/* Structure to store information on one type */
-typedef struct swig_type_info {
- const char *name; /* mangled name of this type */
- const char *str; /* human readable name of this type */
- swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
- struct swig_cast_info *cast; /* linked list of types that can cast into this type */
- void *clientdata; /* language specific type data */
- int owndata; /* flag if the structure owns the clientdata */
-} swig_type_info;
-
-/* Structure to store a type and conversion function used for casting */
-typedef struct swig_cast_info {
- swig_type_info *type; /* pointer to type that is equivalent to this type */
- swig_converter_func converter; /* function to cast the void pointers */
- struct swig_cast_info *next; /* pointer to next cast in linked list */
- struct swig_cast_info *prev; /* pointer to the previous cast */
-} swig_cast_info;
-
-/* Structure used to store module information
- * Each module generates one structure like this, and the runtime collects
- * all of these structures and stores them in a circularly linked list.*/
-typedef struct swig_module_info {
- swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
- size_t size; /* Number of types in this module */
- struct swig_module_info *next; /* Pointer to next element in circularly linked list */
- swig_type_info **type_initial; /* Array of initially generated type structures */
- swig_cast_info **cast_initial; /* Array of initially generated casting structures */
- void *clientdata; /* Language specific module data */
-} swig_module_info;
-
-/*
- Compare two type names skipping the space characters, therefore
- "char*" == "char *" and "Class<int>" == "Class<int >", etc.
-
- Return 0 when the two name types are equivalent, as in
- strncmp, but skipping ' '.
-*/
-SWIGRUNTIME int
-SWIG_TypeNameComp(const char *f1, const char *l1,
- const char *f2, const char *l2) {
- for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
- while ((*f1 == ' ') && (f1 != l1)) ++f1;
- while ((*f2 == ' ') && (f2 != l2)) ++f2;
- if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
- }
- return (int)((l1 - f1) - (l2 - f2));
-}
-
-/*
- Check type equivalence in a name list like <name1>|<name2>|...
- Return 0 if not equal, 1 if equal
-*/
-SWIGRUNTIME int
-SWIG_TypeEquiv(const char *nb, const char *tb) {
- int equiv = 0;
- const char* te = tb + strlen(tb);
- const char* ne = nb;
- while (!equiv && *ne) {
- for (nb = ne; *ne; ++ne) {
- if (*ne == '|') break;
- }
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
- if (*ne) ++ne;
- }
- return equiv;
-}
-
-/*
- Check type equivalence in a name list like <name1>|<name2>|...
- Return 0 if equal, -1 if nb < tb, 1 if nb > tb
-*/
-SWIGRUNTIME int
-SWIG_TypeCompare(const char *nb, const char *tb) {
- int equiv = 0;
- const char* te = tb + strlen(tb);
- const char* ne = nb;
- while (!equiv && *ne) {
- for (nb = ne; *ne; ++ne) {
- if (*ne == '|') break;
- }
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
- if (*ne) ++ne;
- }
- return equiv;
-}
-
-
-/*
- Check the typename
-*/
-SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheck(const char *c, swig_type_info *ty) {
- if (ty) {
- swig_cast_info *iter = ty->cast;
- while (iter) {
- if (strcmp(iter->type->name, c) == 0) {
- if (iter == ty->cast)
- return iter;
- /* Move iter to the top of the linked list */
- iter->prev->next = iter->next;
- if (iter->next)
- iter->next->prev = iter->prev;
- iter->next = ty->cast;
- iter->prev = 0;
- if (ty->cast) ty->cast->prev = iter;
- ty->cast = iter;
- return iter;
- }
- iter = iter->next;
- }
- }
- return 0;
-}
-
-/*
- Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
-*/
-SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
- if (ty) {
- swig_cast_info *iter = ty->cast;
- while (iter) {
- if (iter->type == from) {
- if (iter == ty->cast)
- return iter;
- /* Move iter to the top of the linked list */
- iter->prev->next = iter->next;
- if (iter->next)
- iter->next->prev = iter->prev;
- iter->next = ty->cast;
- iter->prev = 0;
- if (ty->cast) ty->cast->prev = iter;
- ty->cast = iter;
- return iter;
- }
- iter = iter->next;
- }
- }
- return 0;
-}
-
-/*
- Cast a pointer up an inheritance hierarchy
-*/
-SWIGRUNTIMEINLINE void *
-SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
- return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
-}
-
-/*
- Dynamic pointer casting. Down an inheritance hierarchy
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
- swig_type_info *lastty = ty;
- if (!ty || !ty->dcast) return ty;
- while (ty && (ty->dcast)) {
- ty = (*ty->dcast)(ptr);
- if (ty) lastty = ty;
- }
- return lastty;
-}
-
-/*
- Return the name associated with this type
-*/
-SWIGRUNTIMEINLINE const char *
-SWIG_TypeName(const swig_type_info *ty) {
- return ty->name;
-}
-
-/*
- Return the pretty name associated with this type,
- that is an unmangled type name in a form presentable to the user.
-*/
-SWIGRUNTIME const char *
-SWIG_TypePrettyName(const swig_type_info *type) {
- /* The "str" field contains the equivalent pretty names of the
- type, separated by vertical-bar characters. We choose
- to print the last name, as it is often (?) the most
- specific. */
- if (!type) return NULL;
- if (type->str != NULL) {
- const char *last_name = type->str;
- const char *s;
- for (s = type->str; *s; s++)
- if (*s == '|') last_name = s+1;
- return last_name;
- }
- else
- return type->name;
-}
-
-/*
- Set the clientdata field for a type
-*/
-SWIGRUNTIME void
-SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
- swig_cast_info *cast = ti->cast;
- /* if (ti->clientdata == clientdata) return; */
- ti->clientdata = clientdata;
-
- while (cast) {
- if (!cast->converter) {
- swig_type_info *tc = cast->type;
- if (!tc->clientdata) {
- SWIG_TypeClientData(tc, clientdata);
- }
- }
- cast = cast->next;
- }
-}
-SWIGRUNTIME void
-SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
- SWIG_TypeClientData(ti, clientdata);
- ti->owndata = 1;
-}
-
-/*
- Search for a swig_type_info structure only by mangled name
- Search is a O(log #types)
-
- We start searching at module start, and finish searching when start == end.
- Note: if start == end at the beginning of the function, we go all the way around
- the circular list.
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_MangledTypeQueryModule(swig_module_info *start,
- swig_module_info *end,
- const char *name) {
- swig_module_info *iter = start;
- do {
- if (iter->size) {
- register size_t l = 0;
- register size_t r = iter->size - 1;
- do {
- /* since l+r >= 0, we can (>> 1) instead (/ 2) */
- register size_t i = (l + r) >> 1;
- const char *iname = iter->types[i]->name;
- if (iname) {
- register int compare = strcmp(name, iname);
- if (compare == 0) {
- return iter->types[i];
- } else if (compare < 0) {
- if (i) {
- r = i - 1;
- } else {
- break;
- }
- } else if (compare > 0) {
- l = i + 1;
- }
- } else {
- break; /* should never happen */
- }
- } while (l <= r);
- }
- iter = iter->next;
- } while (iter != end);
- return 0;
-}
-
-/*
- Search for a swig_type_info structure for either a mangled name or a human readable name.
- It first searches the mangled names of the types, which is a O(log #types)
- If a type is not found it then searches the human readable names, which is O(#types).
-
- We start searching at module start, and finish searching when start == end.
- Note: if start == end at the beginning of the function, we go all the way around
- the circular list.
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_TypeQueryModule(swig_module_info *start,
- swig_module_info *end,
- const char *name) {
- /* STEP 1: Search the name field using binary search */
- swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
- if (ret) {
- return ret;
- } else {
- /* STEP 2: If the type hasn't been found, do a complete search
- of the str field (the human readable name) */
- swig_module_info *iter = start;
- do {
- register size_t i = 0;
- for (; i < iter->size; ++i) {
- if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
- return iter->types[i];
- }
- iter = iter->next;
- } while (iter != end);
- }
-
- /* neither found a match */
- return 0;
-}
-
-/*
- Pack binary data into a string
-*/
-SWIGRUNTIME char *
-SWIG_PackData(char *c, void *ptr, size_t sz) {
- static const char hex[17] = "0123456789abcdef";
- register const unsigned char *u = (unsigned char *) ptr;
- register const unsigned char *eu = u + sz;
- for (; u != eu; ++u) {
- register unsigned char uu = *u;
- *(c++) = hex[(uu & 0xf0) >> 4];
- *(c++) = hex[uu & 0xf];
- }
- return c;
-}
-
-/*
- Unpack binary data from a string
-*/
-SWIGRUNTIME const char *
-SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
- register unsigned char *u = (unsigned char *) ptr;
- register const unsigned char *eu = u + sz;
- for (; u != eu; ++u) {
- register char d = *(c++);
- register unsigned char uu;
- if ((d >= '0') && (d <= '9'))
- uu = ((d - '0') << 4);
- else if ((d >= 'a') && (d <= 'f'))
- uu = ((d - ('a'-10)) << 4);
- else
- return (char *) 0;
- d = *(c++);
- if ((d >= '0') && (d <= '9'))
- uu |= (d - '0');
- else if ((d >= 'a') && (d <= 'f'))
- uu |= (d - ('a'-10));
- else
- return (char *) 0;
- *u = uu;
- }
- return c;
-}
-
-/*
- Pack 'void *' into a string buffer.
-*/
-SWIGRUNTIME char *
-SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
- char *r = buff;
- if ((2*sizeof(void *) + 2) > bsz) return 0;
- *(r++) = '_';
- r = SWIG_PackData(r,&ptr,sizeof(void *));
- if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
- strcpy(r,name);
- return buff;
-}
-
-SWIGRUNTIME const char *
-SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
- if (*c != '_') {
- if (strcmp(c,"NULL") == 0) {
- *ptr = (void *) 0;
- return name;
- } else {
- return 0;
- }
- }
- return SWIG_UnpackData(++c,ptr,sizeof(void *));
-}
-
-SWIGRUNTIME char *
-SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
- char *r = buff;
- size_t lname = (name ? strlen(name) : 0);
- if ((2*sz + 2 + lname) > bsz) return 0;
- *(r++) = '_';
- r = SWIG_PackData(r,ptr,sz);
- if (lname) {
- strncpy(r,name,lname+1);
- } else {
- *r = 0;
- }
- return buff;
-}
-
-SWIGRUNTIME const char *
-SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
- if (*c != '_') {
- if (strcmp(c,"NULL") == 0) {
- memset(ptr,0,sz);
- return name;
- } else {
- return 0;
- }
- }
- return SWIG_UnpackData(++c,ptr,sz);
-}
-
-#ifdef __cplusplus
-}
-#endif
-
-/* Errors in SWIG */
-#define SWIG_UnknownError -1
-#define SWIG_IOError -2
-#define SWIG_RuntimeError -3
-#define SWIG_IndexError -4
-#define SWIG_TypeError -5
-#define SWIG_DivisionByZero -6
-#define SWIG_OverflowError -7
-#define SWIG_SyntaxError -8
-#define SWIG_ValueError -9
-#define SWIG_SystemError -10
-#define SWIG_AttributeError -11
-#define SWIG_MemoryError -12
-#define SWIG_NullReferenceError -13
-
-
-
-#include <ruby.h>
-
-/* Remove global macros defined in Ruby's win32.h */
-#ifdef write
-# undef write
-#endif
-#ifdef read
-# undef read
-#endif
-#ifdef bind
-# undef bind
-#endif
-#ifdef close
-# undef close
-#endif
-#ifdef connect
-# undef connect
-#endif
-
-
-/* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
-#ifndef NUM2LL
-#define NUM2LL(x) NUM2LONG((x))
-#endif
-#ifndef LL2NUM
-#define LL2NUM(x) INT2NUM((long) (x))
-#endif
-#ifndef ULL2NUM
-#define ULL2NUM(x) UINT2NUM((unsigned long) (x))
-#endif
-
-/* Ruby 1.7 doesn't (yet) define NUM2ULL() */
-#ifndef NUM2ULL
-#ifdef HAVE_LONG_LONG
-#define NUM2ULL(x) rb_num2ull((x))
-#else
-#define NUM2ULL(x) NUM2ULONG(x)
-#endif
-#endif
-
-/* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */
-/* Define these for older versions so we can just write code the new way */
-#ifndef RSTRING_LEN
-# define RSTRING_LEN(x) RSTRING(x)->len
-#endif
-#ifndef RSTRING_PTR
-# define RSTRING_PTR(x) RSTRING(x)->ptr
-#endif
-#ifndef RSTRING_END
-# define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
-#endif
-#ifndef RARRAY_LEN
-# define RARRAY_LEN(x) RARRAY(x)->len
-#endif
-#ifndef RARRAY_PTR
-# define RARRAY_PTR(x) RARRAY(x)->ptr
-#endif
-#ifndef RFLOAT_VALUE
-# define RFLOAT_VALUE(x) RFLOAT(x)->value
-#endif
-#ifndef DOUBLE2NUM
-# define DOUBLE2NUM(x) rb_float_new(x)
-#endif
-#ifndef RHASH_TBL
-# define RHASH_TBL(x) (RHASH(x)->tbl)
-#endif
-#ifndef RHASH_ITER_LEV
-# define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
-#endif
-#ifndef RHASH_IFNONE
-# define RHASH_IFNONE(x) (RHASH(x)->ifnone)
-#endif
-#ifndef RHASH_SIZE
-# define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
-#endif
-#ifndef RHASH_EMPTY_P
-# define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
-#endif
-#ifndef RSTRUCT_LEN
-# define RSTRUCT_LEN(x) RSTRUCT(x)->len
-#endif
-#ifndef RSTRUCT_PTR
-# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
-#endif
-
-
-
-/*
- * Need to be very careful about how these macros are defined, especially
- * when compiling C++ code or C code with an ANSI C compiler.
- *
- * VALUEFUNC(f) is a macro used to typecast a C function that implements
- * a Ruby method so that it can be passed as an argument to API functions
- * like rb_define_method() and rb_define_singleton_method().
- *
- * VOIDFUNC(f) is a macro used to typecast a C function that implements
- * either the "mark" or "free" stuff for a Ruby Data object, so that it
- * can be passed as an argument to API functions like Data_Wrap_Struct()
- * and Data_Make_Struct().
- */
-
-#ifdef __cplusplus
-# ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */
-# define PROTECTFUNC(f) ((VALUE (*)()) f)
-# define VALUEFUNC(f) ((VALUE (*)()) f)
-# define VOIDFUNC(f) ((void (*)()) f)
-# else
-# ifndef ANYARGS /* These definitions should work for Ruby 1.6 */
-# define PROTECTFUNC(f) ((VALUE (*)()) f)
-# define VALUEFUNC(f) ((VALUE (*)()) f)
-# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
-# else /* These definitions should work for Ruby 1.7+ */
-# define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
-# define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
-# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
-# endif
-# endif
-#else
-# define VALUEFUNC(f) (f)
-# define VOIDFUNC(f) (f)
-#endif
-
-/* Don't use for expressions have side effect */
-#ifndef RB_STRING_VALUE
-#define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s)))
-#endif
-#ifndef StringValue
-#define StringValue(s) RB_STRING_VALUE(s)
-#endif
-#ifndef StringValuePtr
-#define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s))
-#endif
-#ifndef StringValueLen
-#define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s))
-#endif
-#ifndef SafeStringValue
-#define SafeStringValue(v) do {\
- StringValue(v);\
- rb_check_safe_str(v);\
-} while (0)
-#endif
-
-#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
-#define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1)
-#define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
-#endif
-
-static VALUE _mSWIG = Qnil;
-
-/* -----------------------------------------------------------------------------
- * error manipulation
- * ----------------------------------------------------------------------------- */
-
-
-/* Define some additional error types */
-#define SWIG_ObjectPreviouslyDeletedError -100
-
-
-/* Define custom exceptions for errors that do not map to existing Ruby
- exceptions. Note this only works for C++ since a global cannot be
- initialized by a funtion in C. For C, fallback to rb_eRuntimeError.*/
-
-SWIGINTERN VALUE
-getNullReferenceError(void) {
- static int init = 0;
- static VALUE rb_eNullReferenceError ;
- if (!init) {
- init = 1;
- rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
- }
- return rb_eNullReferenceError;
-}
-
-SWIGINTERN VALUE
-getObjectPreviouslyDeletedError(void) {
- static int init = 0;
- static VALUE rb_eObjectPreviouslyDeleted ;
- if (!init) {
- init = 1;
- rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
- }
- return rb_eObjectPreviouslyDeleted;
-}
-
-
-SWIGINTERN VALUE
-SWIG_Ruby_ErrorType(int SWIG_code) {
- VALUE type;
- switch (SWIG_code) {
- case SWIG_MemoryError:
- type = rb_eNoMemError;
- break;
- case SWIG_IOError:
- type = rb_eIOError;
- break;
- case SWIG_RuntimeError:
- type = rb_eRuntimeError;
- break;
- case SWIG_IndexError:
- type = rb_eIndexError;
- break;
- case SWIG_TypeError:
- type = rb_eTypeError;
- break;
- case SWIG_DivisionByZero:
- type = rb_eZeroDivError;
- break;
- case SWIG_OverflowError:
- type = rb_eRangeError;
- break;
- case SWIG_SyntaxError:
- type = rb_eSyntaxError;
- break;
- case SWIG_ValueError:
- type = rb_eArgError;
- break;
- case SWIG_SystemError:
- type = rb_eFatal;
- break;
- case SWIG_AttributeError:
- type = rb_eRuntimeError;
- break;
- case SWIG_NullReferenceError:
- type = getNullReferenceError();
- break;
- case SWIG_ObjectPreviouslyDeletedError:
- type = getObjectPreviouslyDeletedError();
- break;
- case SWIG_UnknownError:
- type = rb_eRuntimeError;
- break;
- default:
- type = rb_eRuntimeError;
- }
- return type;
-}
-
-
-/* This function is called when a user inputs a wrong argument to
- a method.
- */
-SWIGINTERN
-const char* Ruby_Format_TypeError( const char* msg,
- const char* type,
- const char* name,
- const int argn,
- VALUE input )
-{
- char buf[128];
- VALUE str;
- VALUE asStr;
- if ( msg && *msg )
- {
- str = rb_str_new2(msg);
- }
- else
- {
- str = rb_str_new(NULL, 0);
- }
-
- str = rb_str_cat2( str, "Expected argument " );
- sprintf( buf, "%d of type ", argn-1 );
- str = rb_str_cat2( str, buf );
- str = rb_str_cat2( str, type );
- str = rb_str_cat2( str, ", but got " );
- str = rb_str_cat2( str, rb_obj_classname(input) );
- str = rb_str_cat2( str, " " );
- asStr = rb_inspect(input);
- if ( RSTRING_LEN(asStr) > 30 )
- {
- str = rb_str_cat( str, StringValuePtr(asStr), 30 );
- str = rb_str_cat2( str, "..." );
- }
- else
- {
- str = rb_str_append( str, asStr );
- }
-
- if ( name )
- {
- str = rb_str_cat2( str, "\n\tin SWIG method '" );
- str = rb_str_cat2( str, name );
- str = rb_str_cat2( str, "'" );
- }
-
- return StringValuePtr( str );
-}
-
-/* This function is called when an overloaded method fails */
-SWIGINTERN
-void Ruby_Format_OverloadedError(
- const int argc,
- const int maxargs,
- const char* method,
- const char* prototypes
- )
-{
- const char* msg = "Wrong # of arguments";
- if ( argc <= maxargs ) msg = "Wrong arguments";
- rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
- "Possible C/C++ prototypes are:\n%s",
- msg, method, prototypes);
-}
-
-/* -----------------------------------------------------------------------------
- * See the LICENSE file for information on copyright, usage and redistribution
- * of SWIG, and the README file for authors - http://www.swig.org/release.html.
- *
- * rubytracking.swg
- *
- * This file contains support for tracking mappings from
- * Ruby objects to C++ objects. This functionality is needed
- * to implement mark functions for Ruby's mark and sweep
- * garbage collector.
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Ruby 1.8 actually assumes the first case. */
-#if SIZEOF_VOIDP == SIZEOF_LONG
-# define SWIG2NUM(v) LONG2NUM((unsigned long)v)
-# define NUM2SWIG(x) (unsigned long)NUM2LONG(x)
-#elif SIZEOF_VOIDP == SIZEOF_LONG_LONG
-# define SWIG2NUM(v) LL2NUM((unsigned long long)v)
-# define NUM2SWIG(x) (unsigned long long)NUM2LL(x)
-#else
-# error sizeof(void*) is not the same as long or long long
-#endif
-
-
-/* Global Ruby hash table to store Trackings from C/C++
- structs to Ruby Objects.
-*/
-static VALUE swig_ruby_trackings = Qnil;
-
-/* Global variable that stores a reference to the ruby
- hash table delete function. */
-static ID swig_ruby_hash_delete;
-
-/* Setup a Ruby hash table to store Trackings */
-SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
- /* Create a ruby hash table to store Trackings from C++
- objects to Ruby objects. */
-
- /* Try to see if some other .so has already created a
- tracking hash table, which we keep hidden in an instance var
- in the SWIG module.
- This is done to allow multiple DSOs to share the same
- tracking table.
- */
- ID trackings_id = rb_intern( "@__trackings__" );
- VALUE verbose = rb_gv_get("VERBOSE");
- rb_gv_set("VERBOSE", Qfalse);
- swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id );
- rb_gv_set("VERBOSE", verbose);
-
- /* No, it hasn't. Create one ourselves */
- if ( swig_ruby_trackings == Qnil )
- {
- swig_ruby_trackings = rb_hash_new();
- rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings );
- }
-
- /* Now store a reference to the hash table delete function
- so that we only have to look it up once.*/
- swig_ruby_hash_delete = rb_intern("delete");
-}
-
-/* Get a Ruby number to reference a pointer */
-SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
- /* We cast the pointer to an unsigned long
- and then store a reference to it using
- a Ruby number object. */
-
- /* Convert the pointer to a Ruby number */
- return SWIG2NUM(ptr);
-}
-
-/* Get a Ruby number to reference an object */
-SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
- /* We cast the object to an unsigned long
- and then store a reference to it using
- a Ruby number object. */
-
- /* Convert the Object to a Ruby number */
- return SWIG2NUM(object);
-}
-
-/* Get a Ruby object from a previously stored reference */
-SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
- /* The provided Ruby number object is a reference
- to the Ruby object we want.*/
-
- /* Convert the Ruby number to a Ruby object */
- return NUM2SWIG(reference);
-}
-
-/* Add a Tracking from a C/C++ struct to a Ruby object */
-SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) {
- /* In a Ruby hash table we store the pointer and
- the associated Ruby object. The trick here is
- that we cannot store the Ruby object directly - if
- we do then it cannot be garbage collected. So
- instead we typecast it as a unsigned long and
- convert it to a Ruby number object.*/
-
- /* Get a reference to the pointer as a Ruby number */
- VALUE key = SWIG_RubyPtrToReference(ptr);
-
- /* Get a reference to the Ruby object as a Ruby number */
- VALUE value = SWIG_RubyObjectToReference(object);
-
- /* Store the mapping to the global hash table. */
- rb_hash_aset(swig_ruby_trackings, key, value);
-}
-
-/* Get the Ruby object that owns the specified C/C++ struct */
-SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
- /* Get a reference to the pointer as a Ruby number */
- VALUE key = SWIG_RubyPtrToReference(ptr);
-
- /* Now lookup the value stored in the global hash table */
- VALUE value = rb_hash_aref(swig_ruby_trackings, key);
-
- if (value == Qnil) {
- /* No object exists - return nil. */
- return Qnil;
- }
- else {
- /* Convert this value to Ruby object */
- return SWIG_RubyReferenceToObject(value);
- }
-}
-
-/* Remove a Tracking from a C/C++ struct to a Ruby object. It
- is very important to remove objects once they are destroyed
- since the same memory address may be reused later to create
- a new object. */
-SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) {
- /* Get a reference to the pointer as a Ruby number */
- VALUE key = SWIG_RubyPtrToReference(ptr);
-
- /* Delete the object from the hash table by calling Ruby's
- do this we need to call the Hash.delete method.*/
- rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key);
-}
-
-/* This is a helper method that unlinks a Ruby object from its
- underlying C++ object. This is needed if the lifetime of the
- Ruby object is longer than the C++ object */
-SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
- VALUE object = SWIG_RubyInstanceFor(ptr);
-
- if (object != Qnil) {
- DATA_PTR(object) = 0;
- }
-}
-
-
-#ifdef __cplusplus
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * Ruby API portion that goes into the runtime
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-SWIGINTERN VALUE
-SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
- if (NIL_P(target)) {
- target = o;
- } else {
- if (TYPE(target) != T_ARRAY) {
- VALUE o2 = target;
- target = rb_ary_new();
- rb_ary_push(target, o2);
- }
- rb_ary_push(target, o);
- }
- return target;
-}
-
-/* For ruby1.8.4 and earlier. */
-#ifndef RUBY_INIT_STACK
- RUBY_EXTERN void Init_stack(VALUE* addr);
-# define RUBY_INIT_STACK \
- VALUE variable_in_this_stack_frame; \
- Init_stack(&variable_in_this_stack_frame);
-#endif
-
-
-#ifdef __cplusplus
-}
-#endif
-
-
-/* -----------------------------------------------------------------------------
- * See the LICENSE file for information on copyright, usage and redistribution
- * of SWIG, and the README file for authors - http://www.swig.org/release.html.
- *
- * rubyrun.swg
- *
- * This file contains the runtime support for Ruby modules
- * and includes code for managing global variables and pointer
- * type checking.
- * ----------------------------------------------------------------------------- */
-
-/* For backward compatibility only */
-#define SWIG_POINTER_EXCEPTION 0
-
-/* for raw pointers */
-#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
-#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own)
-#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags)
-#define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own)
-#define swig_owntype ruby_owntype
-
-/* for raw packed data */
-#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
-#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
-
-/* for class or struct pointers */
-#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
-#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
-
-/* for C or C++ function pointers */
-#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
-#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
-
-/* for C++ member pointers, ie, member methods */
-#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty)
-#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
-
-
-/* Runtime API */
-
-#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule()
-#define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer)
-
-
-/* Error manipulation */
-
-#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
-#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), msg)
-#define SWIG_fail goto fail
-
-
-/* Ruby-specific SWIG API */
-
-#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
-#define SWIG_define_class(ty) SWIG_Ruby_define_class(ty)
-#define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty)
-#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
-#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
-
-#include "assert.h"
-
-/* -----------------------------------------------------------------------------
- * pointers/data manipulation
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct {
- VALUE klass;
- VALUE mImpl;
- void (*mark)(void *);
- void (*destroy)(void *);
- int trackObjects;
-} swig_class;
-
-
-/* Global pointer used to keep some internal SWIG stuff */
-static VALUE _cSWIG_Pointer = Qnil;
-static VALUE swig_runtime_data_type_pointer = Qnil;
-
-/* Global IDs used to keep some internal SWIG stuff */
-static ID swig_arity_id = 0;
-static ID swig_call_id = 0;
-
-/*
- If your swig extension is to be run within an embedded ruby and has
- director callbacks, you should set -DRUBY_EMBEDDED during compilation.
- This will reset ruby's stack frame on each entry point from the main
- program the first time a virtual director function is invoked (in a
- non-recursive way).
- If this is not done, you run the risk of Ruby trashing the stack.
-*/
-
-#ifdef RUBY_EMBEDDED
-
-# define SWIG_INIT_STACK \
- if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \
- ++swig_virtual_calls;
-# define SWIG_RELEASE_STACK --swig_virtual_calls;
-# define Ruby_DirectorTypeMismatchException(x) \
- rb_raise( rb_eTypeError, x ); return c_result;
-
- static unsigned int swig_virtual_calls = 0;
-
-#else /* normal non-embedded extension */
-
-# define SWIG_INIT_STACK
-# define SWIG_RELEASE_STACK
-# define Ruby_DirectorTypeMismatchException(x) \
- throw Swig::DirectorTypeMismatchException( x );
-
-#endif /* RUBY_EMBEDDED */
-
-
-SWIGRUNTIME VALUE
-getExceptionClass(void) {
- static int init = 0;
- static VALUE rubyExceptionClass ;
- if (!init) {
- init = 1;
- rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
- }
- return rubyExceptionClass;
-}
-
-/* This code checks to see if the Ruby object being raised as part
- of an exception inherits from the Ruby class Exception. If so,
- the object is simply returned. If not, then a new Ruby exception
- object is created and that will be returned to Ruby.*/
-SWIGRUNTIME VALUE
-SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) {
- VALUE exceptionClass = getExceptionClass();
- if (rb_obj_is_kind_of(obj, exceptionClass)) {
- return obj;
- } else {
- return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj));
- }
-}
-
-/* Initialize Ruby runtime support */
-SWIGRUNTIME void
-SWIG_Ruby_InitRuntime(void)
-{
- if (_mSWIG == Qnil) {
- _mSWIG = rb_define_module("SWIG");
- swig_call_id = rb_intern("call");
- swig_arity_id = rb_intern("arity");
- }
-}
-
-/* Define Ruby class for C type */
-SWIGRUNTIME void
-SWIG_Ruby_define_class(swig_type_info *type)
-{
- VALUE klass;
- char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
- sprintf(klass_name, "TYPE%s", type->name);
- if (NIL_P(_cSWIG_Pointer)) {
- _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
- rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
- }
- klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
- free((void *) klass_name);
-}
-
-/* Create a new pointer object */
-SWIGRUNTIME VALUE
-SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
-{
- int own = flags & SWIG_POINTER_OWN;
- int track;
- char *klass_name;
- swig_class *sklass;
- VALUE klass;
- VALUE obj;
-
- if (!ptr)
- return Qnil;
-
- if (type->clientdata) {
- sklass = (swig_class *) type->clientdata;
-
- /* Are we tracking this class and have we already returned this Ruby object? */
- track = sklass->trackObjects;
- if (track) {
- obj = SWIG_RubyInstanceFor(ptr);
-
- /* Check the object's type and make sure it has the correct type.
- It might not in cases where methods do things like
- downcast methods. */
- if (obj != Qnil) {
- VALUE value = rb_iv_get(obj, "@__swigtype__");
- char* type_name = RSTRING_PTR(value);
-
- if (strcmp(type->name, type_name) == 0) {
- return obj;
- }
- }
- }
-
- /* Create a new Ruby object */
- obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
- ( own ? VOIDFUNC(sklass->destroy) :
- (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
- ), ptr);
-
- /* If tracking is on for this class then track this object. */
- if (track) {
- SWIG_RubyAddTracking(ptr, obj);
- }
- } else {
- klass_name = (char *) malloc(4 + strlen(type->name) + 1);
- sprintf(klass_name, "TYPE%s", type->name);
- klass = rb_const_get(_mSWIG, rb_intern(klass_name));
- free((void *) klass_name);
- obj = Data_Wrap_Struct(klass, 0, 0, ptr);
- }
- rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
-
- return obj;
-}
-
-/* Create a new class instance (always owned) */
-SWIGRUNTIME VALUE
-SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
-{
- VALUE obj;
- swig_class *sklass = (swig_class *) type->clientdata;
- obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
- rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
- return obj;
-}
-
-/* Get type mangle from class name */
-SWIGRUNTIMEINLINE char *
-SWIG_Ruby_MangleStr(VALUE obj)
-{
- VALUE stype = rb_iv_get(obj, "@__swigtype__");
- return StringValuePtr(stype);
-}
-
-/* Acquire a pointer value */
-typedef void (*ruby_owntype)(void*);
-
-SWIGRUNTIME ruby_owntype
-SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) {
- if (obj) {
- ruby_owntype oldown = RDATA(obj)->dfree;
- RDATA(obj)->dfree = own;
- return oldown;
- } else {
- return 0;
- }
-}
-
-/* Convert a pointer value */
-SWIGRUNTIME int
-SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own)
-{
- char *c;
- swig_cast_info *tc;
- void *vptr = 0;
-
- /* Grab the pointer */
- if (NIL_P(obj)) {
- *ptr = 0;
- return SWIG_OK;
- } else {
- if (TYPE(obj) != T_DATA) {
- return SWIG_ERROR;
- }
- Data_Get_Struct(obj, void, vptr);
- }
-
- if (own) *own = RDATA(obj)->dfree;
-
- /* Check to see if the input object is giving up ownership
- of the underlying C struct or C++ object. If so then we
- need to reset the destructor since the Ruby object no
- longer owns the underlying C++ object.*/
- if (flags & SWIG_POINTER_DISOWN) {
- /* Is tracking on for this class? */
- int track = 0;
- if (ty && ty->clientdata) {
- swig_class *sklass = (swig_class *) ty->clientdata;
- track = sklass->trackObjects;
- }
-
- if (track) {
- /* We are tracking objects for this class. Thus we change the destructor
- * to SWIG_RubyRemoveTracking. This allows us to
- * remove the mapping from the C++ to Ruby object
- * when the Ruby object is garbage collected. If we don't
- * do this, then it is possible we will return a reference
- * to a Ruby object that no longer exists thereby crashing Ruby. */
- RDATA(obj)->dfree = SWIG_RubyRemoveTracking;
- } else {
- RDATA(obj)->dfree = 0;
- }
- }
-
- /* Do type-checking if type info was provided */
- if (ty) {
- if (ty->clientdata) {
- if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) {
- if (vptr == 0) {
- /* The object has already been deleted */
- return SWIG_ObjectPreviouslyDeletedError;
- }
- *ptr = vptr;
- return SWIG_OK;
- }
- }
- if ((c = SWIG_MangleStr(obj)) == NULL) {
- return SWIG_ERROR;
- }
- tc = SWIG_TypeCheck(c, ty);
- if (!tc) {
- return SWIG_ERROR;
- } else {
- int newmemory = 0;
- *ptr = SWIG_TypeCast(tc, vptr, &newmemory);
- assert(!newmemory); /* newmemory handling not yet implemented */
- }
- } else {
- *ptr = vptr;
- }
-
- return SWIG_OK;
-}
-
-/* Check convert */
-SWIGRUNTIMEINLINE int
-SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty)
-{
- char *c = SWIG_MangleStr(obj);
- if (!c) return 0;
- return SWIG_TypeCheck(c,ty) != 0;
-}
-
-SWIGRUNTIME VALUE
-SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
- char result[1024];
- char *r = result;
- if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
- *(r++) = '_';
- r = SWIG_PackData(r, ptr, sz);
- strcpy(r, type->name);
- return rb_str_new2(result);
-}
-
-/* Convert a packed value value */
-SWIGRUNTIME int
-SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) {
- swig_cast_info *tc;
- const char *c;
-
- if (TYPE(obj) != T_STRING) goto type_error;
- c = StringValuePtr(obj);
- /* Pointer values must start with leading underscore */
- if (*c != '_') goto type_error;
- c++;
- c = SWIG_UnpackData(c, ptr, sz);
- if (ty) {
- tc = SWIG_TypeCheck(c, ty);
- if (!tc) goto type_error;
- }
- return SWIG_OK;
-
- type_error:
- return SWIG_ERROR;
-}
-
-SWIGRUNTIME swig_module_info *
-SWIG_Ruby_GetModule(void)
-{
- VALUE pointer;
- swig_module_info *ret = 0;
- VALUE verbose = rb_gv_get("VERBOSE");
-
- /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */
- rb_gv_set("VERBOSE", Qfalse);
-
- /* first check if pointer already created */
- pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
- if (pointer != Qnil) {
- Data_Get_Struct(pointer, swig_module_info, ret);
- }
-
- /* reinstate warnings */
- rb_gv_set("VERBOSE", verbose);
- return ret;
-}
-
-SWIGRUNTIME void
-SWIG_Ruby_SetModule(swig_module_info *pointer)
-{
- /* register a new class */
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
- /* create and store the structure pointer to a global variable */
- swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
- rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
-}
-
-/* This function can be used to check whether a proc or method or similarly
- callable function has been passed. Usually used in a %typecheck, like:
-
- %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) {
- $result = SWIG_Ruby_isCallable( $input );
- }
- */
-SWIGINTERN
-int SWIG_Ruby_isCallable( VALUE proc )
-{
- if ( rb_respond_to( proc, swig_call_id ) == Qtrue )
- return 1;
- return 0;
-}
-
-/* This function can be used to check the arity (number of arguments)
- a proc or method can take. Usually used in a %typecheck.
- Valid arities will be that equal to minimal or those < 0
- which indicate a variable number of parameters at the end.
- */
-SWIGINTERN
-int SWIG_Ruby_arity( VALUE proc, int minimal )
-{
- if ( rb_respond_to( proc, swig_arity_id ) == Qtrue )
- {
- VALUE num = rb_funcall( proc, swig_arity_id, 0 );
- int arity = NUM2INT(num);
- if ( arity < 0 && (arity+1) < -minimal ) return 1;
- if ( arity == minimal ) return 1;
- return 1;
- }
- return 0;
-}
-
-
-#ifdef __cplusplus
-}
-#endif
-
-
-
-#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
-
-#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
-
-
-
- #define SWIG_exception(code, msg) do { SWIG_Error(code, msg);; } while(0)
-
-
-/* -------- TYPES TABLE (BEGIN) -------- */
-
-#define SWIGTYPE_p_OSRCoordinateTransformationShadow swig_types[0]
-#define SWIGTYPE_p_OSRSpatialReferenceShadow swig_types[1]
-#define SWIGTYPE_p_char swig_types[2]
-#define SWIGTYPE_p_double swig_types[3]
-#define SWIGTYPE_p_int swig_types[4]
-#define SWIGTYPE_p_long swig_types[5]
-#define SWIGTYPE_p_p_char swig_types[6]
-#define SWIGTYPE_p_p_double swig_types[7]
-static swig_type_info *swig_types[9];
-static swig_module_info swig_module = {swig_types, 8, 0, 0, 0, 0};
-#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
-#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
-
-/* -------- TYPES TABLE (END) -------- */
-
-#define SWIG_init Init_osr
-#define SWIG_name "Gdal::Osr"
-
-static VALUE mOsr;
-
-#define SWIG_RUBY_THREAD_BEGIN_BLOCK
-#define SWIG_RUBY_THREAD_END_BLOCK
-
-
-#define SWIGVERSION 0x010340
-#define SWIG_VERSION SWIGVERSION
-
-
-#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
-#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
-
-
-#include <stdexcept>
-
-
-SWIGINTERN swig_type_info*
-SWIG_pchar_descriptor(void)
-{
- static int init = 0;
- static swig_type_info* info = 0;
- if (!init) {
- info = SWIG_TypeQuery("_p_char");
- init = 1;
- }
- return info;
-}
-
-
-SWIGINTERNINLINE VALUE
-SWIG_FromCharPtrAndSize(const char* carray, size_t size)
-{
- if (carray) {
- if (size > LONG_MAX) {
- swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
- return pchar_descriptor ?
- SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil;
- } else {
- return rb_str_new(carray, static_cast< long >(size));
- }
- } else {
- return Qnil;
- }
-}
-
-
-SWIGINTERNINLINE VALUE
-SWIG_FromCharPtr(const char *cptr)
-{
- return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
-}
-
-
- #define SWIG_From_double rb_float_new
-
-
-typedef char retStringAndCPLFree;
-
-
-#include <iostream>
-using namespace std;
-
-#include "cpl_string.h"
-#include "cpl_conv.h"
-
-#include "ogr_srs_api.h"
-
-#ifdef DEBUG
-typedef struct OGRSpatialReferenceHS OSRSpatialReferenceShadow;
-typedef struct OGRCoordinateTransformationHS OSRCoordinateTransformationShadow;
-typedef struct OGRCoordinateTransformationHS OGRCoordinateTransformationShadow;
-#else
-typedef void OSRSpatialReferenceShadow;
-typedef void OSRCoordinateTransformationShadow;
-#endif
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-// Ruby 1.9 changed the file name of this header
-#ifdef HAVE_RUBY_IO_H
-#include "ruby/io.h"
-#else
-#include "rubyio.h"
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-struct timeval rb_time_timeval(VALUE);
-#endif
-#ifdef __cplusplus
-}
-#endif
-
-
-
-#include "ogr_core.h"
-static char const *
-OGRErrMessages( int rc ) {
- switch( rc ) {
- case OGRERR_NONE:
- return "OGR Error: None";
- case OGRERR_NOT_ENOUGH_DATA:
- return "OGR Error: Not enough data to deserialize";
- case OGRERR_NOT_ENOUGH_MEMORY:
- return "OGR Error: Not enough memory";
- case OGRERR_UNSUPPORTED_GEOMETRY_TYPE:
- return "OGR Error: Unsupported geometry type";
- case OGRERR_UNSUPPORTED_OPERATION:
- return "OGR Error: Unsupported operation";
- case OGRERR_CORRUPT_DATA:
- return "OGR Error: Corrupt data";
- case OGRERR_FAILURE:
- return "OGR Error: General Error";
- case OGRERR_UNSUPPORTED_SRS:
- return "OGR Error: Unsupported SRS";
- case OGRERR_INVALID_HANDLE:
- return "OGR Error: Invalid handle";
- default:
- return "OGR Error: Unknown";
- }
-}
-
-
-OGRErr GetWellKnownGeogCSAsWKT( const char *name, char **argout ) {
- OGRSpatialReferenceH srs = OSRNewSpatialReference("");
- OGRErr rcode = OSRSetWellKnownGeogCS( srs, name );
- if( rcode == OGRERR_NONE )
- rcode = OSRExportToWkt ( srs, argout );
- OSRDestroySpatialReference( srs );
- return rcode;
-}
-
-
-SWIGINTERN int
-SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
-{
- if (TYPE(obj) == T_STRING) {
- #if defined(StringValuePtr)
- char *cstr = StringValuePtr(obj);
- #else
- char *cstr = STR2CSTR(obj);
- #endif
- size_t size = RSTRING_LEN(obj) + 1;
- if (cptr) {
- if (alloc) {
- if (*alloc == SWIG_NEWOBJ) {
- *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size)));
- } else {
- *cptr = cstr;
- *alloc = SWIG_OLDOBJ;
- }
- }
- }
- if (psize) *psize = size;
- return SWIG_OK;
- } else {
- swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
- if (pchar_descriptor) {
- void* vptr = 0;
- if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
- if (cptr) *cptr = (char *)vptr;
- if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0;
- if (alloc) *alloc = SWIG_OLDOBJ;
- return SWIG_OK;
- }
- }
- }
- return SWIG_TypeError;
-}
-
-
-
-
-
-#define output_helper SWIG_Ruby_AppendOutput
-
-
-OGRErr GetUserInputAsWKT( const char *name, char **argout ) {
- OGRSpatialReferenceH srs = OSRNewSpatialReference("");
- OGRErr rcode = OSRSetFromUserInput( srs, name );
- if( rcode == OGRERR_NONE )
- rcode = OSRExportToWkt ( srs, argout );
- OSRDestroySpatialReference( srs );
- return rcode;
-}
-
-SWIGINTERN OSRSpatialReferenceShadow *new_OSRSpatialReferenceShadow(char const *wkt=""){
- return (OSRSpatialReferenceShadow*) OSRNewSpatialReference(wkt);
- }
-SWIGINTERN char *OSRSpatialReferenceShadow___str__(OSRSpatialReferenceShadow *self){
- char *buf = 0;
- OSRExportToPrettyWkt( self, &buf, 0 );
- return buf;
- }
-SWIGINTERN int OSRSpatialReferenceShadow_IsSame(OSRSpatialReferenceShadow *self,OSRSpatialReferenceShadow *rhs){
- return OSRIsSame( self, rhs );
- }
-
-#include <limits.h>
-#if !defined(SWIG_NO_LLONG_MAX)
-# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
-# define LLONG_MAX __LONG_LONG_MAX__
-# define LLONG_MIN (-LLONG_MAX - 1LL)
-# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
-# endif
-#endif
-
-
- #define SWIG_From_long LONG2NUM
-
-
-SWIGINTERNINLINE VALUE
-SWIG_From_int (int value)
-{
- return SWIG_From_long (value);
-}
-
-SWIGINTERN int OSRSpatialReferenceShadow_IsSameGeogCS(OSRSpatialReferenceShadow *self,OSRSpatialReferenceShadow *rhs){
- return OSRIsSameGeogCS( self, rhs );
- }
-SWIGINTERN int OSRSpatialReferenceShadow_IsGeographic(OSRSpatialReferenceShadow *self){
- return OSRIsGeographic(self);
- }
-SWIGINTERN int OSRSpatialReferenceShadow_IsProjected(OSRSpatialReferenceShadow *self){
- return OSRIsProjected(self);
- }
-SWIGINTERN int OSRSpatialReferenceShadow_IsLocal(OSRSpatialReferenceShadow *self){
- return OSRIsLocal(self);
- }
-SWIGINTERN int OSRSpatialReferenceShadow_EPSGTreatsAsLatLong(OSRSpatialReferenceShadow *self){
- return OSREPSGTreatsAsLatLong(self);
- }
-
-SWIGINTERN VALUE
-SWIG_ruby_failed(void)
-{
- return Qnil;
-}
-
-
-/*@SWIG:/usr/share/swig1.3/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
-SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
-{
- VALUE obj = args[0];
- VALUE type = TYPE(obj);
- long *res = (long *)(args[1]);
- *res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj);
- return obj;
-}
-/*@SWIG@*/
-
-SWIGINTERN int
-SWIG_AsVal_long (VALUE obj, long* val)
-{
- VALUE type = TYPE(obj);
- if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
- long v;
- VALUE a[2];
- a[0] = obj;
- a[1] = (VALUE)(&v);
- if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
- if (val) *val = v;
- return SWIG_OK;
- }
- }
- return SWIG_TypeError;
-}
-
-
-SWIGINTERN int
-SWIG_AsVal_int (VALUE obj, int *val)
-{
- long v;
- int res = SWIG_AsVal_long (obj, &v);
- if (SWIG_IsOK(res)) {
- if ((v < INT_MIN || v > INT_MAX)) {
- return SWIG_OverflowError;
- } else {
- if (val) *val = static_cast< int >(v);
- }
- }
- return res;
-}
-
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetAuthority(OSRSpatialReferenceShadow *self,char const *pszTargetKey,char const *pszAuthority,int nCode){
- return OSRSetAuthority( self, pszTargetKey, pszAuthority, nCode );
- }
-SWIGINTERN char const *OSRSpatialReferenceShadow_GetAttrValue(OSRSpatialReferenceShadow *self,char const *name,int child=0){
- return OSRGetAttrValue( self, name, child );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetAttrValue(OSRSpatialReferenceShadow *self,char const *name,char const *value){
- return OSRSetAttrValue( self, name, value );
- }
-
-/*@SWIG:/usr/share/swig1.3/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
-SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
-{
- VALUE obj = args[0];
- VALUE type = TYPE(obj);
- double *res = (double *)(args[1]);
- *res = NUM2DBL(obj);
- return obj;
-}
-/*@SWIG@*/
-
-SWIGINTERN int
-SWIG_AsVal_double (VALUE obj, double *val)
-{
- VALUE type = TYPE(obj);
- if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) {
- double v;
- VALUE a[2];
- a[0] = obj;
- a[1] = (VALUE)(&v);
- if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
- if (val) *val = v;
- return SWIG_OK;
- }
- }
- return SWIG_TypeError;
-}
-
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetAngularUnits(OSRSpatialReferenceShadow *self,char const *name,double to_radians){
- return OSRSetAngularUnits( self, name, to_radians );
- }
-SWIGINTERN double OSRSpatialReferenceShadow_GetAngularUnits(OSRSpatialReferenceShadow *self){
- // Return code ignored.
- return OSRGetAngularUnits( self, 0 );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetLinearUnits(OSRSpatialReferenceShadow *self,char const *name,double to_meters){
- return OSRSetLinearUnits( self, name, to_meters );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetLinearUnitsAndUpdateParameters(OSRSpatialReferenceShadow *self,char const *name,double to_meters){
- return OSRSetLinearUnitsAndUpdateParameters( self, name, to_meters );
- }
-SWIGINTERN double OSRSpatialReferenceShadow_GetLinearUnits(OSRSpatialReferenceShadow *self){
- // Return code ignored.
- return OSRGetLinearUnits( self, 0 );
- }
-SWIGINTERN char const *OSRSpatialReferenceShadow_GetLinearUnitsName(OSRSpatialReferenceShadow *self){
- const char *name = 0;
- if ( OSRIsProjected( self ) ) {
- name = OSRGetAttrValue( self, "PROJCS|UNIT", 0 );
- }
- else if ( OSRIsLocal( self ) ) {
- name = OSRGetAttrValue( self, "LOCAL_CS|UNIT", 0 );
- }
-
- if (name != 0)
- return name;
-
- return "Meter";
- }
-SWIGINTERN char const *OSRSpatialReferenceShadow_GetAuthorityCode(OSRSpatialReferenceShadow *self,char const *target_key){
- return OSRGetAuthorityCode( self, target_key );
- }
-SWIGINTERN char const *OSRSpatialReferenceShadow_GetAuthorityName(OSRSpatialReferenceShadow *self,char const *target_key){
- return OSRGetAuthorityName( self, target_key );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetUTM(OSRSpatialReferenceShadow *self,int zone,int north=1){
- return OSRSetUTM( self, zone, north );
- }
-SWIGINTERN int OSRSpatialReferenceShadow_GetUTMZone(OSRSpatialReferenceShadow *self){
- // Note: we will return south zones as negative since it is
- // hard to return two values as the C API does.
- int bNorth = FALSE;
- int nZone = OSRGetUTMZone( self, &bNorth );
- if( !bNorth )
- nZone = -1 * ABS(nZone);
- return nZone;
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetStatePlane(OSRSpatialReferenceShadow *self,int zone,int is_nad83=1,char const *unitsname="",double units=0.0){
- return OSRSetStatePlaneWithUnits( self, zone, is_nad83, unitsname, units );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_AutoIdentifyEPSG(OSRSpatialReferenceShadow *self){
- return OSRAutoIdentifyEPSG( self );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetProjection(OSRSpatialReferenceShadow *self,char const *arg){
- return OSRSetProjection( self, arg );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetProjParm(OSRSpatialReferenceShadow *self,char const *name,double val){
- return OSRSetProjParm( self, name, val );
- }
-SWIGINTERN double OSRSpatialReferenceShadow_GetProjParm(OSRSpatialReferenceShadow *self,char const *name,double default_val=0.0){
- // Return code ignored.
- return OSRGetProjParm( self, name, default_val, 0 );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetNormProjParm(OSRSpatialReferenceShadow *self,char const *name,double val){
- return OSRSetNormProjParm( self, name, val );
- }
-SWIGINTERN double OSRSpatialReferenceShadow_GetNormProjParm(OSRSpatialReferenceShadow *self,char const *name,double default_val=0.0){
- // Return code ignored.
- return OSRGetNormProjParm( self, name, default_val, 0 );
- }
-SWIGINTERN double OSRSpatialReferenceShadow_GetSemiMajor(OSRSpatialReferenceShadow *self){
- // Return code ignored.
- return OSRGetSemiMajor( self, 0 );
- }
-SWIGINTERN double OSRSpatialReferenceShadow_GetSemiMinor(OSRSpatialReferenceShadow *self){
- // Return code ignored.
- return OSRGetSemiMinor( self, 0 );
- }
-SWIGINTERN double OSRSpatialReferenceShadow_GetInvFlattening(OSRSpatialReferenceShadow *self){
- // Return code ignored.
- return OSRGetInvFlattening( self, 0 );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetACEA(OSRSpatialReferenceShadow *self,double stdp1,double stdp2,double clat,double clong,double fe,double fn){
- return OSRSetACEA( self, stdp1, stdp2, clat, clong,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetAE(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
- return OSRSetAE( self, clat, clong,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetBonne(OSRSpatialReferenceShadow *self,double stdp,double cm,double fe,double fn){
- return OSRSetBonne( self, stdp, cm, fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetCEA(OSRSpatialReferenceShadow *self,double stdp1,double cm,double fe,double fn){
- return OSRSetCEA( self, stdp1, cm,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetCS(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
- return OSRSetCS( self, clat, clong,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetEC(OSRSpatialReferenceShadow *self,double stdp1,double stdp2,double clat,double clong,double fe,double fn){
- return OSRSetEC( self, stdp1, stdp2, clat, clong,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetEckertIV(OSRSpatialReferenceShadow *self,double cm,double fe,double fn){
- return OSRSetEckertIV( self, cm, fe, fn);
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetEckertVI(OSRSpatialReferenceShadow *self,double cm,double fe,double fn){
- return OSRSetEckertVI( self, cm, fe, fn);
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetEquirectangular(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
- return OSRSetEquirectangular( self, clat, clong,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetEquirectangular2(OSRSpatialReferenceShadow *self,double clat,double clong,double pseudostdparallellat,double fe,double fn){
- return OSRSetEquirectangular2( self, clat, clong,
- pseudostdparallellat,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetGaussSchreiberTMercator(OSRSpatialReferenceShadow *self,double clat,double clong,double sc,double fe,double fn){
- return OSRSetGaussSchreiberTMercator( self, clat, clong, sc, fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetGS(OSRSpatialReferenceShadow *self,double cm,double fe,double fn){
- return OSRSetGS( self, cm, fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetGH(OSRSpatialReferenceShadow *self,double cm,double fe,double fn){
- return OSRSetGH( self, cm, fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetGEOS(OSRSpatialReferenceShadow *self,double cm,double satelliteheight,double fe,double fn){
- return OSRSetGEOS( self, cm, satelliteheight,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetGnomonic(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
- return OSRSetGnomonic( self, clat, clong,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetHOM(OSRSpatialReferenceShadow *self,double clat,double clong,double azimuth,double recttoskew,double scale,double fe,double fn){
- return OSRSetHOM( self, clat, clong, azimuth, recttoskew,
- scale, fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetHOM2PNO(OSRSpatialReferenceShadow *self,double clat,double dfLat1,double dfLong1,double dfLat2,double dfLong2,double scale,double fe,double fn){
- return OSRSetHOM2PNO( self, clat, dfLat1, dfLong1, dfLat2, dfLong2,
- scale, fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetKrovak(OSRSpatialReferenceShadow *self,double clat,double clong,double azimuth,double pseudostdparallellat,double scale,double fe,double fn){
- return OSRSetKrovak( self, clat, clong,
- azimuth, pseudostdparallellat,
- scale, fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetLAEA(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
- return OSRSetLAEA( self, clat, clong,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetLCC(OSRSpatialReferenceShadow *self,double stdp1,double stdp2,double clat,double clong,double fe,double fn){
- return OSRSetLCC( self, stdp1, stdp2, clat, clong,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetLCC1SP(OSRSpatialReferenceShadow *self,double clat,double clong,double scale,double fe,double fn){
- return OSRSetLCC1SP( self, clat, clong, scale,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetLCCB(OSRSpatialReferenceShadow *self,double stdp1,double stdp2,double clat,double clong,double fe,double fn){
- return OSRSetLCCB( self, stdp1, stdp2, clat, clong,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetMC(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
- return OSRSetMC( self, clat, clong,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetMercator(OSRSpatialReferenceShadow *self,double clat,double clong,double scale,double fe,double fn){
- return OSRSetMercator( self, clat, clong,
- scale, fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetMollweide(OSRSpatialReferenceShadow *self,double cm,double fe,double fn){
- return OSRSetMollweide( self, cm,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetNZMG(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
- return OSRSetNZMG( self, clat, clong,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetOS(OSRSpatialReferenceShadow *self,double dfOriginLat,double dfCMeridian,double scale,double fe,double fn){
- return OSRSetOS( self, dfOriginLat, dfCMeridian, scale,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetOrthographic(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
- return OSRSetOrthographic( self, clat, clong,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetPolyconic(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
- return OSRSetPolyconic( self, clat, clong,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetPS(OSRSpatialReferenceShadow *self,double clat,double clong,double scale,double fe,double fn){
- return OSRSetPS( self, clat, clong, scale,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetRobinson(OSRSpatialReferenceShadow *self,double clong,double fe,double fn){
- return OSRSetRobinson( self, clong, fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetSinusoidal(OSRSpatialReferenceShadow *self,double clong,double fe,double fn){
- return OSRSetSinusoidal( self, clong, fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetStereographic(OSRSpatialReferenceShadow *self,double clat,double clong,double scale,double fe,double fn){
- return OSRSetStereographic( self, clat, clong, scale,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetSOC(OSRSpatialReferenceShadow *self,double latitudeoforigin,double cm,double fe,double fn){
- return OSRSetSOC( self, latitudeoforigin, cm,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetTM(OSRSpatialReferenceShadow *self,double clat,double clong,double scale,double fe,double fn){
- return OSRSetTM( self, clat, clong, scale,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetTMVariant(OSRSpatialReferenceShadow *self,char const *pszVariantName,double clat,double clong,double scale,double fe,double fn){
- return OSRSetTMVariant( self, pszVariantName, clat, clong,
- scale, fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetTMG(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
- return OSRSetTMG( self, clat, clong,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetTMSO(OSRSpatialReferenceShadow *self,double clat,double clong,double scale,double fe,double fn){
- return OSRSetTMSO( self, clat, clong, scale,
- fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetVDG(OSRSpatialReferenceShadow *self,double clong,double fe,double fn){
- return OSRSetVDG( self, clong, fe, fn );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetWellKnownGeogCS(OSRSpatialReferenceShadow *self,char const *name){
- return OSRSetWellKnownGeogCS( self, name );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetFromUserInput(OSRSpatialReferenceShadow *self,char const *name){
- return OSRSetFromUserInput( self, name );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_CopyGeogCSFrom(OSRSpatialReferenceShadow *self,OSRSpatialReferenceShadow *rhs){
- return OSRCopyGeogCSFrom( self, rhs );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetTOWGS84(OSRSpatialReferenceShadow *self,double p1,double p2,double p3,double p4=0.0,double p5=0.0,double p6=0.0,double p7=0.0){
-
- return OSRSetTOWGS84( self, p1, p2, p3, p4, p5, p6, p7 );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_GetTOWGS84(OSRSpatialReferenceShadow *self,double argout[7]){
- return OSRGetTOWGS84( self, argout, 7 );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetLocalCS(OSRSpatialReferenceShadow *self,char const *pszName){
- return OSRSetLocalCS( self, pszName );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetGeogCS(OSRSpatialReferenceShadow *self,char const *pszGeogName,char const *pszDatumName,char const *pszEllipsoidName,double dfSemiMajor,double dfInvFlattening,char const *pszPMName="Greenwich",double dfPMOffset=0.0,char const *pszUnits="degree",double dfConvertToRadians=0.0174532925199433){
- return OSRSetGeogCS( self, pszGeogName, pszDatumName, pszEllipsoidName,
- dfSemiMajor, dfInvFlattening,
- pszPMName, dfPMOffset, pszUnits, dfConvertToRadians );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetProjCS(OSRSpatialReferenceShadow *self,char const *name="unnamed"){
- return OSRSetProjCS( self, name );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromWkt(OSRSpatialReferenceShadow *self,char **ppszInput){
- return OSRImportFromWkt( self, ppszInput );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromProj4(OSRSpatialReferenceShadow *self,char *ppszInput){
- return OSRImportFromProj4( self, ppszInput );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromUrl(OSRSpatialReferenceShadow *self,char *url){
- return OSRImportFromUrl( self, url );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromESRI(OSRSpatialReferenceShadow *self,char **ppszInput){
- return OSRImportFromESRI( self, ppszInput );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromEPSG(OSRSpatialReferenceShadow *self,int arg){
- return OSRImportFromEPSG(self, arg);
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromEPSGA(OSRSpatialReferenceShadow *self,int arg){
- return OSRImportFromEPSGA(self, arg);
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromPCI(OSRSpatialReferenceShadow *self,char const *proj,char const *units="METRE",double argin[17]=0){
- return OSRImportFromPCI( self, proj, units, argin );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromUSGS(OSRSpatialReferenceShadow *self,long proj_code,long zone=0,double argin[15]=0,long datum_code=0){
- return OSRImportFromUSGS( self, proj_code, zone, argin, datum_code );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromXML(OSRSpatialReferenceShadow *self,char const *xmlString){
- return OSRImportFromXML( self, xmlString );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromERM(OSRSpatialReferenceShadow *self,char const *proj,char const *datum,char const *units){
- return OSRImportFromERM( self, proj, datum, units );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromMICoordSys(OSRSpatialReferenceShadow *self,char const *pszCoordSys){
- return OSRImportFromMICoordSys( self, pszCoordSys );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToWkt(OSRSpatialReferenceShadow *self,char **argout){
- return OSRExportToWkt( self, argout );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToPrettyWkt(OSRSpatialReferenceShadow *self,char **argout,int simplify=0){
- return OSRExportToPrettyWkt( self, argout, simplify );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToProj4(OSRSpatialReferenceShadow *self,char **argout){
- return OSRExportToProj4( self, argout );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToPCI(OSRSpatialReferenceShadow *self,char **proj,char **units,double *parms[17]){
- return OSRExportToPCI( self, proj, units, parms );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToUSGS(OSRSpatialReferenceShadow *self,long *code,long *zone,double *parms[15],long *datum){
- return OSRExportToUSGS( self, code, zone, parms, datum );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToXML(OSRSpatialReferenceShadow *self,char **argout,char const *dialect=""){
- return OSRExportToXML( self, argout, dialect );
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToMICoordSys(OSRSpatialReferenceShadow *self,char **argout){
- return OSRExportToMICoordSys( self, argout );
- }
-SWIGINTERN OSRSpatialReferenceShadow *OSRSpatialReferenceShadow_CloneGeogCS(OSRSpatialReferenceShadow *self){
- return (OSRSpatialReferenceShadow*) OSRCloneGeogCS(self);
- }
-SWIGINTERN OSRSpatialReferenceShadow *OSRSpatialReferenceShadow_Clone(OSRSpatialReferenceShadow *self){
- return (OSRSpatialReferenceShadow*) OSRClone(self);
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_Validate(OSRSpatialReferenceShadow *self){
- return OSRValidate(self);
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_StripCTParms(OSRSpatialReferenceShadow *self){
- return OSRStripCTParms(self);
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_FixupOrdering(OSRSpatialReferenceShadow *self){
- return OSRFixupOrdering(self);
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_Fixup(OSRSpatialReferenceShadow *self){
- return OSRFixup(self);
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_MorphToESRI(OSRSpatialReferenceShadow *self){
- return OSRMorphToESRI(self);
- }
-SWIGINTERN OGRErr OSRSpatialReferenceShadow_MorphFromESRI(OSRSpatialReferenceShadow *self){
- return OSRMorphFromESRI(self);
- }
-SWIGINTERN OSRCoordinateTransformationShadow *new_OSRCoordinateTransformationShadow(OSRSpatialReferenceShadow *src,OSRSpatialReferenceShadow *dst){
- OSRCoordinateTransformationShadow *obj = (OSRCoordinateTransformationShadow*) OCTNewCoordinateTransformation( src, dst );
- return obj;
- }
-SWIGINTERN void OSRCoordinateTransformationShadow_TransformPoint__SWIG_0(OSRCoordinateTransformationShadow *self,double inout[3]){
- OCTTransform( self, 1, &inout[0], &inout[1], &inout[2] );
- }
-SWIGINTERN void OSRCoordinateTransformationShadow_TransformPoint__SWIG_1(OSRCoordinateTransformationShadow *self,double argout[3],double x,double y,double z=0.0){
- argout[0] = x;
- argout[1] = y;
- argout[2] = z;
- OCTTransform( self, 1, &argout[0], &argout[1], &argout[2] );
- }
-SWIGINTERN void OSRCoordinateTransformationShadow_TransformPoints(OSRCoordinateTransformationShadow *self,int nCount,double *x,double *y,double *z){
- OCTTransform( self, nCount, x, y, z );
- }
-SWIGINTERN VALUE
-_wrap_get_well_known_geog_csas_wkt(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- char **arg2 = (char **) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- char *argout2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (char **argout2) ( char *argout2=0 ) */
- arg2 = &argout2;
- }
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","GetWellKnownGeogCSAsWKT", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (OGRErr)GetWellKnownGeogCSAsWKT((char const *)arg1,arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(argout) (char **argout) */
- VALUE outArg;
- if ( arg2 ) {
- outArg = rb_str_new2( *arg2 );
- }
- else {
- outArg = Qnil;
- }
-
- vresult = SWIG_Ruby_AppendOutput(vresult, outArg);
- }
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_get_user_input_as_wkt(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- char **arg2 = (char **) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- char *argout2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (char **argout2) ( char *argout2=0 ) */
- arg2 = &argout2;
- }
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","GetUserInputAsWKT", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (OGRErr)GetUserInputAsWKT((char const *)arg1,arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(argout) (char **argout) */
- VALUE outArg;
- if ( arg2 ) {
- outArg = rb_str_new2( *arg2 );
- }
- else {
- outArg = Qnil;
- }
-
- vresult = SWIG_Ruby_AppendOutput(vresult, outArg);
- }
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_GetProjectionMethods(int argc, VALUE *argv, VALUE self) {
- char **result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- result = (char **)OPTGetProjectionMethods();
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_char, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_GetProjectionMethodParameterList(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- char **arg2 = (char **) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- char **result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char *","OPTGetParameterList", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_p_char, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char **","OPTGetParameterList", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< char ** >(argp2);
- result = (char **)OPTGetParameterList(arg1,arg2);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_char, 0 | 0 );
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return vresult;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_GetProjectionMethodParamInfo(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) 0 ;
- char *arg2 = (char *) 0 ;
- char **arg3 = (char **) 0 ;
- char **arg4 = (char **) 0 ;
- double *arg5 = (double *) 0 ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- void *argp4 = 0 ;
- int res4 = 0 ;
- void *argp5 = 0 ;
- int res5 = 0 ;
-
- if ((argc < 5) || (argc > 5)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
- }
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char *","OPTGetParameterInfo", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","OPTGetParameterInfo", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_p_char, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char **","OPTGetParameterInfo", 3, argv[2] ));
- }
- arg3 = reinterpret_cast< char ** >(argp3);
- res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_p_char, 0 | 0 );
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char **","OPTGetParameterInfo", 4, argv[3] ));
- }
- arg4 = reinterpret_cast< char ** >(argp4);
- res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_double, 0 | 0 );
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "double *","OPTGetParameterInfo", 5, argv[4] ));
- }
- arg5 = reinterpret_cast< double * >(argp5);
- OPTGetParameterInfo(arg1,arg2,arg3,arg4,arg5);
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-swig_class SwigClassSpatialReference;
-
-#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
-SWIGINTERN VALUE
-_wrap_SpatialReference_allocate(VALUE self) {
-#else
- SWIGINTERN VALUE
- _wrap_SpatialReference_allocate(int argc, VALUE *argv, VALUE self) {
-#endif
-
-
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OSRSpatialReferenceShadow);
-#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
- rb_obj_call_init(vresult, argc, argv);
-#endif
- return vresult;
- }
-
-
-SWIGINTERN VALUE
-_wrap_new_SpatialReference(int argc, VALUE *argv, VALUE self) {
- char *arg1 = (char *) "" ;
- int res1 ;
- char *buf1 = 0 ;
- int alloc1 = 0 ;
- char *kwnames[] = {
- "wkt", NULL
- };
- OSRSpatialReferenceShadow *result = 0 ;
-
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- if (argc > 0) {
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","OSRSpatialReferenceShadow", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< char * >(buf1);
- }
- result = (OSRSpatialReferenceShadow *)new_OSRSpatialReferenceShadow((char const *)arg1);
- DATA_PTR(self) = result;
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return self;
-fail:
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
- return Qnil;
-}
-
-
-SWIGINTERN void delete_OSRSpatialReferenceShadow(OSRSpatialReferenceShadow *self){
- if (OSRDereference( self ) == 0 ) {
- OSRDestroySpatialReference( self );
- }
- }
-SWIGINTERN void
-free_OSRSpatialReferenceShadow(OSRSpatialReferenceShadow *arg1) {
- delete_OSRSpatialReferenceShadow(arg1);
-}
-
-SWIGINTERN VALUE
-_wrap_SpatialReference___str__(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","__str__", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (char *)OSRSpatialReferenceShadow___str__(arg1);
- vresult = SWIG_FromCharPtr((const char *)result);
- delete[] result;
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_is_same(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","IsSame", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","IsSame", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (int)OSRSpatialReferenceShadow_IsSame(arg1,arg2);
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_is_same_geog_cs(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","IsSameGeogCS", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","IsSameGeogCS", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (int)OSRSpatialReferenceShadow_IsSameGeogCS(arg1,arg2);
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_is_geographic(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","IsGeographic", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (int)OSRSpatialReferenceShadow_IsGeographic(arg1);
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_is_projected(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","IsProjected", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (int)OSRSpatialReferenceShadow_IsProjected(arg1);
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_is_local(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","IsLocal", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (int)OSRSpatialReferenceShadow_IsLocal(arg1);
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_epsgtreats_as_lat_long(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","EPSGTreatsAsLatLong", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (int)OSRSpatialReferenceShadow_EPSGTreatsAsLatLong(arg1);
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_authority(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- int arg4 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- int val4 ;
- int ecode4 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetAuthority", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetAuthority", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","SetAuthority", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- ecode4 = SWIG_AsVal_int(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","SetAuthority", 4, argv[2] ));
- }
- arg4 = static_cast< int >(val4);
- result = (OGRErr)OSRSpatialReferenceShadow_SetAuthority(arg1,(char const *)arg2,(char const *)arg3,arg4);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_get_attr_value(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- int arg3 = (int) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","GetAttrValue", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GetAttrValue", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- if (argc > 1) {
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","GetAttrValue", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (char *)OSRSpatialReferenceShadow_GetAttrValue(arg1,(char const *)arg2,arg3);
- vresult = SWIG_FromCharPtr((const char *)result);
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_attr_value(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetAttrValue", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetAttrValue", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","SetAttrValue", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (OGRErr)OSRSpatialReferenceShadow_SetAttrValue(arg1,(char const *)arg2,(char const *)arg3);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_angular_units(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- double arg3 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetAngularUnits", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetAngularUnits", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetAngularUnits", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (OGRErr)OSRSpatialReferenceShadow_SetAngularUnits(arg1,(char const *)arg2,arg3);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_get_angular_units(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","GetAngularUnits", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (double)OSRSpatialReferenceShadow_GetAngularUnits(arg1);
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_linear_units(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- double arg3 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetLinearUnits", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetLinearUnits", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetLinearUnits", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (OGRErr)OSRSpatialReferenceShadow_SetLinearUnits(arg1,(char const *)arg2,arg3);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_linear_units_and_update_parameters(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- double arg3 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetLinearUnitsAndUpdateParameters", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetLinearUnitsAndUpdateParameters", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetLinearUnitsAndUpdateParameters", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (OGRErr)OSRSpatialReferenceShadow_SetLinearUnitsAndUpdateParameters(arg1,(char const *)arg2,arg3);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_get_linear_units(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","GetLinearUnits", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (double)OSRSpatialReferenceShadow_GetLinearUnits(arg1);
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_get_linear_units_name(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","GetLinearUnitsName", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (char *)OSRSpatialReferenceShadow_GetLinearUnitsName(arg1);
- vresult = SWIG_FromCharPtr((const char *)result);
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_get_authority_code(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","GetAuthorityCode", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GetAuthorityCode", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- result = (char *)OSRSpatialReferenceShadow_GetAuthorityCode(arg1,(char const *)arg2);
- vresult = SWIG_FromCharPtr((const char *)result);
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_get_authority_name(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- char *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","GetAuthorityName", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GetAuthorityName", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- result = (char *)OSRSpatialReferenceShadow_GetAuthorityName(arg1,(char const *)arg2);
- vresult = SWIG_FromCharPtr((const char *)result);
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_utm(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- int arg2 ;
- int arg3 = (int) 1 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetUTM", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetUTM", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- if (argc > 1) {
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","SetUTM", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- }
- result = (OGRErr)OSRSpatialReferenceShadow_SetUTM(arg1,arg2,arg3);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_get_utmzone(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","GetUTMZone", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (int)OSRSpatialReferenceShadow_GetUTMZone(arg1);
- vresult = SWIG_From_int(static_cast< int >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_state_plane(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- int arg2 ;
- int arg3 = (int) 1 ;
- char *arg4 = (char *) "" ;
- double arg5 = (double) 0.0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- int res4 ;
- char *buf4 = 0 ;
- int alloc4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetStatePlane", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetStatePlane", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- if (argc > 1) {
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","SetStatePlane", 3, argv[1] ));
- }
- arg3 = static_cast< int >(val3);
- }
- if (argc > 2) {
- res4 = SWIG_AsCharPtrAndSize(argv[2], &buf4, NULL, &alloc4);
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","SetStatePlane", 4, argv[2] ));
- }
- arg4 = reinterpret_cast< char * >(buf4);
- }
- if (argc > 3) {
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetStatePlane", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- }
- result = (OGRErr)OSRSpatialReferenceShadow_SetStatePlane(arg1,arg2,arg3,(char const *)arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_auto_identify_epsg(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","AutoIdentifyEPSG", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (OGRErr)OSRSpatialReferenceShadow_AutoIdentifyEPSG(arg1);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_projection(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetProjection", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetProjection", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- result = (OGRErr)OSRSpatialReferenceShadow_SetProjection(arg1,(char const *)arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_proj_parm(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- double arg3 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetProjParm", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetProjParm", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetProjParm", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (OGRErr)OSRSpatialReferenceShadow_SetProjParm(arg1,(char const *)arg2,arg3);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_get_proj_parm(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- double arg3 = (double) 0.0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","GetProjParm", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GetProjParm", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- if (argc > 1) {
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","GetProjParm", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (double)OSRSpatialReferenceShadow_GetProjParm(arg1,(char const *)arg2,arg3);
- vresult = SWIG_From_double(static_cast< double >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_norm_proj_parm(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- double arg3 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetNormProjParm", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetNormProjParm", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetNormProjParm", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (OGRErr)OSRSpatialReferenceShadow_SetNormProjParm(arg1,(char const *)arg2,arg3);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_get_norm_proj_parm(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- double arg3 = (double) 0.0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","GetNormProjParm", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","GetNormProjParm", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- if (argc > 1) {
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","GetNormProjParm", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (double)OSRSpatialReferenceShadow_GetNormProjParm(arg1,(char const *)arg2,arg3);
- vresult = SWIG_From_double(static_cast< double >(result));
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_get_semi_major(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","GetSemiMajor", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (double)OSRSpatialReferenceShadow_GetSemiMajor(arg1);
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_get_semi_minor(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","GetSemiMinor", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (double)OSRSpatialReferenceShadow_GetSemiMinor(arg1);
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_get_inv_flattening(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","GetInvFlattening", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (double)OSRSpatialReferenceShadow_GetInvFlattening(arg1);
- vresult = SWIG_From_double(static_cast< double >(result));
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_acea(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- double arg7 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- double val7 ;
- int ecode7 = 0 ;
- char *kwnames[] = {
- "self","stdp1","stdp2","clat","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 6) || (argc > 6)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetACEA", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetACEA", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetACEA", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetACEA", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetACEA", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetACEA", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- ecode7 = SWIG_AsVal_double(argv[5], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "double","SetACEA", 7, argv[5] ));
- }
- arg7 = static_cast< double >(val7);
- result = (OGRErr)OSRSpatialReferenceShadow_SetACEA(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_ae(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetAE", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetAE", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetAE", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetAE", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetAE", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- result = (OGRErr)OSRSpatialReferenceShadow_SetAE(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_bonne(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- char *kwnames[] = {
- "self","stdp","cm","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetBonne", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetBonne", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetBonne", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetBonne", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetBonne", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- result = (OGRErr)OSRSpatialReferenceShadow_SetBonne(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_cea(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- char *kwnames[] = {
- "self","stdp1","cm","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetCEA", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetCEA", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetCEA", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetCEA", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetCEA", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- result = (OGRErr)OSRSpatialReferenceShadow_SetCEA(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_cs(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetCS", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetCS", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetCS", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetCS", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetCS", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- result = (OGRErr)OSRSpatialReferenceShadow_SetCS(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_ec(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- double arg7 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- double val7 ;
- int ecode7 = 0 ;
- char *kwnames[] = {
- "self","stdp1","stdp2","clat","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 6) || (argc > 6)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetEC", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetEC", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetEC", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetEC", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetEC", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetEC", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- ecode7 = SWIG_AsVal_double(argv[5], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "double","SetEC", 7, argv[5] ));
- }
- arg7 = static_cast< double >(val7);
- result = (OGRErr)OSRSpatialReferenceShadow_SetEC(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_eckert_iv(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- char *kwnames[] = {
- "self","cm","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetEckertIV", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetEckertIV", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetEckertIV", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetEckertIV", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- result = (OGRErr)OSRSpatialReferenceShadow_SetEckertIV(arg1,arg2,arg3,arg4);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_eckert_vi(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- char *kwnames[] = {
- "self","cm","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetEckertVI", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetEckertVI", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetEckertVI", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetEckertVI", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- result = (OGRErr)OSRSpatialReferenceShadow_SetEckertVI(arg1,arg2,arg3,arg4);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_equirectangular(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetEquirectangular", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetEquirectangular", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetEquirectangular", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetEquirectangular", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetEquirectangular", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- result = (OGRErr)OSRSpatialReferenceShadow_SetEquirectangular(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_equirectangular2(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","pseudostdparallellat","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 5) || (argc > 5)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetEquirectangular2", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetEquirectangular2", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetEquirectangular2", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetEquirectangular2", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetEquirectangular2", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetEquirectangular2", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- result = (OGRErr)OSRSpatialReferenceShadow_SetEquirectangular2(arg1,arg2,arg3,arg4,arg5,arg6);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_gauss_schreiber_tmercator(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","sc","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 5) || (argc > 5)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetGaussSchreiberTMercator", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetGaussSchreiberTMercator", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetGaussSchreiberTMercator", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetGaussSchreiberTMercator", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetGaussSchreiberTMercator", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetGaussSchreiberTMercator", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- result = (OGRErr)OSRSpatialReferenceShadow_SetGaussSchreiberTMercator(arg1,arg2,arg3,arg4,arg5,arg6);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_gs(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- char *kwnames[] = {
- "self","cm","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetGS", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetGS", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetGS", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetGS", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- result = (OGRErr)OSRSpatialReferenceShadow_SetGS(arg1,arg2,arg3,arg4);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_gh(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- char *kwnames[] = {
- "self","cm","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetGH", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetGH", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetGH", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetGH", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- result = (OGRErr)OSRSpatialReferenceShadow_SetGH(arg1,arg2,arg3,arg4);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_geos(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- char *kwnames[] = {
- "self","cm","satelliteheight","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetGEOS", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetGEOS", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetGEOS", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetGEOS", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetGEOS", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- result = (OGRErr)OSRSpatialReferenceShadow_SetGEOS(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_gnomonic(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetGnomonic", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetGnomonic", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetGnomonic", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetGnomonic", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetGnomonic", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- result = (OGRErr)OSRSpatialReferenceShadow_SetGnomonic(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_hom(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- double arg7 ;
- double arg8 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- double val7 ;
- int ecode7 = 0 ;
- double val8 ;
- int ecode8 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","azimuth","recttoskew","scale","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 7) || (argc > 7)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetHOM", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetHOM", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetHOM", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetHOM", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetHOM", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetHOM", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- ecode7 = SWIG_AsVal_double(argv[5], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "double","SetHOM", 7, argv[5] ));
- }
- arg7 = static_cast< double >(val7);
- ecode8 = SWIG_AsVal_double(argv[6], &val8);
- if (!SWIG_IsOK(ecode8)) {
- SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "double","SetHOM", 8, argv[6] ));
- }
- arg8 = static_cast< double >(val8);
- result = (OGRErr)OSRSpatialReferenceShadow_SetHOM(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_hom_2pno(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- double arg7 ;
- double arg8 ;
- double arg9 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- double val7 ;
- int ecode7 = 0 ;
- double val8 ;
- int ecode8 = 0 ;
- double val9 ;
- int ecode9 = 0 ;
- char *kwnames[] = {
- "self","clat","dfLat1","dfLong1","dfLat2","dfLong2","scale","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 8) || (argc > 8)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetHOM2PNO", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetHOM2PNO", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetHOM2PNO", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetHOM2PNO", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetHOM2PNO", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetHOM2PNO", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- ecode7 = SWIG_AsVal_double(argv[5], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "double","SetHOM2PNO", 7, argv[5] ));
- }
- arg7 = static_cast< double >(val7);
- ecode8 = SWIG_AsVal_double(argv[6], &val8);
- if (!SWIG_IsOK(ecode8)) {
- SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "double","SetHOM2PNO", 8, argv[6] ));
- }
- arg8 = static_cast< double >(val8);
- ecode9 = SWIG_AsVal_double(argv[7], &val9);
- if (!SWIG_IsOK(ecode9)) {
- SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "double","SetHOM2PNO", 9, argv[7] ));
- }
- arg9 = static_cast< double >(val9);
- result = (OGRErr)OSRSpatialReferenceShadow_SetHOM2PNO(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_krovak(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- double arg7 ;
- double arg8 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- double val7 ;
- int ecode7 = 0 ;
- double val8 ;
- int ecode8 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","azimuth","pseudostdparallellat","scale","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 7) || (argc > 7)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetKrovak", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetKrovak", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetKrovak", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetKrovak", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetKrovak", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetKrovak", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- ecode7 = SWIG_AsVal_double(argv[5], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "double","SetKrovak", 7, argv[5] ));
- }
- arg7 = static_cast< double >(val7);
- ecode8 = SWIG_AsVal_double(argv[6], &val8);
- if (!SWIG_IsOK(ecode8)) {
- SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "double","SetKrovak", 8, argv[6] ));
- }
- arg8 = static_cast< double >(val8);
- result = (OGRErr)OSRSpatialReferenceShadow_SetKrovak(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_laea(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetLAEA", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetLAEA", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetLAEA", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetLAEA", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetLAEA", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- result = (OGRErr)OSRSpatialReferenceShadow_SetLAEA(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_lcc(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- double arg7 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- double val7 ;
- int ecode7 = 0 ;
- char *kwnames[] = {
- "self","stdp1","stdp2","clat","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 6) || (argc > 6)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetLCC", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetLCC", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetLCC", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetLCC", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetLCC", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetLCC", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- ecode7 = SWIG_AsVal_double(argv[5], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "double","SetLCC", 7, argv[5] ));
- }
- arg7 = static_cast< double >(val7);
- result = (OGRErr)OSRSpatialReferenceShadow_SetLCC(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_lcc_1sp(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","scale","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 5) || (argc > 5)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetLCC1SP", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetLCC1SP", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetLCC1SP", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetLCC1SP", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetLCC1SP", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetLCC1SP", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- result = (OGRErr)OSRSpatialReferenceShadow_SetLCC1SP(arg1,arg2,arg3,arg4,arg5,arg6);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_lccb(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- double arg7 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- double val7 ;
- int ecode7 = 0 ;
- char *kwnames[] = {
- "self","stdp1","stdp2","clat","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 6) || (argc > 6)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetLCCB", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetLCCB", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetLCCB", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetLCCB", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetLCCB", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetLCCB", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- ecode7 = SWIG_AsVal_double(argv[5], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "double","SetLCCB", 7, argv[5] ));
- }
- arg7 = static_cast< double >(val7);
- result = (OGRErr)OSRSpatialReferenceShadow_SetLCCB(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_mc(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetMC", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetMC", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetMC", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetMC", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetMC", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- result = (OGRErr)OSRSpatialReferenceShadow_SetMC(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_mercator(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","scale","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 5) || (argc > 5)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetMercator", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetMercator", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetMercator", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetMercator", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetMercator", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetMercator", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- result = (OGRErr)OSRSpatialReferenceShadow_SetMercator(arg1,arg2,arg3,arg4,arg5,arg6);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_mollweide(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- char *kwnames[] = {
- "self","cm","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetMollweide", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetMollweide", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetMollweide", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetMollweide", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- result = (OGRErr)OSRSpatialReferenceShadow_SetMollweide(arg1,arg2,arg3,arg4);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_nzmg(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetNZMG", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetNZMG", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetNZMG", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetNZMG", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetNZMG", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- result = (OGRErr)OSRSpatialReferenceShadow_SetNZMG(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_os(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- char *kwnames[] = {
- "self","dfOriginLat","dfCMeridian","scale","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 5) || (argc > 5)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetOS", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetOS", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetOS", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetOS", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetOS", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetOS", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- result = (OGRErr)OSRSpatialReferenceShadow_SetOS(arg1,arg2,arg3,arg4,arg5,arg6);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_orthographic(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetOrthographic", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetOrthographic", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetOrthographic", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetOrthographic", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetOrthographic", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- result = (OGRErr)OSRSpatialReferenceShadow_SetOrthographic(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_polyconic(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetPolyconic", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetPolyconic", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetPolyconic", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetPolyconic", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetPolyconic", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- result = (OGRErr)OSRSpatialReferenceShadow_SetPolyconic(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_ps(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","scale","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 5) || (argc > 5)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetPS", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetPS", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetPS", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetPS", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetPS", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetPS", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- result = (OGRErr)OSRSpatialReferenceShadow_SetPS(arg1,arg2,arg3,arg4,arg5,arg6);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_robinson(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- char *kwnames[] = {
- "self","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetRobinson", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetRobinson", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetRobinson", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetRobinson", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- result = (OGRErr)OSRSpatialReferenceShadow_SetRobinson(arg1,arg2,arg3,arg4);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_sinusoidal(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- char *kwnames[] = {
- "self","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetSinusoidal", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetSinusoidal", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetSinusoidal", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetSinusoidal", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- result = (OGRErr)OSRSpatialReferenceShadow_SetSinusoidal(arg1,arg2,arg3,arg4);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_stereographic(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","scale","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 5) || (argc > 5)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetStereographic", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetStereographic", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetStereographic", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetStereographic", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetStereographic", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetStereographic", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- result = (OGRErr)OSRSpatialReferenceShadow_SetStereographic(arg1,arg2,arg3,arg4,arg5,arg6);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_soc(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- char *kwnames[] = {
- "self","latitudeoforigin","cm","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetSOC", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetSOC", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetSOC", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetSOC", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetSOC", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- result = (OGRErr)OSRSpatialReferenceShadow_SetSOC(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_tm(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","scale","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 5) || (argc > 5)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetTM", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetTM", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetTM", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetTM", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetTM", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetTM", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- result = (OGRErr)OSRSpatialReferenceShadow_SetTM(arg1,arg2,arg3,arg4,arg5,arg6);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_tmvariant(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- double arg7 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- double val7 ;
- int ecode7 = 0 ;
- char *kwnames[] = {
- "self","pszVariantName","clat","clong","scale","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 6) || (argc > 6)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetTMVariant", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetTMVariant", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetTMVariant", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetTMVariant", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetTMVariant", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetTMVariant", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- ecode7 = SWIG_AsVal_double(argv[5], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "double","SetTMVariant", 7, argv[5] ));
- }
- arg7 = static_cast< double >(val7);
- result = (OGRErr)OSRSpatialReferenceShadow_SetTMVariant(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_tmg(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetTMG", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetTMG", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetTMG", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetTMG", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetTMG", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- result = (OGRErr)OSRSpatialReferenceShadow_SetTMG(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_tmso(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 ;
- double arg6 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- char *kwnames[] = {
- "self","clat","clong","scale","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 5) || (argc > 5)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetTMSO", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetTMSO", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetTMSO", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetTMSO", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetTMSO", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetTMSO", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- result = (OGRErr)OSRSpatialReferenceShadow_SetTMSO(arg1,arg2,arg3,arg4,arg5,arg6);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_vdg(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- char *kwnames[] = {
- "self","clong","fe","fn", NULL
- };
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetVDG", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetVDG", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetVDG", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetVDG", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- result = (OGRErr)OSRSpatialReferenceShadow_SetVDG(arg1,arg2,arg3,arg4);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_well_known_geog_cs(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetWellKnownGeogCS", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetWellKnownGeogCS", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (OGRErr)OSRSpatialReferenceShadow_SetWellKnownGeogCS(arg1,(char const *)arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_from_user_input(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetFromUserInput", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetFromUserInput", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (OGRErr)OSRSpatialReferenceShadow_SetFromUserInput(arg1,(char const *)arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_copy_geog_csfrom(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","CopyGeogCSFrom", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","CopyGeogCSFrom", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp2);
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (OGRErr)OSRSpatialReferenceShadow_CopyGeogCSFrom(arg1,arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_towgs_84(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 = (double) 0.0 ;
- double arg6 = (double) 0.0 ;
- double arg7 = (double) 0.0 ;
- double arg8 = (double) 0.0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double val2 ;
- int ecode2 = 0 ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- double val7 ;
- int ecode7 = 0 ;
- double val8 ;
- int ecode8 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 7)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetTOWGS84", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_double(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetTOWGS84", 2, argv[0] ));
- }
- arg2 = static_cast< double >(val2);
- ecode3 = SWIG_AsVal_double(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","SetTOWGS84", 3, argv[1] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[2], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","SetTOWGS84", 4, argv[2] ));
- }
- arg4 = static_cast< double >(val4);
- if (argc > 3) {
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetTOWGS84", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- }
- if (argc > 4) {
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetTOWGS84", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- }
- if (argc > 5) {
- ecode7 = SWIG_AsVal_double(argv[5], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "double","SetTOWGS84", 7, argv[5] ));
- }
- arg7 = static_cast< double >(val7);
- }
- if (argc > 6) {
- ecode8 = SWIG_AsVal_double(argv[6], &val8);
- if (!SWIG_IsOK(ecode8)) {
- SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "double","SetTOWGS84", 8, argv[6] ));
- }
- arg8 = static_cast< double >(val8);
- }
- result = (OGRErr)OSRSpatialReferenceShadow_SetTOWGS84(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_get_towgs_84(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- double *arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double argout2[7] ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double argout2[ANY]) */
- arg2 = argout2;
- }
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","GetTOWGS84", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (OGRErr)OSRSpatialReferenceShadow_GetTOWGS84(arg1,arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(argout) (double argout[ANY]) */
- VALUE outArr = rb_ary_new();
-
- for(int i=0; i<7; i++)
- {
- VALUE value = rb_float_new((arg2)[i]);
- rb_ary_push(outArr, value);
- }
-
- /* Add the output to the result */
- vresult = SWIG_Ruby_AppendOutput(vresult, outArr);
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_local_cs(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetLocalCS", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetLocalCS", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- result = (OGRErr)OSRSpatialReferenceShadow_SetLocalCS(arg1,(char const *)arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_geog_cs(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- char *arg4 = (char *) 0 ;
- double arg5 ;
- double arg6 ;
- char *arg7 = (char *) "Greenwich" ;
- double arg8 = (double) 0.0 ;
- char *arg9 = (char *) "degree" ;
- double arg10 = (double) 0.0174532925199433 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- int res4 ;
- char *buf4 = 0 ;
- int alloc4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- double val6 ;
- int ecode6 = 0 ;
- int res7 ;
- char *buf7 = 0 ;
- int alloc7 = 0 ;
- double val8 ;
- int ecode8 = 0 ;
- int res9 ;
- char *buf9 = 0 ;
- int alloc9 = 0 ;
- double val10 ;
- int ecode10 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 5) || (argc > 9)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetGeogCS", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetGeogCS", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","SetGeogCS", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- res4 = SWIG_AsCharPtrAndSize(argv[2], &buf4, NULL, &alloc4);
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","SetGeogCS", 4, argv[2] ));
- }
- arg4 = reinterpret_cast< char * >(buf4);
- ecode5 = SWIG_AsVal_double(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","SetGeogCS", 5, argv[3] ));
- }
- arg5 = static_cast< double >(val5);
- ecode6 = SWIG_AsVal_double(argv[4], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "double","SetGeogCS", 6, argv[4] ));
- }
- arg6 = static_cast< double >(val6);
- if (argc > 5) {
- res7 = SWIG_AsCharPtrAndSize(argv[5], &buf7, NULL, &alloc7);
- if (!SWIG_IsOK(res7)) {
- SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "char const *","SetGeogCS", 7, argv[5] ));
- }
- arg7 = reinterpret_cast< char * >(buf7);
- }
- if (argc > 6) {
- ecode8 = SWIG_AsVal_double(argv[6], &val8);
- if (!SWIG_IsOK(ecode8)) {
- SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "double","SetGeogCS", 8, argv[6] ));
- }
- arg8 = static_cast< double >(val8);
- }
- if (argc > 7) {
- res9 = SWIG_AsCharPtrAndSize(argv[7], &buf9, NULL, &alloc9);
- if (!SWIG_IsOK(res9)) {
- SWIG_exception_fail(SWIG_ArgError(res9), Ruby_Format_TypeError( "", "char const *","SetGeogCS", 9, argv[7] ));
- }
- arg9 = reinterpret_cast< char * >(buf9);
- }
- if (argc > 8) {
- ecode10 = SWIG_AsVal_double(argv[8], &val10);
- if (!SWIG_IsOK(ecode10)) {
- SWIG_exception_fail(SWIG_ArgError(ecode10), Ruby_Format_TypeError( "", "double","SetGeogCS", 10, argv[8] ));
- }
- arg10 = static_cast< double >(val10);
- }
- result = (OGRErr)OSRSpatialReferenceShadow_SetGeogCS(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,(char const *)arg7,arg8,(char const *)arg9,arg10);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- if (alloc7 == SWIG_NEWOBJ) delete[] buf7;
- if (alloc9 == SWIG_NEWOBJ) delete[] buf9;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- if (alloc7 == SWIG_NEWOBJ) delete[] buf7;
- if (alloc9 == SWIG_NEWOBJ) delete[] buf9;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_set_proj_cs(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) "unnamed" ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","SetProjCS", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- if (argc > 0) {
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SetProjCS", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- }
- {
- if (!arg2) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- result = (OGRErr)OSRSpatialReferenceShadow_SetProjCS(arg1,(char const *)arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_import_from_wkt(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char **arg2 = (char **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *val2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ImportFromWkt", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- {
- /* %typemap(in) char ** ( char *val2=0 ) */
-
- val2 = StringValuePtr(argv[0]);
- arg2 = &val2;
- }
- result = (OGRErr)OSRSpatialReferenceShadow_ImportFromWkt(arg1,arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_import_from_proj4(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ImportFromProj4", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","ImportFromProj4", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- result = (OGRErr)OSRSpatialReferenceShadow_ImportFromProj4(arg1,arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_import_from_url(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ImportFromUrl", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","ImportFromUrl", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- result = (OGRErr)OSRSpatialReferenceShadow_ImportFromUrl(arg1,arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_import_from_esri(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char **arg2 = (char **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ImportFromESRI", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- {
- /* %typemap(in) char **options */
-
- /* Check if is a list */
- Check_Type(argv[0], T_ARRAY);
-
- int size = RARRAY(argv[0])->len;
- for (int i = 0; i < size; i++) {
- VALUE item = rb_ary_entry(argv[0], i);
- char *pszItem = StringValuePtr(item);
- arg2 = CSLAddString( arg2, pszItem );
- }
- }
- result = (OGRErr)OSRSpatialReferenceShadow_ImportFromESRI(arg1,arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg2 );
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- {
- /* %typemap(freearg) char **options */
-
- CSLDestroy( arg2 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_import_from_epsg(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ImportFromEPSG", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ImportFromEPSG", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- result = (OGRErr)OSRSpatialReferenceShadow_ImportFromEPSG(arg1,arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_import_from_epsga(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- int arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ImportFromEPSGA", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ImportFromEPSGA", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- result = (OGRErr)OSRSpatialReferenceShadow_ImportFromEPSGA(arg1,arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_import_from_pci(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) "METRE" ;
- double *arg4 = (double *) (double *)0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- double temp4[17] ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ImportFromPCI", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ImportFromPCI", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- if (argc > 1) {
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","ImportFromPCI", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- }
- if (argc > 2) {
- {
- /* %typemap(in) (double argin[ANY]) (double temp4[17]) */
- /* Make sure this is an array. */
- Check_Type(argv[2], T_ARRAY);
-
- /* Get the length */
- int seq_size = RARRAY(argv[2])->len;
-
- if ( seq_size != 17 ) {
- rb_raise(rb_eRangeError, "sequence must have length %i.", seq_size);
- }
-
- for( int i = 0; i<17; i++ ) {
- /* Get the Ruby Object */
- VALUE item = rb_ary_entry(argv[2],i);
-
- /* Convert to double and store in array*/
- temp4[i] = NUM2DBL(item);
- }
-
- /* Set argument arg4 equal to the temp4 array */
- arg4 = temp4;
- }
- }
- result = (OGRErr)OSRSpatialReferenceShadow_ImportFromPCI(arg1,(char const *)arg2,(char const *)arg3,arg4);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_import_from_usgs(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- long arg2 ;
- long arg3 = (long) 0 ;
- double *arg4 = (double *) (double *)0 ;
- long arg5 = (long) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- long val2 ;
- int ecode2 = 0 ;
- long val3 ;
- int ecode3 = 0 ;
- double temp4[15] ;
- long val5 ;
- int ecode5 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ImportFromUSGS", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- ecode2 = SWIG_AsVal_long(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","ImportFromUSGS", 2, argv[0] ));
- }
- arg2 = static_cast< long >(val2);
- if (argc > 1) {
- ecode3 = SWIG_AsVal_long(argv[1], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "long","ImportFromUSGS", 3, argv[1] ));
- }
- arg3 = static_cast< long >(val3);
- }
- if (argc > 2) {
- {
- /* %typemap(in) (double argin[ANY]) (double temp4[15]) */
- /* Make sure this is an array. */
- Check_Type(argv[2], T_ARRAY);
-
- /* Get the length */
- int seq_size = RARRAY(argv[2])->len;
-
- if ( seq_size != 15 ) {
- rb_raise(rb_eRangeError, "sequence must have length %i.", seq_size);
- }
-
- for( int i = 0; i<15; i++ ) {
- /* Get the Ruby Object */
- VALUE item = rb_ary_entry(argv[2],i);
-
- /* Convert to double and store in array*/
- temp4[i] = NUM2DBL(item);
- }
-
- /* Set argument arg4 equal to the temp4 array */
- arg4 = temp4;
- }
- }
- if (argc > 3) {
- ecode5 = SWIG_AsVal_long(argv[3], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "long","ImportFromUSGS", 5, argv[3] ));
- }
- arg5 = static_cast< long >(val5);
- }
- result = (OGRErr)OSRSpatialReferenceShadow_ImportFromUSGS(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_import_from_xml(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ImportFromXML", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ImportFromXML", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- result = (OGRErr)OSRSpatialReferenceShadow_ImportFromXML(arg1,(char const *)arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_import_from_erm(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- char *arg4 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- int res4 ;
- char *buf4 = 0 ;
- int alloc4 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 3) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ImportFromERM", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ImportFromERM", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","ImportFromERM", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- res4 = SWIG_AsCharPtrAndSize(argv[2], &buf4, NULL, &alloc4);
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","ImportFromERM", 4, argv[2] ));
- }
- arg4 = reinterpret_cast< char * >(buf4);
- result = (OGRErr)OSRSpatialReferenceShadow_ImportFromERM(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_import_from_micoord_sys(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char *arg2 = (char *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ImportFromMICoordSys", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ImportFromMICoordSys", 2, argv[0] ));
- }
- arg2 = reinterpret_cast< char * >(buf2);
- result = (OGRErr)OSRSpatialReferenceShadow_ImportFromMICoordSys(arg1,(char const *)arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_export_to_wkt(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char **arg2 = (char **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *argout2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (char **argout2) ( char *argout2=0 ) */
- arg2 = &argout2;
- }
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ExportToWkt", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (OGRErr)OSRSpatialReferenceShadow_ExportToWkt(arg1,arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(argout) (char **argout) */
- VALUE outArg;
- if ( arg2 ) {
- outArg = rb_str_new2( *arg2 );
- }
- else {
- outArg = Qnil;
- }
-
- vresult = SWIG_Ruby_AppendOutput(vresult, outArg);
- }
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_export_to_pretty_wkt(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char **arg2 = (char **) 0 ;
- int arg3 = (int) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *argout2 = 0 ;
- int val3 ;
- int ecode3 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (char **argout2) ( char *argout2=0 ) */
- arg2 = &argout2;
- }
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ExportToPrettyWkt", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- if (argc > 0) {
- ecode3 = SWIG_AsVal_int(argv[0], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ExportToPrettyWkt", 3, argv[0] ));
- }
- arg3 = static_cast< int >(val3);
- }
- result = (OGRErr)OSRSpatialReferenceShadow_ExportToPrettyWkt(arg1,arg2,arg3);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(argout) (char **argout) */
- VALUE outArg;
- if ( arg2 ) {
- outArg = rb_str_new2( *arg2 );
- }
- else {
- outArg = Qnil;
- }
-
- vresult = SWIG_Ruby_AppendOutput(vresult, outArg);
- }
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_export_to_proj4(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char **arg2 = (char **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *argout2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (char **argout2) ( char *argout2=0 ) */
- arg2 = &argout2;
- }
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ExportToProj4", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (OGRErr)OSRSpatialReferenceShadow_ExportToProj4(arg1,arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(argout) (char **argout) */
- VALUE outArg;
- if ( arg2 ) {
- outArg = rb_str_new2( *arg2 );
- }
- else {
- outArg = Qnil;
- }
-
- vresult = SWIG_Ruby_AppendOutput(vresult, outArg);
- }
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_export_to_pci(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char **arg2 = (char **) 0 ;
- char **arg3 = (char **) 0 ;
- double **arg4 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *argout2 = 0 ;
- char *argout3 = 0 ;
- double *argout4 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (char **argout2) ( char *argout2=0 ) */
- arg2 = &argout2;
- }
- {
- /* %typemap(in,numinputs=0) (char **argout3) ( char *argout3=0 ) */
- arg3 = &argout3;
- }
- {
- /* %typemap(in,numinputs=0) (double *argout4[ANY]) */
- arg4 = &argout4;
- }
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ExportToPCI", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (OGRErr)OSRSpatialReferenceShadow_ExportToPCI(arg1,arg2,arg3,arg4);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(argout) (char **argout) */
- VALUE outArg;
- if ( arg2 ) {
- outArg = rb_str_new2( *arg2 );
- }
- else {
- outArg = Qnil;
- }
-
- vresult = SWIG_Ruby_AppendOutput(vresult, outArg);
- }
- {
- /* %typemap(argout) (char **argout) */
- VALUE outArg;
- if ( arg3 ) {
- outArg = rb_str_new2( *arg3 );
- }
- else {
- outArg = Qnil;
- }
-
- vresult = SWIG_Ruby_AppendOutput(vresult, outArg);
- }
- {
- /* %typemap(argout) (double argout[ANY]) */
- VALUE outArr = rb_ary_new();
-
- for(int i=0; i<17; i++)
- {
- /* arg4 is a pointer to an array, so first dereference the array,
- then specify the index. */
- VALUE value = rb_float_new((*arg4)[i]);
- rb_ary_push(outArr, value);
- }
-
- /* Add the output to the result */
- vresult = SWIG_Ruby_AppendOutput(vresult, outArr);
- }
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg3 )
- CPLFree( *arg3 );
- }
- {
- /* %typemap(freearg) (double *argout[ANY]) */
- CPLFree(*arg4);
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg3 )
- CPLFree( *arg3 );
- }
- {
- /* %typemap(freearg) (double *argout[ANY]) */
- CPLFree(*arg4);
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_export_to_usgs(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- long *arg2 = (long *) 0 ;
- long *arg3 = (long *) 0 ;
- double **arg4 ;
- long *arg5 = (long *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- long temp2 ;
- int res2 = SWIG_TMPOBJ ;
- long temp3 ;
- int res3 = SWIG_TMPOBJ ;
- double *argout4 ;
- long temp5 ;
- int res5 = SWIG_TMPOBJ ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- arg2 = &temp2;
- arg3 = &temp3;
- {
- /* %typemap(in,numinputs=0) (double *argout4[ANY]) */
- arg4 = &argout4;
- }
- arg5 = &temp5;
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ExportToUSGS", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (OGRErr)OSRSpatialReferenceShadow_ExportToUSGS(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- if (SWIG_IsTmpObj(res2)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_long((*arg2)));
- } else {
- int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
- }
- if (SWIG_IsTmpObj(res3)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_long((*arg3)));
- } else {
- int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
- }
- {
- /* %typemap(argout) (double argout[ANY]) */
- VALUE outArr = rb_ary_new();
-
- for(int i=0; i<15; i++)
- {
- /* arg4 is a pointer to an array, so first dereference the array,
- then specify the index. */
- VALUE value = rb_float_new((*arg4)[i]);
- rb_ary_push(outArr, value);
- }
-
- /* Add the output to the result */
- vresult = SWIG_Ruby_AppendOutput(vresult, outArr);
- }
- if (SWIG_IsTmpObj(res5)) {
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_long((*arg5)));
- } else {
- int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_long, new_flags));
- }
- {
- /* %typemap(freearg) (double *argout[ANY]) */
- CPLFree(*arg4);
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- {
- /* %typemap(freearg) (double *argout[ANY]) */
- CPLFree(*arg4);
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_export_to_xml(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char **arg2 = (char **) 0 ;
- char *arg3 = (char *) "" ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *argout2 = 0 ;
- int res3 ;
- char *buf3 = 0 ;
- int alloc3 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (char **argout2) ( char *argout2=0 ) */
- arg2 = &argout2;
- }
- if ((argc < 0) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ExportToXML", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- if (argc > 0) {
- res3 = SWIG_AsCharPtrAndSize(argv[0], &buf3, NULL, &alloc3);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","ExportToXML", 3, argv[0] ));
- }
- arg3 = reinterpret_cast< char * >(buf3);
- }
- result = (OGRErr)OSRSpatialReferenceShadow_ExportToXML(arg1,arg2,(char const *)arg3);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(argout) (char **argout) */
- VALUE outArg;
- if ( arg2 ) {
- outArg = rb_str_new2( *arg2 );
- }
- else {
- outArg = Qnil;
- }
-
- vresult = SWIG_Ruby_AppendOutput(vresult, outArg);
- }
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_export_to_micoord_sys(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- char **arg2 = (char **) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- char *argout2 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (char **argout2) ( char *argout2=0 ) */
- arg2 = &argout2;
- }
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ExportToMICoordSys", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (OGRErr)OSRSpatialReferenceShadow_ExportToMICoordSys(arg1,arg2);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(argout) (char **argout) */
- VALUE outArg;
- if ( arg2 ) {
- outArg = rb_str_new2( *arg2 );
- }
- else {
- outArg = Qnil;
- }
-
- vresult = SWIG_Ruby_AppendOutput(vresult, outArg);
- }
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- {
- /* %typemap(freearg) (char **argout) */
-
- if ( *arg2 )
- CPLFree( *arg2 );
- }
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_clone_geog_cs(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OSRSpatialReferenceShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","CloneGeogCS", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (OSRSpatialReferenceShadow *)OSRSpatialReferenceShadow_CloneGeogCS(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OSRSpatialReferenceShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_clone(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OSRSpatialReferenceShadow *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","Clone", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (OSRSpatialReferenceShadow *)OSRSpatialReferenceShadow_Clone(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OSRSpatialReferenceShadow, SWIG_POINTER_OWN | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_validate(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","Validate", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (OGRErr)OSRSpatialReferenceShadow_Validate(arg1);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_strip_ctparms(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","StripCTParms", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (OGRErr)OSRSpatialReferenceShadow_StripCTParms(arg1);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_fixup_ordering(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","FixupOrdering", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (OGRErr)OSRSpatialReferenceShadow_FixupOrdering(arg1);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_fixup(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","Fixup", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (OGRErr)OSRSpatialReferenceShadow_Fixup(arg1);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_morph_to_esri(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","MorphToESRI", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (OGRErr)OSRSpatialReferenceShadow_MorphToESRI(arg1);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_SpatialReference_morph_from_esri(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- OGRErr result;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","MorphFromESRI", 1, self ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- result = (OGRErr)OSRSpatialReferenceShadow_MorphFromESRI(arg1);
- {
- /* %typemap(out) OGRErr */
- if (result != 0) {
- rb_raise(rb_eRuntimeError, OGRErrMessages(result));
- }
- }
- {
- /* %typemap(ret) OGRErr */
- if (vresult == Qnil) {
- vresult = INT2NUM(0);
- }
- } return vresult;
-fail:
- return Qnil;
-}
-
-
-swig_class SwigClassCoordinateTransformation;
-
-#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
-SWIGINTERN VALUE
-_wrap_CoordinateTransformation_allocate(VALUE self) {
-#else
- SWIGINTERN VALUE
- _wrap_CoordinateTransformation_allocate(int argc, VALUE *argv, VALUE self) {
-#endif
-
-
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OSRCoordinateTransformationShadow);
-#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
- rb_obj_call_init(vresult, argc, argv);
-#endif
- return vresult;
- }
-
-
-SWIGINTERN VALUE
-_wrap_new_CoordinateTransformation(int argc, VALUE *argv, VALUE self) {
- OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
- OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
- OSRCoordinateTransformationShadow *result = 0 ;
-
- if ((argc < 2) || (argc > 2)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","OSRCoordinateTransformationShadow", 1, argv[0] ));
- }
- arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1);
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","OSRCoordinateTransformationShadow", 2, argv[1] ));
- }
- arg2 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp2);
- result = (OSRCoordinateTransformationShadow *)new_OSRCoordinateTransformationShadow(arg1,arg2);
- DATA_PTR(self) = result;
- return self;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN void delete_OSRCoordinateTransformationShadow(OSRCoordinateTransformationShadow *self){
- OCTDestroyCoordinateTransformation( self );
- }
-SWIGINTERN void
-free_OSRCoordinateTransformationShadow(OSRCoordinateTransformationShadow *arg1) {
- delete_OSRCoordinateTransformationShadow(arg1);
-}
-
-SWIGINTERN VALUE
-_wrap_CoordinateTransformation_transform_point__SWIG_0(int argc, VALUE *argv, VALUE self) {
- OSRCoordinateTransformationShadow *arg1 = (OSRCoordinateTransformationShadow *) 0 ;
- double *arg2 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double temp2[3] ;
- VALUE vresult = Qnil;
-
- if ((argc < 1) || (argc > 1)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRCoordinateTransformationShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRCoordinateTransformationShadow *","TransformPoint", 1, self ));
- }
- arg1 = reinterpret_cast< OSRCoordinateTransformationShadow * >(argp1);
- {
- /* %typemap(in) (double argin[ANY]) (double temp2[3]) */
- /* Make sure this is an array. */
- Check_Type(argv[0], T_ARRAY);
-
- /* Get the length */
- int seq_size = RARRAY(argv[0])->len;
-
- if ( seq_size != 3 ) {
- rb_raise(rb_eRangeError, "sequence must have length %i.", seq_size);
- }
-
- for( int i = 0; i<3; i++ ) {
- /* Get the Ruby Object */
- VALUE item = rb_ary_entry(argv[0],i);
-
- /* Convert to double and store in array*/
- temp2[i] = NUM2DBL(item);
- }
-
- /* Set argument arg2 equal to the temp2 array */
- arg2 = temp2;
- }
- OSRCoordinateTransformationShadow_TransformPoint__SWIG_0(arg1,arg2);
- {
- /* %typemap(argout) (double argout[ANY]) */
- VALUE outArr = rb_ary_new();
-
- for(int i=0; i<3; i++)
- {
- VALUE value = rb_float_new((arg2)[i]);
- rb_ary_push(outArr, value);
- }
-
- /* Add the output to the result */
- vresult = SWIG_Ruby_AppendOutput(vresult, outArr);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_CoordinateTransformation_transform_point__SWIG_1(int argc, VALUE *argv, VALUE self) {
- OSRCoordinateTransformationShadow *arg1 = (OSRCoordinateTransformationShadow *) 0 ;
- double *arg2 ;
- double arg3 ;
- double arg4 ;
- double arg5 = (double) 0.0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- double argout2[3] ;
- double val3 ;
- int ecode3 = 0 ;
- double val4 ;
- int ecode4 = 0 ;
- double val5 ;
- int ecode5 = 0 ;
- VALUE vresult = Qnil;
-
- {
- /* %typemap(in,numinputs=0) (double argout2[ANY]) */
- arg2 = argout2;
- }
- if ((argc < 2) || (argc > 3)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRCoordinateTransformationShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRCoordinateTransformationShadow *","TransformPoint", 1, self ));
- }
- arg1 = reinterpret_cast< OSRCoordinateTransformationShadow * >(argp1);
- ecode3 = SWIG_AsVal_double(argv[0], &val3);
- if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","TransformPoint", 3, argv[0] ));
- }
- arg3 = static_cast< double >(val3);
- ecode4 = SWIG_AsVal_double(argv[1], &val4);
- if (!SWIG_IsOK(ecode4)) {
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","TransformPoint", 4, argv[1] ));
- }
- arg4 = static_cast< double >(val4);
- if (argc > 2) {
- ecode5 = SWIG_AsVal_double(argv[2], &val5);
- if (!SWIG_IsOK(ecode5)) {
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "double","TransformPoint", 5, argv[2] ));
- }
- arg5 = static_cast< double >(val5);
- }
- OSRCoordinateTransformationShadow_TransformPoint__SWIG_1(arg1,arg2,arg3,arg4,arg5);
- {
- /* %typemap(argout) (double argout[ANY]) */
- VALUE outArr = rb_ary_new();
-
- for(int i=0; i<3; i++)
- {
- VALUE value = rb_float_new((arg2)[i]);
- rb_ary_push(outArr, value);
- }
-
- /* Add the output to the result */
- vresult = SWIG_Ruby_AppendOutput(vresult, outArr);
- }
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE _wrap_CoordinateTransformation_transform_point(int nargs, VALUE *args, VALUE self) {
- int argc;
- VALUE argv[5];
- int ii;
-
- argc = nargs + 1;
- argv[0] = self;
- if (argc > 5) SWIG_fail;
- for (ii = 1; (ii < argc); ++ii) {
- argv[ii] = args[ii-1];
- }
- if (argc == 2) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OSRCoordinateTransformationShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_double, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- return _wrap_CoordinateTransformation_transform_point__SWIG_0(nargs, args, self);
- }
- }
- }
- if ((argc >= 3) && (argc <= 4)) {
- int _v;
- void *vptr = 0;
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OSRCoordinateTransformationShadow, 0);
- _v = SWIG_CheckState(res);
- if (_v) {
- {
- int res = SWIG_AsVal_double(argv[1], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- {
- int res = SWIG_AsVal_double(argv[2], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- if (argc <= 3) {
- return _wrap_CoordinateTransformation_transform_point__SWIG_1(nargs, args, self);
- }
- {
- int res = SWIG_AsVal_double(argv[3], NULL);
- _v = SWIG_CheckState(res);
- }
- if (_v) {
- return _wrap_CoordinateTransformation_transform_point__SWIG_1(nargs, args, self);
- }
- }
- }
- }
- }
-
-fail:
- Ruby_Format_OverloadedError( argc, 5, "transform_point",
- " void transform_point(double inout[3])\n"
- " void transform_point(double argout[3], double x, double y, double z)\n");
-
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_CoordinateTransformation_transform_points(int argc, VALUE *argv, VALUE self) {
- OSRCoordinateTransformationShadow *arg1 = (OSRCoordinateTransformationShadow *) 0 ;
- int arg2 ;
- double *arg3 = (double *) 0 ;
- double *arg4 = (double *) 0 ;
- double *arg5 = (double *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
- void *argp3 = 0 ;
- int res3 = 0 ;
- void *argp4 = 0 ;
- int res4 = 0 ;
- void *argp5 = 0 ;
- int res5 = 0 ;
-
- if ((argc < 4) || (argc > 4)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
- }
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRCoordinateTransformationShadow, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRCoordinateTransformationShadow *","TransformPoints", 1, self ));
- }
- arg1 = reinterpret_cast< OSRCoordinateTransformationShadow * >(argp1);
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","TransformPoints", 2, argv[0] ));
- }
- arg2 = static_cast< int >(val2);
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_double, 0 | 0 );
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "double *","TransformPoints", 3, argv[1] ));
- }
- arg3 = reinterpret_cast< double * >(argp3);
- res4 = SWIG_ConvertPtr(argv[2], &argp4,SWIGTYPE_p_double, 0 | 0 );
- if (!SWIG_IsOK(res4)) {
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "double *","TransformPoints", 4, argv[2] ));
- }
- arg4 = reinterpret_cast< double * >(argp4);
- res5 = SWIG_ConvertPtr(argv[3], &argp5,SWIGTYPE_p_double, 0 | 0 );
- if (!SWIG_IsOK(res5)) {
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "double *","TransformPoints", 5, argv[3] ));
- }
- arg5 = reinterpret_cast< double * >(argp5);
- OSRCoordinateTransformationShadow_TransformPoints(arg1,arg2,arg3,arg4,arg5);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-
-/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
-
-static swig_type_info _swigt__p_OSRCoordinateTransformationShadow = {"_p_OSRCoordinateTransformationShadow", "OSRCoordinateTransformationShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_OSRSpatialReferenceShadow = {"_p_OSRSpatialReferenceShadow", "OSRSpatialReferenceShadow *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_char = {"_p_char", "char *|retStringAndCPLFree *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_int = {"_p_int", "int *|OGRErr *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_p_double = {"_p_p_double", "double **", 0, 0, (void*)0, 0};
-
-static swig_type_info *swig_type_initial[] = {
- &_swigt__p_OSRCoordinateTransformationShadow,
- &_swigt__p_OSRSpatialReferenceShadow,
- &_swigt__p_char,
- &_swigt__p_double,
- &_swigt__p_int,
- &_swigt__p_long,
- &_swigt__p_p_char,
- &_swigt__p_p_double,
-};
-
-static swig_cast_info _swigc__p_OSRCoordinateTransformationShadow[] = { {&_swigt__p_OSRCoordinateTransformationShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_OSRSpatialReferenceShadow[] = { {&_swigt__p_OSRSpatialReferenceShadow, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_p_double[] = { {&_swigt__p_p_double, 0, 0, 0},{0, 0, 0, 0}};
-
-static swig_cast_info *swig_cast_initial[] = {
- _swigc__p_OSRCoordinateTransformationShadow,
- _swigc__p_OSRSpatialReferenceShadow,
- _swigc__p_char,
- _swigc__p_double,
- _swigc__p_int,
- _swigc__p_long,
- _swigc__p_p_char,
- _swigc__p_p_double,
-};
-
-
-/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
-
-/* -----------------------------------------------------------------------------
- * Type initialization:
- * This problem is tough by the requirement that no dynamic
- * memory is used. Also, since swig_type_info structures store pointers to
- * swig_cast_info structures and swig_cast_info structures store pointers back
- * to swig_type_info structures, we need some lookup code at initialization.
- * The idea is that swig generates all the structures that are needed.
- * The runtime then collects these partially filled structures.
- * The SWIG_InitializeModule function takes these initial arrays out of
- * swig_module, and does all the lookup, filling in the swig_module.types
- * array with the correct data and linking the correct swig_cast_info
- * structures together.
- *
- * The generated swig_type_info structures are assigned staticly to an initial
- * array. We just loop through that array, and handle each type individually.
- * First we lookup if this type has been already loaded, and if so, use the
- * loaded structure instead of the generated one. Then we have to fill in the
- * cast linked list. The cast data is initially stored in something like a
- * two-dimensional array. Each row corresponds to a type (there are the same
- * number of rows as there are in the swig_type_initial array). Each entry in
- * a column is one of the swig_cast_info structures for that type.
- * The cast_initial array is actually an array of arrays, because each row has
- * a variable number of columns. So to actually build the cast linked list,
- * we find the array of casts associated with the type, and loop through it
- * adding the casts to the list. The one last trick we need to do is making
- * sure the type pointer in the swig_cast_info struct is correct.
- *
- * First off, we lookup the cast->type name to see if it is already loaded.
- * There are three cases to handle:
- * 1) If the cast->type has already been loaded AND the type we are adding
- * casting info to has not been loaded (it is in this module), THEN we
- * replace the cast->type pointer with the type pointer that has already
- * been loaded.
- * 2) If BOTH types (the one we are adding casting info to, and the
- * cast->type) are loaded, THEN the cast info has already been loaded by
- * the previous module so we just ignore it.
- * 3) Finally, if cast->type has not already been loaded, then we add that
- * swig_cast_info to the linked list (because the cast->type) pointer will
- * be correct.
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#if 0
-} /* c-mode */
-#endif
-#endif
-
-#if 0
-#define SWIGRUNTIME_DEBUG
-#endif
-
-
-SWIGRUNTIME void
-SWIG_InitializeModule(void *clientdata) {
- size_t i;
- swig_module_info *module_head, *iter;
- int found, init;
-
- clientdata = clientdata;
-
- /* check to see if the circular list has been setup, if not, set it up */
- if (swig_module.next==0) {
- /* Initialize the swig_module */
- swig_module.type_initial = swig_type_initial;
- swig_module.cast_initial = swig_cast_initial;
- swig_module.next = &swig_module;
- init = 1;
- } else {
- init = 0;
- }
-
- /* Try and load any already created modules */
- module_head = SWIG_GetModule(clientdata);
- if (!module_head) {
- /* This is the first module loaded for this interpreter */
- /* so set the swig module into the interpreter */
- SWIG_SetModule(clientdata, &swig_module);
- module_head = &swig_module;
- } else {
- /* the interpreter has loaded a SWIG module, but has it loaded this one? */
- found=0;
- iter=module_head;
- do {
- if (iter==&swig_module) {
- found=1;
- break;
- }
- iter=iter->next;
- } while (iter!= module_head);
-
- /* if the is found in the list, then all is done and we may leave */
- if (found) return;
- /* otherwise we must add out module into the list */
- swig_module.next = module_head->next;
- module_head->next = &swig_module;
- }
-
- /* When multiple interpeters are used, a module could have already been initialized in
- a different interpreter, but not yet have a pointer in this interpreter.
- In this case, we do not want to continue adding types... everything should be
- set up already */
- if (init == 0) return;
-
- /* Now work on filling in swig_module.types */
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: size %d\n", swig_module.size);
-#endif
- for (i = 0; i < swig_module.size; ++i) {
- swig_type_info *type = 0;
- swig_type_info *ret;
- swig_cast_info *cast;
-
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
-#endif
-
- /* if there is another module already loaded */
- if (swig_module.next != &swig_module) {
- type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
- }
- if (type) {
- /* Overwrite clientdata field */
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: found type %s\n", type->name);
-#endif
- if (swig_module.type_initial[i]->clientdata) {
- type->clientdata = swig_module.type_initial[i]->clientdata;
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
-#endif
- }
- } else {
- type = swig_module.type_initial[i];
- }
-
- /* Insert casting types */
- cast = swig_module.cast_initial[i];
- while (cast->type) {
-
- /* Don't need to add information already in the list */
- ret = 0;
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
-#endif
- if (swig_module.next != &swig_module) {
- ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
-#ifdef SWIGRUNTIME_DEBUG
- if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
-#endif
- }
- if (ret) {
- if (type == swig_module.type_initial[i]) {
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
-#endif
- cast->type = ret;
- ret = 0;
- } else {
- /* Check for casting already in the list */
- swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
-#ifdef SWIGRUNTIME_DEBUG
- if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
-#endif
- if (!ocast) ret = 0;
- }
- }
-
- if (!ret) {
-#ifdef SWIGRUNTIME_DEBUG
- printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
-#endif
- if (type->cast) {
- type->cast->prev = cast;
- cast->next = type->cast;
- }
- type->cast = cast;
- }
- cast++;
- }
- /* Set entry in modules->types array equal to the type */
- swig_module.types[i] = type;
- }
- swig_module.types[i] = 0;
-
-#ifdef SWIGRUNTIME_DEBUG
- printf("**** SWIG_InitializeModule: Cast List ******\n");
- for (i = 0; i < swig_module.size; ++i) {
- int j = 0;
- swig_cast_info *cast = swig_module.cast_initial[i];
- printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
- while (cast->type) {
- printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
- cast++;
- ++j;
- }
- printf("---- Total casts: %d\n",j);
- }
- printf("**** SWIG_InitializeModule: Cast List ******\n");
-#endif
-}
-
-/* This function will propagate the clientdata field of type to
-* any new swig_type_info structures that have been added into the list
-* of equivalent types. It is like calling
-* SWIG_TypeClientData(type, clientdata) a second time.
-*/
-SWIGRUNTIME void
-SWIG_PropagateClientData(void) {
- size_t i;
- swig_cast_info *equiv;
- static int init_run = 0;
-
- if (init_run) return;
- init_run = 1;
-
- for (i = 0; i < swig_module.size; i++) {
- if (swig_module.types[i]->clientdata) {
- equiv = swig_module.types[i]->cast;
- while (equiv) {
- if (!equiv->converter) {
- if (equiv->type && !equiv->type->clientdata)
- SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
- }
- equiv = equiv->next;
- }
- }
- }
-}
-
-#ifdef __cplusplus
-#if 0
-{ /* c-mode */
-#endif
-}
-#endif
-
-/*
-
-*/
-#ifdef __cplusplus
-extern "C"
-#endif
-SWIGEXPORT void Init_osr(void) {
- size_t i;
-
- SWIG_InitRuntime();
- mOsr = rb_define_module("Gdal");
- mOsr = rb_define_module_under(mOsr, "Osr");
-
- SWIG_InitializeModule(0);
- for (i = 0; i < swig_module.size; i++) {
- SWIG_define_class(swig_module.types[i]);
- }
-
- SWIG_RubyInitializeTrackings();
- rb_define_const(mOsr, "SRS_WKT_WGS84", SWIG_FromCharPtr("GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9108\"]],AUTHORITY[\"EPSG\",\"4326\"]]"));
- rb_define_const(mOsr, "SRS_PT_ALBERS_CONIC_EQUAL_AREA", SWIG_FromCharPtr("Albers_Conic_Equal_Area"));
- rb_define_const(mOsr, "SRS_PT_AZIMUTHAL_EQUIDISTANT", SWIG_FromCharPtr("Azimuthal_Equidistant"));
- rb_define_const(mOsr, "SRS_PT_CASSINI_SOLDNER", SWIG_FromCharPtr("Cassini_Soldner"));
- rb_define_const(mOsr, "SRS_PT_CYLINDRICAL_EQUAL_AREA", SWIG_FromCharPtr("Cylindrical_Equal_Area"));
- rb_define_const(mOsr, "SRS_PT_BONNE", SWIG_FromCharPtr("Bonne"));
- rb_define_const(mOsr, "SRS_PT_ECKERT_I", SWIG_FromCharPtr("Eckert_I"));
- rb_define_const(mOsr, "SRS_PT_ECKERT_II", SWIG_FromCharPtr("Eckert_II"));
- rb_define_const(mOsr, "SRS_PT_ECKERT_III", SWIG_FromCharPtr("Eckert_III"));
- rb_define_const(mOsr, "SRS_PT_ECKERT_IV", SWIG_FromCharPtr("Eckert_IV"));
- rb_define_const(mOsr, "SRS_PT_ECKERT_V", SWIG_FromCharPtr("Eckert_V"));
- rb_define_const(mOsr, "SRS_PT_ECKERT_VI", SWIG_FromCharPtr("Eckert_VI"));
- rb_define_const(mOsr, "SRS_PT_EQUIDISTANT_CONIC", SWIG_FromCharPtr("Equidistant_Conic"));
- rb_define_const(mOsr, "SRS_PT_EQUIRECTANGULAR", SWIG_FromCharPtr("Equirectangular"));
- rb_define_const(mOsr, "SRS_PT_GALL_STEREOGRAPHIC", SWIG_FromCharPtr("Gall_Stereographic"));
- rb_define_const(mOsr, "SRS_PT_GAUSSSCHREIBERTMERCATOR", SWIG_FromCharPtr("Gauss_Schreiber_Transverse_Mercator"));
- rb_define_const(mOsr, "SRS_PT_GEOSTATIONARY_SATELLITE", SWIG_FromCharPtr("Geostationary_Satellite"));
- rb_define_const(mOsr, "SRS_PT_GOODE_HOMOLOSINE", SWIG_FromCharPtr("Goode_Homolosine"));
- rb_define_const(mOsr, "SRS_PT_GNOMONIC", SWIG_FromCharPtr("Gnomonic"));
- rb_define_const(mOsr, "SRS_PT_HOTINE_OBLIQUE_MERCATOR", SWIG_FromCharPtr("Hotine_Oblique_Mercator"));
- rb_define_const(mOsr, "SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN", SWIG_FromCharPtr("Hotine_Oblique_Mercator_Two_Point_Natural_Origin"));
- rb_define_const(mOsr, "SRS_PT_LABORDE_OBLIQUE_MERCATOR", SWIG_FromCharPtr("Laborde_Oblique_Mercator"));
- rb_define_const(mOsr, "SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP", SWIG_FromCharPtr("Lambert_Conformal_Conic_1SP"));
- rb_define_const(mOsr, "SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP", SWIG_FromCharPtr("Lambert_Conformal_Conic_2SP"));
- rb_define_const(mOsr, "SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM", SWIG_FromCharPtr("Lambert_Conformal_Conic_2SP_Belgium"));
- rb_define_const(mOsr, "SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA", SWIG_FromCharPtr("Lambert_Azimuthal_Equal_Area"));
- rb_define_const(mOsr, "SRS_PT_MERCATOR_1SP", SWIG_FromCharPtr("Mercator_1SP"));
- rb_define_const(mOsr, "SRS_PT_MERCATOR_2SP", SWIG_FromCharPtr("Mercator_2SP"));
- rb_define_const(mOsr, "SRS_PT_MILLER_CYLINDRICAL", SWIG_FromCharPtr("Miller_Cylindrical"));
- rb_define_const(mOsr, "SRS_PT_MOLLWEIDE", SWIG_FromCharPtr("Mollweide"));
- rb_define_const(mOsr, "SRS_PT_NEW_ZEALAND_MAP_GRID", SWIG_FromCharPtr("New_Zealand_Map_Grid"));
- rb_define_const(mOsr, "SRS_PT_OBLIQUE_STEREOGRAPHIC", SWIG_FromCharPtr("Oblique_Stereographic"));
- rb_define_const(mOsr, "SRS_PT_ORTHOGRAPHIC", SWIG_FromCharPtr("Orthographic"));
- rb_define_const(mOsr, "SRS_PT_POLAR_STEREOGRAPHIC", SWIG_FromCharPtr("Polar_Stereographic"));
- rb_define_const(mOsr, "SRS_PT_POLYCONIC", SWIG_FromCharPtr("Polyconic"));
- rb_define_const(mOsr, "SRS_PT_ROBINSON", SWIG_FromCharPtr("Robinson"));
- rb_define_const(mOsr, "SRS_PT_SINUSOIDAL", SWIG_FromCharPtr("Sinusoidal"));
- rb_define_const(mOsr, "SRS_PT_STEREOGRAPHIC", SWIG_FromCharPtr("Stereographic"));
- rb_define_const(mOsr, "SRS_PT_SWISS_OBLIQUE_CYLINDRICAL", SWIG_FromCharPtr("Swiss_Oblique_Cylindrical"));
- rb_define_const(mOsr, "SRS_PT_TRANSVERSE_MERCATOR", SWIG_FromCharPtr("Transverse_Mercator"));
- rb_define_const(mOsr, "SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED", SWIG_FromCharPtr("Transverse_Mercator_South_Orientated"));
- rb_define_const(mOsr, "SRS_PT_TRANSVERSE_MERCATOR_MI_21", SWIG_FromCharPtr("Transverse_Mercator_MapInfo_21"));
- rb_define_const(mOsr, "SRS_PT_TRANSVERSE_MERCATOR_MI_22", SWIG_FromCharPtr("Transverse_Mercator_MapInfo_22"));
- rb_define_const(mOsr, "SRS_PT_TRANSVERSE_MERCATOR_MI_23", SWIG_FromCharPtr("Transverse_Mercator_MapInfo_23"));
- rb_define_const(mOsr, "SRS_PT_TRANSVERSE_MERCATOR_MI_24", SWIG_FromCharPtr("Transverse_Mercator_MapInfo_24"));
- rb_define_const(mOsr, "SRS_PT_TRANSVERSE_MERCATOR_MI_25", SWIG_FromCharPtr("Transverse_Mercator_MapInfo_25"));
- rb_define_const(mOsr, "SRS_PT_TUNISIA_MINING_GRID", SWIG_FromCharPtr("Tunisia_Mining_Grid"));
- rb_define_const(mOsr, "SRS_PT_TWO_POINT_EQUIDISTANT", SWIG_FromCharPtr("Two_Point_Equidistant"));
- rb_define_const(mOsr, "SRS_PT_VANDERGRINTEN", SWIG_FromCharPtr("VanDerGrinten"));
- rb_define_const(mOsr, "SRS_PT_KROVAK", SWIG_FromCharPtr("Krovak"));
- rb_define_const(mOsr, "SRS_PT_IMW_POLYCONIC", SWIG_FromCharPtr("International_Map_of_the_World_Polyconic"));
- rb_define_const(mOsr, "SRS_PT_WAGNER_I", SWIG_FromCharPtr("Wagner_I"));
- rb_define_const(mOsr, "SRS_PT_WAGNER_II", SWIG_FromCharPtr("Wagner_II"));
- rb_define_const(mOsr, "SRS_PT_WAGNER_III", SWIG_FromCharPtr("Wagner_III"));
- rb_define_const(mOsr, "SRS_PT_WAGNER_IV", SWIG_FromCharPtr("Wagner_IV"));
- rb_define_const(mOsr, "SRS_PT_WAGNER_V", SWIG_FromCharPtr("Wagner_V"));
- rb_define_const(mOsr, "SRS_PT_WAGNER_VI", SWIG_FromCharPtr("Wagner_VI"));
- rb_define_const(mOsr, "SRS_PT_WAGNER_VII", SWIG_FromCharPtr("Wagner_VII"));
- rb_define_const(mOsr, "SRS_PP_CENTRAL_MERIDIAN", SWIG_FromCharPtr("central_meridian"));
- rb_define_const(mOsr, "SRS_PP_SCALE_FACTOR", SWIG_FromCharPtr("scale_factor"));
- rb_define_const(mOsr, "SRS_PP_STANDARD_PARALLEL_1", SWIG_FromCharPtr("standard_parallel_1"));
- rb_define_const(mOsr, "SRS_PP_STANDARD_PARALLEL_2", SWIG_FromCharPtr("standard_parallel_2"));
- rb_define_const(mOsr, "SRS_PP_PSEUDO_STD_PARALLEL_1", SWIG_FromCharPtr("pseudo_standard_parallel_1"));
- rb_define_const(mOsr, "SRS_PP_LONGITUDE_OF_CENTER", SWIG_FromCharPtr("longitude_of_center"));
- rb_define_const(mOsr, "SRS_PP_LATITUDE_OF_CENTER", SWIG_FromCharPtr("latitude_of_center"));
- rb_define_const(mOsr, "SRS_PP_LONGITUDE_OF_ORIGIN", SWIG_FromCharPtr("longitude_of_origin"));
- rb_define_const(mOsr, "SRS_PP_LATITUDE_OF_ORIGIN", SWIG_FromCharPtr("latitude_of_origin"));
- rb_define_const(mOsr, "SRS_PP_FALSE_EASTING", SWIG_FromCharPtr("false_easting"));
- rb_define_const(mOsr, "SRS_PP_FALSE_NORTHING", SWIG_FromCharPtr("false_northing"));
- rb_define_const(mOsr, "SRS_PP_AZIMUTH", SWIG_FromCharPtr("azimuth"));
- rb_define_const(mOsr, "SRS_PP_LONGITUDE_OF_POINT_1", SWIG_FromCharPtr("longitude_of_point_1"));
- rb_define_const(mOsr, "SRS_PP_LATITUDE_OF_POINT_1", SWIG_FromCharPtr("latitude_of_point_1"));
- rb_define_const(mOsr, "SRS_PP_LONGITUDE_OF_POINT_2", SWIG_FromCharPtr("longitude_of_point_2"));
- rb_define_const(mOsr, "SRS_PP_LATITUDE_OF_POINT_2", SWIG_FromCharPtr("latitude_of_point_2"));
- rb_define_const(mOsr, "SRS_PP_LONGITUDE_OF_POINT_3", SWIG_FromCharPtr("longitude_of_point_3"));
- rb_define_const(mOsr, "SRS_PP_LATITUDE_OF_POINT_3", SWIG_FromCharPtr("latitude_of_point_3"));
- rb_define_const(mOsr, "SRS_PP_RECTIFIED_GRID_ANGLE", SWIG_FromCharPtr("rectified_grid_angle"));
- rb_define_const(mOsr, "SRS_PP_LANDSAT_NUMBER", SWIG_FromCharPtr("landsat_number"));
- rb_define_const(mOsr, "SRS_PP_PATH_NUMBER", SWIG_FromCharPtr("path_number"));
- rb_define_const(mOsr, "SRS_PP_PERSPECTIVE_POINT_HEIGHT", SWIG_FromCharPtr("perspective_point_height"));
- rb_define_const(mOsr, "SRS_PP_SATELLITE_HEIGHT", SWIG_FromCharPtr("satellite_height"));
- rb_define_const(mOsr, "SRS_PP_FIPSZONE", SWIG_FromCharPtr("fipszone"));
- rb_define_const(mOsr, "SRS_PP_ZONE", SWIG_FromCharPtr("zone"));
- rb_define_const(mOsr, "SRS_PP_LATITUDE_OF_1ST_POINT", SWIG_FromCharPtr("Latitude_Of_1st_Point"));
- rb_define_const(mOsr, "SRS_PP_LONGITUDE_OF_1ST_POINT", SWIG_FromCharPtr("Longitude_Of_1st_Point"));
- rb_define_const(mOsr, "SRS_PP_LATITUDE_OF_2ND_POINT", SWIG_FromCharPtr("Latitude_Of_2nd_Point"));
- rb_define_const(mOsr, "SRS_PP_LONGITUDE_OF_2ND_POINT", SWIG_FromCharPtr("Longitude_Of_2nd_Point"));
- rb_define_const(mOsr, "SRS_UL_METER", SWIG_FromCharPtr("Meter"));
- rb_define_const(mOsr, "SRS_UL_FOOT", SWIG_FromCharPtr("Foot (International)"));
- rb_define_const(mOsr, "SRS_UL_FOOT_CONV", SWIG_FromCharPtr("0.3048"));
- rb_define_const(mOsr, "SRS_UL_US_FOOT", SWIG_FromCharPtr("Foot_US"));
- rb_define_const(mOsr, "SRS_UL_US_FOOT_CONV", SWIG_FromCharPtr("0.3048006096012192"));
- rb_define_const(mOsr, "SRS_UL_NAUTICAL_MILE", SWIG_FromCharPtr("Nautical Mile"));
- rb_define_const(mOsr, "SRS_UL_NAUTICAL_MILE_CONV", SWIG_FromCharPtr("1852.0"));
- rb_define_const(mOsr, "SRS_UL_LINK", SWIG_FromCharPtr("Link"));
- rb_define_const(mOsr, "SRS_UL_LINK_CONV", SWIG_FromCharPtr("0.20116684023368047"));
- rb_define_const(mOsr, "SRS_UL_CHAIN", SWIG_FromCharPtr("Chain"));
- rb_define_const(mOsr, "SRS_UL_CHAIN_CONV", SWIG_FromCharPtr("20.116684023368047"));
- rb_define_const(mOsr, "SRS_UL_ROD", SWIG_FromCharPtr("Rod"));
- rb_define_const(mOsr, "SRS_UL_ROD_CONV", SWIG_FromCharPtr("5.02921005842012"));
- rb_define_const(mOsr, "SRS_UA_DEGREE", SWIG_FromCharPtr("degree"));
- rb_define_const(mOsr, "SRS_UA_DEGREE_CONV", SWIG_FromCharPtr("0.0174532925199433"));
- rb_define_const(mOsr, "SRS_UA_RADIAN", SWIG_FromCharPtr("radian"));
- rb_define_const(mOsr, "SRS_PM_GREENWICH", SWIG_FromCharPtr("Greenwich"));
- rb_define_const(mOsr, "SRS_DN_NAD27", SWIG_FromCharPtr("North_American_Datum_1927"));
- rb_define_const(mOsr, "SRS_DN_NAD83", SWIG_FromCharPtr("North_American_Datum_1983"));
- rb_define_const(mOsr, "SRS_DN_WGS72", SWIG_FromCharPtr("WGS_1972"));
- rb_define_const(mOsr, "SRS_DN_WGS84", SWIG_FromCharPtr("WGS_1984"));
- rb_define_const(mOsr, "SRS_WGS84_SEMIMAJOR", SWIG_From_double(static_cast< double >(6378137.0)));
- rb_define_const(mOsr, "SRS_WGS84_INVFLATTENING", SWIG_From_double(static_cast< double >(298.257223563)));
- rb_define_module_function(mOsr, "get_well_known_geog_csas_wkt", VALUEFUNC(_wrap_get_well_known_geog_csas_wkt), -1);
- rb_define_module_function(mOsr, "get_user_input_as_wkt", VALUEFUNC(_wrap_get_user_input_as_wkt), -1);
- rb_define_module_function(mOsr, "GetProjectionMethods", VALUEFUNC(_wrap_GetProjectionMethods), -1);
- rb_define_module_function(mOsr, "GetProjectionMethodParameterList", VALUEFUNC(_wrap_GetProjectionMethodParameterList), -1);
- rb_define_module_function(mOsr, "GetProjectionMethodParamInfo", VALUEFUNC(_wrap_GetProjectionMethodParamInfo), -1);
-
- SwigClassSpatialReference.klass = rb_define_class_under(mOsr, "SpatialReference", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_OSRSpatialReferenceShadow, (void *) &SwigClassSpatialReference);
- rb_define_alloc_func(SwigClassSpatialReference.klass, _wrap_SpatialReference_allocate);
- rb_define_method(SwigClassSpatialReference.klass, "initialize", VALUEFUNC(_wrap_new_SpatialReference), -1);
- rb_define_method(SwigClassSpatialReference.klass, "to_s", VALUEFUNC(_wrap_SpatialReference___str__), -1);
- rb_define_method(SwigClassSpatialReference.klass, "is_same", VALUEFUNC(_wrap_SpatialReference_is_same), -1);
- rb_define_method(SwigClassSpatialReference.klass, "is_same_geog_cs", VALUEFUNC(_wrap_SpatialReference_is_same_geog_cs), -1);
- rb_define_method(SwigClassSpatialReference.klass, "is_geographic", VALUEFUNC(_wrap_SpatialReference_is_geographic), -1);
- rb_define_method(SwigClassSpatialReference.klass, "is_projected", VALUEFUNC(_wrap_SpatialReference_is_projected), -1);
- rb_define_method(SwigClassSpatialReference.klass, "is_local", VALUEFUNC(_wrap_SpatialReference_is_local), -1);
- rb_define_method(SwigClassSpatialReference.klass, "epsgtreats_as_lat_long", VALUEFUNC(_wrap_SpatialReference_epsgtreats_as_lat_long), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_authority", VALUEFUNC(_wrap_SpatialReference_set_authority), -1);
- rb_define_method(SwigClassSpatialReference.klass, "get_attr_value", VALUEFUNC(_wrap_SpatialReference_get_attr_value), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_attr_value", VALUEFUNC(_wrap_SpatialReference_set_attr_value), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_angular_units", VALUEFUNC(_wrap_SpatialReference_set_angular_units), -1);
- rb_define_method(SwigClassSpatialReference.klass, "get_angular_units", VALUEFUNC(_wrap_SpatialReference_get_angular_units), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_linear_units", VALUEFUNC(_wrap_SpatialReference_set_linear_units), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_linear_units_and_update_parameters", VALUEFUNC(_wrap_SpatialReference_set_linear_units_and_update_parameters), -1);
- rb_define_method(SwigClassSpatialReference.klass, "get_linear_units", VALUEFUNC(_wrap_SpatialReference_get_linear_units), -1);
- rb_define_method(SwigClassSpatialReference.klass, "get_linear_units_name", VALUEFUNC(_wrap_SpatialReference_get_linear_units_name), -1);
- rb_define_method(SwigClassSpatialReference.klass, "get_authority_code", VALUEFUNC(_wrap_SpatialReference_get_authority_code), -1);
- rb_define_method(SwigClassSpatialReference.klass, "get_authority_name", VALUEFUNC(_wrap_SpatialReference_get_authority_name), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_utm", VALUEFUNC(_wrap_SpatialReference_set_utm), -1);
- rb_define_method(SwigClassSpatialReference.klass, "get_utmzone", VALUEFUNC(_wrap_SpatialReference_get_utmzone), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_state_plane", VALUEFUNC(_wrap_SpatialReference_set_state_plane), -1);
- rb_define_method(SwigClassSpatialReference.klass, "auto_identify_epsg", VALUEFUNC(_wrap_SpatialReference_auto_identify_epsg), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_projection", VALUEFUNC(_wrap_SpatialReference_set_projection), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_proj_parm", VALUEFUNC(_wrap_SpatialReference_set_proj_parm), -1);
- rb_define_method(SwigClassSpatialReference.klass, "get_proj_parm", VALUEFUNC(_wrap_SpatialReference_get_proj_parm), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_norm_proj_parm", VALUEFUNC(_wrap_SpatialReference_set_norm_proj_parm), -1);
- rb_define_method(SwigClassSpatialReference.klass, "get_norm_proj_parm", VALUEFUNC(_wrap_SpatialReference_get_norm_proj_parm), -1);
- rb_define_method(SwigClassSpatialReference.klass, "get_semi_major", VALUEFUNC(_wrap_SpatialReference_get_semi_major), -1);
- rb_define_method(SwigClassSpatialReference.klass, "get_semi_minor", VALUEFUNC(_wrap_SpatialReference_get_semi_minor), -1);
- rb_define_method(SwigClassSpatialReference.klass, "get_inv_flattening", VALUEFUNC(_wrap_SpatialReference_get_inv_flattening), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_acea", VALUEFUNC(_wrap_SpatialReference_set_acea), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_ae", VALUEFUNC(_wrap_SpatialReference_set_ae), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_bonne", VALUEFUNC(_wrap_SpatialReference_set_bonne), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_cea", VALUEFUNC(_wrap_SpatialReference_set_cea), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_cs", VALUEFUNC(_wrap_SpatialReference_set_cs), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_ec", VALUEFUNC(_wrap_SpatialReference_set_ec), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_eckert_iv", VALUEFUNC(_wrap_SpatialReference_set_eckert_iv), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_eckert_vi", VALUEFUNC(_wrap_SpatialReference_set_eckert_vi), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_equirectangular", VALUEFUNC(_wrap_SpatialReference_set_equirectangular), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_equirectangular2", VALUEFUNC(_wrap_SpatialReference_set_equirectangular2), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_gauss_schreiber_tmercator", VALUEFUNC(_wrap_SpatialReference_set_gauss_schreiber_tmercator), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_gs", VALUEFUNC(_wrap_SpatialReference_set_gs), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_gh", VALUEFUNC(_wrap_SpatialReference_set_gh), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_geos", VALUEFUNC(_wrap_SpatialReference_set_geos), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_gnomonic", VALUEFUNC(_wrap_SpatialReference_set_gnomonic), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_hom", VALUEFUNC(_wrap_SpatialReference_set_hom), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_hom_2pno", VALUEFUNC(_wrap_SpatialReference_set_hom_2pno), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_krovak", VALUEFUNC(_wrap_SpatialReference_set_krovak), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_laea", VALUEFUNC(_wrap_SpatialReference_set_laea), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_lcc", VALUEFUNC(_wrap_SpatialReference_set_lcc), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_lcc_1sp", VALUEFUNC(_wrap_SpatialReference_set_lcc_1sp), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_lccb", VALUEFUNC(_wrap_SpatialReference_set_lccb), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_mc", VALUEFUNC(_wrap_SpatialReference_set_mc), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_mercator", VALUEFUNC(_wrap_SpatialReference_set_mercator), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_mollweide", VALUEFUNC(_wrap_SpatialReference_set_mollweide), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_nzmg", VALUEFUNC(_wrap_SpatialReference_set_nzmg), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_os", VALUEFUNC(_wrap_SpatialReference_set_os), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_orthographic", VALUEFUNC(_wrap_SpatialReference_set_orthographic), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_polyconic", VALUEFUNC(_wrap_SpatialReference_set_polyconic), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_ps", VALUEFUNC(_wrap_SpatialReference_set_ps), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_robinson", VALUEFUNC(_wrap_SpatialReference_set_robinson), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_sinusoidal", VALUEFUNC(_wrap_SpatialReference_set_sinusoidal), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_stereographic", VALUEFUNC(_wrap_SpatialReference_set_stereographic), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_soc", VALUEFUNC(_wrap_SpatialReference_set_soc), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_tm", VALUEFUNC(_wrap_SpatialReference_set_tm), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_tmvariant", VALUEFUNC(_wrap_SpatialReference_set_tmvariant), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_tmg", VALUEFUNC(_wrap_SpatialReference_set_tmg), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_tmso", VALUEFUNC(_wrap_SpatialReference_set_tmso), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_vdg", VALUEFUNC(_wrap_SpatialReference_set_vdg), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_well_known_geog_cs", VALUEFUNC(_wrap_SpatialReference_set_well_known_geog_cs), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_from_user_input", VALUEFUNC(_wrap_SpatialReference_set_from_user_input), -1);
- rb_define_method(SwigClassSpatialReference.klass, "copy_geog_csfrom", VALUEFUNC(_wrap_SpatialReference_copy_geog_csfrom), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_towgs_84", VALUEFUNC(_wrap_SpatialReference_set_towgs_84), -1);
- rb_define_method(SwigClassSpatialReference.klass, "get_towgs_84", VALUEFUNC(_wrap_SpatialReference_get_towgs_84), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_local_cs", VALUEFUNC(_wrap_SpatialReference_set_local_cs), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_geog_cs", VALUEFUNC(_wrap_SpatialReference_set_geog_cs), -1);
- rb_define_method(SwigClassSpatialReference.klass, "set_proj_cs", VALUEFUNC(_wrap_SpatialReference_set_proj_cs), -1);
- rb_define_method(SwigClassSpatialReference.klass, "import_from_wkt", VALUEFUNC(_wrap_SpatialReference_import_from_wkt), -1);
- rb_define_method(SwigClassSpatialReference.klass, "import_from_proj4", VALUEFUNC(_wrap_SpatialReference_import_from_proj4), -1);
- rb_define_method(SwigClassSpatialReference.klass, "import_from_url", VALUEFUNC(_wrap_SpatialReference_import_from_url), -1);
- rb_define_method(SwigClassSpatialReference.klass, "import_from_esri", VALUEFUNC(_wrap_SpatialReference_import_from_esri), -1);
- rb_define_method(SwigClassSpatialReference.klass, "import_from_epsg", VALUEFUNC(_wrap_SpatialReference_import_from_epsg), -1);
- rb_define_method(SwigClassSpatialReference.klass, "import_from_epsga", VALUEFUNC(_wrap_SpatialReference_import_from_epsga), -1);
- rb_define_method(SwigClassSpatialReference.klass, "import_from_pci", VALUEFUNC(_wrap_SpatialReference_import_from_pci), -1);
- rb_define_method(SwigClassSpatialReference.klass, "import_from_usgs", VALUEFUNC(_wrap_SpatialReference_import_from_usgs), -1);
- rb_define_method(SwigClassSpatialReference.klass, "import_from_xml", VALUEFUNC(_wrap_SpatialReference_import_from_xml), -1);
- rb_define_method(SwigClassSpatialReference.klass, "import_from_erm", VALUEFUNC(_wrap_SpatialReference_import_from_erm), -1);
- rb_define_method(SwigClassSpatialReference.klass, "import_from_micoord_sys", VALUEFUNC(_wrap_SpatialReference_import_from_micoord_sys), -1);
- rb_define_method(SwigClassSpatialReference.klass, "export_to_wkt", VALUEFUNC(_wrap_SpatialReference_export_to_wkt), -1);
- rb_define_method(SwigClassSpatialReference.klass, "export_to_pretty_wkt", VALUEFUNC(_wrap_SpatialReference_export_to_pretty_wkt), -1);
- rb_define_method(SwigClassSpatialReference.klass, "export_to_proj4", VALUEFUNC(_wrap_SpatialReference_export_to_proj4), -1);
- rb_define_method(SwigClassSpatialReference.klass, "export_to_pci", VALUEFUNC(_wrap_SpatialReference_export_to_pci), -1);
- rb_define_method(SwigClassSpatialReference.klass, "export_to_usgs", VALUEFUNC(_wrap_SpatialReference_export_to_usgs), -1);
- rb_define_method(SwigClassSpatialReference.klass, "export_to_xml", VALUEFUNC(_wrap_SpatialReference_export_to_xml), -1);
- rb_define_method(SwigClassSpatialReference.klass, "export_to_micoord_sys", VALUEFUNC(_wrap_SpatialReference_export_to_micoord_sys), -1);
- rb_define_method(SwigClassSpatialReference.klass, "clone_geog_cs", VALUEFUNC(_wrap_SpatialReference_clone_geog_cs), -1);
- rb_define_method(SwigClassSpatialReference.klass, "clone", VALUEFUNC(_wrap_SpatialReference_clone), -1);
- rb_define_method(SwigClassSpatialReference.klass, "validate", VALUEFUNC(_wrap_SpatialReference_validate), -1);
- rb_define_method(SwigClassSpatialReference.klass, "strip_ctparms", VALUEFUNC(_wrap_SpatialReference_strip_ctparms), -1);
- rb_define_method(SwigClassSpatialReference.klass, "fixup_ordering", VALUEFUNC(_wrap_SpatialReference_fixup_ordering), -1);
- rb_define_method(SwigClassSpatialReference.klass, "fixup", VALUEFUNC(_wrap_SpatialReference_fixup), -1);
- rb_define_method(SwigClassSpatialReference.klass, "morph_to_esri", VALUEFUNC(_wrap_SpatialReference_morph_to_esri), -1);
- rb_define_method(SwigClassSpatialReference.klass, "morph_from_esri", VALUEFUNC(_wrap_SpatialReference_morph_from_esri), -1);
- SwigClassSpatialReference.mark = 0;
- SwigClassSpatialReference.destroy = (void (*)(void *)) free_OSRSpatialReferenceShadow;
- SwigClassSpatialReference.trackObjects = 0;
-
- SwigClassCoordinateTransformation.klass = rb_define_class_under(mOsr, "CoordinateTransformation", rb_cObject);
- SWIG_TypeClientData(SWIGTYPE_p_OSRCoordinateTransformationShadow, (void *) &SwigClassCoordinateTransformation);
- rb_define_alloc_func(SwigClassCoordinateTransformation.klass, _wrap_CoordinateTransformation_allocate);
- rb_define_method(SwigClassCoordinateTransformation.klass, "initialize", VALUEFUNC(_wrap_new_CoordinateTransformation), -1);
- rb_define_method(SwigClassCoordinateTransformation.klass, "transform_point", VALUEFUNC(_wrap_CoordinateTransformation_transform_point), -1);
- rb_define_method(SwigClassCoordinateTransformation.klass, "transform_points", VALUEFUNC(_wrap_CoordinateTransformation_transform_points), -1);
- SwigClassCoordinateTransformation.mark = 0;
- SwigClassCoordinateTransformation.destroy = (void (*)(void *)) free_OSRCoordinateTransformationShadow;
- SwigClassCoordinateTransformation.trackObjects = 0;
-}
-
--
GDAL/OGR library and tools
More information about the Pkg-grass-devel
mailing list