Changes between Version 2 and Version 3 of Ticket #1223


Ignore:
Timestamp:
Apr 27, 2007, 12:14:19 AM (17 years ago)
Author:
Mateusz Łoskot
Comment:

Ariel,

I attached two small tests based on your explanation of the problem.

I think I understand the problem correctly, but please could you verify my understanding and tests I prepared?

Here is my run of these tests:

mloskot:~/dev/gdal/bugs/1223$ ./create 
Test: create
NOT OK! Driver is NULL!

mloskot:~/dev/gdal/bugs/1223$ ./open 
Test: open
OK! Driver attached!

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1223 – Description

    v2 v3  
    33I get an instance of the SHAPE driver, and then I specify in the name paramater the relative path of the folder, then I issue CreateLayer to create the shape files.
    44
    5 When I use OGRSFDriverRegistrar::Open on the same directory with shape files the driver pointer is attached. When I use OGRSFDriver::CreateDataSource the driver (fetched with GetDriver()) is NULL.
     5 * First part
     6
     7When I use OGRSFDriver::CreateDataSource the driver (fetched with GetDriver()) is NULL.
     8
     9 * Second part
     10
     11When I use OGRSFDriverRegistrar::Open on the same directory with shape files the driver pointer is attached.
     12
    613
    714What's more interesting is that it still crates the layers properly even though the driver is NULL :)