Merge commit '6eb4f090f98f6b17a23c57768c16b7716b6c9cbd' as 'third_party/libosmium'
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
|
||||
add_test(NAME examples_dump_internal
|
||||
COMMAND osmium_dump_internal ${CMAKE_CURRENT_SOURCE_DIR}/data.osm ${CMAKE_CURRENT_BINARY_DIR}/out)
|
||||
|
||||
|
||||
add_test(NAME examples_dump_internal_index_nodes
|
||||
COMMAND osmium_index_lookup --list=${CMAKE_CURRENT_BINARY_DIR}/out/nodes.idx --type=offset --dump)
|
||||
|
||||
set_tests_properties(examples_dump_internal_index_nodes PROPERTIES
|
||||
DEPENDS examples_dump_internal
|
||||
PASS_REGULAR_EXPRESSION "^701000 .*\n701001 .*\n")
|
||||
|
||||
|
||||
add_test(NAME examples_dump_internal_index_ways
|
||||
COMMAND osmium_index_lookup --list=${CMAKE_CURRENT_BINARY_DIR}/out/ways.idx --type=offset --dump)
|
||||
|
||||
set_tests_properties(examples_dump_internal_index_ways PROPERTIES
|
||||
DEPENDS examples_dump_internal
|
||||
PASS_REGULAR_EXPRESSION "^701800 .*\n701801 .*\n")
|
||||
|
||||
|
||||
add_test(NAME examples_dump_internal_map_node2way_dump
|
||||
COMMAND osmium_index_lookup --list=${CMAKE_CURRENT_BINARY_DIR}/out/node2way.map --type=id --dump)
|
||||
|
||||
set_tests_properties(examples_dump_internal_map_node2way_dump PROPERTIES
|
||||
DEPENDS examples_dump_internal
|
||||
PASS_REGULAR_EXPRESSION "^701000 701800\n701000 701801\n701001 701800\n")
|
||||
|
||||
|
||||
add_test(NAME examples_dump_internal_map_node2way_search
|
||||
COMMAND osmium_index_lookup --list=${CMAKE_CURRENT_BINARY_DIR}/out/node2way.map --type=id --search=701002)
|
||||
|
||||
set_tests_properties(examples_dump_internal_map_node2way_search PROPERTIES
|
||||
DEPENDS examples_dump_internal
|
||||
PASS_REGULAR_EXPRESSION "^701002 701800\n701002 701801\n$")
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<osm version="0.6" generator="testdata" upload="false">
|
||||
<node id="701000" version="1" timestamp="2014-01-01T00:00:00Z" uid="1" user="test" changeset="1" lon="7.11" lat="1.01"/>
|
||||
<node id="701001" version="1" timestamp="2014-01-01T00:00:00Z" uid="1" user="test" changeset="1" lon="7.11" lat="1.04"/>
|
||||
<node id="701002" version="1" timestamp="2014-01-01T00:00:00Z" uid="1" user="test" changeset="1" lon="7.14" lat="1.04"/>
|
||||
<node id="701003" version="1" timestamp="2014-01-01T00:00:00Z" uid="1" user="test" changeset="1" lon="7.14" lat="1.01"/>
|
||||
<way id="701800" version="1" timestamp="2014-01-01T00:00:00Z" uid="1" user="test" changeset="1">
|
||||
<nd ref="701000"/>
|
||||
<nd ref="701001"/>
|
||||
<nd ref="701002"/>
|
||||
<tag k="test:section" v="mp-geom"/>
|
||||
<tag k="test:id" v="701"/>
|
||||
</way>
|
||||
<way id="701801" version="1" timestamp="2014-01-01T00:00:00Z" uid="1" user="test" changeset="1">
|
||||
<nd ref="701002"/>
|
||||
<nd ref="701003"/>
|
||||
<nd ref="701000"/>
|
||||
<tag k="test:section" v="mp-geom"/>
|
||||
<tag k="test:id" v="701"/>
|
||||
</way>
|
||||
<relation id="701900" version="1" timestamp="2014-01-01T00:00:00Z" uid="1" user="test" changeset="1">
|
||||
<member type="way" ref="701800" role="outer"/>
|
||||
<member type="way" ref="701801" role="outer"/>
|
||||
<tag k="type" v="multipolygon"/>
|
||||
<tag k="test:section" v="mp-geom"/>
|
||||
<tag k="test:id" v="701"/>
|
||||
<tag k="landuse" v="forest"/>
|
||||
</relation>
|
||||
<relation id="701901" version="1" timestamp="2014-01-01T00:00:00Z" uid="1" user="test" changeset="1">
|
||||
<member type="way" ref="701802" role="outer"/> <!-- missing member -->
|
||||
<tag k="type" v="multipolygon"/>
|
||||
<tag k="landuse" v="forest"/>
|
||||
</relation>
|
||||
</osm>
|
||||
Reference in New Issue
Block a user