congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Collectors (java.util.stream)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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