Examples of SurfaceImpl


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

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

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

        PointImpl p2 = new PointImpl(iterator2.next());
        assertEquals(p1, p2, epsilon);
      }
    }
    else if (geom1 instanceof SurfaceImpl && geom2 instanceof SurfaceImpl) {
      SurfaceImpl surface1 = (SurfaceImpl) geom1;
      SurfaceImpl surface2 = (SurfaceImpl) geom2;
      List<Ring> list1 = surface1.getBoundaryRings();
      List<Ring> list2 = surface2.getBoundaryRings();
      Iterator<Ring> iterator1 = list1.iterator();
      Iterator<Ring> iterator2 = list2.iterator();
      while (iterator1.hasNext() && iterator2.hasNext()) {
        RingImplUnsafe r1 = (RingImplUnsafe) iterator1.next();
        RingImplUnsafe r2 = (RingImplUnsafe) iterator2.next();
View Full Code Here

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

  /**
   * SURFACE / CURVE TESTS
   */
  public void _testSurfaceCurve() {

    SurfaceImpl surfaceA = this.createSurfaceAwithoutHole();



   
//    Parameters:
View Full Code Here

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

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

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

    PointImpl point = this.createPointFromWKT(aWKTpoint);
    return (CompositePointImpl) this.builder.getComplexFactory().createCompositePoint(point);
  }
 
  private CompositeSurfaceImpl createCompositeSurfaceFromWKT(String aWKTsurface) {
    SurfaceImpl surf = this.createSurfaceFromWKT(aWKTsurface);
    List<OrientableSurface> surfList = new ArrayList<OrientableSurface>();
    surfList.add(surf);
    return (CompositeSurfaceImpl) this.builder.getComplexFactory().createCompositeSurface(surfList);
  }
View Full Code Here

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

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

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

  }
 
  private void _testSurfaces() {

    // Surface with hole that does not touch the surface shell - is simple
    SurfaceImpl surface1 = this.createSurfaceAHoleNotTouchesShell(this.builder);
    assertTrue(surface1.isSimple());

    // Surface with hole that touches the surface shell - is NOT simple
    SurfaceImpl surface2 = this.createSurfaceAHoleTouchesShell(this.builder);
    assertTrue(!surface2.isSimple());
  }
View Full Code Here

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

    return tPrimFactory.createCurve(tLineList1);
   
  }
 
  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

  }
 
 
  private void _testPolygonPolygon(CoordinateReferenceSystem crs) {

    SurfaceImpl surfaceAwithoutHole = this.createSurfaceAwithoutHole(crs);
    SurfaceImpl surfaceAwithHole = this.createSurfaceAwithHole(crs);
    SurfaceImpl surfaceAwithTwoHoles = this.createSurfaceAwithTwoHoles(crs);
    SurfaceImpl surfaceBwithoutHole = this.createSurfaceBwithoutHole(crs);
    SurfaceImpl surfaceBwithHole = this.createSurfaceBwithHole(crs);
    SurfaceImpl surfaceC = this.createSurfaceC(crs);
   
    SurfaceImpl s1 = null;
    SurfaceImpl s2 = null;
   
    // (S1)
    // A WITHOUT HOLES - B WITHOUT HOLES:
    // INTERSECTION SHELL-A/SHELL-B
    s1 = surfaceAwithoutHole;
View Full Code Here

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

  }

  private void _testCurvePolygon(CoordinateReferenceSystem crs) {

    SurfaceImpl surfaceAwithoutHole = this.createSurfaceAwithoutHole(crs);
    SurfaceImpl surfaceAwithHole = this.createSurfaceAwithHole(crs);
    SurfaceImpl surfaceAwithTwoHoles = this.createSurfaceAwithTwoHoles(crs);
    SurfaceImpl surfaceBwithoutHole = this.createSurfaceBwithoutHole(crs);
    SurfaceImpl surfaceBwithHole = this.createSurfaceBwithHole(crs);
    SurfaceImpl surfaceC = this.createSurfaceC(crs);
    CurveImpl curveA = this.createCurveA(crs);
    CurveImpl curveF = this.createCurveF(crs);

    GeometryImpl g1 = null;
    GeometryImpl g2 = null;
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.