Open ue71603 opened 1 month ago
@ue71603 you might want to review the AvailabilityCondition's mentioned in the file. While valid I see duplications of AvailabilityConditions that are never valid. My guess the problem is: if the sequence is never valid, what would the OperatingPeriod look like? I made a deliberate choice not just to trust the chain of availability conditions due to the fact that they can be positive and negative, effectively this materialises all stacked AvailabilityConditions in a single UicOperatingPeriod. What we could do: if it is never valid, take the first day as first and last day, and mark it zero. Raising a warning is likely oppertune.
In addition, we currently don't handle TemplateServiceJourney. I don't know what profile it is or what the intention is. If that should be converted to frequencies.txt that is something we certainly don't support yet (not even loading them).
TemplateServiceJourney: Yes we are talking frequency based stuff. Wasn't that in the main swiss data already? AvailabilityCondition: I will check
This file has issues too. For example <PublicCode/>
, but it also lacks an OperatorRef.
Now you could say: you can derive this by ResponsibilitySet, I don't like how that route is modeled... I have implemented the ResponsibilitySet method, to find out that ch:1:ResponsibilitySet:922 is extremely poorly modelled.
It is likely that you over simplied the feed. Therefore I cannot recover the required properties for all lines.
<Line id="ch:1:slnid:1025132" version="any">
<Name>Seblengrat</Name>
<ShortName>Seblengrat</ShortName>
<TransportMode>cableway</TransportMode>
<TransportSubmode>
<TelecabinSubmode>chairLift</TelecabinSubmode>
</TransportSubmode>
<PublicCode/>
</Line>
Open issues:
As I want to change them stuff when we are done with everything, manually change the things and attach the update netex.zip here: netex.zip
The issues you mention are related to the source data. Hence we have now a way to infer OperatorRef from a ResponsibilitySet and apply an OperatorRef to a Line from referencing ServiceJourneys. But not yet via ServiceJourneyPattern -> Route -> Line. We are currently missing it at Line level.
I tried to use the first swiss skilifts. They exist as NeTEx and I want to create a GTFS. There are some data errors, on which I am working. However, the process still stops.
netex.zip
Full run:
error in python epip_db_to_db.py C:/Users/ue71603/MG_Daten/conversion/swiss_skilift/swiss-import.duckdb C:/Users/ue71603/MG_Daten/conversion/swiss_skilift/netex-import-epip.duckdb