[OSM-dev] Questions on Nominatim and administrative boundaries + osm2pgsql

2009-12-20 Thread David MENTRE
Dear fellow OSM hackers, We are working on improving MapOSMatic, especially for international support. We are using http://nominatim.openstreetmap.org to query OSM in a human-friendly way, which, indeed, is a wonderful tool! Now we would like to use its results to query our own copy of the DB

Re: [OSM-dev] Questions on Nominatim and administrative boundaries + osm2pgsql

2009-12-20 Thread John Smith
2009/12/20 David MENTRE dmen...@linux-france.org: If we do:  select * from planet_osm_line where osm_id=7444; then we don't get anything. However, when we do:  select * from planet_osm_line where osm_id=-7444; then we get exactly what we need. I think ways are positive and relations are

Re: [OSM-dev] [Maposmatic-dev] Questions on Nominatim and administrative boundaries + osm2pgsql

2009-12-20 Thread Lennard
David MENTRE wrote: Is this the right way to do it? Can we assume that, when nominatim returns an entry with class=boundary type=administrative and osm_type=relation, then we can safely query the planet_osm_line table with the _opposite_ of osm_id? A _way_ will be in the tables with a

Re: [OSM-dev] Questions on Nominatim and administrative boundaries + osm2pgsql

2009-12-20 Thread Jon Burgess
On Sun, 2009-12-20 at 11:55 +0100, David MENTRE wrote: Dear fellow OSM hackers, We are working on improving MapOSMatic, especially for international support. We are using http://nominatim.openstreetmap.org to query OSM in a human-friendly way, which, indeed, is a wonderful tool! Now we

Re: [OSM-dev] Questions on Nominatim and administrative boundaries + osm2pgsql

2009-12-20 Thread Jon Burgess
On Sun, 2009-12-20 at 11:27 +, Jon Burgess wrote: On Sun, 2009-12-20 at 11:55 +0100, David MENTRE wrote: Dear fellow OSM hackers, We are working on improving MapOSMatic, especially for international support. We are using http://nominatim.openstreetmap.org to query OSM in a

Re: [OSM-dev] Use API to get bbox of way/relation ids?

2009-12-20 Thread Laurence Penney
Thanks... seems a little wasteful to have to get all the individual nodes and tags. Is this the only way to get the bbox of a given way without one's own planet db? - L On 20 Dec 2009, at 02:37, John Smith wrote: 2009/12/20 Laurence Penney l...@lorp.org: What's the best method of getting

Re: [OSM-dev] Use API to get bbox of way/relation ids?

2009-12-20 Thread Anthony
On Sun, Dec 20, 2009 at 3:43 PM, Laurence Penney l...@lorp.org wrote: Thanks... seems a little wasteful to have to get all the individual nodes and tags. Is this the only way to get the bbox of a given way without one's own planet db? How does http://www.openstreetmap.org/browse/relation/#

Re: [OSM-dev] duplicated entities with osmosis diff-update

2009-12-20 Thread Harald Kleiner
Thank you all! now it works! I switched to --rri tasks. This is what I did: * get latest osmosis version 0.31.2 dated december 20th (I had an older 0.31.2 version before, but who knows...) * initialize the working directory with osmosis --rrii workingDirectory=/blabla/0 * changed the URL to

Re: [OSM-dev] Use API to get bbox of way/relation ids?

2009-12-20 Thread John Smith
2009/12/21 Laurence Penney l...@lorp.org: Thanks... seems a little wasteful to have to get all the individual nodes and tags. Is this the only way to get the bbox of a given way without one's own planet db? If you put /full at the end of the URL it will get all the ways and/or nodes needed.

Re: [OSM-dev] Use API to get bbox of way/relation ids?

2009-12-20 Thread andrzej zaborowski
2009/12/21 John Smith deltafoxtrot...@gmail.com: 2009/12/21 Laurence Penney l...@lorp.org: Thanks... seems a little wasteful to have to get all the individual nodes and tags. Is this the only way to get the bbox of a given way without one's own planet db? If you put /full at the end of the

Re: [OSM-dev] Use API to get bbox of way/relation ids?

2009-12-20 Thread Peter Körner
I'd say if this is something you're going to be doing a lot of, it's probably best to download the whole planet (or the part of it you're working on). For the sake of not overloading the API as much as for making things easier on your end. Or you may suggest a patch for the api's source.

Re: [OSM-dev] Removing Minutely and Hourly Changesets

2009-12-20 Thread Brett Henderson
On Sun, Dec 20, 2009 at 10:44 AM, Brett Henderson br...@bretth.com wrote: On Sun, Dec 20, 2009 at 6:44 AM, Florian Lohoff f...@rfc822.org wrote: Ich am still using the normal hourly diffs as of lately the replicated diff stuff has not been documented and i didnt want to read java code to

Re: [OSM-dev] Removing Minutely and Hourly Changesets

2009-12-20 Thread Brett Henderson
On Sat, Dec 19, 2009 at 3:06 PM, Brett Henderson br...@bretth.com wrote: Are there any objections to me disabling the old minute and hourly changesets and deleting their files from the planet server? http://planet.openstreetmap.org/minute/ http://planet.openstreetmap.org/minute-slow/

[OSM-dev] Changeset files (was Removing Minutely and Hourly Changesets)

2009-12-20 Thread Anthony
Hi Brett, Do you also maintain the changesets files (e.g. changesets-091216.osm.bz2)? Now that the full history dump is out I can confirm that there are a relatively large number of corrupted key/values in that file. For example, see http://www.openstreetmap.org/browse/changeset/2498325 and

Re: [OSM-dev] Changeset files (was Removing Minutely and Hourly Changesets)

2009-12-20 Thread Brett Henderson
Hi Anthony, No, that's not me. I only look after the osmosis changesets. Hmm, the word changeset has become overloaded ... by osmosis changesets I mean the diff/delta files. The planet and changesets-xx.osm.bz2 files are created using the planet dumper tool. I believe Jon and Grant look after

Re: [OSM-dev] Changeset files (was Removing Minutely and Hourly Changesets)

2009-12-20 Thread Anthony
Cool. If anyone familiar with the planet dumper tool is listening... In http://svn.openstreetmap.org/applications/utils/planet.osm/C/output_osm.c } else if ((*in = 0) (*in 32)) { escape_tmp[len] = '?'; len++; should be something like } else if ((*in 0) (*in 32)) {

[josm-dev] Picture KML support ?

2009-12-20 Thread Matija Nalis
Would it be possible to extend JOSM to be able to load pictures from KML ? (via AgPifoJ plugin or in the core). Like the Potlatch flash editor can - it loads KML in the following format: Document Placemark id=Photo0 description ![CDATA[a