Package com.vividsolutions.jts.geom

Examples of com.vividsolutions.jts.geom.LineString.convexHull()


    SimpleFeature f;
    LineString l;
    Polygon p;

    l = line(gf, new int[] { 20, 20, 100, 20, 100, 100 });
    p = (Polygon) l.convexHull();
    f = SimpleFeatureBuilder.build(type, new Object[] { "ft1", point(gf, 20, 20), l, p },
        "test.1");
    data.addFeature(f);

    l = line(gf, new int[] { 130, 130, 110, 110, 110, 130, 30, 130 });
View Full Code Here


    f = SimpleFeatureBuilder.build(type, new Object[] { "ft1", point(gf, 20, 20), l, p },
        "test.1");
    data.addFeature(f);

    l = line(gf, new int[] { 130, 130, 110, 110, 110, 130, 30, 130 });
    p = (Polygon) l.convexHull();
    f = SimpleFeatureBuilder.build(type, new Object[] { "ft2", point(gf, 130, 130), l, p },
        "test.2");
    data.addFeature(f);

    l = line(gf, new int[] { 150, 150, 190, 140, 190, 190 });
View Full Code Here

    f = SimpleFeatureBuilder.build(type, new Object[] { "ft2", point(gf, 130, 130), l, p },
        "test.2");
    data.addFeature(f);

    l = line(gf, new int[] { 150, 150, 190, 140, 190, 190 });
    p = (Polygon) l.convexHull();
    f = SimpleFeatureBuilder.build(type, new Object[] { "ft3", point(gf, 150, 150), l, p },
        "test.3");
    data.addFeature(f);

    String typeName = type.getTypeName();
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.