Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 41 additions & 20 deletions analysers/analyser_osmosis_powerline.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,50 +681,71 @@ def __init__(self, config, logger = None):
fix = T_(
'''This tower should probably be connected to a power line.'''),
trap = T_(
'''It's possible that disused power features could be disconnected from the network.
In which case make use of the `disused:` [lifecycle prefix](https://wiki.openstreetmap.org/wiki/Lifecycle_prefix).'''))
'''It's possible that being built or disused power features could be disconnected from the live network.
In which case make use of the `construction:` or `disused:` [lifecycle prefixes](https://wiki.openstreetmap.org/wiki/Lifecycle_prefix).'''))
self.classs[2] = self.def_class(item = 7040, level = 2, tags = ['power', 'fix:imagery'],
title = T_('Unfinished power transmission line'),
detail = T_(
'''The line ends in a vacuum, and should be connected to another line or
a transformer (`power=transformer`), a generator (`power=generator`)
or marked as transitioning into ground (`location:transition=yes`).'''),
'''The line ends in a vacuum, and should be connected to another line or a substation (`power=substation`),
a transformer (`power=transformer`), a generator (`power=generator`),
marked as transitioning into ground (`line_management=transition + location:transition=yes`)
or explicitely terminates (`line_management=termination`).'''),
trap = T_(
'''It's possible that disused power features could be disconnected from the network.
In which case make use of the `disused:` [lifecycle prefix](https://wiki.openstreetmap.org/wiki/Lifecycle_prefix).'''))
'''It's possible that being built or disused power features could be disconnected from the live network.
In which case make use of the `construction:` or `disused:` [lifecycle prefixes](https://wiki.openstreetmap.org/wiki/Lifecycle_prefix).'''))
self.classs[6] = self.def_class(item = 7040, level = 3, tags = ['power', 'fix:imagery'],
title = T_('Unfinished power distribution line'),
detail = T_(
'''The line ends in a vacuum, and should be connected to another line or
a transformer (`power=transformer`), a generator (`power=generator`)
or marked as transitioning into ground (`location:transition=yes`).'''),
'''The line ends in a vacuum, and should be connected to another line or a substation (`power=substation`),
a transformer (`power=transformer`), a generator (`power=generator`),
marked as transitioning into ground (`line_management=transition + location:transition=yes`)
or explicitely terminates (`line_management=termination`).'''),
trap = T_(
'''It's possible that disused power features could be disconnected from the network.
In which case make use of the `disused:` [lifecycle prefix](https://wiki.openstreetmap.org/wiki/Lifecycle_prefix).'''))
'''It's possible that being built or disused power features could be disconnected from the live network.
In which case make use of the `construction:` or `disused:` [lifecycle prefixes](https://wiki.openstreetmap.org/wiki/Lifecycle_prefix).'''))
self.classs[3] = self.def_class(item = 7040, level = 3, tags = ['power', 'fix:chair'],
title = T_('Connection between different voltages'),
detail = T_('Two power lines meet at this point, but have inconsistent voltages (`voltage=*`).'),
detail = T_('Several power lines seem to connect at this point, but have inconsistent voltages (`voltage=*`).'),
fix = T_(
'''Check if the voltages are really different.
Add a transformer using `power=transformer` (standalone transformers) or `power=pole + transformer=*` (pole mounted transformers).'''))
If yes, add a substation (`power=substation`) or transformer (`power=transformer`) on this node (standalone transformers)
or `power=pole + transformer=*` (pole mounted transformers).'''),
trap = T_(
'''Some lines may share the same support without connection.
Have a look to `line_management=termination` or `line_management=cross` for such sitations.'''))
self.classs[4] = self.def_class(item = 7040, level = 3, tags = ['power', 'fix:imagery'],
title = T_('Non power node on power way'),
detail = T_(
'''Power lines can only form a straight line between supports and therefore shouldn't
'''Power lines can only form a straight line between their supports and therefore shouldn't
have additional nodes that aren't tagged as a `power` feature.'''),
fix = T_(
'''If this node is a tower or pole, use the tag `power=tower` or
`power=pole`. Otherwise remove it.'''))
self.classs_change[5] = self.def_class(item = 7040, level = 3, tags = ['power', 'fix:imagery'],
title = T_('Missing power tower or pole'),
detail = T_(
'''Based on the statistical frequency of the poles on this power line,
there's likely an unmapped pole nearby.'''))
'''Based on the statistical frequency of the supports on this power line,
there's likely an unmapped pole nearby.'''),
fix = T_(
'''Seek for possibly missing support in the surroundings and add it to the line.'''))
self.classs[7] = self.def_class(item = 7040, level = 3, tags = ['power', 'fix:chair'],
title = T_('Unmatched voltage of line on substation'))
title = T_('Unmatched voltage of line on substation'),
detail = T_(
'''A line terminates near of a substation with inconsistent voltages between them.'''),
fix = T_(
'''Continue the line towards its actual endpoint, check voltages on line and on substation and adjust what is required to better reflect what is seen on ground.''')),
self.classs[8] = self.def_class(item = 7040, level = 3, tags = ['power', 'fix:chair'],
title = T_('Power support line management suggestion'))

title = T_('Power support line management suggestion'),
detail = T_(
'''[line_management](https://wiki.openstreetmap.org/wiki/Key:line_management) documents particular topologies occuring on power lines nodes. Mind looking at values documentation.
Suggestions are computed by looking at existing OpenStreetMap power lines and only supports some combinations.
It's an encouragement to check and confirm the structure of the power grid on most relevant towers, particularly when proposed `line_management` differs from existing value.
Proposed values are to be adopted when conform to ground according to your knowledge, aerial imagery or survey.'''),
trap = T_(
'''Suggested values may not be correct according to your knowledge, aerial imagery or survey.
In such situations, power lines should be modified to better reflect how the power grid looks there.
When doing so, you may wait for Osmose to update the suggestion or directly add the appropriate `line_management` value on the node.
If you think power grid is right in OpenStreetMap, then mark this suggestion as false positive.'''))
self.callback50 = lambda res: {"class":5, "subclass": stablehash64(res[1]), "data":[self.way_full, self.positionAsText]}

def way_power(self, res):
Expand Down
8 changes: 5 additions & 3 deletions po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ msgstr ""
"Project-Id-Version: Osmose\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-04-28 19:47+0200\n"
"PO-Revision-Date: 2025-07-15 03:38+0000\n"
"Last-Translator: Florian Stosse <florian.stosse@gmail.com>\n"
"PO-Revision-Date: 2025-08-30 03:01+0000\n"
"Last-Translator: Corentin Noël <tintou@noel.tf>\n"
"Language-Team: French <https://hosted.weblate.org/projects/osmose/backend/fr/"
">\n"
"Language: fr\n"
Expand All @@ -73,7 +73,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % "
"1000000 == 0 ? 1 : 2;\n"
"X-Generator: Weblate 5.13-dev\n"
"X-Generator: Weblate 5.13.1-dev\n"

#: ../analysers/analyser_merge_college_FR.py:31
msgid "College not integrated"
Expand Down Expand Up @@ -3918,6 +3918,8 @@ msgid ""
"Chemist shops (\"parapharmacie\" in French) do not fall into this\n"
"classification. They do not have a specific tag for the moment."
msgstr ""
"Les parapharmacies ne rentrent pas dans cette catégorie.\n"
"Elles n'ont pas d'attribut spécifique pour le moment."

#: ../plugins/Highway_Parking_Lane.py:39
msgid ""
Expand Down
Loading
Loading