Re: GTFSPatternHopFactory.java:1048

57 views
Skip to first unread message

David Turner

unread,
Aug 1, 2012, 10:56:02 AM8/1/12
to opentrippl...@googlegroups.com
It sounds like the problem is in your shapes.txt file. There's a shape
with the id 187-13-0-0-1, which only has one (distinct) line in the
file.

On Wed, 2012-08-01 at 06:03 -0700, Ricardo wrote:
> Hey guys,
>
>
> I downloaded the new OTP version 0.7.8 but I am having a few problems
> when building the graph. The gtfs data I am using worked perfectly
> before under a previous version of OTP. I get the following WARN
>
>
>
>
> 2012-08-01 13:49:17,182 WARN [GTFSPatternHopFactory.java:1048] :
> Shape geometry for shape_id Maia Transportes_187-13-0-0-1 does not
> have two distinct points. (
> annotation registered)
>
>
>
>
> for several shapes. I see it has something to do with the file
> stop_times.txt file but I cannot really put my finger in what is
> happening. Any hints?
>
>
>
> Thanks,
> Ricardo


Ricardo

unread,
Aug 1, 2012, 11:19:01 AM8/1/12
to opentrippl...@googlegroups.com
Well...that is what is strange about it. I get this message for almost every shape. But the shapes were perfect. I just presented that particular shape as an example. Here are the first 4 points from it:

David Turner

unread,
Aug 1, 2012, 11:37:53 AM8/1/12
to opentrippl...@googlegroups.com
Can you send me your GTFS? Maybe there's a bug in OTP.

Ricardo

unread,
Aug 2, 2012, 4:29:46 AM8/2/12
to opentrippl...@googlegroups.com
Dear David,

Thanks a lot for your help. I prepared a small GTFS to try and isolate the problem.
The shape.txt file seems to be completely ignored and I don't see another reason for that except this warning. The reason I mentioned it was somehow related with the stop_times file is that I get the same number of warnings as lines-1   in stop_times.txt.

I send you also a print screen of the area where you can plan you test-trip (weekdays around 17:30).

Thanks again :)

Ricardo
gtfs.zip
PrtSc.png

David Turner

unread,
Aug 2, 2012, 1:32:37 PM8/2/12
to opentrippl...@googlegroups.com
Thanks for giving me such a small, self-contained example.

I think there are two problems:

(1) stop_times.txt uses shape_dist_traveled, but shapes.txt does not
and
(2) OTP gives a misleading error message when this happens. I'm going
to fix the OTP error message.

If you just remove shape_dist_traveled from stop_times.txt (or add it to
shapes.txt), everything should work.

Ricardo

unread,
Aug 2, 2012, 3:40:51 PM8/2/12
to opentrippl...@googlegroups.com
Hey David,

Thanks a lot for your help. I removed shape_dist_traveled from stop_times.txt and all works now.
Reply all
Reply to author
Forward
0 new messages