Skip to content

Commit f3c781e

Browse files
committed
Merge pull request #2117 from nirvn/osm_area_more_improvements
[OSM] add two more tags to determine area of closed ways with highway / barrier
2 parents 7aae459 + 6ef5fb7 commit f3c781e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/analysis/openstreetmap/qgsosmdatabase.cpp

+1-1
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)