Package com.vividsolutions.jts.geom

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


                    Geometry gt2 = (Geometry) tmp2.getDefaultGeometry();

                    if (gt2 instanceof Point) {
                        Point pt = (Point) gt2;

                        if (pt.equalsExact(str) || pt.equalsExact(end)) {
                            return true;
                        }
                    }
                }
            }
View Full Code Here


                    Geometry gt2 = (Geometry) tmp2.getDefaultGeometry();

                    if (gt2 instanceof Point) {
                        Point pt = (Point) gt2;

                        if (pt.equalsExact(str) || pt.equalsExact(end)) {
                            return true;
                        }
                    }
                }
            }
View Full Code Here

        try {
            assertTrue(i.hasNext());
   
            while (i.hasNext()) {
                SimpleFeature feature = (SimpleFeature) i.next();
                assertTrue(point.equalsExact((Geometry) feature.getAttribute(aname("geometry"))));
            }
        }
        finally {
            i.close();
        }
View Full Code Here

        try {
            assertTrue(i.hasNext());
   
            while (i.hasNext()) {
                SimpleFeature feature = (SimpleFeature) i.next();
                assertTrue(point.equalsExact((Geometry) feature.getAttribute(aname("geometry"))));
            }
        }
        finally {
            i.close();
        }
View Full Code Here

             }

             public void check(int index, SimpleFeature feature) {
                 assertEquals(4, feature.getAttributeCount());
                 Point p = gf.createPoint(new Coordinate(index, index));
                 assertTrue(p.equalsExact((Geometry) feature.getAttribute(aname("geometry"))));

                 Number ip = (Number) feature.getAttribute(aname("intProperty"));
                 assertEquals(index, ip.intValue());
             }
         });
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.