All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mysema.query.spatial.SpatialOps Maven / Gradle / Ivy

/*
 * Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.mysema.query.spatial;

import com.mysema.query.types.Operator;
import com.mysema.query.types.OperatorImpl;

/**
 * @author tiwe
 *
 */
public final class SpatialOps {

        private static final String NS = SpatialOps.class.getName();

        // Geometry
        public static final Operator DIMENSION = new OperatorImpl(NS, "DIMENSION");
        public static final Operator GEOMETRY_TYPE = new OperatorImpl(NS, "GEOMETRY_TYPE");
        public static final Operator AS_TEXT = new OperatorImpl(NS, "AS_TEXT");
        public static final Operator AS_BINARY = new OperatorImpl(NS, "AS_BINARY");
        public static final Operator SRID = new OperatorImpl(NS, "SRID");
        public static final Operator SRID2 = new OperatorImpl(NS, "SRID2");
        public static final Operator IS_EMPTY = new OperatorImpl(NS, "IS_EMPTY");
        public static final Operator IS_SIMPLE = new OperatorImpl(NS, "IS_SIMPLE");
        public static final Operator BOUNDARY = new OperatorImpl(NS, "BOUNDARY");
        public static final Operator ENVELOPE = new OperatorImpl(NS, "ENVELOPE");
        public static final Operator WKTTOSQL = new OperatorImpl(NS, "WKTTOSQL");
        public static final Operator WKBTOSQL = new OperatorImpl(NS, "WKBTOSQL");
        public static final Operator EQUALS = new OperatorImpl(NS, "EQUALS");
        public static final Operator DISJOINT = new OperatorImpl(NS, "DISJOINT");
        public static final Operator INTERSECTS = new OperatorImpl(NS, "INTERSECTS");
        public static final Operator TOUCHES = new OperatorImpl(NS, "TOUCHES");
        public static final Operator CROSSES = new OperatorImpl(NS, "CROSSES");
        public static final Operator WITHIN = new OperatorImpl(NS, "WITHIN");
        public static final Operator CONTAINS = new OperatorImpl(NS, "CONTAINS");
        public static final Operator OVERLAPS = new OperatorImpl(NS, "OVERLAPS");
        public static final Operator RELATE = new OperatorImpl(NS, "RELATE");
        public static final Operator DISTANCE = new OperatorImpl(NS, "DISTANCE");
        public static final Operator DISTANCE2 = new OperatorImpl(NS, "DISTANCE2");
        public static final Operator DISTANCE_SPHERE = new OperatorImpl(NS, "DISTANCE_SPHERE");
        public static final Operator DISTANCE_SPHEROID = new OperatorImpl(NS, "DISTANCE_SPHEROID");
        public static final Operator INTERSECTION = new OperatorImpl(NS, "INTERSECTION");
        public static final Operator DIFFERENCE = new OperatorImpl(NS, "DIFFERENCE");
        public static final Operator UNION = new OperatorImpl(NS, "UNION");
        public static final Operator SYMDIFFERENCE = new OperatorImpl(NS, "SYMDIFFERENCE");
        public static final Operator BUFFER = new OperatorImpl(NS, "BUFFER");
        public static final Operator BUFFER2 = new OperatorImpl(NS, "BUFFER2");
        public static final Operator CONVEXHULL = new OperatorImpl(NS, "CONVEXHULL");
        public static final Operator TRANSFORM = new OperatorImpl(NS, "TRANSFORM");

        // Point
        public static final Operator X = new OperatorImpl(NS, "X");
        public static final Operator X2 = new OperatorImpl(NS, "X2");
        public static final Operator Y = new OperatorImpl(NS, "Y");
        public static final Operator Y2 = new OperatorImpl(NS, "Y2");
        public static final Operator Z = new OperatorImpl(NS, "Z");
        public static final Operator Z2 = new OperatorImpl(NS, "Z2");
        public static final Operator M = new OperatorImpl(NS, "M");
        public static final Operator M2 = new OperatorImpl(NS, "M2");

        // Curve
        public static final Operator START_POINT = new OperatorImpl(NS, "START_POINT");
        public static final Operator END_POINT = new OperatorImpl(NS, "END_POINT");
        public static final Operator IS_RING = new OperatorImpl(NS, "IS_RING");
        public static final Operator LENGTH = new OperatorImpl(NS, "LENGTH");
        public static final Operator LENGTH2 = new OperatorImpl(NS, "LENGTH2");

        //LineString
        public static final Operator NUM_POINTS = new OperatorImpl(NS, "NUM_POINTS");
        public static final Operator POINTN = new OperatorImpl(NS, "POINTN");

        // Surface
        public static final Operator AREA = new OperatorImpl(NS, "AREA");
        public static final Operator AREA2 = new OperatorImpl(NS, "AREA2");
        public static final Operator CENTROID = new OperatorImpl(NS, "CENTROID");
        public static final Operator POINT_ON_SURFACE = new OperatorImpl(NS, "POINT_ON_SURFACE");

        // Polygon
        public static final Operator EXTERIOR_RING = new OperatorImpl(NS, "EXTERIOR_RING");
        public static final Operator EXTERIOR_RING2 = new OperatorImpl(NS, "EXTERIOR_RING2");
        public static final Operator INTERIOR_RINGS = new OperatorImpl(NS, "INTERIOR_RINGS");
        public static final Operator INTERIOR_RINGS2 = new OperatorImpl(NS, "INTERIOR_RINGS2");
        public static final Operator NUM_INTERIOR_RING = new OperatorImpl(NS, "NUM_INTERIOR_RING");
        public static final Operator INTERIOR_RINGN = new OperatorImpl(NS, "INTERIOR_RINGN");

        // Polyhedral Surface
        public static final Operator GEOMETRIES = new OperatorImpl(NS, "GEOMETRIES");
        public static final Operator NUM_SURFACES = new OperatorImpl(NS, "NUM_SURFACES");
        public static final Operator SURFACE = new OperatorImpl(NS, "SURFACE");

        // GeometryCollection
        public static final Operator NUM_GEOMETRIES = new OperatorImpl(NS, "NUM_GEOMETRIES");
        public static final Operator GEOMETRYN = new OperatorImpl(NS, "GEOMETRYN");

        // MultiCurve
        public static final Operator IS_CLOSED = new OperatorImpl(NS, "IS_CLOSED");

        // Extensions
        public static final Operator AS_EWKT = new OperatorImpl(NS, "AS_EWKT");
        public static final Operator GEOM_FROM_TEXT = new OperatorImpl(NS, "GEOM_FROM_TEXT");
        public static final Operator SET_SRID = new OperatorImpl(NS, "SET_SRID");
        public static final Operator XMIN = new OperatorImpl(NS, "XMIN");
        public static final Operator XMAX = new OperatorImpl(NS, "XMAX");
        public static final Operator YMIN = new OperatorImpl(NS, "YMIN");
        public static final Operator YMAX = new OperatorImpl(NS, "YMAX");
        public static final Operator DWITHIN = new OperatorImpl(NS, "DWITHIN");
        public static final Operator EXTENT = new OperatorImpl(NS, "EXTENT");
        public static final Operator COLLECT = new OperatorImpl(NS, "COLLECT");
        public static final Operator COLLECT2 = new OperatorImpl(NS, "COLLECT2");
        public static final Operator TRANSLATE = new OperatorImpl(NS, "TRANSLATE");
        public static final Operator TRANSLATE2 = new OperatorImpl(NS, "TRANSLATE2");

    }