From info@pescatoreluca.com Sat Nov 1 15:23:03 2003 From: info@pescatoreluca.com (Luca Pescatore) Date: Sat, 01 Nov 2003 16:23:03 +0100 Subject: [Chameleon] Problem Running Chameleon Demo Message-ID: <3FA3CFD7.7030506@pescatoreluca.com> Hi, I'm trying to run demo of Chameleon but i can't get it work. My system is running Mapserver 4.0 : MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE When i run demo i get a "Loading Image please Wait..." and some error, may be inclusion error, for some javascripts. (MapDHTMLWidget ParseURL Failed ! KeyMap ParseURL Failed ! BoundingBoxPopup ParseURL Failed ! ZoomIn ParseURL Failed ! ZoomOut ParseURL Failed ! ZoomAllLayers ParseURL Failed ! PanMap ParseURL Failed ! ) Dirs are, seems, configured correctly. In the same machine i get running a small map application, that works correctly. What i need to check for running demo ? Best Regards, Luca From Hans.Verlouw@Geodan.nl Tue Nov 4 18:42:46 2003 From: Hans.Verlouw@Geodan.nl (Hans Verlouw) Date: Tue, 04 Nov 2003 19:42:46 +0100 Subject: [Chameleon] Problem interpreting results from CatalogSearch widget Message-ID: <5.1.0.14.2.20031104193128.024f5600@mail.vz.geodan.nl> --=====================_35018223==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed I have a problem interpreting results from the Catalog Search widget. Don't know if it's a Chameleon problem or PHP problem, but when I get results from the catalog server ($oXMLDoc->searchResponse->value->searchStatus->attributes['numberOfRecords'] > 0) I cannot retrieve the subelements of array ISO19119 in the XML doc. The core of the original code goes like: $nbIso = count($oXMLDoc->searchResponse->value->searchResults->value->ISO19119); for($i=0; $i < $nbIso; $i++) { $oRes =& $oXMLDoc->searchResponse->value->searchResults->value->ISO19119[$i]; $szLayerTitle = $oRes->value->citation->value->title->value; echo $szLayerTitle; } So I can interprete the response I get up to the level of $oXMLDoc->searchResponse->value->searchStatus but not deeper. My query was fulll response, so URL parameter ESN=f Can somebody tell me what is wrong here? Thanks in advance, Hans Verlouw ------------------------------------- Geodan SDT b.v. Buitenhaven 27-A 5211 TP 's-Hertogenbosch (NL) ------------------------------------- Tel: +31 (0)73 - 692 5151 Fax: +31 (0)73 - 692 5150 ------------------------------------- Postadres / mailing address President Kennedylaan 1 1079 MB Amsterdam (NL) ------------------------------------- E-mail: Hans.Verlouw@Geodan.nl Website: www.geodan.nl Disclaimer: www.geodan.nl/disclaimer ------------------------------------- --=====================_35018223==_.ALT Content-Type: text/html; charset="us-ascii" I have a problem interpreting results from the Catalog Search widget.
Don't know if it's a Chameleon problem or PHP problem,
but when I get results from the catalog server ($oXMLDoc->searchResponse->value->searchStatus->attributes['numberOfRecords'] > 0)
I cannot retrieve the subelements of array ISO19119 in the XML doc.
The core of the original code goes like:

$nbIso = count($oXMLDoc->searchResponse->value->searchResults->value->ISO19119);
for($i=0; $i < $nbIso; $i++)
{
     $oRes =& $oXMLDoc->searchResponse->value->searchResults->value->ISO19119[$i];
     $szLayerTitle    = $oRes->value->citation->value->title->value;
     echo $szLayerTitle;
}

So I can interprete the response I get up to the level of   $oXMLDoc->searchResponse->value->searchStatus
but not deeper.
My query was fulll response, so URL parameter ESN=f
Can somebody tell me what is wrong here?

Thanks in advance,

Hans Verlouw
-------------------------------------
Geodan SDT b.v.
Buitenhaven 27-A
5211 TP 's-Hertogenbosch (NL)
-------------------------------------
Tel: +31 (0)73 - 692 5151
Fax:  +31 (0)73 - 692 5150
-------------------------------------
Postadres / mailing address
President Kennedylaan 1
1079 MB Amsterdam (NL)
-------------------------------------
E-mail: Hans.Verlouw@Geodan.nl
Website: www.geodan.nl
Disclaimer: www.geodan.nl/disclaimer
-------------------------------------
--=====================_35018223==_.ALT-- From Tom.Kralidis@ec.gc.ca Tue Nov 4 18:54:51 2003 From: Tom.Kralidis@ec.gc.ca (Tom Kralidis [Burlington]) Date: Tue, 4 Nov 2003 13:54:51 -0500 Subject: [Chameleon] Problem interpreting results from CatalogSearch w idget Message-ID: <2576812186CDD411BF1500508B6DCE950583D14A@ECNWRI1.ontario.int.ec.gc.ca> Hi, This may be because a Service Exception report is being returned in the response, instead of the structure you are expecting. Can you print out the query string for the catalog URL and test in a web browser? What does the raw XML response say? ..Tom ========================= Tom Kralidis Systems Scientist Environment Canada Tel: +01-905-336-4409 http://www.ec.gc.ca/cise/ ========================= -----Original Message----- From: Hans Verlouw [mailto:Hans.Verlouw@Geodan.nl] Sent: Tuesday, November 04, 2003 1:43 PM To: chameleon@lists.maptools.org Subject: [Chameleon] Problem interpreting results from CatalogSearch widget I have a problem interpreting results from the Catalog Search widget. Don't know if it's a Chameleon problem or PHP problem, but when I get results from the catalog server ($oXMLDoc->searchResponse->value->searchStatus->attributes['numberOfRecords' ] > 0) I cannot retrieve the subelements of array ISO19119 in the XML doc. The core of the original code goes like: $nbIso = count($oXMLDoc->searchResponse->value->searchResults->value->ISO19119); for($i=0; $i < $nbIso; $i++) { $oRes =& $oXMLDoc->searchResponse->value->searchResults->value->ISO19119[$i]; $szLayerTitle = $oRes->value->citation->value->title->value; echo $szLayerTitle; } So I can interprete the response I get up to the level of $oXMLDoc->searchResponse->value->searchStatus but not deeper. My query was fulll response, so URL parameter ESN=f Can somebody tell me what is wrong here? Thanks in advance, Hans Verlouw ------------------------------------- Geodan SDT b.v. Buitenhaven 27-A 5211 TP 's-Hertogenbosch (NL) ------------------------------------- Tel: +31 (0)73 - 692 5151 Fax: +31 (0)73 - 692 5150 ------------------------------------- Postadres / mailing address President Kennedylaan 1 1079 MB Amsterdam (NL) ------------------------------------- E-mail: Hans.Verlouw@Geodan.nl Website: www.geodan.nl Disclaimer: www.geodan.nl/disclaimer ------------------------------------- From Hans.Verlouw@Geodan.nl Tue Nov 4 23:48:10 2003 From: Hans.Verlouw@Geodan.nl (Hans Verlouw) Date: Wed, 05 Nov 2003 00:48:10 +0100 Subject: [Chameleon] Problem interpreting results from CatalogSearch w idget In-Reply-To: <2576812186CDD411BF1500508B6DCE950583D14A@ECNWRI1.ontario.i nt.ec.gc.ca> Message-ID: <5.1.0.14.2.20031105003312.00b5fd88@mail.vz.geodan.nl> Hi Tom, I forgot to mention, but I caught the request that was generated, and tested this in a browser. The request generated is: http://ceomap2.ccrs.nrcan.gc.ca/cgi-bin/cslt/wes/service_manager/catquery?RS=XML&catalog=http%3A%2F%2Fceomap2.ccrs.nrcan.gc.ca%2Fcgi-bin%2Fcslt%2Fwes%2Fservice_manager%2Fcatquery&QUERY=SRS%3D%27EPSG%3A4326%27%0D%0AAND+title+like+%27%25Drainage%20Network%201M%20-%20Island%20(lines)%25%27%0D%0AAND+Format%3D%27gif%27%0D%0AAND+ServiceType%3D%27Web+Mapping+Layer%27+%0D%0AAND+Intersects%28LatLongBoundingBox%2C%0D%0A%09%09Envelope%28-160%2C+-50%2C+50%2C+10%29%29%0D%0A%09%09%09&SCHEMA=ISO19119&ESN=f&WANTCONTENT=XML&SEARCH=SEARCH I get a normal response, that is the one dataset I requested, and the response is complete. If I make my request 'wider', so it results in over 5 datasets I get a timeout in Chameleon, even if I increase the timeout in cwc2.xml. But that's another problem, which I hope will be solved when we have our own WCaS up and running. So that's not the real problem. So the XML returned looks good. The problem is interpreting this returned XML. Do you have a CatalogSearch widget running well in an app? Hans At 11/4/2003 07:54 PM, Tom Kralidis [Burlington] wrote: >Hi, > >This may be because a Service Exception report is being returned in the >response, instead of the structure you are expecting. Can you print out the >query string for the catalog URL and test in a web browser? What does the >raw XML response say? > >..Tom > >========================= >Tom Kralidis >Systems Scientist >Environment Canada >Tel: +01-905-336-4409 >http://www.ec.gc.ca/cise/ >========================= > >-----Original Message----- >From: Hans Verlouw [mailto:Hans.Verlouw@Geodan.nl] >Sent: Tuesday, November 04, 2003 1:43 PM >To: chameleon@lists.maptools.org >Subject: [Chameleon] Problem interpreting results from CatalogSearch widget > > >I have a problem interpreting results from the Catalog Search widget. >Don't know if it's a Chameleon problem or PHP problem, >but when I get results from the catalog server >($oXMLDoc->searchResponse->value->searchStatus->attributes['numberOfRecords' >] > 0) >I cannot retrieve the subelements of array ISO19119 in the XML doc. >The core of the original code goes like: > >$nbIso = >count($oXMLDoc->searchResponse->value->searchResults->value->ISO19119); >for($i=0; $i < $nbIso; $i++) >{ > $oRes =& >$oXMLDoc->searchResponse->value->searchResults->value->ISO19119[$i]; > $szLayerTitle = $oRes->value->citation->value->title->value; > echo $szLayerTitle; >} > >So I can interprete the response I get up to the level of >$oXMLDoc->searchResponse->value->searchStatus >but not deeper. >My query was fulll response, so URL parameter ESN=f >Can somebody tell me what is wrong here? > >Thanks in advance, > > >Hans Verlouw >------------------------------------- >Geodan SDT b.v. >Buitenhaven 27-A >5211 TP 's-Hertogenbosch (NL) >------------------------------------- >Tel: +31 (0)73 - 692 5151 >Fax: +31 (0)73 - 692 5150 >------------------------------------- >Postadres / mailing address >President Kennedylaan 1 >1079 MB Amsterdam (NL) >------------------------------------- >E-mail: Hans.Verlouw@Geodan.nl >Website: www.geodan.nl >Disclaimer: www.geodan.nl/disclaimer >------------------------------------- From spencer@dmsolutions.ca Wed Nov 5 00:13:56 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Tue, 04 Nov 2003 19:13:56 -0500 Subject: [Chameleon] Problem interpreting results from CatalogSearch widget In-Reply-To: <5.1.0.14.2.20031104193128.024f5600@mail.vz.geodan.nl> References: <5.1.0.14.2.20031104193128.024f5600@mail.vz.geodan.nl> Message-ID: <3FA840C4.3060200@magma.ca> Hans, there may have been some change to the XML object code that we use for interpreting the response, I will try to check it. There is a potential issue with how we have implemented this widget, it is not particularly efficient and will timeout on larger requests ... well, almost any request with more than 3-4 results I think. There are almost certainly opportunites to improve this, specifically with not requesting full results until a layer is selected, for instance. Cheers, Paul Hans Verlouw wrote: > I have a problem interpreting results from the Catalog Search widget. > Don't know if it's a Chameleon problem or PHP problem, > but when I get results from the catalog server > ($oXMLDoc->searchResponse->value->searchStatus->attributes['numberOfRecords'] > > 0) > I cannot retrieve the subelements of array ISO19119 in the XML doc. > The core of the original code goes like: > > $nbIso = > count($oXMLDoc->searchResponse->value->searchResults->value->ISO19119); > for($i=0; $i < $nbIso; $i++) > { > $oRes =& > $oXMLDoc->searchResponse->value->searchResults->value->ISO19119[$i]; > $szLayerTitle = $oRes->value->citation->value->title->value; > echo $szLayerTitle; > } > > So I can interprete the response I get up to the level of > $oXMLDoc->searchResponse->value->searchStatus > but not deeper. > My query was fulll response, so URL parameter ESN=f > Can somebody tell me what is wrong here? > > Thanks in advance, > > Hans Verlouw > ------------------------------------- > Geodan SDT b.v. > Buitenhaven 27-A > 5211 TP 's-Hertogenbosch (NL) > ------------------------------------- > Tel: +31 (0)73 - 692 5151 > Fax: +31 (0)73 - 692 5150 > ------------------------------------- > Postadres / mailing address > President Kennedylaan 1 > 1079 MB Amsterdam (NL) > ------------------------------------- > E-mail: Hans.Verlouw@Geodan.nl > Website: www.geodan.nl > Disclaimer: www.geodan.nl/disclaimer > ------------------------------------- > -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From bartvde@xs4all.nl Fri Nov 7 13:43:30 2003 From: bartvde@xs4all.nl (bartvde@xs4all.nl) Date: Fri, 7 Nov 2003 14:43:30 +0100 (CET) Subject: [Chameleon] error in CWC2ApplicationDevelopersGuide Message-ID: <19265.212.238.227.182.1068212610.squirrel@webmail.xs4all.nl> Hi list, there is an error in the ApplicationDevelopersGuide (or it has changed between Chameleon 1.0 and Chameleon 1.1). It says in the guide that to get a different popup.css for all popups in your application you should define a shared resource like: This should be: Best regards, Bart From huub.fleuren@geodan.nl Fri Nov 7 14:08:41 2003 From: huub.fleuren@geodan.nl (Huub Fleuren) Date: Fri, 07 Nov 2003 15:08:41 +0100 Subject: [Chameleon] ImageObjects and gd images Message-ID: <3FABA769.4080302@geodan.nl> Hello I would like to compose a final layout image from a drawn map and scalebar image from the mapserver and a default layout, which is a PNG on disk. I found that a $layout_img gd image object create with $layout_img=imagecreatefrompng("a4portrait.png"); is not the same as an imageobject create with mapscript like $oImage = oMap->draw(); A solution to this would be to save the map $szMapUrl = $oImage->saveWebImage("") and read such file with gd to paste a new image together from diskfiles But i would rather paste the final layout with oMap->pasteImage functionality. This would be possible, if a MapScript imageObject coould be read from file or i'm missing something: can a gd image be cast into a mapscript image object? Greetings Huub -- ------------------------------------- Geodan IT b.v. Buitenhaven 27-A 5211 TP 's-Hertogenbosch (NL) ------------------------------------- Tel: +31 (0)73 - 692 5151 Fax: +31 (0)73 - 692 5150 Mobiel: ------------------------------------- Postadres / mailing address President Kennedylaan 1 1079 MB Amsterdam (NL) ------------------------------------- E-mail: huub.fleuren@geodan.nl Website: www.geodan.nl Disclaimer: www.geodan.nl/disclaimer ------------------------------------- From jfournier@dmsolutions.ca Fri Nov 7 14:44:18 2003 From: jfournier@dmsolutions.ca (Jason Fournier) Date: Fri, 07 Nov 2003 09:44:18 -0500 Subject: [Chameleon] error in CWC2ApplicationDevelopersGuide In-Reply-To: <19265.212.238.227.182.1068212610.squirrel@webmail.xs4all.nl> References: <19265.212.238.227.182.1068212610.squirrel@webmail.xs4all.nl> Message-ID: <3FABAFC2.9030307@dmsolutions.ca> Thanks Bart ... we will update documentation. Best Regards, Jason bartvde@xs4all.nl wrote: >Hi list, > >there is an error in the ApplicationDevelopersGuide (or it has changed >between Chameleon 1.0 and Chameleon 1.1). > >It says in the guide that to get a different popup.css for all popups in >your application you should define a shared resource like: > > > >This should be: > >value=""/> > >Best regards, >Bart >_______________________________________________ >Chameleon mailing list >Chameleon@lists.maptools.org >http://lists.maptools.org/mailman/listinfo/chameleon > > > -- -- |Jason Fournier |DM Solutions Group |Application Developer |Ottawa, ON |613.565.5056 x 18 |jfournier@dmsolutions.ca -- From spencer@dmsolutions.ca Fri Nov 7 15:21:01 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Fri, 07 Nov 2003 10:21:01 -0500 Subject: [Chameleon] ImageObjects and gd images In-Reply-To: <3FABA769.4080302@geodan.nl> References: <3FABA769.4080302@geodan.nl> Message-ID: <3FABB85D.8060304@magma.ca> Huub, AFAIK, even though the mapserver imageobj is a GD image, it is not compatible with the PHP GD image objects. This is unfortunate, but something that is possible because they share a common data structure at some level in the code. There is an existing bug in MapServer bugzilla, http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=110 that discusses this issue. Please contact me directly if you are interested in funding this work. Otherwise, it will likely wait until someone either takes an interest in this issue or funds it. Another suggestion is to create a layer with TRANSFORM FALSE, ensure that the image is transparent in the appropriate places for the map to show through, and then draw this layer last as a mask on top of the map. You can then set the source for the layer to your PNG file and it should work. Cheers, Paul Huub Fleuren wrote: > Hello > > I would like to compose a final layout image from a drawn map and > scalebar image from the mapserver and a default layout, which is a PNG > on disk. > > I found that a $layout_img gd image object create with > $layout_img=imagecreatefrompng("a4portrait.png"); > > is not the same as an imageobject create with mapscript like > $oImage = oMap->draw(); > > > A solution to this would be to save the map > > $szMapUrl = $oImage->saveWebImage("") > > and read such file with gd to paste a new image together from diskfiles > > > But i would rather paste the final layout with oMap->pasteImage > functionality. > > This would be possible, if a MapScript imageObject coould be read from file > > or i'm missing something: can a gd image be cast into a mapscript image > object? > > > Greetings > > Huub > > -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From bmay@mapwise.com Fri Nov 7 20:04:38 2003 From: bmay@mapwise.com (Brian May) Date: Fri, 7 Nov 2003 15:04:38 -0500 Subject: [Chameleon] geobase Message-ID: <200311071504.AA201327274@mapwise.com> I am looking for information on how to use (and whether I should use) the geobasecontextselectorwidget. I can't find anything besides the basic documentation in the chameleon docs that don't really say much about it. Brian May MapWise, Inc. From spencer@dmsolutions.ca Fri Nov 7 23:51:09 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Fri, 07 Nov 2003 18:51:09 -0500 Subject: [Chameleon] geobase In-Reply-To: <200311071504.AA201327274@mapwise.com> References: <200311071504.AA201327274@mapwise.com> Message-ID: <3FAC2FED.3070301@magma.ca> Brian, the geobasecontextselector widget is not well documented because it was developed specifically for GeoBase. There should be another widget, the ContextSelector widget, that was developed as a generic version of this widget. If you can find that widget, I would suggest using it. I can post some instructions on its use if needed, but I think there is some documentation included with it. Cheers, Paul Brian May wrote: > I am looking for information on how to use (and whether I should use) the geobasecontextselectorwidget. I can't find anything besides the basic documentation in the chameleon docs that don't really say much about it. > > Brian May > MapWise, Inc. > > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From darren_redfern2000@hotmail.com Mon Nov 10 12:47:27 2003 From: darren_redfern2000@hotmail.com (Darren Redfern) Date: Mon, 10 Nov 2003 07:47:27 -0500 Subject: [Chameleon] Fwd: RE: CWC2 Training Course Pre-package Message-ID: >From: "Suddaby, Rod" >To: 'Darren Redfern' >Subject: RE: CWC2 Training Course Pre-package >Date: Fri, 7 Nov 2003 11:55:01 -0500 > >Hi Darren: >I was hoping you could help me solve a configuration problem I'm having >with >the latest Chameleon release. When I try to access any of the demo >applications, the CWC2 tags are merely dumped to the browser without any >processing. Any idea on what I've done wrong? > >Oh... the system configuration is: >Win2000 >Apache 2.0.44 >PHP 4.3.1 (loaded as a CGI app) >Mapserver/Mapscript 4.1 (precompiled Win32 release) > >Thanks, >Rod Suddaby _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From hduong@mail.com Mon Nov 10 17:36:05 2003 From: hduong@mail.com (Hoang Duong) Date: Mon, 10 Nov 2003 12:36:05 -0500 Subject: [Chameleon] jsp/servlet Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0000_01C3A787.359D4A30 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I am new to Chameleon/Mapserver. I would like to know how to use JSP/Servlet with Chameleon. Thank you and regards, Hoang ______________________ Hoang Duong Senior Software Engineer E: hduong@mail.com T: 416.744.3698 C: 416.826.3544 ------=_NextPart_000_0000_01C3A787.359D4A30 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I am new to Chameleon/Mapserver.  I would like to know how to use = JSP/Servlet with Chameleon. 

 

