Package org.geotools.geometry.iso.coordinate

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


    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


   
    GeometryFactoryImpl tCoordFactory = (GeometryFactoryImpl) builder.getGeometryFactory();

   
    // CoordinateFactory.createDirectPosition(double[])
    DirectPosition dp1 = tCoordFactory.createDirectPosition(new double[] {0, 0});
    DirectPosition dp2 = tCoordFactory.createDirectPosition(new double[] {100, 100});

    DirectPosition dp0 = tCoordFactory.createDirectPosition(new double[] {100, 100});
   
    // DirectPosition.equals(DirectPosition)
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

    GeometryFactoryImpl tCoordFactory = (GeometryFactoryImpl) builder.getGeometryFactory();

   
    // CoordinateFactory.createDirectPosition(double[])
    DirectPosition dp1 = tCoordFactory.createDirectPosition(new double[] {0, 0});
    DirectPosition dp2 = tCoordFactory.createDirectPosition(new double[] {100, 100});

    DirectPosition dp0 = tCoordFactory.createDirectPosition(new double[] {100, 100});
   
    // DirectPosition.equals(DirectPosition)
    assertTrue(dp2.equals(dp0));
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

   
    // CoordinateFactory.createDirectPosition(double[])
    DirectPosition dp1 = tCoordFactory.createDirectPosition(new double[] {0, 0});
    DirectPosition dp2 = tCoordFactory.createDirectPosition(new double[] {100, 100});

    DirectPosition dp0 = tCoordFactory.createDirectPosition(new double[] {100, 100});
   
    // DirectPosition.equals(DirectPosition)
    assertTrue(dp2.equals(dp0));

    // Envelope.getDimension()
View Full Code Here

   
    // Envelope.equals(Envelope)
    assertTrue(env1.equals(env2));
   
   
    DirectPosition dp3 = tCoordFactory.createDirectPosition(new double[] {0,0});
    DirectPosition dp4 = tCoordFactory.createDirectPosition(new double[] {100,50});
    DirectPosition dp5 = tCoordFactory.createDirectPosition(new double[] {100.01,50});
    DirectPosition dp6 = tCoordFactory.createDirectPosition(new double[] {50,100});
    DirectPosition dp7 = tCoordFactory.createDirectPosition(new double[] {50,100.01});
   
View Full Code Here

    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>();
   
    SurfaceBoundaryImpl surfaceBoundary1 = tPrimFactory.createSurfaceBoundary(exteriorRing, interiors );
View Full Code Here

    // Envelope.equals(Envelope)
    assertTrue(env1.equals(env2));
   
   
    DirectPosition dp3 = tCoordFactory.createDirectPosition(new double[] {0,0});
    DirectPosition dp4 = tCoordFactory.createDirectPosition(new double[] {100,50});
    DirectPosition dp5 = tCoordFactory.createDirectPosition(new double[] {100.01,50});
    DirectPosition dp6 = tCoordFactory.createDirectPosition(new double[] {50,100});
    DirectPosition dp7 = tCoordFactory.createDirectPosition(new double[] {50,100.01});
   
    // Envelope.contains(DirectPosition)
View Full Code Here

    assertTrue(env1.equals(env2));
   
   
    DirectPosition dp3 = tCoordFactory.createDirectPosition(new double[] {0,0});
    DirectPosition dp4 = tCoordFactory.createDirectPosition(new double[] {100,50});
    DirectPosition dp5 = tCoordFactory.createDirectPosition(new double[] {100.01,50});
    DirectPosition dp6 = tCoordFactory.createDirectPosition(new double[] {50,100});
    DirectPosition dp7 = tCoordFactory.createDirectPosition(new double[] {50,100.01});
   
    // Envelope.contains(DirectPosition)
    //System.outprintln("Contains Method for " + env1);
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.