<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>

<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6618.4">
<TITLE>[mapguide-internals] ogr postgis layer problems</TITLE>
</HEAD>
<BODY dir=ltr>
<DIV>What you are describing seems to me to lead to a bug in the OGR provider in 
the case where a filter is used that is a combination of a spatial filter and 
FID filter, which is what the selection rendering code uses to get the features 
that have to draw as selected overlay. Since the selection itself seems to work 
for you, my guess is that the provider messes something up during such a query 
that results in a&nbsp;confusion during&nbsp;subsequent queries.</DIV>
<DIV>My guess could be wrong though... To narrow it down, I can look over the 
code and check for obvious flaws (I don't have the time to install PostGIS right 
now),&nbsp;and you can try&nbsp;connecting to an SHP file with the OGR provider 
to see if selection works for that. Another thing you can try is run the server 
in interactive mode and check for any console output. The provider (and OGR 
itself) will sometimes printf stuff to the console. </DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Traian</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV><FONT size=2>-----Original Message----- <BR><B>From:</B> 
  mapguide-internals-bounces@lists.osgeo.org&nbsp;on behalf of&nbsp;Paul Spencer 
  (External) <BR><B>Sent:</B> Tue 1/30/2007 9:18 PM <BR><B>To:</B> MapGuide 
  Internals Mail List <BR><B>Cc:</B> <BR><B>Subject:</B> [mapguide-internals] 
  ogr postgis layer problems<BR><BR></FONT></DIV>
  <P><FONT size=2>Hi all,<BR><BR>I am looking into an issue regarding postgis 
  layers loaded via the&nbsp;<BR>OGR provider for a client.&nbsp; The postgis 
  layer is functioning normally&nbsp;<BR>when the map loads (it is initially off 
  but it can be toggled on/off&nbsp;<BR>no problem).&nbsp; It can be queried 
  using the select.&nbsp; However, when the&nbsp;<BR>layer has had features 
  selected on it, the next action causes the&nbsp;<BR>layer to be turned off and 
  the layer cannot be turned back on without&nbsp;<BR>restarting the service and 
  web browser.<BR><BR>Any ideas what might be going on?&nbsp; Bug in the OGR 
  provider?&nbsp; AJAX&nbsp;<BR>Viewer?&nbsp; Bad 
  data?<BR><BR>Cheers<BR><BR>Paul<BR><BR>+-----------------------------------------------------------------+<BR>|Paul 
  Spencer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  pspencer@dmsolutions.ca&nbsp;&nbsp;&nbsp; 
  |<BR>+-----------------------------------------------------------------+<BR>|Chief 
  Technology 
  Officer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  |<BR>|DM Solutions Group 
  Inc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <A href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</A> 
  |<BR>+-----------------------------------------------------------------+<BR><BR><BR><BR><BR>_______________________________________________<BR>mapguide-internals 
  mailing list<BR>mapguide-internals@lists.osgeo.org<BR><A 
  href="http://lists.osgeo.org/mailman/listinfo/mapguide-internals">http://lists.osgeo.org/mailman/listinfo/mapguide-internals</A><BR></FONT></P></BLOCKQUOTE>

</BODY>
</HTML>