Skip to content

Commit 9bc61e7

Browse files
committedAug 11, 2016
[processing] Create vector files using default dataset/layer options
Fixes missing CRS when saving to GML (fix #14544)
1 parent b6d0320 commit 9bc61e7

File tree

101 files changed

+1326
-143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+1326
-143
lines changed
 

‎python/core/qgsvectorfilewriter.sip

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,20 @@ class QgsVectorFileWriter
280280

281281
static bool driverMetadata( const QString& driverName, MetaData& driverMetadata );
282282

283+
/** Returns a list of the default dataset options for a specified driver.
284+
* @param driverName name of OGR driver
285+
* @note added in QGIS 3.0
286+
* @see defaultLayerOptions()
287+
*/
288+
static QStringList defaultDatasetOptions( const QString& driverName );
289+
290+
/** Returns a list of the default layer options for a specified driver.
291+
* @param driverName name of OGR driver
292+
* @note added in QGIS 3.0
293+
* @see defaultDatasetOptions()
294+
*/
295+
static QStringList defaultLayerOptions( const QString& driverName );
296+
283297
protected:
284298
//! @note not available in python bindings
285299
// OGRGeometryH createEmptyGeometry( QgsWkbTypes::Type wkbType );
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<GMLFeatureClassList>
2+
<GMLFeatureClass>
3+
<Name>PolygonDissolveTest_output</Name>
4+
<ElementPath>PolygonDissolveTest_output</ElementPath>
5+
<GeometryType>6</GeometryType>
6+
<SRSName>EPSG:3003</SRSName>
7+
<DatasetSpecificInfo>
8+
<FeatureCount>1</FeatureCount>
9+
<ExtentXMin>1754260.45566</ExtentXMin>
10+
<ExtentXMax>1757399.08743</ExtentXMax>
11+
<ExtentYMin>5078929.55554</ExtentYMin>
12+
<ExtentYMax>5080666.09361</ExtentYMax>
13+
</DatasetSpecificInfo>
14+
</GMLFeatureClass>
15+
</GMLFeatureClassList>

0 commit comments

Comments
 (0)
Please sign in to comment.