Opened 8 years ago

Last modified 7 years ago

#4243 new enhancement

osmosis requires attribute version and timestamp

Reported by: Malmis Owned by: bretth
Priority: minor Milestone:
Component: osmosis Version:
Keywords: osmosis, ogr2osm, attributes Cc: JoshD


I have some problems with osm files that misses version and timestamp attributes after converting shape files to osm files with ogr2osm.

osmosis asks if the file is a 0.5 file, but it's a 0.6 file.

"org.openstreetmap.osmosis.core.OsmosisRuntimeException?: Way -128 does not have a version attribute as OSM 0.6 are required to have. Is this a 0.5 file?"

Change History (2)

comment:1 Changed 8 years ago by JoshD

Cc: JoshD added
Type: defectenhancement

See #1683, #2620, and I've also used osmosis after ogr2osm, by using sed to add then strip fake metadata. I believe it would be useful to allow osmosis to process streams without metadata, however it should be enabled with a special flag like allowMissingMetadata.

comment:2 Changed 7 years ago by Harry Wood

Just had this error message because OverpassAPI also gives results without a version attribute. I guess these day there's probably more examples of software using/creating .osm formatted files, but without version attributes. Not just JOSM.

Note: See TracTickets for help on using tickets.