I’m currently working on Location Based Search Engine. I downloaded Solr which has inbuilt Lucene and wanted to try the examples given there. I found out that, there the data files were all .OSM files. I had used mysql database to store the data. Using mysqldump command, I have converted the file to an XML file consisting of the fields Latitude, Longitude and some relevant news pertaining to that location. Can I convert this XML file to OSM file using some tool? Any help regarding this will be appreciated. Thanks in advance.
I don’t know of any software that does the trick but consider this:
- you need to declare all the ‘nodes’
<node id="1000000000" lat="50.75" lon="-3.550166015625" />
<node id="1000000001" lat="50.749521484375" lon="-3.5508333333333333" />
etc 2) the ‘ways’
<tag k="mytag" />
mytag could be highways or polygons.
Remember, osm files are basically text files & can be opened up in Notepad.Have a look at some of them to unearth its structure.
(timestamps /authorships/boundaries are unnecessary to render the nodes visible).
HTH
Nick