Re: [gdal-dev] MEM Datasets

2010-07-13 Thread James Meyer
Ah yes that's it. Thanks a lot! On 7/13/2010 2:33 PM, Frank Warmerdam wrote: James Meyer wrote: Hi Actually I did call it. Sorry I just didn't include it in the code because it was much earlier in the program. However after some playing around, it seems that the error only occurs IF I did

Re: [gdal-dev] MEM Datasets

2010-07-13 Thread Frank Warmerdam
James Meyer wrote: Hi Actually I did call it. Sorry I just didn't include it in the code because it was much earlier in the program. However after some playing around, it seems that the error only occurs IF I did a write to the MEM dataset. (Although it occurs WHEN I close it). The code I

Re: [gdal-dev] MEM Datasets

2010-07-13 Thread James Meyer
Hi Actually I did call it. Sorry I just didn't include it in the code because it was much earlier in the program. However after some playing around, it seems that the error only occurs IF I did a write to the MEM dataset. (Although it occurs WHEN I close it). The code I am using to test is

Re: [gdal-dev] MEM Datasets

2010-07-13 Thread Chaitanya kumar CH
James, You forgot to call GDALAllRegister() before opening the dataset. Then you will not get a NULL with GDALOpen(). http://www.gdal.org/gdal_tutorial.html On Tue, Jul 13, 2010 at 3:40 PM, James Meyer wrote: > Hi > > I am trying to use MEM (In-memory) datasets with GDAL. > However, on trying t

[gdal-dev] MEM Datasets

2010-07-13 Thread James Meyer
Hi I am trying to use MEM (In-memory) datasets with GDAL. However, on trying to close the dataset I get a segmentation fault. The dataset is created successfully. The handle returned is valid and I am able to read and write to it. Am I not supposed to try and close the handle or am I doing som