[Mapserver-dev] Fwd: MapServer testing results

Paul Ramsey pramsey at refractions.net
Sat Sep 18 23:44:48 EDT 2004


On Saturday, September 18, 2004, at 07:58 PM, Howard Butler wrote:

> So to answer your question, yes the call to SE_layerinfo_get_envelope 
> is cheap.  It's just that its answer sometimes sucks.

Oh well, a random guess on my part about why we are so slow right now. 
We'll have some more numbers on Monday, which will hopefully clarify 
where the issues are located for us.


> The real work is done here though.  The rectangle from 
> SE_layerinfo_get_envelope is then crossed against the given rectObj 
> (in most cases just the mapObj's extent).  The resulting shape is then 
> used to filter the query results from SDE.  This was what I was 
> getting at with the earlier message...
>
>>   // set spatial constraint search shape
>>   envelope.minx = MS_MAX(rect.minx, envelope.minx); // crop against 
>> SDE layer extent *argh*
>>   envelope.miny = MS_MAX(rect.miny, envelope.miny);
>>   envelope.maxx = MS_MIN(rect.maxx, envelope.maxx);
>>   envelope.maxy = MS_MIN(rect.maxy, envelope.maxy);
>>
>>   status = SE_shape_generate_rectangle(&envelope, shape);
>>   if(status != SE_SUCCESS) {
>>     sde_error(status, "msSDELayerWhichShapes()", 
>> "SE_shape_generate_rectangle()");
>>     return(MS_FAILURE);
>>   }
>>   constraint.filter.shape = shape;
>
> Howard
> _______________________________________________
> Mapserver-dev mailing list
> Mapserver-dev at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-dev
>
      Paul Ramsey
      Refractions Research
      Email: pramsey at refractions.net
      Phone: (250) 885-0632




More information about the mapserver-dev mailing list