Skip to content
Permalink
Browse files
SQLite: show geometry as WKT
  • Loading branch information
elpaso committed Jul 6, 2021
1 parent ef529b8 commit 73103f0dc7fea5fb7d447cf6668004e75bc6e963
@@ -429,7 +429,7 @@ QgsAbstractDatabaseProviderConnection::QueryResult QgsGeoPackageProviderConnecti
pkColumnName = primaryKeyColumnName( match.captured( match.lastCapturedIndex() ) );
}

// default to "fid"
// fallback to "fid"
if ( pkColumnName.isEmpty() )
{
pkColumnName = QStringLiteral( "fid" );
@@ -589,7 +589,7 @@ QVariantList QgsGeoPackageProviderResultIterator::nextRowInternal()
// Geom goes last
if ( ! mGeometryColumnName.isEmpty( ) )
{
row.push_back( f.geometry().asWkb() );
row.push_back( f.geometry().asWkt() );
}

}
@@ -589,7 +589,7 @@ QVariantList QgsSpatialiteProviderResultIterator::nextRowInternal()
// Geom goes last
if ( ! mGeometryColumnName.isEmpty( ) )
{
row.push_back( f.geometry().asWkb() );
row.push_back( f.geometry().asWkt() );
}

}

0 comments on commit 73103f0

Please sign in to comment.