conf/gr: transit + stations — Athens metro/tram lines (City of Athens CC BY) and stops (ΣΤΑ.ΣΥ. GTFS) (issue #191) #194
No reviewers
Labels
No labels
blocked
claude-wip
map-report
map:is
map:se
needs-review
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
art/ismap!194
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-191-gr-transit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #191
conf/gr: transit and its stations — Athens metro + tram lines (City of Athens CC BY SHP) and the ΣΤΑ.ΣΥ. GTFS stops (issue #191)
What and why
Greece's transit layer is the Δήμος Αθηναίων (City of Athens) CC BY line
geometry: the three metro lines (Γραμμή 1/2/3) and the coastal tram, served
as anonymous WFS GeoJSON in EPSG:2100 (
geonode:metro, 10 segments;geonode:tram_lines, 4 segments). Same anonymous-WFS delivery shape as everyΥΠΕΝ source, so
downloads.yaml/staging.yamlfollow the established pattern(
source_srid: 2100, reprojected to 3857 on load). The layer unions the twotables with
modestamped per branch;merge_lineschains the topologicalsegments; no
parallel_merge_pixels— the municipality's SHP is schematicsingle-line-per-corridor linework, nothing to drop in parallel.
The R70 second half is this pass: the stations layer's urban half, built
from the operator's own feed — ΣΤΑ.ΣΥ.'s "Δρομολόγια Σταθερών Συγκοινωνιών
(ΜΕΤΡΟ, ΗΣΑΠ, ΤΡΑΜ)" on data.gov.gr (the same feed the previous pass verified
as having stops but no
shapes.txt— its stops were always the stationshalf's source). The importer's GTFS stops loader (
feature: stops,route_types: [1, 0]) reads it as 252 platform rows with the feed's ownnameand amodestamp (metro beats tram per stop; the feed carries noparent_station links, so the loader's platform collapse has nothing to work
on). The stations layer query collapses platforms to stations by the PL
pattern —
ST_ClusterDBSCAN(200, 1) OVER (PARTITION BY name, mode)and thecluster centroid — yielding 127 stations (67 metro + 60 tram), unioned
with the GAIAOSE heavy-rail rows.
modedistinguishes the halves;metrotakes importance 2 and
tram1 (the shared urban rungs, SE/FI), so theexisting zoom filters draw metro dots from z10 and tram stops from z12.
unique_iconstays NULL (R72: Greece's networks have no sprite symbol).Why the GTFS and not the City of Athens
stasy2024points (also CC BY, sameGeoNode family): stasy2024 covers only the area inside the municipality —
35 points for a network of 127 stations — so it would leave lines-without-
stations across half the network (R70: incomplete). The operator feed is
complete. Its licence is unset on the data.gov.gr record — permissive by the
portal's open terms, the same class as every ΥΠΕΝ source this config already
fetches and as the GAIAOSE stations this layer joins.
Coverage — lines are the municipality's, stops are the operator's
Line 1 Piraeus–Kifisia and line 2 Anthoupoli–Elliniko run end to end; line 3
stops at ~23.84E (Pallini/Ag. Paraskevi) — the airport branch to ~23.94E
is outside the City of Athens dataset — and the tram SHP covers
Syntagma–Faliron–Glyfada–Voula but not the Piraeus branch. The stops
cover the full operator network, so the two branch gaps now show up honestly
as stops without linework: the four airport-branch metro stations (ΠΑΛΛΗΝΗ,
ΚΑΝΤΖΑ, ΚΟΡΩΠΙ, ΕΛ. ΒΕΝΙΖΕΛΟΣ) and ~15 Piraeus-branch tram stops render as
dots beyond the municipality's lines. Both gaps are the sources'; documented
in docs/country-gr.md.
Two source quirks, both kept and documented: Δ. ΠΛΑΚΕΝΤΙΑΣ and ΣΥΝΔΕΣΗ
ΠΡΟΑΣΤΙΑΚΟΥ are two feed stops at the same position (the M3–suburban
interchange); and the metro names are ALL CAPS while the tram names are
sentence case — the feed's own register split, kept verbatim (no Greek
casing pass exists yet; the GAIAOSE names are verbatim ALL CAPS too).
Verification
--acceptance all) — was 41/41; +2 stationstests this pass (R70 source-truth + the 85%-within-1 km network test).
make acceptancetallies: is 38/38, se 44/45 (1 not-run needs-acceptance all), fi 49/49, world 27/28 (same not-run), pl 44/46 (thepre-existing marginal buildings R120 10s timeout, unrelated — identical
to the
dd21ac2run).stop named (0 NULLs), and the per-mode station counts equal the feed's
deduplicated sets (67 metro + 60 tram; a union that drops or duplicates a
station moves these numbers and fails); and the network test — 114/127
urban stops (89.8%) lie within 1 km of a same-mode transit line (threshold
85%, tolerating the two documented branch gaps).
check-queries conf/gr: 9 queries, 8 prepared (stations prepares once thenew staging table is present — it was present at the end of the run), no
violations.
make testgreen.at z9, +rung-2 and metro at z10, +rung-1 and tram at z12, matching the
SE/FI ladder shape. 0 NULL names, 0 NULL importances at z14.
stasy2024points: 35/35resolve to the same-named GTFS station within ~80 m for 30 of them; the
three far ones (ΣΕΠΟΛΙΑ 554 m, ΤΑΥΡΟΣ 274 m, ΜΕΓΑΡΟ ΜΟΥΣΙΚΗΣ 185 m) are the
municipality's placement — its ΣΕΠΟΛΙΑ point sits 296 m off the metro
line, while the GTFS points sit 16–32 m off the line (measured).
Piraeus 5 (2 heavy rail + 2 metro + 1 tram), Elliniko 2 metro, the airport
tile 3 (1 metro ΕΛ. ΒΕΝΙΖΕΛΟΣ + 2 heavy rail).
17 station dots (11 metro + 5 tram + 1 heavy rail) and 14 labels
(10 metro + 2 tram + 2 heavy rail) rendered. (The two console errors
— 400/404 resource loads — reproduce on the untouched SE map; pre-existing.)
Left undone / uncertain
Metro's is CC-NC, R2-rejected); its stations are equally absent. The city's
entrance/exit points exist and could feed a future Thessaloniki urban half.
name_encolumn in the feed (and the municipality'sname_en2) is unused; Greek names are the map language.City of Athens dataset; the stops there render without lines, documented.
# conf/gr: the transit layer — Athens metro + tram from the City of Athens CC BY SHP (issue #191)to conf/gr: the transit layer — Athens metro + tram from the City of Athens CC BY SHP (issue #191)3d1be50fb6to13c74a7e81conf/gr: the transit layer — Athens metro + tram from the City of Athens CC BY SHP (issue #191)to conf/gr: transit + stations — Athens metro/tram lines (City of Athens CC BY) and stops (ΣΤΑ.ΣΥ. GTFS) (issue #191)