Package org.opengis.geometry.aggregate

Examples of org.opengis.geometry.aggregate.MultiCurve


    LineSegment line1 = gf.createLineSegment(dp1, pf.createDirectPosition(new double[]{20, 40}));
    LineSegment line2 = gf.createLineSegment(dp2, pf.createDirectPosition(new double[]{45, 25}));
    Set<OrientableCurve> curves = new HashSet<OrientableCurve>();
    curves.add( new CurveImpl( line1 ) );
    curves.add( new CurveImpl( line2 ) );
    MultiCurve mc = af.createMultiCurve(curves);
   
    assertNotNull(mc);
    //assertNotNull(mc.getBoundary());
    assertNotNull(mc.getEnvelope());
    assertEquals(mc.getCoordinateDimension(), 2);
    assertEquals(mc.getElements().size(), 2);
    assertEquals(mc.getElements(), curves);
   
    // test equals
    assertTrue(mc.equals(new MultiCurveImpl(mc.getCoordinateReferenceSystem(), curves)));
  }
View Full Code Here

TOP

Related Classes of org.opengis.geometry.aggregate.MultiCurve

Copyright © 2018 www.massapicom. 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.