Skip to content
Permalink
Browse files

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
  • Loading branch information
mhugent
mhugent committed Nov 8, 2009
1 parent d8b5738 commit 6c3323739c839a098d387d04a132ec7be894e2ee
Showing with 6 additions and 4 deletions.
  1. +2 −1 python/core/qgsvectorfilewriter.sip
  2. +2 −2 src/core/qgsvectorfilewriter.cpp
  3. +2 −1 src/core/qgsvectorfilewriter.h
@@ -37,7 +37,8 @@ public:
const QString& fileEncoding,
const QMap<int, QgsField>& fields,
QGis::WkbType geometryType,
const QgsCoordinateReferenceSystem* srs);
const QgsCoordinateReferenceSystem* srs,
const QString& driverName = "ESRI Shapefile" );

/** checks whether there were any errors in constructor */
WriterError hasError();
@@ -43,11 +43,11 @@ QgsVectorFileWriter::QgsVectorFileWriter( const QString& shapefileName,
const QString& fileEncoding,
const QgsFieldMap& fields,
QGis::WkbType geometryType,
const QgsCoordinateReferenceSystem* srs )
const QgsCoordinateReferenceSystem* srs,
const QString& driverName )
: mDS( NULL ), mLayer( NULL ), mGeom( NULL ), mError( NoError )
{
// save the layer as a shapefile
QString driverName = "ESRI Shapefile";

// find driver in OGR
OGRSFDriverH poDriver;
@@ -65,7 +65,8 @@ class CORE_EXPORT QgsVectorFileWriter
const QString& fileEncoding,
const QgsFieldMap& fields,
QGis::WkbType geometryType,
const QgsCoordinateReferenceSystem* srs );
const QgsCoordinateReferenceSystem* srs,
const QString& driverName = "ESRI Shapefile" );

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

0 comments on commit 6c33237

Please sign in to comment.
You can’t perform that action at this time.