Package org.geotools.geometry.iso.coordinate

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


    ComplexFactoryImpl complf = (ComplexFactoryImpl) c.getComponentInstanceOfType(ComplexFactory.class);
    PrimitiveFactoryImpl pf = (PrimitiveFactoryImpl) c.getComponentInstanceOfType(PrimitiveFactory.class);
    GeometryFactoryImpl geomFact = (GeometryFactoryImpl) c.getComponentInstanceOfType(GeometryFactory.class);
   
    List<DirectPosition> directPositionList = new ArrayList<DirectPosition>();
    directPositionList.add(geomFact.createDirectPosition(new double[] {20, 10}));
    directPositionList.add(geomFact.createDirectPosition(new double[] {40, 10}));
    directPositionList.add(geomFact.createDirectPosition(new double[] {50, 40}));
    directPositionList.add(geomFact.createDirectPosition(new double[] {30, 50}));
    directPositionList.add(geomFact.createDirectPosition(new double[] {10, 30}));
    directPositionList.add(geomFact.createDirectPosition(new double[] {20, 10}));
View Full Code Here


    PrimitiveFactoryImpl pf = (PrimitiveFactoryImpl) c.getComponentInstanceOfType(PrimitiveFactory.class);
    GeometryFactoryImpl geomFact = (GeometryFactoryImpl) c.getComponentInstanceOfType(GeometryFactory.class);
   
    List<DirectPosition> directPositionList = new ArrayList<DirectPosition>();
    directPositionList.add(geomFact.createDirectPosition(new double[] {20, 10}));
    directPositionList.add(geomFact.createDirectPosition(new double[] {40, 10}));
    directPositionList.add(geomFact.createDirectPosition(new double[] {50, 40}));
    directPositionList.add(geomFact.createDirectPosition(new double[] {30, 50}));
    directPositionList.add(geomFact.createDirectPosition(new double[] {10, 30}));
    directPositionList.add(geomFact.createDirectPosition(new double[] {20, 10}));
View Full Code Here

    GeometryFactoryImpl geomFact = (GeometryFactoryImpl) c.getComponentInstanceOfType(GeometryFactory.class);
   
    List<DirectPosition> directPositionList = new ArrayList<DirectPosition>();
    directPositionList.add(geomFact.createDirectPosition(new double[] {20, 10}));
    directPositionList.add(geomFact.createDirectPosition(new double[] {40, 10}));
    directPositionList.add(geomFact.createDirectPosition(new double[] {50, 40}));
    directPositionList.add(geomFact.createDirectPosition(new double[] {30, 50}));
    directPositionList.add(geomFact.createDirectPosition(new double[] {10, 30}));
    directPositionList.add(geomFact.createDirectPosition(new double[] {20, 10}));

   
View Full Code Here

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

   
    // test createCompositeSurface()
View Full Code Here

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

   
    // test createCompositeSurface()
    Surface s1 = pf.createSurfaceByDirectPositions(directPositionList);
View Full Code Here

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

   
    // test createCompositeSurface()
    Surface s1 = pf.createSurfaceByDirectPositions(directPositionList);
    List<OrientableSurface> surfaceList = new ArrayList<OrientableSurface>();
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

      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}));

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

      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}));

      Ring exteriorRing = (Ring) tPrimFactory.createRingByDirectPositions(directPositionList);
      List<Ring> interiors = new ArrayList<Ring>();
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.