-
- double endLon = ModelledCRS.longitudeToX(endCoords[0]) * scale;
- double endLat = ModelledCRS.latitudeToY(endCoords[1]) * scale;
-
- Path2D path = new Path2D.Double();
- path.moveTo(startLon, startLat);
- path.lineTo(endLon, endLat);
-
- DistrictNetworkEdge edge = new DistrictNetworkEdge(path);
+ DistrictNetworkEdge edge = new DistrictNetworkEdge(new Point2D.Double(startCoords[0], startCoords[1]), new Point2D.Double(endCoords[0], endCoords[1]));