Ticket #1223 (closed defect: fixed)
OGRSFDriver::CreateDataSource creates data source with NULL driver
| Reported by: | amagnum2@… | Owned by: | mloskot |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.4.2 |
| Component: | OGR_SRS | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: | warmerdam |
Description (last modified by mloskot) (diff)
I use CreateDataSource? to create several shape files layers in a folder, or to create tables in PGSQL.
I 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.
- First part
When I use OGRSFDriver::CreateDataSource? the driver (fetched with GetDriver?()) is NULL.
- Second part
When I use OGRSFDriverRegistrar::Open on the same directory with shape files the driver pointer is attached.
What's more interesting is that it still crates the layers properly even though the driver is NULL :)
Ariel
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

