[Chameleon] WMS browser not finding layers

Jacob Delfos jacob.delfos at maunsell.com
Thu Jul 7 20:49:56 EDT 2005


Hi Bart,

No, this is using mapserver 4.4

I did a bit more testing, and found out that the problem is on that line 1810 of server_data_manager.php
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:

    * ERROR: could not add layer 1 to map!
    * BBOX ID [0] was not found in bbox file [bbox.dbf].

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.

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.....

regards,

Jacob
 

-----Original Message-----
From: chameleon-bounces at lists.maptools.org [mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Bart van den Eijnden
Sent: 7 July 2005 17:47
To: chameleon at lists.maptools.org; jacob.delfos at maunsell.com
Subject: Re: [Chameleon] WMS browser not finding layers

Hi Jacob,

are you using Mapserver 4.6?

This could be related then:

http://bugzilla.maptools.org/show_bug.cgi?id=1096

Best regards,
Bart

Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl

>>> "Jacob Delfos" <jacob.delfos at maunsell.com> 07/07/05 11:33am >>>
Hi All,

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:

[07-Jul-2005 17:24:40] PHP Notice: Undefined index: szServerDataPath in C:\chameleon\demo\htdocs\common\phpwms\manage_servers.phtml on line 52

[07-Jul-2005 17:24:40] PHP Notice: Undefined index: queryable in C:\chameleon\demo\htdocs\common\phpwms\xpath.class.php on line 750

[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

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.

regards,

Jacob


_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20050708/9de036e4/attachment.html


More information about the Chameleon mailing list