Package com.vividsolutions.jts.geom.impl

Examples of com.vividsolutions.jts.geom.impl.PackedCoordinateSequence


    /**
     * @see org.geotools.geometry.coordinatesequence.CSBuilder#setOrdinate(com.vividsolutions.jts.geom.CoordinateSequence, double, int, int)
     */
    public void setOrdinate(CoordinateSequence sequence, double value, int ordinateIndex, int coordinateIndex) {
      PackedCoordinateSequence pcs = (PackedCoordinateSequence) sequence;
      pcs.setOrdinate(coordinateIndex, ordinateIndex, value);
    }
View Full Code Here


   
    /**
     * @see org.geotools.geometry.coordinatesequence.CSBuilder#setOrdinate(com.vividsolutions.jts.geom.CoordinateSequence, double, int, int)
     */
    public void setOrdinate(CoordinateSequence sequence, double value, int ordinateIndex, int coordinateIndex) {
      PackedCoordinateSequence pcs = (PackedCoordinateSequence) sequence;
      pcs.setOrdinate(coordinateIndex, ordinateIndex, value);
    }
View Full Code Here

public void createCurve(){
    // createCurve start
    GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();
    CurvedGeometryFactory curvedFactory = new CurvedGeometryFactory(geometryFactory,Double.MAX_VALUE);
   
    PackedCoordinateSequence coords = new PackedCoordinateSequence.Double(
       new double[]{10,14,6,10,14,10}, 2 );
   
    CircularString arc = (CircularString) curvedFactory.createCurvedGeometry(coords);
    // createCurve end   
}
View Full Code Here

        return geom.contains(p);
    }

    protected Polygon createRect(double x, double y, double w, double h) {
        double[] arr = { x, y, x + w, y, x + w, y + h, x, y + h, x, y };
        PackedCoordinateSequence shell = new PackedCoordinateSequence.Double(arr, 2);
        Polygon p = fac.createPolygon(fac.createLinearRing(shell), NOSHELLS);
        return p;
    }
View Full Code Here

TOP

Related Classes of com.vividsolutions.jts.geom.impl.PackedCoordinateSequence

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.