I'm currently trying to use this script to measure the distances among a number of bus stops (a shpfile contains 10,000 points) that fall on a number of bus routes (a shpfile contains 900 polylines). Here's my code:
#measure distance on route >>> dist_along_route = routeGeom.measureOnLine(stopGeom,FALSE)
This returned the result: Traceback (most recent call last): File "<interactive input>", line 1, in <module> AttributeError: 'tuple' object has no attribute 'measureOnLine'
Can anyone please tell me how to edit this script to make it work?