This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Downloading data osm2pgsql

0

I uploaded a large *.osm file. Now from it you need to import into the postgis data having amenity = parking in my table. Import only polygons. Polygons must be imported into the "polygon" field. All other fields in the table will be populated with default values. Tell me, can this be done with osm2pgsql

asked 26 Feb '18, 14:26

kas_kas's gravatar image

kas_kas
11112
accept rate: 0%


One Answer:

3

What osm2pgsql imports in to the target database is determined by its "style file" (additionally you can use LUA to manipulate data pre-writing to the DB).

See https://wiki.openstreetmap.org/wiki/Osm2pgsql#Import_style

answered 27 Feb '18, 10:04

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

Source code available on GitHub .