SWIG mapscript request/bug? - WORKAROUN D

Sean Gillies sgillies at FRII.COM
Wed Jan 26 14:55:01 EST 2005


On Jan 26, 2005, at 9:25 AM, Ryan, Adam wrote:

>> -----Original Message-----
>> From: Lowell Filak [mailto:lfilak at MEDINACO.ORG]
>> Sent: Wednesday, January 26, 2005 7:04 AM
>> To: MAPSERVER-USERS at LISTS.UMN.EDU
>> Subject: Re: [UMN_MAPSERVER-USERS] SWIG mapscript
>> request/bug? - WORKAROUND
>>
>>
>> The following message was sent by Sean Gillies
>> <sgillies at FRII.COM> on Wed, 26 Jan 2005 07:05:05 -0700.
>>
>>> On Jan 25, 2005, at 5:30 PM, Ryan, Adam wrote:
>>>
>>>> And the workaround is...
>>>>
>>>> When you're reordering layers AND you want to do a drawQuery(),
>>>> reorder the layers and then save the map file and then
>> load it again
>>>> and then drawQuery().  Ugly.
>>>>
>>>> Adam
>>>>
>>>
>>> Adam,
>>>
>>> Brutal, I agree.  But since you are using mapscript you do have the
>>> option of programming your own query map.  I don't think
>>> msDrawQueryMap does anything that you can't script yourself. Steve
>>> Lime has been considering an overhaul of the query map but I am
>>> neither sure of the status nor sure that he is looking at
>> your issue.
>>
>> Adam,
>>
>> I agree with Sean as we have never used the queryMapObj here,
>> but rather just another mapObj. There have been a few issues
>> that have come up pertaining to the queryMapObj and for a
>> spell I thought it should go the way of the DBFInfo object,
>> at least as far as the documentation goes for mapscript.
>>
>> Lowell
>>
>
> Lowell, Sean, et al.
>
> Now you guys are confusing me.  First of all, I don't know how to
> display
> only a set of features quickly other than manipulating the resultCache
> (querying or loading a query file) and then doing a mapObj.drawQuery().
>
> I'm not using a queryMapObject (at least not directly or consciously),
> and
> I'm not sure what it is.
>
> And if I were to script this myself, do you mean run through each
> layer and
> do a layerObj.drawQuery()?  I guess that's easy enough.  And that way I
> could get around the whole ordering issue.  Wait...this is sounding
> pretty
> good.
>
> Cheers, Adam

Adam,

I was just thinking of a re-implementation of the query map.  Make
queries, then go through the result set and either execute
shapeObj::draw() or add the result features to another inline type
layer and draw that layer.

cheers,
Sean

--
Sean Gillies
sgillies at frii dot com
http://users.frii.com/sgillies



More information about the mapserver-users mailing list