Why not ask your question on the new 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

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 ♦
accept rate: 18%

Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 26 Feb '18, 14:26

question was seen: 1,097 times

last updated: 27 Feb '18, 10:04

powered by OSQA