MapTools.org

[maplab-users] postgis layers

Damian Schroder map_surfer@yahoo.com
Mon, 1 Dec 2003 08:58:07 -0800 (PST)
--0-1851525761-1070297887=:26135
Content-Type: text/plain; charset=us-ascii

Zak, 
 
I cannot thank you enough for atleast responding to this issue and giving me some lead. Like I mentioned before I have posted atleast 3 messages about this on both mapsever and postgis list with absolutely 0 response. For now I am going to change all vector layers to postgis layers and try to find out exactly where it is bombing out (refering to the issue of the rect box not intersecting a feature of just one of the layers causing the drawquery to fail). The incompatibility with postgis and shape file layers in regards to the drawquery() function is definately a mapserver issue. But, I think modifying some of the maplab generated code can produce an application that will support vector layers that are all postgis layers.
 
Please keep me posted if you discover anything on this. I will post any code if I am successful.
 
Thanks again,
 
Damian
 

 


Zak James <zak-ms@hoppsan.org> wrote:
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.
http://www.dmsolutions.ca

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


---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
--0-1851525761-1070297887=:26135
Content-Type: text/html; charset=us-ascii

<DIV>Zak, </DIV>
<DIV>&nbsp;</DIV>
<DIV>I cannot thank you enough for atleast responding to this issue and giving me some lead. Like I mentioned before I have posted atleast 3 messages about this on both mapsever and postgis list with absolutely 0 response. For now I am going to change all vector layers to postgis layers and try to find out exactly where it is bombing out (refering to the issue of the rect box not intersecting a feature of just one of the layers causing the drawquery to fail). The incompatibility with postgis and shape file layers in regards to the drawquery() function is definately a mapserver issue. But, I think modifying some of the maplab generated code can produce an application that will support vector layers that are all postgis layers.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Please keep me posted if you discover anything on this. I will post any code if I am successful.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks again,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Damian</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>&nbsp;</DIV>
<DIV><BR><BR><B><I>Zak James &lt;zak-ms@hoppsan.org&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">I think you will have to look for this to be addressed on the mapserver <BR>list, as you suggest. It's independent of maplab.<BR><BR>Is it possible that the order or your layers is playing a role in which <BR>items are queried?<BR><BR>--<BR>Zak James<BR>Applications and Software Development<BR>DM Solutions Group Inc.<BR>http://www.dmsolutions.ca<BR><BR>On Dec 1, 2003, at 9:18 AM, Damian Schroder wrote:<BR><BR>&gt; Dear list,<BR>&gt; I have created an application using map lab. Everything works great <BR>&gt; and I have been able to add some nice customizations.However, when I <BR>&gt; put postgis layers in the project things start getting unstable.First, <BR>&gt; in order to get a postgis layer, I had to rem out the $oLayer-&gt;close() <BR>&gt; statement in the function processQuery( layer ) found in the <BR>&gt; map_query.php (something I'm not comfortable with doing but it works).
 <BR>&gt; Everything works perfect except for the drawquery() function found in <BR>&gt; the drawmap.php, and it only fails part of the time. If the postgis <BR>&gt; layer is the only active layer the drawquery() will never fail unless <BR>&gt; the rect box does not intersect a feature in the layer. The same is <BR>&gt; true if there are two postgis layers, if the rect box does not <BR>&gt; intersect one layer's features the drawquery() fails. If there is a <BR>&gt; shapefile layer with a postgis layer this does not happen, it simply <BR>&gt; returns no results found for either layer if it was not intersected. <BR>&gt; However, if a rect box is made to!<BR>&gt; o small<BR>&gt; (in my case 1.5 degrees by 1.5 degrees) the drawquery fails. If at <BR>&gt; full extent the rect box is approximately 115x115 pixels for a <BR>&gt; 450x450 pixel map, so the rect box is not tiny.In all this I am <BR>&gt; always able to recieve the query results even when the drawquery() <BR>&gt; fails. I am
 getting absolutely no response on the mapserver list. My <BR>&gt; gut tells me it is a mapserver issue (not Maplab or postgis), but I <BR>&gt; thought maybe someone has successfully used postgis layers with <BR>&gt; mapsever that could give me some insight.<BR>&gt;<BR>&gt; Thanks ,<BR>&gt;<BR>&gt; Damian<BR>&gt;<BR>&gt;<BR>&gt; ---------------------------------<BR>&gt; Do you Yahoo!?<BR>&gt; Free Pop-Up Blocker - Get it now<BR></BLOCKQUOTE><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-1851525761-1070297887=:26135--


This archive was generated by Pipermail.