forked from pnorman/ogr2osm
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#33 Add test case for filter_layer translations returning None
- Loading branch information
1 parent
8a282f8
commit a70e3c4
Showing
5 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<osm version="0.6" generator="osmconvert 0.8.10"> | ||
</osm> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<osm version="0.6" generator="ogr2osm 1.1.2" upload="false"> | ||
</osm> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
''' | ||
Copyright (c) 2012-2021 Roel Derickx, Paul Norman <penorman@mac.com>, | ||
Sebastiaan Couwenberg <sebastic@xs4all.nl>, The University of Vermont | ||
<andrew.guertin@uvm.edu>, github contributors | ||
Released under the MIT license, as given in the file LICENSE, which must | ||
accompany any distribution of this code. | ||
''' | ||
|
||
import ogr2osm, logging | ||
|
||
class FilterLayerTranslation(ogr2osm.TranslationBase): | ||
def __init__(self): | ||
self.logger = logging.getLogger('ogr2osm') | ||
|
||
|
||
def filter_layer(self, layer): | ||
# suppress all layers | ||
return None |