[OSM-talk] XAPI and using a home server
grahamjones139 at gmail.com
Sun Feb 27 20:10:15 GMT 2011
I have compiled osm3s and imported the latest planet file. I think this was
successful - no errors anyway and took about 24 hours as you suggested and
> 1298749171 w 1298757489 max_role_id on load 0
> Id: 229678 . 1298757506 max_role_id 2928
> max_written_role_id 0
> R 1298757599 r 1298757599 Id: 516132 . 1298757615 max_role_id 3869
> max_written_role_id 2928
> R 1298757715 r 1298757715 Id: 1248569 . 1298757733 max_role_id 4458
> max_written_role_id 3869
> R 1298757853 r 1298757853 . 1298757861 max_role_id 4613
> max_written_role_id 4458
> R 1298757941 r 1298757941
This looks a bit abrupt, but I tried a small osm file and got a similar
result, so I think this is a good sign?
Now I have a really dumb question for you - how do I use it?
Your instructions on the wiki say "put a query on the standard input", but
when I start osm3s_query it prints out:
> encoding remark: No input found from GET method. Trying to retrieve input
> by POST method.
And although it lets me type things at the terminal (like your example
queries), it does not respond - is it really listening on standard input?
Or should I be calling it as a cgi script from a web server?
Sorry if this is obvious - I haven't tried to look at your code to see what
it is doing!
The other question is whether anyone has written a php script (or similar)
to make this emulate xapi queries to use as a direct replacement for xapi?
I have copied this reply to the dev list, because I think this is a bit on
the techy side for the general talk one, so I would recommend replying
On 23 February 2011 09:26, Andy Robinson (blackadder-lists) <
ajrlists at gmail.com> wrote:
> Graham Jones [mailto:grahamjones139 at gmail.com <grahamjones139 at gmail.com>]
> >Sent: 22 February 2011 9:01 PM
> >To: Roland Olbricht
> >Cc: talk at openstreetmap.org
> >Subject: Re: [OSM-talk] XAPI and using a home server
> >Thanks for this - I had never heard of OSM3S. I'll have a look at it.
> >It sounds as though the database handling is part of the OSM3S code,
> >than using an external database engine?
> >If the hardware requirements are as modest as you say I can imagine using
> >this as a replacement for calling xapi to download town sized areas of
> >data for rendering.
> Exactly my thought. Most interesting, will have to give it a try. Thanks
> this Roland.
> >On 22 February 2011 20:27, Roland Olbricht <roland.olbricht at gmx.de>
> > > Well, there could perhaps be another solution, like running your
> > > XAPI server - the minutely diffs are usually less than 100Kb, so
> > > required bandwidth to download from planet.openstreetmap.org
> >would be
> > > less than 2 Kb/second in average.
> > >
> > > But the question is - how large would be the planet database on
> > > (how large would it get once you import the planet dump)
> > Triggered by your request, I've made a deployable version of OSM3S.
> >It needs
> > only modest hardware requirements (1 GB RAM and 40 GB hard disk
> >space for the
> > entire world). See
> > http://wiki.openstreetmap.org/wiki/OSM3S/install
> > It has a different syntax than XAPI and partly different
> capabilities, but
> > you work with map data and don't need metadata about users, you
> >likely can use
> > it.
> > Cheers,
> > Roland
> > _______________________________________________
> > talk mailing list
> > talk at openstreetmap.org
> > http://lists.openstreetmap.org/listinfo/talk
> >Graham Jones
> >Hartlepool, UK.
> >No virus found in this message.
> >Checked by AVG - www.avg.com
> >Version: 10.0.1204 / Virus Database: 1435/3461 - Release Date: 02/22/11
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1204 / Virus Database: 1435/3461 - Release Date: 02/22/11
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the talk