[Live-demo] sample OSM data for Gosmore

Dane Springmeyer blake at hailmail.net
Wed Mar 3 11:19:32 PST 2010


On Mar 3, 2010, at 2:29 AM, Hamish wrote:

> Thanks Dane, all,
>
>> Yes this is a very good idea. Having a sample .osm file
>> around will benefit many applications. In addition to the
>> ones you note QGIS and Mapnik can also render .osm
>> directly.
>>
>> Makes sense to meet to grab Barcelona, which can be as easy as:
>>
>> $ wget -O barcelona.osm http://osmxapi.hypercube.telascience.org/api/0.6/map?bbox=1.998653,41.307213,2.343693,41.495207
> ...
>> Downloading from the osmxapi takes about 6 minutes and is
>> around 20MB. I've reposted here:
>>
>> http://dbsgeo.com/tmp/barcelona.osm
>> ... so you can access quicker.
>
> thanks. I have now added that file (.bzip2'd) to
>   http://download.osgeo.org/livedvd/data/
> (see READMEs there for comments)
>
> and modified the OSM install script to add it to the disc.
>
> We should (in some months time) -at the last moment redownload that  
> file
> so it includes all of the latest OSM edits.
>


Yes, certainly, and if time/energy permits touch it up a bit. For  
example we may want to clip some of the long dangling lines that  
extend out from barcelona...

>
>> We should also push the .osm file into postgis/postgres with  
>> osm2pgsql.
>>
>> $ createdb -T template_postgis osm_barcelona
>> $ osm2pgsql -d osm_barcelona barcelona.osm
>
> after thinking about it I think it might be better to just include the
> raw .osm file on the disc (ie a basic starting point if you don't have
> a network connection), and list the above commands in the tutorials
> in order to demonstrate/teach the workflow.
>

Certainly makes sense. Do you know, do we have osm2pgsql installed?  
This gets and whether I should set up the osm.xml + osm2pgsql stack  
too, although I don't have the spare time at the moment, but would be  
good before FOSS4G...

Dane





More information about the Osgeolive mailing list