Project

General

Profile

« Previous | Next » 

Revision 2910

Added by harris over 18 years ago

Implementation of the rubber-bad query that PMARK has implemented through the UI.

View differences:

MetacatSpatialQuery.java
28 28
import org.apache.log4j.Logger;
29 29

  
30 30
/**
31
 * Class that reflects a query against Metacat to gatther spatial data  -- this
31
 * Class that reflects a query against Metacat to gather spatial data  -- this
32 32
 * could be a text query that returns a spatial dataset or a spatial query that
33 33
 * returns a spatially-referenced dataset.
34 34
 */
......
42 42

  
43 43
  public MetacatSpatialQuery() { }
44 44

  
45
  /// query that returns a dataset constarined by a bounding box
46
  public MetacatSpatialDataset queryDatasetByCartesianBounds(float _xmin,
47
                                                             float _ymin, 
48
                                                             float _xmax, 
49
                                                             float _ymax) {
50
  
51
 
52
    /** all database querying is carried out in the Query Processor */
53
    mqp = new  SpatialQueryProcessor();
54
    
55
    // return the proc's results
56
    return mqp.queryDatasetByCartesianBounds(_xmin, _ymin, _xmax, _ymax);
57
 
58
  }
59

  
60

  
45 61
  /**
46 62
   * returns the metacat spatial document retrieved by this query
47 63
   */

Also available in: Unified diff