Opened 8 years ago

Closed 5 years ago

#6414 closed enhancement (wontfix)

Allow layer creation options in GDALDriver::CreateCopy

Reported by: dsogari Owned by: warmerdam
Priority: normal Milestone: closed_because_of_github_migration
Component: default Version: 2.0.2
Severity: normal Keywords: gdaldriver createcopy layer option
Cc:

Description

In the software we are developing, which depends on GDAL, we miss an important feature that is currently only accessible through GDALDataset::CreateLayer or GDALDataset::CopyLayer, namely the layer creation options.

We no not use the ogr2ogr utility to convert between formats, but instead we rely on GDALDriver::CreateCopy and this method does not allow specification of layer creation options in its current signature.

So we made some small modifications to the code of gdal_priv.h and gdaldriver.cpp (whose diff relative to version 2.0.2 is attached) to permit such functionality. We would like you to review them and perhaps accept them as an enhancement for the next release.

Obs.: the modifications do not account for drivers which implement their own version of CreateCopy; it only affects drivers that fall back to the default behaviour, namely GDALDriver::DefaultCreateCopy

Attachments (1)

gcore.patch (4.7 KB ) - added by dsogari 8 years ago.
Diff of gdal_priv.h and gdaldriver.cpp (relative to version 2.0.2)

Download all attachments as: .zip

Change History (4)

by dsogari, 8 years ago

Attachment: gcore.patch added

Diff of gdal_priv.h and gdaldriver.cpp (relative to version 2.0.2)

comment:1 by Even Rouault, 8 years ago

Removing target milestone as it corresponds to a now closed milestone.

comment:2 by Even Rouault, 8 years ago

Milestone: 2.0.3

comment:3 by Even Rouault, 5 years ago

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: newclosed

This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.

Note: See TracTickets for help on using tickets.