Tabnine Logo
SpatialOperator.getSubType
Code IndexAdd Tabnine to your IDE (free)

How to use
getSubType
method
in
org.deegree.filter.spatial.SpatialOperator

Best Java code snippets using org.deegree.filter.spatial.SpatialOperator.getSubType (Showing top 7 results out of 315)

origin: deegree/deegree3

private static void export( SpatialOperator operator, XMLStreamWriter writer )
            throws XMLStreamException, UnknownCRSException, TransformationException {
  QName elementName = spatialOperatorTypeToElementName.get( operator.getSubType() );
  if ( elementName == null )
    throw new IllegalArgumentException( "Encoding of spatial operator subtype " + operator.getSubType()
                      + " is not supported yet!" );
  writer.writeStartElement( elementName.getNamespaceURI(), elementName.getLocalPart() );
  switch ( operator.getSubType() ) {
  case BBOX:
    geometry = ( (BBOX) operator ).getBoundingBox();
    break;
  default:
    throw new IllegalArgumentException( "Encoding of spatial operator subtype " + operator.getSubType()
                      + " is not supported yet!" );
origin: deegree/deegree3

          throws XMLStreamException, UnknownCRSException, TransformationException {
QName elementName = spatialOperatorTypeToElementName.get( operator.getSubType() );
writer.writeStartElement( elementName.getNamespaceURI(), elementName.getLocalPart() );
Measure distance = null;
switch ( operator.getSubType() ) {
origin: deegree/deegree3

switch ( o.getSubType() ) {
case BBOX:
  return new BBOX( (Expression) os[0], (Envelope) os[1] );
origin: deegree/deegree3

private static BBOX extractBBox( SpatialOperator oper ) {
  SubType type = oper.getSubType();
  switch ( type ) {
  case BBOX:
    return (BBOX) oper;
  case CONTAINS:
    // Oracle does not like zero-extent bboxes
    if ( !( ( (Contains) oper ).getGeometry() instanceof Point ) )
      return new BBOX( ( (Contains) oper ).getParam1(), ( (Contains) oper ).getGeometry().getEnvelope() );
    return null;
  case CROSSES:
    return new BBOX( ( (Crosses) oper ).getParam1(), ( (Crosses) oper ).getGeometry().getEnvelope() );
  case DWITHIN:
    // TOOD use enlarged bbox
    return null;
  case EQUALS:
    return new BBOX( ( (Equals) oper ).getParam1(), ( (Equals) oper ).getGeometry().getEnvelope() );
  case INTERSECTS:
    return new BBOX( ( (Intersects) oper ).getParam1(), ( (Intersects) oper ).getGeometry().getEnvelope() );
  case OVERLAPS:
    return new BBOX( ( (Overlaps) oper ).getParam1(), ( (Overlaps) oper ).getGeometry().getEnvelope() );
  case WITHIN:
    return new BBOX( ( (Within) oper ).getParam1(), ( (Within) oper ).getGeometry().getEnvelope() );
  default: {
    return null;
  }
  }
}
origin: deegree/deegree3

int srid = propNameExpr.getSRID() != null ? Integer.parseInt( propNameExpr.getSRID() ) : 0;
switch ( op.getSubType() ) {
case BBOX: {
  BBOX bbox = (BBOX) op;
origin: deegree/deegree3

int srid = propNameExpr.getSRID() != null ? Integer.parseInt( propNameExpr.getSRID() ) : -1;
switch ( op.getSubType() ) {
case BBOX: {
  BBOX bbox = (BBOX) op;
origin: deegree/deegree3

case SPATIAL:
  GeometryFactory gf = new GeometryFactory();
  switch ( ( (SpatialOperator) op ).getSubType() ) {
  case BBOX:
    BBOX bbox = (BBOX) op;
org.deegree.filter.spatialSpatialOperatorgetSubType

Javadoc

Returns the type of spatial operator. Use this to safely determine the subtype of SpatialOperator.

Popular methods of SpatialOperator

  • getPropName
    Returns the name of the spatial property to be considered.
  • getParam1
    Returns the first spatial parameter.
  • getParams
  • getType
    Always returns Operator.Type#SPATIAL (for SpatialOperator instances).

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JCheckBox (javax.swing)
  • Join (org.hibernate.mapping)
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now