British National Grid and Latitude/Longitude

_British National Grid__/__Latitude and Longitude_ I have recently found that the files of the British National Grid and Latitude/Longitude which I published in OSM XML format (http://www.rogercalvert.me.uk/OSM) are not compatible with Osmosis. This expects OSM XML format version 0.6, while my files were version 0.5. The critical difference seems to be that in OSM 0.6, nodes and ways must have a /version/ attribute. This significantly increases the file size - about 25% for the GBGrid and about 13% for LatLong covering Great Britain. I have modified the National Grid download package to include both 0.5 and 0.6 versions. I have added an option for the Latitude/Longitude generator to allow selection of version (0.6 is the default). Please let me know of any problems you encounter in accessing or using these. Roger -- ------------------------------------------------------------------------ Roger Calvert ------------------------------------------------------------------------

Roger Calvert wrote
Please let me know of any problems you encounter in accessing or using these.
I head problems with the first version that you posted because the XML file contained a header starting with a Byte Order Mask (BOM) 0xefbbbf and osmconvert was not able to read that. Maybe this explains also the trouble with osmosis? Gerd -- View this message in context: http://gis.19327.n5.nabble.com/British-National-Grid-and-Latitude-Longitude-... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Gerd, Thanks for the information - I can probably remove the BOM - I'll look into it. This was not the problem with Osmosis: "WARNING: Expected version 0.6 but received 0.5." and "OsmosisRuntimeException: Node 90007000000 does not have a version attribute as OSM 0.6 are required to have. Is this a 0.5 file?" The Osmosis wiki says that support for 0.5 has been removed: "The 0.35 release was the last release to support API 0.5 <http://wiki.openstreetmap.org/wiki/API_v0.5>." (the current version is 0.41) Osmosis 0.41 is happy with the new versions of the files, but I will remove the UTF-8 BOM. Thanks again, Roger On 02/01/2013 20:27, GerdP wrote:
Roger Calvert wrote
Please let me know of any problems you encounter in accessing or using these. I head problems with the first version that you posted because the XML file contained a header starting with a Byte Order Mask (BOM) 0xefbbbf and osmconvert was not able to read that. Maybe this explains also the trouble with osmosis?
Gerd
-- View this message in context: http://gis.19327.n5.nabble.com/British-National-Grid-and-Latitude-Longitude-... Sent from the Mkgmap Development mailing list archive at Nabble.com. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- ------------------------------------------------------------------------ Roger Calvert ------------------------------------------------------------------------

Following Gerd's suggestion, I have removed the Byte Order mark (BOM) from these files. Roger On 02/01/2013 20:50, Roger Calvert wrote:
Gerd,
Thanks for the information - I can probably remove the BOM - I'll look into it.
This was not the problem with Osmosis: "WARNING: Expected version 0.6 but received 0.5." and "OsmosisRuntimeException: Node 90007000000 does not have a version attribute as OSM 0.6 are required to have. Is this a 0.5 file?"
The Osmosis wiki says that support for 0.5 has been removed: "The 0.35 release was the last release to support API 0.5 <http://wiki.openstreetmap.org/wiki/API_v0.5>." (the current version is 0.41)
Osmosis 0.41 is happy with the new versions of the files, but I will remove the UTF-8 BOM.
Thanks again,
Roger
On 02/01/2013 20:27, GerdP wrote:
Roger Calvert wrote
Please let me know of any problems you encounter in accessing or using these. I head problems with the first version that you posted because the XML file contained a header starting with a Byte Order Mask (BOM) 0xefbbbf and osmconvert was not able to read that. Maybe this explains also the trouble with osmosis?
Gerd
-- View this message in context:http://gis.19327.n5.nabble.com/British-National-Grid-and-Latitude-Longitude-... Sent from the Mkgmap Development mailing list archive at Nabble.com. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- ------------------------------------------------------------------------
Roger Calvert ------------------------------------------------------------------------
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- ------------------------------------------------------------------------ Roger Calvert ------------------------------------------------------------------------
participants (2)
-
GerdP
-
Roger Calvert