[GIS] How to filter OSM data for addr keys with Osmosis

importMySQLopenstreetmaposmfilterosmosis

I'm trying to import the address data of a specific country from an OSM file into a MySQL DB.

I tried to insert the data with osmosis and also to filter them with osmfilter before running OSM but without success.

After a long time of google search and frustration, I decided to post here my problem.

Can someone tell me how I can use the osmosis to import only data with following keys ->

'addr:city', 'addr:housenumber', 'addr:postcode', 'addr:street', 'addr:country', 'addr:housename', 'address',  'addr:place', 'addr:suburb', 'addr:province', 'addr:state', 'addr:number'

Best Answer

As stated here link to previous article while it is possible to add the data to MySQL common wisdom advises against this practice. Most of the tools have been developed to import OSM data in PostgresQL + PostGIS databases, for RDBMS or using GDAL toolkit, to convert OSM XML data to SpatiaLite file database.

Related Question