[OSM-dev] JSON-Decoding-Bug in Nominatim
Hi Ich habe lese mit PHP Daten von der nominatim API via JSON. Das Query http://nominatim.openstreetmap.org/?q=Stadeformat=json gibt mir ua. folgende Property aus: display_name:Stade, Avenue de Barbe d\'Or, Mont-de-Marsan, Landes, Station Total, Aquitaine, Frankreich das \' führt dabei auf einen PHP 5.3.1 / Win32 zu einem Syntax-Fehler, mit einem ' funktioniert es. Ich schätze, dass das \' hier überflüssig ist und entfernt werden kannt, schließe jedoch einen Bug in json_decode nicht aus. Lg, Peter ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] JSON-Decoding-Bug in Nominatim
Ich habe lese mit PHP Daten von der nominatim API via JSON. Das Query http://nominatim.openstreetmap.org/?q=Stadeformat=json gibt mir ua. folgende Property aus: display_name:Stade, Avenue de Barbe d\'Or, Mont-de-Marsan, Landes, Station Total, Aquitaine, Frankreich See if that works for you now. BTW - on a related note I've just added various extra JSON(P) options to Nominatim. Documentation here http://wiki.openstreetmap.org/wiki/Nominatim -- Brian ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] JSON-Decoding-Bug in Nominatim
See if that works for you now. Looks fine, thanks! Peter ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Mapnik Stylesheets
Hey guys! Some styles would be great... espeically for the planet.osm stuff, So if some users can share some of their styles for the planet.osm that would be awesome! Thank you Date: Tue, 22 Dec 2009 19:40:40 -0600 From: gos...@gmail.com To: dev@openstreetmap.org Subject: [OSM-dev] Mapnik Stylesheets Are there other stylesheets available besides the osm.xml file that is included with Mapnik? I would think some people would be willing to share their work if they went to all the trouble of defining a uniques style. I've seen the style editor at cloudmade, but as far as I can tell it only works with their tile server. Ideally I would like to serve up some NoName tiles and something similar to the Midnight Commander at cloudmade. I managed to get Mapnik and mod_tile serving tiles on my own server, but seem to be limited to the standard style or re-inventing stylesheets that would fit my need. Am I missing a resource for sharing stylesheets? Thanks, -Greg _ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/171222984/direct/01/___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] Configurable number of results in Nominatim ?
Hello, We are using Nominatim for the new version of MapOSMatic, through the XML format exported by Nominatim. Nominatim is a *very* useful tool for MapOSMatic, so thanks a lot to the authors. However, the current version of Nominatim limits the number of results to 10. While this makes perfect sense for the Web application, it isn't really pratical for the XML export. Is it possible to add support for a limit=XX argument, where XX is the number of results required, with 0 being a special value removing the limit ? Thanks a lot, Thomas, from the MapOSMatic team -- Thomas Petazzoni http://thomas.enix.org Promouvoir et défendre le Logiciel Libre http://www.april.org Logiciels Libres à Toulouse http://www.toulibre.org signature.asc Description: PGP signature ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Mapnik Stylesheets
Hi, Greg Oseid wrote: Are there other stylesheets available besides the osm.xml file that is included with Mapnik? I think there's a lot of people who have made their own style sheets and who would be willing to share, it's just that we have not agreed on a standard way. We should really have some kind of platform where people can upload their styles and others can build their own variants. Could the OSM wiki be used for that, or would it be a case for put stylesheet in SVN and make an illustrated Wiki page documenting it? One difficulty is that stylesheets are often keyed to a specific osm2pgsql conversion style as well. Bye Frederik -- Frederik Ramm ## eMail frede...@remote.org ## N49°00'09 E008°23'33 ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Mapnik Stylesheets
Hi! Am 23.12.2009 02:40, schrieb Greg Oseid: Are there other stylesheets available besides the osm.xml file that is included with Mapnik? I would think some people would be willing to share their work if they went to all the trouble of defining a uniques style. You are right, I am one of those people with a completely different style sheet. But it is not intended for a raw planet file, has it's own import style and preprocessing and does do some things differently, so I figured that it would make no sense to just publish it without a concrete request. bye Nop ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Mapnik Stylesheets
Frederik Ramm frede...@remote.org writes: Hi, Greg Oseid wrote: Are there other stylesheets available besides the osm.xml file that is included with Mapnik? I think there's a lot of people who have made their own style sheets and who would be willing to share, it's just that we have not agreed on a standard way. We should really have some kind of platform where people can upload their styles and others can build their own variants. Could the OSM wiki be used for that, or would it be a case for put stylesheet in SVN and make an illustrated Wiki page documenting it? One problem with mapnik stylesheets is that they are a chore to work with. Anyone up to implementing a (graphical) stylesheet generator? Matthias ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Mapnik Stylesheets
Am 23.12.2009 23:14, schrieb Matthias Julius: Frederik Rammfrede...@remote.org writes: Hi, Greg Oseid wrote: Are there other stylesheets available besides the osm.xml file that is included with Mapnik? I think there's a lot of people who have made their own style sheets and who would be willing to share, it's just that we have not agreed on a standard way. We should really have some kind of platform where people can upload their styles and others can build their own variants. Could the OSM wiki be used for that, or would it be a case for put stylesheet in SVN and make an illustrated Wiki page documenting it? One problem with mapnik stylesheets is that they are a chore to work with. Anyone up to implementing a (graphical) stylesheet generator? To be able to write a stylesheet generator, it will be extremely helpful to have more than one stylesheet example to get an idea of what people are actually doing with the stylesheets :-) Regards, ULFL ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Mapnik Stylesheets
Ulf Lamping ulf.lamp...@googlemail.com writes: Am 23.12.2009 23:14, schrieb Matthias Julius: Frederik Rammfrede...@remote.org writes: Hi, Greg Oseid wrote: Are there other stylesheets available besides the osm.xml file that is included with Mapnik? I think there's a lot of people who have made their own style sheets and who would be willing to share, it's just that we have not agreed on a standard way. We should really have some kind of platform where people can upload their styles and others can build their own variants. Could the OSM wiki be used for that, or would it be a case for put stylesheet in SVN and make an illustrated Wiki page documenting it? One problem with mapnik stylesheets is that they are a chore to work with. Anyone up to implementing a (graphical) stylesheet generator? To be able to write a stylesheet generator, it will be extremely helpful to have more than one stylesheet example to get an idea of what people are actually doing with the stylesheets :-) Do you need example texts to be able to write a text editor? ;-) Matthias ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Mapnik Stylesheets
On 23 Dec 2009, at 22:14, Matthias Julius wrote: Frederik Ramm frede...@remote.org writes: Hi, Greg Oseid wrote: Are there other stylesheets available besides the osm.xml file that is included with Mapnik? I think there's a lot of people who have made their own style sheets and who would be willing to share, it's just that we have not agreed on a standard way. We should really have some kind of platform where people can upload their styles and others can build their own variants. Could the OSM wiki be used for that, or would it be a case for put stylesheet in SVN and make an illustrated Wiki page documenting it? One problem with mapnik stylesheets is that they are a chore to work with. Anyone up to implementing a (graphical) stylesheet generator? That's effectively what the CloudMade style editor does, just you can't access the style sheet and host it yourself. Shaun ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Mapnik Stylesheets
Am 24.12.2009 00:04, schrieb Matthias Julius: Ulf Lampingulf.lamp...@googlemail.com writes: Am 23.12.2009 23:14, schrieb Matthias Julius: Frederik Rammfrede...@remote.org writes: Hi, Greg Oseid wrote: Are there other stylesheets available besides the osm.xml file that is included with Mapnik? I think there's a lot of people who have made their own style sheets and who would be willing to share, it's just that we have not agreed on a standard way. We should really have some kind of platform where people can upload their styles and others can build their own variants. Could the OSM wiki be used for that, or would it be a case for put stylesheet in SVN and make an illustrated Wiki page documenting it? One problem with mapnik stylesheets is that they are a chore to work with. Anyone up to implementing a (graphical) stylesheet generator? To be able to write a stylesheet generator, it will be extremely helpful to have more than one stylesheet example to get an idea of what people are actually doing with the stylesheets :-) Do you need example texts to be able to write a text editor? ;-) Yes, you need example texts to be able to write a text editor! ;-) Regards, ULFL ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] [ANN] Parsing Library for OSM
A library for parsing OpenStreetMap files using HXT into data structures. http://code.google.com/p/geo-osm/ http://hackage.haskell.org/package/OSM -- Tony Morris http://tmorris.net/ ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] [ANN] Parsing Library for OSM
Nice! any figures on performance? On Thu, Dec 24, 2009 at 12:49 AM, Tony Morris tonymor...@gmail.com wrote: A library for parsing OpenStreetMap files using HXT into data structures. http://code.google.com/p/geo-osm/ http://hackage.haskell.org/package/OSM -- Tony Morris http://tmorris.net/ ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] [ANN] Parsing Library for OSM
Not yet. I ran in through a 4GB file and it didn't die, but that's all I've done so far :) jamesmikedup...@googlemail.com wrote: Nice! any figures on performance? On Thu, Dec 24, 2009 at 12:49 AM, Tony Morris tonymor...@gmail.com wrote: A library for parsing OpenStreetMap files using HXT into data structures. http://code.google.com/p/geo-osm/ http://hackage.haskell.org/package/OSM -- Tony Morris http://tmorris.net/ ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Tony Morris http://tmorris.net/ ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Mapnik Stylesheets
Shaun McDonald sh...@shaunmcdonald.me.uk writes: On 23 Dec 2009, at 22:14, Matthias Julius wrote: One problem with mapnik stylesheets is that they are a chore to work with. Anyone up to implementing a (graphical) stylesheet generator? That's effectively what the CloudMade style editor does, just you can't access the style sheet and host it yourself. Isn't that then a small step to offer a download option for the generated stylesheet? Of course, this is only useful if one uses CM's database schema. Matthias ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [josm-dev] Login at josm.openstreetmap.de fails
On Tue, 22 Dec 2009, Sebastian Klein wrote: By the way: I can only use https, when I'm logged in on trac. Would it be possible get it to work with plain http? This way it is faster and I need not accept the invalid certificate all the time... :) You can remove the s form https after login (which means plaintext data transfer!). I wont change login to http, but its already planned to have a valid certificate (hoping Fossgis pays for it). Ciao -- http://www.dstoecker.eu/ (PGP key available) ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Login at josm.openstreetmap.de fails
On Tue, 22 Dec 2009, Karl Guggisberg wrote: Currently, it's not possible to login to http://josm.openstreetmap.de. Here's what trac says: ... Could somebody with server access please have a look? Seems that had another reason. Should work again now. The question is why it failed now and worked before. Sometimes the webserver configuration is more than a miracle to me. Ciao -- http://www.dstoecker.eu/ (PGP key available) ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
[josm-dev] Reversing of node tags
I am currently pondering about http://josm.openstreetmap.de/ticket/4149 (JOSM is producing an exception when the reversal of a way that included reversing of a tag is undone. This is because the tag correction is done on a intermediate way which does not belong to a dataset and when undoing this JOSM tries to look up the nodes from the node ids in the WayData.) While looking a the code I noticed that JOSM is looking at all the way nodes for reversible tags. Does it even make sense to have nodes with direction dependent tags? I doubt that. This is ambiguous when more than one way uses that node (and JOSM does not check for this when reversing the tags). If there are no objections I will remove that from the code. Matthias ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Reversing of node tags
At 2009-12-23 13:57, Matthias Julius wrote: ... While looking a the code I noticed that JOSM is looking at all the way nodes for reversible tags. Does it even make sense to have nodes with direction dependent tags? I doubt that. I agree. The idea of direction implies a line (at least two points). If there are no objections I will remove that from the code. While you're at it, if it's simple, it would be nice if it did not bring up the Automatic tag correction dialog if there is no difference between any of the new value and old value fields. This is common in the case of reversing a way that is not oneway, where the tiger:zip_left and tiger_zip:right values are the same. -- Alan Mintz alan_mintz+...@earthlink.net ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Reversing of node tags
Hi, Matthias Julius wrote: While looking a the code I noticed that JOSM is looking at all the way nodes for reversible tags. Does it even make sense to have nodes with direction dependent tags? I doubt that. This is ambiguous when more than one way uses that node (and JOSM does not check for this when reversing the tags). Hm. There is for example highway=incline and highway=incline_steep, used more than 1600 times nodes in Germany alone. They usually come in tandem with incline=xx% which would have to be turned into incline=-xx% when the way is reversed. You are right in saying that this is ambiguous in theory. In practice, of roughly 1650 occurrences in Germany, 1441 were used by only one way; 167 were used by two ways (every case I checked was simply where one way ended and another began), and 34 were used by more than 2 ways (the most adventurous one being http://www.openstreetmap.org/browse/node/302422098 but this looks like someone has misunderstood something). The remaining ones were not used by any way. I don't even known if JOSM handles this correctly at the moment, but if it does then it should perhaps not be broken? Bye Frederik -- Frederik Ramm ## eMail frede...@remote.org ## N49°00'09 E008°23'33 ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Reversing of node tags
Alan Mintz alan_mintz+...@earthlink.net writes: While you're at it, if it's simple, it would be nice if it did not bring up the Automatic tag correction dialog if there is no difference between any of the new value and old value fields. This is common in the case of reversing a way that is not oneway, where the tiger:zip_left and tiger_zip:right values are the same. I'll see what I can do. Matthias ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Reversing of node tags
Frederik Ramm frede...@remote.org writes: Hm. There is for example highway=incline and highway=incline_steep, used more than 1600 times nodes in Germany alone. They usually come in tandem with incline=xx% which would have to be turned into incline=-xx% when the way is reversed. I would consider those tags on nodes as broken. These should all be way tags. I would propose to change Map Features in this respect and have the JOSM Validator, Maplint Co. put warnings on nodes where they exist. An incline that fits into a node is either so low that it is not worth tagging at all or is so steep that it should better be tagged as cliff. ;-) Actually highway=incline[_steep] should be discouraged alltogether. http://wiki.openstreetmap.org/wiki/Key:incline mentions incline=up and incline=down for cases when the exact value is not known. Also, inline=* can be used for other things beside highways. You are right in saying that this is ambiguous in theory. In practice, of roughly 1650 occurrences in Germany, 1441 were used by only one way; 167 were used by two ways (every case I checked was simply where one way ended and another began), and 34 were used by more than 2 ways (the most adventurous one being http://www.openstreetmap.org/browse/node/302422098 but this looks like someone has misunderstood something). The remaining ones were not used by any way. Even in the case where the node simply connects two ways there is a problem if one of them gets reversed. I don't even known if JOSM handles this correctly at the moment, but if it does then it should perhaps not be broken? JOSM currently looks for left/right, forward/backward, forwards/backwards and oneway tags, values and relation roles. There is no reversal for highway=incline. All JOSM could do is put out a warning. It certainly makes sense to include incline=* - most of which are on ways anyway (according to OSMdoc). Matthias ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Reversing of node tags
Hi, Matthias Julius wrote: Even in the case where the node simply connects two ways there is a problem if one of them gets reversed. Yes; the node formerly tagged incline would then become either a summit or a valley ;-) I think people are currently more or less putting the node in the place where a typical cyclist's map would have a or symbol. Bye Frederik -- Frederik Ramm ## eMail frede...@remote.org ## N49°00'09 E008°23'33 ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev