OneBusAway / onebusaway-gtfs-modules

A Java-based library for reading, writing, and transforming public transit data in the GTFS format, including database support.

Home Page:https://github.com/OneBusAway/onebusaway-gtfs-modules/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gtfs-transformer : delete trip without shape

christopheblin opened this issue · comments

Summary:

It seems I cannot delete trips where shape_id=""

Steps to reproduce:

Take the gtfs of testagency in onebusaway-gtfs-transformer/src/test/resources/org/onebusaway/gtfs_transformer/testagency

java -server -Xmx4096M -jar /jar/gtfs-transformer.jar --transform='{"op":"remove", "match":{"file":"trips.txt", "shape_id":""}}' /gtfs /gtfs

Expected behavior:

some trips should be removed because they have no shape_id

Observed behavior:

no trips removed

Do I need to provide more details / background ?