NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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%


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

permanent link

answered 27 Feb '18, 10:04

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×263

question asked: 26 Feb '18, 14:26

question was seen: 1,329 times

last updated: 27 Feb '18, 10:04

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum