Skip to end of banner
Go to start of banner

Projection (korrektur)

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 3 Next »

Content

Geographical location indications (for Line 109, Oslo)

Journeypattern

A JourneyPattern can be defined as pointsInSequence (a sorted list of points, detailed in other example) and / or linksInSequence (a sorted list of links between two points).

According to The Norwegian NeTEx Profile, the actual route must be defined as at the highest possible level in the XML structure, and in most cases it is recommended that this be done as a set of 637370789 with Link projections describing the points it follows. These should unambiguously describe the path using sufficient GML coordinates (gml:pos) so that the line's  JourneyPattern is correctly displayed on maps.

In some cases (e.g. air routes), this may be done using the line's RoutePoints, since it will suffice to display the route as a straight line between these two locations.


See also official NeTex White Papers, in particular 06.NeTEx-Network-WhitePaper, where this aspect is described in detail.

The entire XML sample file is located in the GitHub repository below https://github.com/entur/profile-norway-examples/blob/master/netex/Full_PublicationDelivery_109_Oslo_morningbus_example.xml

PublicationDelivery

Because other relevant data structures in the example have already been described in Simple rhytm based bus line / Simple bus line, only the definition of serviceLinks and their use in linksInSequence (in JourneyPattern) are described in this document.

Service Frame

637370789 with Link projections describes additional geographical points between StopPoints/TimingPoints .

<serviceLinks>
	<ServiceLink version="any" id="unibuss:sl:helsfyr_to_brynseng">
		<projections>
			<LinkSequenceProjection version="any" id="unibuss:lsp:109:helsfyr_to_brynseng">
				<gml:LineString srsName="WGS84" gml:id="helsfyr_to_brynseng">
					<gml:pos>59.911925 10.807198</gml:pos>
					<gml:pos>59.910395 10.813012</gml:pos>
				</gml:LineString>
			</LinkSequenceProjection>
		</projections>
		<FromPointRef version="any" ref="unibuss:ssp:helfyr_t"/>
		<ToPointRef version="any" ref="unibuss:ssp:brynseng_t"/>
	</ServiceLink>
[...]	
	<ServiceLink version="any" id="unibuss:sl:ryen_to_holtet">
		<projections>
			<LinkSequenceProjection version="any" id="unibuss:lsp:109:ryen_to_holtet">
				<gml:LineString srsName="WGS84" gml:id="ryen_to_holtet">
					<gml:pos>59.894780 10.804309</gml:pos>
					<gml:pos>59.892531 10.804000</gml:pos>
					<gml:pos>59.888996 10.805961</gml:pos>
					<gml:pos>59.887608 10.806368</gml:pos>
					<gml:pos>59.886410 10.800586</gml:pos>
					<gml:pos>59.885832 10.792943</gml:pos>
					<gml:pos>59.885392 10.788938</gml:pos>
					<gml:pos>59.885630 10.784435</gml:pos>
					<gml:pos>59.883864 10.783759</gml:pos>
					<gml:pos>59.881872 10.783770</gml:pos>
				</gml:LineString>
			</LinkSequenceProjection>
		</projections>
		<FromPointRef version="any" ref="unibuss:ssp:ryen_t"/>
		<ToPointRef version="any" ref="unibuss:ssp:holtet"/>
	</ServiceLink>
</serviceLinks>

linksInSequence

The links describing how to project the line's journeypattern are used in conjunction with the stops (possibly timing points) to accurately specify the line's JourneyPattern.

<journeyPatterns>
	<JourneyPattern version="any" id="unibuss:jp:109">
		<RouteRef ref="unibuss:rt:109"/>
		<DestinationDisplayRef ref="unibuss:dd:holtet"/>
		<pointsInSequence>
		[...]
		</pointsInSequence>
		<linksInSequence>
			<ServiceLinkInJourneyPattern version="any" id="unibuss:slijp:helsfyr_to_brynseng" order="1">
				<ServiceLinkRef version="any" ref="unibuss:sl:helsfyr_to_brynseng"/>
			</ServiceLinkInJourneyPattern>
			<ServiceLinkInJourneyPattern version="any" id="unibuss:slijp:brynseng_to_hoyenhall" order="2">
				<ServiceLinkRef version="any" ref="unibuss:sl:brynseng_to_hoyenhall"/>
			</ServiceLinkInJourneyPattern>
			<ServiceLinkInJourneyPattern version="any" id="unibuss:slijp:hoyenhall_to_manglerud" order="3">
				<ServiceLinkRef version="any" ref="unibuss:sl:hoyenhall_to_manglerud"/>
			</ServiceLinkInJourneyPattern>
			<ServiceLinkInJourneyPattern version="any" id="unibuss:slijp:manglerud_to_ryen" order="4">
				<ServiceLinkRef version="any" ref="unibuss:sl:manglerud_to_ryen"/>
			</ServiceLinkInJourneyPattern>
			<ServiceLinkInJourneyPattern version="any" id="unibuss:slijp:ryen_to_holtet" order="5">
				<ServiceLinkRef version="any" ref="unibuss:sl:ryen_to_holtet"/>
			</ServiceLinkInJourneyPattern>
		</linksInSequence>
	</JourneyPattern>
</journeyPatterns>
  • No labels