[gdal-dev] shared datasets

April Shimitz shimitz at u...
Thu Sep 5 20:34:19 EDT 2002


Can you give me an idea when these changes will be made, or should I just
commit them to the repository myself?


----- Forwarded by April Shimitz/NMD/CONT/USGS/DOI on 09/05/02 07:32 PM

"April Shimitz" 
<shimitz at u... To: gdal-dev at yahoogroups.com 
v> cc: 
Subject: [gdal-dev] shared datasets 
08/20/02 11:01 
Please respond 
to gdal-dev 

(Embedded image moved My Groups | gdal-dev Main Page 
to file: 


I have a few changes for the GDAL core. First is just a minor bug in the
GDALDataset Create method. The return of GetDescription() is getting
checked at line 185 against NULL, but GetDescription returns the
description string or an empty string. I think Create should be comparing
the return to an empty string, not NULL.

For LAS, we have implemented a wrapper layer around the GDAL calls to make
our transition from our old image I/O library to the GDAL library a
smoother process. In the wrapper layer we implemented some routines to
track the open datasets so files don't get opened multiple times. I just
found a bug in one of those routines and was trying to fix it when I came
across your GDALOpenShared function. The dataset sharing you've implemented
does has mostly the same functionality we had implemented in our wrapper
layer, so I decided to just use that instead. There were a couple glitches
I found when trying to use it though - functionality I need but couldn't
find implemented anywhere (I could have just missed it if it is already).
First, I need some way to find out what datasets are currently open quicker
than dumping the datasets to a file (GDALDumpOpenDatasets) then parsing the
file to retrieve the datasets. So I implemented a public version of the
GetOpenDatasets routine (GDALGetOpenDatasets). The other thing was that I
needed the ability to determine the access method used to open the file
described by a given dataset. That was not available publicly either, so I
implemented a GDALGetAccess routine. I have attached a single patch file
containing these modifications.

Let me know when (and if) these routines get incorporated into the GDAL
core and if you make any changes to them.

April Shimitz

(See attached file: gdalcore.patch)

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. (See
attached file: gdalcore.patch)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 147 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20020905/bcc26985/attachment.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 151 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20020905/bcc26985/attachment.obj

More information about the Gdal-dev mailing list