[Qgis-developer] Python Error with linear referencing plugin
Martin Dobias
wonder.sk at gmail.com
Mon Nov 16 08:29:11 EST 2009
On Mon, Nov 16, 2009 at 2:13 PM, PIERRE Sylvain <sylvain.pierre at cg67.fr> wrote:
> Hello,
>
> I'm using linear referencing plugin developped by Martin Dobias
> I get an error when I try to calibrate a new route system:
>
> Traceback (most recent call last):
> File "C:\Program Files\Quantum GIS
> Mimas\python\plugins\linear_ref\dlgcalibrateroute.py", line 84, in onOK
> log = self.calibrateRoute(line_layer, line_name, points_layer, points_name,
> points_measure, route_name)
> File "C:\Program Files\Quantum GIS
> Mimas\python\plugins\linear_ref\dlgcalibrateroute.py", line 221, in
> calibrateRoute
> calibration.calibration(roads, cal_points, progdlg, log)
> File "C:\Program Files\Quantum GIS
> Mimas\python\plugins\linear_ref\calibration.py", line 177, in calibration
> align_cal_points(cal_pts, roads, progdlg, log)
> File "C:\Program Files\Quantum GIS
> Mimas\python\plugins\linear_ref\calibration.py", line 217, in
> align_cal_points
> line_pnt, line_index = nearestPoint(Point(pnt.x, pnt.y), road.points)
> File "C:\Program Files\Quantum GIS Mimas\python\plugins\linear_ref\geom.py",
> line 164, in nearestPoint
> p1 = polyline[minI]
> TypeError: list indices must be integers
Hi,
I would need access to the data you're using in order to find out the
root of your problem. Can you give me a link where to get the data?
Regards
Martin
More information about the Qgis-developer
mailing list