Examples of createDirectPosition()


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

      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

Examples of org.geotools.geometry.jts.spatialschema.PositionFactoryImpl.createDirectPosition()

  public void testNewFactoryPointHere() {
    PositionFactory gFact = new PositionFactoryImpl(
        DefaultGeographicCRS.WGS84);
    double[] ords = { 48.44, -123.37 };
    DirectPosition here = gFact.createDirectPosition(ords);

    Point point = new PointImpl(here);
    assertNotNull(point.getCoordinateReferenceSystem());
    assertEquals(here.getCoordinateReferenceSystem(), point
        .getCoordinateReferenceSystem());
View Full Code Here

Examples of org.opengis.geometry.PositionFactory.createDirectPosition()

    assertNotNull(mp);
    assertEquals(mp.getCoordinateReferenceSystem(), cf.getCoordinateReferenceSystem());
   
    // test creating polygon
    List<DirectPosition> directPositionList = new ArrayList<DirectPosition>();
    directPositionList.add(positionFactory.createDirectPosition(new double[] {20, 10, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {40, 10, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {50, 40, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {30, 50, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {10, 30, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {20, 10, 0.0}));
View Full Code Here

Examples of org.opengis.geometry.PositionFactory.createDirectPosition()

    assertEquals(mp.getCoordinateReferenceSystem(), cf.getCoordinateReferenceSystem());
   
    // test creating polygon
    List<DirectPosition> directPositionList = new ArrayList<DirectPosition>();
    directPositionList.add(positionFactory.createDirectPosition(new double[] {20, 10, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {40, 10, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {50, 40, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {30, 50, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {10, 30, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {20, 10, 0.0}));
View Full Code Here

Examples of org.opengis.geometry.PositionFactory.createDirectPosition()

   
    // test creating polygon
    List<DirectPosition> directPositionList = new ArrayList<DirectPosition>();
    directPositionList.add(positionFactory.createDirectPosition(new double[] {20, 10, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {40, 10, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {50, 40, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {30, 50, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {10, 30, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {20, 10, 0.0}));

    Ring exteriorRing = tPrimFactory.createRingByDirectPositions(directPositionList);
View Full Code Here

Examples of org.opengis.geometry.PositionFactory.createDirectPosition()

    // test creating polygon
    List<DirectPosition> directPositionList = new ArrayList<DirectPosition>();
    directPositionList.add(positionFactory.createDirectPosition(new double[] {20, 10, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {40, 10, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {50, 40, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {30, 50, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {10, 30, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {20, 10, 0.0}));

    Ring exteriorRing = tPrimFactory.createRingByDirectPositions(directPositionList);
    List<Ring> interiors = new ArrayList<Ring>();
View Full Code Here

Examples of org.opengis.geometry.PositionFactory.createDirectPosition()

    List<DirectPosition> directPositionList = new ArrayList<DirectPosition>();
    directPositionList.add(positionFactory.createDirectPosition(new double[] {20, 10, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {40, 10, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {50, 40, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {30, 50, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {10, 30, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {20, 10, 0.0}));

    Ring exteriorRing = tPrimFactory.createRingByDirectPositions(directPositionList);
    List<Ring> interiors = new ArrayList<Ring>();
View Full Code Here

Examples of org.opengis.geometry.PositionFactory.createDirectPosition()

    directPositionList.add(positionFactory.createDirectPosition(new double[] {20, 10, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {40, 10, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {50, 40, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {30, 50, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {10, 30, 0.0}));
    directPositionList.add(positionFactory.createDirectPosition(new double[] {20, 10, 0.0}));

    Ring exteriorRing = tPrimFactory.createRingByDirectPositions(directPositionList);
    List<Ring> interiors = new ArrayList<Ring>();

    SurfaceBoundary boundary = new SurfaceBoundaryImpl(cf.getCoordinateReferenceSystem(), exteriorRing, interiors);
View Full Code Here

Examples of org.opengis.geometry.PositionFactory.createDirectPosition()

    //GeometryFactoryImpl tCoordFactory = aGeomFactory.getGeometryFactoryImpl();
    //PrimitiveFactoryImpl tPrimFactory = aGeomFactory.getPrimitiveFactory();
   
    /* Defining Positions for LineStrings */
    ArrayList<Position> line1 = new ArrayList<Position>();
    line1.add(new PositionImpl(positionFactory.createDirectPosition(new double[]{50, 20})));
    line1.add(new PositionImpl(positionFactory.createDirectPosition(new double[]{30, 30})));
    line1.add(new PositionImpl(positionFactory.createDirectPosition(new double[]{20, 50})));
    line1.add(new PositionImpl(positionFactory.createDirectPosition(new double[]{20, 70})));

    ArrayList<Position> line2 = new ArrayList<Position>();
View Full Code Here

Examples of org.opengis.geometry.PositionFactory.createDirectPosition()

    //PrimitiveFactoryImpl tPrimFactory = aGeomFactory.getPrimitiveFactory();
   
    /* Defining Positions for LineStrings */
    ArrayList<Position> line1 = new ArrayList<Position>();
    line1.add(new PositionImpl(positionFactory.createDirectPosition(new double[]{50, 20})));
    line1.add(new PositionImpl(positionFactory.createDirectPosition(new double[]{30, 30})));
    line1.add(new PositionImpl(positionFactory.createDirectPosition(new double[]{20, 50})));
    line1.add(new PositionImpl(positionFactory.createDirectPosition(new double[]{20, 70})));

    ArrayList<Position> line2 = new ArrayList<Position>();
    line2.add(new PositionImpl(positionFactory.createDirectPosition(new double[]{20, 70})));
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.