[OSM-dev] Tool to convert TMC LCL into OSM -ways and nodes

2009-03-31 Thread marcus.wolschon
I just wanted to let you know that in the process of implementing TMC-support for Traveling Salesman (http://travelingsales.sourceforge.net) I just wrote a tool to * take a TMC LocationCodeList and * output an OSM-file with all the points as nodes and all the segments as ways. I'm planning to

Re: [OSM-dev] JOSM and API 0.6

2009-03-31 Thread Frederik Ramm
Hi, marcus.wolsc...@googlemail.com wrote: By default the config-setting osm-server.additional-versions is not set at all, thus it only accepts 0.5. You have to manually set osm-server.additional-versions to 0.6 to accept both. That is only possible with a text-editor or in advanced-settings

Re: [OSM-dev] Potlatch - Richard... I know

2009-03-31 Thread 80n
On Tue, Mar 31, 2009 at 5:20 AM, Stefan de Konink ste...@konink.de wrote: I really wonder, considering the claims of the software that I am using right now, if the API 0.6 upgrade adds referential integrity at 10x the cost I see now, boy, that will be unworkable, considering that this is

Re: [OSM-dev] Potlatch - Richard... I know

2009-03-31 Thread Marc Schütz
Use as delimiter, (since it can never be used in key or value tag) I'm pretty sure it can; AFAIK there are no limitations on what may occur in keys and values (besides NUL). -- Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!*

Re: [OSM-dev] country boundary polygons

2009-03-31 Thread Andy Deakin
Hi, No major breakthrough here, but if anyone is interested in a quick and dirty 'what country is lat,lon in' I have created a simple method. Lookups have been taking about 0.2 seconds, and it involves a binary lookup file (25MB) at 1/20th of a degree resolution. Boundaries need further

Re: [OSM-dev] country boundary polygons

2009-03-31 Thread marcus.wolschon
Hello Andy. Have you looked at how I did this in: http://travelingsales.svn.sourceforge.net/viewvc/travelingsales/trunk/osmnavigation/src/org/openstreetmap/travelingsalesman/navigation/traffic/ it is documented here:

Re: [OSM-dev] Potlatch - Richard... I know

2009-03-31 Thread Stefan de Konink
Marc Schütz wrote: Use as delimiter, (since it can never be used in key or value tag) I'm pretty sure it can; AFAIK there are no limitations on what may occur in keys and values (besides NUL). We are running an XML system, that prohibits the entry of lessthan and greaterthan in plain

Re: [josm-dev] geotiffs in josm

2009-03-31 Thread Mattias Dalkvist
My gut feeling would be to have an ortho image plugin that creates a layer of its own, and then you can right-click on the layer to make it load images. - Or is this so similar to WMS that it should actually be put in the WMS layer? Currently it creates a new layer for every image, as this

Re: [OSM-dev] Potlatch - Richard... I know

2009-03-31 Thread Marc Schütz
Am Dienstag 31 März 2009 15:33:24 schrieb Stefan de Konink: Marc Schütz wrote: Use as delimiter, (since it can never be used in key or value tag) I'm pretty sure it can; AFAIK there are no limitations on what may occur in keys and values (besides NUL). We are running an XML system,

Re: [OSM-dev] Potlatch - Richard... I know

2009-03-31 Thread Matt Amos
On Tue, Mar 31, 2009 at 2:33 PM, Stefan de Konink ste...@konink.de wrote: Marc Schütz wrote: Use as delimiter, (since it can never be used in key or value tag) I'm pretty sure it can; AFAIK there are no limitations on what may occur in keys and values (besides NUL). We are running an XML

Re: [OSM-dev] Potlatch - Richard... I know

2009-03-31 Thread Stefan de Konink
Matt Amos wrote: On Tue, Mar 31, 2009 at 2:33 PM, Stefan de Konink ste...@konink.de wrote: Marc Schütz wrote: Use as delimiter, (since it can never be used in key or value tag) I'm pretty sure it can; AFAIK there are no limitations on what may occur in keys and values (besides NUL). We

Re: [OSM-dev] Potlatch - Richard... I know

2009-03-31 Thread Matt Amos
2009/3/31 Stefan de Konink ste...@konink.de: So if I use 'as char' to be a delimiter for the to uniquely sorted list, I can after this operation use 'as char' to split it? no, because the xml tag k=lt;taggt; v=lt;valquot;gt;/ is decoded into k=tag, v=val\ (using C escaping). a form of

Re: [OSM-dev] Potlatch - Richard... I know

2009-03-31 Thread Stefan de Konink
Matt Amos wrote: if this is really annoying you that much, please take a holiday for 3 weeks and come back. the referential integrity, tagging and other problems you're having to deal with will be gone* and the world will be a happier place! * hopefully. i guarantee nothing ;-) As written

Re: [OSM-dev] Potlatch - Richard... I know

2009-03-31 Thread 80n
On Tue, Mar 31, 2009 at 2:41 PM, Stefan de Konink ste...@konink.de wrote: 80n wrote: On Tue, Mar 31, 2009 at 5:20 AM, Stefan de Konink ste...@konink.demailto: ste...@konink.de wrote: I really wonder, considering the claims of the software that I am using right now, if the API 0.6

Re: [OSM-dev] Potlatch - Richard... I know

2009-03-31 Thread Matt Amos
On Tue, Mar 31, 2009 at 4:11 PM, 80n 80n...@gmail.com wrote: Let me see if I understand correctly what you are saying.  You think that the currently proposed migration from the old server and old schema to the new server with a new schema that includes some referential integrity constraints

Re: [OSM-dev] Potlatch - Richard... I know

2009-03-31 Thread Stefan de Konink
Matt Amos wrote: On Tue, Mar 31, 2009 at 4:11 PM, 80n 80n...@gmail.com wrote: Let me see if I understand correctly what you are saying. You think that the currently proposed migration from the old server and old schema to the new server with a new schema that includes some referential

Re: [OSM-dev] Potlatch - Richard... I know

2009-03-31 Thread Stefan de Konink
Stefan de Konink wrote: The following ways (79) are broken: 8171646 The above way seems to work now again. way id=8171646 visible=false timestamp=2009-03-31T15:36:33+01:00 user=TomH/ Thanks for that; could you see what was wrong with the server? Stefan

Re: [OSM-dev] Cluebat - Stefan... I know (was Re: Potlatch - Richard... I know)

2009-03-31 Thread Stefan de Konink
Richard Fairhurst wrote: Stefan de Konink wrote: Could anyone with knowledge in ruby *pretty please* take a look at the source code and invent some wheel that Potlatch will never 'reupdate' duplicate k/v-pairs by itself. Could you _please_ tell me, given that it has been explained to you

Re: [OSM-dev] Potlatch - Richard... I know

2009-03-31 Thread 80n
On Tue, Mar 31, 2009 at 4:26 PM, Matt Amos zerebub...@gmail.com wrote: On Tue, Mar 31, 2009 at 4:11 PM, 80n 80n...@gmail.com wrote: Let me see if I understand correctly what you are saying. You think that the currently proposed migration from the old server and old schema to the new

[OSM-dev] database schema

2009-03-31 Thread Pierre-André Jacquod
Hi, After some mapping, I am starting to have a look at the programming side of OSM. Just a question about the Database. If I understood what I read under SVN ( http://svn.openstreetmap.org/sites/rails_port/db/migrate/ currently Revision 14372) and the wiki

Re: [OSM-dev] database schema

2009-03-31 Thread Matt Amos
2009/3/31 Pierre-André Jacquod pjacq...@alumni.ethz.ch: After some mapping, I am starting to have a look at the programming side of OSM. Just a question about the Database. awesome :-) If I understood what I read under SVN ( http://svn.openstreetmap.org/sites/rails_port/db/migrate/  

Re: [OSM-dev] Potlatch RichardF: Sorry

2009-03-31 Thread Stefan de Konink
Stefan de Konink wrote: Could anyone with knowledge in ruby *pretty please* take a look at the source code and invent some wheel that Potlatch will never 'reupdate' duplicate k/v-pairs by itself. Today RichardF informed me that 'this' feature exists for Potlatch and therefore the problems

Re: [OSM-dev] database schema

2009-03-31 Thread Iván Sánchez Ortega
El Martes, 31 de Marzo de 2009, Pierre-André Jacquod escribió: [...] is true that the nodes will still keep the key/val tag within the node's table as text DB column, and will not have a separated table / entry for that? (I am speaking with API 0.6 [...]) I have a local installation of 0.6,

Re: [OSM-dev] database schema

2009-03-31 Thread Shaun McDonald
On 31 Mar 2009, at 17:29, Pierre-André Jacquod wrote: By the way, would it be possible to setup the internet page in order to see the date / time of file commit? As hint about the accuracy of the entry? http://trac.openstreetmap.org/browser/sites/rails_port_branches/api06/

[OSM-dev] 0.6 on PostgreSQL

2009-03-31 Thread Brett Henderson
Hi All, From recent posts on this list it looks likely that the 0.6 API will use a PostgreSQL database. I'll need to update osmosis to support it sometime between now and April 16th. How do I go about setting it up? Does it use similar rake db:migrate commands to the mysql schema? I

Re: [OSM-dev] 0.6 on PostgreSQL

2009-03-31 Thread Brett Henderson
Okay, I should have checked the source code first. I'm guessing I need to modify db/database.yml and set the adapter to pgsql. And then compile the libmyosm library as explained in db/README. I'll try it out tonight. Brett Henderson wrote: Hi All, From recent posts on this list it looks

Re: [OSM-dev] 0.6 on PostgreSQL

2009-03-31 Thread Matt Amos
On Tue, Mar 31, 2009 at 10:07 PM, Brett Henderson br...@bretth.com wrote: Okay, I should have checked the source code first. I'm guessing I need to modify db/database.yml and set the adapter to pgsql.  And then compile the libmyosm library as explained in db/README. the adaptor is postgresql,

Re: [OSM-dev] 0.6 on PostgreSQL

2009-03-31 Thread Shaun McDonald
Hi Brett, I'm starting to write up the instructions for postgres at http://wiki.openstreetmap.org/wiki/OSM_Protocol_Version_0.6/postgres The adapter I'm using is postgresql I now have the automated builder using the postgres database: http://cruise.shaunmcdonald.me.uk/builds/api06-postgres

[OSM-dev] generate shapefiles

2009-03-31 Thread Andreas Weller
Hi! How do I generate an ESRI shapefile from the OSM data? I wish to supply a polygon or rectangle and get back the shapefile for that area... Is there any script I can use for this? Thanks and Regards, Andreas Weller ___ dev mailing list

Re: [OSM-dev] generate shapefiles

2009-03-31 Thread Iván Sánchez Ortega
El Miércoles, 1 de Abril de 2009, Andreas Weller escribió: Hi! How do I generate an ESRI shapefile from the OSM data? I wish to supply a polygon or rectangle and get back the shapefile for that area... Is there any script I can use for this?

Re: [OSM-dev] generate shapefiles

2009-03-31 Thread Frederik Ramm
Hi, Andreas Weller wrote: How do I generate an ESRI shapefile from the OSM data? I wish to supply a polygon or rectangle and get back the shapefile for that area... There is no service that does that for you. You have to download the OSM data - either a small section through the Export tab

Re: [josm-dev] restrict mass-editing?

2009-03-31 Thread Jonathan Bennett
Frederik Ramm wrote: currently it is possible to select all and then set a tag for tens of thousands of objects at the same time. Do you think we should do an alert box saying you are editing 12.345 objects. are you sure you want this? - or maybe just disallow it altogether? Or remove

Re: [josm-dev] restrict mass-editing?

2009-03-31 Thread Gregory Williams
-Original Message- From: josm-dev-boun...@openstreetmap.org [mailto:josm-dev- boun...@openstreetmap.org] On Behalf Of Jonathan Bennett Sent: 31 March 2009 11:46 To: Frederik Ramm Cc: josm-dev Subject: Re: [josm-dev] restrict mass-editing? Frederik Ramm wrote: currently it is

Re: [josm-dev] restrict mass-editing?

2009-03-31 Thread Shaun McDonald
On 31 Mar 2009, at 11:45, Jonathan Bennett wrote: Frederik Ramm wrote: currently it is possible to select all and then set a tag for tens of thousands of objects at the same time. Do you think we should do an alert box saying you are editing 12.345 objects. are you sure you want this?

Re: [josm-dev] restrict mass-editing?

2009-03-31 Thread Jonathan Bennett
Matt Amos wrote: indeed. i don't think frederik was suggesting that features are removed, just warn the user that they might have selected more objects than they thought. Seriously though, can you think of a legitimate use for Select All in JOSM? If removing it would prevent some editing

Re: [josm-dev] restrict mass-editing?

2009-03-31 Thread Pieren
Seriously though, can you think of a legitimate use for Select All in JOSM? Yes. JOSM is also used to edit subset of data, either extracted and filtered from OSM by XAPI for instance or before importing bulk data into OSM (e.g. attach a tag source= to admin boundaries which are first

Re: [josm-dev] restrict mass-editing?

2009-03-31 Thread Gregory Williams
-Original Message- From: Matt Amos [mailto:zerebub...@gmail.com] Sent: 31 March 2009 12:09 To: Gregory Williams Cc: josm-dev Subject: Re: [josm-dev] restrict mass-editing? On Tue, Mar 31, 2009 at 11:55 AM, Gregory Williams gregory.willi...@purplegeodesoftware.co.uk wrote:

[josm-dev] restrict mass-editing?

2009-03-31 Thread Frederik Ramm
Hi, currently it is possible to select all and then set a tag for tens of thousands of objects at the same time. Do you think we should do an alert box saying you are editing 12.345 objects. are you sure you want this? - or maybe just disallow it altogether? Bye Frederik

Re: [josm-dev] restrict mass-editing?

2009-03-31 Thread Dirk Stöcker
On Tue, 31 Mar 2009, Frederik Ramm wrote: currently it is possible to select all and then set a tag for tens of thousands of objects at the same time. Do you think we should do an alert box saying you are editing 12.345 objects. are you sure you want this? Yes. Actually we ca do this at a

[josm-dev] geotiffs in josm

2009-03-31 Thread Mattias Dalkvist
Hi I have added written some code to allow geotiffs to be opened directly in josm. Where is the best place for this code? currently I have extended the OpenFileAction. See http://josm.openstreetmap.de/ticket/2372 The images I am using it for are 60 -80mb and cover 5 x 5km, the performance for

Re: [josm-dev] geotiffs in josm

2009-03-31 Thread Frederik Ramm
Hi, Mattias Dalkvist wrote: I have added written some code to allow geotiffs to be opened directly in josm. That is a much-asked-for feature, thank you. Where is the best place for this code? currently I have extended the OpenFileAction. My gut feeling would be to have an ortho image

Re: [josm-dev] geotiffs in josm

2009-03-31 Thread Michael Guzelevich
Thank you very much! Best regards, *Michael D. Guzelevich* On Tue, Mar 31, 2009 at 3:49 PM, Mattias Dalkvist dalkv...@gmail.comwrote: Hi I have added written some code to allow geotiffs to be opened directly in josm. Where is the best place for this code? currently I have extended the

Re: [josm-dev] restrict mass-editing?

2009-03-31 Thread Jonas Krückel (John07)
Pieren schrieb: Seriously though, can you think of a legitimate use for Select All in JOSM? Yes. JOSM is also used to edit subset of data, either extracted and filtered from OSM by XAPI for instance or before importing bulk data into OSM (e.g. attach a tag source= to admin boundaries

Re: [josm-dev] geotiffs in josm

2009-03-31 Thread Mattias Dalkvist
2009/3/31 Tobias Wendorff tobias.wendo...@uni-dortmund.de Hi Matthias, Mattias Dalkvist schrieb: I have added written some code to allow geotiffs to be opened directly in josm. Very nice! Could you also extend it to GeoJPEG and GeoPNG? Do you support worldfiles or only embedded

Re: [josm-dev] restrict mass-editing?

2009-03-31 Thread Pieren
On Tue, Mar 31, 2009 at 4:31 PM, Jonathan Bennett openstreet...@jonno.cix.co.uk wrote: Shaun McDonald wrote: In 3 weeks time you'll put the source tag on the changeset rather than on the way, node or relation. Good point! -- Jonathan (Jonobennett) I gave source tag as an example. It could

[josm-dev] [PATCH] Implement shop=alcohol

2009-03-31 Thread Marko Mäkelä
The attached patch makes shop=alcohol appear as shop=beverages in JOSM. According to http://wiki.openstreetmap.org/wiki/Tag:shop%3Dalcohol these two values of shop are equivalent, with the exception that shop=alcohol has a government license. In those countries where such a license is needed,

[josm-dev] [PATCH] Implement shop=general

2009-03-31 Thread Marko Mäkelä
The attached patch makes JOSM recognize shop=general. Please apply. Marko Index: core/presets/presets.xml === --- core/presets/presets.xml (revision 1521) +++ core/presets/presets.xml (working copy) @@ -2458,6 +2458,12 @@