Class ShapeDirectionTransformStrategy
java.lang.Object
org.onebusaway.gtfs_transformer.updates.ShapeDirectionTransformStrategy
- All Implemented Interfaces:
GtfsTransformStrategy
Fix use of a single shape for both directions of travel by creating a copy of
the shape with its ShapePoints in reverse order, and applying that new shape
to any trips which use the input shape in the 'wrong' direction.
- Author:
- kurt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()voidrun(TransformContext context, GtfsMutableRelationalDao dao) voidsetShapeDirection(String shapeDirection) voidsetShapeId(String shapeId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.onebusaway.gtfs_transformer.services.GtfsTransformStrategy
updateReadSchema, updateWriteSchema
-
Constructor Details
-
ShapeDirectionTransformStrategy
public ShapeDirectionTransformStrategy()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceGtfsTransformStrategy
-
run
- Specified by:
runin interfaceGtfsTransformStrategy
-
setShapeDirection
-
setShapeId
-