Re: [OSM-dev] [i18n] Help needed to finish i18n of rails_port
Hi, I have added the globalize and click-to-globalize in the svn http://svn.openstreetmap.org/sites/rails_port_branches/i18n/. But today i tried everything to make sure i was using the correct version of these pluginsso as to solve the problem and commit the correct version in svn. So i talked with svenfuchs & context on #rubyonrails in IRC in the afternoon, from which i learnt that, till now i was using the version of globalize given on their website http://tinyurl.com/5tnzx7. But sven told me that the latest stuffs are now maintained in the github that is [http://github.com/search?q=globalize]. So now i'm using the globalize plugin from http://tinyurl.com/62u4qe and the for-2.0 branch of click-to-globalize plugin from http://tinyurl.com/55esjb. So now, although i haven't got "failed to load plugin" error thingy, but i am getting NoMemoryError in my old system occuring after using up the entire physical memory of 640 MB. Please note, my new system's (which had a healthy 2GB ram) motherboard crashed day before yesterday. So, the bottomline is, from my local system i can't get if the error http://makghosh.fedorapeople.org/osm/ctg-error.log is fixed or not. Shaun, can you please test that for me? Or, do you think it'll be possible to test this on dev.openstreetmap.org? As for the globalization the views, i'll try finish & commit them alongside by tommorow as i told earlier :) --Arindam On 7/11/08, Shaun McDonald <[EMAIL PROTECTED]> wrote: > Hi, > > Can you please add the globalize and click-to-globalize plugins to svn? > > I cannot seem to be able to get the click-to-globalize plugin to > install, due to the lack of some git plugin. > > Shaun > On 11 Jul 2008, at 06:33, Arindam Ghosh wrote: > >> Hi, >> >> >> As of now the globalize plugin gels more or less well in >> http://svn.openstreetmap.org/sites/rails_port_branches/i18n/ but >> please >> help me out in fixing the errors with click to globalize asap. I mean >> webrick is crashing badly whenever i start it after installing click >> to globalize plugin. From the error log it seems that other plugins >> fail to initiate but that happens after installing click to globalize. >> I did different things...including trying >> to port the rhtml to erb from this >> http://railstips.org/2007/3/4/renaming-rhtml-to-erb ...didn't do much >> good. >> >> I read in the common issues at >> http://lucaguidi.com/pages/click-to-globalize that "NOTICE: If you use >> the Rails 1.2.3 scaffold system, Click To Globalize doesn't works. >> Cleanup the code before to use." I guess there's the fix...but need >> some advice how to do that precisely..some kind of conflict with edge >> rails maybe. Because until webrick starts up, i can't test anything i >> do. As soon as it gets going, next steps seems comparatively >> easierjust use of <%= 'some text to localize'.t %> and also .loc >> in the views and putting a check the only a logged-in user can >> translate to round off things. Keeping this in mind, i'm in the >> mid-way of globalization of >> the views, and have commited some of them.will try to finish >> globalization of all the views by tommorow. So, only >> thing left is to figure out the problems with click to globalize. I >> actually require this because >> this plugin provides for the locale change controller and an ajax >> just-in-time editor for putting in the translations. >> >> The errors occur just after installing click-to-globalize as given >> here: http://makghosh.fedorapeople.org/osm/ctg-error.log >> >> The tarball with the initial plugin installs and basic setups is over >> here: http://makghosh.fedorapeople.org/osm/i18n-dev.tar.bz2 >> U: app/controller/application.rb >> U: config/environment.rb >> >> You see that how well it worked in the test app i started with before >> the exams: http://makghosh.fedorapeople.org/osm/click.tar.bz2 >> >> >> p.s.: i mailed this again, because the previous one didn't address the >> context properly :) >> >> >> --Arindam >> >> >> >> -- >> Arindam Ghosh >> [http://arindamghosh.wordpress.com] >> >> GPG Key: 0EE58920 >> Key Server: http://pgp.mit.edu >> >> ___ >> dev mailing list >> dev@openstreetmap.org >> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev > > -- Arindam Ghosh [http://arindamghosh.wordpress.com] GPG Key: 0EE58920 Key Server: http://pgp.mit.edu ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] OSM sandbox server
Well, thanks for letting me know. Could I have the addresses, please ;-) 2008/7/11 Sebastian Spaeth <[EMAIL PROTECTED]>: > Martijn van Oosterhout wrote: > > There was one on dev at some point. similarly there was a test server > > for 0.6 which could be used for the same purpose. > > There still is afaik > > > > > > > > > > ___ > dev mailing list > dev@openstreetmap.org > http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev > ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Installing the Rails port.
On Fri, 2008-07-11 at 16:22 +0100, Steve Hill wrote: > On Fri, 11 Jul 2008, Jon Burgess wrote: > > > There are a large number of components involved with the slippy map > and > > export tab. These all use data from the API, the Mapnik or > Osmarender > > tile servers and these all have different setup requirements. If you > > want more details then you need to be more specific on what exactly > you > > want to achieve. > > Currently, OpenPisteMap uses a fairly simple web page with OpenLayers > to > display the Mapnik tiles. My intention is to replace that web page > with > one that will give me search and export functions using my existing > Mapnik > tiles and PostGIS database. OpenPisteMap uses the OSM dataset, > imported > into PostGIS from the planet file about once a month and the Mapnik > tiles > are rendered from that database. Exporting with your own tiles should be straight forward. Several of the export formats use the Mapink Cairo renderer that was added about 6 months ago. You'll need a version of mapnik that includes these changes and is compiled with the appropriate Cairo libraries available. The search system uses another database which is held on gazeteer.openstreetmap.org. I guess this should be OK for you though. > Presumably the bits which use the OSM API can query the main API > server > (no need to run my own copy of the API)? > Yes but be aware that the API does not cover everything. For example all the pages with user related information expect to query data in the local database which isn't publicly accessible. You could start having your own users registering locally but you won't be able to directly access the information from the main site. Jon ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] OSM sandbox server
Martijn van Oosterhout wrote: > There was one on dev at some point. similarly there was a test server > for 0.6 which could be used for the same purpose. There still is afaik > > > ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Installing the Rails port.
On Fri, 11 Jul 2008, Jon Burgess wrote: > There are a large number of components involved with the slippy map and > export tab. These all use data from the API, the Mapnik or Osmarender > tile servers and these all have different setup requirements. If you > want more details then you need to be more specific on what exactly you > want to achieve. Currently, OpenPisteMap uses a fairly simple web page with OpenLayers to display the Mapnik tiles. My intention is to replace that web page with one that will give me search and export functions using my existing Mapnik tiles and PostGIS database. OpenPisteMap uses the OSM dataset, imported into PostGIS from the planet file about once a month and the Mapnik tiles are rendered from that database. Presumably the bits which use the OSM API can query the main API server (no need to run my own copy of the API)? - Steve xmpp:[EMAIL PROTECTED] sip:[EMAIL PROTECTED] http://www.nexusuk.org/ Servatis a periculum, servatis a maleficum - Whisper, Evanescence ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Installing the Rails port.
On Fri, 11 Jul 2008, Jon Burgess wrote: > If you want to run the rails code with no modification then you probably > need a database to keep rails happy but it does not need to have any > data in it. Ok, that makes sense, thanks. I just have 5 months until the ski season kicks off to get around to actually doing it now. :) - Steve xmpp:[EMAIL PROTECTED] sip:[EMAIL PROTECTED] http://www.nexusuk.org/ Servatis a periculum, servatis a maleficum - Whisper, Evanescence ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Installing the Rails port.
On Fri, 2008-07-11 at 15:50 +0100, Steve Hill wrote: > On Fri, 11 Jul 2008, Andy Robinson (blackadder-lists) wrote: > > > If you are planning to serve up a custom map then you need to render > your > > own tiles, and for that you will probably want a database backend > unless you > > plan to deliver only a very small area of the world. > > I'm already rendering Mapnik tiles for the OpenPisteMap website (so I > have the PostGIS database already). However, the OSM site has some > nice > features like the map exporter that I wouldn't mind adding so I was > trying to guage what I needed to do. > > >From what I understand from the wiki, the main OSM data set is in > MySQL, > but I wasn't quite able to work out if I actually needed the MySQL DB > for > the Ruby on Rails website to work, or if I could do without it. If you want to run the rails code with no modification then you probably need a database to keep rails happy but it does not need to have any data in it. The code which provides the exported Mapnik images in the CGI script at: http://trac.openstreetmap.org/browser/sites/tile.openstreetmap.org/cgi-bin/export If you've got a Mapnik rendering setup already then this should be simple to add, it just needs to be called like: /cgi-bin/export?bbox=#{bbox}&scale=#{scale}&format=#{format} Jon ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Installing the Rails port.
On Fri, 2008-07-11 at 15:13 +0100, Steve Hill wrote: > I'm a bit confused by what is actually required to run the website bit > of > OSM (not the API - just the slippymap viewer, export tab, etc) - does > it > need they MySQL database (with the planet imported into it), or can it > be > run without? There are a large number of components involved with the slippy map and export tab. These all use data from the API, the Mapnik or Osmarender tile servers and these all have different setup requirements. If you want more details then you need to be more specific on what exactly you want to achieve. Jon ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Installing the Rails port.
On Fri, 11 Jul 2008, Andy Robinson (blackadder-lists) wrote: > If you are planning to serve up a custom map then you need to render your > own tiles, and for that you will probably want a database backend unless you > plan to deliver only a very small area of the world. I'm already rendering Mapnik tiles for the OpenPisteMap website (so I have the PostGIS database already). However, the OSM site has some nice features like the map exporter that I wouldn't mind adding so I was trying to guage what I needed to do. >From what I understand from the wiki, the main OSM data set is in MySQL, but I wasn't quite able to work out if I actually needed the MySQL DB for the Ruby on Rails website to work, or if I could do without it. - Steve xmpp:[EMAIL PROTECTED] sip:[EMAIL PROTECTED] http://www.nexusuk.org/ Servatis a periculum, servatis a maleficum - Whisper, Evanescence ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Installing the Rails port.
If you are planning to serve up a custom map then you need to render your own tiles, and for that you will probably want a database backend unless you plan to deliver only a very small area of the world. The three rendered versions on the OSM website all use a different process, although both the default and the cycle layer use mapnik, but not the same database. The website itself runs with Ruby on Rails. The export, browse and search functions are all special components, the search facility for instance has a separate database interface. Doing a search on the wiki for the individual components will help explain how it all works under the hood. Cheers Andy >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >On Behalf Of Steve Hill >Sent: 11 July 2008 3:14 PM >To: dev@openstreetmap.org >Subject: [OSM-dev] Installing the Rails port. > > >I'm a bit confused by what is actually required to run the website bit of >OSM (not the API - just the slippymap viewer, export tab, etc) - does it >need they MySQL database (with the planet imported into it), or can it be >run without? > > - Steve >xmpp:[EMAIL PROTECTED] sip:[EMAIL PROTECTED] >http://www.nexusuk.org/ > > Servatis a periculum, servatis a maleficum - Whisper, Evanescence > > >___ >dev mailing list >dev@openstreetmap.org >http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev > >No virus found in this incoming message. >Checked by AVG - http://www.avg.com >Version: 8.0.138 / Virus Database: 270.4.7/1545 - Release Date: 10/07/2008 >6:43 PM ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
[OSM-dev] Installing the Rails port.
I'm a bit confused by what is actually required to run the website bit of OSM (not the API - just the slippymap viewer, export tab, etc) - does it need they MySQL database (with the planet imported into it), or can it be run without? - Steve xmpp:[EMAIL PROTECTED] sip:[EMAIL PROTECTED] http://www.nexusuk.org/ Servatis a periculum, servatis a maleficum - Whisper, Evanescence ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] OSM sandbox server
There was one on dev at some point. similarly there was a test server for 0.6 which could be used for the same purpose. Hope this helps, 2008/7/11 Chris Browet <[EMAIL PROTECTED]>: > Hi, > > As an editor developer, I often have to upload "dummy" data to the OSM > server, if only for regression testing. > I avoid upload trash, but then I have to do legit mapping rather than > debugging to test the app. > > Is there a "sandbox" OSM server somewhere I can use to do tests? > > - Chris - > > ___ > dev mailing list > dev@openstreetmap.org > http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev > > -- Martijn van Oosterhout <[EMAIL PROTECTED]> http://svana.org/kleptog/ ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Need advise for localization of Mapnik/Osmarender/Data search
2008/7/10 Arne Goetje <[EMAIL PROTECTED]>: > Now for Mapnik and Osmarender: we want to add a layer for each language > code on top of the default rendering layer (which uses English and the > normal 'name' and 'ref' tags), which uses the localized 'name:$lang' and > 'ref:$lang' tags and the 'name' and 'ref' tags as fallback. > > How do we do that? The the fy layer on the NL tileserver I have script that does a search/replace name -> name:fy and then adjust the query down the bottom to replace all the "name" columns with: coalesce("name:fy", "name") as "name:fy" Coalesce takes the first non-null value, which is what we want here. Note, it's probably also possible to just change the query down the bottom and leave the rest of the style alone. Hope this helps, -- Martijn van Oosterhout <[EMAIL PROTECTED]> http://svana.org/kleptog/ ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
[OSM-dev] osm2pgsql: diffs involving relations now work also
I've just committed the necessary changes to make diffs that change ways properly reconstruct the relations that refer to it. That just leaves the parking node problem which hasn't got a nice solution yet. I don't expect it to be a problem in the short term though. What this code needs now is lots of testing. To run this on a full planet dump you will need on the order of 40GB of disk space, possibly more (if anyone gets it to run to completion, could you post the disk used, thanks). Note it will probably take quite a while unless you have more than 1GB of memory and configure the --cache parameter to use it. 10 hours is not unusual. That said, testing can be done on a smaller scale. Pick two extract from the same areas and use osmosis to make a diff. Load the first file, then load the diff and compare it to the second file (somehow). To all those people at SOTM drinking beer, have fun and see if you can get some useful work done also! :) Have a nice day, -- Martijn van Oosterhout <[EMAIL PROTECTED]> http://svana.org/kleptog/ ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Hosting documentation for OSM related projects
Yep, probably a Wiki on the main server would be the better solution... Besides, I assume there are tools allowing a wiki to whatever integrated help system available 2008/7/11 Robin Harmsen <[EMAIL PROTECTED]>: > Perhaps it might be better to put such things in Wiki, as it allows much > easier editing. > Could be done on the Trac server or in the Wiki it self. > > Just my 2 cents... > > -Oorspronkelijk bericht- > Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Namens bvh > Verzonden: vrijdag 11 juli 2008 11:14 > Aan: dev@openstreetmap.org > Onderwerp: [OSM-dev] Hosting documentation for OSM related projects > > Hi, > > The current 'documentation' for merkaartor is just some bunch of static > html files that I host on my personal website. As a result it is > badly lacking. Sven Lanke approached me with the idea to keep the > documentation inside subversion, which then gets checked out on the > web server so that it is easier for people to make corrections > and additions. > > I personally like the idea very much, but while we are changing things > it might make sense to move the merkaartor documentation (or even > complete homepage) over to the openstreetmap website, since the > whole reason of being for merkaartor is OSM. > > I understand there is a high burder of work on the system administrators > of OSM so if this is considered a task they would rather not take on > I fully appreciate that! But if it would be possible to have the > some kind of site edited through svn and then hosted as a static > checkout on openstreetmap, then I am very interested. > > Please let me know what you think, so that I at least can get the > ball rolling on my personal website if this is currently not deemed > reasonable on OSM for whatever reason. > > cu bart > > ___ > dev mailing list > dev@openstreetmap.org > http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev > > > ___ > dev mailing list > dev@openstreetmap.org > http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev > ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Hosting documentation for OSM related projects
Perhaps it might be better to put such things in Wiki, as it allows much easier editing. Could be done on the Trac server or in the Wiki it self. Just my 2 cents... -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens bvh Verzonden: vrijdag 11 juli 2008 11:14 Aan: dev@openstreetmap.org Onderwerp: [OSM-dev] Hosting documentation for OSM related projects Hi, The current 'documentation' for merkaartor is just some bunch of static html files that I host on my personal website. As a result it is badly lacking. Sven Lanke approached me with the idea to keep the documentation inside subversion, which then gets checked out on the web server so that it is easier for people to make corrections and additions. I personally like the idea very much, but while we are changing things it might make sense to move the merkaartor documentation (or even complete homepage) over to the openstreetmap website, since the whole reason of being for merkaartor is OSM. I understand there is a high burder of work on the system administrators of OSM so if this is considered a task they would rather not take on I fully appreciate that! But if it would be possible to have the some kind of site edited through svn and then hosted as a static checkout on openstreetmap, then I am very interested. Please let me know what you think, so that I at least can get the ball rolling on my personal website if this is currently not deemed reasonable on OSM for whatever reason. cu bart ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
[OSM-dev] Hosting documentation for OSM related projects
Hi, The current 'documentation' for merkaartor is just some bunch of static html files that I host on my personal website. As a result it is badly lacking. Sven Lanke approached me with the idea to keep the documentation inside subversion, which then gets checked out on the web server so that it is easier for people to make corrections and additions. I personally like the idea very much, but while we are changing things it might make sense to move the merkaartor documentation (or even complete homepage) over to the openstreetmap website, since the whole reason of being for merkaartor is OSM. I understand there is a high burder of work on the system administrators of OSM so if this is considered a task they would rather not take on I fully appreciate that! But if it would be possible to have the some kind of site edited through svn and then hosted as a static checkout on openstreetmap, then I am very interested. Please let me know what you think, so that I at least can get the ball rolling on my personal website if this is currently not deemed reasonable on OSM for whatever reason. cu bart ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
[OSM-dev] OSM sandbox server
Hi, As an editor developer, I often have to upload "dummy" data to the OSM server, if only for regression testing. I avoid upload trash, but then I have to do legit mapping rather than debugging to test the app. Is there a "sandbox" OSM server somewhere I can use to do tests? - Chris - ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] [i18n] Help needed to finish i18n of rails_port
Hi, Can you please add the globalize and click-to-globalize plugins to svn? I cannot seem to be able to get the click-to-globalize plugin to install, due to the lack of some git plugin. Shaun On 11 Jul 2008, at 06:33, Arindam Ghosh wrote: > Hi, > > > As of now the globalize plugin gels more or less well in > http://svn.openstreetmap.org/sites/rails_port_branches/i18n/ but > please > help me out in fixing the errors with click to globalize asap. I mean > webrick is crashing badly whenever i start it after installing click > to globalize plugin. From the error log it seems that other plugins > fail to initiate but that happens after installing click to globalize. > I did different things...including trying > to port the rhtml to erb from this > http://railstips.org/2007/3/4/renaming-rhtml-to-erb ...didn't do much > good. > > I read in the common issues at > http://lucaguidi.com/pages/click-to-globalize that "NOTICE: If you use > the Rails 1.2.3 scaffold system, Click To Globalize doesn't works. > Cleanup the code before to use." I guess there's the fix...but need > some advice how to do that precisely..some kind of conflict with edge > rails maybe. Because until webrick starts up, i can't test anything i > do. As soon as it gets going, next steps seems comparatively > easierjust use of <%= 'some text to localize'.t %> and also .loc > in the views and putting a check the only a logged-in user can > translate to round off things. Keeping this in mind, i'm in the > mid-way of globalization of > the views, and have commited some of them.will try to finish > globalization of all the views by tommorow. So, only > thing left is to figure out the problems with click to globalize. I > actually require this because > this plugin provides for the locale change controller and an ajax > just-in-time editor for putting in the translations. > > The errors occur just after installing click-to-globalize as given > here: http://makghosh.fedorapeople.org/osm/ctg-error.log > > The tarball with the initial plugin installs and basic setups is over > here: http://makghosh.fedorapeople.org/osm/i18n-dev.tar.bz2 > U: app/controller/application.rb > U: config/environment.rb > > You see that how well it worked in the test app i started with before > the exams: http://makghosh.fedorapeople.org/osm/click.tar.bz2 > > > p.s.: i mailed this again, because the previous one didn't address the > context properly :) > > > --Arindam > > > > -- > Arindam Ghosh > [http://arindamghosh.wordpress.com] > > GPG Key: 0EE58920 > Key Server: http://pgp.mit.edu > > ___ > dev mailing list > dev@openstreetmap.org > http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Re: [OSM-dev] Need advise for localization ofMapnik/Osmarender/Data search
Arne Goetje schrieb: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > wolschon wrote: >> If you want an englich map, you should use >> "name:en_UK", fall back to "name:en" and then fall back to "name". >> "name" will give you the most common name, wich need not be english at >> all. > > well, we don't have any en_UK tags in Taiwan, so it would be :en with > fallback to 'name'. And if, then it would be en_US. However, the > transliterations actually cannot be called "English", because it has > nothing to do with English. It's just an aid for foreigners so that they > know how to pronounce the street names. And as I stated already, there > exist multiple different systems and revisions thereof to accomplish > that goal more or less. So, why not use name:zh_TW name:zh_TW-latin (the locally used transscription) name:zh_TW-hanyupinyin name:zh_TW-tongyongpinyin name:zh_TW-zhuyin ? ;-) ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev