Codota Logo
SpatialOperator.getSubType
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
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

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • getSystemService (Context)
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now