From pxniw69 at yahoo.com Thu Jul 1 11:49:51 2004 From: pxniw69 at yahoo.com (pxniw pxniw) Date: Thu Jul 1 11:50:25 2004 Subject: [Chameleon] Server side include? Message-ID: <20040701154951.10941.qmail@web41905.mail.yahoo.com> Is there a way to add 'server side' include on chameleon .html page. Or is there a widget that could do this.. How would one construct a simple widget to include other page (Ie header, which is located on different server) Or can I include php script anywhere inside of I tried changing .html extension to parse as php, but it does not work with chameleon?? Any suggestions? Thanks __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From jfournier at dmsolutions.ca Thu Jul 1 12:28:12 2004 From: jfournier at dmsolutions.ca (Jason Fournier) Date: Thu Jul 1 12:28:15 2004 Subject: [Chameleon] Server side include? Message-ID: <200407011628.i61GSCe5022761@webmail1.magma.ca> You can use the following syntax in your template: For Files: [#INCLUDEFILENAME#] For PHP Variables: [$VARIABLENAME$] For files the include *may* have to be located in the same directory as your template ... I'm not sure if you can use paths in the include. Jason On Jul 1 , pxniw pxniw wrote: > > > Is there a way to add 'server side' include on > chameleon .html page. > > Or is there a widget that could do this.. > > How would one construct a simple widget to include > other page (Ie header, which is located on different > server) > > Or can I include php script anywhere inside of > > I tried changing .html extension to parse as php, but > it does not work with chameleon?? > > Any suggestions? > > Thanks > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - 50x more storage than other providers! > http://promotions.yahoo.com/new_mail > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mail man/listinfo/chameleon > From jlacroix at dmsolutions.ca Thu Jul 1 12:45:11 2004 From: jlacroix at dmsolutions.ca (Julien-Samuel Lacroix) Date: Thu Jul 1 12:47:35 2004 Subject: [Chameleon] Server side include? In-Reply-To: <200407011628.i61GSCe5022761@webmail1.magma.ca> References: <200407011628.i61GSCe5022761@webmail1.magma.ca> Message-ID: <40E43F97.1040805@dmsolutions.ca> I would add that the [#INCLUDEFILENAME#] syntax is parsed during the preprocessing, so you can include anything with it, widgets or html (not php since php is not parsed in chameleon). Also it use the file() functionality of php, so if your php support it, you will be able to include URL or file on another server. Julien Jason Fournier wrote: > You can use the following syntax in your template: > > For Files: > > [#INCLUDEFILENAME#] > > For PHP Variables: > > [$VARIABLENAME$] > > For files the include *may* have to be located in the same directory as your template ... > I'm not sure if you can use paths in the include. > > Jason > > > > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From pxniw69 at yahoo.com Thu Jul 1 18:19:12 2004 From: pxniw69 at yahoo.com (pxniw pxniw) Date: Thu Jul 1 18:19:15 2004 Subject: [Chameleon] Server side include? In-Reply-To: <40E43F97.1040805@dmsolutions.ca> Message-ID: <20040701221912.83228.qmail@web41908.mail.yahoo.com> Thanks --- Julien-Samuel Lacroix wrote: > I would add that the [#INCLUDEFILENAME#] syntax is > parsed during the > preprocessing, so you can include anything with it, > widgets or html (not > php since php is not parsed in chameleon). Also it > use the file() > functionality of php, so if your php support it, you > will be able to > include URL or file on another server. > > Julien > > Jason Fournier wrote: > > You can use the following syntax in your template: > > > > For Files: > > > > [#INCLUDEFILENAME#] > > > > For PHP Variables: > > > > [$VARIABLENAME$] > > > > For files the include *may* have to be located in > the same directory as your template ... > > I'm not sure if you can use paths in the include. > > > > Jason > > > > > > > > > > > -- > ------------------------------------------------------------ > Julien-Samuel Lacroix > jlacroix@dmsolutions.ca > DM Solutions Group > http://www.dmsolutions.ca/ > ------------------------------------------------------------ > __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From pxniw69 at yahoo.com Fri Jul 2 00:04:22 2004 From: pxniw69 at yahoo.com (pxniw pxniw) Date: Fri Jul 2 00:04:26 2004 Subject: [Chameleon] Server side include? In-Reply-To: <20040701221912.83228.qmail@web41908.mail.yahoo.com> Message-ID: <20040702040422.40673.qmail@web41901.mail.yahoo.com> Ok little tougher this time. How do I include this in 'include' ie my url is this http://www.test.com/cgi-bin/test.cgi?fruit=apple and this is what I do: [#http://www.test.com/cgi-bin/test.cgi?fruit=apple#] So far so good. But now if I have a form on previous page with value [$NAME_OF_FRUIT$] it shows fine, by itself ie [$NAME_OF_FRUIT$] will actually show apple bold (Or whatever fruitname was entered on form, before submitting it to chameleon created page) So how do I include my include with my include (That sounds kinda cool ;) ) I tried this: [#http://www.test.com/cgi-bin/test.cgi?fruit=[$NAME_OF_FRUIT$]#] It won't parse [$NAME_OF_FRUIT$] inside "##" I tried several different ways, but could not get it to work. Any ideas? Thanks --- pxniw pxniw wrote: > Thanks > > > --- Julien-Samuel Lacroix > wrote: > > I would add that the [#INCLUDEFILENAME#] syntax is > > parsed during the > > preprocessing, so you can include anything with > it, > > widgets or html (not > > php since php is not parsed in chameleon). Also it > > use the file() > > functionality of php, so if your php support it, > you > > will be able to > > include URL or file on another server. > > > > Julien > > > > Jason Fournier wrote: > > > You can use the following syntax in your > template: > > > > > > For Files: > > > > > > [#INCLUDEFILENAME#] > > > > > > For PHP Variables: > > > > > > [$VARIABLENAME$] > > > > > > For files the include *may* have to be located > in > > the same directory as your template ... > > > I'm not sure if you can use paths in the > include. > > > > > > Jason > > > > > > > > > > > > > > > > > > -- > > > ------------------------------------------------------------ > > Julien-Samuel Lacroix > > jlacroix@dmsolutions.ca > > DM Solutions Group > > http://www.dmsolutions.ca/ > > > ------------------------------------------------------------ > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail is new and improved - Check it out! > http://promotions.yahoo.com/new_mail > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From pxniw69 at yahoo.com Fri Jul 2 00:37:41 2004 From: pxniw69 at yahoo.com (pxniw pxniw) Date: Fri Jul 2 00:37:44 2004 Subject: [Chameleon] geomath widget Message-ID: <20040702043741.18621.qmail@web41902.mail.yahoo.com> I just noticed geomath widget. What is this widget used for? I need a widget or script that calculates a distance from 3 sets of lats and lons. (Point a, point b and point c) Does above scrit do that? How? If not is there a widget that does? If not where should I go and find one? sample anyone? Thanks a bunch 8) __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo From pxniw69 at yahoo.com Fri Jul 2 20:18:21 2004 From: pxniw69 at yahoo.com (pxniw pxniw) Date: Fri Jul 2 20:18:54 2004 Subject: [Chameleon] Server side include? In-Reply-To: <20040702040422.40673.qmail@web41901.mail.yahoo.com> Message-ID: <20040703001821.8181.qmail@web41908.mail.yahoo.com> Do I need to go to source code with this? If so how? Where do I start? my version I use is from January 2004... (I cant find version# anywhere) Thanks > Ok little tougher this time. > > How do I include this in 'include' > > ie my url is this > http://www.test.com/cgi-bin/test.cgi?fruit=apple > > and this is what I do: > > [#http://www.test.com/cgi-bin/test.cgi?fruit=apple#] > > So far so good. > > But now if I have a form on previous page with value > [$NAME_OF_FRUIT$] it shows fine, by itself ie > [$NAME_OF_FRUIT$] > will actually show apple bold (Or whatever fruitname > was entered on form, before submitting it to > chameleon > created page) > > So how do I include my include with my include (That > sounds kinda cool ;) ) > > I tried this: > [#http://www.test.com/cgi-bin/test.cgi?fruit=[$NAME_OF_FRUIT$]#] > > It won't parse [$NAME_OF_FRUIT$] inside "##" > I tried several different ways, but could not get it > to work. > > Any ideas? > > Thanks > > > --- pxniw pxniw wrote: > > Thanks > > > > > > --- Julien-Samuel Lacroix > > > wrote: > > > I would add that the [#INCLUDEFILENAME#] syntax > is > > > parsed during the > > > preprocessing, so you can include anything with > > it, > > > widgets or html (not > > > php since php is not parsed in chameleon). Also > it > > > use the file() > > > functionality of php, so if your php support it, > > you > > > will be able to > > > include URL or file on another server. > > > > > > Julien > > > > > > Jason Fournier wrote: > > > > You can use the following syntax in your > > template: > > > > > > > > For Files: > > > > > > > > [#INCLUDEFILENAME#] > > > > > > > > For PHP Variables: > > > > > > > > [$VARIABLENAME$] > > > > > > > > For files the include *may* have to be located > > in > > > the same directory as your template ... > > > > I'm not sure if you can use paths in the > > include. > > > > > > > > Jason > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > ------------------------------------------------------------ > > > Julien-Samuel Lacroix > > > jlacroix@dmsolutions.ca > > > DM Solutions Group > > > http://www.dmsolutions.ca/ > > > > > > ------------------------------------------------------------ > > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail is new and improved - Check it out! > > http://promotions.yahoo.com/new_mail > > _______________________________________________ > > Chameleon mailing list > > Chameleon@lists.maptools.org > > > http://lists.maptools.org/mailman/listinfo/chameleon > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - 50x more storage than other providers! > http://promotions.yahoo.com/new_mail > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From shon at pangaeatech.com Thu Jul 1 11:35:47 2004 From: shon at pangaeatech.com (Shon Doseck) Date: Mon Jul 5 09:05:27 2004 Subject: [Chameleon] Accessing Map Resources with PHP/MapScript in Chameleon Message-ID: <913134132F1BD21180240008C7F428E04F73D5@PANGAEA_PROD01> List, I'm pretty new to Chameleon and am not sure where the best place is to apply PHP/MapScript logic within the Chameleon framework. Armed with the information gained from the MapServer User's Meeting last month, I was able to get my interface up and styled with relative ease. Now I have to change the data content (i.e. name and data source of a layer) based on user interaction with a pull-down form field. I'm pretty comfortable with how to do this in PHP/MapScript (see my basic approach below), but not knowing much about how map session and state information is maintained with Chameleon, I'm not sure where I should go with this. $nLayers=$oApp->moMapSession->oMap->numlayers; for($i=0; $i<$nLayers; $i++) { $oLayer=$oApp->moMapSession->oMap->getlayer($i); if ($oLayer->name == 'Original_Layer_Name') { $oLayer->set("name","User_Defined_Layer_Name"); $oLayer->set("data","/data1/rest_of_path_to_data"); } } If there doesn't already exist a widget to help me perform this task, perhaps a custom widget is the answer, but again without more knowledge of the anatomy of widgets and how to develop them, I wouldn't know where to start. A push in the right direction would be very much appreciated. I'm excited to get past the initial learning curve for utilizing all the potential of Chameleon and hope this exercise will bring me closer. Thanks, Shon ________________________________________ Shon M. Doseck GIS Analyst Pangaea Information Technologies, Ltd. Tel. 312.986.9471 Cell. 312.804.9650 Fax. 312.986.9477 http://www.pangaeatech.com ________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20040701/d5ebac7f/attachment.htm From jlacroix at dmsolutions.ca Tue Jul 6 14:18:25 2004 From: jlacroix at dmsolutions.ca (Julien-Samuel Lacroix) Date: Tue Jul 6 14:20:14 2004 Subject: [Chameleon] Server side include? In-Reply-To: <20040702040422.40673.qmail@web41901.mail.yahoo.com> References: <20040702040422.40673.qmail@web41901.mail.yahoo.com> Message-ID: <40EAECF1.8020600@dmsolutions.ca> > So how do I include my include with my include (That > sounds kinda cool ;) ) > > I tried this: > [#http://www.test.com/cgi-bin/test.cgi?fruit=[$NAME_OF_FRUIT$]#] > > It won't parse [$NAME_OF_FRUIT$] inside "##" > I tried several different ways, but could not get it > to work. This can't work right now because the chameleon preprocessor parse [##] tags before [$$] tags. The reason is simple. This way you can include [$$] in components added by [##] tags. If you want to change this behavior, look in the TemplateParser.php file (chameleon/htdocs/TemplateParser.php) for the Parser() function. You will see that the first thing that is done in this function is the replacement of [##] tags and then the [$$] tags. Maybe you can invert them. Or parse for [$$], then for [##] and again for [$$] to replace the newly added tags. But this can have a little impact on performance. Let us know what you have done and the impact on performance. :) Thanks Julien -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From pxniw69 at yahoo.com Tue Jul 6 17:49:34 2004 From: pxniw69 at yahoo.com (pxniw pxniw) Date: Tue Jul 6 17:50:08 2004 Subject: [Chameleon] Server side include? In-Reply-To: <40EAECF1.8020600@dmsolutions.ca> Message-ID: <20040706214934.71751.qmail@web41908.mail.yahoo.com> Ok here is the code: (No performance hit noted btw) and works great. ;) Start Code // Start ADDED by PXNIW (Wanted to parse $$ tags before ## tags // replace all [$something$] to the correct url var value // This is duplicate code from below so $$ parses before ## $nPos = strpos($this->mszTemplate, "[$"); while($nPos !== false) { $nEndPos = strpos($this->mszTemplate, "$]", $nPos); $szTag = substr($this->mszTemplate, $nPos, $nEndPos-$nPos+2); if (isset($oApp->moHttpFormVars->maszVars[strtoupper(substr($szTag, 2, -2))])) $this->mszTemplate =& str_replace($szTag, $oApp->moHttpFormVars->maszVars[strtoupper(substr($szTag, 2, -2))], $this->mszTemplate); $nPos = strpos($this->mszTemplate, "[$", $nPos+2); } // END ADDED by PXNIW // First, include all files to include. $nPos = strpos($this->mszTemplate, "[#"); while ($nPos !== false) { $nEndPos = strpos($this->mszTemplate, "#]"); if ($nEndPos === false) break; $szTemplateName = substr($this->mszTemplate, $nPos+2, $nEndPos-$nPos-2); // Make a copy of the current teplate $szTemplate = $this->mszTemplate; $oApp->CWCLoadTemplate($szTemplateName); $this->mszTemplate =& str_replace("[#$szTemplateName#]", $oApp->mszTemplate, $szTemplate); $nPos = strpos($this->mszTemplate, "[#"); } // Then, replace all [$something$] to the correct url var value $nPos = strpos($this->mszTemplate, "[$"); while($nPos !== false) { $nEndPos = strpos($this->mszTemplate, "$]", $nPos); $szTag = substr($this->mszTemplate, $nPos, $nEndPos-$nPos+2); if (isset($oApp->moHttpFormVars->maszVars[strtoupper(substr($szTag, 2, -2))])) $this->mszTemplate =& str_replace($szTag, $oApp->moHttpFormVars->maszVars[strtoupper(substr($szTag, 2, -2))], $this->mszTemplate); $nPos = strpos($this->mszTemplate, "[$", $nPos+2); } if (strlen($this->mszTemplate) == 0) return 0; $this->maszElements = array(); $this->maszPlaceholders = array(); $this->mszTemplate = preg_replace_callback( $this->mszPattern, array( &$this, "ParseCallback" ), $this->mszTemplate ); return $this->NumElements(); } End Code --- Julien-Samuel Lacroix wrote: > > > So how do I include my include with my include > (That > > sounds kinda cool ;) ) > > > > I tried this: > > > [#http://www.test.com/cgi-bin/test.cgi?fruit=[$NAME_OF_FRUIT$]#] > > > > It won't parse [$NAME_OF_FRUIT$] inside "##" > > I tried several different ways, but could not get > it > > to work. > > This can't work right now because the chameleon > preprocessor parse [##] > tags before [$$] tags. The reason is simple. This > way you can include > [$$] in components added by [##] tags. If you want > to change this > behavior, look in the TemplateParser.php file > (chameleon/htdocs/TemplateParser.php) for the > Parser() function. You > will see that the first thing that is done in this > function is the > replacement of [##] tags and then the [$$] tags. > Maybe you can invert > them. Or parse for [$$], then for [##] and again for > [$$] to replace the > newly added tags. But this can have a little impact > on performance. > > Let us know what you have done and the impact on > performance. :) > > Thanks > Julien > > > > -- > ------------------------------------------------------------ > Julien-Samuel Lacroix > jlacroix@dmsolutions.ca > DM Solutions Group > http://www.dmsolutions.ca/ > ------------------------------------------------------------ > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From jlacroix at dmsolutions.ca Wed Jul 7 14:31:47 2004 From: jlacroix at dmsolutions.ca (Julien-Samuel Lacroix) Date: Wed Jul 7 14:33:16 2004 Subject: [Chameleon] Server side include? In-Reply-To: <20040706214934.71751.qmail@web41908.mail.yahoo.com> References: <20040706214934.71751.qmail@web41908.mail.yahoo.com> Message-ID: <40EC4193.9050401@dmsolutions.ca> Thanks pxniw, :) I open a enhancement bug about this in the Chameleon bugzilla. http://www.maptools.org/bugzilla/show_bug.cgi?id=502 You can add yourself in CC if you wan to see the evolution of the bug. Julien pxniw pxniw wrote: > Ok here is the code: > (No performance hit noted btw) > and works great. ;) > > Start Code > > // Start ADDED by PXNIW (Wanted to parse $$ tags > before ## tags > // replace all [$something$] to the correct url var > value > // This is duplicate code from below so $$ parses > before ## > $nPos = strpos($this->mszTemplate, "[$"); > while($nPos !== false) > { > $nEndPos = strpos($this->mszTemplate, > "$]", $nPos); > $szTag = substr($this->mszTemplate, $nPos, > $nEndPos-$nPos+2); > > if > (isset($oApp->moHttpFormVars->maszVars[strtoupper(substr($szTag, > 2, -2))])) > $this->mszTemplate =& > str_replace($szTag, > > $oApp->moHttpFormVars->maszVars[strtoupper(substr($szTag, > 2, -2))], > $this->mszTemplate); > $nPos = strpos($this->mszTemplate, "[$", > $nPos+2); > } > // END ADDED by PXNIW > > // First, include all files to include. > $nPos = strpos($this->mszTemplate, "[#"); > while ($nPos !== false) > { > $nEndPos = strpos($this->mszTemplate, > "#]"); > > if ($nEndPos === false) > break; > > $szTemplateName = > substr($this->mszTemplate, $nPos+2, $nEndPos-$nPos-2); > > // Make a copy of the current teplate > $szTemplate = $this->mszTemplate; > > $oApp->CWCLoadTemplate($szTemplateName); > > $this->mszTemplate =& > str_replace("[#$szTemplateName#]", $oApp->mszTemplate, > $szTemplate); > > $nPos = strpos($this->mszTemplate, "[#"); > } > > // Then, replace all [$something$] to the > correct url var value > $nPos = strpos($this->mszTemplate, "[$"); > while($nPos !== false) > { > $nEndPos = strpos($this->mszTemplate, > "$]", $nPos); > $szTag = substr($this->mszTemplate, $nPos, > $nEndPos-$nPos+2); > > if > (isset($oApp->moHttpFormVars->maszVars[strtoupper(substr($szTag, > 2, -2))])) > $this->mszTemplate =& > str_replace($szTag, > > $oApp->moHttpFormVars->maszVars[strtoupper(substr($szTag, > 2, -2))], > $this->mszTemplate); > $nPos = strpos($this->mszTemplate, "[$", > $nPos+2); > } > > if (strlen($this->mszTemplate) == 0) > return 0; > > $this->maszElements = array(); > $this->maszPlaceholders = array(); > > $this->mszTemplate = preg_replace_callback( > $this->mszPattern, > array( &$this, "ParseCallback" ), > $this->mszTemplate ); > > return $this->NumElements(); > } > > End Code > > > > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From pagameba at magma.ca Thu Jul 8 10:45:15 2004 From: pagameba at magma.ca (Paul Spencer) Date: Thu Jul 8 10:45:25 2004 Subject: [Chameleon] Accessing Map Resources with PHP/MapScript in Chameleon In-Reply-To: <913134132F1BD21180240008C7F428E04F73D5@PANGAEA_PROD01> References: <913134132F1BD21180240008C7F428E04F73D5@PANGAEA_PROD01> Message-ID: <40ED5DFB.7060500@magma.ca> Shon, this sounds like a new widget for sure. Unfortunately there isn't any real documentation on creating new widgets yet (it's still in the planning stages right now). Your best bet is to look at existing widgets and model your code on that. As a quick overview, I would suggest taking something like the mapsize widget and using it as your starting point. Your code below will go into the ParseURL function. The user interface is generated in the DrawPublish function. The definition of the attributes that your widget supports ... and initialization of default values ... goes in the widget constructor and the InitDefaults method. Cheers, Paul Shon Doseck wrote: > List, > > I'm pretty new to Chameleon and am not sure where the best place is to > apply PHP/MapScript logic within the Chameleon framework. Armed with > the information gained from the MapServer User's Meeting last month, I > was able to get my interface up and styled with relative ease. Now I > have to change the data content (i.e. name and data source of a layer) > based on user interaction with a pull-down form field. I'm pretty > comfortable with how to do this in PHP/MapScript (see my basic approach > below), but not knowing much about how map session and state information > is maintained with Chameleon, I'm not sure where I should go with this. > > > $nLayers=$oApp->moMapSession->oMap->numlayers; > > for($i=0; $i<$nLayers; $i++) > { > $oLayer=$oApp->moMapSession->oMap->getlayer($i); > if ($oLayer->name == 'Original_Layer_Name') { > $oLayer->set("name","User_Defined_Layer_Name"); > $oLayer->set("data","/data1/rest_of_path_to_data"); > } > } > > > If there doesn't already exist a widget to help me perform this task, > perhaps a custom widget is the answer, but again without more knowledge > of the anatomy of widgets and how to develop them, I wouldn't know where > to start. A push in the right direction would be very much > appreciated. I'm excited to get past the initial learning curve for > utilizing all the potential of Chameleon and hope this exercise will > bring me closer. > > Thanks, > Shon > ________________________________________ > Shon M. Doseck > GIS Analyst > Pangaea Information Technologies, Ltd. > Tel. 312.986.9471 > Cell. 312.804.9650 > Fax. 312.986.9477 > ___http://www.pangaeatech.com _ > ________________________________________ > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From dbradshaw at olver.com Thu Jul 8 16:00:17 2004 From: dbradshaw at olver.com (David Bradshaw) Date: Thu Jul 8 16:00:25 2004 Subject: [Chameleon] Symbol Question Message-ID: To all: I am wondering about all the different symbols for MapServer. Is there a library of all the different symbols. For example water wells (dry, abandoned, etc) or gas well (producing, plugged, abandoned, etc) symbols? I am new, I hope this is not too simple of a question. Thanks, David L. Bradshaw This document, including attachments, is confidential and may be privileged. If you are not an intended recipient, please notify the sender, then delete and destroy the original message and all copies. You should not copy, forward and/or disclose this message, in whole or in part, without permission of the sender. If you receive this e-mail message in error, please notify us immediately. Thank you. From mickeldelay at yahoo.com Sun Jul 11 09:36:17 2004 From: mickeldelay at yahoo.com (mickel delay) Date: Sun Jul 11 09:36:42 2004 Subject: [Chameleon] display coordinate in lat/long Message-ID: <20040711133617.75870.qmail@web51903.mail.yahoo.com> Dear list i want to display coordinate of map file in lat/long format from wgs84 DATUME ,in chameleon. but i want to do not use from chameleon tools for converting coordinate from metric to geographic WSG84. i need a map file that selected correct datume and projection for this problem. please direct me with a map file example regards mickel __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From ken at rockies.ca Sun Jul 11 21:03:04 2004 From: ken at rockies.ca (Ken Sanderson) Date: Sun Jul 11 21:00:20 2004 Subject: [Chameleon] JSAPI newbie questions Message-ID: <004601c467ab$ffc9f2b0$31289f88@GLADSTONE> Hello all. Now that I have chameleon up and running I thought the best way to get things rolling on the learning curve was to dive in and use it for an upcoming project. The project has the requirement of a tool where the user clicks on the map, I get the coordinates for that click, and then I go and do something with those coords. Fairly straight forward. After reading the docs on widgets and JSAPI I decided likely the JSAPI was a good way to go and further decided to start off by implimenting the example in the JSAPI docs. So first I added the two lines up below the rest of the shared resources: This I gather should tell things that I am using JSAPI. I then added the event register to the myOnLoad() function like: function myOnLoad() { CWC2OnLoadFunction(); goCWCApp.RegisterEvent( MOUSE_CLICKED, "myMouseClicked"); } Then I pasted in the myMouseClicked function from the JSAPI docs, like: function myMouseClicked() { oMap = goCWCApp.oMap; mousePos = "(" + oMap.mouseclick[0] + "," + oMap.mouseclick[1] + ")"; alert("mouse clicked at " + mousePos); } So now my question. What have I done wrong or missed doing? By added the above it more or less breaks the page. Is it because I have not set it to tell the other widgets to not operate, ie if the tool selected is zoomin, then its going to zoomin as well as my little function? Obviously I am going to want to change it so it only does my function, but can you have both if you wanted too? Any suggestions appreciated, as well as tips, tales and stories from those more experienced with the JSAPI. Thanks, Ken Sanderson Miistakis From pagameba at magma.ca Sun Jul 11 23:02:06 2004 From: pagameba at magma.ca (Paul Spencer) Date: Sun Jul 11 23:02:20 2004 Subject: [Chameleon] display coordinate in lat/long In-Reply-To: <20040711133617.75870.qmail@web51903.mail.yahoo.com> References: <20040711133617.75870.qmail@web51903.mail.yahoo.com> Message-ID: <40F1FF2E.6020401@magma.ca> Mickel, for map-file-related questions please use the mapserver-users mailing list. Paul mickel delay wrote: > Dear list > i want to display coordinate of map file in lat/long > format from wgs84 DATUME ,in chameleon. > but i want to do not use from chameleon tools for > converting coordinate from metric to geographic WSG84. > i need a map file that selected correct datume and > projection for this problem. > please direct me with a map file example > > regards > mickel > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail is new and improved - Check it out! > http://promotions.yahoo.com/new_mail > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From pagameba at magma.ca Sun Jul 11 23:06:27 2004 From: pagameba at magma.ca (Paul Spencer) Date: Sun Jul 11 23:06:38 2004 Subject: [Chameleon] JSAPI newbie questions In-Reply-To: <004601c467ab$ffc9f2b0$31289f88@GLADSTONE> References: <004601c467ab$ffc9f2b0$31289f88@GLADSTONE> Message-ID: <40F20033.1000504@magma.ca> Ken, the CWCJSAPI widget is more or less broken for any version after 1.0.6 (i.e. any of the 1.1 or 1.99 versions) up to and including the 1.99 beta 1 version. It should work for the beta 2 version which is to be released this week (pending internal qa review) for most widgets, but it likely still has problems that won't be fully resolved until beta 3 or 4. I would appreciate it if you do try to use it for your project once beta 2 is released as this will give me some real feedback :) Cheers, Paul Ken Sanderson wrote: > Hello all. > > Now that I have chameleon up and running I thought the best way to get > things rolling on the learning curve was to dive in and use it for an > upcoming project. The project has the requirement of a tool where the > user clicks on the map, I get the coordinates for that click, and then I > go and do something with those coords. Fairly straight forward. > > After reading the docs on widgets and JSAPI I decided likely the JSAPI > was a good way to go and further decided to start off by implimenting > the example in the JSAPI docs. > > So first I added the two lines up below the rest of the shared > resources: > > > > > This I gather should tell things that I am using JSAPI. > > I then added the event register to the myOnLoad() function like: > > function myOnLoad() > { > CWC2OnLoadFunction(); > goCWCApp.RegisterEvent( MOUSE_CLICKED, > "myMouseClicked"); > } > > Then I pasted in the myMouseClicked function from the JSAPI docs, like: > > function myMouseClicked() > { > oMap = goCWCApp.oMap; > mousePos = "(" + oMap.mouseclick[0] + "," > + oMap.mouseclick[1] + ")"; > alert("mouse clicked at " + mousePos); > } > > So now my question. What have I done wrong or missed doing? By added the > above it more or less breaks the page. Is it because I have not set it > to tell the other widgets to not operate, ie if the tool selected is > zoomin, then its going to zoomin as well as my little function? > Obviously I am going to want to change it so it only does my function, > but can you have both if you wanted too? > > Any suggestions appreciated, as well as tips, tales and stories from > those more experienced with the JSAPI. > > Thanks, > > Ken Sanderson > Miistakis > > > > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From dbradshaw at politicalmapping.com Sat Jul 10 21:44:32 2004 From: dbradshaw at politicalmapping.com (David L. Bradshaw) Date: Mon Jul 12 09:37:16 2004 Subject: [Chameleon] ESRI TTF Oil & Gas Symbology References: <200407081600.i68G03e1014617@www.maptools.org> Message-ID: <002f01c466e8$9d500750$1b02a8c0@swordtail> Dear List: I am stuck. I've copied the ESRI Oil, Gas, & Water TTF from my Windows\font directory into the \etc folder. I added the following to my font.txt file: esri_4 esri_4.ttf and I have added the following to my symbol.sym file: SYMBOL NAME 'gaswell' TYPE TRUETYPE FONT esri_4 FILLED true ANTIALIAS true CHARACTER '3' END In my map file I have the following: LAYER NAME gas_wells_120603 METADATA "DESCRIPTION" "Wells" "RESULT_FIELDS" "Layer" END MAXSCALE 30000 TYPE POINT STATUS ON DATA gas_wells_120603 LabelItem "Layer" CLASSITEM "Type" CLASS EXPRESSION "1" TEMPLATE "ttt_query.html" SYMBOL 'cbm' SIZE 4 NAME cbm COLOR 50 249 242 END TOLERANCE 5 END # Layer And now the question... Why cannot I not get esri little symbol for a gas well? It is the 3 character of the first line of characters. I am running the latest mapserver download from DM Solution. I did not compile anything I am using it as is for Windows. I am playing with this at home this weekend if anyone happens to see this. Thanks so much, David -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20040710/2c008da9/attachment.htm From ikeivy2000 at hotmail.com Sun Jul 11 22:44:03 2004 From: ikeivy2000 at hotmail.com (ISAAC KWADWO NTI) Date: Mon Jul 12 09:37:17 2004 Subject: [Chameleon] Usage of Chameleon,Maplab in other Web based GIS Message-ID: An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20040712/152ccf32/attachment.htm From eric at gomoos.org Mon Jul 12 09:54:06 2004 From: eric at gomoos.org (Eric Bridger) Date: Mon Jul 12 09:57:38 2004 Subject: [Chameleon] ESRI TTF Oil & Gas Symbology In-Reply-To: <002f01c466e8$9d500750$1b02a8c0@swordtail> References: <200407081600.i68G03e1014617@www.maptools.org> <002f01c466e8$9d500750$1b02a8c0@swordtail> Message-ID: <1089640452.1521.10.camel@ubet.gomoos.org> On Sat, 2004-07-10 at 21:44, David L. Bradshaw wrote: > Dear List: > > I am stuck. I've copied the ESRI Oil, Gas, & Water TTF from my Windows\font directory into the \etc folder. I added the following to my font.txt file: > esri_4 esri_4.ttf > > and I have added the following to my symbol.sym file: > SYMBOL > NAME 'gaswell' > TYPE TRUETYPE > FONT esri_4 > FILLED true > ANTIALIAS true > CHARACTER '3' > END > David, The syntax for this would be: CHARACTER "" or perhaps "" From eric at gomoos.org Mon Jul 12 10:00:00 2004 From: eric at gomoos.org (Eric Bridger) Date: Mon Jul 12 10:03:38 2004 Subject: [Chameleon] display coordinate in lat/long In-Reply-To: <40F1FF2E.6020401@magma.ca> References: <20040711133617.75870.qmail@web51903.mail.yahoo.com> <40F1FF2E.6020401@magma.ca> Message-ID: <1089640806.1521.17.camel@ubet.gomoos.org> On Sun, 2004-07-11 at 23:02, Paul Spencer wrote: > Mickel, > > for map-file-related questions please use the mapserver-users mailing list. > > Paul > > mickel delay wrote: > > > Dear list > > i want to display coordinate of map file in lat/long > > format from wgs84 DATUME ,in chameleon. > > but i want to do not use from chameleon tools for > > converting coordinate from metric to geographic WSG84. > > i need a map file that selected correct datume and > > projection for this problem. > > please direct me with a map file example I want to do something similar but I DO want to use Chameleon. I'm using the CursorPos widget. My map is in a UTM projection, zone 19. What should be my approach to getting CursorPos to display lat/long vs. meters. Eric From pagameba at magma.ca Mon Jul 12 10:22:36 2004 From: pagameba at magma.ca (Paul Spencer) Date: Mon Jul 12 10:22:49 2004 Subject: [Chameleon] display coordinate in lat/long In-Reply-To: <1089640806.1521.17.camel@ubet.gomoos.org> References: <20040711133617.75870.qmail@web51903.mail.yahoo.com> <40F1FF2E.6020401@magma.ca> <1089640806.1521.17.camel@ubet.gomoos.org> Message-ID: <40F29EAC.2050908@magma.ca> Currently it is not possible to display the cursor position in anything other than the projection defined in the map file. The reason is that Chameleon produces a client-side web application, but the projection software that would be used to convert the cursor position into lat/lon runs on the server. It is not practical to call this library for every cursor movement. We have discussed possible solutions to this, the most viable seems to be production of a javascript array containing pre-projected points, say every ten pixels, and using this grid to map the current cursor position into the re-projected coordinate system. I don't think there are any plans to implement this right now. Cheers, Paul Eric Bridger wrote: > On Sun, 2004-07-11 at 23:02, Paul Spencer wrote: > >>Mickel, >> >>for map-file-related questions please use the mapserver-users mailing list. >> >>Paul >> >>mickel delay wrote: >> >> >>>Dear list >>>i want to display coordinate of map file in lat/long >>>format from wgs84 DATUME ,in chameleon. >>>but i want to do not use from chameleon tools for >>>converting coordinate from metric to geographic WSG84. >>>i need a map file that selected correct datume and >>>projection for this problem. >>>please direct me with a map file example > > > I want to do something similar but I DO want to use Chameleon. I'm using > the CursorPos widget. My map is in a UTM projection, zone 19. What > should be my approach to getting CursorPos to display lat/long vs. > meters. > > Eric > > > > > -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From ikeivy2000 at hotmail.com Mon Jul 12 21:26:15 2004 From: ikeivy2000 at hotmail.com (ISAAC KWADWO NTI) Date: Mon Jul 12 21:26:18 2004 Subject: [Chameleon] error messages in links Message-ID: An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20040713/7f60dcbe/attachment.htm From jfournier at dmsolutions.ca Tue Jul 13 11:27:37 2004 From: jfournier at dmsolutions.ca (Jason Fournier) Date: Tue Jul 13 11:26:12 2004 Subject: [Chameleon] error messages in links In-Reply-To: References: Message-ID: <40F3FF69.3030700@dmsolutions.ca> Isaac, Couple of things... If your intention is to use Chameleon I would encourage you to download Chameleon 1.99 Beta. You have downloaded CWC2 1.0.6 - the precursor to Chameleon. Having said that, in order to get your CWC2 installation up and running we'll need to check a couple of things. Firstly, do you have a file called httpd_cwc2.conf in your /ms4w/httpd.d/ directory? If not then please create one with name httpd_cwc2.conf (actually, it can be any name you wish) and place the following text in it: Alias /chameleon/ "/ms4w/apps/cwc2/htdocs/" AllowOverride None Options Indexes FollowSymLinks Multiviews Order allow,deny Allow from all Restart Apache. Type the following in your browser: http://localhost/chameleon/cwc2.php This should get you an application. Note that you can pass a couple of parameters in the url to get different applications - ie, the service instance in action. For instance, you could type: http://localhost/chameleon/cwc2.php?template=demo.html and receive a different application altogether. A few templates have been provided in the htdocs directory by the developers and designers of cwc2. Hope this helps, Jason ISAAC KWADWO NTI wrote: > I downloaded and installed chameleon_ms4w-1.0.6 as an application within > ms4w software.When i browsed my localhost the index page showed with > CWC2 1.0 (Chameleon 1.0) as an application but two of the links are not > working. > > The "CWC2 Service Instance url (click for default demo app defined in > configuration)" displays a page with the information "FATAL > ERROR:Invalid or no access to template(cwc2/htdocs/test.html)" > The CWC2 Documentation results in an error page "page cant be found". > > Please how could I solve these problems > > Isaac Kwadwo Nti > Kaiser Str.19, > 76131 Karlsruhe > Germany. > Home Tel: +497213529267 > Mobile : +491798846336 > > ------------------------------------------------------------------------ > Add photos to your e-mail with MSN 8. > Get 2 months FREE*. > > > ------------------------------------------------------------------------ > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- ________________________ Jason Fournier Applications Development DM Solutions Group Inc. jfournier@dmsolutions.ca www.dmsolutions.ca 613.565.5056 x18 From ikeivy2000 at hotmail.com Wed Jul 14 09:57:56 2004 From: ikeivy2000 at hotmail.com (ISAAC KWADWO NTI) Date: Wed Jul 14 09:58:01 2004 Subject: [Chameleon] NO DOCUMENTATION FILES FOUND Message-ID: An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20040714/0fc23816/attachment.htm From mickeldelay at yahoo.com Thu Jul 15 02:46:42 2004 From: mickeldelay at yahoo.com (mickel delay) Date: Thu Jul 15 02:47:05 2004 Subject: [Chameleon] click object in chameleon Message-ID: <20040715064642.84403.qmail@web51903.mail.yahoo.com> Dear list Hi i show my query result by a symbol in my map in chameleon with direction of Mr.Paul Spencer for using ovf file format. but i have new problem,i describe my problem : i show my query result in chameleon map application with a symbol,also i have more information about each object that i show with a symbol in chameleon and tend if i click each symbol in chameleon then i show the information of it in HTML page. please direct me for this application. regards mickel __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From bartvde at xs4all.nl Thu Jul 15 10:18:04 2004 From: bartvde at xs4all.nl (bartvde@xs4all.nl) Date: Thu Jul 15 10:18:07 2004 Subject: [Chameleon] Chameleon as a WMS client Message-ID: <21727.212.238.227.182.1089901084.squirrel@webmail.xs4all.nl> Hi list, I have a Chameleon application with 5 WMS layers which come from the same machine, all served by mapserv.exe, but with different MAP files. So Chameleon acts a WMS client (through Mapserver's WMS client). If I get an error on one of the layers, the spinner just keep on turning and no image is returned. I would expect an image to return 4 of the 5 layers which are working. So this is not a timeout, but a mapserver error which is not handled in the best possible way. Is this a Chameleon "bug" or a Mapserver WMS client "bug"? This is what Mapserver gives back: loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver swf, but this driver isn't configured. On the following request: http://myserver/cgi-bin/mapserv_42.exe?map=/ms4w_20/apps/general/map/gemeentes.map&request=GetMap&bbox=100000,400000,200000,500000&width=500&height=500&format=image/png&version=1.1.1&srs=EPSG:28992&layers=Gemeentes BTW: should not always a WMS Exception be returned by Mapserver? Best regards, Bart From eric at gomoos.org Thu Jul 15 11:07:00 2004 From: eric at gomoos.org (Eric Bridger) Date: Thu Jul 15 11:10:47 2004 Subject: [Chameleon] click object in chameleon In-Reply-To: <20040715064642.84403.qmail@web51903.mail.yahoo.com> References: <20040715064642.84403.qmail@web51903.mail.yahoo.com> Message-ID: <1089904025.1897.70.camel@ubet.gomoos.org> On Thu, 2004-07-15 at 02:46, mickel delay wrote: > Dear list > Hi > i show my query result by a symbol in my map in > chameleon with direction of Mr.Paul Spencer for using > ovf file format. > but i have new problem,i describe my problem : > > i show my query result in chameleon map application > with a symbol,also i have more information about each > object that i show with a symbol in chameleon and tend > if i click each symbol in chameleon then i show the > information of it in HTML page. > please direct me for this application. I think you would want to use the Query widget . In your LAYER make sure you have a TEMPLATE "anything.html" and perhaps DUMP TRUE. From pxniw69 at yahoo.com Thu Jul 15 12:57:34 2004 From: pxniw69 at yahoo.com (pxniw pxniw) Date: Thu Jul 15 12:58:09 2004 Subject: [Chameleon] wld file Message-ID: <20040715165734.13115.qmail@web41907.mail.yahoo.com> This is what I have: West_Bounding_Coordinate: -89.239159 East_Bounding_Coordinate: -80.743049 North_Bounding_Coordinate: 36.599251 South_Bounding_Coordinate: 34.160938 This in test.wld file 63.757342000000001 0.0 0.0 -63.757342000000001 -423911.11505433073 276070.15467074828 And image size is: 11919 * 4082 (test.tif) 46.4mb And on .map file I have: LAYER NAME "test" DATA "C:/test/test.tif" TYPE RASTER STATUS ON #PROJECTION #"proj=latlong" END Image does not show ;( Any idea if I have .wld file correct? Thanks __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail From mickeldelay at yahoo.com Sun Jul 18 09:04:04 2004 From: mickeldelay at yahoo.com (mickel delay) Date: Sun Jul 18 09:04:29 2004 Subject: [Chameleon] query problem in chameleon Message-ID: <20040718130404.61643.qmail@web51903.mail.yahoo.com> Dear list Hi i have a map file that contain an ecw raster and a ovf layer(OGR connection) that display location of park city with a star symbol in raster layer in chameleon. i want to use query tools in chameleon and when i click in each star then show result of query in html form. i change my map file for this goal and use from query tools in chameleon but this message appear in query form. "no queryable layers found" i enclose map file layers and ovf file .please direct me ASAP. regards . mickel ovf file /// ODBC:ovf queryresult wkbPoint WGS84 /// LAYER NAME "ortofoto" STATUS ON DATA "c:/ms4w/apps/gmap/htdocs/map/ecw/city.ecw" TYPE RASTER END LAYER NAME "MyVirtualLayer" STATUS ON DATA "capitalNames" TYPE POINT CONNECTIONTYPE OGR CONNECTION "c:/ms4w/apps/gmap/htdocs/virtual.ovf" TOLERANCE 5 METADATA "DESCRIPTION" "MyVirtualLayer" "RESULT_FIELDS" "longitude" END PROJECTION "init=epsg:4326" END CLASS NAME "longitude" symbol 2 size 20 color 255 6 76 TEMPLATE "ttt_query.html" END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From jfournier at dmsolutions.ca Sun Jul 18 10:01:42 2004 From: jfournier at dmsolutions.ca (Jason Fournier) Date: Sun Jul 18 09:59:12 2004 Subject: [Chameleon] query problem in chameleon In-Reply-To: <20040718130404.61643.qmail@web51903.mail.yahoo.com> References: <20040718130404.61643.qmail@web51903.mail.yahoo.com> Message-ID: <40FA82C6.7040100@dmsolutions.ca> Having just looked quickly you might want to try putting the TEMPLATE on the LAYER object rather than the CLASS object. mickel delay wrote: > Dear list > > Hi > i have a map file that contain an ecw raster and a > ovf layer(OGR connection) that display location of > park city with a star symbol in raster layer in > chameleon. > i want to use query tools in chameleon and when i > click in each star then show result of query in html > form. > i change my map file for this goal and use from query > tools in chameleon but this message appear in query > form. > "no queryable layers found" > i enclose map file layers and ovf file .please direct > me ASAP. > regards . > mickel > ovf file > /// > > > > ODBC:ovf > queryresult > wkbPoint > WGS84 > x="longitude" y="latitude"/> > > > > /// > LAYER > NAME "ortofoto" > STATUS ON > DATA "c:/ms4w/apps/gmap/htdocs/map/ecw/city.ecw" > TYPE RASTER > END > LAYER > NAME "MyVirtualLayer" > STATUS ON > DATA "capitalNames" > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "c:/ms4w/apps/gmap/htdocs/virtual.ovf" > TOLERANCE 5 > METADATA > "DESCRIPTION" "MyVirtualLayer" > "RESULT_FIELDS" "longitude" > END > > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "longitude" > symbol 2 > size 20 > color 255 6 76 > TEMPLATE "ttt_query.html" > END > END > > END > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- ________________________ Jason Fournier Applications Development DM Solutions Group Inc. jfournier@dmsolutions.ca www.dmsolutions.ca 613.565.5056 x18 From pdymecki at sympatico.ca Sun Jul 18 11:21:11 2004 From: pdymecki at sympatico.ca (Paul Dymecki) Date: Sun Jul 18 11:21:20 2004 Subject: [Chameleon] SESSIONID?? References: <20040718130404.61643.qmail@web51903.mail.yahoo.com> <40FA82C6.7040100@dmsolutions.ca> Message-ID: <000b01c46cda$db770fe0$7b45fea9@paul> Hello, I have recently written an application that links to another website after having done a local search and display of points on a map. My question is, is there a way of passing the outside website an address of my current map state, so they can link back to it? thanks for any info on this, Paul Dymecki ----- Original Message ----- From: "Jason Fournier" To: "mickel delay" Cc: Sent: Sunday, July 18, 2004 10:01 AM Subject: Re: [Chameleon] query problem in chameleon > Having just looked quickly you might want to try putting the TEMPLATE on > the LAYER object rather than the CLASS object. > > > > mickel delay wrote: > > Dear list > > > > Hi > > i have a map file that contain an ecw raster and a > > ovf layer(OGR connection) that display location of > > park city with a star symbol in raster layer in > > chameleon. > > i want to use query tools in chameleon and when i > > click in each star then show result of query in html > > form. > > i change my map file for this goal and use from query > > tools in chameleon but this message appear in query > > form. > > "no queryable layers found" > > i enclose map file layers and ovf file .please direct > > me ASAP. > > regards . > > mickel > > ovf file > > /// > > > > > > > > ODBC:ovf > > queryresult > > wkbPoint > > WGS84 > > > x="longitude" y="latitude"/> > > > > > > > > /// > > LAYER > > NAME "ortofoto" > > STATUS ON > > DATA "c:/ms4w/apps/gmap/htdocs/map/ecw/city.ecw" > > TYPE RASTER > > END > > LAYER > > NAME "MyVirtualLayer" > > STATUS ON > > DATA "capitalNames" > > TYPE POINT > > CONNECTIONTYPE OGR > > CONNECTION "c:/ms4w/apps/gmap/htdocs/virtual.ovf" > > TOLERANCE 5 > > METADATA > > "DESCRIPTION" "MyVirtualLayer" > > "RESULT_FIELDS" "longitude" > > END > > > > PROJECTION > > "init=epsg:4326" > > END > > CLASS > > NAME "longitude" > > symbol 2 > > size 20 > > color 255 6 76 > > TEMPLATE "ttt_query.html" > > END > > END > > > > END > > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > _______________________________________________ > > Chameleon mailing list > > Chameleon@lists.maptools.org > > http://lists.maptools.org/mailman/listinfo/chameleon > > > > -- > ________________________ > Jason Fournier > Applications Development > DM Solutions Group Inc. > jfournier@dmsolutions.ca > www.dmsolutions.ca > 613.565.5056 x18 > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon From jacob.delfos at maunsell.com Sun Jul 18 20:40:39 2004 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Sun Jul 18 20:43:47 2004 Subject: [Chameleon] SESSIONID?? Message-ID: I would recommend you open your link in a new window using javascript: your clickable link This way, your user will not have to wait for the page to load again. Alternatively, load a HTML file from your server that has two frames; set the bottom (main) frame to your link, and put a 'back' option in the top one. Jacob -----Original Message----- From: chameleon-bounces@lists.maptools.org [mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Paul Dymecki Sent: Sunday, 18 July 2004 11:21 PM To: chameleon@lists.maptools.org Subject: [Chameleon] SESSIONID?? Hello, I have recently written an application that links to another website after having done a local search and display of points on a map. My question is, is there a way of passing the outside website an address of my current map state, so they can link back to it? thanks for any info on this, Paul Dymecki ----- Original Message ----- From: "Jason Fournier" To: "mickel delay" Cc: Sent: Sunday, July 18, 2004 10:01 AM Subject: Re: [Chameleon] query problem in chameleon > Having just looked quickly you might want to try putting the TEMPLATE on > the LAYER object rather than the CLASS object. > > > > mickel delay wrote: > > Dear list > > > > Hi > > i have a map file that contain an ecw raster and a > > ovf layer(OGR connection) that display location of > > park city with a star symbol in raster layer in > > chameleon. > > i want to use query tools in chameleon and when i > > click in each star then show result of query in html > > form. > > i change my map file for this goal and use from query > > tools in chameleon but this message appear in query > > form. > > "no queryable layers found" > > i enclose map file layers and ovf file .please direct > > me ASAP. > > regards . > > mickel > > ovf file > > /// > > > > > > > > ODBC:ovf > > queryresult > > wkbPoint > > WGS84 > > > x="longitude" y="latitude"/> > > > > > > > > /// > > LAYER > > NAME "ortofoto" > > STATUS ON > > DATA "c:/ms4w/apps/gmap/htdocs/map/ecw/city.ecw" > > TYPE RASTER > > END > > LAYER > > NAME "MyVirtualLayer" > > STATUS ON > > DATA "capitalNames" > > TYPE POINT > > CONNECTIONTYPE OGR > > CONNECTION "c:/ms4w/apps/gmap/htdocs/virtual.ovf" > > TOLERANCE 5 > > METADATA > > "DESCRIPTION" "MyVirtualLayer" > > "RESULT_FIELDS" "longitude" > > END > > > > PROJECTION > > "init=epsg:4326" > > END > > CLASS > > NAME "longitude" > > symbol 2 > > size 20 > > color 255 6 76 > > TEMPLATE "ttt_query.html" > > END > > END > > > > END > > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > _______________________________________________ > > Chameleon mailing list > > Chameleon@lists.maptools.org > > http://lists.maptools.org/mailman/listinfo/chameleon > > > > -- > ________________________ > Jason Fournier > Applications Development > DM Solutions Group Inc. > jfournier@dmsolutions.ca > www.dmsolutions.ca > 613.565.5056 x18 > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon _______________________________________________ Chameleon mailing list Chameleon@lists.maptools.org http://lists.maptools.org/mailman/listinfo/chameleon From Steven.D'Cruz at ec.gc.ca Mon Jul 19 14:55:34 2004 From: Steven.D'Cruz at ec.gc.ca (D'cruz,Steven [Ontario]) Date: Mon Jul 19 14:55:40 2004 Subject: [Chameleon] Multiple DSN Problem Message-ID: <9B09D75DF5B3494BA06E6FE478CE9CC10101A3C4@mgtserver3.ontario.int.ec.gc.ca> Hi there, I was wondering if anyone has any experience with executing select statements using two different DSNs simultaneously. For my work, I require functionality similar to the following: "select a.* from tablename1 a, tablename2 b where a.id=b.id and b.filter='t'" , where tablename1 and tablename2 are from 2 DIFFERENT DSNs. Both DSNs are to be accessed via a realtime connection to a MS Access 2000 database from a linux host via the FREETDS drivers. I currently have both DSNs working independently in 2 test layers (with no errors) using the required fields. Here's the .ovf file used for the selection queue from the MS Access 2000 databases. Database1: ----------------- ODBC:UserName/Password@DSN1Name select statement here wkbPoint Database2: ---------------- ODBC:UserName/Password@DSN2Name select statement here wkbPoint What I require is a .ovf file which allows for 2 SrcDataSource(s). I've attempted to add an additional tag followed by the connection information to the second database to the first .ovf file, however I consistently get no points found... even if I don't use the data. Are there any known ways of accomplishing this task? If not, I'll probably have to extract the necessary fields from Layer2 in a file on the local machine, and then use either javascript or php to filter the results from Layer1. Any comments, suggestions, and related questions would be greatly appreciated. Also, as I'm unsure whether this would be considered more of a Chameleon or Mapserver problem, I've posted it to both mailing lists. Steven D'Cruz Steven.D'Cruz@ec.gc.ca (GIS) Web Developer Environment Canada -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20040719/3256e39c/attachment.htm From ken at rockies.ca Mon Jul 19 16:56:18 2004 From: ken at rockies.ca (Ken Sanderson) Date: Mon Jul 19 16:53:47 2004 Subject: [Chameleon] Locate Widget Message-ID: <00b501c46dd2$d69f2450$31289f88@GLADSTONE> Hello all, I have a couple questions in regards to the locate widget, specifically about what is happening at the service end. I have a need to setup something similar as the NTS Mapsheet tool, only using a different grid. How does the NTS lookup service work? Is it just a database where each mapsheet has a listed extent that you grab from the query response? I assume its not a WMS or WFS layer? Is it just a math formula given that the NTS grid follows Lat/Longs? Any general/specific information on this would be appreciated. Thanks, Ken Sanderson Miistakis From pagameba at magma.ca Tue Jul 20 07:52:20 2004 From: pagameba at magma.ca (Paul Spencer) Date: Tue Jul 20 07:52:30 2004 Subject: [Chameleon] Locate Widget In-Reply-To: <00b501c46dd2$d69f2450$31289f88@GLADSTONE> References: <00b501c46dd2$d69f2450$31289f88@GLADSTONE> Message-ID: <40FD0774.2070104@magma.ca> Ken, I don't know how the NTS MapSheet lookup service is implemented. We just connect to the service, provide input in a certain format and expect results back in another format. I would expect that the naming convention of mapsheets is sufficient for them to locate the mapsheet geographically. To Chameleon, it is immaterial how you implement the service but very important that you clearly define how data is passed to and from your service. Hope that helps, Paul Ken Sanderson wrote: > Hello all, > > I have a couple questions in regards to the locate widget, specifically > about what is happening at the service end. > > I have a need to setup something similar as the NTS Mapsheet tool, only > using a different grid. How does the NTS lookup service work? Is it just > a database where each mapsheet has a listed extent that you grab from > the query response? I assume its not a WMS or WFS layer? Is it just a > math formula given that the NTS grid follows Lat/Longs? > > Any general/specific information on this would be appreciated. > > Thanks, > > Ken Sanderson > Miistakis > > > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From dgadoury at dmsolutions.ca Tue Jul 20 08:08:33 2004 From: dgadoury at dmsolutions.ca (Dean Gadoury) Date: Tue Jul 20 08:08:52 2004 Subject: [Chameleon] Locate Widget In-Reply-To: <40FD0774.2070104@magma.ca> References: <00b501c46dd2$d69f2450$31289f88@GLADSTONE> <40FD0774.2070104@magma.ca> Message-ID: <40FD0B41.2090202@dmsolutions.ca> You might be able to find out more about how it works and get contact info here: http://www.geoconnections.org/CGDI.cfm/fuseaction/developersCorner.details/id/1566/gcs.cfm Paul Spencer wrote: > Ken, I don't know how the NTS MapSheet lookup service is implemented. > We just connect to the service, provide input in a certain format and > expect results back in another format. I would expect that the naming > convention of mapsheets is sufficient for them to locate the mapsheet > geographically. To Chameleon, it is immaterial how you implement the > service but very important that you clearly define how data is passed > to and from your service. Hope that helps, > > Paul > > Ken Sanderson wrote: > >> Hello all, >> >> I have a couple questions in regards to the locate widget, specifically >> about what is happening at the service end. >> >> I have a need to setup something similar as the NTS Mapsheet tool, only >> using a different grid. How does the NTS lookup service work? Is it just >> a database where each mapsheet has a listed extent that you grab from >> the query response? I assume its not a WMS or WFS layer? Is it just a >> math formula given that the NTS grid follows Lat/Longs? >> >> Any general/specific information on this would be appreciated. >> >> Thanks, >> >> Ken Sanderson >> Miistakis >> >> >> >> _______________________________________________ >> Chameleon mailing list >> Chameleon@lists.maptools.org >> http://lists.maptools.org/mailman/listinfo/chameleon >> > -- ___________________________ Dean Gadoury DM Solutions Group 30 Rosemount Ave. Suite 200 Ottawa, Ontario. K1Y 1P4 613.565.5056 ext. 24 dgadoury@dmsolutions.ca www.dmsolutions.ca From il_vikingo at yahoo.com Tue Jul 20 08:31:17 2004 From: il_vikingo at yahoo.com (Andrea Rossi) Date: Tue Jul 20 08:31:25 2004 Subject: [Chameleon] Installation Message-ID: <20040720123117.26610.qmail@web12304.mail.yahoo.com> Hello wher can I find the istructions to install chamaleon? Thank You! __________________________________ Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! http://advision.webevents.yahoo.com/yahoo/votelifeengine/ From il_vikingo at yahoo.com Tue Jul 20 08:31:14 2004 From: il_vikingo at yahoo.com (Andrea Rossi) Date: Tue Jul 20 08:31:28 2004 Subject: [Chameleon] Installation Message-ID: <20040720123114.67620.qmail@web12308.mail.yahoo.com> Hello wher can I find the istructions to installa chamaleon? Thank You! __________________________________ Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! http://advision.webevents.yahoo.com/yahoo/votelifeengine/ From pagameba at magma.ca Tue Jul 20 08:37:46 2004 From: pagameba at magma.ca (Paul Spencer) Date: Tue Jul 20 08:37:58 2004 Subject: [Chameleon] Installation In-Reply-To: <20040720123117.26610.qmail@web12304.mail.yahoo.com> References: <20040720123117.26610.qmail@web12304.mail.yahoo.com> Message-ID: <40FD121A.3000602@magma.ca> hi, if you download the latest released version of chameleon (beta1 at this time) it includes a file called CWC2_INSTALLATION.txt that is a little out of date but should get you started. If you are a windows user, you can try the MS4W package (www.maptools.org/ms4w) and download a pre-configured chameleon package that works with the MS4W package directly. Cheers, Paul Andrea Rossi wrote: > Hello > wher can I find the istructions to install chamaleon? > Thank You! > > > > > __________________________________ > Do you Yahoo!? > Vote for the stars of Yahoo!'s next ad campaign! > http://advision.webevents.yahoo.com/yahoo/votelifeengine/ > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From mickeldelay at yahoo.com Tue Jul 20 09:07:32 2004 From: mickeldelay at yahoo.com (mickel delay) Date: Tue Jul 20 09:08:26 2004 Subject: [Chameleon] chameleon 1.99beta1 problem In-Reply-To: Message-ID: <20040720130732.84055.qmail@web51908.mail.yahoo.com> dear list i download and install chameleon 1.99 beta and set the configuration file for working correct. the sample file that indicate in chameleon-1.99.pkg.html file work properly but the chameleon( in new version the cwc2.php file rename to chameleon.php file) application dont work properly ,and after run this program the blank page appear. also i have same problem for using query tools in my ovf layer that i send an E-mail about this problem two day ago. regards. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From il_vikingo at yahoo.com Wed Jul 21 03:19:55 2004 From: il_vikingo at yahoo.com (Andrea Rossi) Date: Wed Jul 21 03:20:01 2004 Subject: [Chameleon] Chameleon 1.99 Message-ID: <20040721071955.99354.qmail@web12307.mail.yahoo.com> Hello I have installed chameleon 1.99 on windows from ms4w. I cas acess to the administration page whit configuration option but the example doesn't work and I als can't go to the documentatio. I can't nothing more than this. Any idea? Thank You. Here is my configuration file: - - server_data_path /ms4w/apps/chameleon/data/ This is where cached capabilities and other information, common to each session, should be. When a user start a new session, all files from that directory are copied to user_session_tmp_path - web_server_path /chameleon/htdocs This is where chameleon.php script is located. - ows_schemas_location http://ogc.dmsolutions.ca URL pointing to the root of a repository of OGC schemas. See http://ogc.dmsolutions.ca for an example. - wms_parse_file /ms4w/apps/chameleon/htdocs/common/wmsparse/wmsparse Full file path to the binary wms parser executable ('/path/to/wmsparse' on Unix, '/path/to/wmsparse.exe' on Windows). Leave empty to use the built in PHP parser (slower). - wms_connectiontimeout 30 Maximum time in seconds that MapServer will wait for an answer from a WMS server. - allow_upload_context true Enable the "Upload map context" feature? (true or false). - allow_upload_template true Allow use of the 'TEMPLATE=' parameter when calling the CWC2 instance to specify any CWC2 HTML template url? (true or false) If set to false then the value of 'default_template' config parameter is always used. - cache_template true If template come from a remote server (http://....), the template is download from that remote server and saved on local server for further loading. For performace, it is prefered to set this value to "true". If the remote server template is dynamic, this value should be set to "false" so the template will be loaded remotely every page load. - validate_template true Validate the attributes of each tag in the input template. This should be set to true for debugging but may be set to false in a production environment to enhance performance. - default_language en-CA Default language specifier. (en-CA or fr-CA) - default_template Default HTML template to use with this CWC2 instance. Used when TEMPLATE= parameter not set, or when allow_upload_template config parameter is set to false. - invalid_session_template Template to display if session is invalid. - default_context Default map context to load when starting this application - map_template /ms4w/apps/chameleon/htdocs/template.map Default MapServer mapfile template to use when uploading a context file. - mapscript_module php_mapscript_42.dll Mapscript module name (i.e. php_mapscript_40.dll for Windows installations or php_mapscript_40.so for Unix installations). - log_path /ms4w/tmp/ Directory in which to write log files. - log_error true This define if chameleon should log errors in session. If set to false, no errors will be logged at all. - log_level LOG_NONE Control the application runtime logging level. Must be one of LOG_OFF, LOG_QUIET, LOG_VERBOSE or LOG_ALL. - image_type PNG24 Output image type (eg: PNG, GIF). Must be uppercase. This image format MUST be supported by your browser and GD (on the server). Please don't change that value unless you know what you'r doing. - button_cache_path /ms4w/tmp/ms_tmp/buttons/ Directory in which to write image files generated for buttons. This directory must be writable by the web server user and web accessible. For performance reasons, this directory should not be cleaned out automatically. - button_cache_web_path /ms_tmp/buttons/ The URL where a browser can find cached button images. - tmp_web_path /ms_tmp/ URL where browser can find temporary files as context or images - tmp_img_path /ms4w/tmp/ms_tmp/ Directory where temporary image files are put. - context_root / Absolute root path to context files. All context should be in that folder (or sub folder). - template_root / Absolute root path to template files. All template should be in that folder (or sub folder). - fontlist_file /ms4w/apps/chameleon/etc/fonts.txt Path and filename of the font list file used by MapServer (i.e. /path/to/file/fonts.txt ). - symbol_file /ms4w/apps/chameleon/etc/symbols.sym Path and filename of the symbol file used by MapServer (i.e. /path/to/file/symbols.sym ). - textbutton_default_font_size 11 Buttons font size in points - textbutton_default_font_antialiasing true Text Button font antialiasing (true or false) - gd_version gd2 Version of GD graphic library (gd, gd2) - freetype_version freetype Version of Freetype library used (use "ttf" for Freetype 1.3 or "freetype" for Freetype 2.x) - execution_timeout 120 The amount of time in seconds to allow PHP to process a PHP page. This includes (for now) the time required to draw remote WMS layers which can be lengthy. __________________________________ Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! http://advision.webevents.yahoo.com/yahoo/votelifeengine/ From jacob.delfos at maunsell.com Wed Jul 21 05:19:00 2004 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Wed Jul 21 05:21:53 2004 Subject: [Chameleon] CWCJSAPI widget Message-ID: Hi All, Can anyone tell me whether the procedure for using the javascript API is still the same? Adding the two CWCJSAPI tags in the template? I have done this, but my application seems to hang on navigating straight away. It only loads correctly the first time. Also, inserting the first tag ( ) seems to mess up the layout; even in the debug=false mode, the widget takes up a lot of space. Can anyone shed some light on what is happening? I'm using 1.99 beta1 Regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street PO Box 81 Leederville 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos@maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20040721/0491c1e9/attachment.htm From pagameba at magma.ca Wed Jul 21 08:18:58 2004 From: pagameba at magma.ca (Paul Spencer) Date: Wed Jul 21 08:19:19 2004 Subject: [Chameleon] Chameleon 1.99 In-Reply-To: <20040721071955.99354.qmail@web12307.mail.yahoo.com> References: <20040721071955.99354.qmail@web12307.mail.yahoo.com> Message-ID: <40FE5F32.1080503@magma.ca> Andrea, the administration page is not functional in this beta version. The documentation is also not accessible. Both are targetted for beta 3. Cheers, Paul Andrea Rossi wrote: > Hello > I have installed chameleon 1.99 on windows from ms4w. > I cas acess to the administration page whit > configuration option but the example doesn't work and > I als can't go to the documentatio. > I can't nothing more than this. > Any idea? > Thank You. > > Here is my configuration file: > > - > - > server_data_path > > /ms4w/apps/chameleon/data/ > This is where cached capabilities and > other information, common to each session, should be. > When a user start a new session, all files from that > directory are copied to > user_session_tmp_path > > - > web_server_path > /chameleon/htdocs > This is where chameleon.php script is > located. > > - > ows_schemas_location > http://ogc.dmsolutions.ca > > URL pointing to the root of a > repository of OGC schemas. See > http://ogc.dmsolutions.ca for an > example. > > - > wms_parse_file > > /ms4w/apps/chameleon/htdocs/common/wmsparse/wmsparse > > Full file path to the binary wms parser > executable ('/path/to/wmsparse' on Unix, > '/path/to/wmsparse.exe' on Windows). Leave empty to > use the built in PHP parser (slower). > > - > wms_connectiontimeout > 30 > Maximum time in seconds that MapServer > will wait for an answer from a WMS > server. > > - > allow_upload_context > true > Enable the "Upload map context" > feature? (true or false). > > - > allow_upload_template > true > Allow use of the 'TEMPLATE=' parameter > when calling the CWC2 instance to specify any CWC2 > HTML template url? (true or false) If set to false > then the value of 'default_template' config parameter > is always used. > > - > cache_template > true > If template come from a remote server > (http://....), the template is download from that > remote server and saved on local server for further > loading. For performace, it is prefered to set this > value to "true". If the remote server template is > dynamic, this value should be set to "false" so the > template will be loaded remotely every page > load. > > - > validate_template > true > Validate the attributes of each tag in > the input template. This should be set to true for > debugging but may be set to false in a production > environment to enhance performance. > > - > default_language > en-CA > Default language specifier. (en-CA or > fr-CA) > > - > default_template > > Default HTML template to use with this > CWC2 instance. Used when TEMPLATE= parameter not set, > or when allow_upload_template config parameter is set > to false. > > - > invalid_session_template > > Template to display if session is > invalid. > > - > default_context > > Default map context to load when > starting this application > > - > map_template > > /ms4w/apps/chameleon/htdocs/template.map > > Default MapServer mapfile template to > use when uploading a context file. > > - > mapscript_module > php_mapscript_42.dll > Mapscript module name (i.e. > php_mapscript_40.dll for Windows installations or > php_mapscript_40.so for Unix > installations). > > - > log_path > /ms4w/tmp/ > Directory in which to write log > files. > > - > log_error > true > This define if chameleon should log > errors in session. If set to false, no errors will be > logged at all. > > - > log_level > LOG_NONE > Control the application runtime logging > level. Must be one of LOG_OFF, LOG_QUIET, LOG_VERBOSE > or LOG_ALL. > > - > image_type > PNG24 > Output image type (eg: PNG, GIF). Must > be uppercase. This image format MUST be supported by > your browser and GD (on the server). Please don't > change that value unless you know what you'r > doing. > > - > button_cache_path > /ms4w/tmp/ms_tmp/buttons/ > > Directory in which to write image files > generated for buttons. This directory must be writable > by the web server user and web accessible. For > performance reasons, this directory should not be > cleaned out automatically. > > - > button_cache_web_path > /ms_tmp/buttons/ > The URL where a browser can find cached > button images. > > - > tmp_web_path > /ms_tmp/ > URL where browser can find temporary > files as context or images > > - > tmp_img_path > /ms4w/tmp/ms_tmp/ > Directory where temporary image files > are put. > > - > context_root > / > Absolute root path to context files. > All context should be in that folder (or sub > folder). > > - > template_root > / > Absolute root path to template files. > All template should be in that folder (or sub > folder). > > - > fontlist_file > > /ms4w/apps/chameleon/etc/fonts.txt > > Path and filename of the font list file > used by MapServer (i.e. /path/to/file/fonts.txt > ). > > - > symbol_file > > /ms4w/apps/chameleon/etc/symbols.sym > > Path and filename of the symbol file > used by MapServer (i.e. /path/to/file/symbols.sym > ). > > - > > textbutton_default_font_size > 11 > Buttons font size in > points > > - > > textbutton_default_font_antialiasing > > true > Text Button font antialiasing (true or > false) > > - > gd_version > gd2 > Version of GD graphic library (gd, > gd2) > > - > freetype_version > freetype > Version of Freetype library used (use > "ttf" for Freetype 1.3 or "freetype" for Freetype > 2.x) > > - > execution_timeout > 120 > The amount of time in seconds to allow > PHP to process a PHP page. This includes (for now) the > time required to draw remote WMS layers which can be > lengthy. > > > > > > > __________________________________ > Do you Yahoo!? > Vote for the stars of Yahoo!'s next ad campaign! > http://advision.webevents.yahoo.com/yahoo/votelifeengine/ > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From pagameba at magma.ca Wed Jul 21 08:21:25 2004 From: pagameba at magma.ca (Paul Spencer) Date: Wed Jul 21 08:21:37 2004 Subject: [Chameleon] CWCJSAPI widget In-Reply-To: References: Message-ID: <40FE5FC5.8020403@magma.ca> Jacob, the procedure is the same, but the widget does not work at all except in the latest cvs version, and it is still mostly untested and is only known to work with some widgets at this time. The debug="true" parameter will cause an iframe to be visible. debug="false" should cause it to be invisible and have no impact on the layout. Cheers, Paul Delfos, Jacob wrote: > Hi All, > > Can anyone tell me whether the procedure for using the javascript API is > still the same? Adding the two CWCJSAPI tags in the template? > > I have done this, but my application seems to hang on navigating > straight away. It only loads correctly the first time. Also, inserting > the first tag ( ) seems to > mess up the layout; even in the debug=false mode, the widget takes up a > lot of space. > > Can anyone shed some light on what is happening? I'm using 1.99 beta1 > > Regards, > > Jacob > > > > *JACOB DELFOS > SPATIAL INFORMATION ANALYST > *Maunsell Australia Pty Ltd > 629 Newcastle Street > PO Box 81 > Leederville 6902 > Western Australia > ABN 20 093 846 925 > > Tel + 61 8 9281 6185 > Fax + 61 8 9281 6297 > _jacob.delfos@maunsell.com_ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From jacob.delfos at maunsell.com Wed Jul 21 22:55:01 2004 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Wed Jul 21 22:57:59 2004 Subject: [Chameleon] CWCJSAPI widget Message-ID: Paul, I managed to convince our network administrator to change the firewall so I could finally get to the CSV to download the newer files. Even with the debug off (the iframe not visible), it does seem to change the layout. The size it appears to take up is equal to the size of the iframe when debug is on. What is the best place to put the tag in the template? Normally the location of javascript declarations can be quite relevant. I did not actually manage to get a lot of functionality out of the widget. The scale seems to be working, but not the navigation. Regards, Jacob -----Original Message----- From: Paul Spencer [mailto:pagameba@magma.ca] Sent: Wednesday, 21 July 2004 8:21 PM To: Delfos, Jacob Cc: chameleon@lists.maptools.org Subject: Re: [Chameleon] CWCJSAPI widget Jacob, the procedure is the same, but the widget does not work at all except in the latest cvs version, and it is still mostly untested and is only known to work with some widgets at this time. The debug="true" parameter will cause an iframe to be visible. debug="false" should cause it to be invisible and have no impact on the layout. Cheers, Paul Delfos, Jacob wrote: > Hi All, > > Can anyone tell me whether the procedure for using the javascript API is > still the same? Adding the two CWCJSAPI tags in the template? > > I have done this, but my application seems to hang on navigating > straight away. It only loads correctly the first time. Also, inserting > the first tag ( ) seems to > mess up the layout; even in the debug=false mode, the widget takes up a > lot of space. > > Can anyone shed some light on what is happening? I'm using 1.99 beta1 > > Regards, > > Jacob > > > > *JACOB DELFOS > SPATIAL INFORMATION ANALYST > *Maunsell Australia Pty Ltd > 629 Newcastle Street > PO Box 81 > Leederville 6902 > Western Australia > ABN 20 093 846 925 > > Tel + 61 8 9281 6185 > Fax + 61 8 9281 6297 > _jacob.delfos@maunsell.com_ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From Steven.D'Cruz at ec.gc.ca Fri Jul 23 11:47:00 2004 From: Steven.D'Cruz at ec.gc.ca (D'cruz,Steven [Ontario]) Date: Fri Jul 23 11:47:06 2004 Subject: [Chameleon] Chameleon - WMS Browser Message-ID: <9B09D75DF5B3494BA06E6FE478CE9CC10101A3C5@mgtserver3.ontario.int.ec.gc.ca> Hi all, I'm posting this message due to a problem I've encountered with the WMS Browser application. I'm currently using Chameleon 1.0.5, and have encountered the following error; whenever a user attempts to add/remove any server datasource via the WMS Browser gui (under layer selection), the configuration changes last only as long as the user's session... essentially the changes are not permanent. I'd like to add a permanent datasource from which the users can both browse and select remote layers to display on our map. Is there any way to do this? The CubeWerx WMS mapserver has already been added, although not by me, and as of yet, I've been unable to establish how that was accomplished. Please note that version 1.0.5 does not contain the WMSBrowser folder in the widgets directory, as that was apparently implemented in later versions to which we would rather not upgrade to. Steven D'Cruz (GIS) Web Developer Environment Canada Steven.D'Cruz@ec.gc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20040723/5d5f28f0/attachment.htm From pagameba at magma.ca Fri Jul 23 11:57:05 2004 From: pagameba at magma.ca (Paul Spencer) Date: Fri Jul 23 11:57:17 2004 Subject: [Chameleon] Chameleon - WMS Browser In-Reply-To: <9B09D75DF5B3494BA06E6FE478CE9CC10101A3C5@mgtserver3.ontario.int.ec.gc.ca> References: <9B09D75DF5B3494BA06E6FE478CE9CC10101A3C5@mgtserver3.ontario.int.ec.gc.ca> Message-ID: <41013551.10802@magma.ca> Steven there is supposed to be a tab in the admin interface (third tab over) that allows you to manage the persistent list of wms servers. It is possible that it does not work correctly, but try this first. If this doesn't work, you can accomplish this in a different way (it's a little more manual labour) * find the location that php is storing sessions. Normally this is found in the php.ini file. * remove old sessions and then connect to the service instance, this will create a new directory called sess_******* where ******* is some random number * in the session directory, a bunch of files are created AND a directory called data or userdata I think. The wms cache is copied here so that any changes that are made are made to this copy instead of the persistent copy. * in the application, add your server, update stuff, remove them ... * copy the contents of the user data directory from the session into the cwc2 data directory, replacing existing files. Cheers, Paul D'cruz,Steven [Ontario] wrote: > Hi all, > > I'm posting this message due to a problem I've encountered with > the WMS Browser application. I'm currently using Chameleon 1.0.5, and > have encountered the following error; whenever a user attempts to > add/remove any server datasource via the WMS Browser gui (under layer > selection), the configuration changes last only as long as the user's > session? essentially the changes are not permanent. I'd like to add a > permanent datasource from which the users can both browse and select > remote layers to display on our map. Is there any way to do this? The > CubeWerx WMS mapserver has already been added, although not by me, and > as of yet, I've been unable to establish how that was accomplished. > Please note that version 1.0.5 does not contain the WMSBrowser folder in > the widgets directory, as that was apparently implemented in later > versions to which we would rather not upgrade to. > > */Steven D'Cruz/* > > */(GIS) Web Developer/* > > */Environment Canada/* > > */Steven.D'Cruz@ec.gc.ca/*// > > > ------------------------------------------------------------------------ > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From Steven.D'Cruz at ec.gc.ca Fri Jul 23 13:25:37 2004 From: Steven.D'Cruz at ec.gc.ca (D'cruz,Steven [Ontario]) Date: Fri Jul 23 13:25:44 2004 Subject: [Chameleon] Chameleon - WMS Browser Message-ID: <9B09D75DF5B3494BA06E6FE478CE9CC1010482A9@mgtserver3.ontario.int.ec.gc.ca> Hi Paul, I really appreciate the quick response. The admin interface appears to be functioning correctly, and in the third tab there exist the various add/update options for WMS sources. I'll try adding the new WMS server connection later, as the data to add is currently unavailable. Thanks a lot for the assistance. Steven D'Cruz (GIS) Web Developer Environment Canada Steven.D'Cruz@ec.gc.ca -----Original Message----- From: Paul Spencer [mailto:pagameba@magma.ca] Sent: Friday, July 23, 2004 11:57 AM To: D'cruz,Steven [Ontario] Cc: chameleon@lists.maptools.org Subject: Re: [Chameleon] Chameleon - WMS Browser Steven there is supposed to be a tab in the admin interface (third tab over) that allows you to manage the persistent list of wms servers. It is possible that it does not work correctly, but try this first. If this doesn't work, you can accomplish this in a different way (it's a little more manual labour) * find the location that php is storing sessions. Normally this is found in the php.ini file. * remove old sessions and then connect to the service instance, this will create a new directory called sess_******* where ******* is some random number * in the session directory, a bunch of files are created AND a directory called data or userdata I think. The wms cache is copied here so that any changes that are made are made to this copy instead of the persistent copy. * in the application, add your server, update stuff, remove them ... * copy the contents of the user data directory from the session into the cwc2 data directory, replacing existing files. Cheers, Paul D'cruz,Steven [Ontario] wrote: > Hi all, > > I'm posting this message due to a problem I've encountered > with > the WMS Browser application. I'm currently using Chameleon 1.0.5, and > have encountered the following error; whenever a user attempts to > add/remove any server datasource via the WMS Browser gui (under layer > selection), the configuration changes last only as long as the user's > session... essentially the changes are not permanent. I'd like to add a > permanent datasource from which the users can both browse and select > remote layers to display on our map. Is there any way to do this? The > CubeWerx WMS mapserver has already been added, although not by me, and > as of yet, I've been unable to establish how that was accomplished. > Please note that version 1.0.5 does not contain the WMSBrowser folder in > the widgets directory, as that was apparently implemented in later > versions to which we would rather not upgrade to. > > */Steven D'Cruz/* > > */(GIS) Web Developer/* > > */Environment Canada/* > > */Steven.D'Cruz@ec.gc.ca/*// > > > ---------------------------------------------------------------------- > -- > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From griffin at watersheds.ca Tue Jul 27 05:13:40 2004 From: griffin at watersheds.ca (aaron griffin) Date: Tue Jul 27 10:13:54 2004 Subject: [Chameleon] embedding widgets Message-ID: <1090919620.2532.1.camel@localhost> I'm working on creating a mapping page that includes the locate services as an embedded element to the page. Has anyone done this before or have any suggestions for trying to do this? Aaron Griffin From bartvde at xs4all.nl Tue Jul 27 10:31:56 2004 From: bartvde at xs4all.nl (Bart van den Eijnden) Date: Tue Jul 27 10:32:41 2004 Subject: [Chameleon] embedding widgets In-Reply-To: <1090919620.2532.1.camel@localhost> References: <1090919620.2532.1.camel@localhost> Message-ID: Hi Aaron, I have done this successfully for two widgets, but it needs a lot of tweaking. Sorry that I did not get back to you after the user conference. Did you try to follow up on my approach? What you need to do is also take the Locate widget into your template using the CWC2 tag, but commenting it out with HTML comments so that it doesn't show. This is needed to get the buttons working in the embedded iframe. Hope this helps. Best regards, Bart On Tue, 27 Jul 2004 10:13:40 +0100, aaron griffin wrote: > I'm working on creating a mapping page that includes the locate services > as an embedded element to the page. Has anyone done this before or have > any suggestions for trying to do this? > > Aaron Griffin > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- From eric at gomoos.org Tue Jul 27 10:31:48 2004 From: eric at gomoos.org (Eric Bridger) Date: Tue Jul 27 10:35:55 2004 Subject: [Chameleon] embedding widgets In-Reply-To: <1090919620.2532.1.camel@localhost> References: <1090919620.2532.1.camel@localhost> Message-ID: <1090938714.1435.12.camel@ubet.gomoos.org> On Tue, 2004-07-27 at 05:13, aaron griffin wrote: > I'm working on creating a mapping page that includes the locate services > as an embedded element to the page. Has anyone done this before or have > any suggestions for trying to do this? > > Aaron Griffin I am also very interested in this, not for the Locate widget, but for several other Popup based widgets: Query, LayerManager2. I was thinking of turning these into iframes vs. Popup window widgets since both have a SRC=URL type tag approach. The widgets would output iframe html with the src pointing to the poup url instead of opening a new window first. Anyone have any experience with this approach? Eric From pagameba at magma.ca Tue Jul 27 11:11:11 2004 From: pagameba at magma.ca (Paul Spencer) Date: Tue Jul 27 11:11:23 2004 Subject: [Chameleon] embedding widgets In-Reply-To: <1090938714.1435.12.camel@ubet.gomoos.org> References: <1090919620.2532.1.camel@localhost> <1090938714.1435.12.camel@ubet.gomoos.org> Message-ID: <4106708F.90805@magma.ca> Eric, this is something that I have scheduled to look at after the final 1.99 release (i.e. something in the 2.1 development). The approach that I am planning to take is to modify Popup.php to target an iframe in a
that is displayed over the current page rather than use window.open. If things go well, the Chameleon core can be modified quite easily (as long as all widgets are using Popup.php for these services). More work will likely be needed to make each dialog box play nicely in an iframe, particularly javascript references to parent.opener, embedded forms, js code loaded multiple times etc. Bart has some experience with this already, I think it can be time-consuming to track down all the errors for each dialog, but I would hope that once a couple were done, it would be a matter of repeating the fixes. Paul Eric Bridger wrote: > On Tue, 2004-07-27 at 05:13, aaron griffin wrote: > >>I'm working on creating a mapping page that includes the locate services >>as an embedded element to the page. Has anyone done this before or have >>any suggestions for trying to do this? >> >>Aaron Griffin > > > I am also very interested in this, not for the Locate widget, but for > several other Popup based widgets: Query, LayerManager2. I was thinking > of turning these into iframes vs. Popup window widgets since both have a > SRC=URL type tag approach. The widgets would output iframe html with the > src pointing to the poup url instead of opening a new window first. > > Anyone have any experience with this approach? > > Eric > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From griffin.watersheds.ca at mail2.storm.ca Tue Jul 27 11:18:11 2004 From: griffin.watersheds.ca at mail2.storm.ca (griffin.watersheds.ca@mail2.storm.ca) Date: Tue Jul 27 17:05:08 2004 Subject: [Chameleon] Embedding Widgets Message-ID: <5796.66.102.69.130.1090941491.squirrel@66.102.69.130> How do i add a call back function to my template? From bartvde at xs4all.nl Wed Jul 28 03:09:19 2004 From: bartvde at xs4all.nl (Bart van den Eijnden) Date: Wed Jul 28 03:10:08 2004 Subject: [Chameleon] Embedding Widgets In-Reply-To: <5796.66.102.69.130.1090941491.squirrel@66.102.69.130> References: <5796.66.102.69.130.1090941491.squirrel@66.102.69.130> Message-ID: Hi Aaron, you could do this by copy paste from the Locate widget php code (the javascript callback function is in there). Easier option is to use the widget also in a normal way in your template, and comment it with HTML comments. The javascript interface of the widget will come into the template, but you won't see the widget in there. If I have the time I will set up a demo to download for people in the next few days. Best regards, Bart On Tue, 27 Jul 2004 11:18:11 -0400 (EDT), wrote: > How do i add a call back function to my template? > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- From pagameba at magma.ca Wed Jul 28 07:57:07 2004 From: pagameba at magma.ca (Paul Spencer) Date: Wed Jul 28 10:05:29 2004 Subject: [Chameleon] Chameleon 1.99 Beta 2 Message-ID: <41079493.1010600@magma.ca> All, *********************************************************************** * * * NOTE: if you are an existing user of Chameleon 1.99 beta1 or some * * CVS version, it is very important to read the note on configuration * * changes in the New Features section. * * * *********************************************************************** Chameleon 1.99 Beta 2 is now available, it is based on the CVS version as of 9 July 2004. It can be downloaded from the following locations: Linux (tar.gz): --------------- http://www.maptools.org/dl/chameleon-1.99beta2.tar.gz Windows (zip): -------------- http://www.maptools.org/dl/chameleon-1.99beta2.zip Windows MS4W (zip): ------------------- http://www.maptools.org/dl/chameleon_ms4w-1.99beta2.zip New Features: ------------- * bug 343: added a new Service Instance mode for Chameleon, called cwc2. cwc2 is a subdirectory of the chameleon installation and is an application built upon chameleon that allows remote users to create applications without a local installation of chameleon. Documentation is still coming for this, this should be considered an ALPHA feature for this release. There is more information on the service instance at the end of this email (see CWC2 Service Instance Notes below) *********************************************** * * * CONFIGURATION FILE CHANGES - VERY IMPORTANT * * * *********************************************** With the addition of the service instance (called cwc2), I have finally fixed up the configuration files. The configuration file in beta1 was called cwc2.xml for historical reasons (since chameleon was originally called CWC2). It contained several parameters that were only really needed by the service instance but I left them in because I knew that this service instance was coming back at some point. So now that it is back, I have split the configuration file into two separate files, chameleon.xml and cwc2.xml. It is NOT sufficient to rename your cwc2.xml to chameleon.xml. The splitting process resulted in the removal of some completely unnecessary elements, the adding of new parameters, and changing the names of some elements. You MUST start from the xml-dist versions of these files. You will find that you can copy some settings from the existing cwc2.xml into the appropriate place in either chameleon.xml or the new cwc2.xml. For ms4w users, the package comes pre-configured so you don't have to worry about this at all. For non-ms4w users, you may want to check out the ms4w version's configuration files if you are having difficulty. *** back to the release notes *** * added sample xml and xsd documents for upcoming widget documentation system. * bug 478: updated the cwc2.xml file for ms4w installations * bug 101: added a link to the service instance in the ms4w package * added the picker common utilities to the chameleon build process * added ms4w directory to cvs to house the ms4w configuration files, updated the Makefile to allow creation of the ms4w distribution files directly. Changes: -------- * KeyMapDHTML2 renamed to KeyMapDHTML * updated CWC2_INSTALLATION.txt for version 1.99, still needs works and should be renamed * bug 367: added optional compression formats as widget attributes to the ExtractWFSData widget, and added ZIP to the available formats. Bug Fixes: ---------- * bug 440: removed session variables relating to the GD module and FreeType version as part of cleaning up the configuration files. * removed extraneous error messages * added colorpicker to the build process for SECTPopup * bug 443: fixed a problem with figuring out the application web path under some circumstances * bug 444: fixed a problem in popup dialogs if the requested popupstyleresource was not also referenced as a styleresource somewhere in the template * bug 445: fixed a problem in popup dialogs if no styleresource or popupstyle resource is used, buttons are now represented as HTML buttons in this case. * bug 446: fixed naming issue in many of the sample templates (ReferenceLayer was incorrectly named InfoLayer) * fixed include path problem in KeepSessionAlive widget * bug 398: fixed problem with KeyMapDHTML widget when the aspect ratio of the keymap was not the same as the main map * bug 453: modifications to enable JSAPI mode again * fixed bug 392 * bug 422: added widgetclass attribute to Scale widget * bug 320: fixed a problem with getWFSConnection if the connection is invalid * Added GetAvailableWidgets function to list all available widgets * bug 480: capture missing default context or template errors and present as a service exception * bug 501: fix a problem with Button.php, button names were being used as the name/id of html elements but the button names were randomly generated and could start with a number, which is invalid for use as a name in HTML. * bug 93: widgets can now exist on different forms by setting the formindex attribute. This also fixed a problem with widgets not respecting the visible and enabled attributes. * bug 486: fixed syntax error in HelpWidget * bug 104: fixed a bug related to widgets that should never be part of toolsets, but were able to be. * bug 190: fixed a bug in the ROIRenderer when drawing ROIs and the session is expired, the ROI image became broken. Now it displays "session expired". * fixed a problem in the LegendTemplate widget where deleted layers would be 'undeleted' if they were previously visible before deleting them. CWC2 Service Instance Notes --------------------------- In lieu of real documentation, I'm providing some working notes at this time. This will eventually show up in one of the chameleon documents :) **** CWC2 Users Guide **** Installing the CWC2 Service Instance ==================================== The CWC2 Service Instance is installed with the Chameleon package by default. To access the Service Instance, you will need to adjust your system configuration and edit the Service Instance configuration file to reflect your system's configuration. Note that the Service Instance requires a properly installed and configured Chameleon package, please follow the Chameleon installation instructions and ensure that Chameleon is fully functional before attempting to configure the Service Instance. System Configuration ==================== You will need to configure your Web Server to grant access to at least one directory in the service instance. Two other directories are optional. The following table is a suggested configuration: URL Required? Path --------------------------- --------- ------------------------------- http:///cwc2 YES /chameleon/cwc2/htdocs/ http:///templates NO /chameleon/cwc2/templates/ http:///contexts NO /chameleon/cwc2/contexts/ Service Instance Configuration ============================== You will need to make a copy of the cwc2.xml-dist file found in the /chameleon/config folder and name it cwc2.xml. You will need to edit at least some of the settings found in this file. Each configuration item is described in the xml document, but as a minimum you should review the following items: Config Item Set to ... --------------------- ----------------------------------------------- service_instance_path URL to service instance htdocs folder (from above) server_data_path /chameleon/cwc2/data default_context /chameleon/cwc2/contexts/world_context.xml default_template /chameleon/cwc2/templates/sample_cwc2.html context_root /chameleon/cwc2/contexts/ template_root /chameleon/cwc2/templates fontlist_file /chameleon/cwc2/etc/fonts.txt symbol_file /chameleon/cwc2/etc/symbols.sym Testing the Service Instance ============================ Assuming that the above configuration is implemented correctly, the Service Instance should now be fully functional. You can test your Service Instance by connecting to the following URL: http:///cwc2/cwc2.php You should receive the following message: request URI was http:///cwc2/cwc2.php query string was Missing mandatory SERVICE parameter This error message means that the Web Server is correctly providing access to the Service Instance. Normally, the Service Instance is configured to provide a default application and context. If you followed the instructions above, you can access the default application and context by connecting to the following URL: http:///cwc2/cwc2.php?service=VCG&request=GetApplication&version=0.1.0 Please read the CWC2 Service Instance Users Guide to find out more about communicating with and using the features of the Service Instance Getting Help ============ The CWC2 Service Instance is part of the Chameleon package available from http://www.maptools.org. Please visit the Chameleon web site at http://www.maptools.org/chameleon to access information about using Bugzilla and the Chameleon users mailing list. **** CWC2 USERS GUIDE **** CWC2 Service Instance Users Guide ================================= Getting Started =============== Please refer to the CWC2 Service Instance Installation Guide for instructions on getting your Service Instance installed and tested. This document assumes that you have a fully functional and correctly configured Service Instance. Terms and Definitions ===================== CWC2 - TBD Service Instance - TBD Chameleon - TBD CWC2 Service Instance Server - TBD Application - TBD ... Basic Concepts ============== The CWC2 Service Instance is an application built on top of the Chameleon engine that allows application developers to create web mapping applications by creating an Application Template and a Web Map Context document. It will only work with WMS layers. The CWC2 Service Instance is a web service that can be invoked by clients using only a web browser. Service Exceptions ================== A Service Exception is the term used to describe the result of an error that happens in the CWC2 Service Instance. The CWC2 Service Instance is designed to capture internal errors and report them in a standard, machine-parsable way using structured XML documents. Whenever an error is trapped internally, CWC2 will generate and return a Service Exception instead of the application. The intention is to provide sufficient information to the user to allow for troubleshooting of the problem that caused the Service Exception to be triggered. Service Exceptions can happen at any time and for a wide variety of reasons. Common Request Parameters ========================= This section describes parameters that are common to every invocation of the Service Instance. REQUEST ------- The REQUEST parameter indicates which operation is being invoked and its value is one of the names of the operations supported by the service instance. The REQUEST parameter is mandatory in every invocation of the service instance. VERSION ------- The VERSION parameter indicates the protocol version number and is mandatory in every invocation of the service instance. SERVICE ------- The SERVICE parameter indicates the service that is being requested. Some web services can be configured to provide multiple services through the same base URL. In the case of CWC2, this is not yet possible, however, this parameter is provided for compatibility with existing services and for possible future requirements. The SERVICE parameter is mandatory in every invocation of the service instance. Supported REQUESTs ================== The CWC2 Service Instance supports two REQUESTs, described below. GetCapabilities =============== The purpose of the GetCapabilities operation is to describe the operating parameters of a particular Service Instance to enable clients to use the service in an effective manner. GetCapabilites Request Parameters --------------------------------- The GetCapabilities operation has three mandatory paramters, SERVICE, REQUEST and VERSION, described in the following table: Parameter Required/ Description Optional SERVICE=VCG R Service name, must be VCG. REQUEST=GetCapabilities R request name, must be GetCapabilities VERSION= R supported protocol version number GetCapabilities Reponse ----------------------- The response to the GetCapabilities request is an XML document. This feature is not yet implemented. GetApplication ============== The purpose of the GetApplication operation is to generate a client application based on the parameters provided when invoking the service. GetCapabilites Request Parameters --------------------------------- The GetApplication operation has three mandatory paramters and six optional parameters described in the following table: Parameter Required/ Description Optional SERVICE=VCG R Service name, must be VCG. REQUEST=GetApplication R request name, must be GetApplication VERSION= R supported protocol version number LANGUAGES= O a list of languages TEMPLATES= O a list of application template paths or URLs CONTEXTS= O a list of context paths or URLs LANGUAGE= O the language to display BBOX= O a comma separated list of coordinates that describe the initial spatial extents to be displayed to the user SRS= O a spatial reference system, must be a valid EPSG code, to be used for the initial map view. LANGUAGES --------- A list of language specifiers separated by commas. Languages are specified in the form of a two-character language code followed by a dash and a two character country code. Service instances will list supported languages in the capabilities document. Unsupported languages may be requested, but the service instance will use the default language for unsupported languages. This parameter is optional unless TEMPLATES is set, in which case it is mandatory. TEMPLATES --------- A list of application template paths or URLs separated by commas. A template is identified by either a relative path on the server (relative to the template root directory specified in the service instance configuration) or a URL to a web-accessible template. The templates are listed in the same order as the LANGUAGES, with one template required for each supported language (even if the same template supports every language). URLs must be in the standard http:///path/template.html format and must be URL-encoded. This parameter is optional unless LANGUAGES is set, in which case it is mandatory. The service instance defines a default template in its configuration file. CONTEXTS -------- A list of web map context paths or URLs separated by commas. A context is identified by either a relative path on the server (relative to a directory specified in the service instance configuration) or a URL to a web-accessible context. The contexts are loaded in the order in which they appear in this value, and the projection and spatial extents are taken from the last context loaded (see Common Problems below). The order of the contexts determines the order in which the layers of each context are drawn. Layers from the first context in the list are drawn first, layers from later contexts are drawn 'on top' of earlier ones. URLs must be in the standard http:///path/template.html format and must be URL-encoded. This parameter is optional. The service instance defines a default value in its configuration file. LANGUAGE -------- The lanuage to use to display the application. This will cause one of the templates to be selected from the available TEMPLATES. This parameter is optional. The service instance defines a default value in its configuration file. BBOX ---- The BBOX provides a mechanism to define a different set of initial spatial extents that the default. By default, the Service Instance will use the extents defined in the last context opened. This may not be appropriate in all cases, especially when providing multiple contexts. The format for this parameter is to provide a comma-separated list of values in the following order: BBOX=,,, The values are specified in georeferenced coordinates and depend on the spatial reference system of the initial view. SRS --- The SRS provides a mechanism to define a different spatial reference system that the default. By default, the Service Instance will use the SRS defined in the last context opened. This may not be appropriate in all cases, especially when providing multiple contexts. This parameter must use EPSG codes in the following format: SRS=EPSG:XXXXX Common Problems =============== Paths to TEMPLATES and CONTEXTS ------------------------------- When specifying a template or a context, you must do so in relation to the Service Instance server. This means that if the context or template that you wish to access is on the Service Instance server, then it must reside in the Service Instances defined template directory or context directory (or a subdirectory of these). If the context or template is not on the Service Instance server, then you must refer to it using a valid URL. It is very important to note that the URL will be opened from the Service Instance server, so a URL that refers to localhost: http://localhost/mytemplates/app1.html will most likely NOT work. This is because the Service Instance, when it tries to open this URL, will be pointing to itself, most likely not the situation you intended. Multiple CONTEXTS appear wrong ------------------------------ When specifying multiple CONTEXTS, the Service Instance will load them sequentially and use the BBOX and SRS defined in the last context it loads. It is quite possible that the BBOX and SRS in the last context you want to load are not valid for all the contexts that you are trying to load. For instance, if you try to load the world_context.xml and the gmap_context.xml (in that order) that come with the service instance, the world data will be displayed in LCC projection and will not appear to 'line up' with the gmap data. The problem is that the projection is invalid for extents beyond Canada. To fix this problem, you can manually provide a BBOX and SRS as part of the request. In this case, changing the SRS to EPSG:4326 displays everything correctly. Limitations =========== The CWC2 Service Instance will only work with data that is accessible via WMS The CWC2 Service Instance does not allow applications to define and access custom widgets unless they are installed in the Chameleon instance that the CWC2 Service Instance is configured to use. *** end CWC2 USERS GUIDE *** Some example invocations: The base URL to the service instance is (note this is an invalid request): http://localhost/chameleon/cwc2/cwc2.php The URL to get the Service Instance capabilities is (note this doesn't do anything yet): http://localhost/chameleon/cwc2/cwc2.php?service=VCG&request=GetCapabilities&version=0.1.0 The URL to get the default template, context and language is (note this is the most basic valid request): http://localhost/chameleon/cwc2/cwc2.php?service=VCG&request=GetApplication&version=0.1.0 The URL to get a single local template for a given language is: http://localhost/chameleon/cwc2/cwc2.php?request=GetApplication&version=0.1.0&LANGUAGES=en-CA&TEMPLATES=sample_cwc2.html The URL to get a single remote template for a given language is: http://localhost/chameleon/cwc2/cwc2.php?request=GetApplication&version=0.1.0&LANGUAGES=en-CA&TEMPLATES=http://localhost/chameleon/cwc2/templates/sample_cwc2.html The URL to get a bilingual application using local templates is: http://localhost/chameleon/cwc2/cwc2.php?request=GetApplication&version=0.1.0&LANGUAGES=en-CA,fr-CA&TEMPLATES=sample_cwc2_en.html,sample_cwc2_fr.html The URL to get a bilingual application using remote templates is: http://localhost/chameleon/cwc2/cwc2.php?request=GetApplication&version=0.1.0&LANGUAGES=en-CA,fr-CA&TEMPLATES=http://localhost/chameleon/cwc2/templates/sample_cwc2_en.html,http://localhost/chameleon/cwc2/templates/sample_cwc2_fr.html The URL to get a single local context using default template and language is: http://localhost/chameleon/cwc2/cwc2.php?service=VCG&request=GetApplication&version=0.1.0&CONTEXTS=gmap_context.xml The URL to get a single remote context using default template and language is: http://localhost/chameleon/cwc2/cwc2.php?service=VCG&request=GetApplication&version=0.1.0&CONTEXTS=http://localhost/chameleon/cwc2/contexts/gmap_context.xml The URL to get multiple local contexts using default template and language is: http://localhost/chameleon/cwc2/cwc2.php?service=VCG&request=GetApplication&version=0.1.0&CONTEXTS=world_context.xml,gmap_context.xml The URL to get multiple remote context using default template and language is: http://localhost/chameleon/cwc2/cwc2.php?service=VCG&request=GetApplication&version=0.1.0&CONTEXTS=http://localhost/chameleon/cwc2/contexts/world_context.xml,http://localhost/chameleon/cwc2/contexts/gmap_context.xml The URL to get a fully remote, bilingual application using multiple contexts is: http://localhost/chameleon/cwc2/cwc2.php?service=VCG&request=GetApplication&version=0.1.0&LANGUAGES=en-CA,fr-CA&TEMPLATES=http://localhost/chameleon/cwc2/templates/sample_cwc2_en.html,http://localhost/chameleon/cwc2/templates/sample_cwc2_fr.html&CONTEXTS=http://localhost/chameleon/cwc2/contexts/world_context.xml,http://localhost/chameleon/cwc2/contexts/gmap_context.xml The URL to get a fully remote, bilingual application using multiple contexts, and defining an SRS and BBOX: http://localhost/chameleon/cwc2/cwc2.php?service=VCG&request=GetApplication&version=0.1.0&LANGUAGES=en-CA,fr-CA&TEMPLATES=http://localhost/chameleon/cwc2/templates/sample_cwc2_en.html,http://localhost/chameleon/cwc2/templates/sample_cwc2_fr.html&CONTEXTS=http://localhost/chameleon/cwc2/contexts/world_context.xml,http://localhost/chameleon/cwc2/contexts/gmap_context.xml&srs=epsg:4326&BBOX=-180,-90,180,90 Cheers Paul -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From pagameba at magma.ca Wed Jul 28 11:10:57 2004 From: pagameba at magma.ca (Paul Spencer) Date: Wed Jul 28 11:11:08 2004 Subject: [Chameleon] Chameleon 1.99beta 2 update Message-ID: <4107C201.1000702@magma.ca> Thanks to Huub Fleuren for pointing out that I mistyped the paths Linux (tar.gz): --------------- http://www.maptools.org/dl/chameleon/chameleon-1.99beta2.tar.gz Windows (zip): -------------- http://www.maptools.org/dl/chameleon/chameleon-1.99beta2.zip Windows MS4W (zip): ------------------- http://www.maptools.org/dl/ms4w/chameleon_ms4w-1.99beta2.zip -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From Steven.D'Cruz at ec.gc.ca Wed Jul 28 11:28:16 2004 From: Steven.D'Cruz at ec.gc.ca (D'cruz,Steven [Ontario]) Date: Wed Jul 28 11:28:22 2004 Subject: [Chameleon] Widget help Message-ID: <9B09D75DF5B3494BA06E6FE478CE9CC10101A3C6@mgtserver3.ontario.int.ec.gc.ca> Hi there, I'm currently using chameleon 1.0.5, and am attempting to modify the default template file (test.html) such that it has build in wfs extraction functionality (as opposed to creating a widget for the same purpose). The code I'm attempting to add is this: Because the layers are dynamically generated, the layername must be specified directly in the template file (even if I were to implement the rest in a widget). The goal is for the option value (i) to be used as a method of referencing the particular layer. The problem I'm encountering is the inability to access the goCWCJSAPI variable and it's contents. I've tried numerous ways (document.goCWCJSAPI, window.goCWCJSAPI)... does anyone know the proper method of accessing the goCWCJSAPI variable from within the template file? Also of note is that in the final output (Chameleon Demo), the source for the demo looks similar to the following: TemplateFileDump Essentially, my script is within a different