bz2 support for OSM reading and writing
This commit is contained in:
parent
3d6ed3e2fd
commit
58c47bb1a5
8 changed files with 101 additions and 9 deletions
|
|
@ -6,6 +6,7 @@ list(REMOVE_ITEM pfaedle_SRC ${pfaedle_main})
|
|||
|
||||
include_directories(
|
||||
${PFAEDLE_INCLUDE_DIR}
|
||||
SYSTEM ${BZIP2_INCLUDE_DIR}
|
||||
SYSTEM ${LIBZIP_INCLUDE_DIR}
|
||||
SYSTEM ${LIBZIP_CONF_INCLUDE_DIR}
|
||||
)
|
||||
|
|
@ -19,6 +20,6 @@ add_executable(pfaedle ${pfaedle_main})
|
|||
add_library(pfaedle_dep ${pfaedle_SRC})
|
||||
|
||||
include_directories(pfaedle_dep PUBLIC ${PROJECT_SOURCE_DIR}/src/xml/include/ ${PROJECT_SOURCE_DIR}/src/cppgtfs/src)
|
||||
target_link_libraries(pfaedle pfaedle_dep util configparser ad_cppgtfs -lpthread ${LIBZIP_LIBRARY})
|
||||
target_link_libraries(pfaedle pfaedle_dep util configparser ad_cppgtfs -lpthread ${LIBZIP_LIBRARY} ${BZIP2_LIBRARIES})
|
||||
|
||||
add_subdirectory(tests)
|
||||
|
|
|
|||
|
|
@ -379,7 +379,7 @@ void OsmBuilder::filterWrite(const std::string& in, const std::string& out,
|
|||
latLngBox.add(Box<double>({minlon, minlat}, {maxlon, maxlat}));
|
||||
}
|
||||
|
||||
util::xml::XmlWriter wr(out, true, 4);
|
||||
util::xml::XmlWriter wr(out, false, 0);
|
||||
|
||||
wr.put("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
|
||||
wr.openTag("osm", {{"version", "0.6"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue