Package org.geolatte.geom

Examples of org.geolatte.geom.LineString


        if (singlePoint) {
            return createPoint(0);

        } else if (singleLine) {
            PointSequence points = createPoints(0, 2);
            return new LineString(points);

        } else {
            // figures
            int numberOfFigures = dis.readInt();
            figures = readFigures(dis, numberOfFigures);
View Full Code Here


        return new Polygon(linearRings.toArray(new LinearRing[0]));
    }

    private LineString decodeLineString(int shapeIdx) {
        Shape shape = shapes[shapeIdx];
        return new LineString(createPoints(shape.figureOffset));
    }
View Full Code Here

    }


    private static LineString convert(org.postgis.LineString geometry) {
        PointSequence points = convertPoints(geometry.getPoints());
        return new LineString(points);
    }
View Full Code Here

        data.add(Points.create2DM(1, 2, 3, crs));

        // linestring
        data.add(LineString.createEmpty());
        for (int i = 0; i < 6; i++) {
            data.add(new LineString(createSequence(crs, (Point)data.get(i), (Point)data.get(i))));
        }

        // polgyon
        // TODO
View Full Code Here

TOP

Related Classes of org.geolatte.geom.LineString

Copyright © 2018 www.massapicom. 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.