Re: [OSM-talk] Rendering in a non-default language

2008-01-31 Thread Alex S.
Moshe Sayag wrote:
> Look at the various options: mapnik, kosmos, osmrenderer.
> 
> Don't you think it would be nice to have an "OSM studio" that will let 
> you do most of the thing visually, combining some tools (Josm, [EMAIL 
> PROTECTED], 
> etc.) with some nice dialogs, buttons and checkboxes?

Merkaartor appears to be aimed to be something like that.
http://wiki.openstreetmap.org/index.php/Merkaartor


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Rendering in a non-default language

2008-01-31 Thread Jon Burgess

On Thu, 2008-01-31 at 16:21 +, Chris Jones wrote:
> Moshe Sayag wrote:
> > Hi Everyone,
> >
> > I am interested in rendering a map with the street names and places 
> > printed in Hebrew.
> >
> > So for example, if there is a place with:
> > name=Jerusalem
> > name:en=Jerusalem
> > name:he=ירושלים
> >
> > I want "ירושלים" to be printed, and only if "name:he" is not 
> > specified, default to "name".
> >
> > Can this be achieved? How?
> This is exactly what I do for cyosm - http://sucs.org/~rollercow/cyosm/
> 
> For that I follow the steps listed at - 
> http://wiki.openstreetmap.org/index.php/Mapnik
> 
> 2 changes
> 
> 1) Build osm2pgsql From source but before you make this change...
> 
> $ svn diff
> Index: output-pgsql.c
> ===
> --- output-pgsql.c  (revision 6728)
> +++ output-pgsql.c  (working copy)
> @@ -72,6 +72,7 @@
>  {"military", "text", 1},
>  {"motorcar", "text", 0},
>  {"name", "text", 0},
> +{"name:cy",  "text", 0},
>  {"natural",  "text", 1},
>  {"oneway",   "text", 0},
>  {"place","text", 0},
> 
> 2) Before  you generate any tiles use the following sql to populate the 
> name field with name:cy if it exists
> 
> UPDATE planet_osm_line SET name = "name:cy" where "name:cy" is not null;
> UPDATE planet_osm_point SET name = "name:cy" where "name:cy" is not null;
> UPDATE planet_osm_polygon SET name = "name:cy" where "name:cy" is not null;
> UPDATE planet_osm_roads SET name = "name:cy" where "name:cy" is not null;
> 
> There may be an easier way... defiantly more elegant way, making 
> osm2pgsql do it all its self perhaps but I'm lazy and this works :)
> 

I've got this on my osm2pgsql TODO list.

Jon



___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Rendering in a non-default language

2008-01-31 Thread Moshe Sayag
I am a newbie in OSM and while I've read many wiki pages and some code I
realize that I still don't know much about the different tools and
configurations. I guess thats the upside and the downside of an opensource
project.
Look at the various options: mapnik, kosmos, osmrenderer.

Don't you think it would be nice to have an "OSM studio" that will let you
do most of the thing visually, combining some tools (Josm, [EMAIL PROTECTED], 
etc.) with
some nice dialogs, buttons and checkboxes?

And I assumed all I had to do is to modify the osmrenderer xslt somehow and
run [EMAIL PROTECTED] locally.

On Jan 31, 2008 6:21 PM, Chris Jones <[EMAIL PROTECTED]> wrote:

> Moshe Sayag wrote:
> > Hi Everyone,
> >
> > I am interested in rendering a map with the street names and places
> > printed in Hebrew.
> >
> > So for example, if there is a place with:
> > name=Jerusalem
> > name:en=Jerusalem
> > name:he=ירושלים
> >
> > I want "ירושלים" to be printed, and only if "name:he" is not
> > specified, default to "name".
> >
> > Can this be achieved? How?
> This is exactly what I do for cyosm - 
> http://sucs.org/~rollercow/cyosm/
>
> For that I follow the steps listed at -
> http://wiki.openstreetmap.org/index.php/Mapnik
>
> 2 changes
>
> 1) Build osm2pgsql From source but before you make this change...
>
> $ svn diff
> Index: output-pgsql.c
> ===
> --- output-pgsql.c  (revision 6728)
> +++ output-pgsql.c  (working copy)
> @@ -72,6 +72,7 @@
> {"military", "text", 1},
> {"motorcar", "text", 0},
> {"name", "text", 0},
> +{"name:cy",  "text", 0},
> {"natural",  "text", 1},
> {"oneway",   "text", 0},
> {"place","text", 0},
>
> 2) Before  you generate any tiles use the following sql to populate the
> name field with name:cy if it exists
>
> UPDATE planet_osm_line SET name = "name:cy" where "name:cy" is not null;
> UPDATE planet_osm_point SET name = "name:cy" where "name:cy" is not null;
> UPDATE planet_osm_polygon SET name = "name:cy" where "name:cy" is not
> null;
> UPDATE planet_osm_roads SET name = "name:cy" where "name:cy" is not null;
>
> There may be an easier way... defiantly more elegant way, making
> osm2pgsql do it all its self perhaps but I'm lazy and this works :)
>
> --
> Chris Jones, SUCS Admin
> http://sucs.org
>
>
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Rendering in a non-default language

