File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ void locator_t::build_index()
82
82
m_data.emplace_back (region.box (), n++);
83
83
}
84
84
85
+ m_rtree.clear ();
85
86
m_rtree.insert (m_data.cbegin (), m_data.cend ());
86
87
}
87
88
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ Feature: Locators
45
45
NAME[]
46
46
"""
47
47
48
- Scenario : Define a locator without name is okay
48
+ Scenario : Calling name() on locator with . instead of : does not work
49
49
Given the OSM data
50
50
"""
51
51
"""
Original file line number Diff line number Diff line change @@ -135,7 +135,10 @@ def setup_inline_lua_style(context):
135
135
136
136
@given ("the style file '(?P<style>.+)'" )
137
137
def setup_style_file (context , style ):
138
- context .osm2pgsql_params .extend (('-S' , str (context .test_data_dir / style )))
138
+ if '-S' in context .osm2pgsql_params :
139
+ context .osm2pgsql_params [context .osm2pgsql_params .index ('-S' ) + 1 ] = str (context .test_data_dir / style )
140
+ else :
141
+ context .osm2pgsql_params .extend (('-S' , str (context .test_data_dir / style )))
139
142
140
143
141
144
@when (r"running osm2pgsql (?P<output>\w+)(?: with parameters)?" )
You can’t perform that action at this time.
0 commit comments