[maplab-users] postgis layers

Zak James
Mon, 1 Dec 2003 11:09:27 -0500
I think you will have to look for this to be addressed on the mapserver 
list, as you suggest. It's independent of maplab.

Is it possible that the order or your layers is playing a role in which 
items are queried?

Zak James
Applications and Software Development
DM Solutions Group Inc.

On Dec 1, 2003, at 9:18 AM, Damian Schroder wrote:

> Dear list,
> I have created an application using map lab. Everything works great 
> and I have been able to add some nice customizations.However, when I 
> put postgis layers in the project things start getting unstable.First, 
> in order to get a postgis layer, I had to rem out the $oLayer->close() 
> statement in the function processQuery( layer ) found in the 
> map_query.php (something I'm not comfortable with doing but it works). 
> Everything works perfect except for the drawquery() function found in 
> the drawmap.php, and it only fails part of the time. If the postgis 
> layer is the only active layer the drawquery() will never fail unless 
> the rect box does not intersect a feature in the layer. The same is 
> true if there are two postgis layers, if the rect box does not 
> intersect one layer's features the drawquery() fails. If there is a 
> shapefile layer with a postgis layer this does not happen, it simply 
> returns no results found for either layer if it was not intersected. 
> However, if a rect box is made to!
> o small
>  (in my case 1.5 degrees by 1.5 degrees) the drawquery fails. If at 
> full extent the rect box is approximately 115x115 pixels for  a 
> 450x450 pixel map, so the rect box is not tiny.In all this  I am 
> always able to recieve the query results even when the drawquery() 
> fails. I am getting absolutely no response on the mapserver list. My 
> gut tells me it is a mapserver issue (not Maplab or postgis), but I 
> thought maybe someone has successfully used postgis layers with 
> mapsever that could give me some insight.
> Thanks ,
> Damian
> ---------------------------------
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now

This archive was generated by Pipermail.