ADL_query_translator modules/paradigms/Spatial_InformixGeodetic.py

modules / paradigms / Spatial_InformixGeodetic.py 


 SYNOPSIS

     Spatial_InformixGeodetic (table, idColumn, footprintColumn,
         cardinality)

         table
             A table to query, e.g., "holding".

         idColumn
             The table's object identifier column (i.e., the column
             to be selected), e.g., "holding_id".

         footprintColumn
             The table's footprint column (i.e., the column against
             which the constraint is to be placed), e.g.,
             "footprint".

         cardinality
             A Cardinality object representing the cardinality of
             'table' with respect to 'footprintColumn'.

 DESCRIPTION

     Translates a spatial constraint to an Informix Geodetic
     DataBlade function call of one of the forms

         SELECT idColumn FROM table
             WHERE Inside(footprintColumn, targetExpression)

         SELECT idColumn FROM table
             WHERE Inside(targetExpression, footprintColumn)

         SELECT idColumn FROM table
             WHERE Intersect(footprintColumn, targetExpression)

     depending on the constraint operator.

     'targetExpression' is a string that can take any of several
     forms: depending on the query region, it may describe a
     GeoPoint, a GeoLineseg, a GeoString, a GeoRing, a GeoBox, or a
     GeoPolyon.  The altitude and time constraints in the expression
     are unspecified (i.e., are "ANY").

     In certain cases this paradigm constructs a parallel (i.e., a
     line of constant latitude) out of multiple great circle
     segments.  The size of the segments in degrees is governed by
     '_step', below.

     Exceptions thrown:

         unsupported spatial predicate
             (Thrown when the target region needs to have an
             interior and it doesn't.)

 AUTHOR

     Greg Janee
     gjanee@alexandria.ucsb.edu

 HISTORY

     $Log: Spatial_InformixGeodetic.py,v $
     Revision 1.2  2003/04/16 18:32:10  valentin
     updated to latest translator code

     Revision 1.1  2002/10/22 20:24:02  gjanee
     Initial revision

Imported Modules   

import UniversalTranslator
import edu.ucsb.adl.middleware
import types

Functions   
  _makeParallel 
_makeParallel (
        latitude,
        west,
        east,
        increment,
        )
Classes   

Spatial_InformixGeodetic


This document was automatically generated Thu Mar 4 12:45:28 2004 by HappyDoc version WORKING