<div dir="ltr"><br><div>Hi Alex,</div><div><br></div><div>Thanks for the link. This looks really interesting.</div><div><br></div><div>It seems I can use FastArea with a geometry bound with tag queries to search what I'm looking for. I'll try it and ping back in case I have any questions queries while using it.</div><div><br></div><div>Best,</div><div>Pulkit</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 9, 2014 at 11:06 PM, Aleś Bułojčyk <span dir="ltr"><<a href="mailto:alex73mail@gmail.com" target="_blank">alex73mail@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi !<br><br></div>If you need just read small region, you can try to use my library for that: <a href="http://forum.openstreetmap.org/viewtopic.php?id=27038" target="_blank">http://forum.openstreetmap.org/viewtopic.php?id=27038</a><br></div>It works with local files only. No need to setup PostgreSQL/PostGIS.<br><br></div>WBR, Alex.<br><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 10 November 2014 02:46, Pulkit Bhuwalka <span dir="ltr"><<a href="mailto:pulkit.bosco05@gmail.com" target="_blank">pulkit.bosco05@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><br></div><div>Hello,</div><div><br></div><div>My goal is to create my own local database of OSM data and use it for fast querying (no writes) - so that I can ask things like "give me all the roads within a small bounding box" etc.</div><div><br></div><div>I got a sense from the <a href="http://wiki.openstreetmap.org/wiki/Component_overview" target="_blank">component overview</a> that data should be imported into a PostGIS data for quick querying. So as of now, I have managed to<br></div><div><br></div><div>1. Download bulk data from OSM using API (This is a small region)</div><div>2. Setup Postgres with PostGIS extension.</div><div>3. Import data into PostGIS database using osm2pgsql</div><div><br></div><div>I am not sure about the next step. What api should I use to query the database? I suppose there exists some data access API which Mapnik and other services use for drawing.</div><div><br></div><div>Also, I don't quite understand the DB structure and the data encoding within it. There are a few tables created by PostGIS (spatial_ref_sys etc.) and a few tables created by OSM (planet_osm_*). I am unsure about the relation between these tables.</div><div><br></div><div>I recently also stumbled upon the <a href="http://wiki.openstreetmap.org/wiki/Overpass_API" target="_blank">Overpass API</a> which seems to do something similar. My requirements are actually pretty simple. I need some simple querying to experiment with some rendering of my own.</div><div><br></div><div>Any help is really appreciated. Thanks a lot for your help and OSM!</div><div><br></div><div>Best,</div><div>Pulkit</div><div><br></div>
</div>
<br></div></div>_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/dev" target="_blank">https://lists.openstreetmap.org/listinfo/dev</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Pulkit<br><br></div>
</div>