Examples of generateIntersections()


Examples of net.lucidviews.geoalgo.limb.intersection.IIntersectionGenerator.generateIntersections()

    while (features.hasNext())
    {
      Feature feature = features.next();
     
      // Generate the intersections for this feature.
      Geometry intersections = intersectionGenerator.generateIntersections( feature );
      if (intersections != null)
      {
        int numOfIntersections = intersections.getNumGeometries();
        for (int i=0; i<numOfIntersections; i++)
        {
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.intersection.SimpleIntersectionGenerator.generateIntersections()

    Geometry example1 = this.geometryFactory.createLinearRing( LimbGeneratorTest.Utils.createBoxCoords( 500, 1500, 500, 1500 ) );
   
    SimpleIntersectionGenerator testObj = new SimpleIntersectionGenerator();
    System.out.println( "  -- Corner of linear ring" );
    testObj.setShape( polygonBounds );
    System.out.println( testObj.generateIntersections( example1 ) );
    System.out.println( testObj.generateIntersections( example1 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ) );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getGeometryN( 0 ) );
   
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.intersection.SimpleIntersectionGenerator.generateIntersections()

   
    SimpleIntersectionGenerator testObj = new SimpleIntersectionGenerator();
    System.out.println( "  -- Corner of linear ring" );
    testObj.setShape( polygonBounds );
    System.out.println( testObj.generateIntersections( example1 ) );
    System.out.println( testObj.generateIntersections( example1 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ) );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getGeometryN( 0 ) );
   
    assertEquals( "Intersection with linear ring does not create points.", "MultiPoint", testObj.generateIntersections( example1 ).getGeometryType() );
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.intersection.SimpleIntersectionGenerator.generateIntersections()

    SimpleIntersectionGenerator testObj = new SimpleIntersectionGenerator();
    System.out.println( "  -- Corner of linear ring" );
    testObj.setShape( polygonBounds );
    System.out.println( testObj.generateIntersections( example1 ) );
    System.out.println( testObj.generateIntersections( example1 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ) );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getGeometryN( 0 ) );
   
    assertEquals( "Intersection with linear ring does not create points.", "MultiPoint", testObj.generateIntersections( example1 ).getGeometryType() );
   
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.intersection.SimpleIntersectionGenerator.generateIntersections()

    System.out.println( "  -- Corner of linear ring" );
    testObj.setShape( polygonBounds );
    System.out.println( testObj.generateIntersections( example1 ) );
    System.out.println( testObj.generateIntersections( example1 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ) );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getGeometryN( 0 ) );
   
    assertEquals( "Intersection with linear ring does not create points.", "MultiPoint", testObj.generateIntersections( example1 ).getGeometryType() );
   
    System.out.println( "  -- Corner of Polygon" );
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.intersection.SimpleIntersectionGenerator.generateIntersections()

    testObj.setShape( polygonBounds );
    System.out.println( testObj.generateIntersections( example1 ) );
    System.out.println( testObj.generateIntersections( example1 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ) );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getGeometryN( 0 ) );
   
    assertEquals( "Intersection with linear ring does not create points.", "MultiPoint", testObj.generateIntersections( example1 ).getGeometryType() );
   
    System.out.println( "  -- Corner of Polygon" );
    testObj.setShape( polygon );
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.intersection.SimpleIntersectionGenerator.generateIntersections()

    System.out.println( testObj.generateIntersections( example1 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ) );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getGeometryN( 0 ) );
   
    assertEquals( "Intersection with linear ring does not create points.", "MultiPoint", testObj.generateIntersections( example1 ).getGeometryType() );
   
    System.out.println( "  -- Corner of Polygon" );
    testObj.setShape( polygon );
    System.out.println( testObj.generateIntersections( example1 ) );
    System.out.println( testObj.generateIntersections( example1 ).getNumGeometries() );
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.intersection.SimpleIntersectionGenerator.generateIntersections()

   
    assertEquals( "Intersection with linear ring does not create points.", "MultiPoint", testObj.generateIntersections( example1 ).getGeometryType() );
   
    System.out.println( "  -- Corner of Polygon" );
    testObj.setShape( polygon );
    System.out.println( testObj.generateIntersections( example1 ) );
    System.out.println( testObj.generateIntersections( example1 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ) );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getGeometryN( 0 ) );
   
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.intersection.SimpleIntersectionGenerator.generateIntersections()

    assertEquals( "Intersection with linear ring does not create points.", "MultiPoint", testObj.generateIntersections( example1 ).getGeometryType() );
   
    System.out.println( "  -- Corner of Polygon" );
    testObj.setShape( polygon );
    System.out.println( testObj.generateIntersections( example1 ) );
    System.out.println( testObj.generateIntersections( example1 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ) );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getGeometryN( 0 ) );
   
    assertEquals( "Intersection with polygon does not create points.", "MultiPoint", testObj.generateIntersections( example1 ).getGeometryType() );
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.intersection.SimpleIntersectionGenerator.generateIntersections()

   
    System.out.println( "  -- Corner of Polygon" );
    testObj.setShape( polygon );
    System.out.println( testObj.generateIntersections( example1 ) );
    System.out.println( testObj.generateIntersections( example1 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ) );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getNumGeometries() );
    System.out.println( testObj.generateIntersections( example1 ).getGeometryN( 0 ).getGeometryN( 0 ) );
   
    assertEquals( "Intersection with polygon does not create points.", "MultiPoint", testObj.generateIntersections( example1 ).getGeometryType() );
  }
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.