Package lupos.engine.operators.singleinput

Examples of lupos.engine.operators.singleinput.TypeErrorException


            Geometry geo2 = GeoHelper.getGeoSPARQLGeometry(args[1]);
            return new Boolean(geo1.relate(geo2, "TFF*TFT**"));
        }
        else
        {
            throw new TypeErrorException("Covered by Function expects exactly 2 arguments: two geometry objects.");
        }
    }
View Full Code Here


            Geometry union = geo1.union(geo2);
            return new GeoSPARQLWktSerializer().toLiteral(union);
        }
        else
        {
            throw new TypeErrorException("Union Function expects exactly 2 arguments: two geometry objects.");
        }
    }
View Full Code Here

            //TODO GeoSPARQL Req 20: Implementations shall support geof:getSRID as a SPARQL extension function. At the moment only return int instead of an SRID-URI
            return new Integer(srid);
        }
        else
        {
            throw new TypeErrorException("getSRID Function expects exactly 1 arguments: a geometry object");
        }
    }
View Full Code Here

            Geometry symDifference = geo1.symDifference(geo2);
            return new GeoSPARQLWktSerializer().toLiteral(symDifference);
        }
        else
        {
            throw new TypeErrorException("SymDifference Function expects exactly 2 arguments: two geometry objects.");
        }
    }
View Full Code Here

            Geometry geo2 = GeoHelper.getGeoSPARQLGeometry(args[1]);
            return new Boolean(geo1.contains(geo2));
        }
        else
        {
            throw new TypeErrorException("Contains Function expects exactly 2 arguments: two geometry objects.");
        }
    }
View Full Code Here

            Geometry convexHullGeo = hull.getConvexHull();
            return new GeoSPARQLWktSerializer().toLiteral(convexHullGeo);
        }
        else
        {
            throw new TypeErrorException("ConvexHull Function expects exactly 1 arguments: A geometry.");
        }
    }
View Full Code Here

            Geometry geo2 = GeoHelper.getGeoSPARQLGeometry(args[1]);
            return new Boolean(geo1.within(geo2));
        }
        else
        {
            throw new TypeErrorException("Within Function expects exactly 2 arguments: two geometry objects.");
        }
    }
View Full Code Here

            Geometry geo2 = GeoHelper.getGeoSPARQLGeometry(args[1]);
            return new Boolean(geo1.crosses(geo2));
        }
        else
        {
            throw new TypeErrorException("Crosses Function expects exactly 2 arguments: two geometry objects.");
        }
    }
View Full Code Here

            distance = UnitOfMeasurement.convert(unit, distance);
            return LiteralFactory.createTypedLiteralWithoutException("\"" + String.valueOf(distance) + "\"", "<http://www.w3.org/2001/XMLSchema#double>");
        }
        else
        {
            throw new TypeErrorException("Distance Function expects exactly 3 arguments: two geometry object and a unit.");
        }
    }
View Full Code Here

            Geometry geo2 = GeoHelper.getGeoSPARQLGeometry(args[1]);
            return new Boolean(geo1.intersects(geo2));
        }
        else
        {
            throw new TypeErrorException("Intersects Function expects exactly 2 arguments: two geometry objects.");
        }
    }
View Full Code Here

TOP

Related Classes of lupos.engine.operators.singleinput.TypeErrorException

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.