Opened 18 years ago

Closed 18 years ago

#1708 closed defect (fixed)

Allow SDE users to set the query order with a PROCESSING switch

Reported by: hobu Owned by: hobu
Priority: high Milestone:
Component: Input - Native SDE Support Version: 4.8
Severity: normal Keywords:
Cc:

Description

In certain cases, you will want to have SDE *not* query against the spatial
index if you have a FILTER in place.  

PROCESSING "QUERYORDER=ATTRIBUTE"  on the SDE layer in question should do the trick.

Change History (2)

comment:1 by hobu, 18 years ago

  proc_value = msLayerGetProcessingKey(layer,"QUERYORDER");
  if(!proc_value) {
      query_order= 2; /* SE_SPATIAL_FIRST */
  }
  else if (proc_value=="ATTRIBUTE"){
      query_order = 1; /* SE_ATTRIBUTE_FIRST */
  }
    
  
  status = SE_stream_set_spatial_constraints( sde->stream, 
                                              query_order, 
                                              FALSE, 
                                              1, 
                                              &constraint);

comment:2 by hobu, 18 years ago

Resolution: fixed
Status: newclosed
added to 4.9
Note: See TracTickets for help on using tickets.