stationScript
Runs a station subsetter script via JSR223. The networkSource is put as "networkSource" and the station as "station". The station object is a VelocityStation, the same class used in the templates for the printlineStationProcess. See the scripting tutorial for more information on inlining scripts into a SOD recipe.
Example
<stationScript type="jython"> if networkAttr.get_code() == 'IU' or networkAttr.get_code() == 'II': print networkAttr.get_code() result = True else: result = False </stationScript>
Places this can be found
In station there is a choice between all of the following
- stationCode
- stationRegularExpression
- stationName
- stationOperator
- stationDepthRange
- stationEffectiveTimeOverlap
- stationArea
- stationBoxArea
- stationPolygonFile
- stationPointDistance
- stationPointAzimuth
- printlineStationProcess
- stationPointBackAzimuth
- stationAND
- stationOR
- stationNOT
- externalStationSubsetter
- belongsToVirtual
- jythonStationSubsetter
- stationScript
In stationPlus there is a choice between all of the following