Thank you and regards,

Hoang

 

______________________

Hoang Duong

Senior Software = Engineer

E<= font size=3D2 face=3DArial>hduong@mail.com

T<= font size=3D2 face=3DArial>:  416.744.3698

C<= font size=3D2 face=3DArial>:  416.826.3544

 

------=_NextPart_000_0000_01C3A787.359D4A30-- From thorne@dmsolutions.ca Tue Nov 11 18:08:47 2003 From: thorne@dmsolutions.ca (Christopher R. Thorne) Date: Tue, 11 Nov 2003 13:08:47 -0500 Subject: [Chameleon] Fwd: RE: CWC2 Training Course Pre-package In-Reply-To: References: Message-ID: <3FB125AF.1020903@dmsolutions.ca> Hello, The information you have given is important, but the mailing list probably requires a little more details in order to get to the bottom of it. What version of Chameleon are you using? eg. 1.1 vs. 1.0 What demo are you using? How are you calling this application? Are you calling it through a Server instance (this currently only apply to version 1.0.x. eg. for Chameleon 1.0.x http://localhost/cwc2/cwc2.php?template=cwc2/htdocs/test.html&context=cwc2/htdocs/gmap_context.xml OR eg. for Chameleon 1.1 A regular url where you would call the index.phtml file which bring chameleon.php your template and mapfile together. http://localhost/chameleon_demo/index.phtml >> When I try to access any of the demo >> applications, the CWC2 tags are merely dumped to the browser without >> any processing. Any idea on what I've done wrong? If CWC2 tags are displayed in "RED" this means that Chameleon is reading the CWC2 tags in your template, but have some general problem, the the specific tag. Hope this helps, Chris Darren Redfern wrote: > >> From: "Suddaby, Rod" >> To: 'Darren Redfern' >> Subject: RE: CWC2 Training Course Pre-package >> Date: Fri, 7 Nov 2003 11:55:01 -0500 >> >> Hi Darren: >> I was hoping you could help me solve a configuration problem I'm >> having with >> the latest Chameleon release. When I try to access any of the demo >> applications, the CWC2 tags are merely dumped to the browser without any >> processing. Any idea on what I've done wrong? >> >> Oh... the system configuration is: >> Win2000 >> Apache 2.0.44 >> PHP 4.3.1 (loaded as a CGI app) >> Mapserver/Mapscript 4.1 (precompiled Win32 release) >> >> Thanks, >> Rod Suddaby > > > _________________________________________________________________ > STOP MORE SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca > > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- Christopher R. Thorne GIS Specialist, DM Solutions Group Inc. http://www.dmsolutions.ca email: thorne@dmsolutions.ca Phone: (613) 565-5056 ext.22 Fax : (613) 565-0925 ------------------------------ From hduong@mail.com Tue Nov 11 21:53:57 2003 From: hduong@mail.com (Hoang Duong) Date: Tue, 11 Nov 2003 16:53:57 -0500 Subject: [Chameleon] need help on cwc2 sample on ms4w (for windows) Message-ID: <20031111215357.29826.qmail@mail.com> Hi, Can someone provide baby steps to run cwc2 samples on windows platform. I don't have enough knowledge for now to figure out what I am missing. This is the steps that I have done: 1. Install ms4w on drive C (e.g. c:\ms4w) 2. Unzip chameleon_ms4w-1.0.3.zip to create c:\ms4w\apps\cwc2 and its contents. 3. Start Apache 4. Type http://localhost on browser. In the Applications section of the website, I see: Applications CWC2 1.0 (Chameleon 1.0) CWC2 Service Instance url. CWC2 Administration. CWC2 Documentation. 5. I click on the "CWC2 Service Instance url" link to get to the follow page with these contents: Index of /cwc2 Name Last modified Size Description-------------------------------------------------------------------------------- Parent Directory - CWC2_INSTALLATION.txt 22-Sep-2003 14:22 5.9K HttpFormVars.php 22-Sep-2003 14:22 6.4K TemplateParser.php 22-Sep-2003 14:22 6.5K TemplateProcessor.php 22-Sep-2003 14:22 8.9K UIManager.php 22-Sep-2003 14:22 13K UpdateMap.php 22-Sep-2003 14:22 28K WidgetManager.php 22-Sep-2003 14:22 5.2K common/ 11-Nov-2003 16:40 - cwc.css 22-Sep-2003 14:22 514 cwc2.css 22-Sep-2003 14:22 1.8K cwc2.php 22-Sep-2003 14:22 32K demo.html 22-Sep-2003 14:22 14K demo.php 22-Sep-2003 14:22 86 generic_renderer.html 22-Sep-2003 14:22 1.0K gmap_context.xml 22-Sep-2003 14:22 7.3K help.html 22-Sep-2003 14:22 482 help_en.html 22-Sep-2003 14:22 4.2K help_fr.html 22-Sep-2003 14:22 343 images/ 11-Nov-2003 16:40 - issues.txt 22-Sep-2003 14:22 1.5K legend_template.html 22-Sep-2003 14:22 401 legend_template_widg..> 22-Sep-2003 14:22 798 simplest.html 22-Sep-2003 14:22 825 template.map 22-Sep-2003 14:22 1.5K test.html 22-Sep-2003 14:22 19K test.php 22-Sep-2003 14:22 86 test_cs.html 22-Sep-2003 14:22 1.4K test_theme.xml 22-Sep-2003 14:22 1.4K widgets/ 11-Nov-2003 16:40 - 6. I click on demo.html. And this is what I got: CWC2 Demo Template This template contains a sampling of widgets that are available for CWC2. Note that the KeyMap image used in this template is specific to Canada in LCC projection and may not be appropriate for an arbitrary context. Layers: Map Size: x: y: x: y: There seems to be no buttons, icons, or maps. 7. Or if I click on test.html. Also, icons, maps, or buttons. Thank you. Hoang -- __________________________________________________________ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup Search Smarter - get the new eXact Search Bar for free! http://www.exactsearchbar.com/ From spencer@dmsolutions.ca Tue Nov 11 22:18:54 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Tue, 11 Nov 2003 17:18:54 -0500 Subject: [Chameleon] need help on cwc2 sample on ms4w (for windows) In-Reply-To: <20031111215357.29826.qmail@mail.com> References: <20031111215357.29826.qmail@mail.com> Message-ID: <3FB1604E.3000208@magma.ca> Hoang, there appears to be a problem with this version of the installer, I think that something got missed. You should be able to enter the following URL to see a CWC2 application: http://localhost/cwc2/cwc2.php?template=cwc2/htdocs/demo.html The CWC2 Service Instance link is not meant to be clickable - it just shows you the base URL at which CWC2 is installed. Demo.html is just a sample template. CWC2 uses templates to render the application interface. The complete URL for a CWC2 application points at the service instance (http://localhost/cwc2/cwc2.php) and optionally provides a template and a context. This is done by passing two parameters, template and context, on the URL to cwc2.php. I say optionally because the administrator can set default template and context values that will be used if cwc2.php is called with no extra parameters. HTH Paul Hoang Duong wrote: > Hi, > > Can someone provide baby steps to run cwc2 samples on windows platform. I don't have enough knowledge for now to figure out what I am missing. This is the steps that I have done: > > 1. Install ms4w on drive C (e.g. c:\ms4w) > 2. Unzip chameleon_ms4w-1.0.3.zip to create c:\ms4w\apps\cwc2 and its contents. > 3. Start Apache > 4. Type http://localhost on browser. In the Applications section of the website, I see: > > Applications > CWC2 1.0 (Chameleon 1.0) > CWC2 Service Instance url. > CWC2 Administration. > CWC2 Documentation. > > 5. I click on the "CWC2 Service Instance url" link to get to the follow page with these contents: > > Index of /cwc2 > Name Last modified Size Description-------------------------------------------------------------------------------- Parent Directory - > CWC2_INSTALLATION.txt 22-Sep-2003 14:22 5.9K > HttpFormVars.php 22-Sep-2003 14:22 6.4K > TemplateParser.php 22-Sep-2003 14:22 6.5K > TemplateProcessor.php 22-Sep-2003 14:22 8.9K > UIManager.php 22-Sep-2003 14:22 13K > UpdateMap.php 22-Sep-2003 14:22 28K > WidgetManager.php 22-Sep-2003 14:22 5.2K > common/ 11-Nov-2003 16:40 - > cwc.css 22-Sep-2003 14:22 514 > cwc2.css 22-Sep-2003 14:22 1.8K > cwc2.php 22-Sep-2003 14:22 32K > demo.html 22-Sep-2003 14:22 14K > demo.php 22-Sep-2003 14:22 86 > generic_renderer.html 22-Sep-2003 14:22 1.0K > gmap_context.xml 22-Sep-2003 14:22 7.3K > help.html 22-Sep-2003 14:22 482 > help_en.html 22-Sep-2003 14:22 4.2K > help_fr.html 22-Sep-2003 14:22 343 > images/ 11-Nov-2003 16:40 - > issues.txt 22-Sep-2003 14:22 1.5K > legend_template.html 22-Sep-2003 14:22 401 > legend_template_widg..> 22-Sep-2003 14:22 798 > simplest.html 22-Sep-2003 14:22 825 > template.map 22-Sep-2003 14:22 1.5K > test.html 22-Sep-2003 14:22 19K > test.php 22-Sep-2003 14:22 86 > test_cs.html 22-Sep-2003 14:22 1.4K > test_theme.xml 22-Sep-2003 14:22 1.4K > widgets/ 11-Nov-2003 16:40 - > > 6. I click on demo.html. And this is what I got: > > CWC2 Demo Template > This template contains a sampling of widgets that are available for CWC2. > Note that the KeyMap image used in this template is specific to Canada in LCC projection and may not be appropriate for an arbitrary context. > > > Layers: > > > > > Map Size: > > > > x: > y: > > > x: > y: > > > There seems to be no buttons, icons, or maps. > > 7. Or if I click on test.html. Also, icons, maps, or buttons. > > Thank you. > Hoang > > > > -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From hduong@mail.com Wed Nov 12 05:01:22 2003 From: hduong@mail.com (Hoang Duong) Date: Wed, 12 Nov 2003 00:01:22 -0500 Subject: [Chameleon] need help on cwc2 sample on ms4w (for windows) Message-ID: <20031112050122.3009.qmail@mail.com> Thanks Paul. The demo, using the URL you provided, is up. I am learning bit by bit. Thanks. ----- Original Message ----- From: Paul Spencer Date: Tue, 11 Nov 2003 17:18:54 -0500 To: Hoang Duong Subject: Re: [Chameleon] need help on cwc2 sample on ms4w (for windows) > Hoang, there appears to be a problem with this version of the installer, > I think that something got missed. > > You should be able to enter the following URL to see a CWC2 application: > > http://localhost/cwc2/cwc2.php?template=cwc2/htdocs/demo.html > > The CWC2 Service Instance link is not meant to be clickable - it just > shows you the base URL at which CWC2 is installed. > > Demo.html is just a sample template. CWC2 uses templates to render the > application interface. The complete URL for a CWC2 application points > at the service instance (http://localhost/cwc2/cwc2.php) and optionally > provides a template and a context. This is done by passing two > parameters, template and context, on the URL to cwc2.php. I say > optionally because the administrator can set default template and > context values that will be used if cwc2.php is called with no extra > parameters. > > HTH > > Paul > > Hoang Duong wrote: > > > Hi, > > > > Can someone provide baby steps to run cwc2 samples on windows platform. I don't have enough knowledge for now to figure out what I am missing. This is the steps that I have done: > > > > 1. Install ms4w on drive C (e.g. c:\ms4w) > > 2. Unzip chameleon_ms4w-1.0.3.zip to create c:\ms4w\apps\cwc2 and its contents. > > 3. Start Apache > > 4. Type http://localhost on browser. In the Applications section of the website, I see: > > > > Applications > > CWC2 1.0 (Chameleon 1.0) > > CWC2 Service Instance url. > > CWC2 Administration. > > CWC2 Documentation. > > > > 5. I click on the "CWC2 Service Instance url" link to get to the follow page with these contents: > > > > Index of /cwc2 > > Name Last modified Size Description-------------------------------------------------------------------------------- Parent Directory - > > CWC2_INSTALLATION.txt 22-Sep-2003 14:22 5.9K > > HttpFormVars.php 22-Sep-2003 14:22 6.4K > > TemplateParser.php 22-Sep-2003 14:22 6.5K > > TemplateProcessor.php 22-Sep-2003 14:22 8.9K > > UIManager.php 22-Sep-2003 14:22 13K > > UpdateMap.php 22-Sep-2003 14:22 28K > > WidgetManager.php 22-Sep-2003 14:22 5.2K > > common/ 11-Nov-2003 16:40 - > > cwc.css 22-Sep-2003 14:22 514 > > cwc2.css 22-Sep-2003 14:22 1.8K > > cwc2.php 22-Sep-2003 14:22 32K > > demo.html 22-Sep-2003 14:22 14K > > demo.php 22-Sep-2003 14:22 86 > > generic_renderer.html 22-Sep-2003 14:22 1.0K > > gmap_context.xml 22-Sep-2003 14:22 7.3K > > help.html 22-Sep-2003 14:22 482 > > help_en.html 22-Sep-2003 14:22 4.2K > > help_fr.html 22-Sep-2003 14:22 343 > > images/ 11-Nov-2003 16:40 - > > issues.txt 22-Sep-2003 14:22 1.5K > > legend_template.html 22-Sep-2003 14:22 401 > > legend_template_widg..> 22-Sep-2003 14:22 798 > > simplest.html 22-Sep-2003 14:22 825 > > template.map 22-Sep-2003 14:22 1.5K > > test.html 22-Sep-2003 14:22 19K > > test.php 22-Sep-2003 14:22 86 > > test_cs.html 22-Sep-2003 14:22 1.4K > > test_theme.xml 22-Sep-2003 14:22 1.4K > > widgets/ 11-Nov-2003 16:40 - > > > > 6. I click on demo.html. And this is what I got: > > > > CWC2 Demo Template > > This template contains a sampling of widgets that are available for CWC2. > > Note that the KeyMap image used in this template is specific to Canada in LCC projection and may not be appropriate for an arbitrary context. > > > > > > Layers: > > > > > > > > > > Map Size: > > > > > > > > x: > > y: > > > > > > x: > > y: > > > > > > There seems to be no buttons, icons, or maps. > > > > 7. Or if I click on test.html. Also, icons, maps, or buttons. > > > > Thank you. > > Hoang > > > > > > > > > > -- > ----------------------------------------------------------------- > |Paul Spencer spencer@dmsolutions.ca | > |-----------------------------------------------------------------| > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > ----------------------------------------------------------------- > > -- __________________________________________________________ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup Search Smarter - get the new eXact Search Bar for free! http://www.exactsearchbar.com/ From john.pulles@geodan.nl Wed Nov 12 11:02:04 2003 From: john.pulles@geodan.nl (John Pulles) Date: Wed, 12 Nov 2003 12:02:04 +0100 Subject: [Chameleon] zoomtoscale for Locate widget Message-ID: <3FB2132C.1080808@geodan.nl> Hi list, In chameleon 1.1 alpha6 I am using the Locate widget with a zoomtoscale of 50000. As far as I know, this means that if a gazetteer service finds certain locations, a zoom to that location should return a map at scale 50000. The map I am looking at is showing a much larger area? Is there something wrong with how chameleon zooms in, or am I using the zoomtoscale parameter incorrectly? Thanks, John. From spencer@dmsolutions.ca Wed Nov 12 13:56:08 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Wed, 12 Nov 2003 08:56:08 -0500 Subject: [Chameleon] zoomtoscale for Locate widget In-Reply-To: <3FB2132C.1080808@geodan.nl> References: <3FB2132C.1080808@geodan.nl> Message-ID: <3FB23BF8.9060308@magma.ca> John, I believe you are using it correctly, there is likely a bug. 50000 is zoomed in pretty far. You can always add a 'Scale' widget to see what the current scale is ... that would, in fact, be very useful to me to know what it is doing. Cheers, Paul John Pulles wrote: > Hi list, > > In chameleon 1.1 alpha6 I am using the Locate widget with a zoomtoscale > of 50000. As far as I know, this means that if a gazetteer service finds > certain locations, a zoom to that location should return a map at scale > 50000. The map I am looking at is showing a much larger area? Is there > something wrong with how chameleon zooms in, or am I using the > zoomtoscale parameter incorrectly? > > Thanks, > John. > > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From thorne@dmsolutions.ca Wed Nov 12 19:24:57 2003 From: thorne@dmsolutions.ca (Christopher R. Thorne) Date: Wed, 12 Nov 2003 14:24:57 -0500 Subject: [Chameleon] CWC2 Training Course Pre-package In-Reply-To: References: Message-ID: <3FB28909.7080108@dmsolutions.ca> Rod, Probably the biggest tip I can give you is make sure the paths to the context file and template are correct. It is very easy to get confused. The path that you gave me: http://localhost/cwc2/cwc2.php?TEMPLATE=demo.html&CONTEXT=gmap_context.xml This path will not work if the Template and Context file you are referring to is located within /cwc2/htdocs/* http://localhost/cwc2/cwc2.php?template=cwc2/htdocs/demo.html&context=cwc2/htdocs/gmap_context.xml If I am wrong please let me know the paths to your files. I have posted your questions to the Chameleon mail List. My hope is that others will give further input ;) The Chameleon Mail List is an excellent resource for getting questions answered. If you like you can join the list on Maptools.org. http://lists.maptools.org/mailman/listinfo/chameleon Chris Suddaby, Rod wrote: > Hi Chris, > Thank you for your response. I'm using version 1.0.3 and accessing the demo > as: > > > The CWC2 tags (all of them) appearing in the browser are colored red. > Being new to Chameleon I don't know where to begin looking :-) > > Thank you. > Rod. > > -----Original Message----- > From: Christopher R. Thorne [mailto:thorne@dmsolutions.ca] > Sent: Wednesday, November 12, 2003 7:19 AM > To: RSuddaby@NRCan.gc.ca > Subject: [Fwd: Re: [Chameleon] Fwd: RE: CWC2 Training Course > Pre-package] > > > Hello, > The information you have given is important, but the mailing list > probably requires a little more details in order to get to the bottom of it. > > What version of Chameleon are you using? eg. 1.1 vs. 1.0 > > What demo are you using? > > How are you calling this application? Are you calling it through a > Server instance (this currently only apply to version 1.0.x. > > eg. for Chameleon 1.0.x > http://localhost/cwc2/cwc2.php?template=cwc2/htdocs/test.html&context=cwc2/h > tdocs/gmap_context.xml > > OR > eg. for Chameleon 1.1 > > A regular url where you would call the index.phtml file which bring > chameleon.php your template and mapfile together. > > http://localhost/chameleon_demo/index.phtml > > >> When I try to access any of the demo > >> applications, the CWC2 tags are merely dumped to the browser without > >> any processing. Any idea on what I've done wrong? > > If CWC2 tags are displayed in "RED" this means that Chameleon is reading > the CWC2 tags in your template, but have some general problem, the the > specific tag. > > Hope this helps, > Chris > > > Darren Redfern wrote: > > > > >> From: "Suddaby, Rod" > >> To: 'Darren Redfern' > >> Subject: RE: CWC2 Training Course Pre-package > >> Date: Fri, 7 Nov 2003 11:55:01 -0500 > >> > >> Hi Darren: > >> I was hoping you could help me solve a configuration problem I'm > having with > >> the latest Chameleon release. When I try to access any of the demo > >> applications, the CWC2 tags are merely dumped to the browser without any > >> processing. Any idea on what I've done wrong? > >> > >> Oh... the system configuration is: > >> Win2000 > >> Apache 2.0.44 > >> PHP 4.3.1 (loaded as a CGI app) > >> Mapserver/Mapscript 4.1 (precompiled Win32 release) > >> > >> Thanks, > >> Rod Suddaby > > > > > > > > _________________________________________________________________ > > STOP MORE SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn > .com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca > > > > _______________________________________________ > > Chameleon mailing list > > Chameleon@lists.maptools.org > > http://lists.maptools.org/mailman/listinfo/chameleon > > > > -- Christopher R. Thorne GIS Specialist, DM Solutions Group Inc. http://www.dmsolutions.ca email: thorne@dmsolutions.ca Phone: (613) 565-5056 ext.22 Fax : (613) 565-0925 ------------------------------ From thorne@dmsolutions.ca Wed Nov 12 19:46:39 2003 From: thorne@dmsolutions.ca (Christopher R. Thorne) Date: Wed, 12 Nov 2003 14:46:39 -0500 Subject: [Chameleon] CWC2 Training Course Pre-package In-Reply-To: <3FB28909.7080108@dmsolutions.ca> References: <3FB28909.7080108@dmsolutions.ca> Message-ID: <3FB28E1F.9020103@dmsolutions.ca> I missed one thing that you should check and that is in the cwc admin configuration page. Make sure your "map_template:" is correct. Chris PS if this is not the problem please send me your template file (demo.html). I will see if it works for me. Christopher R. Thorne wrote: > Rod, > > Probably the biggest tip I can give you is make sure the paths to the > context file and template are correct. It is very easy to get confused. > > The path that you gave me: > http://localhost/cwc2/cwc2.php?TEMPLATE=demo.html&CONTEXT=gmap_context.xml > > This path will not work if the Template and Context file you are > referring to is located within /cwc2/htdocs/* > > http://localhost/cwc2/cwc2.php?template=cwc2/htdocs/demo.html&context=cwc2/htdocs/gmap_context.xml > > > If I am wrong please let me know the paths to your files. > > I have posted your questions to the Chameleon mail List. My hope is that > others will give further input ;) > > The Chameleon Mail List is an excellent resource for getting questions > answered. If you like you can join the list on Maptools.org. > > http://lists.maptools.org/mailman/listinfo/chameleon > > Chris > > > Suddaby, Rod wrote: > >> Hi Chris, >> Thank you for your response. I'm using version 1.0.3 and accessing the >> demo >> as: >> >> >> >> The CWC2 tags (all of them) appearing in the browser are colored red. >> Being new to Chameleon I don't know where to begin looking :-) >> >> Thank you. >> Rod. >> >> -----Original Message----- >> From: Christopher R. Thorne [mailto:thorne@dmsolutions.ca] >> Sent: Wednesday, November 12, 2003 7:19 AM >> To: RSuddaby@NRCan.gc.ca >> Subject: [Fwd: Re: [Chameleon] Fwd: RE: CWC2 Training Course >> Pre-package] >> >> >> Hello, >> The information you have given is important, but the mailing list >> probably requires a little more details in order to get to the bottom >> of it. >> >> What version of Chameleon are you using? eg. 1.1 vs. 1.0 >> >> What demo are you using? >> >> How are you calling this application? Are you calling it through a >> Server instance (this currently only apply to version 1.0.x. >> >> eg. for Chameleon 1.0.x >> http://localhost/cwc2/cwc2.php?template=cwc2/htdocs/test.html&context=cwc2/h >> >> tdocs/gmap_context.xml >> >> OR >> eg. for Chameleon 1.1 >> >> A regular url where you would call the index.phtml file which bring >> chameleon.php your template and mapfile together. >> >> http://localhost/chameleon_demo/index.phtml >> >> >> When I try to access any of the demo >> >> applications, the CWC2 tags are merely dumped to the browser >> without >> any processing. Any idea on what I've done wrong? >> >> If CWC2 tags are displayed in "RED" this means that Chameleon is >> reading the CWC2 tags in your template, but have some general problem, >> the the specific tag. >> >> Hope this helps, >> Chris >> >> >> Darren Redfern wrote: >> >> > >> >> From: "Suddaby, Rod" >> >> To: 'Darren Redfern' >> >> Subject: RE: CWC2 Training Course Pre-package >> >> Date: Fri, 7 Nov 2003 11:55:01 -0500 >> >> >> >> Hi Darren: >> >> I was hoping you could help me solve a configuration problem I'm >> having with >> >> the latest Chameleon release. When I try to access any of the demo >> >> applications, the CWC2 tags are merely dumped to the browser >> without any >> >> processing. Any idea on what I've done wrong? >> >> >> >> Oh... the system configuration is: >> >> Win2000 >> >> Apache 2.0.44 >> >> PHP 4.3.1 (loaded as a CGI app) >> >> Mapserver/Mapscript 4.1 (precompiled Win32 release) >> >> >> >> Thanks, >> >> Rod Suddaby >> > >> > >> > >> > _________________________________________________________________ >> > STOP MORE SPAM with the new MSN 8 and get 2 months FREE* >> http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn >> >> .com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca >> > >> > _______________________________________________ >> > Chameleon mailing list >> > Chameleon@lists.maptools.org >> > http://lists.maptools.org/mailman/listinfo/chameleon >> > >> >> > > -- Christopher R. Thorne GIS Specialist, DM Solutions Group Inc. http://www.dmsolutions.ca email: thorne@dmsolutions.ca Phone: (613) 565-5056 ext.22 Fax : (613) 565-0925 ------------------------------ From syurman@spatialfocus.com Sat Nov 15 20:35:18 2003 From: syurman@spatialfocus.com (Sara Yurman) Date: Sat, 15 Nov 2003 15:35:18 -0500 Subject: [Chameleon] my widgets don't widge Message-ID: <3FB68E06.6050707@spatialfocus.com> I've been trying without success to make the widgets on my chameleon installation work. I would be intensely grateful for any help at all. ******What doesn't work****** ZoomIn********* Red box draws on the screen, screen refreshes, map redisplays at full extent. If I start a new session, the scalebar comes up with zoomed distances. If I then try zooming again the scalebar again represents the full extent ZoomOut******** I click, the watch displays, the map remains stolidly in place. Pan************ The entire image moves with the hand, then the map returns to its original display. Manage Layers***************** This shows a blank screen, and throws some errors in the apache log: PHP Notice: Undefined index: gszMapTemplate in /var/www/cwc2/htdocs/widgets/Layer.phtml on line 20 PHP Notice: Undefined index: gszMapTemplate in /var/www/cwc2/htdocs/widgets/Layer.phtml on line 21 PHP Fatal error: Call to a member function on a non-object in /var/www/cwc2/htdocs/widgets/Layer.phtml on line 51 PHP Notice: Undefined index: bShowPreview in /var/www/cwc2/htdocs/widgets/production.phtml on line 561 PHP Notice: Undefined index: bShowDownload in /var/www/cwc2/htdocs/widgets/production.phtml on line 562 PHP Notice: Undefined variable: txtFootDesc in /var/www/cwc2/htdocs/widgets/production.phtml on line 567 Print***************** Doesn't work, throws this error in the apache log: Undefined variable: txtFootDesc in /var/www/cwc2/htdocs/widgets/production.phtml on line 567 **********What does work*************** The map layer (the .map file only describes one at this point) displays properly and the ruler works, even in feet. ******About my installation****** I'm using Chameleon-1.1 alpha6, running with MapServer 4.01 on Debian. ******What I did to check my installation****** I've checked my environment with the screens at htdocs_admin/index.phtml. Everything looked good: mapscript 4.01 located, png supported, php 4.3.3 found, all mandatory settings and required modules with little green OK checks. ******More installation checking: the apache error log****** Got " Undefined index: gszServerDataPath in /var/www/cwc2/htdocs/common/phpwms/manage_servers.phtml on line 133". Wasn't too perturbed about it, since I wanted to work with a .map file. ******How I made my tiny little application****** I started by copying and editing the demo.php and demo.html files, and edited the following widget names (From > To ) to reflect the actual widget names I found: PrintPopup > PrintWidget MapDHTMLImage > MapDHTMLWidget CursorPosition > Cursorpos (once each for X and Y) I edited the template.map file and made sure that it produced an image with the 4.01 shp2img utility. Thanks for any help, Sara -- Sara Yurman Spatial Focus, Inc. Geodata Architects http://www.spatialfocus.com/ Office: (404) 378-0989 Fax: (209) 254-9531 From bartvde@xs4all.nl Sat Nov 15 20:47:14 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Sat, 15 Nov 2003 21:47:14 +0100 Subject: [Chameleon] my widgets don't widge In-Reply-To: <3FB68E06.6050707@spatialfocus.com> References: <3FB68E06.6050707@spatialfocus.com> Message-ID: Hi Sara, what browser are you using? I know the red box feature with zoomin only from Opera. With respect to the no zoom-in action, I have seen this problem and it is caused by an old version of the sample application. Make sure your constructor in index.phtml contains the following (in the old version it only contains the call to the parent constructor): class MyApp extends Chameleon { function MyApp() { parent::Chameleon(); $this->moMapSession = new MapSession_RW; $this->moMapSession->setTempDir( getSessionSavePath()); } } The Manage Layers widget is gonna be deprecated as far as I know, and will be replaced by the LegendTemplate widget among others. I think it is not recommendable to use it. Hope this helps. Best regards, Bart On Sat, 15 Nov 2003 15:35:18 -0500, Sara Yurman wrote: > I've been trying without success to make the widgets on my chameleon > installation work. I would be intensely grateful for any help at all. > > ******What doesn't work****** > > ZoomIn********* > Red box draws on the screen, screen refreshes, map redisplays at full > extent. If I start a new session, the scalebar comes up with zoomed > distances. If I then try zooming again the scalebar again represents > the full extent > > ZoomOut******** > I click, the watch displays, the map remains stolidly in place. > > Pan************ > The entire image moves with the hand, then the map returns to its > original display. > > Manage Layers***************** > This shows a blank screen, and throws some errors in the apache log: > > PHP Notice: Undefined index: gszMapTemplate in > /var/www/cwc2/htdocs/widgets/Layer.phtml on line 20 > PHP Notice: Undefined index: gszMapTemplate in > /var/www/cwc2/htdocs/widgets/Layer.phtml on line 21 > PHP Fatal error: Call to a member function on a non-object in > /var/www/cwc2/htdocs/widgets/Layer.phtml on line 51 > PHP Notice: Undefined index: bShowPreview in > /var/www/cwc2/htdocs/widgets/production.phtml on line 561 > PHP Notice: Undefined index: bShowDownload in > /var/www/cwc2/htdocs/widgets/production.phtml on line 562 > PHP Notice: Undefined variable: txtFootDesc in > /var/www/cwc2/htdocs/widgets/production.phtml on line 567 > > Print***************** > Doesn't work, throws this error in the apache log: > Undefined variable: txtFootDesc in > /var/www/cwc2/htdocs/widgets/production.phtml on line 567 > > > **********What does work*************** > > The map layer (the .map file only describes one at this point) displays > properly and the ruler works, even in feet. > > > > ******About my installation****** > > I'm using Chameleon-1.1 alpha6, running with MapServer 4.01 on Debian. > > ******What I did to check my installation****** > > I've checked my environment with the screens at > htdocs_admin/index.phtml. Everything looked good: mapscript 4.01 > located, png supported, php 4.3.3 found, all mandatory settings and > required modules with little green OK checks. > > ******More installation checking: the apache error log****** > > Got " Undefined index: gszServerDataPath in > /var/www/cwc2/htdocs/common/phpwms/manage_servers.phtml on line 133". > Wasn't too perturbed about it, since I wanted to work with a .map file. > > ******How I made my tiny little application****** > > I started by copying and editing the demo.php and demo.html files, and > edited the following widget names (From > To ) to reflect the actual > widget names I found: > > PrintPopup > PrintWidget > MapDHTMLImage > MapDHTMLWidget > CursorPosition > Cursorpos (once each for X and Y) > > I edited the template.map file and made sure that it produced an image > with the 4.01 shp2img utility. > > Thanks for any help, > > Sara > -- From bartvde@xs4all.nl Sat Nov 15 20:52:29 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Sat, 15 Nov 2003 21:52:29 +0100 Subject: [Chameleon] my widgets don't widge In-Reply-To: References: <3FB68E06.6050707@spatialfocus.com> Message-ID: Hi Sara, With red box you mean the box with the red outline ofcourse, and not the complete map widget turning red like it does in Opera (this is a known issue). Sorry for the confusion in the first line. My guess is that the problem will be in the constructor of your sample application. Best regards, Bart On Sat, 15 Nov 2003 21:47:14 +0100, Bart van den Eijnden wrote: > Hi Sara, > > what browser are you using? I know the red box feature with zoomin only > from Opera. > > With respect to the no zoom-in action, I have seen this problem and it > is caused by an old version of the sample application. Make sure your > constructor in index.phtml contains the following (in the old version it > only contains the call to the parent constructor): > > class MyApp extends Chameleon > { > function MyApp() > { > parent::Chameleon(); > $this->moMapSession = new MapSession_RW; > $this->moMapSession->setTempDir( getSessionSavePath()); > } > } > > The Manage Layers widget is gonna be deprecated as far as I know, and > will be replaced by the LegendTemplate widget among others. I think it > is not recommendable to use it. > > Hope this helps. > > Best regards, > Bart > > On Sat, 15 Nov 2003 15:35:18 -0500, Sara Yurman > wrote: > >> I've been trying without success to make the widgets on my chameleon >> installation work. I would be intensely grateful for any help at all. >> >> ******What doesn't work****** >> >> ZoomIn********* >> Red box draws on the screen, screen refreshes, map redisplays at full >> extent. If I start a new session, the scalebar comes up with zoomed >> distances. If I then try zooming again the scalebar again represents >> the full extent >> >> ZoomOut******** >> I click, the watch displays, the map remains stolidly in place. >> >> Pan************ >> The entire image moves with the hand, then the map returns to its >> original display. >> >> Manage Layers***************** >> This shows a blank screen, and throws some errors in the apache log: >> >> PHP Notice: Undefined index: gszMapTemplate in >> /var/www/cwc2/htdocs/widgets/Layer.phtml on line 20 >> PHP Notice: Undefined index: gszMapTemplate in >> /var/www/cwc2/htdocs/widgets/Layer.phtml on line 21 >> PHP Fatal error: Call to a member function on a non-object in >> /var/www/cwc2/htdocs/widgets/Layer.phtml on line 51 >> PHP Notice: Undefined index: bShowPreview in >> /var/www/cwc2/htdocs/widgets/production.phtml on line 561 >> PHP Notice: Undefined index: bShowDownload in >> /var/www/cwc2/htdocs/widgets/production.phtml on line 562 >> PHP Notice: Undefined variable: txtFootDesc in >> /var/www/cwc2/htdocs/widgets/production.phtml on line 567 >> >> Print***************** >> Doesn't work, throws this error in the apache log: >> Undefined variable: txtFootDesc in >> /var/www/cwc2/htdocs/widgets/production.phtml on line 567 >> >> >> **********What does work*************** >> >> The map layer (the .map file only describes one at this point) displays >> properly and the ruler works, even in feet. >> >> >> >> ******About my installation****** >> >> I'm using Chameleon-1.1 alpha6, running with MapServer 4.01 on Debian. >> >> ******What I did to check my installation****** >> >> I've checked my environment with the screens at >> htdocs_admin/index.phtml. Everything looked good: mapscript 4.01 >> located, png supported, php 4.3.3 found, all mandatory settings and >> required modules with little green OK checks. >> >> ******More installation checking: the apache error log****** >> >> Got " Undefined index: gszServerDataPath in >> /var/www/cwc2/htdocs/common/phpwms/manage_servers.phtml on line 133". >> Wasn't too perturbed about it, since I wanted to work with a .map file. >> >> ******How I made my tiny little application****** >> >> I started by copying and editing the demo.php and demo.html files, and >> edited the following widget names (From > To ) to reflect the actual >> widget names I found: >> >> PrintPopup > PrintWidget >> MapDHTMLImage > MapDHTMLWidget >> CursorPosition > Cursorpos (once each for X and Y) >> >> I edited the template.map file and made sure that it produced an image >> with the 4.01 shp2img utility. >> >> Thanks for any help, >> >> Sara >> > > > -- From bartvde@xs4all.nl Sun Nov 16 10:01:27 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Sun, 16 Nov 2003 11:01:27 +0100 Subject: [Chameleon] my widgets don't widge In-Reply-To: <3FB6A1A0.4070900@spatialfocus.com> References: <3FB6A1A0.4070900@spatialfocus.com> Message-ID: ------------vIriDREmyLAfwSFX3ICLiK Content-Type: text/plain; format=flowed; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Hi Sara, you should change the following part in your index.phtml file, so add the 2 lines starting with $this: class SampleApp extends Chameleon { function SampleApp() { parent::Chameleon(); $this->moMapSession = new MapSession_RW; $this->moMapSession->setTempDir( getSessionSavePath()); } You can leave out the CWCInitializeMap() function. For clarity I have attached a changed index.phtml file which should work for you. Paul: shouldn't we update the sample app on www.maptools.org so no more people will run into these problems? Perhaps we can put the Geodan sample there instead of the old sample application? Best regards, Bart PS: it is a good habit to always CC the list, so other people with similar problems in the future can search the archives. On Sat, 15 Nov 2003 16:58:56 -0500, Sara Yurman wrote: > Hi Bart, > > Many thanks for your email. Here are some responses to your questions > >> With red box you mean the box with the red outline ofcourse, and not >> the complete map widget turning red like it does in Opera (this is a >> known issue). > > Yes, that's right. No, I'm not an Opera user. > >> what browser are you using? > > I was using Mozilla 1.5 when I wrote. I've tried IE from our one and > only Windows client and Galeon after that and got basically the same > results. Cutting off the Ruler works reliably in IE, and doesn't in > Mozilla, but no other differences. > > > My guess is that the problem will be in the constructor of your > sample > application. > > I've listed the index.phtml file below. I might be missing something > here -- I'm still not seeing the problem. It would be so wonderful if > it were something I did in here -- it could be easily fixed. > > Thanks again for your help. If you see anything in here, I would so > appreciate hearing about it. > > Best, > > Sara > > *******************index.phtml below********************************** > /* > * this is a sample of a minimal application script required to > * get a chameleon application running with a template and a > * local map file. Most applications should actually just > * copy this file and modify the template and mapfile > * parts and should not need to do a lot more here. > */ > include( "/var/www/cwc2/htdocs/chameleon.php" ); > > $szTemplate = "nlr.html"; > $szMapFile = "/var/www/cwc2/map/nlr.map"; > > class SampleApp extends Chameleon > { > function SampleApp() > { > parent::Chameleon(); > } > > function CWCInitializeMap() > { > $this->moMapSession = new MapSession_RW; > $this->moMapSession->setTempDir( getSessionSavePath()); > parent::CWCInitializeMap(); > } > > function CWCLoadTemplate($szTemplateName) > { > $this->mszTemplate = implode("\n", file($szTemplateName)); > } > } > > $oApp = new SampleApp(); > $oApp->CWCInitialize( $szTemplate, $szMapFile ); > $oApp->CWCExecute(); > ?> -- ------------vIriDREmyLAfwSFX3ICLiK Content-Disposition: attachment; filename=index.phtml Content-Type: application/octet-stream; name=index.phtml Content-Transfer-Encoding: 8bit moMapSession = new MapSession_RW; $this->moMapSession->setTempDir( getSessionSavePath()); } function CWCLoadTemplate($szTemplateName) { $this->mszTemplate = implode("\n", file($szTemplateName)); } } $oApp = new SampleApp(); $oApp->CWCInitialize( $szTemplate, $szMapFile ); $oApp->CWCExecute(); ?> ------------vIriDREmyLAfwSFX3ICLiK-- From syurman@spatialfocus.com Sun Nov 16 17:02:37 2003 From: syurman@spatialfocus.com (Sara Yurman) Date: Sun, 16 Nov 2003 12:02:37 -0500 Subject: [Chameleon] my widgets don't widge In-Reply-To: References: <3FB6A1A0.4070900@spatialfocus.com> Message-ID: <3FB7ADAD.8040202@spatialfocus.com> Thanks, Bart, The index.phtml file works much better, except for the zoom in -- which turns out to be an incredible zoom out. I've renamed it nlr.phtml: http://meadow.spatialfocus.com/cwc2/htdocs/nlr.phtml I'm sorry, I'm in the woods here. I am continually impressed with the ability of GIS work to restrain one's ego. Sara Bart van den Eijnden wrote: > Hi Sara, > > you should change the following part in your index.phtml file, so add > the 2 lines starting with $this: > > class SampleApp extends Chameleon > { > function SampleApp() > { > parent::Chameleon(); > $this->moMapSession = new MapSession_RW; > $this->moMapSession->setTempDir( getSessionSavePath()); > } > > You can leave out the CWCInitializeMap() function. For clarity I have > attached a changed index.phtml file which should work for you. > > Paul: shouldn't we update the sample app on www.maptools.org so no more > people will run into these problems? Perhaps we can put the Geodan > sample there instead of the old sample application? > > Best regards, > Bart > > PS: it is a good habit to always CC the list, so other people with > similar problems in the future can search the archives. > > On Sat, 15 Nov 2003 16:58:56 -0500, Sara Yurman > wrote: > >> Hi Bart, >> >> Many thanks for your email. Here are some responses to your questions >> >>> With red box you mean the box with the red outline ofcourse, and not >>> the complete map widget turning red like it does in Opera (this is a >>> known issue). >> >> >> Yes, that's right. No, I'm not an Opera user. >> >>> what browser are you using? >> >> >> I was using Mozilla 1.5 when I wrote. I've tried IE from our one and >> only Windows client and Galeon after that and got basically the same >> results. Cutting off the Ruler works reliably in IE, and doesn't in >> Mozilla, but no other differences. >> >> > My guess is that the problem will be in the constructor of your >> sample > application. >> >> I've listed the index.phtml file below. I might be missing something >> here -- I'm still not seeing the problem. It would be so wonderful if >> it were something I did in here -- it could be easily fixed. >> >> Thanks again for your help. If you see anything in here, I would so >> appreciate hearing about it. >> >> Best, >> >> Sara >> >> *******************index.phtml below********************************** >> > /* >> * this is a sample of a minimal application script required to >> * get a chameleon application running with a template and a >> * local map file. Most applications should actually just >> * copy this file and modify the template and mapfile >> * parts and should not need to do a lot more here. >> */ >> include( "/var/www/cwc2/htdocs/chameleon.php" ); >> >> $szTemplate = "nlr.html"; >> $szMapFile = "/var/www/cwc2/map/nlr.map"; >> >> class SampleApp extends Chameleon >> { >> function SampleApp() >> { >> parent::Chameleon(); >> } >> >> function CWCInitializeMap() >> { >> $this->moMapSession = new MapSession_RW; >> $this->moMapSession->setTempDir( getSessionSavePath()); >> parent::CWCInitializeMap(); >> } >> >> function CWCLoadTemplate($szTemplateName) >> { >> $this->mszTemplate = implode("\n", file($szTemplateName)); >> } >> } >> >> $oApp = new SampleApp(); >> $oApp->CWCInitialize( $szTemplate, $szMapFile ); >> $oApp->CWCExecute(); >> ?> > > > > -- Sara Yurman Spatial Focus, Inc. Geodata Architects http://www.spatialfocus.com/ Office: (404) 378-0989 Fax: (209) 254-9531 From bartvde@xs4all.nl Sun Nov 16 17:13:20 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Sun, 16 Nov 2003 18:13:20 +0100 Subject: [Chameleon] my widgets don't widge In-Reply-To: <3FB7ADAD.8040202@spatialfocus.com> References: <3FB6A1A0.4070900@spatialfocus.com> <3FB7ADAD.8040202@spatialfocus.com> Message-ID: Hi Sara, what are the values of EXTENT in the top part of your mapfile? And also, what are the values of SIZE? Best regards, Bart On Sun, 16 Nov 2003 12:02:37 -0500, Sara Yurman wrote: > Thanks, Bart, > > The index.phtml file works much better, except for the zoom in -- which > turns out to be an incredible zoom out. I've renamed it nlr.phtml: > > http://meadow.spatialfocus.com/cwc2/htdocs/nlr.phtml > > I'm sorry, I'm in the woods here. I am continually impressed with the > ability of GIS work to restrain one's ego. > > Sara > > > > Bart van den Eijnden wrote: >> Hi Sara, >> >> you should change the following part in your index.phtml file, so add >> the 2 lines starting with $this: >> >> class SampleApp extends Chameleon >> { >> function SampleApp() >> { >> parent::Chameleon(); >> $this->moMapSession = new MapSession_RW; >> $this->moMapSession->setTempDir( getSessionSavePath()); >> } >> >> You can leave out the CWCInitializeMap() function. For clarity I have >> attached a changed index.phtml file which should work for you. >> >> Paul: shouldn't we update the sample app on www.maptools.org so no more >> people will run into these problems? Perhaps we can put the Geodan >> sample there instead of the old sample application? >> >> Best regards, >> Bart >> >> PS: it is a good habit to always CC the list, so other people with >> similar problems in the future can search the archives. >> >> On Sat, 15 Nov 2003 16:58:56 -0500, Sara Yurman >> wrote: >> >>> Hi Bart, >>> >>> Many thanks for your email. Here are some responses to your questions >>> >>>> With red box you mean the box with the red outline ofcourse, and not >>>> the complete map widget turning red like it does in Opera (this is a >>>> known issue). >>> >>> >>> Yes, that's right. No, I'm not an Opera user. >>> >>>> what browser are you using? >>> >>> >>> I was using Mozilla 1.5 when I wrote. I've tried IE from our one and >>> only Windows client and Galeon after that and got basically the same >>> results. Cutting off the Ruler works reliably in IE, and doesn't in >>> Mozilla, but no other differences. >>> >>> > My guess is that the problem will be in the constructor of your >>> sample > application. >>> >>> I've listed the index.phtml file below. I might be missing something >>> here -- I'm still not seeing the problem. It would be so wonderful if >>> it were something I did in here -- it could be easily fixed. >>> >>> Thanks again for your help. If you see anything in here, I would so >>> appreciate hearing about it. >>> >>> Best, >>> >>> Sara >>> >>> *******************index.phtml below********************************** >>> >> /* >>> * this is a sample of a minimal application script required to >>> * get a chameleon application running with a template and a >>> * local map file. Most applications should actually just >>> * copy this file and modify the template and mapfile >>> * parts and should not need to do a lot more here. >>> */ >>> include( "/var/www/cwc2/htdocs/chameleon.php" ); >>> >>> $szTemplate = "nlr.html"; >>> $szMapFile = "/var/www/cwc2/map/nlr.map"; >>> >>> class SampleApp extends Chameleon >>> { >>> function SampleApp() >>> { >>> parent::Chameleon(); >>> } >>> >>> function CWCInitializeMap() >>> { >>> $this->moMapSession = new MapSession_RW; >>> $this->moMapSession->setTempDir( getSessionSavePath()); >>> parent::CWCInitializeMap(); >>> } >>> >>> function CWCLoadTemplate($szTemplateName) >>> { >>> $this->mszTemplate = implode("\n", file($szTemplateName)); >>> } >>> } >>> >>> $oApp = new SampleApp(); >>> $oApp->CWCInitialize( $szTemplate, $szMapFile ); >>> $oApp->CWCExecute(); >>> ?> >> >> >> >> > > -- From syurman@spatialfocus.com Sun Nov 16 18:54:11 2003 From: syurman@spatialfocus.com (Sara Yurman) Date: Sun, 16 Nov 2003 13:54:11 -0500 Subject: [Chameleon] my widgets don't widge In-Reply-To: References: <3FB6A1A0.4070900@spatialfocus.com> <3FB7ADAD.8040202@spatialfocus.com> Message-ID: <3FB7C7D3.2090608@spatialfocus.com> Hi Bart, Thanks -- it was a MINSCALE, MAXSCALE problem brought over from the template.map file. Appropriate scales for Canada just don't suit a medium-sized city from the southern US. Problem completely solved now. Best, Sara Bart van den Eijnden wrote: > Hi Sara, > > what are the values of EXTENT in the top part of your mapfile? > And also, what are the values of SIZE? > > Best regards, > Bart > -- Sara Yurman Spatial Focus, Inc. Geodata Architects http://www.spatialfocus.com/ Office: (404) 378-0989 Fax: (209) 254-9531 From spencer@dmsolutions.ca Mon Nov 17 01:03:07 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Sun, 16 Nov 2003 20:03:07 -0500 Subject: [Chameleon] my widgets don't widge In-Reply-To: References: <3FB6A1A0.4070900@spatialfocus.com> Message-ID: <3FB81E4B.8030408@magma.ca> Bart, thanks for helping Sara out with this problem. You are very right, I do need to update the sample app on maptools ... I will add that to my high priority items and try to get to it this week :) Cheers, Paul Bart van den Eijnden wrote: > Hi Sara, > > you should change the following part in your index.phtml file, so add > the 2 lines starting with $this: > > class SampleApp extends Chameleon > { > function SampleApp() > { > parent::Chameleon(); > $this->moMapSession = new MapSession_RW; > $this->moMapSession->setTempDir( getSessionSavePath()); > } > > You can leave out the CWCInitializeMap() function. For clarity I have > attached a changed index.phtml file which should work for you. > > Paul: shouldn't we update the sample app on www.maptools.org so no more > people will run into these problems? Perhaps we can put the Geodan > sample there instead of the old sample application? > > Best regards, > Bart > > PS: it is a good habit to always CC the list, so other people with > similar problems in the future can search the archives. > > On Sat, 15 Nov 2003 16:58:56 -0500, Sara Yurman > wrote: > >> Hi Bart, >> >> Many thanks for your email. Here are some responses to your questions >> >>> With red box you mean the box with the red outline ofcourse, and not >>> the complete map widget turning red like it does in Opera (this is a >>> known issue). >> >> >> Yes, that's right. No, I'm not an Opera user. >> >>> what browser are you using? >> >> >> I was using Mozilla 1.5 when I wrote. I've tried IE from our one and >> only Windows client and Galeon after that and got basically the same >> results. Cutting off the Ruler works reliably in IE, and doesn't in >> Mozilla, but no other differences. >> >> > My guess is that the problem will be in the constructor of your >> sample > application. >> >> I've listed the index.phtml file below. I might be missing something >> here -- I'm still not seeing the problem. It would be so wonderful if >> it were something I did in here -- it could be easily fixed. >> >> Thanks again for your help. If you see anything in here, I would so >> appreciate hearing about it. >> >> Best, >> >> Sara >> >> *******************index.phtml below********************************** >> > /* >> * this is a sample of a minimal application script required to >> * get a chameleon application running with a template and a >> * local map file. Most applications should actually just >> * copy this file and modify the template and mapfile >> * parts and should not need to do a lot more here. >> */ >> include( "/var/www/cwc2/htdocs/chameleon.php" ); >> >> $szTemplate = "nlr.html"; >> $szMapFile = "/var/www/cwc2/map/nlr.map"; >> >> class SampleApp extends Chameleon >> { >> function SampleApp() >> { >> parent::Chameleon(); >> } >> >> function CWCInitializeMap() >> { >> $this->moMapSession = new MapSession_RW; >> $this->moMapSession->setTempDir( getSessionSavePath()); >> parent::CWCInitializeMap(); >> } >> >> function CWCLoadTemplate($szTemplateName) >> { >> $this->mszTemplate = implode("\n", file($szTemplateName)); >> } >> } >> >> $oApp = new SampleApp(); >> $oApp->CWCInitialize( $szTemplate, $szMapFile ); >> $oApp->CWCExecute(); >> ?> > > > > -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From RSuddaby@NRCan.gc.ca Tue Nov 18 22:38:34 2003 From: RSuddaby@NRCan.gc.ca (Suddaby, Rod) Date: Tue, 18 Nov 2003 17:38:34 -0500 Subject: [Chameleon] CWC2 Training Course Pre-package Message-ID: I had to leave this for a few days, but I'm back at it again. I created my own template and context files and tried those with cwc2.php... same result: the CWC2 tags appear in red font in the browser. However I noticed that indeed the map image was generated and cached properly as was the temporary .map file. So all the backend stuff seems to be working. I then peeked inside one of the session files and noticed the following errors: ERROR: Widget Definition for "MapDHTMLImage not found" Perhaps this info can help narrow down where my problem lies? Thanks, Rod. P.S. Joined this list a few days ago, but not receiving any posts?? -----Original Message----- From: Christopher R. Thorne [mailto:thorne@dmsolutions.ca] Sent: Wednesday, November 12, 2003 12:47 PM Cc: Suddaby, Rod; Chameleon Mail List Subject: Re: [Chameleon] CWC2 Training Course Pre-package I missed one thing that you should check and that is in the cwc admin configuration page. Make sure your "map_template:" is correct. Chris PS if this is not the problem please send me your template file (demo.html). I will see if it works for me. Christopher R. Thorne wrote: > Rod, > > Probably the biggest tip I can give you is make sure the paths to the > context file and template are correct. It is very easy to get confused. > > The path that you gave me: > http://localhost/cwc2/cwc2.php?TEMPLATE=demo.html&CONTEXT=gmap_context.xml > > This path will not work if the Template and Context file you are > referring to is located within /cwc2/htdocs/* > > http://localhost/cwc2/cwc2.php?template=cwc2/htdocs/demo.html&context=cwc2/h tdocs/gmap_context.xml > > > If I am wrong please let me know the paths to your files. > > I have posted your questions to the Chameleon mail List. My hope is that > others will give further input ;) > > The Chameleon Mail List is an excellent resource for getting questions > answered. If you like you can join the list on Maptools.org. > > http://lists.maptools.org/mailman/listinfo/chameleon > > Chris > > > Suddaby, Rod wrote: > >> Hi Chris, >> Thank you for your response. I'm using version 1.0.3 and accessing the >> demo >> as: >> >> >> >> The CWC2 tags (all of them) appearing in the browser are colored red. >> Being new to Chameleon I don't know where to begin looking :-) >> >> Thank you. >> Rod. >> >> -----Original Message----- >> From: Christopher R. Thorne [mailto:thorne@dmsolutions.ca] >> Sent: Wednesday, November 12, 2003 7:19 AM >> To: RSuddaby@NRCan.gc.ca >> Subject: [Fwd: Re: [Chameleon] Fwd: RE: CWC2 Training Course >> Pre-package] >> >> >> Hello, >> The information you have given is important, but the mailing list >> probably requires a little more details in order to get to the bottom >> of it. >> >> What version of Chameleon are you using? eg. 1.1 vs. 1.0 >> >> What demo are you using? >> >> How are you calling this application? Are you calling it through a >> Server instance (this currently only apply to version 1.0.x. >> >> eg. for Chameleon 1.0.x >> http://localhost/cwc2/cwc2.php?template=cwc2/htdocs/test.html&context=cwc2/h >> >> tdocs/gmap_context.xml >> >> OR >> eg. for Chameleon 1.1 >> >> A regular url where you would call the index.phtml file which bring >> chameleon.php your template and mapfile together. >> >> http://localhost/chameleon_demo/index.phtml >> >> >> When I try to access any of the demo >> >> applications, the CWC2 tags are merely dumped to the browser >> without >> any processing. Any idea on what I've done wrong? >> >> If CWC2 tags are displayed in "RED" this means that Chameleon is >> reading the CWC2 tags in your template, but have some general problem, >> the the specific tag. >> >> Hope this helps, >> Chris >> >> >> Darren Redfern wrote: >> >> > >> >> From: "Suddaby, Rod" >> >> To: 'Darren Redfern' >> >> Subject: RE: CWC2 Training Course Pre-package >> >> Date: Fri, 7 Nov 2003 11:55:01 -0500 >> >> >> >> Hi Darren: >> >> I was hoping you could help me solve a configuration problem I'm >> having with >> >> the latest Chameleon release. When I try to access any of the demo >> >> applications, the CWC2 tags are merely dumped to the browser >> without any >> >> processing. Any idea on what I've done wrong? >> >> >> >> Oh... the system configuration is: >> >> Win2000 >> >> Apache 2.0.44 >> >> PHP 4.3.1 (loaded as a CGI app) >> >> Mapserver/Mapscript 4.1 (precompiled Win32 release) >> >> >> >> Thanks, >> >> Rod Suddaby >> > >> > >> > >> > _________________________________________________________________ >> > STOP MORE SPAM with the new MSN 8 and get 2 months FREE* >> http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn >> >> .com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca >> > >> > _______________________________________________ >> > Chameleon mailing list >> > Chameleon@lists.maptools.org >> > http://lists.maptools.org/mailman/listinfo/chameleon >> > >> >> > > -- Christopher R. Thorne GIS Specialist, DM Solutions Group Inc. http://www.dmsolutions.ca email: thorne@dmsolutions.ca Phone: (613) 565-5056 ext.22 Fax : (613) 565-0925 ------------------------------ From syurman@spatialfocus.com Wed Nov 19 18:19:16 2003 From: syurman@spatialfocus.com (Sara Yurman) Date: Wed, 19 Nov 2003 13:19:16 -0500 Subject: [Chameleon] CWC2 Training Course Pre-package In-Reply-To: References: Message-ID: <3FBBB424.1050308@spatialfocus.com> Hi Rod, I had this problem last weekend. The names of the widgets are changing as they migrate. You'll find the current widgets in ../cwc2/htdocs/widgets, along with their respective help files. This post provides a nice explanation of what's going on: http://lists.maptools.org/pipermail/chameleon/2003-September/000081.html Cheers, Sara Suddaby, Rod wrote: > I had to leave this for a few days, but I'm back at it again. > > I created my own template and context files and tried those with cwc2.php... > same result: the CWC2 tags appear in red font in the browser. However I > noticed that indeed the map image was generated and cached properly as was > the temporary .map file. So all the backend stuff seems to be working. I > then peeked inside one of the session files and noticed the following > errors: > > ERROR: Widget Definition for "MapDHTMLImage not found" > > Perhaps this info can help narrow down where my problem lies? > > Thanks, > Rod. -- Sara Yurman Spatial Focus, Inc. Geodata Architects http://www.spatialfocus.com/ Office: (404) 378-0989 Fax: (209) 254-9531 From RSuddaby@NRCan.gc.ca Wed Nov 19 19:33:21 2003 From: RSuddaby@NRCan.gc.ca (Suddaby, Rod) Date: Wed, 19 Nov 2003 14:33:21 -0500 Subject: [Chameleon] CWC2 Training Course Pre-package Message-ID: Thanks Sara, but it appears this problem is somewhat different: I installed the CWC2 package on a different system and everything worked fine. So it would seem that the problem is specific to my development machine. Ah well, I'll poke around some more to see if I can zero in on the problem. Rod. -----Original Message----- From: Sara Yurman [mailto:syurman@spatialfocus.com] Sent: Wednesday, November 19, 2003 11:19 AM To: Suddaby, Rod Cc: 'chameleon@lists.maptools.org' Subject: Re: [Chameleon] CWC2 Training Course Pre-package Hi Rod, I had this problem last weekend. The names of the widgets are changing as they migrate. You'll find the current widgets in ../cwc2/htdocs/widgets, along with their respective help files. This post provides a nice explanation of what's going on: http://lists.maptools.org/pipermail/chameleon/2003-September/000081.html Cheers, Sara Suddaby, Rod wrote: > I had to leave this for a few days, but I'm back at it again. > > I created my own template and context files and tried those with cwc2.php... > same result: the CWC2 tags appear in red font in the browser. However I > noticed that indeed the map image was generated and cached properly as was > the temporary .map file. So all the backend stuff seems to be working. I > then peeked inside one of the session files and noticed the following > errors: > > ERROR: Widget Definition for "MapDHTMLImage not found" > > Perhaps this info can help narrow down where my problem lies? > > Thanks, > Rod. -- Sara Yurman Spatial Focus, Inc. Geodata Architects http://www.spatialfocus.com/ Office: (404) 378-0989 Fax: (209) 254-9531 From morissette@dmsolutions.ca Thu Nov 20 00:38:16 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Wed, 19 Nov 2003 19:38:16 -0500 Subject: [Chameleon] Re: Trouble Setting up Chameleon In-Reply-To: References: Message-ID: <3FBC0CF8.4060301@dmsolutions.ca> Ryan Belcher wrote: > I'm having a little trouble setting up the latest Chameleon from the > website. If I go to /htdocs_admin/index.phtml I have green checks on > everything except for a few optional image types. However, if I go to > /htdocs_admin/info.phtml I get MapScript Not Found - configuration problem? > and red X's on Mapscript and all images. Does anyone know what info.phtml > does differently? I know that php can load the php_mapscript_40.so > > When I try to load the sample application I get ERROR: Invalid map file > file, then the path to the map file which is correct. Trying to run > chameleon.php in the htdocs directory yields a blank page. Any ideas on > where I need to start troubleshooting. > > Thanks, > > Ryan > > > From bartvde@xs4all.nl Fri Nov 21 13:37:07 2003 From: bartvde@xs4all.nl (bartvde@xs4all.nl) Date: Fri, 21 Nov 2003 14:37:07 +0100 (CET) Subject: [Chameleon] problem in HelpWidget.widget.php Message-ID: <18163.212.238.227.182.1069421827.squirrel@webmail.xs4all.nl> Hi list, there is a problem with the code in HelpWidget.widget.php in the last alpha version. It used to work in previous versions to get a help text from a widget. The path to the help.html files seems to have changed, don't know why. In code it says: if (!file_exists("widgets/".$this->maParams["WIDGET"].".help.html")) But at this location nothing is found. When I change this to: if (!file_exists("../../chameleon/htdocs/widgets/".$this->maParams["WIDGET"].".help.html")) it works. So apparently the help.html files are searched starting from the location where the index.phtml of the application resides, and not starting from the /ms4w/apps/chameleon/htdocs/ path. Can anybody explain this behaviour, is it a bug? Best regards, Bart P.S. This also applies to the second code line which contains the same path: $aFile = file("../../chameleon/htdocs/widgets/".$this->maParams["WIDGET"].".help.html"); From spencer@dmsolutions.ca Fri Nov 21 14:05:24 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Fri, 21 Nov 2003 09:05:24 -0500 Subject: [Chameleon] problem in HelpWidget.widget.php In-Reply-To: <18163.212.238.227.182.1069421827.squirrel@webmail.xs4all.nl> References: <18163.212.238.227.182.1069421827.squirrel@webmail.xs4all.nl> Message-ID: <3FBE1BA4.1050100@magma.ca> Bart, thanks for pointing this out, it is indeed a bug. There are a couple of issues with this ... one being that widgets can now come from different directories, and the other being that we are redesigning the widget documentation structure somewhat. In any case, this is a bug and will be fixed in the cvs version in the next week or so. Your workaround is an acceptable solution for the moment, the final code will actually search all possible widget directories. Chees, Paul bartvde@xs4all.nl wrote: > Hi list, > > there is a problem with the code in HelpWidget.widget.php in the last > alpha version. It used to work in previous versions to get a help text > from a widget. > > The path to the help.html files seems to have changed, don't know why. > > In code it says: > if (!file_exists("widgets/".$this->maParams["WIDGET"].".help.html")) > > But at this location nothing is found. When I change this to: > if > (!file_exists("../../chameleon/htdocs/widgets/".$this->maParams["WIDGET"].".help.html")) > > it works. So apparently the help.html files are searched starting from the > location where the index.phtml of the application resides, and not > starting from the /ms4w/apps/chameleon/htdocs/ path. > > Can anybody explain this behaviour, is it a bug? > > Best regards, > Bart > > P.S. This also applies to the second code line which contains the same path: > $aFile = > file("../../chameleon/htdocs/widgets/".$this->maParams["WIDGET"].".help.html"); > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From thorne@dmsolutions.ca Fri Nov 21 14:14:06 2003 From: thorne@dmsolutions.ca (Christopher R. Thorne) Date: Fri, 21 Nov 2003 09:14:06 -0500 Subject: [Chameleon] problem in HelpWidget.widget.php In-Reply-To: <18163.212.238.227.182.1069421827.squirrel@webmail.xs4all.nl> References: <18163.212.238.227.182.1069421827.squirrel@webmail.xs4all.nl> Message-ID: <3FBE1DAE.1040207@dmsolutions.ca> Thank you, for reviewing the issues with this widget. As you know this widget currently does not work. We are are currently rebuilding our documentation framework for Chameleon, and probably will not be resolved for another couple of months. This widget as well as other basic widgets will be reviewed and cleaned up for our next release, which will be within the next couple of months. Chris bartvde@xs4all.nl wrote: > Hi list, > > there is a problem with the code in HelpWidget.widget.php in the last > alpha version. It used to work in previous versions to get a help text > from a widget. > > The path to the help.html files seems to have changed, don't know why. > > In code it says: > if (!file_exists("widgets/".$this->maParams["WIDGET"].".help.html")) > > But at this location nothing is found. When I change this to: > if > (!file_exists("../../chameleon/htdocs/widgets/".$this->maParams["WIDGET"].".help.html")) > > it works. So apparently the help.html files are searched starting from the > location where the index.phtml of the application resides, and not > starting from the /ms4w/apps/chameleon/htdocs/ path. > > Can anybody explain this behaviour, is it a bug? > > Best regards, > Bart > > P.S. This also applies to the second code line which contains the same path: > $aFile = > file("../../chameleon/htdocs/widgets/".$this->maParams["WIDGET"].".help.html"); > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- Christopher R. Thorne GIS Specialist, DM Solutions Group Inc. http://www.dmsolutions.ca email: thorne@dmsolutions.ca Phone: (613) 565-5056 ext.22 Fax : (613) 565-0925 ------------------------------ From RSuddaby@NRCan.gc.ca Fri Nov 21 15:21:05 2003 From: RSuddaby@NRCan.gc.ca (Suddaby, Rod) Date: Fri, 21 Nov 2003 10:21:05 -0500 Subject: [Chameleon] Buttonizer not buttonizing Message-ID: Hello all, I can't seem to figure out why the textbuttons are not rendering the images, text or colors. The border images appear (top, topleft and so on) but nothing else. Has anyone else encountered this? Rod. From spencer@dmsolutions.ca Fri Nov 21 15:32:58 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Fri, 21 Nov 2003 10:32:58 -0500 Subject: [Chameleon] Buttonizer not buttonizing In-Reply-To: References: Message-ID: <3FBE302A.1090307@magma.ca> Rod, it sounds like the buttonizer is at least buttonizing ;) something, which indicates that the problem is likely in your template rather than a bug in the code (well, its probably a bug in the code that your template is exposing because it is a case we didn't think to trap and report errors on). Can you post a copy of your template minimized to just one button and related sharedresource that replicates the problem, or send it to me directly if this is something you would rather not share publicly. Another thought: paths are often the cause of this type of problem. Do you have a template that does work? Can you compare them to find the difference? Cheers Paul Suddaby, Rod wrote: > Hello all, > I can't seem to figure out why the textbuttons are not rendering the images, > text or colors. The border images appear (top, topleft and so on) but > nothing else. Has anyone else encountered this? > > Rod. > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From bartvde@xs4all.nl Fri Nov 21 16:36:09 2003 From: bartvde@xs4all.nl (bartvde@xs4all.nl) Date: Fri, 21 Nov 2003 17:36:09 +0100 (CET) Subject: [Chameleon] 2 more bugs Message-ID: <17378.212.238.227.182.1069432569.squirrel@webmail.xs4all.nl> Hi list, we found 2 more bugs in Chameleon 1.1. 1) When you use the pan tool and do not drag but just click on the map half the time an error message appears: "ERROR: no input type specified in" 2) When you have a quickzoom widget that is above the Map DHTML widget and you have e.g. selected the Query tool as the active tool, when clicking an option in the quickzoom list you also get a popup from the Query results! Best regards, Bart From spencer@dmsolutions.ca Fri Nov 21 16:46:42 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Fri, 21 Nov 2003 11:46:42 -0500 Subject: [Chameleon] 2 more bugs In-Reply-To: <17378.212.238.227.182.1069432569.squirrel@webmail.xs4all.nl> References: <17378.212.238.227.182.1069432569.squirrel@webmail.xs4all.nl> Message-ID: <3FBE4172.7050901@magma.ca> Bart, PanMap error is a known bug, I think there is one in Bugzilla. The other issue is an interesting one and has to do with how browsers implement the DOM and events. Essentially, the browser is not preventing the event associated with the mouse click in the drop down list from 'bubbling' up to the document object's event handlers. There are some work-arounds for this kind of thing, but it can end up being a nightmare of cross-browser hacks. A redesign of javascript event handling may be required. I will record this bug for future reference, but we probably won't attempt to address it for the next release. Cheers, Paul PS bug 138 for the javascript event thing and bug 139 for the PanMap (it wasn't in the public bugzilla) bartvde@xs4all.nl wrote: > Hi list, > > we found 2 more bugs in Chameleon 1.1. > > 1) > When you use the pan tool and do not drag but just click on the map half > the time an error message appears: "ERROR: no input type specified in" > > 2) > When you have a quickzoom widget that is above the Map DHTML widget and > you have e.g. selected the Query tool as the active tool, when clicking an > option in the quickzoom list you also get a popup from the Query results! > > Best regards, > Bart > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From huub.fleuren@geodan.nl Tue Nov 25 12:10:34 2003 From: huub.fleuren@geodan.nl (Huub Fleuren) Date: Tue, 25 Nov 2003 13:10:34 +0100 Subject: [Chameleon] legend_single_template works delayed Message-ID: <3FC346BA.9040409@geodan.nl> Hi list, I created two new widgets called LayerOrderDown and LayerOrderUp (based on the MapUpdateWidget) What the ParseURL function does is, loop through the $oMaps Layers list and if the name is the selected_layer $oMap->moveLayerUp($i) in the LayerDown widget and $oMap->moveLayerDown($i) in the LayerUp widget I'm proud to say that this works. That is: the map is recreated in the new order, but, there is a delay in the legend Only a second /pan/update/zoomin event shows the selected layer in the new position in the legendlist Its like the legend_template uses a session number of the previous cicle What is going wrong? Greetings, Huub -- ------------------------------------- Geodan IT b.v. Buitenhaven 27-A 5211 TP 's-Hertogenbosch (NL) ------------------------------------- Tel: +31 (0)73 - 692 5151 Fax: +31 (0)73 - 692 5150 Mobiel: ------------------------------------- Postadres / mailing address President Kennedylaan 1 1079 MB Amsterdam (NL) ------------------------------------- E-mail: huub.fleuren@geodan.nl Website: www.geodan.nl Disclaimer: www.geodan.nl/disclaimer ------------------------------------- From spencer@dmsolutions.ca Tue Nov 25 13:35:55 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Tue, 25 Nov 2003 08:35:55 -0500 Subject: [Chameleon] legend_single_template works delayed In-Reply-To: <3FC346BA.9040409@geodan.nl> References: <3FC346BA.9040409@geodan.nl> Message-ID: <3FC35ABB.5030903@magma.ca> Huub, Great Stuff! My first guess is that the legend template is somehow processing a different map object than the LayerOrderUp/Down widgets. There are a couple of ways this can happen ... mostly due to how PHP handles references to objects (i.e. it doesn't, it makes copies by default). This doesn't seem to be the case here, since some other operation will cause the legend to update. It may be a bug in the move functions also. One way to test if this is a bug would be to write a small script that loads the map, moves a layer then processes the legend template. I would start there to rule out that possibility. The next thing to check would be the order of execution of the widgets. In general, all widgets are executed in order of appearance in the template, but widgets can be given a priority that causes them to execute before or after other widgets. Again, I'm not sure this is the problem because the LegendTemplate widget does not actually process the legend template until DrawPublish. In the widget cycle, all widgets have ParseURL called, then a second loop calls DrawPublish, so there should be no interaction at this point. Other than that, I would need to run your code through a debugger to figure out exactly what is going on. Cheers, Paul Huub Fleuren wrote: > Hi list, > > I created two new widgets called LayerOrderDown and LayerOrderUp (based > on the MapUpdateWidget) > > What the ParseURL function does is, loop through the $oMaps Layers list > and if the name is the selected_layer $oMap->moveLayerUp($i) in the > LayerDown widget and $oMap->moveLayerDown($i) in the LayerUp widget > > I'm proud to say that this works. > > That is: the map is recreated in the new order, but, there is a delay in > the legend > Only a second /pan/update/zoomin event shows the selected layer in the > new position in the legendlist > > Its like the legend_template uses a session number of the previous cicle > > What is going wrong? > > > > Greetings, > Huub > > -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From huub.fleuren@geodan.nl Tue Nov 25 15:49:37 2003 From: huub.fleuren@geodan.nl (Huub Fleuren) Date: Tue, 25 Nov 2003 16:49:37 +0100 Subject: [Chameleon] legend_single_template works delayed Message-ID: <3FC37A11.2000507@geodan.nl> This is a multi-part message in MIME format. --------------030503070507000705040304 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi list I checked Pauls suggestions for a great deal === > My first guess is that the legend template is somehow > processing a different map object than the LayerOrderUp/Down widgets. > There are a couple of ways this can happen ... mostly due to how PHP > handles references to objects (i.e. it doesn't, it makes copies by > default). This doesn't seem to be the case here, since some other > operation will cause the legend to update. I won't pretend that i understand what exacty happens but how could any widget change de $oMap object if they all refer to it as $oMap = $this->moMapObject->oMap; They would all operate on a different object. my imression is that it works out right somehow. The SelectLayers widget writes a "selected" metadatatag in de session mapfile I would write a "moved" metadatatag in the sessionmapfile, through a complete different oMap Object since i created it by $oMap = $this->moMapObject->oMap; and $oLayer = $oMap->getLayer($i); as SelectLayers does it in at a diffent time in a different object and function Both tags appear in the same session mapfile == > It may be a bug in the move functions also. If the session map file is updated (and it is) i don't see how it could be a bug in these functions > One way to test if this is > a bug would be to write a small script that loads the map, moves a > layer > then processes the legend template. I would start there to rule out > that possibility. so i didn't try this other the via the template and chameleon framework == > The next thing to check would be the order of execution of the widgets. > In general, all widgets are executed in order of appearance in the > template, but widgets can be given a priority that causes them to > execute before or after other widgets. Again, I'm not sure this is the > problem because the LegendTemplate widget does not actually process the > legend template until DrawPublish. In the widget cycle, all widgets > have ParseURL called, then a second loop calls DrawPublish, so there > should be no interaction at this point. i changed the order of the CWC2 tags and also gave the widgets a high priority in the widget constructor, but no effect == > > Other than that, I would need to run your code through a debugger to > figure out exactly what is going on. > == attachments included > Cheers, > Huub ================================== > Huub Fleuren wrote: > > > Hi list, > > > > I created two new widgets called LayerOrderDown and LayerOrderUp > (based > > on the MapUpdateWidget) > > > > What the ParseURL function does is, loop through the $oMaps Layers > list > > and if the name is the selected_layer $oMap->moveLayerUp($i) in the > > LayerDown widget and $oMap->moveLayerDown($i) in the LayerUp widget > > > > I'm proud to say that this works. > > > > That is: the map is recreated in the new order, but, there is a delay > in > > the legend > > Only a second /pan/update/zoomin event shows the selected layer in > the > > new position in the legendlist > > > > Its like the legend_template uses a session number of the previous > cicle > > > > What is going wrong? > > > > > > > > Greetings, > > Huub > > > > > > -- > ----------------------------------------------------------------- > |Paul Spencer spencer@dmsolutions.ca | > |-----------------------------------------------------------------| > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > ----------------------------------------------------------------- > > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon --------------030503070507000705040304 Content-Type: application/x-zip-compressed; name="2widgets.zip" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="2widgets.zip" UEsDBBQAAgAIALGDeS8MoNyPWwcAAC4SAAAZAAAATGF5ZXJPcmRlckRvd24ud2lkZ2V0LnBo cI1Xa2/qSBL9zq+oQdEOXPFKdmakzYO5DjjBMwYj2yQbzYyixm6CN8Ztue087lX++1a1bTCv q6BESXdXn6pTry4uf4+Xca375UsNvoDJ3nliJT5PhuI1gvvAf+IpeCGTEo9J4muciP9xLwX6 DO4HZ2oz4S+BDEREmyeGf74D1HlVQB3U1HqB085pr3PWOYWzXu/f3d6v3d4ZnP52/st/zn/5 DSTzlgz0txhOcnVZEgvJlbofWwdfWZYuRaJEYTgGR4RZikZJuE1EFkM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AAAAAAAAACAAAACSBwAATGVnZW5kVGVtcGxhdGUud2lkZ2V0LnBocFBL BQYAAAAAAgACAI4AAACkFgAAAAA= --------------030503070507000705040304-- From huub fleuren Tue Nov 25 18:59:23 2003 From: huub fleuren (huub fleuren) Date: Tue, 25 Nov 2003 19:59:23 +0100 Subject: [Chameleon] another widget that works Message-ID: <1507905677.20031125195923@geodan.nl> Hallo list, If you remember, i contributed two widgets that worked, partly, earlier today. I asked everybody why the map was updated but the legend list was not. Well i have here another widget, that will remove the selected layer from the map. Basically is does the same thing. Except that the LayerOrder widgets use $oMap->moveLayerDown($i); and $oMap->moveLayerUp($i); and this one uses $oLayer->set("status",MS_DELETE); and guess what... the legend list is updated correctly. (In an older version of chameleon it happened only once. I swear. In a later version it seemes to be stable) the tag the listing (because it works better). Copyright (c) 2002, DM Solutions Group Inc. * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ include_once("NavTool.php"); include_once("TextButton.php"); /** * RemoveLayer * * @desc Removes a SELECTED_LAYER (SelectLayer.Widget) from the map */ class RemoveLayer extends CWCWidget { /** * RemoveLayer * * Constructor for the RemoveLayer */ function RemoveLayer() { // invoke constructor of parent parent::CWCWidget(); $this->moParent =& $oParent; // set the description for this widget $this->szWidgetDescription = <<moTextButton = new CWCTextButton($this); } function InitDefaults() { $this->moTextButton->InitDefaults(); } /** * GetHTMLHiddenVariables * * Return HTML hidden variables. */ function GetHTMLHiddenVariables() { $szVariable = "REMOVE_LAYER"; $szValue = " "; $aReturn[$szVariable] = $szValue; return $aReturn; } /** * GetJavascriptFunctions * * Return the Javacriptfunctions needed by the widget. */ function GetJavascriptFunctions() { $aReturn = array(); $szJsFunctionName = "clickRemoveLayer"; $szFunction = <<mszHTMLForm}) { REMOVE_LAYER.value = "1"; submit(); } return; } EOT; $aReturn[$szJsFunctionName] = $szFunction; return $aReturn; } /** * DrawPublish * * Return the HTML code using the name in the map file and the * parameters of the CWC tag. */ function DrawPublish() { if (!$this->mbVisible) return ""; $this->moTextButton->SetOnClickEvent( "clickRemoveLayer()" ); return $this->moTextButton->DrawPublish(); } /** * ParseURL * * Look for selected layers and move them UP */ function ParseURL() { if (isset($this->moURLArray['REMOVE_LAYER'])) { if ($this->moURLArray['REMOVE_LAYER'] == "1") { if (isset($this->moURLArray['SELECTED_LAYERS'])) { if (strlen($this->moURLArray['SELECTED_LAYERS']) > 0) { $szSelectedLayers = $this->moURLArray['SELECTED_LAYERS'] ; $oMap = $this -> moMapObject -> oMap; for($i=0; $i < $oMap->numlayers; $i++) { $oLayer = $oMap->getLayer($i); if ( $oLayer->name == $szSelectedLayers ) { $oLayer->set("status",MS_DELETE); } } } } } } } } ?> -- Huub Fleuren Geodan IT Vestiging Zuid Buitenhaven 27A 5711 TP 's-Hertogenbosch huub@geodan.nl Tel. +31 (0)73 - 6925 160 Fax. +31 (0)73 - 6925 150 Website http://www.vz.geodan.nl/ -- Geodan IT b.v. President Kennedylaan 1 1079 MB Amsterdam (NL) Tel. +31 (0)20 - 5711 311 Fax +31 (0)20 - 5711 333 Website http://www.geodan.nl/ From mcilhagga@dmsolutions.ca Tue Nov 25 20:10:42 2003 From: mcilhagga@dmsolutions.ca (Dave McIlhagga) Date: Tue, 25 Nov 2003 15:10:42 -0500 Subject: [Chameleon] Re: Fwd: info chamaleon In-Reply-To: References: Message-ID: <3FC3B742.4070405@dmsolutions.ca> Hi MapLab and Chameleon users, We received an email asking about the differences between Chameleon and Maplab, and why there appears to be two pieces of software that effectively do the same thing (create a mapserver based web mapping application) but do it in different ways. I figured this would be a good opportunity to share with both user groups some of the developments that are ongoing with MapLab and Chameleon in order to clear this up. Chameleon: Chameleon, as many of you are aware, is a new tag-based system for implementing MapServer-based web mapping applications. The original incarnation of this (1.0) was released as an OGC toolkit for deploying applications that only read map data through WMS. This is known as the CGDI WMS Client Component or CWC2. We are now working towards the release of Chameleon 2.0 which represents the core of the CWC2 technology, but allows data to come from any source (local or remote). Chameleon 2.0 when released will come with a set of base widgets that will provide many of the standard capabilities we have come to expect from web mapping software -- namely navigation, querying, legend, keymap, etc... Chameleon 2.0 in itself will leverage Map Files, but when used in conjunction with the OGC widget pack, will enable the use of Context files instead of Map files for referencing WMS data sources -- just as the current 1.0.x release operates. In the short-term, you can get snapshots of alpha versions of Chameleon 2.0 in the form of the Chameleon 1.1 download through the MapTools site. MapLab: MapLab is currently undergoing a major transformation in an effort to make MapLab work in conjunction with Chameleon. The goal of MapLab 3.0 is to act as a much improved web cartography and OGC data discovery tool. It is important to note, that the current capability to generate GMapFactory applications as is done in the 2.x release stream will no longer be possible in the MapLab 3.x releases. Instead, Chameleon will act as the application deployment environment with Map Files created/maintained with MapLab. There is no *absolute* date for release of either Maplab 3.0 or Chameleon 2.0 at this point ... however I think it is safe to expect to see initial versions (perhapse beta, but hopefully full releases) sometime this winter. Due to projects we are currently engaged in, it will be necessary for stable versions of both of these to exist sometime during the first couple of months of 2004. I just wanted to give everyone a head's up about this now as it will represent some significant changes (but neccessary and very good ones) for anyone currently leveraging Chameleon, and mostly MapLab. We're very excited about the new releases of both of these tools as we see them as being much more intuitive and useful tools for the future. Our apologies that we haven't been able to get more information out to you before this, but we have been so busy getting the work completed on these initiatives that we have not had much time to inform and consult with the community this time around. However, we do look forward to opening up both projects to more active participation by the open source community in the future. Dave -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca EMail : mcilhagga@dmsolutions.ca tuan@openspacemarketing.com wrote: > Tuan Nguyen > Marketing Specialist > DM Solutions Group > (613)565-5056 ext. 17 > www.dmsolutions.ca > > > > --- the forwarded message follows --- > > > ------------------------------------------------------------------------ > > Subject: > info chamaleon > From: > > Date: > Mon, 24 Nov 2003 11:12:39 +0100 > To: > > > > Surfing on the web looking for internet mapping solutions I have found > mapserver and maplab technology. I tried to set up a demo application > and after a lot of tries I got the result (very nice). > Now I have discovered a similar solution named chamaleon (I dint'n test > it directly) I tried to understand the differences with maplab but I > still have the following doubts. > Questions: > are maplab and chamaleon two differents approach to the same problem ? > they are mutually exclusive or they can integrate each other ? > If I decide to use maplab, what are the benefits of using also chamaleon ? > > Thanks Gianluigi Nozza, geologist, GIS analyst > From bartvde@xs4all.nl Tue Nov 25 21:57:27 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Tue, 25 Nov 2003 22:57:27 +0100 Subject: [Chameleon] potential problem with zoomin Message-ID: Hi list, we have encountered a strange potential problem with zoomin, which I cannot explain. The Hawaii2 demo does not show this problem. When a user zooms in and draws a box, but then immediately after this clicks "accidently" in the map again, it takes a really long while (approximately 20 seconds) before the next image appears. Nothing happens in the IE status bar during this time. Does anybody have an idea what could be causing this behaviour? Best regards, Bart From bartvde@xs4all.nl Tue Nov 25 22:17:45 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Tue, 25 Nov 2003 23:17:45 +0100 Subject: [Chameleon] theme selector Message-ID: Hi list, I have a question about some functionality. I do not know whether or not this functionality is present in Chameleon. I have a Chameleon application which has 3 themes. Each theme uses a different classification on the same data. Let's call them Theme A, B and C for simplicity. These 3 themes are available for three moments in time, 1980, 1990 and 2000. So at the moment I have 9 layers in my application. I want to present the user a select box with the three themes, based on which the layers are shown, in the map and in the LegendTemplate widget. In what way would it be possible to implement this functionality? By using a simple convention in the layer names for instance? Also, Chameleon has a TimeFilter widget which would perform this kind of functionality based on the time instead of based on the theme. But if I understand correctly Mapserver does not support the time parameter from the WMS spec yet? Best regards, Bart From spencer@dmsolutions.ca Wed Nov 26 00:55:39 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Tue, 25 Nov 2003 19:55:39 -0500 Subject: [Chameleon] theme selector In-Reply-To: References: Message-ID: <3FC3FA0B.20400@magma.ca> Bart, it is possible that the XMLThemeLegend may do the job for you. One way of displaying layers using the XMLThemeLegend widget is as a 'radio' group, which means that only one layer in a 'theme' can be on at a time. The XMLThemeLegend uses Themes and Groups. Themes contain Groups, Groups contain Layers ... and a Layer is a mapserver layer. This means that you can control groups of layers with a single control. This allows you do do things that are not possible within mapserver's current 'group' support. The Hawaii demo uses this widget. It is a bit complicated to set up, and not very well documented, but it may be worthwhile. A second option would be the creative use of the mapserver GROUP attribute, it can be used with the html legend control quite nicely. Cheers, Paul Bart van den Eijnden wrote: > Hi list, > > I have a question about some functionality. I do not know whether or not > this functionality is present in Chameleon. > > I have a Chameleon application which has 3 themes. Each theme uses a > different classification on the same data. Let's call them Theme A, B > and C for simplicity. These 3 themes are available for three moments in > time, 1980, 1990 and 2000. So at the moment I have 9 layers in my > application. > > I want to present the user a select box with the three themes, based on > which the layers are shown, in the map and in the LegendTemplate widget. > > In what way would it be possible to implement this functionality? By > using a simple convention in the layer names for instance? > > Also, Chameleon has a TimeFilter widget which would perform this kind of > functionality based on the time instead of based on the theme. But if I > understand correctly Mapserver does not support the time parameter from > the WMS spec yet? > > Best regards, > Bart > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From Uchoa Thu Nov 27 12:05:18 2003 From: Uchoa (Uchoa) Date: Thu, 27 Nov 2003 9:05:18 -0300 Subject: [Chameleon] enter in user list Message-ID: <200311271105.hARB5V8o022821@www.maptools.org>

Hi,

I´d like to know how I enter into chameleon user list.

Thanks,

Uchoa

Rio de Janeiro - Brazil

________________________________________________Este email foi enviado pelo Dominal Webmail From pagurekd@agr.gc.ca Thu Nov 27 16:31:14 2003 From: pagurekd@agr.gc.ca (Debbie Pagurek) Date: Thu, 27 Nov 2003 11:31:14 -0500 Subject: [Chameleon] dataurl question Message-ID: Hi all, I'm using a CWC installation, and am trying to work around the ongoing legend issue. I notice that when you add a wms layer to CWC, and you click on the layer link, it opens up a box that shows "dataURL". I would like to try to use this for my legend url, by putting a mapserver mode=legend url in there, as in: http://wms1.agr.gc.ca/cgi-bin/soil/ns/pockwock?mode=legend&layer=kind_dom Question is, where do I put this data url in the mapfile so that it will appear in the CWC dataURL part? I tried to put it in the metadata section of the layer under "wms_dataurl" but that doesn't seem to work? Can anyone help? Debbie Pagurek Debbie Pagurek, M.Sc. GIS and Remote Sensing Analyst / Télédétection, SIG Research Branch / D.G. Recherche Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone / Téléphone: 613-759-1543 Facsimile / Télécopieur: 613-759-1937 960 Carling Avenue Ottawa, Ontario K1A 0C6 pagurekd@agr.gc.ca From uli.mueller@gmx.ch Fri Nov 28 21:59:27 2003 From: uli.mueller@gmx.ch (uli) Date: Fri, 28 Nov 2003 22:59:27 +0100 Subject: [Chameleon] RGB raster display, GDAL PROCESSING Message-ID: Hi list I am trying to implement RGB images (landsat and colored hillshading) in Chameleon. In the only some 10-20 colors seem to be rendered. When I use the mapfile that is the base of my Chameleon application directly (through a httpd://...mapserv?mode=map...) request, the image looks fine with all RGB colors. Is there any mechanism in Chameleon that reduces the colors to 256 or even less? I also tried to use some of GDAL's PROCESSING directives, however Chameleon could not interpret them and crashed. Uli mapserv -v: MapServer version 4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Extracts from my mapfile: PROJECTION "init=epsg:31467" # Germany, Gauss-Krueger Zone 3 END #OutputFormat Objects IMAGETYPE png_rgb OUTPUTFORMAT NAME png_rgb DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=ON" END ... LAYER NAME "Topographie" TYPE raster STATUS default PROJECTION "init=epsg:31467" END MINSCALE 350000 MAXSCALE 1000000 DATA "/geodata/europe/ger/bw/_data/dem/hillshadecolored.tif" #PROCESSING "COLOR_MATCH_THRESHOLD=3" END #all other layers switched off ...