Re: [OSM-dev] courtyards
On 2011-05-09 11:31, M∡rtin Koppenhoefer wrote: 2011/5/9 Bernhard Zwischenbruggerb...@datenkueche.com: Any links to examples failing to render for you? here for example: http://www.openstreetmap.org/?lat=48.20651lon=16.35885zoom=16layers=M http://www.openstreetmap.org/?lat=48.20651lon=16.35885zoom=16layers=M All the big buildings should have holes. IMHO there is wrong mapping, as the building-tag is set to the outer way instead to the relation. This should work nonetheless (because of tolerant rendering, at least it worked for some time in the past), but is less clean/unambigous. Try putting the building tag into the relation and remove it from the outer way. The example I looked at was this: http://www.openstreetmap.org/browse/relation/11132 Sorry, I don't understand this. This building ist rendered correctly: http://www.openstreetmap.org/browse/relation/58076 and this http://www.openstreetmap.org/browse/relation/11151 is not rendered with courtyard. Where is the difference. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] courtyards
hi all Multipolygon rendering is broken. All courtyards are filled after rerendering. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] courtyards
hi Working fine here: http://osm.org/go/0MGgrxuAR-- Any links to examples failing to render for you? here for example: http://www.openstreetmap.org/?lat=48.20651lon=16.35885zoom=16layers=M http://www.openstreetmap.org/?lat=48.20651lon=16.35885zoom=16layers=M All the big buildings should have holes. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] Searching home for new mailinglist
Hi all I started the khtml.maplib (http://khtml.org) map library. Currently there are 3 students helping me to improve the lib and developing speed is increasing. Now I'm looking for a home of a mailing list. Google Groups would be an option. Is there something else you could recommend? Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] khtmlib is back to github
Hi all The first part of my map library khtmlib is back to github. There are many testcases now. http://www.khtml.org/osm/khtmlib/testcases/basics/index.html You can checkout at: https://github.com/robotnic/khtmlib For checkout a clone: git clone git://github.com/robotnic/khtmlib.git What's new: Tile Overlays, new API,... --- Vector graphics will follow. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] Simple javascript map API
Hi all I will start again to work on my map lib (khtmlib). Some class and method names are not very clear and I have to change the API. Now I would like to make a better and an easy to use API. If you are a javascript programmer OR if you know something about OO Design please have a look at the wiki page: http://wiki.openstreetmap.org/wiki/Simple_map_API Feel free to edit the page Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] khtmlib new version online
Hi I made some updates for the help page at http://www.khtml.org/osm/v0.83/help.php All hyperlinks should work now. I added some links to examples. There are also links to all files of the lib now. (maybe confusing) Bernhard On 2010-11-26 09:40, Peter Körner wrote: Am 25.11.2010 21:07, schrieb Bernhard Zwischenbrugger: Hi Am 20.11.2010 18:08, schrieb Bernhard Zwischenbrugger: I have a new version of my khtmlib based map online. Where can I get it? The link at http://www.khtml.org/osm/v0.83/help.php is dead. The link is working now. Are you sure? http://www.khtml.org/osm/v0.83/help.php links to http://www.khtml.org/osm/v0.83/khtml.js which gives 404 The source at http://www.khtml.org/ loads a alljs.php and a livejs The php puts together some files. If you download http://www.khtml.org/osm/v0.83/alljs.php you have the lib. And what more? What does it put together? A good starting point is: http://www.khtml.org/osm/v0.83/examples/simple.html Thank you. The link to the Documentation for programers at help.php is dead (http://www.khtml.org/osm/v0.83/programdocu.html) Thanks for bug report, I fixed that - but that's maybe not what you expect. Are you sure? http://www.khtml.org/osm/v0.83/help.php links to http://www.khtml.org/osm/v0.83/docs/programdocu.html which gives 404 Where do i get the lib? Is there a compressed version? What additional files (imgs, css) do I need? There is no compressed version at the moment. There are no additional files needed. Thank you, I now see that the navi bar is pure CSS. Nice one :) Peter ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] khtmlib new version online
Hi all I have a new version of my khtmlib based map online. ***New features*** Layerswitcher: mapnic, osma, bikemap Digital Zoom: There are 2 versions for mousewheel zoom now. Default behaviour: the zoom animation will stop at a integer zoom level und gives a clear view. There is an option to switch back to the old noninteger zoom. GPX: You can write the URL of a gpx file to the search field and the map will show the path. Distance Measure Tool You can draw a polyline for distance measurement Explosion Effect The ticker now has an explosion effect that gives a better impression on how the map is growing. There is also a hidden option to play a sound if somebody is editing. Add #sound to the url and a bird will talk to you. ***Bug fixes*** Better precission for mouse events. It is possible to zoom out from zoomlevel 18 to 1 and than back to zoomlevel 18. You will land at the exact position where you started. There are also many changes in the vector overlay handling. I didn't test on Internet Explorer. Google Chrome work best on my system. The version on github still is not actualized. I changed the directory structur and don't know how use the git. Bugreports are welcome. Have fun: http://www.khtml.org/osm/v0.83/index.php If you set a link to my map please use http://khtml.org it will direct to the newest tested version. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] khtmlib new version online
On 2010-11-20 23:32, Wyo wrote: Bernhard Zwischenbrugger wrote: I have a new version of my khtmlib based map online. Does khtmlib really have only 60kB as documented in the wiki? It's also growing and now it's about 120kB (uncompressed). And your khtml.org is solely driven by khtmlib? There is no other libs involved. Things like nominatim, routing, ticker are not part of the lib. Then this is really amazing! Thanks! I'm amazed that you can show a map with such a small library while OL uses more that 800kB. OL has much more features. I made a RISC map lib. To enable speed I reduced the API to the minimum. The discription in the wiki is rather sparse. Can you give a detailed list of features which khtmlib supports, maybe even list what it currently doesn't? There is the API doc: http://khtml.org/osm/v0.83/doc/ If you want to play with the lib, start here: http://khtml.org/osm/v0.83/examples/simple.html And the (a bit outdated) help page: http://www.khtml.org/osm/v0.83/help.php Bernhard Wyo ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] xapi - find node by id
Hi all Is there a way to get a node from xapi if I know the id? I tryed this: http://xapi.openstreetmap.org/api/0.6/way[id=8136261] and this. http://xapi.openstreetmap.org/api/0.6/way/8136261 Both don't give a result. lg, Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] how to position nominatim icon?
Hi again I have seen, that nominatim now gives an icon for search results like in this example: place place_id='10714' osm_type='node' osm_id='17328659' boundingbox=48.0588264465332,48.3187141418457,16.2443943023682,16.5288238525391 lat='48.2092252' lon='16.3736665' display_name='Wien, Vienna, Österreich, Europa' class='place' type='city' icon='http://nominatim.openstreetmap.org/images/mapicons/poi_place_city.p.20.png'/ The icon is something like a flag. The _BASE_ of the flag should show the location. Sometimes there are other icons that use the _CENTER_ of the icon to descibes a location. If the icon uses the base I have to move the icon like: top=-iconheight If the center is usered I have to move the icons like: top=-iconheight/2 How can my program know where to move the icon? I hope you are able to understand the question. Here you can try this: http://www.khtml.org/osm/v0.82/index.php (search and mouseover) lg, Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] khtmlib API doc
Hi all At http://www.khtml.org/osm/v0.80/doc/index.php I made a documentation for the khtmlib API. The API should be easy to use. The library should be very fast and supports hardware acceleration (3d css) for webkit browsers (except Adroid Browser). Multitouch is supported for iPhone and iPad. Firefox multitouch support will follow. The library has non integer zoom. Missing functions: Bitmap overlays, UI Elements, keyboard support, only WGS84 is supported Not documented: There are many config parameters - for example integer zoom behaviour like google and bing maps. There are also many undocumented methods which are not stable at the moment. If you think about using this library for your own project, please have a look at the API doc. If you miss a method please let me know. The version at github is outdated. Please use the lib at: http://www.khtml.org/osm/v0.80/alljs.php Licence: LGPL Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] preview turn restrictions visualizer
Hi all I'm working on a turn restriction visualizer. http://www.khtml.org/osm/v0.78/examples/relationcheck2.html Please zoom in (double click, mousewheel) on click to load restrictions. That's an early preview. I never edited turn restrictions and I'm not sure everything is correct. Have a look and tell me if it's ok. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] How to use XAPI
Hi all My next project is an XAPI map. You can see a prototype at: http://www.khtml.org/osm/v0.76/examples/xapi.html It is possible to make a global search for power_source=nuclear But a global search for amenity=restaurant would bring too much results and it would produce too much load for the db. My question: Is there a possiblity to bring this feature to the normal users? Is there an undocumented limit parameter to reduce the output to a maximum number of results? Any other ideas how to enable this feature? Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] How to use XAPI
My question: Is there a possiblity to bring this feature to the normal users? Is there an undocumented limit parameter to reduce the output to a maximum number of results? Any other ideas how to enable this feature? Using the default XAPI you can also bbox the request :) bbox it to 110% of the viewport at a certain zoomlevel and you probably have a winner. bbox is implemented in my prototype. bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] How to use XAPI
Am 15.08.10 17:14, schrieb Roeland Douma: You could only allow for the query on high zoom leves. Since what good is an overlay of all restaurants on zoomlevel 11? That's the point! A level 11 restaurant search in Europe does not make much sense. But if I plan a bicycle trip in Laos it's very different. (I was very hungry in Laos) For a motorbike trip in Cambodia a level 8 search for tourism=hotel|guest_house gives usefull informations. If the querys for low zoomlevels are disabled the tool makes not much sense. If the querys are not disabled, the db can't handle the querys. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] minute diff - max delay
Hi all Is there a maximum delay time the minute diffs can have? Here for example: http://planet.openstreetmap.org/minute-replicate/000/439/ At 11:54 there is a 15 minute delay. lg, Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] api question
Hi all I would like to display an old version of a way on a map To load the data of a way I use: http://www.openstreetmap.org/api/0.6/way/50191466/full To get an old version of the way I use http://www.openstreetmap.org/api/0.6/way/50191466/1 (version 1) http://www.openstreetmap.org/api/0.6/way/50191466/2 (version 2) ... Is there a way to get a full way for an old version? I tried: http://www.openstreetmap.org/api/0.6/way/50191466/2/full and http://www.openstreetmap.org/api/0.6/way/50191466/full/2 but that does not work. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] Own OSM Database Hardware/Software
Hi all In October I will start a new course at my university. The topic is business application development and we will do serverside programming with ruby. I'm the teacher of this course and now I have to plan it. My idea is to use the OSM database and let the students play with this data. We will do some data mining, design interfaces (rest, json), add new tables, benchmark tests, do projects, ... Now my question: What kind of hardware do I need for that? Is a virtual host ok? What's the minimum RAM, HD space? Which Linux should I install? How long does it take to load the data to the db? How long does it take to create an index on a table? I know, there are no exact answers for all this questions, but some hints would be nice. The first thing I have to do is to ask my boss for the hardware (or vhost). If that's ok, I'm able to continue planing. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Removing Minutely and Hourly Changesets
hi I would be interested in that as well, ideally a file that is generated every hour with a fixed named scheme we can easily track for. Can this be reactivated? Why has it been disabled after all? I would like to have that live. At: https://world.waze.com/livemap/ they have a live ticker. All the edits are shown there. If all the changesets would go to an xmpp stream, it would be a really easy to such a liveticker for osm. xmpp is easy and all could be done be sending to a tcp socket: message to =osmchanges...@xmppserver.somewhere.org type=groupchat changeset/changeset /message Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Removing Minutely and Hourly Changesets
hi If all the changesets would go to an xmpp stream, it would be a really easy to such a liveticker for osm. There was a site in the past where this was visible. I have created an OpenLayers implementation to visualize it. So even with what is publish now, not a line of XMPP is required to do so. I did the osmlive based on minutely Changesets. The best result was about 5 minutes delay. On a webbrowser the xmpp lib strophe offers a nice BOSH connection and no polling is needed. http://code.stanziq.com/strophe/ A 5 second delay could be done without problem. 5 seconds is faster than 5 minutes. Maybe you think 5 minutes are no problem. But think about an interface where you see live what other people are doing. The next step could be to implement a fast human to human communication. If you see somebody editing something in a strange way, you could give help on how to do it better. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Fwd: Re: Project Proposal - Waze Integration
hi The quality of IPhone GPS-traces is well known to be bad. On iPhone 3GS the GPS is ok. The 3G has a bad GPS. Here an iPhonetrack in Phnom Penh city: http://wiki.openstreetmap.org/wiki/File:Iphone_map_with_gps_tracker.png If I do that with my hardware GPS tracker, the result is not better. To opimize the GPX there are some parameter to adjust - that's it. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Removing Minutely and Hourly Changesets
hi I just noticed, that the minute diffs are not here anymore. My tool http://datenkueche.com/osmlive did use this files. Is there a possibility to find a file if I have only the time? For the old system I used: $delta=(int) $_GET['delta']; $time1=time()-7200-360 -$delta; $time2=time()-7200-300 -$delta; $time3=time()-7200-420 -$delta; $timestring1=date(YmdHi,$time1); $timestring2=date(YmdHi,$time2); $timestring3=date(YmdHi,$time3); $filename= $timestring1.-.$timestring2..osc.gz; -- Any idea how to do that with the new system? Bernhard 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/ http://planet.openstreetmap.org/hourly/ They are replaced by the (hopefully) reliable transaction based replication changesets. http://planet.openstreetmap.org/minute-replicate/ http://planet.openstreetmap.org/hour-replicate/ I haven't heard any complaints about the replication changesets so I'm assuming they're working well. I'll leave the daily changesets running for now because they are running with a much longer delay and shouldn't miss data. I'm not aware of anybody still using the minute diffs. I'll disable them early in the new year. I won't delete the files straight away so they can be re-enabled if somebody suddenly screams. I hope to disable the hour diffs around the same time but will wait until Florian has moved off them first. Brett ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] Wishes
Hi all My iPhone map tracker is now nearly finished. There are 2 things that I can't do. The GPX upload API is crap. GPX is XML and there is no need for multipart/form-data upload. To debug that kind of uploads is not possible. A small serverside change would be much easier. In php it is serverside: $gpsString=file_get_contents(php://input); $tagString=$_GET[tags]; $descriptionString=$_GET[description]; (post the xml, desc and tags as GET paramter) The other possibility whould be to use gpx metadata for OSM tags. gpxmetadatadescyes yes/desctagslondon, paris, new york/tags/metadata 2.) Tileserver Cache Does somebody offer a tileserver with long cache time? iPhone on 3G, EDGE of offline needs completely differnent cache timing. Google Maps on iPhone is much faster, but that's because of caching. Is it possible to set up a virtual host on the tileserver with a Cache that allows people to use the map if they are not connected to the internet (no Etag 304) . mobile-a.openstreetmap.org mobile-b.openstreetmap.org mobile-c.openstreetmap.org Or better because it saves some byte. ma.osm.org mb.osm.org mc.osm.org I don't know how much browser cache iPhone offers. Maybe it's very small and the vhosts bring nothing. But please lets try. I have a php tile cache here on my laptop but can't test the cache settings. The php tile cache is too fast - same as browser cache. 6 month cachetime would be good. I can make a config option in my software to switch tileserver. Please, please, please play with cache settings. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] gpx upload php code
hi I'm working now on a iPhone GPS recorder for my browser map. The GPS data are in the mobile-db and can be uploaded to my server. It's a gpx string. It should be possible to direct upload the data to the OSM servers. I found already the API doc. http://wiki.openstreetmap.org/wiki/OSM_Protocol_Version_0.6#Uploading_Traces Is there a php fragment somewhere, that handles the multipart-formencode and http auth? If there is a file_put_contents version I would prefer it to curl. Something like: putToOSM(gpxstring, username, passwort); Whould be nice. If I do it myself it takes a day. If somebody has that kind of php fragement, I would like to have it. Next question: How do I use the development server? I'm sure my gpx files are the best in the world, but one or two testruns are nessessary I think. One more question: The geolocation API give a parameter accuracy. There is no direct equivalent tag in gpx. Should I drop it? thanks Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] gpx upload php code
hi I made many of these uploads already, but with normal xml. Sometimes it's a bit tricky with all the parameters. But it should be possible with a few lines like this: snip $options=array( 'http'=array( 'method' = 'POST', 'header' = Accept-Encoding: gzip, deflate\nContent-Type: text/xml; charset=utf-8\nContent-length: .strlen($content).\n, 'content' = $content ) ); $context= stream_context_create($options); @$result=file_get_contents($url,false,$context); snap--- Sometimes the upload needs some strange headers, It's all about parameters. If you have something like that please send me. The curl version is also ok. Bernhard Peter Körner schrieb: Is there a php fragment somewhere yep, it's in PEAR: http://pear.php.net/package/HTTP_Request that handles the multipart-formencode http://pear.php.net/manual/en/package.http.http-request.file-upload.php and http auth? http://pear.php.net/manual/en/package.http.http-request.basic-auth.php Have fun. Peter ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] accuracy
Hi again iPhone has the geolocation API. There is a parameter accuracy. It's a value in meter that gives you information about accuracy,precision http://www.dict.cc/englisch-deutsch/precision.html exactness http://www.dict.cc/englisch-deutsch/exactness.html Indoors the API findes the position with wifi or what ever information. The accuracy is sometimes at 500m or more. What's the OSM accuracy. When to drop? I need a value in meter. What's ok as a OSM GPX coordinate and what is not. Btw. real GPS data have a height value. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] accuracy
Hi OK 10m. If it's more than 10m I stop recording and start a new track if signal is ok again. Here I can just walk around the block. I'm still sitting here in Phnom Penh with bad med. disc http://www.dict.cc/englisch-deutsch/disc.html prolapse http://www.dict.cc/englisch-deutsch/prolapse.html and can't test (walk,ride,drive) that much. I will set the accuracy to 1m for testing and then change it to 10m for visitors. Bernhard steve brown schrieb: Hey I personally find anything over 10m accuracy is pretty worthless, and thats the value I use in my own code. I can usually get 2-3m accuracy (as reported by phone) when holding my phone in my hand. OpenSatNav for Android currently uses 50m, as one of our developers wanted to use it for mountain biking with the phone in his pocket, but I'm going to add in a slider so the user can choose a level of accuracy. Hope that helps Steve On 17 March 2010 15:22, Bernhard zwischenbrugger b...@datenkueche.com mailto:b...@datenkueche.com wrote: Hi again iPhone has the geolocation API. There is a parameter accuracy. It's a value in meter that gives you information about accuracy,precision http://www.dict.cc/englisch-deutsch/precision.html exactness http://www.dict.cc/englisch-deutsch/exactness.html Indoors the API findes the position with wifi or what ever information. The accuracy is sometimes at 500m or more. What's the OSM accuracy. When to drop? I need a value in meter. What's ok as a OSM GPX coordinate and what is not. Btw. real GPS data have a height value. Bernhard ___ dev mailing list dev@openstreetmap.org mailto:dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] how to get an account at api06?
I don't get an email where I can accept my account. Leider ist dein Benutzerkonto noch nicht aktiv. Bitte aktivierte dein Benutzerkonto, indem du auf den Link in deiner Bestätigungs-E-Mail klickst. Bernhard Bernhard zwischenbrugger schrieb: Hi OK 10m. If it's more than 10m I stop recording and start a new track if signal is ok again. Here I can just walk around the block. I'm still sitting here in Phnom Penh with bad med. disc http://www.dict.cc/englisch-deutsch/disc.html prolapse http://www.dict.cc/englisch-deutsch/prolapse.html and can't test (walk,ride,drive) that much. I will set the accuracy to 1m for testing and then change it to 10m for visitors. Bernhard steve brown schrieb: Hey I personally find anything over 10m accuracy is pretty worthless, and thats the value I use in my own code. I can usually get 2-3m accuracy (as reported by phone) when holding my phone in my hand. OpenSatNav for Android currently uses 50m, as one of our developers wanted to use it for mountain biking with the phone in his pocket, but I'm going to add in a slider so the user can choose a level of accuracy. Hope that helps Steve On 17 March 2010 15:22, Bernhard zwischenbrugger b...@datenkueche.com mailto:b...@datenkueche.com wrote: Hi again iPhone has the geolocation API. There is a parameter accuracy. It's a value in meter that gives you information about accuracy,precision http://www.dict.cc/englisch-deutsch/precision.html exactness http://www.dict.cc/englisch-deutsch/exactness.html Indoors the API findes the position with wifi or what ever information. The accuracy is sometimes at 500m or more. What's the OSM accuracy. When to drop? I need a value in meter. What's ok as a OSM GPX coordinate and what is not. Btw. real GPS data have a height value. Bernhard ___ dev mailing list dev@openstreetmap.org mailto:dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev ___ 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] gpx upload php code
Hi OAuth is cool, I take it. But are there pages for iPhone? If there is already an infrastructure, it's perfect and I have less work. My idea is to use http-auth. I directly give username,password to the next http-request - also http-auth. It's a 50 lines proxy (AJAX restrictions). It would be very easy for me to log username/password combinations. You have to trust me. But maybe I will take over your OSM account. It's all open source and if somebody wants to do the oauth ok. I will not do it. Bernhard It would be better to use OAuth for this, so that you aren't asking for people's passwords. See http://wiki.openstreetmap.org/wiki/OAuth There is a specific code example about using OAuth with multipart-form uploads, since it's about the hardest thing to do with the OSM API. See http://wiki.openstreetmap.org/wiki/OAuth/Examples It's in Ruby, but it would be great if people translated these examples into other languages like PHP. Cheers, Andy ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] api debuging, error messages
Hi Now I try to upload a gpx. I get a 400 bad request error. Is there a possibility to get more information about the error? bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] gpx upload - big problem
hi GPX File upload does not work. I always get 400 bad request. I have no idea if there is just one bit wrong or it's completely nonsense. The Content-length is not clear for me, but multipart/form-data should work without content-length. Is there a way on the server to debug that? My multipart/form-data look like below. I checked it agains the version firefox sends to osm (firebug). Any idea? PHP code is in attachment Bernhard Content-Type: multipart/form-data; boundary=-88f5117f17 Content-length: 1052997 ---88f5117f17 Content-Disposition: form-data; name=trace[gpx_file]; filename=iphone.gpx Content-Type: application/octet-stream ?xml version=1.0 encoding=UTF-8? gpx version=1.1 creator=naviread 0.2.1 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://www.topogr afix.com/GPX/1/1 xsi:schemaLocation=http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd; metadata /trkseg /trk /gpx ---29cb2d8a43 Content-Disposition: form-data; name=trace[description] this is a testfile ---29cb2d8a43 Content-Disposition: form-data; name=trace[tagstring] thailand, bangkok ---29cb2d8a43 Content-Disposition: form-data; name=trace[visibility] private ---29cb2d8a43 Content-Disposition: form-data; name=commit hochladen ---29cb2d8a43-- attachment: upload.php ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] gpx upload - big problem
btw.: : the boundery (88f5117f17,29cb2d8a43 ) is ok, there is just a copy / paste mistake. Bernhard hi GPX File upload does not work. I always get 400 bad request. I have no idea if there is just one bit wrong or it's completely nonsense. The Content-length is not clear for me, but multipart/form-data should work without content-length. Is there a way on the server to debug that? My multipart/form-data look like below. I checked it agains the version firefox sends to osm (firebug). Any idea? PHP code is in attachment Bernhard Content-Type: multipart/form-data; boundary=-88f5117f17 Content-length: 1052997 ---88f5117f17 Content-Disposition: form-data; name=trace[gpx_file]; filename=iphone.gpx Content-Type: application/octet-stream ?xml version=1.0 encoding=UTF-8? gpx version=1.1 creator=naviread 0.2.1 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://www.topogr afix.com/GPX/1/1 xsi:schemaLocation=http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd; metadata /trkseg /trk /gpx ---29cb2d8a43 Content-Disposition: form-data; name=trace[description] this is a testfile ---29cb2d8a43 Content-Disposition: form-data; name=trace[tagstring] thailand, bangkok ---29cb2d8a43 Content-Disposition: form-data; name=trace[visibility] private ---29cb2d8a43 Content-Disposition: form-data; name=commit hochladen ---29cb2d8a43-- ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] hammering the changesets API
hi all I want to display recent changesets as Vectorgraphics on the map. There are some problems and I need help. To get some real results I have to request 100 changesets. All the robot changesets I have to filter client side. The hole thing is slow as hell and I'm not sure if the db is happy with that. Is there a faster way to get the changesets of a map area? Here a preview of that: http://www.khtml.org/iphonemap/extended.html zoom in to the area you are interested in click to load changesets. click to the usernames. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Making libxml ignore errors
hi Does anyone perhaps know how to get libxml to either not detect these errors, or how to continue after parsing them ? libxml is correct here. An XML parser MUST stop if there is an encoding error. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Making libxml ignore errors
Nic Roets schrieb: On Fri, Mar 12, 2010 at 1:48 AM, Bernhard zwischenbrugger b...@datenkueche.com wrote: hi Does anyone perhaps know how to get libxml to either not detect these errors, or how to continue after parsing them ? libxml is correct here. An XML parser MUST stop if there is an encoding error. Just another reason why I should hate XML then. Just another reason why I should implement my own Xml parser [1] [2] Do you want the wrong encoding in the map? libxml found a bug - that's good. UTF-8 and XML make sure that there are no encoding errors. That's the big advantage over CSV, jSON,... Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] TRAPI status
Brett Henderson schrieb: On Wed, Mar 10, 2010 at 7:30 PM, Peter Körner osm-li...@mazdermind.de mailto:osm-li...@mazdermind.de wrote: I started working on a streaming XML output plugin for Osmosis. I was intending to take advantage of PuSH/PubSubHub messaging and maybe even XMPP (so that you get a 1-min delayed IM when someone changes something in your bbox). Anyway, TRAPI could use this same plugin to apply updates to their database. What about a XMPP groupchat for changesets? It's easy: login... presence to=o...@conference.osm.org/osm message to=o...@conference.osm.org type=groupchat id=58 changeset /changeset /message The OSM Server should send all changesets to this groupchat. If somebody wants the changesets he can connect to the groupchat and will get the changesets. If the messages get an incrementing serial number, it should be possible to load changesets if they are missing because of whatever. I don't know if a jabber server is able to handle the load. But facebook also uses ejabberd (free software) and it's working. If somebody wants to implement pubsub he can use the input from groupchat and load it to pubsub. That should be easy. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] New beta of khtml map online
hi all There is a new version of my map online: http://www.khtml.org/iphonemap/ The library is free software. It's still work in progress, but should give you a first impression. Please try a webkit browser (Chrome, Safari,...). Firefox does not support hardware accelerated image zoom and is much slower. As a next step I'm looking for a home for this project. I don't really like sourceforge. It tried to use google code, but no success to start a project there. What's the best opensource site at the moment? It should have mailinglist, svn, bugtracking,... Please have a look at the API. It's easy to change it now. Later it will be not so easy if projects depend on it. Open Issues: There are many bugs. It makes not much sense to report this bugs at the moment. When I have a bugtracking system, you are welcome to do so. br/ The input field for search is not editable at chrome(linux). You can only search for wien. If you know why it's not editable please contact me. br/ br/ There is one thing I can't solve. It's the mousewheel speed. On some systems the zoom is too fast on other systems the zoom is too slow. This depends on OS, browser and maybe usersettings. If you have an idea how to solve that, please tell me. Feedback There is a feedback form at the help.php page. If you have usability ideas please post. Payed support If you need a special feature for the lib, please contact me. I will continue to develop this map lib, but money can make the development much faster. thanks Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] New beta of khtml map online
hi Looks good! fast in chromium on my desktop - any plans to get it working with Android? Also, WMS layers and opacity? If Android Browser gets multitouch support, it should work there. Android Browser has no SVG, no 3D CSS so it will be slow on Android. At the moment the question is if Android will support that kind of browser maps. Bernhard Cheers, Tim On 9 March 2010 08:49, Bernhard zwischenbrugger b...@datenkueche.com wrote: hi all There is a new version of my map online: http://www.khtml.org/iphonemap/ The library is free software. It's still work in progress, but should give you a first impression. Please try a webkit browser (Chrome, Safari,...). Firefox does not support hardware accelerated image zoom and is much slower. As a next step I'm looking for a home for this project. I don't really like sourceforge. It tried to use google code, but no success to start a project there. What's the best opensource site at the moment? It should have mailinglist, svn, bugtracking,... Please have a look at the API. It's easy to change it now. Later it will be not so easy if projects depend on it. Open Issues: There are many bugs. It makes not much sense to report this bugs at the moment. When I have a bugtracking system, you are welcome to do so. br/ The input field for search is not editable at chrome(linux). You can only search for wien. If you know why it's not editable please contact me. br/ br/ There is one thing I can't solve. It's the mousewheel speed. On some systems the zoom is too fast on other systems the zoom is too slow. This depends on OS, browser and maybe usersettings. If you have an idea how to solve that, please tell me. Feedback There is a feedback form at the help.php page. If you have usability ideas please post. Payed support If you need a special feature for the lib, please contact me. I will continue to develop this map lib, but money can make the development much faster. thanks Bernhard ___ 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] New beta of khtml map online
Shaun McDonald schrieb: On 9 Mar 2010, at 08:49, Bernhard zwischenbrugger wrote: As a next step I'm looking for a home for this project. I don't really like sourceforge. It tried to use google code, but no success to start a project there. What's the best opensource site at the moment? It should have mailinglist, svn, bugtracking,... Github is the current craze. I added the project to github. http://github.com/robotnic/khtmlib But I can't find a bugtracker there. Bernhard Shaun ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] Edit in JOSM link
Hi all To open a map view in potlatch I use something like: http://www.openstreetmap.org/edit?lat=11.561150369579765lon=104.91780691575758zoom=17 But what's to link to open the map view JOSM? Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] Announcement: new khtml javascript map library
Hi all I was mapping a white spot on OpenStreetMap with my bicycle: Myanmar Now I'm in Phnom Penh (Cambodia) and have a Bandscheibenvorfall (disc prolapse) because of the bad roads in Myanmar. It's painful and I can't move very much. In my guesthouse I get everything in distance of 10m and it's a good place. I also have WiFi Internet access. Now I started to improve my javascript map library - I have nothing else to do. All informations here: http://www.khtml.org/iphonemap/help.html It provides a very fast, stepless zoom on WebKit Browsers with good internet connection. iPhone moultitouch is fully supported. Internet Explorer is not supported. I will be here in the guesthouse for maybe 2 weeks until I'm able to move again. In this time I have time to improve the lib. I would love to get nice feedback. Bernhard ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev