Examples of equalsExact()


Examples of com.vividsolutions.jts.geom.Geometry.equalsExact()

    static public boolean equalsExactTolerance(Geometry arg0, Geometry arg1,
            double arg2) {
        Geometry _this = arg0;

        return _this.equalsExact(arg1, arg2);
    }

    static public boolean equalsExact(Geometry arg0, Geometry arg1) {
        Geometry _this = arg0;
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.equalsExact()

    }

    static public boolean equalsExact(Geometry arg0, Geometry arg1) {
        Geometry _this = arg0;

        return _this.equalsExact(arg1);
    }

    static public int numGeometries(Geometry arg0) {
        GeometryCollection _this = (GeometryCollection) arg0;
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.equalsExact()

     static public boolean equalsExactTolerance(Geometry arg0,Geometry arg1, Double arg2)
     {
           if (arg0 == null || arg1 == null || arg2 == null) return false;
           Geometry _this = arg0;

           return _this.equalsExact(arg1,arg2);
     }

     static public boolean equalsExact(Geometry arg0,Geometry arg1)
     {
           if (arg0 == null || arg1 == null) return false;
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.equalsExact()

     static public boolean equalsExact(Geometry arg0,Geometry arg1)
     {
           if (arg0 == null || arg1 == null) return false;
           Geometry _this = arg0;

           return _this.equalsExact(arg1);
     }

     static public int numGeometries(Geometry arg0)
     {
           if (!(arg0 instanceof GeometryCollection)) return 0;
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.equalsExact()

       
        @Override
        public ROI intersect(ROI roi) {
            final Geometry geom = getGeometry(roi);
            // is it a rectangle?
            if (geom != null && geom.equalsExact(geom.getEnvelope())) {
                GeometryClipper clipper = new GeometryClipper(geom.getEnvelopeInternal());
                Geometry intersect = clipper.clip(getAsGeometry(), true);
                return new ROIGeometry(intersect);
   
            } else {
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.equalsExact()

        FeatureIterator fi = fc.features();
        Feature f = fi.next();
       
        //test that geometry was actually reprojected
        Geometry g = (Geometry) f.getDefaultGeometryProperty().getValue();
        assertFalse(g.equalsExact(WKT.read(
                "POLYGON((500225 500025,500225 500075,500275 500050,500275 500025,500225 500025))")));
        fi.close();
        assertEquals(CRS.decode("EPSG:4326"), f.getType().getCoordinateReferenceSystem());
    }
   
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.equalsExact()

        FeatureIterator fi = fc.features();
        Feature f = fi.next();
       
        //test that the geometry was left in tact
        Geometry g = (Geometry) f.getDefaultGeometryProperty().getValue();
        assertTrue(g.equalsExact(WKT.read("LINESTRING(500125 500025,500175 500075)")));
       
        fi.close();
        assertEquals(CRS.decode("EPSG:32615"), f.getType().getCoordinateReferenceSystem());
    }
   
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.equalsExact()

        FeatureIterator fi = fc.features();
        Feature f = fi.next();
       
        //test that geometry was reprojected
        Geometry g = (Geometry) f.getDefaultGeometryProperty().getValue();
        assertFalse(g.equalsExact(WKT.read("POINT(500050 500050)")));
        fi.close();
        assertEquals(CRS.decode("EPSG:4326"), f.getType().getCoordinateReferenceSystem());
    }
   
    public void testForceCoverage() throws Exception {
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.equalsExact()

        Geometry actual = new WKTReader().read(response.getOutputStreamContent());
        Geometry expected = new WKTReader().read("MULTIPOLYGON(((-1 0, 0 1, 1 0, 0 -1, -1 0)), " +
            " ((-2 6, 1 6, 1 3, -2 3, -2 6)), ((-1 5, 2 5, 2 2, -1 2, -1 5)))");
       
        // equals does not work with geometry collections... go figure
        assertTrue(expected.equalsExact(actual));
    }
}
View Full Code Here

Examples of com.vividsolutions.jts.geom.Geometry.equalsExact()

        FeatureIterator fi = fc.features();
        Feature f = fi.next();
       
        //test that geometry was actually reprojected
        Geometry g = (Geometry) f.getDefaultGeometryProperty().getValue();
        assertFalse(g.equalsExact(WKT.read(
                "POLYGON((500225 500025,500225 500075,500275 500050,500275 500025,500225 500025))")));
        fi.close();
        assertEquals(CRS.decode("EPSG:4326"), f.getType().getCoordinateReferenceSystem());
    }
   
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.