Error when opening an SDTS Vector Dataset -- patch attached

Ken Hampton monkeywrench at s...
Tue Mar 5 02:13:03 EST 2002


Frank W.:

Forgive the cross-posting... it wasn't clear which list this was most
appropriate to.

I ran into a problem with GDAL when using OpenEV's reference application
(openev.py). I was attempting to load an SDTS Vector dataset without
success, with the application (actually gdal) complaining (more or less)
that yes, it can see that this is an SDTS dataset, but that the dataset
has no cell layers. So I went poking around in the code a bit and found
that the problem is with the GDAL SDTS driver treating this as an
"error" condition, and so the application looks no further and never
loops into the OGR SDTS driver.

Applying the patch (basically a one-liner) attached to this e-mail
solves the problem.

I don't think I would quite call this a "bug", when considered strictly
in a GDAL context. However, in a combined GDAL/OGR scenario, the
handling of this exception is somewhat problematic. It's not clear what
side effects this patch might have on other applications, but I thought
I'd give you a heads up that you might be getting other similar reports
due to the problem. I leave you with determining the real fix.

Best regards.


(By the way, your code is a delight to work with. Thanks for your many
contributions to the open source community.)


==========================================================

The patch applies to gdal-1.1.5/frmts/sdts/sdtsdataset.cpp

==========================================================

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sdtsdataset.cpp.patch
Type: text/x-patch
Size: 371 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20020305/97686020/sdtsdataset.cpp.bin


More information about the Gdal-dev mailing list