Permalink
Browse files

Disabled a method in the LineStringSnapper, so that the project compi…

…les. It looks like there's a missing implementation of CoordinateList.add().
  • Loading branch information...
1 parent 5e67f69 commit 15dffdee918907e8792841ec26fa5e288c8075dc @omar711 committed Feb 20, 2012
Showing with 21 additions and 8 deletions.
  1. +13 −0 pom.xml
  2. +8 −8 src/main/java/com/vividsolutions/jts/operation/overlay/snap/LineStringSnapper.java
View
@@ -0,0 +1,13 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>com.vividsolutions</groupId>
+ <artifactId>jts</artifactId>
+ <version>1.8</version>
+
+
+</project>
+
@@ -109,6 +109,8 @@ private Coordinate findSnapForVertex(Coordinate pt, Coordinate[] snapPts)
*/
private void snapSegments(CoordinateList srcCoords, Coordinate[] snapPts)
{
+ throw new UnsupportedOperationException("Method disabled.");
+ /*
int distinctPtCount = snapPts.length;
// check for duplicate snap pts.
@@ -119,16 +121,14 @@ private void snapSegments(CoordinateList srcCoords, Coordinate[] snapPts)
for (int i = 0; i < distinctPtCount; i++) {
Coordinate snapPt = snapPts[i];
int index = findSegmentIndexToSnap(snapPt, srcCoords);
- /**
- * If a segment to snap to was found, "crack" it at the snap pt.
- * The new pt is inserted immediately into the src segment list,
- * so that subsequent snapping will take place on the latest segments.
- * Duplicate points are not added.
- */
- if (index >= 0) {
+
+ // If a segment to snap to was found, "crack" it at the snap pt. The new pt is inserted immediately into the src
+ // segment list, so that subsequent snapping will take place on the latest segments. Duplicate points are not
+ // added.
+ if (index >= 0) {
srcCoords.add(index + 1, new Coordinate(snapPt), false);
}
- }
+ } */
}

0 comments on commit 15dffde

Please sign in to comment.