155 |
return PyCObject_FromVoidPtr(self->proj, NULL); |
return PyCObject_FromVoidPtr(self->proj, NULL); |
156 |
} |
} |
157 |
|
|
158 |
|
|
159 |
|
/* The __del__ method generated by the old SWIG version we're |
160 |
|
* tries to access self.thisown which may not be set at all when |
161 |
|
* there was an exception during construction. Therefore we |
162 |
|
* override it with our own version. |
163 |
|
* FIXME: It would be better to upgrade to a newer SWIG version |
164 |
|
* or to get rid of SWIG entirely. |
165 |
|
*/ |
166 |
|
%pragma(python) addtoclass = " |
167 |
|
def __del__(self,Projectionc=Projectionc): |
168 |
|
if getattr(self, 'thisown', 0): |
169 |
|
Projectionc.delete_Projection(self) |
170 |
|
" |
171 |
|
|
172 |
} |
} |
173 |
} Projection; |
} Projection; |
174 |
|
|