CPD Results

The following document contains the results of PMD's CPD 6.4.0.

Duplications

File Line
org\opentrafficsim\road\network\factory\shape\TestShapeParser.java 379
org\opentrafficsim\road\network\factory\shape\TestShapeParser.java 415
        private NWBDrivingLane getPropertiesDrivingLanes(final Feature feature) throws NetworkException
        {
            Geometry theGeom = (Geometry) feature.getDefaultGeometryProperty().getValue();
            Coordinate[] coordinates = theGeom.getCoordinates();

            Property property = feature.getProperty("WVK_ID");
            String roadId = property.getValue().toString();

            property = feature.getProperty("KANTCODE");
            String sideCode = property.getValue().toString();

            property = feature.getProperty("BEGAFSTAND");
            Double beginDistance = parseDouble(property);

            property = feature.getProperty("ENDAFSTAND");
            Double endDistance = parseDouble(property);

            property = feature.getProperty("OMSCHR");
            String laneDescription = property.getValue().toString();