Strabon

changeset 959:3a6b58ffefac

code cleaning for getting rid of warnings
author Babis Nikolaou <charnik@di.uoa.gr>
date Tue Apr 02 11:35:44 2013 +0300 (2013-04-02)
parents 8fe210a0e6bd
children afd34ba51178
files evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/StrabonPolyhedron.java generaldb/src/main/java/org/openrdf/sail/generaldb/algebra/factories/GeneralDBBooleanExprFactory.java resultio-spatial/sparqlgeojson/src/main/java/org/openrdf/query/resultio/sparqlgeojson/stSPARQLResultsGeoJSONWriter.java
line diff
     1.1 --- a/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/StrabonPolyhedron.java	Tue Apr 02 11:34:22 2013 +0300
     1.2 +++ b/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/StrabonPolyhedron.java	Tue Apr 02 11:35:44 2013 +0300
     1.3 @@ -190,7 +190,7 @@
     1.4  		this.geometry = new StrabonPolyhedron(geo, algorithm, MAX_POINTS).geometry;
     1.5  	}
     1.6  
     1.7 -	@SuppressWarnings("unused")
     1.8 +	// unused
     1.9  	public StrabonPolyhedron(Geometry geo, int algorithm, int maxPoints) throws Exception {		
    1.10  		if (geo.isEmpty()) {
    1.11  			this.geometry = geo;
    1.12 @@ -843,6 +843,7 @@
    1.13  		return this.geometry.getNumPoints();
    1.14  	}
    1.15  
    1.16 +	@SuppressWarnings("unused")
    1.17  	private static String FindGeoType(Geometry geo) {
    1.18  		return 
    1.19  				Point.class.isInstance(geo) ? "Point" :
     2.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/algebra/factories/GeneralDBBooleanExprFactory.java	Tue Apr 02 11:34:22 2013 +0300
     2.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/algebra/factories/GeneralDBBooleanExprFactory.java	Tue Apr 02 11:35:44 2013 +0300
     2.3 @@ -5,7 +5,88 @@
     2.4   */
     2.5  package org.openrdf.sail.generaldb.algebra.factories;
     2.6  
     2.7 -import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.*;
     2.8 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.above;
     2.9 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.abs;
    2.10 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.and;
    2.11 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.asGML;
    2.12 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.asText;
    2.13 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.below;
    2.14 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.cmp;
    2.15 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.concat;
    2.16 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.contains;
    2.17 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.crosses;
    2.18 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.diffDateTime;
    2.19 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.dimension;
    2.20 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.disjoint;
    2.21 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.ehContains;
    2.22 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.ehCoveredBy;
    2.23 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.ehCovers;
    2.24 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.ehDisjoint;
    2.25 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.ehEquals;
    2.26 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.ehInside;
    2.27 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.ehMeet;
    2.28 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.ehOverlap;
    2.29 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.eq;
    2.30 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.eqComparingNull;
    2.31 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.eqIfNotNull;
    2.32 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.equalsGeo;
    2.33 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.geoArea;
    2.34 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.geoBoundary;
    2.35 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.geoBuffer;
    2.36 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.geoConvexHull;
    2.37 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.geoDifference;
    2.38 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.geoDistance;
    2.39 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.geoEnvelope;
    2.40 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.geoIntersection;
    2.41 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.geoSymDifference;
    2.42 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.geoTransform;
    2.43 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.geoUnion;
    2.44 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.geometryType;
    2.45 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.gt;
    2.46 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.intersects;
    2.47 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.isEmpty;
    2.48 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.isNotNull;
    2.49 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.isNull;
    2.50 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.isSimple;
    2.51 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.left;
    2.52 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.like;
    2.53 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.lowercase;
    2.54 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.mbbContains;
    2.55 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.mbbEqualsGeo;
    2.56 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.mbbIntersects;
    2.57 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.mbbWithin;
    2.58 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.neq;
    2.59 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.not;
    2.60 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.num;
    2.61 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.or;
    2.62 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.overlaps;
    2.63 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.rccDisconnected;
    2.64 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.rccEquals;
    2.65 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.rccExternallyConnected;
    2.66 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.rccNonTangentialProperPart;
    2.67 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.rccNonTangentialProperPartInverse;
    2.68 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.rccPartiallyOverlapping;
    2.69 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.rccTangentialProperPart;
    2.70 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.rccTangentialProperPartInverse;
    2.71 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.regex;
    2.72 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.relate;
    2.73 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.right;
    2.74 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.sfContains;
    2.75 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.sfCrosses;
    2.76 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.sfDisjoint;
    2.77 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.sfEquals;
    2.78 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.sfIntersects;
    2.79 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.sfOverlaps;
    2.80 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.sfTouches;
    2.81 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.sfWithin;
    2.82 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.simple;
    2.83 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.sqlNull;
    2.84 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.srid;
    2.85 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.str;
    2.86 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.sub;
    2.87 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.touches;
    2.88 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.unsupported;
    2.89 +import static org.openrdf.sail.generaldb.algebra.base.GeneralDBExprSupport.within;
    2.90  
    2.91  import org.openrdf.model.Literal;
    2.92  import org.openrdf.model.Value;
    2.93 @@ -31,7 +112,6 @@
    2.94  import org.openrdf.query.algebra.Var;
    2.95  import org.openrdf.query.algebra.evaluation.function.Function;
    2.96  import org.openrdf.query.algebra.evaluation.function.FunctionRegistry;
    2.97 -import org.openrdf.query.algebra.evaluation.function.link.AddDateTimeFunc;
    2.98  import org.openrdf.query.algebra.evaluation.function.spatial.DateTimeMetricFunc;
    2.99  import org.openrdf.query.algebra.evaluation.function.spatial.GeoConstants;
   2.100  import org.openrdf.query.algebra.evaluation.function.spatial.SpatialConstructFunc;
     3.1 --- a/resultio-spatial/sparqlgeojson/src/main/java/org/openrdf/query/resultio/sparqlgeojson/stSPARQLResultsGeoJSONWriter.java	Tue Apr 02 11:34:22 2013 +0300
     3.2 +++ b/resultio-spatial/sparqlgeojson/src/main/java/org/openrdf/query/resultio/sparqlgeojson/stSPARQLResultsGeoJSONWriter.java	Tue Apr 02 11:35:44 2013 +0300
     3.3 @@ -29,7 +29,6 @@
     3.4  import org.openrdf.query.BindingSet;
     3.5  import org.openrdf.query.TupleQueryResultHandlerException;
     3.6  import org.openrdf.query.algebra.evaluation.function.spatial.AbstractWKT;
     3.7 -import org.openrdf.query.algebra.evaluation.function.spatial.WKTHelper;
     3.8  import org.openrdf.query.algebra.evaluation.util.JTSWrapper;
     3.9  import org.openrdf.query.resultio.TupleQueryResultFormat;
    3.10  import org.openrdf.query.resultio.TupleQueryResultWriter;