Package org.opengis.geometry

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


    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

   
    // 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

    // 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

    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

    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

    //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

    //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

   
    /* 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})));
    line2.add(new PositionImpl(positionFactory.createDirectPosition(new double[]{40, 80})));
View Full Code Here

    /* 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})));
    line2.add(new PositionImpl(positionFactory.createDirectPosition(new double[]{40, 80})));
    line2.add(new PositionImpl(positionFactory.createDirectPosition(new double[]{70, 80})));
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.