<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hi list,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've recently been
trying upgrade php-mapscript version 4.0 to 4 .4.1.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>When I try to query clicking on one layer
with connection type MYGIS I cannot get any data back from the feature data
base table because I get error in function: </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>$layer->open();</FONT></DIV>
<DIV> </DIV>
<DIV>
<DIV><FONT face=Arial size=2>query code:</FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2> $point =
$this->createPoint($x,$y);<BR> @$q_object =
$this->map->queryByPoint($point,MS_SINGLE,-1);<BR>
$cur_layer = $this->map->getLayerByName($layerName);<BR>
$res_layer = $cur_layer->getNumResults();<BR> </FONT></DIV>
<DIV><FONT face=Arial size=2>
if($res_layer)<BR> {<BR>
$cur_layer->open();
<-------------------------------------------------------------------- The
function error upgrade 4.0 to
4.4.1<BR> $cur_res =
$cur_layer->getResult(0);<BR> $result =
$cur_res->shapeindex;<BR>
$cur_layer->close();<BR> return
$result;<BR> }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Layer defined:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>LAYER</FONT></DIV>
<DIV><FONT face=Arial size=2> NAME
"layer_10"<BR> TYPE POINT</FONT></DIV>
<DIV><FONT face=Arial size=2> LABELMAXSCALE
100000</FONT></DIV>
<DIV><FONT face=Arial size=2> STATUS OFF<BR>
TOLERANCE 10</FONT></DIV>
<DIV><FONT face=Arial size=2> CONNECTIONTYPE
mygis</FONT></DIV>
<DIV><FONT face=Arial size=2> CONNECTION
"localhost:web:user_web:dbGis:bin:"</FONT></DIV>
<DIV><FONT face=Arial size=2> DATA "geometry from G_Punto
feature, G_Punto_bin geometry"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> TEMPLATE
void<BR> </FONT></DIV>
<DIV><FONT face=Arial size=2>
CLASS<BR> NAME
"class_1" <BR> SYMBOL
"symbol_5"<BR> TEXT ([nombre] -
[sucursal])<BR> </FONT></DIV>
<DIV><FONT face=Arial size=2>
STYLE<BR> OUTLINECOLOR 0
0 0</FONT></DIV>
<DIV><FONT face=Arial size=2>
COLOR 0 0 255</FONT></DIV>
<DIV><FONT face=Arial size=2>
SIZE 18</FONT></DIV>
<DIV><FONT face=Arial size=2>
MINSIZE 8</FONT></DIV>
<DIV><FONT face=Arial size=2>
MAXSIZE
20<BR> END<BR> </FONT></DIV>
<DIV><FONT face=Arial size=2>
LABEL<BR> OUTLINECOLOR
255 255 255</FONT></DIV>
<DIV><FONT face=Arial size=2>
COLOR 127 0 0</FONT></DIV>
<DIV><FONT face=Arial size=2>
SIZE MEDIUM</FONT></DIV>
<DIV><FONT face=Arial size=2>
POSITION AUTO</FONT></DIV>
<DIV><FONT face=Arial size=2>
PARTIALS FALSE</FONT></DIV>
<DIV><FONT face=Arial size=2>
END<BR> END</FONT></DIV>
<DIV><FONT face=Arial size=2>END</FONT></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT size=2><FONT face=Arial><SPAN id=MSGHDR-SUBJECT-PRE>The MapServer
4.4.1 released</SPAN> (2004-12-22) say: Fixed MyGIS build error introduced when
adding msLayerIsOpen() (bug 1116). Is there some relations between the
error and the bug fixing?.</FONT></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>
<DIV><FONT face=Arial size=2>The old version php-mapscript 4.0 working fine
with the same code.</FONT></DIV></DIV></FONT>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial size=2>I would be most grateful if anyone could offer any
advise.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank's.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>______________________________________<BR>Daniel A.
Lagos H.<BR>Fernández y De Cea Ingenieros Ltda.<BR>Av. Apoquindo 3650, Of. 902,
Las Condes<BR>Santiago, Chile<BR>Tel: +56 (2) 435 0099<BR>Fax: +56 (2) 435
0258<BR><A
href="http://www.fdcconsult.com">www.fdcconsult.com</A><BR></DIV></FONT></FONT></DIV></BODY></HTML>