Skip to content

Commit 6c33237

Browse files
author
mhugent
committed
Committing Horsts OGR format patch from the QGIS hackfest in Vienna
git-svn-id: http://svn.osgeo.org/qgis/trunk@12026 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d8b5738 commit 6c33237

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

python/core/qgsvectorfilewriter.sip

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public:
3737
const QString& fileEncoding,
3838
const QMap<int, QgsField>& fields,
3939
QGis::WkbType geometryType,
40-
const QgsCoordinateReferenceSystem* srs);
40+
const QgsCoordinateReferenceSystem* srs,
41+
const QString& driverName = "ESRI Shapefile" );
4142

4243
/** checks whether there were any errors in constructor */
4344
WriterError hasError();

src/core/qgsvectorfilewriter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ QgsVectorFileWriter::QgsVectorFileWriter( const QString& shapefileName,
4343
const QString& fileEncoding,
4444
const QgsFieldMap& fields,
4545
QGis::WkbType geometryType,
46-
const QgsCoordinateReferenceSystem* srs )
46+
const QgsCoordinateReferenceSystem* srs,
47+
const QString& driverName )
4748
: mDS( NULL ), mLayer( NULL ), mGeom( NULL ), mError( NoError )
4849
{
4950
// save the layer as a shapefile
50-
QString driverName = "ESRI Shapefile";
5151

5252
// find driver in OGR
5353
OGRSFDriverH poDriver;

src/core/qgsvectorfilewriter.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ class CORE_EXPORT QgsVectorFileWriter
6565
const QString& fileEncoding,
6666
const QgsFieldMap& fields,
6767
QGis::WkbType geometryType,
68-
const QgsCoordinateReferenceSystem* srs );
68+
const QgsCoordinateReferenceSystem* srs,
69+
const QString& driverName = "ESRI Shapefile" );
6970

7071
/** checks whether there were any errors in constructor */
7172
WriterError hasError();

0 commit comments

Comments
 (0)