Examples of SurfaceImpl


Examples of org.geotools.geometry.iso.primitive.SurfaceImpl

    }
    return rCurve;
  }

  private SurfaceImpl createSurfaceFromWKT(CoordinateReferenceSystem crs, String aWKTsurface) {
    SurfaceImpl rSurface = null;
    WKTReader wktReader = new WKTReader(crs);
    try {
      rSurface = (SurfaceImpl) wktReader.read(aWKTsurface);
    } catch (ParseException e) {
      e.printStackTrace();
View Full Code Here

Examples of org.geotools.geometry.iso.primitive.SurfaceImpl

    List resultPolyList = new ArrayList();
    // add Polygons for all shells
    for (Iterator it = shellList.iterator(); it.hasNext();) {
      EdgeRing er = (EdgeRing) it.next();

      SurfaceImpl poly = er.toPolygon();
      resultPolyList.add(poly);
    }
    return resultPolyList;
  }
View Full Code Here

Examples of org.geotools.geometry.iso.primitive.SurfaceImpl

   
    SurfaceBoundaryImpl surfaceBoundary = new SurfaceBoundaryImpl(crs,
        this.getRing(), interiorRings);
      //aGeometryFactory.getPrimitiveFactory().createSurfaceBoundary(this.getRing(),interiorRings);

    return new SurfaceImpl(surfaceBoundary); //aGeometryFactory.getPrimitiveFactory().createSurface(surfaceBoundary);
  }
View Full Code Here

Examples of org.geotools.geometry.iso.primitive.SurfaceImpl

  private Surface readPolygonText() throws IOException, ParseException {

    String nextToken = getNextEmptyOrOpener();

    if (nextToken.equals(EMPTY)) {
      return new SurfaceImpl((SurfaceBoundary) null); //this.primitiveFactory.createSurface((SurfaceBoundary) null);
    }

    ArrayList<Ring> holes = new ArrayList<Ring>();
    Ring shell = this.readLinearRingText();
    nextToken = getNextCloserOrComma();
    while (nextToken.equals(COMMA)) {
      Ring hole = readLinearRingText();
      holes.add(hole);
      nextToken = getNextCloserOrComma();
    }
    SurfaceBoundary sfb = new SurfaceBoundaryImpl(crs,
        shell, holes); //this.primitiveFactory.createSurfaceBoundary(shell, holes);
    return new SurfaceImpl(sfb); //this.primitiveFactory.createSurface(sfb);
  }
View Full Code Here

Examples of org.geotools.geometry.iso.primitive.SurfaceImpl

          if (hull instanceof CurveImpl) {
            CurveImpl curve = (CurveImpl) prim.getConvexHull();
            positions.addAll( ((CurveImpl)curve).asDirectPositions() );
          }
          else if (hull instanceof SurfaceImpl) {
            SurfaceImpl surface = (SurfaceImpl) prim.getConvexHull();
            positions.addAll( ((RingImplUnsafe)((SurfaceImpl)surface).getBoundary().getExterior()).asDirectPositions() );
          }
         
          /*
          // this is not a point, so get its boundary and add its
View Full Code Here

Examples of org.geotools.geometry.iso.primitive.SurfaceImpl

    Ring exterior = new RingImpl(orientableCurves);
    List<Ring> interiorList = new ArrayList<Ring>();

    SurfaceBoundaryImpl sb =
      new SurfaceBoundaryImpl(crs, exterior, interiorList);
    return new SurfaceImpl(sb);
   
    //return this.geomFactory.getPrimitiveFactory().createSurfaceByDirectPositions((List<DirectPosition>) positions);
  }
View Full Code Here

Examples of org.geotools.geometry.iso.primitive.SurfaceImpl

    //System.out.println("Length of Curve is " + curve1.length());
    //System.out.println("Envelope of the Curve is " +  curve1.getEnvelope());
  }
 
  private void _testSurface(GeometryBuilder builder) {
    SurfaceImpl surface = (SurfaceImpl) this._createSurface1(builder);
    //System.out.print("\n******************* SURFACE GENERATED BY SURFACEBOUNDARY");
    //System.out.println("\n" + surface);
    //System.out.println("\n Coordinate Dimension: " + surface.getCoordinateDimension());
    //System.out.println("\n Dimension: " + surface.getDimension(null));
    ////System.out.println("\n Dimension Model: " + surface.getFeatGeometryFactory().getDimensionModel());
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.