Skip to content

Commit

Permalink
Merge pull request #30272 from rduivenvoorde/geojsonRFC7946
Browse files Browse the repository at this point in the history
Add option for RFC7946 (no crs) ogr GeoJSON creation
  • Loading branch information
m-kuhn committed Jul 3, 2019
2 parents cd091f1 + 9191c05 commit 60bcd63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/qgsvectorfilewriter.cpp
Expand Up @@ -1079,6 +1079,13 @@ class QgsVectorFileWriterMetadataContainer
15 // Default value
) );

layerOptions.insert( QStringLiteral( "RFC7946" ), new QgsVectorFileWriter::BoolOption(
QObject::tr( "Whether to use RFC 7946 standard. "
"If disabled GeoJSON 2008 initial version will be used. "
"Default is NO (thus GeoJSON 2008). See also Documentation (via Help button)" ),
false // Default value
) );

driverMetadata.insert( QStringLiteral( "GeoJSON" ),
QgsVectorFileWriter::MetaData(
QStringLiteral( "GeoJSON" ),
Expand Down

0 comments on commit 60bcd63

Please sign in to comment.