Examples of extractLine()


Examples of com.vividsolutions.jts.linearref.LocationIndexedLine.extractLine()

        // An index in JTS can actually refer to any point along the line. It is NOT an array index.
        LocationIndexedLine line = new LocationIndexedLine(geometry);
        LinearLocation l = LengthLocationMap.getLocation(geometry, requestedDistance);

        LineString beginning = (LineString) line.extractLine(line.getStartIndex(), l);
        LineString ending = (LineString) line.extractLine(l, line.getEndIndex());

        return new P2<LineString>(beginning, ending);
    }

    /**
 
View Full Code Here

Examples of com.vividsolutions.jts.linearref.LocationIndexedLine.extractLine()

            ShapeSegmentKey key = new ShapeSegmentKey(shapeId, startIndex, endIndex);
            LineString geometry = _geometriesByShapeSegmentKey.get(key);

            if (geometry == null) {
                LocationIndexedLine locationIndexed = new LocationIndexedLine(shape);
                geometry = (LineString) locationIndexed.extractLine(startLocation, endLocation);

                // Pack the resulting line string
                CoordinateSequence sequence = new PackedCoordinateSequence.Double(geometry
                        .getCoordinates(), 2);
                geometry = _geometryFactory.createLineString(sequence);
View Full Code Here

Examples of lev.LInChannel.extractLine()

                LInChannel input = new LInChannel(ini);

                String line = "";
                // First line
                while (input.available() > 0 && !line.toUpperCase().contains("SRESOURCEARCHIVELIST")) {
                    line = input.extractLine();
                }
                if (line.toUpperCase().contains("SRESOURCEARCHIVELIST2")) {
                    line2 = true;
                    resources.addAll(processINIline(line));
                } else {
View Full Code Here

Examples of lev.LInChannel.extractLine()

                }

                // Second line
                line = "";
                while (input.available() > 0 && !line.toUpperCase().contains("SRESOURCEARCHIVELIST")) {
                    line = Ln.cleanLine(input.extractLine(), "#");
                }
                if (line.toUpperCase().contains("SRESOURCEARCHIVELIST2")) {
                    line2 = true;
                    resources.addAll(processINIline(line));
                } else {
View Full Code Here

Examples of lev.LInChannel.extractLine()

                    LInChannel input = new LInChannel(pluginIni);

                    String line = "";
                    // First line
                    while (input.available() > 0 && !line.toUpperCase().contains("SRESOURCEARCHIVELIST")) {
                        line = input.extractLine();
                    }
                    if (line.toUpperCase().contains("SRESOURCEARCHIVELIST2")) {
                        resources.addAll(processINIline(line));
                    } else {
                        resources.addAll(0, processINIline(line));
View Full Code Here

Examples of lev.LInChannel.extractLine()

                    }

                    // Second line
                    line = "";
                    while (input.available() > 0 && !line.toUpperCase().contains("SRESOURCEARCHIVELIST")) {
                        line = Ln.cleanLine(input.extractLine(), "#");
                    }
                    if (line.toUpperCase().contains("SRESOURCEARCHIVELIST2")) {
                        resources.addAll(processINIline(line));
                    } else {
                        resources.addAll(0, processINIline(line));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.