Revision 68

View differences:

org.gvsig.lrs/trunk/org.gvsig.lrs/org.gvsig.lrs.lib/org.gvsig.lrs.lib.impl/src/main/java/org/gvsig/lrs/lib/impl/LrsCalibrateRouteAlgorithm.java
440 440
                                        //FIXME
441 441
                                        //if (line.intersects(fixedPoint)){
442 442
                                        if (segment.isWithinDistance(fixedPoint, PRECISION)){
443
                                            length+=vertex.distance(fixedPoint);
443
                                            double distanceFirstVertex=distances.get(index);
444
                                            double distanceToFixedPoint=vertex.distance(fixedPoint);
445
                                            length=distanceFirstVertex+distanceToFixedPoint;
444 446
                                            Double oldMValue=LrsAlgorithmUtils.straightLineThroughTwoPointsEquation(
447
                                                distances.get(index),
448
                                                distances.get(index+1),
445 449
                                                vertex.getCoordinateAt(MDIMENSION),
446 450
                                                nextVertex.getCoordinateAt(MDIMENSION),
447
                                                distances.get(index),
448
                                                distances.get(index+1),
449 451
                                                length);
450 452
                                            insertAtList.add(index+1);
451 453
                                            lengths.add(length);

Also available in: Unified diff