Package org.geotools.geometry.iso.coordinate

Examples of org.geotools.geometry.iso.coordinate.GeometryFactoryImpl.createDirectPosition()


      line2.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{40, 80})));
      line2.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{70, 80})));

      ArrayList<Position> line3 = new ArrayList<Position>();
      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{70, 80})));
      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{90, 70})));
      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 60})));
      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 40})));

      ArrayList<Position> line4 = new ArrayList<Position>();
      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 40})));
View Full Code Here


      line2.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{70, 80})));

      ArrayList<Position> line3 = new ArrayList<Position>();
      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{70, 80})));
      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{90, 70})));
      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 60})));
      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 40})));

      ArrayList<Position> line4 = new ArrayList<Position>();
      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 40})));
      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{80, 30})));
View Full Code Here

      ArrayList<Position> line3 = new ArrayList<Position>();
      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{70, 80})));
      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{90, 70})));
      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 60})));
      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 40})));

      ArrayList<Position> line4 = new ArrayList<Position>();
      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 40})));
      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{80, 30})));
      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{50, 20})));
View Full Code Here

      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{90, 70})));
      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 60})));
      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 40})));

      ArrayList<Position> line4 = new ArrayList<Position>();
      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 40})));
      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{80, 30})));
      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{50, 20})));
     
      /* Setting up Array of these LineStrings */
      ArrayList<CurveSegment> tLineList1 = new ArrayList<CurveSegment>();
View Full Code Here

      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 60})));
      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 40})));

      ArrayList<Position> line4 = new ArrayList<Position>();
      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 40})));
      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{80, 30})));
      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{50, 20})));
     
      /* Setting up Array of these LineStrings */
      ArrayList<CurveSegment> tLineList1 = new ArrayList<CurveSegment>();
      tLineList1.add(tCoordFactory.createLineString(line1));
View Full Code Here

      line3.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 40})));

      ArrayList<Position> line4 = new ArrayList<Position>();
      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{100, 40})));
      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{80, 30})));
      line4.add(new PositionImpl(tCoordFactory.createDirectPosition(new double[]{50, 20})));
     
      /* Setting up Array of these LineStrings */
      ArrayList<CurveSegment> tLineList1 = new ArrayList<CurveSegment>();
      tLineList1.add(tCoordFactory.createLineString(line1));
      tLineList1.add(tCoordFactory.createLineString(line2));
View Full Code Here

  private void _testCoordinateObjects(GeometryBuilder builder) {
   
    GeometryFactoryImpl cf = (GeometryFactoryImpl) builder.getGeometryFactory();
   
    // public DirectPositionImpl createDirectPosition();
    DirectPosition dp1 = cf.createDirectPosition();
    assertTrue(Double.compare(dp1.getOrdinate(0), Double.NaN) == 0);
    assertTrue(Double.compare(dp1.getOrdinate(1), Double.NaN) == 0);
    assertTrue(Double.compare(dp1.getOrdinate(2), Double.NaN) == 0);
   
    // public DirectPositionImpl createDirectPosition(double[] coord);
View Full Code Here

    // public DirectPositionImpl createDirectPosition(double[] coord);
    double[] da = new double[3];
    da[0] = 10.0;
    da[1] = -115000.0;
    da[2] = 0.0000000125;
    DirectPosition dp2 = cf.createDirectPosition(da);
    assertTrue(dp2.getOrdinate(0) == 10.0);
    assertTrue(dp2.getOrdinate(1) == -115000.0);
    assertTrue(dp2.getOrdinate(2) == 0.0000000125);

    // public Envelope createEnvelope(
View Full Code Here

   
    GeometryFactoryImpl tCoordFactory = (GeometryFactoryImpl) builder.getGeometryFactory();
    PrimitiveFactoryImpl tPrimFactory = (PrimitiveFactoryImpl) builder.getPrimitiveFactory();

    List<DirectPosition> directPositionList = new ArrayList<DirectPosition>();
    directPositionList.add(tCoordFactory.createDirectPosition(new double[] {20, 10}));
    directPositionList.add(tCoordFactory.createDirectPosition(new double[] {40, 10}));
    directPositionList.add(tCoordFactory.createDirectPosition(new double[] {50, 40}));
    directPositionList.add(tCoordFactory.createDirectPosition(new double[] {30, 50}));
    directPositionList.add(tCoordFactory.createDirectPosition(new double[] {10, 30}));
    directPositionList.add(tCoordFactory.createDirectPosition(new double[] {20, 10}));
View Full Code Here

    GeometryFactoryImpl tCoordFactory = (GeometryFactoryImpl) builder.getGeometryFactory();
    PrimitiveFactoryImpl tPrimFactory = (PrimitiveFactoryImpl) builder.getPrimitiveFactory();

    List<DirectPosition> directPositionList = new ArrayList<DirectPosition>();
    directPositionList.add(tCoordFactory.createDirectPosition(new double[] {20, 10}));
    directPositionList.add(tCoordFactory.createDirectPosition(new double[] {40, 10}));
    directPositionList.add(tCoordFactory.createDirectPosition(new double[] {50, 40}));
    directPositionList.add(tCoordFactory.createDirectPosition(new double[] {30, 50}));
    directPositionList.add(tCoordFactory.createDirectPosition(new double[] {10, 30}));
    directPositionList.add(tCoordFactory.createDirectPosition(new double[] {20, 10}));
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.