Skip to content

Commit 6ef5fb7

Browse files
committed
[osm] add two more tags to area check
1 parent 7aae459 commit 6ef5fb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/analysis/openstreetmap/qgsosmdatabase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ void QgsOSMDatabase::exportSpatiaLiteWays( bool closed, const QString& tableName
476476
{
477477
// make sure tags that indicate areas are taken into consideration when deciding on a closed way is or isn't an area
478478
// and allow for a closed way to be exported both as a polygon and a line in case both area and non-area tags are present
479-
if ( ( t.value( "area" ) != "yes" && !t.contains( "amenity" ) && !t.contains( "landuse" ) && !t.contains( "building" ) && !t.contains( "natural" ) ) || !closed )
479+
if ( ( t.value( "area" ) != "yes" && !t.contains( "amenity" ) && !t.contains( "landuse" ) && !t.contains( "building" ) && !t.contains( "natural" ) && !t.contains( "leisure" ) && !t.contains( "aeroway" ) ) || !closed )
480480
isArea = false;
481481
}
482482

0 commit comments

Comments
 (0)