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

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
26557
accept rate: 0%

edited 31 Mar '18, 22:45

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

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

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:

×535
×165
×91
×60

question asked: 31 Mar '18, 15:20

question was seen: 1,091 times

last updated: 11 May '18, 02:53

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