Re: [OSM-talk-be] Carte du nucléaire (map of nuclear power plants) - from talk-fr mailing list

2011-04-11 Thread Benoit Leseul
Hi,

The cooling tower at Drogenbos has nothing to do with UCB. It really
is part of an Electrabel power plant, just not a nuclear one. The
technology involved is combined cycle gas turbine (CCGT) or "Turbine
Gaz-Vapeur" (TGV) in French.

I don't know how you should tag that, but there are a few other in
Belgium: http://www.electrabel.be/whoarewe/activities/generationfacilities.aspx

On Sun, Apr 10, 2011 at 22:20, Linus Able  wrote:
> A message on the mailing list talk...@openstreetmap.org presents a map of
> nuclear power plants  : http://www.leretourdelautruche.com/map/nuclear.html
> (ref : http://lists.openstreetmap.org/listinfo/talk-fr 10 april 2011)
> I have seen that it is OK for Tihange, but that  an UCB tower at Drogenbos
> is erroneously tagged as a nuclear reactor, and there is nothing about Doel
> !
> On OSM, i have just seen the following tags for the 3 reactors :
>     * generator:method: fission
>     * generator:source: nuclear
>     * power: generator
> I am not familiar at all with tags concerning power, and i am far from Doel
> and Mol, so is there somebody to help our french mapper ?
> linusable
> -
> Here follow an extract of my reply on the talk-fr list :
>  pour la Belgique, la carte mentionne 2 localisation.
> 1. Tihange :
> http://www.leretourdelautruche.com/map/nuclear.html?zoom=15&lat=50.53509&lon=5.27252&layers=B0TT OK
> (codé par http://www.openstreetmap.org/user/Oli-Wan)
> 2. Drogenbos :
> http://www.leretourdelautruche.com/map/nuclear.html?zoom=16&lat=50.80172&lon=4.30018&layers=B0TT
> Il s'agit d'une tour de refroidissement d'une entreprise chimique (UCB, mais
> qui a peut-être changé de dénomination)  --> il n'y a rien de nucléaire à
> cet endroit !
> Par contre, il y a une centrale à Doel (production électrique) :
> http://www.openstreetmap.org/?lat=51.32363&lon=4.25887&zoom=15&layers=M
> Il y a aussi le centre de recherche nucléaire à Mol (http://www.sckcen.be)
> avec un ancien réacteur. Il est envisagé d'y implanter un réacteur
> expérimental de nouvelle génération.
>  http://www.openstreetmap.org/?lat=51.22048&lon=5.0913&zoom=16&layers=M
> ref :
> http://fr.wikipedia.org/wiki/Liste_des_centrales_nucl%C3%A9aires_de_Belgique
> ___
> Talk-be mailing list
> Talk-be@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk-be
>
>

___
Talk-be mailing list
Talk-be@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-be


Re: [OSM-talk-be] 4th meeting STUK on 06 april 2011

2011-04-11 Thread Jo
I adapted the script quite extensively in the mean time. It takes into
account the language of the names (if possible) and it works quite well for
the bilingual situation of Brussels.

Of course, what it proposes in the edit box, is only a suggestion. It will
still turn all 'De' in 'de', which is probably not what you want when this
'De' is part of somebody's name. In that case, simply press the Cancel
button and it will not ask the question about streets with that name again.

What is more important than the specifics of what this script does though,
is that is now possible to code functionality in Python. Doing something
with a selection or with all the elements of a specific type. Adding the
actions to a list and then adding that list to the undoRedo buffer.

What I also found, is that it's best to start JOSM from within a command
prompt, or from a cmd-file:

"C:\Program Files (x86)\java\jre6\bin\java.exe" -jar -Xmx500m
"C:\Users\Jo\Downloads\josm-latest.jar"

That way Python print commands print to this command prompt and also when an
exception occurs (an error), it's possible to see what it's all about in
that output (and also in which line of the script it got stuck). At first we
were working 'in the dark', which is not very convenient.


#!/bin/jython
> #
> # Spell checking.py  - Helps to locate probable spell errors in name fields
> #
> from javax.swing import JOptionPane
> from org.openstreetmap.josm import Main
> import org.openstreetmap.josm.command as Command
> import org.openstreetmap.josm.data.osm.Node as Node
> import org.openstreetmap.josm.data.osm.Way as Way
> import org.openstreetmap.josm.data.osm.TagCollection as TagCollection
> import org.openstreetmap.josm.data.osm.DataSet as DataSet
>
> corrections = {'fr': [('Dr. ', 'Docteur '),('R. ', 'Rue '), ('Av. ',
> 'Avenue '), ('Bd. ', 'Boulevard '),
>   ('Sq.', 'Square'), ('Pl.', 'Place'),
>   (' De ', ' de '), (' Le ', ' le '), (' La ', ' la '),
> (' Du ', ' du '), (' Des ', ' des '), (' Les ', ' les '),
>   (' Au ', ' au '),(' Aux ', ' aux '),('À', 'à'),(' Den
> ',' den '), (" Sur ", " sur "),
>   (" D'"," d'"), (" L'"," l'"), ("' ","'"),
>   ("Ecole ","École "), ("Eglise", "Église"),
> ("Chateau", "Château"), ("Cable", "Câble"), ("General", "Général")],
>'nl': [(" Voor ", " voor "), (" Op ", " op "), (" Pour ", "
> pour "), (" Naar ", " naar "), (" Ter ", " ter "), (" En ", " en "), (" Van
> ", " van "),
>   ("'T ", "'t "), ("'S ", "'s "), ("-Ter-", "-ter-"),
> (" Het ", " het "),
>   (" Straat", "straat"), (" Weg", "weg"), (" Laan",
> "laan"), (" Steenweg", "steenweg"),
>   (" Baan", "baan"), ("Oudebaan", "Oude Baan"),
> ("Grotebaan", "Grote Baan"),
>   ("de Lijn", "De Lijn")]}
>
> commandsList = []
> streetnames = {}
>
> def getMapView():
> if Main.main and Main.main.map:
> return Main.main.map.mapView
> else:
> return None
>
> def myOwnCapitalize(word):
> # JOptionPane.showMessageDialog(Main.parent, word.decode('utf-8'))
> if word:
> return word[0].upper() + word[1:]
> else:
> return u""
>
> mv = getMapView()
>
> if mv and mv.editLayer and mv.editLayer.data:
> selectedNodes = mv.editLayer.data.getSelectedNodes()
> selectedWays = mv.editLayer.data.getWays()
> selectedRelations = mv.editLayer.data.getSelectedRelations()
>
> if not(selectedNodes or selectedWays or selectedRelations):
> JOptionPane.showMessageDialog(Main.parent, "Please select
> something")
> else:
> for way in selectedWays:
> for isoLang in ['nl', 'fr', '']:
> correctedName = result = u''
> if isoLang:
> nameColonIso = 'name:' + isoLang
> else:
> nameColonIso = 'name'
> if way.hasKey(nameColonIso):
> name=str(way.get(nameColonIso).encode('utf-8'))
> if name in streetnames:
> if streetnames[name] == 'ignore':
> continue
> else:
> correctedName = streetnames[name]
> else:
> Main.main.getCurrentDataSet().setSelected(way)
> # dummy = mv.editLayer.data.getSelected()
> #
> mv.zoomTo(Main.main.getEditLayer().data.getSelected())
> # JOptionPane.showMessageDialog(Main.parent,
> name.decode('utf-8'))
> for subname in name.split(";"):
> for word in subname.split(" "):
> if word:
> if "-" in word and len(word)>1:
> dashes = word.split("-")
>
>  

Re: [OSM-talk-be] 4th meeting STUK on 06 april 2011

2011-04-11 Thread Ben Laenen
Jo wrote:
> > (" Straat", "straat"), (" Weg", "weg"), (" Laan", "laan"), (" Steenweg", 
"steenweg"),(" Baan", "baan"), 

Ik zou voor deze een extra symbool invoegen als '$' die het einde van de 
string inhoudt, want ergens zullen er wel straten zijn met een naam die begint 
met bvb. "Weg" (en bij nader onderzoek zijn ze er ook echt: 
http://osm.org/go/0EhkEszZx-- ), en voor "baan" en "laan" zal het ook wel 
ergens bestaan.

Daarnaast is het nog altijd mogelijk dat die woorden apart móéten staan (al is 
de normale regel inderdaad aan elkaar, ongeacht of ze het splitsen op het 
naambord)


> > ("Oudebaan", "Oude Baan"),
> > ("Grotebaan", "Grote Baan"),

Met de deze moet je ook heel hard opletten, soms is het wel degelijk één 
woord:
http://osm.org/go/0EpSppcIj- en http://osm.org/go/0EpYj3b6Y--

Nuja, vanaf een regel niet voor álle namen geldt, lijkt het voor mij beter om 
die ertussenuit te halen. Er zullen toch mensen zijn die het gaan uitvoeren 
zonder nadenken, dus geef je hen beter geen kans.

Ben

___
Talk-be mailing list
Talk-be@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-be


Re: [OSM-talk-be] 4th meeting STUK on 06 april 2011

2011-04-11 Thread Jo
Zoiets kan heel gemakkelijk met regular expressions, misschien moest 'k die
toch maar gaan gebruiken.

Wat eruit komt, is slechts een suggestie. Zie het als een manier om
eventuele problemen met een naam te vinden, niet als een tool die op
absolute wijze voorschrijft hoe de naam had moeten zijn. Het blijft giswerk
met straatnamen, aangezien er zoveel mogelijkheden zijn. Bij twijfel wordt
de gebruiker geacht op Cancel te drukken, of op te zoeken hoe de straatnaam
correct gespeld wordt. In hoeverre is het verkeerd om zoiets uit te vissen
met Google, Googlemaps of 1207 of een straatnamenlijst van een gemeente?

Misschien moest 'k maar expliciet vermelden op die edit box, dat het script
niet de absolute waarheid verkondigt en dat het de bedoeling is, dat de
gebruiker z'n gezond verstand gebruikt, alvorens iets te wijzigen in de
database.

Nadat 'k dit script heb laten draaien, zoek 'k alle 'modified' op met search
en kijk 'k ze allemaal nog 's na.

Hopelijk zie je wel dat er al wat vooruitgang geboekt is en dat 'k toch een
beetje rekening heb gehouden met je opmerkingen van voordien. WIP (work in
progress...)

Polyglot

Op 11 april 2011 13:28 schreef Ben Laenen  het
volgende:

> Jo wrote:
> > > (" Straat", "straat"), (" Weg", "weg"), (" Laan", "laan"), ("
> Steenweg",
> "steenweg"),(" Baan", "baan"),
>
> Ik zou voor deze een extra symbool invoegen als '$' die het einde van de
> string inhoudt, want ergens zullen er wel straten zijn met een naam die
> begint
> met bvb. "Weg" (en bij nader onderzoek zijn ze er ook echt:
> http://osm.org/go/0EhkEszZx-- ), en voor "baan" en "laan" zal het ook wel
> ergens bestaan.
>
> Daarnaast is het nog altijd mogelijk dat die woorden apart móéten staan (al
> is
> de normale regel inderdaad aan elkaar, ongeacht of ze het splitsen op het
> naambord)
>
>
> > > ("Oudebaan", "Oude Baan"),
> > > ("Grotebaan", "Grote Baan"),
>
> Met de deze moet je ook heel hard opletten, soms is het wel degelijk één
> woord:
> http://osm.org/go/0EpSppcIj- en http://osm.org/go/0EpYj3b6Y--
>
> Nuja, vanaf een regel niet voor álle namen geldt, lijkt het voor mij beter
> om
> die ertussenuit te halen. Er zullen toch mensen zijn die het gaan uitvoeren
> zonder nadenken, dus geef je hen beter geen kans.
>
> Ben
>
___
Talk-be mailing list
Talk-be@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-be


Re: [OSM-talk-be] 4th meeting STUK on 06 april 2011

2011-04-11 Thread wannes
2011/4/11 Jo 

> Bij twijfel wordt de gebruiker geacht op Cancel te drukken, of op te zoeken
> hoe de straatnaam correct gespeld wordt. In hoeverre is het verkeerd om
> zoiets uit te vissen met



> Google, Googlemaps


Nee !


> of 1207


Nee !


> of een straatnamenlijst van een gemeente?
>

Ja (soms?)

-- 
wannes
___
Talk-be mailing list
Talk-be@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-be


Re: [OSM-talk-be] 4th meeting STUK on 06 april 2011

2011-04-11 Thread Jo
Op 11 april 2011 14:10 schreef wannes  het volgende:

> 2011/4/11 Jo 
>
>> Bij twijfel wordt de gebruiker geacht op Cancel te drukken, of op te
>> zoeken hoe de straatnaam correct gespeld wordt. In hoeverre is het verkeerd
>> om zoiets uit te vissen met
>
>
>
>> Google, Googlemaps
>
>
> Nee !
>
>
>> of 1207
>
>
> Nee !
>
>
>> of een straatnamenlijst van een gemeente?
>>
>
> Ja (soms?)
>
> Ik merk dat 'k m'n vraag verkeerd gesteld heb. Is dat Nee !, geen probleem,
of Neen!, NIET doen ?

mvg,

Jo
___
Talk-be mailing list
Talk-be@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-be


Re: [OSM-talk-be] 4th meeting STUK on 06 april 2011

2011-04-11 Thread wannes
2011/4/11 Jo 

> Op 11 april 2011 14:10 schreef wannes  het volgende:
>
> 2011/4/11 Jo 
>>
>>> Bij twijfel wordt de gebruiker geacht op Cancel te drukken, of op te
>>> zoeken hoe de straatnaam correct gespeld wordt. In hoeverre is het verkeerd
>>> om zoiets uit te vissen met
>>
>>
>>
>>> Google, Googlemaps
>>
>>
>> Nee !
>>
>>
>>> of 1207
>>
>>
>> Nee !
>>
>>
>>> of een straatnamenlijst van een gemeente?
>>>
>>
>> Ja (soms?)
>>
>> Ik merk dat 'k m'n vraag verkeerd gesteld heb. Is dat Nee !, geen
> probleem, of Neen!, NIET doen ?
>

Niet doen.
Omdat het niet mag: copyright, en omdat je dan mogelijks tegen de lamp loopt
door http://wiki.openstreetmap.org/wiki/Copyright_Easter_Eggs wat heel het
project in gevaar brengt.

Er staan wel degelijk fouten (al dan niet opzettelijk) in Google Maps.
Dit zijn geen straatnaamfouten, maar die zullen er ook wel zijn.
 - http://goo.gl/maps/M7vI : je kan niet van de Te Boelaarlei naar de
Morckhovenlei (android routing stuurt mij ook rond)
 - http://goo.gl/maps/mcfA : Gravinstraat, Borsbeekstraat en Gijselstraat:
de enkelrichtingen zijn omgedraaid.

Oh, ik merk net dat Google Maps ook het rode ringfietspad in Antwerpen heeft
gemapped. Dat staat al een paar jaar in OSM :-)


-- 
wannes
___
Talk-be mailing list
Talk-be@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-be


[OSM-talk-be] plan another meeting in May, or not?

2011-04-11 Thread Jo
Hi,

Does it make sense to plan another informal meeting in Leuven as well? Or do
we consider the one in Liège the monthly informal meeting? Or do we plan
something in Mechelen, Antwerpen or Aarschot?

Jo
___
Talk-be mailing list
Talk-be@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-be


Re: [OSM-talk-be] plan another meeting in May, or not?

2011-04-11 Thread Karel Adams

On 04/11/2011 03:09 PM, Jo wrote:

Does it make sense to plan another informal meeting in Leuven as well? Or do
we consider the one in Liège the monthly informal meeting? Or do we plan
something in Mechelen, Antwerpen or Aarschot?


I certainly am in for the meeting in Liège, under whatever name or 
title. Meeting in Antwerpen or Mechelen seems less productive to me, 
these places are already well covered. Aarschot is a curious idea but 
sounds nice. Actually I think one meeting per month is an ambitious goal 
already, I prefer to have at least this rhythm fixed even if the 
location varies. We must admit that not very many people show up, those 
meetings we do manage should on the one hand attract a minimal 
attendance and on the other hand encourage newbies. Being close might be 
one point of attraction, and that's why I prefer the Liège and Aarschot 
options.


But the main point is that we have SOME meeting. I must plead guilty to 
the old sin of offering lots of comment while contributing little 
action, I do have been much called upon in other areas.


___
Talk-be mailing list
Talk-be@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-be


Re: [OSM-talk-be] plan another meeting in May, or not?

2011-04-11 Thread Jo
I think of Aarschot because there is a very good connection by bus from
Leuven to Aarschot (305 and 307, 20 minutes). I have no idea where we could
set up the meet though. A relatively silent, non smoking venue with free
wifi should be possible to find...

Polyglot

2011/4/11 Karel Adams 

> On 04/11/2011 03:09 PM, Jo wrote:
>
>> Does it make sense to plan another informal meeting in Leuven as well? Or
>> do
>> we consider the one in Liège the monthly informal meeting? Or do we plan
>> something in Mechelen, Antwerpen or Aarschot?
>>
>
> I certainly am in for the meeting in Liège, under whatever name or title.
> Meeting in Antwerpen or Mechelen seems less productive to me, these places
> are already well covered. Aarschot is a curious idea but sounds nice.
> Actually I think one meeting per month is an ambitious goal already, I
> prefer to have at least this rhythm fixed even if the location varies. We
> must admit that not very many people show up, those meetings we do manage
> should on the one hand attract a minimal attendance and on the other hand
> encourage newbies. Being close might be one point of attraction, and that's
> why I prefer the Liège and Aarschot options.
>
> But the main point is that we have SOME meeting. I must plead guilty to the
> old sin of offering lots of comment while contributing little action, I do
> have been much called upon in other areas.
>
___
Talk-be mailing list
Talk-be@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-be


Re: [OSM-talk-be] plan another meeting in May, or not?

2011-04-11 Thread Karel Adams

On 04/11/2011 04:07 PM, Jo wrote:

A relatively silent, non smoking venue with free
wifi should be possible to find...


Daar wil ik graag wat moeite voor doen, maar hoe begin ik eraan?
Tell me how to go about it, I am quite willing to invest some effort.

___
Talk-be mailing list
Talk-be@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-be


Re: [OSM-talk-be] plan another meeting in May, or not?

2011-04-11 Thread Julien Fastré


  
  
Hello,

For me, i think i am able to attend only one meeting a month. 

I thought aarschot was far far away... From liege it's only 1.20
hours of train... But from other place in Belgium it might be a
longer journey...
Julien

  
Karel Adams a ecrit le 11/04/2011 18:40:
On
  04/11/2011 04:07 PM, Jo wrote:
  
  A relatively silent, non smoking venue
with free

wifi should be possible to find...

  
  
  Daar wil ik graag wat moeite voor doen, maar hoe begin ik eraan?
  
  Tell me how to go about it, I am quite willing to invest some
  effort.
  
  
  ___
  
  Talk-be mailing list
  
  Talk-be@openstreetmap.org
  
  http://lists.openstreetmap.org/listinfo/talk-be
  

  




signature.asc
Description: OpenPGP digital signature
___
Talk-be mailing list
Talk-be@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-be


Re: [OSM-talk-be] plan another meeting in May, or not?

2011-04-11 Thread Jo
In Mechelen I was lucky. I was planning to visit several pubs to ask whether
we could gather there. The first one I visited had an extra room upstairs
and they didn't mind sharing their internet connection with us in return for
consumptions.

Maybe Spoor10 in front of the station would work?

Jo

2011/4/11 Karel Adams 

> On 04/11/2011 04:07 PM, Jo wrote:
>
>> A relatively silent, non smoking venue with free
>> wifi should be possible to find...
>>
>
> Daar wil ik graag wat moeite voor doen, maar hoe begin ik eraan?
> Tell me how to go about it, I am quite willing to invest some effort.
>
___
Talk-be mailing list
Talk-be@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-be