mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
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
This commit is contained in:
parent
d8b5738033
commit
6c3323739c
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user