<!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.1505" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Great, so you guys paid DMSG to break it
:)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My wmsparse.exe is from 12/11/2004. All the files I
use are from the latest CVS. But with those lines commented out, everything
appears to work, so my wmsparse utility is probably ok.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I think the server_data_manager.php file needs to
be adjusted to behave properly if this EXTRACTABLE_LAYER variable is set to
false. Other than that, all should be ok. I'm a bit hesitant to do it myself,
until I know what EXTRACTABLE_LAYER does......</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: <A
href="mailto:chameleon-bounces@lists.maptools.org">chameleon-bounces@lists.maptools.org</A>
[mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Bart van den
Eijnden<BR>Sent: 25 July 2005 15:00<BR>To: <A
href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A>; <A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A><BR>Subject:
RE: [Chameleon] WMS browser not finding layers</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Hi Jacob,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>This is exactly the list which was added by DMSG on
a contract to my former employer Geodan :-)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>We got some enhancements back then for the
metadataURL and the scalehints.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>This required an adaptation of the wmsparse utility
as well. So maybe the wmsparse utility you have is older?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Best regards,<BR>Bart</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Bart van den Eijnden<BR>Syncera IT
Solutions<BR>Postbus 270<BR>2600 AG DELFT</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>tel.nr.: 015-7512436<BR>email: <A
href="mailto:BEN@Syncera-ITSolutions.nl">BEN@Syncera-ITSolutions.nl</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>>>> "Jacob Delfos" <<A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A>>
07/25/05 02:32am >>><BR>Hi All,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I managed to figure out where it went wrong, but
because I haven't used this widget too often before, and know that others have,
I am hesitant to call it a bug. Although I can't see how others would have
gotten it to work.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>In server_data_manager.php, an array is built which
is added to capab.dbf as a new record. Elements are added to this array, on the
basis of whether or not certain information is available. This is perhaps a bit
messy, because unless the array contains the right amount of elements, it cannot
be added. Also, if an element is missing, the other elements end up in the wrong
field.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>When I added my WMS layer, the following elements
were not added to the array, which WERE created as fields in the
dbf:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>mdu_type<BR>mdu_fmt<BR>mdu_url<BR>minscale<BR>maxscale</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Because no values for these fields were added to
the new_rec array, the values were offset, and the new_rec array did not contain
the correct amount of elements. Looking at the area starting at line 1783 in
server_data_manager, it seems the elements added to the array match the
structure of the dbf very poorly (a lot seems to depend on EXTRACTABLE_LAYER
being true, which if it were, would make more things go wrong; EXTRACTABLE_LAYER
seems to be initiated as false, and never changed to true
anywhere).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Can someone tell me whether I'm on the right track,
or whether everything would normally fall in the right spot by using a different
configuration?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>--------------------------------------------------------------------------------<BR>From:
<A
href="mailto:chameleon-bounces@lists.maptools.org">chameleon-bounces@lists.maptools.org</A>
[mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Jacob Delfos<BR>Sent:
8 July 2005 08:50<BR>To: <A
href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A>
<BR>Subject: Re: [Chameleon] WMS browser not finding layers</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>Hi Bart,</DIV>
<DIV> </DIV>
<DIV>No, this is using mapserver 4.4</DIV>
<DIV> </DIV>
<DIV>I did a bit more testing, and found out that the problem is on that line
1810 of server_data_manager.php<BR>It tries to add a record to the
DB_CAPABILITIES dbf file (capab.dbf), but the array being added ($rec_new)
contains 12 elements, while there are 17 attributes in capab.dbf. So it fails to
add the record alltogether. If I fill up the $rec_new array to contain 17
values, then it does add the record, and I can see the layers. However, upon
adding it to the map, I get this error:</DIV>
<DIV> </DIV>
<DIV> * ERROR: could not add layer 1 to
map!<BR> * BBOX ID [0] was not found in bbox file
[bbox.dbf].</DIV>
<DIV> </DIV>
<DIV>Which makes sense, because bbox_id (which is not found) is one of the
values that was originally not filled in in capab.dbf, and is blank.</DIV>
<DIV> </DIV>
<DIV>Why would there be less values in the $rec_new array than there should be?
In the XML document, the layers has its bounding box defined.....</DIV>
<DIV> </DIV>
<DIV>regards,</DIV>
<DIV> </DIV>
<DIV>Jacob</DIV>
<DIV> </DIV>
<DIV><BR>-----Original Message-----<BR>From: <A
href="mailto:chameleon-bounces@lists.maptools.org">chameleon-bounces@lists.maptools.org</A>
[mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Bart van den
Eijnden<BR>Sent: 7 July 2005 17:47<BR>To: <A
href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A>; <A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A>
<BR>Subject: Re: [Chameleon] WMS browser not finding layers</DIV>
<DIV> </DIV>
<DIV>Hi Jacob,</DIV>
<DIV> </DIV>
<DIV>are you using Mapserver 4.6?</DIV>
<DIV> </DIV>
<DIV>This could be related then:</DIV>
<DIV> </DIV>
<DIV><A
href="http://bugzilla.maptools.org/show_bug.cgi?id=1096">http://bugzilla.maptools.org/show_bug.cgi?id=1096</A>
</DIV>
<DIV> </DIV>
<DIV>Best regards,<BR>Bart</DIV>
<DIV> </DIV>
<DIV>Bart van den Eijnden<BR>Syncera IT Solutions<BR>Postbus 270<BR>2600
AG DELFT</DIV>
<DIV> </DIV>
<DIV>tel.nr.: 015-7512436<BR>email: <A
href="mailto:BEN@Syncera-ITSolutions.nl">BEN@Syncera-ITSolutions.nl</A> </DIV>
<DIV> </DIV>
<DIV>>>> "Jacob Delfos" <<A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A>>
07/07/05 11:33am >>><BR>Hi All,</DIV>
<DIV> </DIV>
<DIV>The WMSbrowser is having trouble seeing the layers of my wms browser. I'm
using a simple mapfile on the wms-server, and the getcapabilities request
returns a valid xml file. The getmap request returns a valid image. The WMS
browser finds the server, and all seems ok, except it doesn't show any layers,
only the wms_name of the wms server. In my php log, I get:</DIV>
<DIV> </DIV>
<DIV>[07-Jul-2005 17:24:40] PHP Notice: Undefined index: szServerDataPath in
C:\chameleon\demo\htdocs\common\phpwms\manage_servers.phtml on line 52</DIV>
<DIV> </DIV>
<DIV>[07-Jul-2005 17:24:40] PHP Notice: Undefined index: queryable in
C:\chameleon\demo\htdocs\common\phpwms\xpath.class.php on line 750</DIV>
<DIV> </DIV>
<DIV>[07-Jul-2005 17:24:40] PHP Warning: Wrong number of fields specified in
C:\chameleon\demo\htdocs\common\phpwms\server_data_manager.php on line
1810</DIV>
<DIV> </DIV>
<DIV>I am not sure what is happening. Has anyone had these errors before? I'm
using chameleon from CVS june 16 2005, PHP 4.3.11.</DIV>
<DIV> </DIV>
<DIV>regards,</DIV>
<DIV> </DIV>
<DIV>Jacob</DIV>
<DIV> </DIV>
<DIV><BR>_______________________________________________<BR>Chameleon mailing
list<BR><A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A>
<BR><A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A>
</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>_______________________________________________<BR>Chameleon mailing
list<BR><A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR></FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="mailto:jacob.delfos@maunsell.com"></A></FONT> </DIV></BODY></HTML>