joto / osmium

C++/Javascript framework for working with OSM files.
http://wiki.openstreetmap.org/wiki/Osmium
GNU General Public License v3.0
123 stars 31 forks source link

Inconsistency in default input/output format #12

Closed MaZderMind closed 13 years ago

MaZderMind commented 13 years ago

The framework-method parse_osmfile defaults to xml when reading from "-", but Osmium::Output::OSM::create defaults to pbf. In my opinion, Osmium::Output::OSM::create should default to xml, too, as the pbf writer is not yet implemented.

MaZderMind commented 13 years ago

additionally it should be possible to choose the input/output format using a second parameter on both methods, to allow reading and writing arbitrary formats.

MaZderMind commented 13 years ago

this is fixed now, default is .osm.pbf.