Package com.impetus.kundera.gis.geometry

Examples of com.impetus.kundera.gis.geometry.Triangle


    }

    public List<Person> findWithinTriangle(double x1, double y1, double x2, double y2, double x3, double y3)
    {

        Triangle triangle = new Triangle(x1, y1, x2, y2, x3, y3);

        Query q = em.createQuery("Select p from Person p where p.currentLocation IN :triangle");
        q.setParameter("triangle", triangle);
        List<Person> persons = q.getResultList();
        return persons;
View Full Code Here


    @Override
    public Object createGeospatialQuery(String geolocationColumnName, Object shape, Object query)
    {
        List triangleList = new ArrayList();

        Triangle triangle = (Triangle) shape;

        triangleList.add(new double[] { triangle.p0.x, triangle.p0.y }); // A
        triangleList.add(new double[] { triangle.p1.x, triangle.p1.y }); // B
        triangleList.add(new double[] { triangle.p2.x, triangle.p2.y }); // C
View Full Code Here

TOP

Related Classes of com.impetus.kundera.gis.geometry.Triangle

Copyright © 2018 www.massapicom. 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.