I have imported osm data into PostgreSQL using this command

osmosis --read-pbf bangladesh-latest.osm.pbf \ --write-apidb host="localhost" database="openstreetmap" \ user="openstreetmap" password="" validateSchemaVersion="no"

Now how can i get all the ways of a city(or a bounding region).

asked 31 Mar '18, 15:20

_partha's gravatar image

_partha
26457
accept rate: 0%

edited 31 Mar '18, 22:45

aseerel4c26's gravatar image

aseerel4c26 ♦
31.9k16236548

1

with postgis, you have just to intersect you box with the col way ( example : select * from planet_osm_way where "way" && ST_SetSRID ('BOX3D(-11704037.77103247 4811252.308384717, -11660010.04274018 4855280.036677003)'::box3d, 3857) ; )

(11 May '18, 02:53) AntaC
Be the first one to answer this question!
toggle preview

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:

×414
×141
×78
×45

question asked: 31 Mar '18, 15:20

question was seen: 390 times

last updated: 11 May '18, 02:53

powered by OSQA