Re: [OSM-dev] crossdomain.xml
Simon Lopez wrote: Hi, I would like to know if there is any plan of adding some crossdomail.xml on various OSM API domains. Any flash developper that wants to use OSM datas need to use a proxy. You may know the openscales project is an Open Source (LGPL) mapping framework based on ActionScript 3 and Flex and if you took a look at the demos based on OSM datas, you'll see that it uses au proxy.php script to be able to access OSM (a|b|c).tiles.openstreetmap.org datas. Erm, http://tile.openstreetmap.org/crossdomain.xml appears to be present and correct. I seem to recall that it was added when last requested on this list. snip Regards, Thomas ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Rendering Chain for api.dev.osm?
It has been on my todo list since errol went in. University, exams, etc, have led to a lack of time to do anything about it. Thomas Frederik Ramm wrote: Hi, I was wondering whether it is feasible to set up some kind of Mapnik rendering chain for the api.dev system. The backdrop to this is a number of recent discussions on the German mailing lists where people would like to not only test their selfmade editor against a test API, but sometimes they would also like to see how certain edits come through on a standard Mapnik map. Currently, we offer no dump or diff services on the dev API, so even if someone was capable of running their local Mapnik instance they couldn't download the data. Ideally though, we'd even be offering some kind of Mapnik rendering for the data so people don't have to install the stuff themselves. It is clear that we do not have the resources for a full-blown system with world-wide rendering and planet dumps and diff updates and whatnot, but maybe we could hack something together somehow which makes the dev API usable for a wider range of try-out tasks. Perhaps an idea for the upcoming hack weekend? Bye Frederik ___ 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] Import of KML Radar sites failing
jamesmikedup...@googlemail.com wrote: Hi, I fixed the mines already. I am importing the EPA sites. of course I unzipped it. The gpsbabel produced nothing. mike On Fri, Dec 11, 2009 at 5:22 PM, Thomas Wood grand.edgemas...@gmail.com wrote: jamesmikedup...@googlemail.com wrote: HI there, I have been using gpsbabel to convert data.gov kml files to osm. Here is a problem file that does not work http://www.ncdc.noaa.gov/oa/radar/nexrad.kmz Anyone have some advice? thanks, mike ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev Simple, it's not a kml file. (Hint: try unzipping it) Please be careful with bulk imports, I read on one of your diary posts that you messed up the Mines import when following a similar process... It looks like gpsbabel doesn't support the full range of kml options (or the NOAA have seriously messed up their file!) I think mass replacing wsr with Placemark should work... (No guarantees) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] usernames, keys, and values
Apache is throwing the error filename too long. The dev api server is not an exact clone of the production servers. Variations in handling may exist when compared to the production setup (which uses a different httpd server and different methods of accessing the ruby/rails backend) 2009/10/29 Anthony o...@inbox.org: On Wed, Oct 28, 2009 at 8:22 PM, Tom Hughes t...@compton.nu wrote: http://trac.openstreetmap.org/browser/sites/rails_port/app/models/user.rb#L29 Oops. http://api06.dev.openstreetmap.org/browse Try clicking on the user that made edit #1564. ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Code for OSTN02?
Good luck, this is the one projection that the OS actually sell for professional uses. I thought that OSTN02 wouldn't actually be needed unless for the very high precision stuff. The standard OSGB36 transform should be good enough otherwise? On Mon, 2009-10-19 at 20:33 +0100, TimSC wrote: Hi all, Does anyone know a linux compatible C or C++ implementation of OSTN02? (that is the fancy OS grid to ETRS89 which is a local version of WGS84). I need it to run under linux which rules out the OS implementation. I am currently using Geo-Coordinates-OSGB-2.04 in perl and although it works fine, it would be a nightmare to deploy to other machines. Open source solutions are strongly preferred. Zero monetary cost is a must! Also, the Helmert approximation seems to be not accurate enough. Ideas anyone? Tim ___ 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] This #petition needs your votes: Vote for legal use of Google's aerial imagery for #OpenStreetMap tracing!
Erm, its been all over the mailing lists about 2 weeks ago, it was featured on the OpenGeoData blog, it has 1,452 positive votes as I write this 2009/10/3 Andreas Kalsch andreaskal...@gmx.de: I have found this in the OpenStreetMap news, and I wondered why I have given the first vote for it. http://twitter.com/kalsch/status/4582749178 Please spread this! Andi ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Wiki: Renaming the API pages
+1 This has needed a tidyup for a long time. 2009/9/13 Lars Francke lars.fran...@gmail.com: Hi, I already asked this on the Talk page for the API (http://wiki.openstreetmap.org/wiki/Talk:API) but I don't know how many people will be reading that. * I'd like to rename (move) Protocol to API on the Wiki: OSM_Protocol_Version_0.6 - OSM_API_Version_0.6. API is the commonly used word and it had been decided earlier to move from Protocol to API on the Talk page so this would only be for consistency. * I'd also like to remove the OSM Protocol Stack Overview part and the HTTP Protocol Specification from http://wiki.openstreetmap.org/wiki/API. I believe they are more confusing than they are helpful. A description of the HTTP protocol is certainly unneccesary and the description might suggest to newcomers that OSM somehow uses a different HTTP implementation (The desciption of the HTTP Protocol as used by OpenStreetmap). If it was up to me I'd completely delete http://wiki.openstreetmap.org/wiki/HTTP_Protocol_Specification as it serves no current or historical purpose. But I think that would have to be done by an administrator. Any comments? Anyone opposed? Cheers, Lars ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] This week's planet .osm
It sounds like the file you have is incomplete, check the md5 hash against http://planet.openstreetmap.org/planet-090909.osm.bz2.md5 2009/9/13 Richard Ive rich...@xanox.net: Hey all, Has anyone had any issue with this weeks planet dump? 090909 I've tried to rum an osm2pgsql import twice now and it's falled over at Relation 198k both times: 1st: Processing: Node(428597k) Way(32778k) Relation(198k) Reading in file: - Entity: line 3: parser error : Document is empty top ^ 2nd I added -u just to make sure [postg...@maps osm2pgsql]$ time ./osm2pgsql -C 2000 --slim -c -m -d gis ../planet-latest.osm.bz2 -u -S /tmp/osm2pgsql/default.style - osm2pgsql SVN version 0.66-17041 Using projection SRS 900913 (Spherical Mercator) Setting up table: planet_osm_point Setting up table: planet_osm_line Setting up table: planet_osm_polygon Setting up table: planet_osm_roads Mid: pgsql, scale=100, cache=2000MB, maxblocks=256001*8192 Setting up table: planet_osm_nodes NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index planet_osm_nodes _pkey for table planet_osm_nodes Setting up table: planet_osm_ways NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index planet_osm_ways_ pkey for table planet_osm_ways Setting up table: planet_osm_rels NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index planet_osm_rels_ pkey for table planet_osm_rels Reading in file: ../planet-latest.osm.bz2 Processing: Node(428597k) Way(32778k) Relation(198k) Reading in file: - - : failed to parse Error occurred, cleaning up Has anyone else had an issue at all? -- Regards, Richard Ive. ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Whitespace in tag-keys
2009/9/13 Martin Lesser ml-osm-...@bettercom.de: I did not find explicit informations about this issue in the wiki so I'm wondering whether whitespace in keys is a should not or a must not. What's the recommended action if one detects tags like eg. http://www.openstreetmap.org/browse/node/275671906 (k=is in) http://www.openstreetmap.org/browse/node/447654517 (k= type) http://www.openstreetmap.org/browse/way/38170057 (k= v=residential) http://www.openstreetmap.org/browse/way/39240565 (k= v=Gweyn Hughs Road) If people want to create data that's not particularly useful, that's up to them. As you see, the server has no qualms about spaces in tags (either key or value), and neither should clients have such issues with them. A second question about ways/relations with less than two nodes/members: Is there any reason for these? Eg. http://www.openstreetmap.org/browse/way/10211008 Thanks in advance. Martin This looks like an issue with Merkaartor allowing ways with single nodes to be formed if nodes are consecutively deleted from the way. Otoh, it may be user error, intending to delete the way but not doing so. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] what server next?
2009/9/8 John Smith deltafoxtrot...@gmail.com: Hosting OpenLayers.js and some kind of web page would be useful as well so people with simple web pages could embed a map in an iframe. * osm.org * Export tab * Select Embeddable Html -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Oauth on dev server
2009/9/7 Tom Hughes t...@compton.nu: On 07/09/09 14:45, Etienne Chové wrote: Tom Hughes a écrit : You're using the wrong server - the URL you want is: http://oauth.dev.openstreetmap.org/oauth/request_token Thanks, it looks better. The dev database have been cleaned ? Possibly - I'm not sure if Edgemaster transferred them to the new machine or just created new databases. In general the dev databases might be wiped at any time... Tom -- Tom Hughes (t...@compton.nu) http://www.compton.nu/ I couldn't be bothered with the fuss of moving over what are testing databases since the data on them shouldn't be valuable. Also note that the oauth functionality of the oauth branch is now in trunk. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] OpenStreetView: Digital Photos: Getting the field of view angle
I've seen some quite awesome apps on the iphone that allow for augmented reality. http://layar.eu/ is one such example from a quick google. And another - http://www.youtube.com/watch?v=5fZk0HaIs4s 2009/8/16 Nick Whitelegg nick.whitel...@solent.ac.uk: Hello everyone, Have been thinking a bit more about my own interests within the OpenStreetView project introduced by John McKerrell at SOTM. My particular interest is an in the field navigation tools for countryside users, particularly walkers/hikers/mountaineers etc, which I'm giving the codename footnav for the moment (seeing as John already has openstreetview and I'm more focusing on the countryside!) One option is simply to have a computer generated 3D view from SRTM, OSM and 3D models of stiles, gates and so on. However I'm quite interested in using actual photos: the advent of compass phones such as the N97 and latest iPhone makes this a realistic possibility. What I'd like to do is build up a database of photos taken along a path or footway, say every 10 metres or so. If a user wanted to navigate, the app could locate the nearest photo to them, based on location and direction of travel, and display it, with their position and OSM data overlaid on the photo. I was on top of a hill looking down at a valley the other day and was thinking how cool would it be if I could see a photo of that valley and have all the footpaths overlaid on it! I've done a bit of OpenGL and believe something like this could be done if the position, direction, slope, aspect ratio and field-of-view angle of each photo were known. Most of these I have ideas on how to obtain, or at least where to go to look it up, *except* the field of view angle. The thing I don't really know much about is: how can you get the field-of-view angle of a photo taken from a digital camera (either a standalone camera or within a phone)? I've seen a few explanations on the web on how you get it from the focal length (which appears to be quoted in e.g. the N95 specs) but they also require another parameter (the size of the film). Where might I get this from? If anyone's an expert on photography theory I'd welcome any explanations on how to obtain the field-of-view angle of digital photos. Thanks, Nick ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] OAuth
2009/6/27 Frederik Ramm frede...@remote.org: Hi, I just wanted to say (though it isn't normally my style) that I think this OAuth stuff is really great and a leap forward for the OSM developer community. Thank you for implementing that! Until now, developers were forced to either deal with Rails and somehow write extensions to the Rails port and get them accepted (not for the faint at heart, nor for those who are really bad at human communications which unfortunately geeks tend to be), or they set up their own stuff which then did ugly things like churn out .osm files that you would have to open in JOSM and upload or things like that. With a working OAuth implementation, all these people can now integrate their applications properly with OSM, which will greatly enhance the palette of tools available to users on any level. I haven't looked at your implementation - which SVN revision should I check out to do so? http://svn.openstreetmap.org/sites/rails_port_branches/oauth/ Does the implementation * allow third party applications to identify an OSM user so that they can, for example, store local preferences under that username? Yeo * allow users to grant third party applications the right to make edits in their name? Yep * allow the first item above WITHOUT at the same time allowing the second item above (so that I can authenticate with a third party application but I may not trust that application enough to actually make edits in my name)? I'm guessing so * allow users to grant third party applications the right to retrieve their non-public GPS tracks, and again, give the user a choice whether a given third-party application should have this right (or only know the username, or only make edits)? Yep All the above options are listed as permissions a client application may use at the application key registration page: http://oauth.dev.openstreetmap.org/oauth_clients/new I'll happily try my hand at implementing those features of the above that aren't in there yet. I'm very eager to create application prototypes in various programming languages and unleash them onto our developer community - I am sure the uptake will be great. Bye Frederik I think the one thing we've not yet seen is any client using OAuth, that would make it even better. An OAuth test server is online at http://oauth.dev.openstreetmap.org/ and following the svn branch. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Deleting TIGER node tags
2009/6/27 Ed Loach e...@loach.me.uk: Indeed. Leave it in the ways, remove it from the nodes. Is this a low (database) level delete? Or will we gain a new history entry for every node showing the node as it was before the delete and as it was after? If the latter then won't the database end up bigger rather than smaller? Ed The database is a matter for the sysadmins, this will however impact greatly on the planetfile size, which more people often struggle with. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] [OSM-talk] Error in OSM site when Exporting to Embedded HTML
This is now fixed in http://trac.openstreetmap.org/changeset/16086 2009/6/23 Jonas Krückel o...@jonas-krueckel.de: Ævar Arnfjörð Bjarmason schrieb: On Mon, Jun 22, 2009 at 8:59 AM, Ivan Garciacapisc...@gmail.com wrote: Hi, I realized that when I click in the EXPORT tab of OSM.org and I choose the Embedded HTML radiobox, it appears a link that says: Click here to select a marker, but when I click later on in the map, no marker is placed, I'm using Firefox 3 in my Kubuntu. Can someone who can debug JS look at this? Firefox error console/Firebug complain about undefined variables but I can't track down what's wrong. I recognized this bug a few weeks ago as I was translating osm.org. It seemed to me that the bug appeared that time, so maybe it has something to do with the translation? I checked de.yml at this time, but there was no bug, so it must be somewhere else. Maybe this is a hint. Jonas ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Translation of the OpenStreetMap site in Italian
Make sure you patch against rails_port and not rails_port_branches/i18n_2, since i18n was merged to trunk over the weekend. On 01/06/2009, Andy Allan gravityst...@gmail.com wrote: On Mon, Jun 1, 2009 at 10:17 PM, Daniele Forsi dfo...@gmail.com wrote: Hello, I've read http://www.opengeodata.org/?p=508 and would like to help translating www.openstreetmap.org in Italian. How can I help? I haven't seen .po files in the svn repository but I've found this file: http://svn.openstreetmap.org/sites/rails_port_branches/i18n_2/config/locales/en.yml We aren't using .po files, it's all in YAML files instead. The en.yml is the master translation list (and is what the website falls back to if other translations are missing any strings). So use that as your base, and translate as much as you want. If you don't have SVN access to commit it directly, or if you do and want someone to check it over anyway, attach it to a trac ticket at http://trac.openstreetmap.org and it'll get processed. Will be great to see an Italian translation! Cheers, Andy ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] Fwd: [OSM-newbies] Reverse geo coding
Forwarding this to OSM dev from newbies. -- Forwarded message -- From: Michael Handerek o...@handerek.net Date: 2009/5/28 Subject: [OSM-newbies] Reverse geo coding To: newb...@openstreetmap.org newb...@openstreetmap.org Hi, I am new to osm. I am currently developing a prototype of a reverse geo coding tool based on a local osm db. The input has to be a latitude/longitude pair and the output a human readable address. I already handled it to extract the street name and postal code of a lat/long pair using the tags of a nearest-neighbor-node. To do this with a acceptable query time i use the k-nearest-neighbor algorithm (http://www.bostongis.com/?content_name=postgis_nearest_neighbor_generic#130). Now I have to get at least the country and city name. In order to do this i see two possibilities. 1. Searching for the nearest city node, in order to extract the information from his tags. 2. Creating geometries for each continent, country and city in order to check if nodes are within. May someone know some better method to get the needed information, feel free to discuss. The 1. possibility, also used by 'Where are they' (http://wiki.openstreetmap.org/wiki/Where_Are_They), for me, seems to be imprecise. Regards, Mic ___ newbies mailing list newb...@openstreetmap.org http://lists.openstreetmap.org/listinfo/newbies -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] type four_byte_unsigned does not exist
2009/5/26 Tom Hughes t...@compton.nu: Dan Karran wrote: I'm trying to set up a copy of the rails site on my machine, using Postgres, but I'm running into a problem on the initial db:migrate ... can anyone point me to how to fix this? It's a bug, related to a change of some sort in rails 2.2 (it used to work as is in 2.1). Add a require of lib/migrate to the top of that migration (as some of the others already have) and it will work. The fix is already on the i18n branch but not on the head right now. Tom I've merged the fix across to head. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Guys I trusted you, I removed my checks...
2009/5/18 Stefan de Konink ste...@konink.de: ...but again this trust was misplaced. No, it is not Potlatch 0.9a, it cannot be Potlatch is the perfect user tool and introduction to OSM. It must be API 0.6 that didn't solve all our problems, as was promised. Instead but it opened the gates of hell, a parallel universe within OSM...[/melodramatic] [start fanfare tune + brass] http://api.openstreetmap.org/api/0.6/way/8115655/full http://api.openstreetmap.org/api/0.6/node/255483811/history I probably have to blame myself; I was a fool to speed up my converter by removing the consistency checks. But since when do we support more than -180/+180 ? Stefan Current API code has limits for the standard sane coordinate limits, and it always has done as far as I can remember (back to mid 0.4, but I wasn't coding then..) It probably just hadn't come to anyone's attention that we did have bad coordinates in the database from some source, and nobody bothered to run a consistancy check on them... -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] dev servers down
2009/5/15 Stefano Salvador stefano.salva...@gmail.com: Hi, It seems that the last commit on dev server (api06 and new06) has corrupted database.yml :-( could someone fix this ? Bye, Stefano Now fixed, thanks for the report, I need to fix the cron job to handle conflicts nicely, I thought I'd nailed it, but obviously not... -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Building Potlatch
2009/5/11 Richard Fairhurst rich...@systemed.net: Thomas Wood wrote: 2009/5/10 Richard Fairhurst rich...@systemed.net: The api06 install doesn't seem to be talking to Potlatch; the main site works fine. Not quite sure why yet. Works for me, I've not had any issues with potlatch at all on the dev server tbh. The problem isn't with running Potlatch _on_ api06, it's with calling amf_controller on api06 from a Potlatch instance elsewhere. It's almost certainly something to do with Flash Player's accursed security model - crossdomain.xml and all that crap. cheers Richard Ah, I see. They appear to have the same crossdomain.xml file... -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Building Potlatch
2009/5/10 Richard Fairhurst rich...@systemed.net: Stellan Lagerstrom wrote: Replacing that with api06.dev.openstreetmap.org makes the html work right, but the flash client only loads partially; I see a Please wait - loading presets message, the flashing warning sign and a spinning globe forever. Any ideas? I've replied to Stellan off-list (while the lists were down) but for the benefit of anyone else, there's now a readme: http://svn.openstreetmap.org/applications/editors/potlatch/README.TXT The api06 install doesn't seem to be talking to Potlatch; the main site works fine. Not quite sure why yet. Works for me, I've not had any issues with potlatch at all on the dev server tbh. cheers Richard -- View this message in context: http://www.nabble.com/Building-Potlatch-tp23461954p23474242.html Sent from the OpenStreetMap - Dev mailing list archive at Nabble.com. ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] bounding box
2009/5/8 Sam Mor sam_...@y7mail.com: Hi great Guys, maybe we misput our question. we need to show the world map , then we can zoom in,zoom in, zoom in.. to Russia... so are those the steps??? 1.we need to download russian_federation.osm.bz2 ( downloaded from cloudmade) Then import it using osm2pgsql. 2.then what ot change in generate_tiles.py file # Change the following for different bounding boxes and zoom levels # # Start with an overview # World bbox = (-180.0,-90.0, 180.0,90.0) render_tiles(bbox, mapfile, tile_dir, 0, 16, World) #minZoom = 10 #maxZoom = 16 #bbox = (-2, 50.0,1.0,52.0) #render_tiles(bbox, mapfile, tile_dir, minZoom, maxZoom) # Muenchen #bbox = (11.4,48..07, 11.7,48.22) #render_tiles(bbox, mapfile, tile_dir, 1, 12 , Muenchen) how do we grab the bounding box for Russia , and how can we use it?? I've just created a wiki article to describe what a bounding box is, essentially its a set of 4 coordinates, which describe the edges of a box. You can get the figures by using the 'Export' tab on the main website, clicking on Manually select a different area and drawing the box on the map. Then use the figures given in this order: left,bottom,right,top The other numbers you may wish to change are those before the description (eg: 1, 12, Muenchen), these are the zoom levels at which the tiles will be generated. http://wiki.openstreetmap.org/wiki/Bounding_Box -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] User preference for editor
2009/4/30 Chris Browet c...@semperpax.com: Adding the ability to set an alternate default editor is certainly reasonable, though at the moment the target audience for that is likely to be pretty small as the only real alternative at the moment is JOSM with the remote control plugin which will present a pretty ugly user interface that will fail in a rather messy way if you don't have JOSM running with the remote control plugin enabled. What about a custom mime type for a file containing pertinent info (i.e. the bbox, I guess)? or a custom protocol (osm://)? Just thinking aloud... - Chris - Others have stated before that the mime type option is really the only sane one for this sort of thing, rather than the awful localhost URIs the the JOSM remote control uses presently. The other option of a custom protocol will soon become a pain when using/configuring it with multiple browsers. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Postgres - installing gist?
When setting them up on dev, shaun pointed me to the last section of http://wiki.openstreetmap.org/wiki/OSM_Protocol_Version_0.6/postgres#Installing_Postgres It appears to have a path there for Macs. 2009/4/26 Richard Fairhurst rich...@systemed.net: Oh, how I love setting up a new instance of the Rails port. I'm trying to install Postgres this time (on an Intel Mac mini). Migration 28 (AddMoreChangesetIndexes) fails, saying: -- add_index(changesets, [min_lat, max_lat, min_lon, max_lon], {:method=GIST, :name=changesets_bbox_idx}) rake aborted! PGError: ERROR: data type integer has no default operator class for access method gist HINT: You must specify an operator class for the index or define a default operator class for the data type. : CREATE INDEX changesets_bbox_idx ON changesets USING GIST (min_lat, max_lat, min_lon, max_lon) It looks to me as if I need to install btree_gist, but how I do that without pulling down the whole Postgres source tree, I have no idea (the makefile seems to refer to lots of other places within the source). Any clues? cheers Richard -- View this message in context: http://www.nabble.com/Postgres---installing-gist--tp23243248p23243248.html Sent from the OpenStreetMap - Dev mailing list archive at Nabble.com. ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Osmosis pk_users (was Re: Postgres - installing gist?)
2009/4/26 Richard Fairhurst rich...@systemed.net: Shaun McDonald wrote: If you used the installer for Mac OS X the file is located at: [...] Brilliant, thanks. :) I'm now having problems trying to populate the db from a planet file using Osmosis: osmosis --read-xml-0.6 file=great_britain.osm.bz2 --write-pgsql-0.6 host=localhost database=openstreetmap user=openstreetmap password=openstreetmap validateSchemaVersion=no gives this error: SEVERE: Thread for task 1-read-xml-0.6 failed com.bretth.osmosis.core.OsmosisRuntimeException: Unable to execute statement. [...] Caused by: org.postgresql.util.PSQLException: ERROR: constraint pk_users does not exist Any Osmosis experts know what I'm doing wrong? cheers Richard I think the pgsql commands still target the pre-0.6 osmosis-specific PostGIS schema, brett began introducing the apidb command set as a copy of the existing mysql ones and then modifying to use postgres. See r14515 onwards here - http://trac.openstreetmap.org/log/applications/utils/osmosis -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Expect error 417 is back
2009/4/24 Till Harbaum / Lists li...@harbaum.org: Hi, Am Donnerstag 23 April 2009 schrieb Tom Hughes: about the api then no, it isn't running apache. It's running lighttpd as it has done for the last couple of years. Some of the emails of Thomas Wood indicated that there was an apache involved: I've done a quick search through the server's log, and can find 401 and 500 responses both logged in the apache log. The rails log only shows 401 responses and not the 500s, so there's something odd happening between apache and rails. So what is it? Apache or lighthttp? Till Any responses from me will be related to the testing APIs on dev, which do run under Apache. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Expect error 417 is back
2009/4/24 Till Harbaum / Lists li...@harbaum.org: Hi, Am Freitag 24 April 2009 schrieb Thomas Wood: Any responses from me will be related to the testing APIs on dev, which do run under Apache. Ah ... so the API testing takes place in a different setup than the real life operation? Why? Is this really clever? Isn't the purpose of a test setup be as close to the real thing as possible? Till My original aim was to try and get as close to the real set up as possible, but with what exists on dev, it wasn't really feasable to do it in a timescale suitable for mass-testing of 0.6. The main issue is that dev is a server shared by many projects, Apache is required as the main webserver on there due to other users' requirements, I believe dev hosts the planet dumps, the SOTM websites, and several other sites on the fringes of OSM. Another option may be to run lighttpd on another port, but I was unaware of what restrictions the server had on external connections, so I left it as was. A proxying option through apache was possible, and I'd toyed with it when I was having issues with Passenger, but it was so unstable at times, I reverted to using Passenger. Plus it'd still be undesirable in terms of overheads and replicating the live environment. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] Change to the Testing APIs
Hi list, As a recent change to the rails software, it's been decided that postgres will be the database server of choice for the production machine. I've just brought the testing API into line with this by changing it over to use the postgres backend. A fresh database is now running on api06.dev.openstreetmap.org, this means you'll have to create new accounts there. The old database is now running at mysql.dev.openstreetmap.org, in case there's anything there you still need. Please continue all testing on api06.dev.openstreetmap.org, any bugs you hunt down report here please. Note I'm away this coming week, so any mail sent directly to me will not be answered. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Server 0.6 doesn't answer ...
2009/4/10 Till Harbaum / Lists li...@harbaum.org: Hi Thomas, osm2go now seems to work fine with the test server. I have not tested this very much and will do so the next days. But so far libcurl and your server seem to cooperate nicely. Fantastic, I did have some worries a while ago whether the requests were getting through to the code properly. The upstream mod_rails upgrade seems to have fixed this nicely. Are the error messages documented somewhere? I had the problem with the 0.5 server that some error messages were plain ascii text while some were html. Do you return all error messages in some standard format? Errors are either caught and handled by the OSM software, or not at all and thus caught by Ruby and handled by Rails. When handled by us, I believe we try and return a plain text error message and appropriate status code. When it's a Ruby/Rails exception, it's probably going to return a stack trace in html (focused towards browser use), and the 500 internal server error status code. Thanks, Till Am Freitag 10 April 2009 schrieb Thomas Wood: Thanks for bringing this up, for future reference, the exact error was: [2009-04-09 20:39:38.334164 #1380] ArgumentError (Must specify a string with one or more characters): /usr/lib/ruby/gems/1.8/gems/libxml-ruby-1.1.3/lib/libxml/parser.rb:82:in `string' /usr/lib/ruby/gems/1.8/gems/libxml-ruby-1.1.3/lib/libxml/parser.rb:82:in `string' /app/models/node.rb:67:in `from_xml' /app/controllers/node_controller.rb:72:in `delete' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in `send' ... more traceback ... This is related to the change in libxml version, meaning that anything we try and parse must not have zero length. A similar issue was fixed in r14241. I'll get to fixing this case also, and seeing if I can find others. 2009/4/9 Till Harbaum / Lists li...@harbaum.org: Hi, you should check your server log again. I just tried to delete a node without specifying a changeset. The result was a frightening lengthy mixture of ruby error messages, html error messages etc etc ... Till Am Donnerstag 09 April 2009 schrieb Thomas Wood: Thanks for the sample request, I've updated the rails module in apache, and the request seems to be functioning fine for me now, do you want to try again? Looking into this error also allowed me to find a bug with the changeset browing on the website section of the code, too! 2009/4/9 Till Harbaum / Lists li...@harbaum.org: Hi, i get the same results using the command line curl. I do this: curl -u mylogin:mypassword -H Expect: -i -o result.txt -Tchangeset.xml http://api06.dev.openstreetmap.org/api/0.6/changeset/create And the changeset.xml is attached. I sometimes get server errors 500 with this and sometimes just an empty reply. This should be giving me a changeset id in return, shouldn't it? What's wrong with this request? Till Am Donnerstag 09 April 2009 schrieb Thomas Wood: I've done a quick search through the server's log, and can find 401 and 500 responses both logged in the apache log. The rails log only shows 401 responses and not the 500s, so there's something odd happening between apache and rails. However, other requests to this method this evening have been functioning correctly according to the logs. 2009/4/8 Till Harbaum / Lists li...@harbaum.org: Hi, sending this request: PUT /api/0.6/changeset/create HTTP/1.1 Authorization: Basic x User-Agent: osm2go-libcurl/0.6.14 Host: api06.dev.openstreetmap.org Accept: */* Content-Length: 163 ?xml version=1.0 encoding=UTF-8? osm changeset tag k=created_by v=osm2go v0.6.14/ tag k=comment v=Kommentar/ /changeset /osm i either get an internal server error 500 or no reply at all. What is wrong with this request (despite the Auth i xxx'ed out)? Till ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Duplicates in planet.osm
2009/4/10 Richard Fairhurst rich...@systemed.net: Kenn Sebesta wrote: What can be done to catch and eliminate all these duplicate ways? API 0.6. Are you sure API0.6 will solve this situation? In this case all the ways share the same two nodes and are exactly the same tagging. 0.6 does not aim to solve this issue afaik. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Server 0.6 doesn't answer ...
Thanks for the sample request, I've updated the rails module in apache, and the request seems to be functioning fine for me now, do you want to try again? Looking into this error also allowed me to find a bug with the changeset browing on the website section of the code, too! 2009/4/9 Till Harbaum / Lists li...@harbaum.org: Hi, i get the same results using the command line curl. I do this: curl -u mylogin:mypassword -H Expect: -i -o result.txt -Tchangeset.xml http://api06.dev.openstreetmap.org/api/0.6/changeset/create And the changeset.xml is attached. I sometimes get server errors 500 with this and sometimes just an empty reply. This should be giving me a changeset id in return, shouldn't it? What's wrong with this request? Till Am Donnerstag 09 April 2009 schrieb Thomas Wood: I've done a quick search through the server's log, and can find 401 and 500 responses both logged in the apache log. The rails log only shows 401 responses and not the 500s, so there's something odd happening between apache and rails. However, other requests to this method this evening have been functioning correctly according to the logs. 2009/4/8 Till Harbaum / Lists li...@harbaum.org: Hi, sending this request: PUT /api/0.6/changeset/create HTTP/1.1 Authorization: Basic x User-Agent: osm2go-libcurl/0.6.14 Host: api06.dev.openstreetmap.org Accept: */* Content-Length: 163 ?xml version=1.0 encoding=UTF-8? osm changeset tag k=created_by v=osm2go v0.6.14/ tag k=comment v=Kommentar/ /changeset /osm i either get an internal server error 500 or no reply at all. What is wrong with this request (despite the Auth i xxx'ed out)? Till ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] good way to do an automated import
2009/4/8 marcus.wolsc...@googlemail.com: Hello, I started writing the tool to do import of TMC-LocationCodeLists into OSM (will be used for Germany at first but there are lots of other countries with TMC-data so I try to make it generic and user-friendly). One very fundamental question has come up what is the best or prefered way to have the tool output it's changes? * It can download the current state of the changed entities and write an osmChange (full support of the changeset-comment+generator) http://wiki.openstreetmap.org/wiki/OsmChange * It can download the current state of the changed entities and write a josm-file (could be easy to review) http://wiki.openstreetmap.org/wiki/JOSM_file_format For the UK NaPTAN import, I've used a mixture of these two. I've used the JOSM format for any initial bulk imports using the perl script. I've also tweaked a few nodes which I messed up on the original import of a region using the osmChange format to modify the nodes that had been uploaded in error. * It can upload it's changes directly to the API (no review) I would like to be able to run it, then review the changes it wants to make in an editor and only apply them if a large enough sample looks fine. I also need to deal with users changing entities between the time I download them and I upload my changes. Should I make this one large changeset or one changeset per type (roads, segments, points) or one changeset per imported entity (e.g. a motorway, some segments and a number of points)? This is something I've yet to tackle, but will have to in order to merge fields I missed from the original import by accident. I will have my tool store localy what elements have already been imported and would like it to store the IDs assigned to them by the API0.6 and the changeset-id (in case I need to rollback something later). How could I do that? I use the bulk_upload.pl script, it stores the original and new ids of files in its own file format, the dumper tool can output this list to a Old: New style output which I then parsed to modify the data as required. Marcus ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Server 0.6 doesn't answer ...
I've done a quick search through the server's log, and can find 401 and 500 responses both logged in the apache log. The rails log only shows 401 responses and not the 500s, so there's something odd happening between apache and rails. However, other requests to this method this evening have been functioning correctly according to the logs. 2009/4/8 Till Harbaum / Lists li...@harbaum.org: Hi, sending this request: PUT /api/0.6/changeset/create HTTP/1.1 Authorization: Basic x User-Agent: osm2go-libcurl/0.6.14 Host: api06.dev.openstreetmap.org Accept: */* Content-Length: 163 ?xml version=1.0 encoding=UTF-8? osm changeset tag k=created_by v=osm2go v0.6.14/ tag k=comment v=Kommentar/ /changeset /osm i either get an internal server error 500 or no reply at all. What is wrong with this request (despite the Auth i xxx'ed out)? Till ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Atom feed kind of thing
The OSMapper tool over at itoworld.com provides RSS feeds for edits to a defined area, if this is what you want to achieve. 2009/4/1 paul youlten p...@yellowikis.org: Full disclosure: I am not a dev but I come in peace. After a few days of struggling to parse the http://planet.../minute files into something useful with my childlike python skills and the incomprehensible SAX I was wondering if it might be possible to swap the /minute files for some sort of Atom feed that I can get Universal Feedparser to open. Ideally this would allow me to do so with something like: http://planet.openstreetmap.org/since_time:200904011535 let me know what you think... maybe there is some technical overhead that I don't understand. Paul Youlten Tel: +44(0) 7814 517 807 -- Tel: +44(0) 7814 517 807 ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] WMS Overlay Disappears
This is more suited to the OpenLayers list, but at a guess it's because of an incorrect maxResolution setting on the WMS layer, they default to the Map, or if that's not set, auto-generated not always successfully. Setting up the Map object as shown here should be the first step to getting the overlay to display. http://wiki.openstreetmap.org/wiki/OpenLayers_Simple_Example#Instructions 2009/3/30 Andrew Ayre a...@britishideas.com: Hi! I am generating a map using OpenLayers with an OSM base map and a WMS overlay. At the backend I am running GeoServer 1.7.3 with PostGIS. I can view my WMS data fine in the client in GeoServer and in uDig. However when I overlay it on my OpenLayers map it disappears at nearly all the zoom levels. Here is a demo: http://www.britishideas.com/osm When you load this you can see a black dot over southern Arizona. This is my overlay. When you zoom in it disappears. Any ideas what I am doing wrong? thanks, Andy -- Andy PGP Key ID: 0xDC1B5864 ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Cannot render tiles using Mapnik: Bad file descriptor
It could be a missing file thats referenced from within the osm.xml stylesheet. Check all of the external coastline shapefile datasources, as well as icon files are present. 2009/3/17 Udo Giacomozzi udo@nova-sys.net: UG My modified Python script to only render the specified area: UG http://paste.debian.net/30753/ Sorry, here is the correct version: http://paste.debian.net/30757/ ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Bulk downloading of Mapnik tiles
2009/3/16 Stephan Plepelits sk...@xover.htu.tuwien.ac.at: On Mon, Mar 16, 2009 at 08:34:19PM +0100, Chris Browet wrote: Probably not, because lots of the tiles would need to be rendered especially for you. _ t_ i_ l_ e_ s_ ._ o_ p_ e_ n_ s_ t_ r_ e_ e_ t_ m_ a_ p_ ._ o_ r_ g basically only renders tiles that are looked at at all, so bulk-requesting areas will force large areas to render to the highest detail. Not true, AFAIK. Tiles are rendered as a whole once a week. I think there is a confusion with t...@h (_ t_ a_ h_ ._ o_ p_ e_ n_ s_ t_ r_ e_ e_ t_ m_ a_ p_ ._ o_ r_ g) No, it's true. The tiles are rendered on demand, using mod_tile. So if nobody looks at a tile, it's not being rendered. Rendering everything to the highest detail would take awful long. Every Wednesday the database is updated to the newest version, from that time on you get new tiles (or if the load is to high still an old version or no picture if it has never been rendered before). greetings, Stephan Still not quite. It's updated hourly now. And I had a feeling that it updated larger 8x8 metatiles at a time. I had a feeling that it cascaded down zoom levels, but it doesn't seem to be documented if so. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] GSoC'09
On 13/03/2009, rajan vaish vaish.ra...@gmail.com wrote: Hi, I am Rajan,a CS major from India.I interned online for One Laptop per Child creating a Geography teaching tool using GeoRSS,MapServer and OpenLayers in summer'08. I am really looking forward to participate and work for OSM this year and there are few things of my interest on which I would like to work .. 2 of which have already been posted . 1-OSM for visually impaired (HTML header tags as per W3C guidelines can be done and source-destination pair can be set,which result in direction,something like MapQuest by AOL such that its very supportive to Screen Readers like JAWS --- I am currently working on a research based analysis of an Email client for visually impaired for ASSETS'09 mentored by a Researcher from IBM ). This'd be good, afaik, nobody in the OSM community has yet done something like this. 2-JOSM History Support . Has been lacking for several years now, visualisation of historical data is something that the project severly lacks. 3-OSM/Slippy maps with Markers (i.e A window opens on clicking a particular spot with more information - something implemented on OpenLayers using GeoRSS and very common on Google maps ) . Very easily done with OpenLayers, so much existing work exists that it'd be pointless to do a GSoC on this. I am a newbie but very fast learner ,it has been just sometime since I have been browsing through OSM and really keen to work on it. Looking forward to listen from interested mentors ,so that can discuss further issues and design the implementation model for any of these 3 ideas mentioned. Thank you, Rajan http://linkedin.com/in/rajanvaish -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] NAPTAN bus stop database
This was mostly being coordinated on talk-transit and the wiki http://wiki.openstreetmap.org/wiki/NaPTAN/Import, so far I've mostly tried to document the xml schema of the data, but not yet actually attempted coding a conversion tool. Things to be considered when importing and a basic outline of the process has been outlined on talk-transit. 2009/2/11 Brian Prangle bpran...@googlemail.com: Hi Our group of OSMers in Birmingham and the West Midlands have volunteered to be a test area for how to import this database whilst integrating with existing data for bus stops, and being able to cope with weekly (and eventually daily) updates. We've got one guy who can code and wants to have a crack at this but we'd like at least one more volunteer to assist in the coding Regards Brian ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] osm2pgsql support for relation type=boundary
I have no knowledge of c, osm2pgsql, geos or any of the other stuff, but I did have a hack at it a while back, and a very simple patch seemed to give me a usable result from my experimentations with the London borough relations. Also attached is a mapnik rendering style that I used to confirm it worked. Index: output-pgsql.c === --- output-pgsql.c (revision 11943) +++ output-pgsql.c (working copy) @@ -798,6 +798,10 @@ } } } +else if( strcmp( type, boundary ) == 0 ) +{ +make_polygon = 1; +} else { /* Unknown type, just exit */ 2009/2/10 sly (sylvain letuffe) li...@letuffe.org: Hi there, It may exists somewhere so please excuse me if it does. has anyone made a patch for osm2pgsql to support boundary relations import ? Has seen in here : http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/output-pgsql.c It looks (I said looks, I'm in no way a C++ expert) that only multipolygon and route type are supported/hard coded Before going deeper in C++ books, did anyone allready do it ? -- sly Sylvain Letuffe li...@letuffe.org qui suis-je : http://slyserv.dyndns.org ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ?xml version=1.0 encoding=utf-8? !DOCTYPE Map Map bgcolor=transparent srs=+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgri...@null +no_defs +over Style name=adminpoly Rule LineSymbolizer CssParameter name=stroke-colorblack/CssParameter /LineSymbolizer PolygonSymbolizer CssParameter name=fillred/CssParameter CssParameter name=fill-opacity0.5/CssParameter /PolygonSymbolizer /Rule /Style Style name=admintextRule TextSymbolizer name=name size=10 face_name=DejaVu Sans Bold halo_radius=1 fill=#000 / /Rule/Style Layer name=adminpoly status=on srs=+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgri...@null +no_defs +over StyleNameadminpoly/StyleName Datasource Parameter name=typepostgis/Parameter Parameter name=userthomas/Parameter Parameter name=dbnamegis/Parameter Parameter name=table (select way,name from planet_osm_polygon where boundary='administrative') as adminpoly/Parameter Parameter name=estimate_extentfalse/Parameter Parameter name=extent-20037508,-19929239,20037508,19929239/Parameter /Datasource /Layer Layer name=adminpoly status=on srs=+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgri...@null +no_defs +over StyleNameadmintext/StyleName Datasource Parameter name=typepostgis/Parameter Parameter name=userthomas/Parameter Parameter name=dbnamegis/Parameter Parameter name=table (select way,name from planet_osm_polygon where boundary='administrative') as adminpoly/Parameter Parameter name=estimate_extentfalse/Parameter Parameter name=extent-20037508,-19929239,20037508,19929239/Parameter /Datasource /Layer /Map ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] SVN rails_port questions: browse, relicensing
http://trac.openstreetmap.org/browser/sites/rails_port_branches/api06/app/controllers/browse_controller.rb 2009/2/3 Frederik Ramm frede...@remote.org: Hi, I was looking for the source code that is behind the www.openstreetmap.org/browse functionality but could not find it. I'm not a rails expert but I think that since I cannot find anything in config/routes.rb, it is probably not implemented in rails, is it? The reason is that I want to confirm my suspicion that it does not show keys with empty values, and if confirmed, fix that. Also, I read from the foundation meeting minutes that the code to handle the technical side of the planned license change has already been mostly completed (and that's the status from 6 weeks ago), and I wonder if that code could be made available for inspection in rails_port_branches? Bye Frederik ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] How reconstrucing a way from the history?
2009/1/13 Nevel Gandish koanti...@googlemail.com: 2009/1/13 Robert Vollmert rvollmert-li...@gmx.net: On Jan 12, 2009, at 13:45, Nevel Gandish wrote: And can I be sure that when moving a node caused a new history entry for the node and the way that both have the exact timestamp or might they differ by a few seconds? Just moving a node doesn't create a new history entry for the way, I think. Um, that seems true indeed. I just assumed it would. Nevel However, I think potlatch does work in this way.. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] 'My first OSM experiences' - PDA Mapping software and the OSM mobile binary protocol
2009/1/6 Oliver Ford o...@oliford.co.uk: marcus.wolsc...@googlemail.com wrote: I added some clarifications to the wiki-page on the Osmbin-format. (What it is intended for, what the status is and that it is not related to this osm mobile binary protocoll.) http://wiki.openstreetmap.org/wiki/OSMbin(file_format) Ok, that helps. You probably ought to say whether it relates to the 'OSM Binary Format' (http://wiki.openstreetmap.org/wiki/OSM_Binary_Format) I've also just noticed the wiki distinguishes between 'OSM_Mobile_Binary_Protocol' and 'OSM_Mobile_Binary_Protocol'. So now we have: 1) http://wiki.openstreetmap.org/wiki/OSM_Binary_Format 2) http://wiki.openstreetmap.org/wiki/OSM_Mobile_Binary_Format 3) http://wiki.openstreetmap.org/wiki/OSM_Mobile_Binary_Protocol 4) http://wiki.openstreetmap.org/wiki/OSMbin(file_format) Is it just me or would some general clarification/coordination be useful here? Oli Binary data formats has been thrashed over several times, often with different outcomes (as the number of proposed formats/protocols etc show). However, I'm pretty sure that your code would be welcomed by many in svn :) Of course, there's also probably a myriad of other open data formats for this sort of thing also -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] osm-editor/qt4/: qt3 dependency in qt4 package?
I believe this software is completely deprecated now, why bother packaging it? 2009/1/1 Joerg Ostertag (OSM Tettnang/Germany) openstreet...@ostertag.name: I found a qt3 dependency in the debian control File of svn.openstreetmap.org/applications/editors/osm-editor/qt4 I thought this is a qt4 package? Is this on purpose? grep libqt3 svn.openstreetmap.org/applications/editors/osm-editor/qt4/debian/control Build-Depends: debhelper ( 4.0.0), libqt3-dev, libwww-ssl-dev, libxmlrpc-c3-dev, libcurl3-dev -- Jörg (Germany, Tettnang) http://www.ostertag.name/ ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Broken objects rendering (angles and shape)
2008/12/25 Rafał Miłecki zaj...@gmail.com: 2008/12/25 Jozef Vince (freemap.sk) jozef.vi...@freemap.sk: Check your projection settings in JOSM - online maps are using Mercator, and your JOSM probably the default one - EPSG:4326 (lat lon projection i think) You're right. After switching to Mercator I see objects just like it's rendered on online map. The question is now which one projection is correct? I think gps tracks displayed using Mercator are much more like I expect them to be (now tracked parking has roads connected with right angle which is what I observed in real). If so, why JOSM doesn't use Mercator by default? Both projections are 'correct' in their own ways. Mercator preserves shape and angles much better than EPSG:4326 (plain lat/lon) does. JOSM used lat/lon by default for use with some WMS servers that only produced images in this projection. I'm not sure what the status of this is with the new wmsplugin. Would it be worthwhile reconsidering the default? -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] OpenLayers problem with latitude and longitude placement
2008/12/20 Ulf Lamping ulf.lamp...@googlemail.com: Thomas Wood schrieb: 2008/12/18 Ulf Lamping ulf.lamp...@googlemail.com: P.S.: The most pressing need to document is IMHO very certainly the various possible options that you can choose for the various constructors ... That's the purpose of the API reference. http://dev.openlayers.org/apidocs/files/OpenLayers-js.html Yes, of course :-) If you look a bit more detailed into the API docs, you'll often find something like (as an example the constructor for the GML layer): http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/GML-js.html#OpenLayers.Layer.GML.OpenLayers.Layer.GML --- OpenLayers. Layer.GML Load and parse a single file on the web, according to the format provided via the 'format' option, defaulting to GML. Parameters name{String} url {String} URL of a GML file. options {Object} Hashtable of extra options to tag onto the layer. --- So, the options are the difficult part of this call, and most likely the none obvious things you'll need to know when you want to make that call. But as a user of the API, you're really a bit stuck here. You can only try to find the specific source file or google for an example (and hope that it fits ;-). Being a developer myself, I know that writing an API documentation can be an annoying task. So please don't take this as a rant, but as an idea where a normal openlayers API user will probably often get stuck ... Regards, ULFL Yeah, the docs don't make it too clear that you can use options from the parent classes. Apparently (as of an email sent to the OL list today) they're moving to a new doc generator, so we're yet to see if there's any improvement. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] OpenLayers problem with latitude and longitude placement
2008/12/18 Ulf Lamping ulf.lamp...@googlemail.com: Thomas Wood schrieb: A particularly good guide to spherical mercator and projections with openlayers is at http://docs.openlayers.org/spherical_mercator/ OpenLayers has a history of very sparse documentation, but they're trying to fix that for their next release. Inheritance of bounds, max/min resolution/scale/numZoomLevels, from the Map object to individual Layers is fairly complex. In general, this type of Map options should match those of the base layer. In particular, see the last paragraph of the linked article. This is also quite a good OpenLayers overview tutorial http://workshops.opengeo.org/openlayers/intro/doc/en/ (as linked from docs.openlayers.org) Hi Thomas! Sorry for the late response! Both references were very interested reading - so I really recommend this to anyone going to start with openlayers :-) For example this teached my what the displayProjection parameter while creating a map is really used for :-) Anyway, the current documentation about the various parameters used in various functions is virtually none existing. Hopefully this will become better in the way you've described. Regards, ULFL P.S.: The most pressing need to document is IMHO very certainly the various possible options that you can choose for the various constructors ... That's the purpose of the API reference. http://dev.openlayers.org/apidocs/files/OpenLayers-js.html -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] [OSM-newbies] rake db:migrate error message
I got this error also when setting up the API on the dev server, I had to make the patch below. I've copied dev@ into the mail to try and get the attention of somebody who knows why this is required. Index: config/initializers/libxml.rb === --- config/initializers/libxml.rb (revision 12314) +++ config/initializers/libxml.rb (working copy) @@ -2,6 +2,6 @@ gem 'libxml-ruby', '= 0.8.3' require 'libxml' -LibXML::XML::Parser.register_error_handler do |message| +LibXML::XML::Error.set_handler do |message| raise message end 2008/12/14 Bernardo Elayda bela...@gmail.com: Hi, I'm running into an error problem when I'm trying to setup OSM. (1) I've reached the point where I'm supposed to run: rake db:migrate which I'm running from inside the top-level directory of my OSM rails installation. When I run the command, I get the following: ~/Projects/rails_port$ rake db:migrate (in /home/captain/Projects/rails_port) rake aborted! wrong number of arguments (0 for 1) (2) If I turn on --trace, I get the following additional info: ~/Projects/rails_port$ rake db:migrate --trace (in /home/captain/Projects/rails_port) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! wrong number of arguments (0 for 1) /home/captain/Projects/rails_port/config/initializers/libxml.rb:5:in `register_error_handler' (3) If I run the instructions in libxml.rb in irb, things fail at: LibXML::XML::Parser.register_error_handler What am I doing wrong? Have I skipped a step? My environment is as follows: Ubuntu 8.04 Ruby v1.8.7 RoR 2.0.2 mysql 5.0.51a OSM Rails port was checked out by: svn co http://svn.openstreetmap.org/sites/rails_port tia, Bernie ___ newbies mailing list newb...@openstreetmap.org http://lists.openstreetmap.org/listinfo/newbies -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] [Merkaartor] Crowd Sourced Testing of OSM 0.6 API
2008/12/13 Shaun McDonald sh...@shaunmcdonald.me.uk: On 13 Dec 2008, at 10:21, Tom Hughes wrote: Chris Browet wrote: Tom, I think Merkaartor must be doing something wrong vs. the http server you are using on the api06.dev server. Curl-ing the request to the server is ok, apparently Shaun's local is ok but I cannot get anything else than zero-sized to the api06 server from Merkaartor when PUT-ting. Would you be able to check the logs of the http server to check for relevant messages? The test server is nothing to do with me. The test server was setup by Thomas Wood (Edgemaster) and I also have read access to it. I've noticed that there is a changeset created by Merkaartor. http://api06.dev.openstreetmap.org/browse/changeset/31 and http://api06.dev.openstreetmap.org/browse/changeset/30 Therefore it seems that it can be done. It looks like it may be an issue with the way that passenger or Apache is dealing with the requests, which isn't showing up in any it the other editors or application servers. (When I'm running locally with webrick, I see now issue). Shaun This seems to be some sort of apache/passenger issue, looking through logs for one changeset create request: rails: [2008-12-14 01:51:26.887703 #23473] Processing ChangesetController#create (for 77.103.210.112 at 2008-12-14 01:51:26) [PUT] [2008-12-14 01:51:26.887831 #23473] Parameters: {action=create, controller=changeset} [2008-12-14 01:51:26.888296 #23473] Filter chain halted as [:authorize] rendered_or_redirected. [2008-12-14 01:51:26.888468 #23473] Completed in 0.00041 (2427 reqs/sec) | Rendering: 0.00017 (42%) | DB: 0.0 (0%) | 401 Unauthorized [http://api06.dev.openstreetmap.org/api/0.6/changeset/create] Apache access.log: 77.103.210.112 - - [14/Dec/2008:01:51:26 +] PUT /api/0.6/changeset/create HTTP/1.1 401 - - - Apache error.log: [Sun Dec 14 01:51:26 2008] [error] [client 77.103.210.112] (104)Connection reset by peer: ap_content_length_filter: apr_bucket_read() failed And finally a Wireshark session is reporting the request but no response from the server. I've googled it a little, but nothing useful turned up. I'll try a Passenger recompilation soon to see if anything odd happened in the upgrade, else I'll roll back to the 2.0.3 version which I seem to recall worked fine with Merkaartor. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Crowd Sourced Testing of OSM 0.6 API
I fixed the reported bug that was preventing any uploads (misconfiguration), and will see if I can get my head around the magic of the GPX importer soon... 2008/12/12 Andy Allan gravityst...@gmail.com: +1 - would be useful to just get the daemon running. Little point in *not* testing it! Cheers, Andy On Fri, Dec 12, 2008 at 11:24 AM, Andy Robinson (blackadder-lists) ajrli...@googlemail.com wrote: ok, but for testing aspects that use a GPX trace or interact with them (eg changing tags, downloading etc etc) we shouldn't we at least get a file or two into the database and the points available via the API? Its often the little things that get overlooked and cause hassle when new systems go live. Cheers Andy -Original Message- From: Shaun McDonald [mailto:sh...@shaunmcdonald.me.uk] Sent: 12 December 2008 10:42 AM To: Andy Robinson (blackadder-lists) Cc: 'OSM-Dev Openstreetmap' Subject: Re: [OSM-dev] Crowd Sourced Testing of OSM 0.6 API On 12 Dec 2008, at 09:59, Andy Robinson (blackadder-lists) wrote: Is there a daemon available for gpx import? I note a few have been uploaded but are queued. At present there is no daemon available for gpx import. The only known change to the GPX import is that it now remember whether you have set the public flag, hence not setting up the GPX import so far. Shaun No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.17/1844 - Release Date: 11/12/2008 8:58 PM ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] 0.6 database table creation script for mysql?
The migrations are for one version to the next, so when setting up, rails will start with the initial config then migrate all the data to the next version as it goes. I guess this is to maintain an easy way to upgrade older databases in the future. A full version of the rails schema (in the format it dumps) is at http://dev.openstreetmap.org/~edgemaster/schema.rb 2008/12/9 Maarten Deen [EMAIL PROTECTED]: Shaun McDonald wrote: For MySQL, you can setup rails api06 branch, and run rake db:migrate. And to comment on rails_port_branches/api06/db/migrate/001_create_osm_db.rb in svn: I thought the tags on nodes were put in a separate table? At least that's what I I understand from the 0.6 wiki page. But the ruby script still makes a node table with a tags column and there is no node_tags. Maarten ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] OpenLayers problem with latitude and longitude placement
2008/12/7 Andreas Titz [EMAIL PROTECTED]: Maarten Deen wrote: Thomas Wood wrote: The maxResolution option on the Map object is currently not doing anything at a guess, this is what is causing the vectors to disappear at z13 I've found out that the length of the vectors is affecting at which zoomlevels they disappear. The longer they are, the sooner they disappear. So it must be some kind of bug. It seems to be a clipping problem. If you zoom to the end of such a line, it will be visible even at zoom 18: http://www.maasluip.nl/ebt/test.html?lat=50.6lon=9.8zoom=18layers=B0T I guess, if you zoom to the center of the line, the endpoints are too far away. In that case OL assumes, that the line won't clip the actually shown map. HTH, Andreas Thanks for that example, I've passed it onto somebody who knows better than me about the rendering internals. Maarten: Permalinks will only work as expected if you conditionally set the center, eg: if(!map.getCenter()) { map.setCenter (lonLat, 6); } -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] OpenLayers problem with latitude and longitude placement
2008/12/8 Thomas Wood [EMAIL PROTECTED]: 2008/12/7 Andreas Titz [EMAIL PROTECTED]: Maarten Deen wrote: Thomas Wood wrote: The maxResolution option on the Map object is currently not doing anything at a guess, this is what is causing the vectors to disappear at z13 I've found out that the length of the vectors is affecting at which zoomlevels they disappear. The longer they are, the sooner they disappear. So it must be some kind of bug. It seems to be a clipping problem. If you zoom to the end of such a line, it will be visible even at zoom 18: http://www.maasluip.nl/ebt/test.html?lat=50.6lon=9.8zoom=18layers=B0T I guess, if you zoom to the center of the line, the endpoints are too far away. In that case OL assumes, that the line won't clip the actually shown map. HTH, Andreas Thanks for that example, I've passed it onto somebody who knows better than me about the rendering internals. Apparently this is a known issue: (17:54:18) crschmidt: Yeah, that's a side effect of very large geometries and too small of a resolution (17:54:30) crschmidt: specifically, geometries which are larger than the cairo rendering space are the problem here, I think (17:54:43) crschmidt: but I'd suggest that the issue be minimized slightly more and brought to the OL mailing list (17:55:33) crschmidt: there was a bunch of work in this regard in 2.7 that i can't even pretend to understand I'd recommend making up a simplified test case and taking it to the OpenLayers list. ([EMAIL PROTECTED] or [EMAIL PROTECTED]) -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] API 0.6 Test Server
We think we've now pinned down and fixed all osmosis-related errors. I've dropped the database and freshly reloaded it with the same extract. You'll need to create a new user account. Happy testing all! -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] OpenLayers problem with latitude and longitude placement
A particularly good guide to spherical mercator and projections with openlayers is at http://docs.openlayers.org/spherical_mercator/ OpenLayers has a history of very sparse documentation, but they're trying to fix that for their next release. Inheritance of bounds, max/min resolution/scale/numZoomLevels, from the Map object to individual Layers is fairly complex. In general, this type of Map options should match those of the base layer. In particular, see the last paragraph of the linked article. This is also quite a good OpenLayers overview tutorial http://workshops.opengeo.org/openlayers/intro/doc/en/ (as linked from docs.openlayers.org) 2008/12/7 Ulf Lamping [EMAIL PROTECTED]: Thomas Wood schrieb: A few things The maxExtent set on the Map object must be in the projection defined on the Map object The maxResolution option on the Map object is currently not doing anything at a guess, this is what is causing the vectors to disappear at z13 The units are not degrees on this map (but that option doesn't do anything important) Hi! Do you have any idea where I can find documentation about this? The OL examples don't explain this stuff a lot and I couldn't find anything in the API docs. Even a pointer to the specific sources would be helpful. I'm currently doing lot's of trial and error ... Regards, ULFL -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] API 0.6 Test Server
2008/12/1 Shaun McDonald [EMAIL PROTECTED]: I tried this devapi with JOSM 1097. When I try to add or change a Tag on a *node*, this doesn't work. A trcace with wireshark shows, that JOSM creats the changeset (successfully), than tries to upload and getting a HTTP/1.1 422 Unprocessable Entity in response. With some payload showing an exception: I am able to reproduce it on that server, but struggling to reproduce locally. Will continue looking into it tomorrow. There have been a couple of other bugs fixed in the process. Shaun We think we've now managed to track this issue down to osmosis' user account that it creates for mysql imports. The rails validation doesn't like something about it, but I'm not quite sure what yet. Manual database tweakings of the changeset/osmosis user have provided fruitless so far. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] API 0.6 Test Server
Hi all, I have set up a copy of the 0.6 API at http://api06.dev.openstreetmap.org/ as a testing server. The previous version that was originally at this address was quite neglected as the original maintainer had moved onto other projects. It currently contains a planet extract of the London area. I hope to keep it tracking svn closely. Many thanks to Shaun McDonald, Chris Schmidt and Brett Henderson for their help so far. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] What's the attitude on embedding [EMAIL PROTECTED] or informationfreeway slippy maps on own site?
2008/11/21 Nick Whitelegg [EMAIL PROTECTED]: Hello everyone, I have to admit I haven't done much work on Freemap lately - other commitments being a big factor but an equally important factor being that my server cannot cope well with an OSM database covering most of England. So I was considering an alternative approach, in which Freemap no longer focuses on providing custom OSM maps for walkers, but rather uses the standard OSM maps (probably [EMAIL PROTECTED]/osmarender, as they distinguish between tracks with private and public access which is vital for walkers) and focuses instead on providing a separate and more lightweight data layer which allows walkers to report problems with paths, contribute directions in difficult places, photos, etc. However this would obviously mean Freemap embedding [EMAIL PROTECTED] or informationfreeway.org maps in its own site. How acceptable would this be seen to be? Thanks, Nick Perfectly fine, providing the standard OSM attribution. In fact, the OpenLayers definition[0] was produced so people could do this easily! [0] http://www.openstreetmap.org/openlayers/OpenStreetMap.js -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] 'holes' in buildings
2008/11/21 Brian Quinion [EMAIL PROTECTED]: Hi, I'm running my own mapnik server and have noticed a strange problem with the rendering. I don't seem to be getting the holes in buildings (i.e. http://www.openstreetmap.org/?lat=52.212704lon=0.102523zoom=18layers=B000FTF ) instead I get 2 seperate polygons, both filled. This is using the standard OSM style sheet so I'm assuming I must be missing something to do with relations when doing the osm2pgsql conversion. At the moment I'm simply running: ./osm2pgsql -d osm uk-081119.osm.bz2 The OSM file from here: http://nick.dev.openstreetmap.org/downloads/planet/ although I've also tried the uk cloudmade file with the same results. Any suggestions? -- Brian You need to use osm2pgsql slim mode (-s), apparently relation parsing is broken in the in-memory mode, since it can't decide which ways are valuable enough to keep before parsing the relation. (Or something similar) -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] The allowed, but borked, duplicated tags again
The last entry in the history of that object is also quite interesting - http://www.openstreetmap.org/api/0.5/way/23950375/history I won't even begin to guess what happened. 2008/11/19 Stefan de Konink [EMAIL PROTECTED]: http://www.openstreetmap.org/api/0.5/way/23950375 Can anyone issues a query on his/her database again to find out if there are any more artifacts? Stefan ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Osmosis on Australia extract
2008/11/8 Richard Chirgwin [EMAIL PROTECTED]: Brett Henderson wrote: Perhaps the xml file has been truncated. Can you check the last lines of the file to make sure the xml file has been closed correctly? The program creating the file may have crashed half way through the file creation. Brett Brett, Bingo, I think. The file ends on a /way tag rather than an /osm tag. I'll let the generator of the file know about this, and see what happens if I add the /osm tag manually. Thanks! Richard It may be that some of the data is missing too, I'd recommend using the CloudMade Australia extract - http://downloads.cloudmade.com/australia ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Newbie question
2008/11/9 Ed Loach [EMAIL PROTECTED]: I've done a search for answers unsuccessfully, and while I'm a bit reluctant to ask while people are suggesting each other smell, I'm hoping for some non-personal advice. I recently added an area to the map tagged as landuse=construction. This doesn't render in Osmarender, so I looked into patching the stylesheets, which I did and manually rendering the relevant tile with the [EMAIL PROTECTED] client rendered it fine. I mentioned this on the [EMAIL PROTECTED] list, with a request for information about how to make this an official change. There doesn't seem to be an official procedure, and I was advised to either create a patch for someone to perhaps apply (which I've since sent to the [EMAIL PROTECTED] list) or get an SVN account if I was going to do such things on an ongoing basis (which I also now have, but couldn't work out how to apply my patch file - it complained about version issues or something when I tried). The standard procedure would be to create a ticket on trac, attach the patch to it, and assign to the osmarender component. Then optionally poke a relevant person often enough to get it committed. So, at the risk I'm going to be told I smell, can anyone point a newbie to SVN to a beginner's guide on how to either amend and commit changes, or apply patch files? I did a quick Google search and the first few results I read were less then helpful. Patch files are applied using the standard unix tools (patch), if on windows, there's probably an alternative. Make sure you check out the relevant tree from svn - svn co http://svn.openstreetmap.org/applications/ Edit the file. then svn ci file_path Make sure you svn up before your next edits. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] blank or undetailed area on the map
If there's no imagery available via Yahoo, then the only option that you have is the 'old fashioned' method of using a GPS device to collect the road data by hand. Good luck Ps, this thread isn't really suited for dev@ but talk@ 2008/10/10 Genis Pujol Hamelink [EMAIL PROTECTED]: Hello, If the area I want to edit using Potlatch is not covered (the coast line is there but the town is missing) is there a way to add a satellite image of the town? How can I include a missing or low detailed city into the map? Kind Regards, -- Genís ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Sphere / Web-Mercator
See also http://wiki.openstreetmap.org/index.php/Slippy_map_tilenames 2008/10/9 Dominik Spies [EMAIL PROTECTED]: Hi, I'm trying to implement some projection-code for a project of mine.. But I have some trouble with the Mercator projection. I understood that the projection we use in the slippy map is called Sphere / Web-Mercator, or EPSG:900913 or EPSG:3785 and is also used by Google, MS, Yahoo and so on.. So there is some description on MSDN (http://msdn.microsoft.com/en-us/library/bb259689.aspx) which says: y = 0.5 – log((1 + sin(Latitude)) / (1 – sin(Latitude))) / (4 * pi) on some other pages and wikipedia I found that one: y = 0.5 * ln( (1 + sin(Latitude)) / (1 – sin(Latitude)) ) where this is called the projection for GoogleMaps. So - this is not the same. I understand that the first one is somehow clipped to Lat +-85.05... and then scaled to 0 to 1. Huh, the second one. what scale is this? I can't figure out how to use it.. Can someone point me into the right direction? Something to read? Regards, Dominik ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Mapnik projection slightly wrong?
For webmap rendering we use the spherical mercator projection, which assumes the earth is spherical. Although it's not particularly accurate, the maps are good enough. I believe the spherical earth is assumed since it simplifies client-side calculations considerably. 2008/9/23 Jan-Benedict Glaw [EMAIL PROTECTED]: Hi! I just looked at applications/rendering/mapnik/generate_{image,tiles}.py and noticed the projection string: +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m [EMAIL PROTECTED] +no_defs +over `a' and `b' are ment to be the equatorial and polar radius of the earth. Since we all use GPS, I guess we want to use the WGS84 ellipsoid, where the polar radius (b) would be 6356752.315m, instead of 6378137.000m? Is this intentional? At least, osm2pgsql uses the same, so all of the users are identical :) MfG, JBG -- Jan-Benedict Glaw [EMAIL PROTECTED] +49-172-7608481 Signature of: The course of history shows that as a government grows, liberty the second : decreases. (Thomas Jefferson) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFI2QuEHb1edYOZ4bsRAmYjAJ0Rdae6biLZ1B2emcwx2dL59p9MAQCeLG0p IWx4BxFje0Vc7ECyb6iCDTk= =emfH -END PGP SIGNATURE- ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Reimplementation of the GPX importer
2008/9/23 Daniel Silverstone [EMAIL PROTECTED]: On Mon, 2008-09-22 at 23:46 +0100, Jon Burgess wrote: In gpx_parse_coord() - It would be worth checking to see if anyone has uploaded any files which use ',' as the decimal separator as is used in some locales. I've no idea if this is strictly a legal in a GPX file. My understanding of the XML schema is that it's not valid, but who knows for sure. Is there an easy way to grep this? I have no access to the OSM server filesystems. The GPX spec (http://www.topografix.com/GPX/1/1/#type_latitudeType) just refers to xsd:decimal, which states . only. (http://books.xmlschemata.org/relaxng/ch19-77057.html) -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Hosting documentation for OSM related projects
I'd prefer to see documentation on the wiki, to lower the entry barrier to potential documenters! The potlatch docs are quite worth a look, its subsection of the wiki is very clearly laid out and easy to use. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Editor ideas / default country outlining
On Thu, Jul 3, 2008 at 1:08 PM, Stefan de Konink [EMAIL PROTECTED] wrote: Chris Browet schreef: I'm afraid there is little chance to see that in Merkaartor (not worth the hassle vs. what we already have, IMHO). Maybe JOSM... Although now that I think of it, it could reasonably easily be done by generating static maps from OSM, thru Osmarender, only showing administrative areas... But still, there should be a real need for this... But isn't is much more easy? Something like downloading a static OSM file with administrative areas from a static webserver (one time) and present that in the main window. Just as indication for the user what a map looks like in the specific application. Stefan Please be sure to do it in such a way that newbies to OSM/Merkaartor don't get easily confused when they see admin data pre-loaded. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Tiled download of larger areas from the api
On Sat, 2008-06-14 at 17:06 +0300, Lauri Hahne wrote: 2008/6/14 Andy Robinson (blackadder-lists) [EMAIL PROTECTED]: bvh wrote: Sent: 13 June 2008 4:26 PM To: dev@openstreetmap.org Subject: [OSM-dev] Tiled download of larger areas from the api Timo Schlussler proposed a patch to merkaartor to work around the API limit on the download area. It basically divides the area in chunks acceptable for the api and downloads them one by one. Are there any objections from the server side of things to include this? I'd have thought that rather defeats the object of the current API restriction. But isn't this pretty much what Potlatch does when you scroll around.Or maybe the upcoming (?) Tile Data Server could be used for this. I don't think it can, it returns the data in a different format, in an odd projection, and the data is likely to be a bit old. -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Datamodel relation/member constraints
On Fri, May 30, 2008 at 9:21 PM, Stefan de Konink [EMAIL PROTECTED] wrote: Second question: Are there currently any constraints on relations members based on: 1) Sequence and/or 2) 'Reuse' So would it be allowed to do: type=node ref=1 role=from type=node ref=2 role=at type=node ref=1 role=at type=node ref=3 role=to Or is the second 1 not allowed? Next to this; can a user explicitly trust the sequence 1,2,1,3; or is this currently not guaranteed? Stefan If by ref you mean node id, then yes, the second 1 is not allowed. The API used to throw an unhandled exception back at you (500) if you did it because of an index constraint on the database. This has recently been fixed to actually return a nice error and stop corrupting the database. (Although it may not have been deployed yet) -- Regards, Thomas Wood (Edgemaster) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Openlayers cyclemap permalinks
On Sat, 2008-05-17 at 21:47 +0100, OJ W wrote: The cycle map seems to have the openlayers permalink bug [1] - is it possible to apply the latest openlayers corrections so that it uses lat/long in permalinks? Can someone from OL also reply to this, saying how to do the correction? [1] http://www.gravitystorm.co.uk/osm/?zoom=13lat=6781599.86453lon=-126905.18782layers=B00 6781599 degrees north is not the usual way of representing positions ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev As noted on IRC, this is not a bug, but a raw expression of the way we make our tiles, the numbers represent the distance in meters from the origin. I guess they're not strictly lats and lons, but its just OL's terms for the permalink. Attached is a modified copy of the map.js used on gravitystorm.co.uk which uses the projection features in OpenLayers 2.6, it sets displayProjection to fix the bug, and changes the existing reprojection functions to be wrappers around the OL code. It should just slot in, but is untested. It should also handle the existing permalinks semi-intelligently, assuming they're the old format if: a) The OL permalink control puts the position outside of the map's maxExtent (ie: sets centre to 0,0) b) lat, lon, zoom params are numbers (checked to be outside the expected range for lat lons) Hope this helps, Thomas Wood (Edgemaster) map.js Description: application/javascript ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev