<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 confusion during 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), and you can try 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> </DIV>
<DIV> </DIV>
<DIV>Traian</DIV>
<DIV> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT size=2>-----Original Message----- <BR><B>From:</B>
mapguide-internals-bounces@lists.osgeo.org on behalf of 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 <BR>OGR provider for a client. The postgis
layer is functioning normally <BR>when the map loads (it is initially off
but it can be toggled on/off <BR>no problem). It can be queried
using the select. However, when the <BR>layer has had features
selected on it, the next action causes the <BR>layer to be turned off and
the layer cannot be turned back on without <BR>restarting the service and
web browser.<BR><BR>Any ideas what might be going on? Bug in the OGR
provider? AJAX <BR>Viewer? Bad
data?<BR><BR>Cheers<BR><BR>Paul<BR><BR>+-----------------------------------------------------------------+<BR>|Paul
Spencer
pspencer@dmsolutions.ca
|<BR>+-----------------------------------------------------------------+<BR>|Chief
Technology
Officer
|<BR>|DM Solutions Group
Inc
<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>