Examples of createDirectPosition()


Examples of org.geotools.geometry.iso.PositionFactoryImpl.createDirectPosition()

    // public PrimitiveImpl createPrimitive(Envelope envelope);
    // indirect: public SurfaceImpl createSurface(SurfaceBoundary boundary);
    // indirect: public SurfaceImpl createSurfaceByDirectPositions(List<DirectPosition> positions);
    // indirect: public SurfaceBoundaryImpl createSurfaceBoundary(Ring exterior, List<Ring> interiors);
    // indirect: public Ring createRingByDirectPositions(List<DirectPosition> directPositions);
    DirectPosition dp1 = posf.createDirectPosition(new double[]{10, 10});
    DirectPosition dp2 = posf.createDirectPosition(new double[]{70, 30});
    Envelope env1 = cf.createEnvelope(dp1, dp2);
    PrimitiveImpl prim1 = (PrimitiveImpl) pf.createPrimitive(env1);
    assertNotNull(prim1);
   
View Full Code Here

Examples of org.geotools.geometry.iso.PositionFactoryImpl.createDirectPosition()

    // indirect: public SurfaceImpl createSurface(SurfaceBoundary boundary);
    // indirect: public SurfaceImpl createSurfaceByDirectPositions(List<DirectPosition> positions);
    // indirect: public SurfaceBoundaryImpl createSurfaceBoundary(Ring exterior, List<Ring> interiors);
    // indirect: public Ring createRingByDirectPositions(List<DirectPosition> directPositions);
    DirectPosition dp1 = posf.createDirectPosition(new double[]{10, 10});
    DirectPosition dp2 = posf.createDirectPosition(new double[]{70, 30});
    Envelope env1 = cf.createEnvelope(dp1, dp2);
    PrimitiveImpl prim1 = (PrimitiveImpl) pf.createPrimitive(env1);
    assertNotNull(prim1);
   
  }
View Full Code Here

Examples of org.geotools.geometry.iso.PositionFactoryImpl.createDirectPosition()

   
    PositionFactoryImpl positionFactory = (PositionFactoryImpl) c.getComponentInstanceOfType(PositionFactory.class);
    ComplexFactoryImpl complf = (ComplexFactoryImpl) c.getComponentInstanceOfType(ComplexFactory.class);
     
    // testcreateCompositeCurve()
    PointImpl p1 = new PointImpl( positionFactory.createDirectPosition(new double[]{50, 20}) );
    PointImpl p2 = new PointImpl( positionFactory.createDirectPosition(new double[]{70, 80}) );
   
    CompositePoint comppoint1 = complf.createCompositePoint(p1);
    CompositePoint comppoint2 = complf.createCompositePoint(p2);
   
View Full Code Here

Examples of org.geotools.geometry.iso.PositionFactoryImpl.createDirectPosition()

    PositionFactoryImpl positionFactory = (PositionFactoryImpl) c.getComponentInstanceOfType(PositionFactory.class);
    ComplexFactoryImpl complf = (ComplexFactoryImpl) c.getComponentInstanceOfType(ComplexFactory.class);
     
    // testcreateCompositeCurve()
    PointImpl p1 = new PointImpl( positionFactory.createDirectPosition(new double[]{50, 20}) );
    PointImpl p2 = new PointImpl( positionFactory.createDirectPosition(new double[]{70, 80}) );
   
    CompositePoint comppoint1 = complf.createCompositePoint(p1);
    CompositePoint comppoint2 = complf.createCompositePoint(p2);
   
    assertNotNull(comppoint1);
View Full Code Here

Examples of org.geotools.geometry.iso.PositionFactoryImpl.createDirectPosition()

    assertSame( positionFactory.getCoordinateReferenceSystem(), primitiveFactory.getCoordinateReferenceSystem() );
    assertNotNull(positionFactory);
    assertNotNull(primitiveFactory);
   
    // create position and point
    DirectPosition here = positionFactory.createDirectPosition(ords);
    Point point = primitiveFactory.createPoint(here);
    assertNotNull(here.getCoordinateReferenceSystem());
    assertNotNull(point.getCoordinateReferenceSystem());
    assertEquals(here.getCoordinateReferenceSystem(), point.getCoordinateReferenceSystem());
    assertEquals(here, point.getDirectPosition());
View Full Code Here

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

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

    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

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

    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

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

   
    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

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

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