[mapserver-users] Querying a dynamic layer

Jonathon Coombes jon at cybersite.com.au
Sun Sep 22 21:04:32 EDT 2002


On Sat, 2002-09-21 at 09:49, woodbri at swoodbridge.com wrote:
> Johnathan,
> 
> I think I mis-spoke, that is what I get for talking before I look at 
> the code <sigh> and I seem to have deleted your orignal post so I am 
> not sure what the problem is.
> 
> But if you notice in the function GMapDumpQueryResults() there is a 
> for loop:
> 
>     for($iLayer=0; $iLayer < $gpoMap->numlayers; $iLayer++)
>     {
>         $oLayer = $gpoMap->GetLayer($iLayer);
> 
> Try putting some debug prints here and make sure it is seeing your 
> layer. like:
>          print "<br>" . $oLayer->name . "\n";
> 
> if your layer name shows then you can print more stuff about if to 
> see what the problem is. If it does not show, then you need to do 
> something to either get it on the list of layers or some how get it 
> to be processed through this block of code.

Hi Steve,

I am the one that is supposed to be confused. :-)

I had actually already debugged the GMapDumpQueryResults function and
found that it was able to see the dynamic layer and could actually query
it and get the metadata, but the getNumResults() in the
GMapDumpQueryResults function is where it seems to fail. Its like the
extent is wrong, or it can't see the layer when it does the query
somehow?

Regards,
Jonathon




More information about the mapserver-users mailing list