[Mapserver-dev] More SDE State Handling

Howard Butler hobu at iastate.edu
Wed Oct 20 14:02:53 EDT 2004


Paul,

That case is currently handled.  If we aren't doing versioned queries, the 
sde->state_id member is SE_DEFAULT_STATE_ID and the set_state method is not 
called.

Howard

At 11:49 AM 10/20/2004, Paul Ramsey wrote:
>I found some more SDE state handling in the layerwhichshapes function...
>So two things:
>- Some of the stream setup in layeropen might be happening twice
>- The special "unversioned" case needs to be handled here too
>Paul
>
>
>   // reset the stream
>   status = SE_stream_close(sde->stream, 1);
>   if(status != SE_SUCCESS) {
>     sde_error(status, "msSDELayerWhichShapes()", "SE_stream_close()");
>     return(MS_FAILURE);
>   }
>
>   //Set the stream state back to the state_id of our user-specified version
>   if (!(sde->state_id == SE_DEFAULT_STATE_ID)){
>     status =  SE_stream_set_state(sde->stream,
>                                   sde->state_id,
>                                   sde->state_id,
>                                   SE_STATE_DIFF_NOCHECK);
>     if(status != SE_SUCCESS) {
>       sde_error(status, "msSDELayerOpen()", "SE_stream_set_state()");
>       return(MS_FAILURE);
>     }
>   }
>
>
>_______________________________________________
>Mapserver-dev mailing list
>Mapserver-dev at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-dev




More information about the mapserver-dev mailing list