Closed GoogleCodeExporter closed 8 years ago
When creating a stop lat/lon there is some gremlin char that finds it way into
the data & when removed this float error (missing lon) is resolved. I have
resolved this error perhaps the updates to FV can help the user point to
offending char when it appears. much appreciated, m
Original comment by action...@gmail.com
on 6 Mar 2011 at 12:59
Marcy, if you don't think this is a duplicate please append the original line
that caused a problem or a file containing it.
Top of stack:
File "transitfeed\trip.pyc", line 647, in ValidateDistanceFromStopToShape
distance = 5.2573690721
pt = (48.086858000000007, -123.11304199999999, 8.9209999999999994)
max_shape_dist = 18.333
problems = <transitfeed.problems.ProblemReporter object at 0x0274C6D0>
self = <Trip [('block_id', u'40_10'), ('direction_id', u'0'), ('route_id', u'Rt40'), ('service_id', u'mtwtf'), ('shape_id', u'40'), ('trip_headsign', u'Sequim Shuttle'), ('trip_id', u'40_T09')]>
stoptimes = [<transitfeed.stoptime.StopTime object at 0x027BB3B0>, <transitfeed.stoptime.StopTime object at 0x029D7AF0>, <transitfeed.stoptime.StopTime object at 0x029D79B0>, <transitfeed.stoptime.StopTime object at 0x029D7730>, <transitfeed.stoptime.StopTime object at 0x029D7770>, <transitfeed.stoptime.StopTime object at 0x029D77B0>, <transitfeed.stoptime.StopTime object at 0x029D7AB0>, <transitfeed.stoptime.StopTime object at 0x029D76B0>, <transitfeed.stoptime.StopTime object at 0x029D76F0>, <transitfeed...
stop = <Stop [('location_type', 0), ('parent_station', u''), ('stop_code', u''), ('stop_desc', u''), ('stop_id', u'40_20'), ('stop_lat', 48.086749846747097), ('stop_name', u'5th & Hendrickson'), ('stop_url', u''), ('zone_id', u'SEQ')]>
st = <transitfeed.stoptime.StopTime object at 0x029D7E30>
shape = <Shape {'distance': [0.0, 0.031, 0.19400000000000001, 0.79200000000000004, 1.0640000000000001, 1.3009999999999999, 1.552, 1.6519999999999999, 1.6879999999999999, 1.6970000000000001, 1.7090000000000001, 1.718, 1.728, 1.736, 1.762, 1.782, 1.831, 1.9730000000000001, 2.1349999999999998, 2.3210000000000002, 2.536, 2.6669999999999998, 2.8420000000000001, 3.0150000000000001, 3.1680000000000001, 3.2349999999999999, 3.335, 3.5830000000000002, 3.7469999999999999, 4.0369999999999999, 4.0670000000000002, 4...
File "transitfeed\util.pyc", line 287, in ApproximateDistance
degree_lng2 = -123.113042
degree_lng1 = None
lat1 = 0.839272111409
degree_lat1 = 48.0867498467
degree_lat2 = 48.086858
TypeError: a float is required
Original comment by tom.brow...@gmail.com
on 7 Mar 2011 at 3:19
Original comment by bdfer...@google.com
on 26 Sep 2014 at 4:51
Original issue reported on code.google.com by
action...@gmail.com
on 6 Mar 2011 at 12:38Attachments: