Skip to content

Commit

Permalink
Merge pull request #2117 from nirvn/osm_area_more_improvements
Browse files Browse the repository at this point in the history
[OSM] add two more tags to determine area of closed ways with highway / barrier
  • Loading branch information
wonder-sk committed Jun 6, 2015
2 parents 7aae459 + 6ef5fb7 commit f3c781e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/openstreetmap/qgsosmdatabase.cpp
Expand Up @@ -476,7 +476,7 @@ void QgsOSMDatabase::exportSpatiaLiteWays( bool closed, const QString& tableName
{
// make sure tags that indicate areas are taken into consideration when deciding on a closed way is or isn't an area
// 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
if ( ( t.value( "area" ) != "yes" && !t.contains( "amenity" ) && !t.contains( "landuse" ) && !t.contains( "building" ) && !t.contains( "natural" ) ) || !closed )
if ( ( t.value( "area" ) != "yes" && !t.contains( "amenity" ) && !t.contains( "landuse" ) && !t.contains( "building" ) && !t.contains( "natural" ) && !t.contains( "leisure" ) && !t.contains( "aeroway" ) ) || !closed )
isArea = false;
}

Expand Down

0 comments on commit f3c781e

Please sign in to comment.