2008-01-31 Thread Igor Brejc
Moshe wrote:

> I want "ירושלים" to be printed, and only if "name:he" is not 
> specified, default to "name".

Gregory wrote:

>
> If you just want an easy way to set up a very custom map (you'll need 
> to write all the styles from a very basic style sheet) then look at 
> this windows program:
> http://wiki.openstreetmap.org/index.php/Kosmos
>
What Moshe wants will be a bit of a hassle to define using Kosmos rules. 
But I've just added this "fallback to tag" feature to the todo list 
since I think it will be a useful thing to have.

Regards,
Igor

-- 
http://igorbrejc.net


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Rendering in a non-default language

2008-01-31 Thread Chris Jones
Moshe Sayag wrote:
> Hi Everyone,
>
> I am interested in rendering a map with the street names and places 
> printed in Hebrew.
>
> So for example, if there is a place with:
> name=Jerusalem
> name:en=Jerusalem
> name:he=ירושלים
>
> I want "ירושלים" to be printed, and only if "name:he" is not 
> specified, default to "name".
>
> Can this be achieved? How?
This is exactly what I do for cyosm - http://sucs.org/~rollercow/cyosm/

For that I follow the steps listed at - 
http://wiki.openstreetmap.org/index.php/Mapnik

2 changes

1) Build osm2pgsql From source but before you make this change...

$ svn diff
Index: output-pgsql.c
===
--- output-pgsql.c  (revision 6728)
+++ output-pgsql.c  (working copy)
@@ -72,6 +72,7 @@
 {"military", "text", 1},
 {"motorcar", "text", 0},
 {"name", "text", 0},
+{"name:cy",  "text", 0},
 {"natural",  "text", 1},
 {"oneway",   "text", 0},
 {"place","text", 0},

2) Before  you generate any tiles use the following sql to populate the 
name field with name:cy if it exists

UPDATE planet_osm_line SET name = "name:cy" where "name:cy" is not null;
UPDATE planet_osm_point SET name = "name:cy" where "name:cy" is not null;
UPDATE planet_osm_polygon SET name = "name:cy" where "name:cy" is not null;
UPDATE planet_osm_roads SET name = "name:cy" where "name:cy" is not null;

There may be an easier way... defiantly more elegant way, making 
osm2pgsql do it all its self perhaps but I'm lazy and this works :)

-- 
Chris Jones, SUCS Admin
http://sucs.org


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Rendering in a non-default language

2008-01-31 Thread Michael Collinson

At 04:14 PM 1/31/2008, Gregory wrote:

For the map of Israel I believe the contents of name and name:he should
be equal. Then you get what you want. If somebody wants a map with the
names in English, he'll have to do some extra effort.

Polyglot


I believe it's actually debated what language name= should be in, 
possibly settling on International English or at least 
osm.org is inteded to display international names.


There was a discussion on dealing with country names which is 
probably generally applicable. I believe the general consensus would 
be like this:


name=
name:he=
int_name=


Anyway, I think it's good to encourage lots of different language maps.


+1

Mike
Stockholm




___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Rendering in a non-default language

2008-01-31 Thread Martijn van Oosterhout
On Jan 31, 2008 1:07 PM, Moshe Sayag <[EMAIL PROTECTED]> wrote:
> Hi Everyone,
>
> I am interested in rendering a map with the street names and places printed
> in Hebrew.
>
> Can this be achieved? How?

Absolutly. For anyone with a mapnik install it's easy to add. The NL
tileserver runs two extra languages. You just need to convince someone
with a mapnik install to add your layer.

Have a nice day,
-- 
Martijn van Oosterhout <[EMAIL PROTECTED]> http://svana.org/kleptog/

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Rendering in a non-default language

2008-01-31 Thread Gregory
>
> For the map of Israel I believe the contents of name and name:he should
> be equal. Then you get what you want. If somebody wants a map with the
> names in English, he'll have to do some extra effort.
>
> Polyglot
>

I believe it's actually debated what language name= should be in, possibly
settling on International English or at least osm.org is inteded to display
international names.

Anyway, I think it's good to encourage lots of different language maps.
Someone already made a version of OSM displaying Welsh names from name:cy
(and falling back on name).

To set up your own render and online-map, there are lots of details from
this page:
http://wiki.openstreetmap.org/index.php/Develop

If you just want an easy way to set up a very custom map (you'll need to
write all the styles from a very basic style sheet) then look at this
windows program:
http://wiki.openstreetmap.org/index.php/Kosmos

-- 
Gregory
[EMAIL PROTECTED]
http://www.livingwithdragons.com
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Rendering in a non-default language

2008-01-31 Thread Jo
Moshe Sayag wrote:
> Hi Everyone,
>
> I am interested in rendering a map with the street names and places 
> printed in Hebrew.
>
> So for example, if there is a place with:
> name=Jerusalem
> name:en=Jerusalem
> name:he=ירושלים
>
> I want "ירושלים" to be printed, and only if "name:he" is not 
> specified, default to "name".
>
> Can this be achieved? How?
For the map of Israel I believe the contents of name and name:he should 
be equal. Then you get what you want. If somebody wants a map with the 
names in English, he'll have to do some extra effort.

Polyglot

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk