Package lupos.engine.operators.singleinput

Examples of lupos.engine.operators.singleinput.TypeErrorException


        return Boolean.TRUE;
      } else {
        return Boolean.FALSE;
      }
    } else {
      throw new TypeErrorException("BitVectorFilter funtion expects exactly 3 arguments: the value, the bitvector (as integer) and the size of the bitvector");
    }
  }
View Full Code Here


                return new GeoSPARQLWktDeserializer().toGeometry(content);
            }
            else if(tl.getType().compareTo("<" + geoSPARQLgmlDataTypeURI + ">") == 0){
                return new GmlDeserializer().toGeometry(content);
            }
            throw new TypeErrorException();
        }
        throw new TypeErrorException();
    }
View Full Code Here

    public static double convert(final String url, final double valueToConvert) throws TypeErrorException {
        if(conversionRate.containsKey(url)) {
            return valueToConvert * conversionRate.get(url);
        }
        else {
            throw new TypeErrorException("URL for measurement unit not known.");
        }
    }
View Full Code Here

            Geometry envelope = geo.getEnvelope();
            return new StSPARQLSerializer().toLiteral(envelope);
        }
        else
        {
            throw new TypeErrorException("Envelope Function expects exactly 1 arguments: one geometry object.");
        }
    }
View Full Code Here

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

            final Geometry geo = GeoHelper.getStSPARQLGeometry(args[0]);
            final Geometry boundary = geo.getBoundary();
            return new StSPARQLSerializer().toLiteral(boundary);
        }
        else {
            throw new TypeErrorException("Boundary Function expects exactly 1 arguments: one geometry object.");
        }
    }
View Full Code Here

            Geometry geo2 = GeoHelper.getStSPARQLGeometry(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

            Geometry buffer = geo1.buffer(distance);
            return new StSPARQLSerializer().toLiteral(buffer);
        }
        else
        {
            throw new TypeErrorException("Buffer Function expects exactly 2 arguments: two geometry objects.");
        }
    }
View Full Code Here

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

            Geometry geo2 = GeoHelper.getStSPARQLGeometry(args[1]);
            return new Boolean(geo1.overlaps(geo2));
        }
        else
        {
            throw new TypeErrorException("Overlaps 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.