Package org.opengis.geometry.primitive

Examples of org.opengis.geometry.primitive.OrientableCurve


    // create curvesegments from line
    ArrayList<CurveSegment> segs = new ArrayList<CurveSegment>();
    segs.add(line);

    // Create list of OrientableCurves that make up the surface
    OrientableCurve curve = builder.createCurve(segs);
    List<OrientableCurve> orientableCurves = new ArrayList<OrientableCurve>();
    orientableCurves.add(curve);

    // create the interior ring and a list of empty interior rings (holes)
    Ring extRing = builder2.createRing(orientableCurves);
View Full Code Here


        dpList), 0.0);
    List<CurveSegment> segments = new ArrayList<CurveSegment>();
    segments.add(lineString);
   
    // Create List of OrientableCurve´s (Curve´s)
    OrientableCurve curve = new CurveImpl(crs, segments);
    List<OrientableCurve> orientableCurves = new ArrayList<OrientableCurve>();
    orientableCurves.add(curve);

    this.ring = new RingImpl(orientableCurves);   
    // this.ring = (RingImpl) this.mFeatGeomFactory.getPrimitiveFactory().createRingByDirectPositions(dpList);
View Full Code Here

    // Create List of CurveSegment´s (LineString´s)
    LineStringImpl lineString = new LineStringImpl(new PointArrayImpl(
        positionList), 0.0);
    List<CurveSegment> segments = new ArrayList<CurveSegment>();
    segments.add(lineString);   
    OrientableCurve curve = new CurveImpl(crs, segments);
    List<OrientableCurve> orientableCurves = new ArrayList<OrientableCurve>();
    orientableCurves.add(curve);
   
    Ring exterior = new RingImpl(orientableCurves);
    List<Ring> interiorList = new ArrayList<Ring>();
View Full Code Here

   */
  public Ring createRingByDirectPositions(List<DirectPosition> directPositions) {
    // Test ok

    // Create List of OrientableCurve´s (Curve´s)
    OrientableCurve curve = this
        .createCurveByDirectPositions(directPositions);
    List<OrientableCurve> orientableCurves = new ArrayList<OrientableCurve>();
    orientableCurves.add(curve);

    return this.createRing(orientableCurves);
View Full Code Here

   * @return
   */
  public Ring createRingByPositions(List<Position> aPositions) {

    // Create List of OrientableCurve´s (Curve´s)
    OrientableCurve curve = this.createCurveByPositions(aPositions);
    List<OrientableCurve> orientableCurves = new ArrayList<OrientableCurve>();
    orientableCurves.add(curve);

    return this.createRing(orientableCurves);

View Full Code Here

//     create curvesegments from line
    ArrayList<CurveSegment> segs = new ArrayList<CurveSegment>();
    segs.add(line);

//     Create list of OrientableCurves that make up the surface
    OrientableCurve curve = tPrimFactory.createCurve(segs);
    List<OrientableCurve> orientableCurves = new ArrayList<OrientableCurve>();
    orientableCurves.add(curve);

//     create the interior ring and a list of empty interior rings (holes)
    Ring extRing = tPrimFactory.createRing(orientableCurves);
View Full Code Here

   
    LineStringImpl lineString = new LineStringImpl(new PointArrayImpl(
        positions), 0.0);
    List<CurveSegment> segments = new ArrayList<CurveSegment>();
    segments.add(lineString);   
    OrientableCurve curve = new CurveImpl(crs, segments);
    List<OrientableCurve> orientableCurves = new ArrayList<OrientableCurve>();
    orientableCurves.add(curve);
   
    Ring exterior = new RingImpl(orientableCurves);
    List<Ring> interiorList = new ArrayList<Ring>();
View Full Code Here

TOP

Related Classes of org.opengis.geometry.primitive.OrientableCurve

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.