MapTools.org

[maplab-users] postgis layers

Damian Schroder map_surfer@yahoo.com
Mon, 1 Dec 2003 06:18:34 -0800 (PST)
--0-870356794-1070288314=:14995
Content-Type: text/plain; charset=us-ascii

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 too 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
--0-870356794-1070288314=:14995
Content-Type: text/html; charset=us-ascii

<DIV>Dear list,</DIV>
<DIV>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,&nbsp;I had to rem out the $oLayer-&gt;close() statement in the <FONT size=2>function processQuery(&nbsp;layer ) found in the map_query.php </FONT>(something&nbsp;I'm not comfortable with doing but it works).&nbsp;Everything works perfect except&nbsp;for the drawquery()&nbsp;function found in the drawmap.php, and it only fails part of the time. If&nbsp;the postgis layer is the only active layer&nbsp;the drawquery()&nbsp;will never fail&nbsp;unless the rect box&nbsp;does not intersect a feature in the layer. The same is true&nbsp;if there are two postgis layers, if&nbsp;the rect&nbsp;box does not intersect&nbsp;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&nbsp;either layer if&nbsp;it was not&nbsp;intersected. However, if a rect box is made too small (in my case 1.5 degrees&nbsp;by 1.5 degrees) the drawquery fails. If at full&nbsp;extent the rect&nbsp;box is approximately 115x115 pixels&nbsp;for&nbsp; a 450x450 pixel map, so the rect box is not tiny.In all this&nbsp;&nbsp;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. </DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks ,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Damian</DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/slv/mailtag/*http://companion.yahoo.com/">Free Pop-Up Blocker - Get it now</a>
--0-870356794-1070288314=:14995--


This archive was generated by Pipermail.