From mrc78a at yahoo.it Sat Apr 1 05:02:29 2006 From: mrc78a at yahoo.it (marco) Date: Sat Apr 1 05:02:39 2006 Subject: [Chameleon] Problems using PrintProduction In-Reply-To: <442D4F31.6020703@mapgears.com> References: <442C66CE.7070808@yahoo.it> <442D4F31.6020703@mapgears.com> Message-ID: <442E4FB5.9020106@yahoo.it> Julien-Samuel Lacroix ha scritto: > Hi, > If you remove the legend from your "printer friendly map", does the > png and gif output works? > > Julien > > marco wrote: >> Hi I partially solved the problems described in previous post >> "problems printing map" >> reading >> >> http://lists.maptools.org/pipermail/chameleon/2005-February/001949.html >> >> >> now when i try to have a 'printer friendly map' with jpeg as output >> type and legend checkbox checked i receive this message >> >> http://127.0.0.1/htdocs//widgets/PrintProduction/preview.php?sid=442c62907286f&selImageFormat=JPEG >> >> >> else with Gif and png output type i receive >> >> The image >> http://path/to/preview.php?sid=421e5811951d3&selImageFormat=PNG? >> cannot be displayed, because it contains errors. >> >> Reading at >> http://lists.maptools.org/pipermail/chameleon/2004-August/001130.html >> i find that this problem can be related with legend template but i >> use the legendtemplate.html >> in .../chameleon/samples/htdocs and it seems be ok >> >> any ideas? >> >> My simple mapfile an legend template are >> >> MAP >> >> # >> NAME DEMO >> IMAGETYPE PNG24 >> STATUS ON >> SIZE 500 500 >> SYMBOLSET /home/marco/html/myapp/etc/symbols.sym >> EXTENT -421247.45582216 3929005.638024 924100.58855384 5313228.97788 >> # italia >> UNITS METERS >> SHAPEPATH "../data" >> IMAGECOLOR 255 255 255 >> FONTSET /home/marco/html/chamemap/etc/fonts.txt >> TRANSPARENT FALSE >> >> >> WEB >> #MINSCALE 2000000 >> #MAXSCALE 50000000 >> >> IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "http://localhost/ms_tmp/" >> METADATA >> END >> END >> >> >> REFERENCE >> IMAGE /home/marco/html/myapp/htdocs/images/ref.png >> EXTENT 396215.137823 4426805.807772 568590.639651 4595445.057167 >> STATUS ON >> COLOR -1 -1 -1 >> OUTLINECOLOR 255 0 0 >> SIZE 150 150 END >> >> >> LEGEND >> KEYSIZE 18 12 >> LABEL >> TYPE BITMAP >> SIZE MEDIUM >> COLOR 0 0 89 >> END >> STATUS ON >> END >> >> >> SCALEBAR >> IMAGECOLOR 255 255 255 >> LABEL >> COLOR 0 0 0 SIZE SMALL >> END >> SIZE 150 5 >> COLOR 255 255 255 >> BACKGROUNDCOLOR 0 0 0 >> OUTLINECOLOR 0 0 0 >> UNITS kilometers >> INTERVALS 5 >> STATUS ON >> END >> >> >> QUERYMAP >> SIZE 500 500 >> STATUS ON >> STYLE HILITE >> COLOR 255 0 0 >> END >> >> PROJECTION >> "init=epsg:3065" >> END >> >> >> #-------------ITALIA--------------------------------- >> LAYER NAME Italia_dem >> METADATA >> DESCRIPTION "Elevation/Bathymetry" >> >> END >> DATA "/home/marco/html/myapp/data/it 24bitrgb.tif" >> STATUS DEFAULT >> TYPE RASTER >> OFFSITE 70 74 66 #167 151 152 >> PROJECTION >> "init=epsg:3065" >> END >> END >> END >> >> >> >> >> [leg_layer_html order=ascending opt_flag=15] >> >> > onclick="CWCSelectLayer('[leg_layer_name]', true)"[if name=selected >> value=1] CHECKED[/if] > >> > name="legendlayername[]" value="[leg_layer_name]" >> [if name=layer_status oper=eq value=1]CHECKED[/if] >> [if name=layer_status oper=eq value=2]CHECKED[/if]> >> > height="20" >> [if name=wms_name oper=isnull] >> > onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');">> class="label">[leg_layer_name] >> >> [/if] >> [if name=wms_name oper=isset] >> > onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');">> class="label">[metadata name=WMS_TITLE] >> >> [/if] >> [/leg_layer_html] >> >> >> ___________________________________ Yahoo! Messenger with >> Voice: chiama da PC a telefono a tariffe esclusive >> http://it.messenger.yahoo.com >> _______________________________________________ >> Chameleon mailing list >> Chameleon@lists.maptools.org >> http://lists.maptools.org/mailman/listinfo/chameleon > Yes if i remove legend from my "printer friendly map" i can view my map ...... best regards marco ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it From jlacroix at mapgears.com Sun Apr 2 15:06:09 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Sun Apr 2 15:06:14 2006 Subject: [Chameleon] Dropdown/List box in QuickZoom widget In-Reply-To: <000001c6550a$f5072d40$0201000a@gradpula.local> References: <000001c6550a$f5072d40$0201000a@gradpula.local> Message-ID: <443020A1.1020603@mapgears.com> Hi, Is this character HTML encodable? Otherwise, try something like this to see if php can parse or not this tag: '; $parser = xml_parser_create(); xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1); xml_parse_into_struct($parser, $szXMLDoc, $aVals, $index); xml_parser_free($parser); print_r($szXMLDoc); ?> Julien Dejan Gambin wrote: > Hi Julien, > > I have submitted a bug and attached the new QuickZoom.widget.php file. > > Regarding my encoding problem, xml_parser_create unfortunately doesn't > support my encoding, that is ISO-8859-2. So what can I do? > > regards, dejan > > >>-----Original Message----- >>From: Julien-Samuel Lacroix [mailto:jlacroix@mapgears.com] >>Sent: Friday, March 31, 2006 5:37 PM >>To: Gambin Dejan >>Cc: chameleon@lists.maptools.org >>Subject: Re: [Chameleon] Dropdown/List box in QuickZoom widget >> >> >>Hi, >>Please open a bug in Chameleon bugzilla and I'll integrate >>your change. http://chameleon.maptools.org/index.phtml?page=bugs.html >> >>For the special characters, the functions used to parse the >>content of >>the widget are in PHP. It's xml_parser_create(). By going in >>chameleon/htdocs/common/xml_utils/XMLObject.php (around line >>96) You could define the encoding to use in this function. >>See: http://ca3.php.net/manual/en/function.xml-parser-create.php >> >>Julien >> >>Gambin Dejan wrote: >> >>>I have done the modifications in 2.4 version of QuickZoom >> >>widget. Now >> >>>I can send it somewhere... >>> >>>Just one question: why can't I use my special language >> >>characters when >> >>>defining VIEW names in ">>character the widget doesn't display this select element and any >>>element that follows in the list neither? >>> >>>regards, dejan >>> >>> >>> >>>>-----Original Message----- >>>>From: Paul Spencer [mailto:pspencer@dmsolutions.ca] >>>>Sent: Friday, March 31, 2006 2:32 PM >>>>To: Gambin Dejan >>>>Cc: chameleon@lists.maptools.org >>>>Subject: Re: [Chameleon] Dropdown/List box in QucikZoom widget >>>> >>>> >>>>dejan, >>>> >>>>unfortunately I think you will have to modify the widget to add an >>>>extra paramter. I would suggest calling it SIZE with a >>>>default of one. >>>> >>>>Please send back to the list when you have it working and someone >>>>will stick it in cvs. >>>> >>>>Cheers >>>> >>>>Paul >>>> >>>>On 31-Mar-06, at 4:11 AM, Gambin Dejan wrote: >>>> >>>> >>>> >>>>>Hi, >>>>> >>>>>I would like to control the display of QuickZoom box so I >> >>can define >> >>>>>if it is displayed as dropdown (combo) box or listbox. I know that >>>>>SIZE parameter in SELECT html tag defines this (1 = combo, >1 = >>>> >>>>listbox). I >>>> >>>> >>>>>have tried using css but it ignores the SIZE parameter and >> >>displays >> >>>>>combo box always. If I set manually something like " >>>>>SIZE="10"....> it works OK. > >>>>> > >>>>>My question is: am I doing something wrong? Is the > solution to put > >>>>>another widget parameter and modify the widget? If yes > then I can > >>>>>do it and publish it if somebody is interesting in. > >>>>> > >>>>>regards, dejan > >>>>> > >>>>>_______________________________________________ > >>>>>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/| > >>>>+--------------------------------------------------------- > --------+ > >>>> > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>>_______________________________________________ > >>>Chameleon mailing list > >>>Chameleon@lists.maptools.org > >>>http://lists.maptools.org/mailman/listinfo/chameleon > >> > >>-- > >>Julien-Samuel Lacroix > >>Mapgears > >>http://www.mapgears.com/ > >> > > > > > > -- > Julien-Samuel Lacroix > Mapgears > http://www.mapgears.com/ > From jacob.delfos at maunsell.com Sun Apr 2 20:15:14 2006 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Sun Apr 2 20:18:29 2006 Subject: [Chameleon] Zoom to feature(s) Message-ID: <4997F456680DAD4DA1E042C40C46361142700E@auper1ex002.au.aecomnet.com> Hilbert, I'll send you the files off-list if you can't access it. Would have replied sooner, but I was on leave. Let me know if you run into problems with it. Regards, Jacob > -----Original Message----- > From: chameleon-bounces@lists.maptools.org > [mailto:chameleon-bounces@lists.maptools.org] On Behalf Of > Davelaar, Hilbert > Sent: 28 March 2006 21:40 > To: Yahya Mohammad > Cc: chameleon@lists.maptools.org > Subject: RE: [Chameleon] Zoom to feature(s) > > Hello, > > I'm not experienced in Chameleon CVS and not able to access > it from here. Can someone help me how to get this widget > working? Or send me some files I need or anything else. > LocateByAttribute sounds like thats what I need. > > Regards, > Hilbert Davelaar > > -----Oorspronkelijk bericht----- > Van: Yahya Mohammad [mailto:mfyahya@gmail.com] > Verzonden: do 23-3-2006 8:27 > Aan: Davelaar, Hilbert > CC: chameleon@lists.maptools.org > Onderwerp: Re: [Chameleon] Zoom to feature(s) > > > > I think the LocateByAttribute widget in chameleon cvs > will do what you want. > > On Wed 22 March 2006 17:21, you wrote: > > Hi List, > > > > I have a Chameleon application which shows a > MapServer-mapfile based on > > rasters and a shapefile. Is it possible to make the > application zoom to one > > or more features based on a parameter input from another page? > > > > For example, I have a column with unique values. The > user is able to enter > > a values or values in a search page and then submit > the values. These > > values are then used to zoom to the feature(s) from > the shapefile. Is this > > possible? Also if it's limited to just one feature > I'm very interested. > > > > Regards, > > Hilbert Davelaar > > > > _______________________________________________ > > 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 pssdal at gmail.com Mon Apr 3 02:04:02 2006 From: pssdal at gmail.com (Pssdal Bakosurtanal) Date: Mon Apr 3 02:04:07 2006 Subject: [Chameleon] How to use ExpressionBuilder? Message-ID: <2333a9f00604022304j7bb25dd7le122bf6eb07e842e@mail.gmail.com> Dear expert, When I tried to access http://myserver/chameleon/samples/sample_roi.phtml on the chameleon sample. (using chameleon 2.2) Everythings is ok until I tried to click on "Build Filter" on the tab tools, the popup error appeared with the message "There is no active layer selected. You must a layer inorder to use this tool". How to to activated the layer? Does anyone success access this sample above? If i would like to use expression builder, should I am working with WMS or WFS? Thank you for your help. Best Regards, PSSDAL -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060403/c08b81d5/attachment.html From jlacroix at mapgears.com Mon Apr 3 10:40:55 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Mon Apr 3 10:41:01 2006 Subject: [Chameleon] Chameleon with iis In-Reply-To: <000f01c654fa$01924c40$9c01a8c0@centreo3w0r1p4> References: <000f01c654fa$01924c40$9c01a8c0@centreo3w0r1p4> Message-ID: <443133F7.1090906@mapgears.com> Hi, You will have to first manually install mapserver on your IIS machine. Then manually install Chameleon. See: http://mapserver.gis.umn.edu/docs/howto/phpmapscript-install/#example-steps-of-a-full-windows-installation http://chameleon.maptools.org/help/viewer.phtml Tu devras installer manuellement MapServer et Chameleon. Voir les deux liens ci-dessus. Julien Hugo Girard wrote: > Someone can explain me how to setup my Chameleon for IIS. I have > alreadey setup my mapserver for IIS and it work very well. But its not > the same things with Chameleon !!! Please help me !!! > > > ------------------------------------------------------------------------ > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From jlacroix at mapgears.com Mon Apr 3 10:50:37 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Mon Apr 3 10:50:43 2006 Subject: [Chameleon] Dropdown/List box in QuickZoom widget In-Reply-To: <000001c6569c$50181400$0201000a@gradpula.local> References: <000001c6569c$50181400$0201000a@gradpula.local> Message-ID: <4431363D.8080604@mapgears.com> Hi, If you replace the invalid character by its html encoded value: &232; I think it will be replaced by the right character when the template parser will read it. Does it work? Julien Dejan Gambin wrote: > Hi, > > Sorry if I don't answer correctly your question... this character is > normally displayed in my html pages...for example one of the characters > causing problem is "ccaron" character that has decimal code 232 and its html > usage is è. I can see in xmlobject.php that > "xml_parse_into_struct($parser, $szXMLDoc, $aVals, $index);" is causing > error because $szXMLDoc has everything OK and $aVals doesn't contain the > "record" that has the failing character and anything after it. > > Do I have to use some functions to convert to ISO-8859-1 or UTF-8 before > calling xml_parse_into_struct or something? I tried your piece of code with > some tags containing my special characters. The output is OK because it > writes $szXMLDoc, but if I output $aVals it doesn't work untill I remove my > special character... > > regards, dejan > > >>-----Original Message----- >>From: Julien-Samuel Lacroix [mailto:jlacroix@mapgears.com] >>Sent: Sunday, April 02, 2006 9:06 PM >>To: Dejan Gambin; Chameleon Users >>Subject: Re: [Chameleon] Dropdown/List box in QuickZoom widget >> >> >>Hi, >> >>Is this character HTML encodable? >> >>Otherwise, try something like this to see if php can parse or >>not this tag: '; >> $parser = xml_parser_create(); >> xml_parser_set_option($parser, >>XML_OPTION_CASE_FOLDING, 0); >> xml_parser_set_option($parser, >>XML_OPTION_SKIP_WHITE, 1); >> xml_parse_into_struct($parser, $szXMLDoc, >>$aVals, $index); >> xml_parser_free($parser); >> >>print_r($szXMLDoc); >>?> >> >>Julien >> >>Dejan Gambin wrote: >> >>>Hi Julien, >>> >>>I have submitted a bug and attached the new >> >>QuickZoom.widget.php file. >> >>>Regarding my encoding problem, xml_parser_create >> >>unfortunately doesn't >> >>>support my encoding, that is ISO-8859-2. So what can I do? >>> >>>regards, dejan >>> >>> >>> >>>>-----Original Message----- >>>>From: Julien-Samuel Lacroix [mailto:jlacroix@mapgears.com] >>>>Sent: Friday, March 31, 2006 5:37 PM >>>>To: Gambin Dejan >>>>Cc: chameleon@lists.maptools.org >>>>Subject: Re: [Chameleon] Dropdown/List box in QuickZoom widget >>>> >>>> >>>>Hi, >>>>Please open a bug in Chameleon bugzilla and I'll integrate >>>>your change. >> >>http://chameleon.maptools.org/index.phtml?page=bugs.html >> >>>>For the special characters, the functions used to parse the >>>>content of >>>>the widget are in PHP. It's xml_parser_create(). By going in >>>>chameleon/htdocs/common/xml_utils/XMLObject.php (around line >>>>96) You could define the encoding to use in this function. >>>>See: http://ca3.php.net/manual/en/function.xml-parser-create.php >>>> >>>>Julien >>>> >>>>Gambin Dejan wrote: >>>> >>>> >>>>>I have done the modifications in 2.4 version of QuickZoom >>>> >>>>widget. Now >>>> >>>> >>>>>I can send it somewhere... >>>>> >>>>>Just one question: why can't I use my special language >>>> >>>>characters when >>>> >>>> >>>>>defining VIEW names in ">>>>character the widget doesn't display this select element and any >>>>>element that follows in the list neither? >>>>> >>>>>regards, dejan >>>>> >>>>> >>>>> >>>>> >>>>>>-----Original Message----- >>>>>>From: Paul Spencer [mailto:pspencer@dmsolutions.ca] >>>>>>Sent: Friday, March 31, 2006 2:32 PM >>>>>>To: Gambin Dejan >>>>>>Cc: chameleon@lists.maptools.org >>>>>>Subject: Re: [Chameleon] Dropdown/List box in QucikZoom widget >>>>>> >>>>>> >>>>>>dejan, >>>>>> >>>>>>unfortunately I think you will have to modify the widget >> >>to add an >> >>>>>>extra paramter. I would suggest calling it SIZE with a >> >>default of >> >>>>>>one. >>>>>> >>>>>>Please send back to the list when you have it working and someone >>>>>>will stick it in cvs. >>>>>> >>>>>>Cheers >>>>>> >>>>>>Paul >>>>>> >>>>>>On 31-Mar-06, at 4:11 AM, Gambin Dejan wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>Hi, >>>>>>> >>>>>>>I would like to control the display of QuickZoom box so I >>>> >>>>can define >>>> >>>> >>>>>>>if it is displayed as dropdown (combo) box or listbox. I >> >>know that >> >>>>>>>SIZE parameter in SELECT html tag defines this (1 = combo, >1 = >>>>>> >>>>>>listbox). I >>>>>> >>>>>> >>>>>> >>>>>>>have tried using css but it ignores the SIZE parameter and >>>> >>>>displays >>>> >>>> >>>>>>>combo box always. If I set manually something like " >>>>>>>SIZE="10"....> it works OK. > >>>>>>> > >>>>>>>My question is: am I doing something wrong? Is the > >> > >>solution to put > >> > >>>>>>>another widget parameter and modify the widget? If yes > >> > >>then I can > >> > >>>>>>>do it and publish it if somebody is interesting in. > >>>>>>> > >>>>>>>regards, dejan > >>>>>>> > >>>>>>>_______________________________________________ > >>>>>>>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/| > >> > >>>>>>+--------------------------------------------------------- > >> > >>--------+ > >> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>>_______________________________________________ > >>>>>Chameleon mailing list > >>>>>Chameleon@lists.maptools.org > >>>>>http://lists.maptools.org/mailman/listinfo/chameleon > >>>> > >>>>-- > >>>>Julien-Samuel Lacroix > >>>>Mapgears > >>>>http://www.mapgears.com/ > >>>> > >>> > >>> > >>-- > >>Julien-Samuel Lacroix > >>Mapgears > >>http://www.mapgears.com/ > >> > > > > > > > > _______________________________________________ > > Chameleon mailing list > > Chameleon@lists.maptools.org > > http://lists.maptools.org/mailman/listinfo/chameleon > > -- > Julien-Samuel Lacroix > Mapgears > http://www.mapgears.com/ > From a.oggioni at ise.cnr.it Tue Apr 4 03:24:13 2006 From: a.oggioni at ise.cnr.it (Alessandro Oggioni) Date: Tue Apr 4 03:26:06 2006 Subject: [Chameleon] MapTips Problems Message-ID: <44321F1D.1020409@ise.cnr.it> I use Chameleon since few weeks bat I have any problems about MapTips. I write at list because don?t have find solution on-line. 1. If MapTips widgets is activate, the NavTools button is not possible use. I have the same problem on IE and on FireFox. 2. It?s possible activate more MapTips whit this button command? 3. And finally, it?s possible insert a link in a MapTips. For example links a different picture or a different image for everyone cities of a layer? I hope that anyone can I help me. Thank you Alessandro Oggioni -- Dr. Alessandro Oggioni - PhD (Ecology) CNR Institute of Ecosystem Study (ISE) L.go Tonolli 50-52 I - 28922 Verbania Pallanza Tel.: +39 0323 518300 Fax: +39 0323 556513 e-mail: a.oggioni@ise.cnr.it wwwISE: http://www.iii.to.cnr.it From Dejan.Gambin at pula.hr Tue Apr 4 03:26:12 2006 From: Dejan.Gambin at pula.hr (Gambin Dejan) Date: Tue Apr 4 03:26:21 2006 Subject: [Chameleon] Rounding scale value Message-ID: Hi Bart, Can you tell me where the form variable (SCALE) is used in calculations in JSAPI mode? If I can see it is used only in: "goCWCJSAPI.oMap.oApplication.ZoomToScale({$this->mszHTMLForm}.SCALE.val ue);" If this is true, may I just put:"goCWCJSAPI.oMap.oApplication.ZoomToScale(goCWCJSAPI.oMap.scale);" instead of above and use something like: "{$this->mszHTMLForm}.SCALE.value = Math.round(goCWCJSAPI.oMap.scale);" for displaying the rounded scale? regards, dejan > -----Original Message----- > From: Eijnden, B. van den (Bart) > [mailto:b.vdeijnden@agi.rws.minvenw.nl] > Sent: Tuesday, March 28, 2006 11:43 AM > To: Gambin Dejan; chameleon@lists.maptools.org > Subject: RE: [Chameleon] Rounding scale value > > > Hi Dejan, > > I looked into the same problem a few months ago, but the > problem with rounding seems that all the calculations with > the scale will also lose precision, so you need to decouple > display from the raw values somehow. > > If you find a solution, please update the following bug: > > http://bugzilla.maptools.org/show_bug.cgi?id=1031 > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: chameleon-bounces@lists.maptools.org > [mailto:chameleon-bounces@lists.maptools.org]Namens Gambin Dejan > Verzonden: dinsdag 28 maart 2006 10:36 > Aan: chameleon@lists.maptools.org > Onderwerp: [Chameleon] Rounding scale value > > > Hi, > > I am using Scale widget to display the scale. It is ok > initially but sometimes I get non-rounded value shown in the > inputbox (like xxx.yyy) after zooming. I am using JSAPI. Do I > have to round it somewhere in > "{$this->mszHTMLForm}.SCALE.value = goCWCJSAPI.oMap.scale;"? > I suppose I have to convert it to number first and then use > riund function (or work with scale value as string)... > > thanks > > dejan > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > > > Disclaimer > ************************************************************** > ********** > Aan dit bericht kunnen geen rechten worden ontleend. Dit > bericht is uitsluitend bestemd voor de geadresseerde. Als u > dit bericht per abuis hebt ontvangen, wordt u verzocht het te > vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. If you > have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this > message is correct or complete, please contact the sender. > ************************************************************** > ********** > > From b.vdeijnden at agi.rws.minvenw.nl Tue Apr 4 03:22:00 2006 From: b.vdeijnden at agi.rws.minvenw.nl (Eijnden, B. van den (Bart)) Date: Tue Apr 4 03:27:01 2006 Subject: [Chameleon] RE: IE: famous red cross :-) Message-ID: <1FEE21DC1054D5119FCC0002A5517B2405F97A57@rws-mdi-dt2-01.agi.rws.minvenw.nl> Hi list, update on this, in my case this could be fixed by adding the following to my Apache conf: KeepAlive On MaxKeepAliveRequests 10000 No red crosses anymore, only once in a while the map seems to wait forever. Best regards, Bart > -----Oorspronkelijk bericht----- > Van: Eijnden, B. van den (Bart) > Verzonden: vrijdag 17 maart 2006 14:49 > Aan: 'chameleon@lists.maptools.org' > Onderwerp: IE: famous red cross :-) > > Hi list, > > after switching our server from PHP CGI to PHP as an Apache module I have > run into frequent IE red crosses again. This does seem to bring lots of > performance gain in our RHE 3, VMWare setup though so I really want to > keep PHP as a module :-) > > None of the before-mentioned suggestions work for me: > > -registry settings, I have no access to the registry on the workstation > :-( > -setting KeepAlive to false (this is already the case for our Apache > install) > > The only solution which works for us is the option by Assefa in this > e-mail: > > http://lists.maptools.org/pipermail/chameleon/2004-December/001693.html > > Is it okay if I implement this as a MapDHTML widget parameter with a > default of false (which is suggested in the e-mail)? > > Any other suggestions which I could try? > > Best regards, > Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From b.vdeijnden at agi.rws.minvenw.nl Tue Apr 4 03:25:46 2006 From: b.vdeijnden at agi.rws.minvenw.nl (Eijnden, B. van den (Bart)) Date: Tue Apr 4 03:40:05 2006 Subject: [Chameleon] Rounding scale value Message-ID: <1FEE21DC1054D5119FCC0002A5517B2405F97A58@rws-mdi-dt2-01.agi.rws.minvenw.nl> Hi Dejan, I think this might work, give it a try and please report back. Thanks. Best regards, Bart -----Oorspronkelijk bericht----- Van: Gambin Dejan [mailto:Dejan.Gambin@pula.hr] Verzonden: dinsdag 4 april 2006 9:26 Aan: Eijnden, B. van den (Bart) CC: chameleon@lists.maptools.org Onderwerp: RE: [Chameleon] Rounding scale value Hi Bart, Can you tell me where the form variable (SCALE) is used in calculations in JSAPI mode? If I can see it is used only in: "goCWCJSAPI.oMap.oApplication.ZoomToScale({$this->mszHTMLForm}.SCALE.val ue);" If this is true, may I just put:"goCWCJSAPI.oMap.oApplication.ZoomToScale(goCWCJSAPI.oMap.scale);" instead of above and use something like: "{$this->mszHTMLForm}.SCALE.value = Math.round(goCWCJSAPI.oMap.scale);" for displaying the rounded scale? regards, dejan > -----Original Message----- > From: Eijnden, B. van den (Bart) > [mailto:b.vdeijnden@agi.rws.minvenw.nl] > Sent: Tuesday, March 28, 2006 11:43 AM > To: Gambin Dejan; chameleon@lists.maptools.org > Subject: RE: [Chameleon] Rounding scale value > > > Hi Dejan, > > I looked into the same problem a few months ago, but the > problem with rounding seems that all the calculations with > the scale will also lose precision, so you need to decouple > display from the raw values somehow. > > If you find a solution, please update the following bug: > > http://bugzilla.maptools.org/show_bug.cgi?id=1031 > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: chameleon-bounces@lists.maptools.org > [mailto:chameleon-bounces@lists.maptools.org]Namens Gambin Dejan > Verzonden: dinsdag 28 maart 2006 10:36 > Aan: chameleon@lists.maptools.org > Onderwerp: [Chameleon] Rounding scale value > > > Hi, > > I am using Scale widget to display the scale. It is ok > initially but sometimes I get non-rounded value shown in the > inputbox (like xxx.yyy) after zooming. I am using JSAPI. Do I > have to round it somewhere in > "{$this->mszHTMLForm}.SCALE.value = goCWCJSAPI.oMap.scale;"? > I suppose I have to convert it to number first and then use > riund function (or work with scale value as string)... > > thanks > > dejan > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > > > Disclaimer > ************************************************************** > ********** > Aan dit bericht kunnen geen rechten worden ontleend. Dit > bericht is uitsluitend bestemd voor de geadresseerde. Als u > dit bericht per abuis hebt ontvangen, wordt u verzocht het te > vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. If you > have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this > message is correct or complete, please contact the sender. > ************************************************************** > ********** > > Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From Dejan.Gambin at pula.hr Tue Apr 4 03:52:31 2006 From: Dejan.Gambin at pula.hr (Gambin Dejan) Date: Tue Apr 4 03:52:40 2006 Subject: [Chameleon] Rounding scale value Message-ID: I have tried nad it seems it work for me...but I just modified this piece of code because I am just interested in showing the scale value without any decimal points. I suppose you are interested in adding a new parameter in a widget... regards, dejan > -----Original Message----- > From: Eijnden, B. van den (Bart) > [mailto:b.vdeijnden@agi.rws.minvenw.nl] > Sent: Tuesday, April 04, 2006 9:26 AM > To: Gambin Dejan > Cc: chameleon@lists.maptools.org > Subject: RE: [Chameleon] Rounding scale value > > > Hi Dejan, > > I think this might work, give it a try and please report back. Thanks. > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: Gambin Dejan [mailto:Dejan.Gambin@pula.hr] > Verzonden: dinsdag 4 april 2006 9:26 > Aan: Eijnden, B. van den (Bart) > CC: chameleon@lists.maptools.org > Onderwerp: RE: [Chameleon] Rounding scale value > > > Hi Bart, > > Can you tell me where the form variable (SCALE) is used in > calculations in JSAPI mode? If I can see it is used only in: > > "goCWCJSAPI.oMap.oApplication.ZoomToScale({$this->mszHTMLForm} > .SCALE.val > ue);" > > If this is true, may I just > put:"goCWCJSAPI.oMap.oApplication.ZoomToScale(goCWCJSAPI.oMap.scale);" > instead of above and use something like: > > "{$this->mszHTMLForm}.SCALE.value = > Math.round(goCWCJSAPI.oMap.scale);" > for displaying the rounded scale? > > regards, dejan > > > -----Original Message----- > > From: Eijnden, B. van den (Bart) > > [mailto:b.vdeijnden@agi.rws.minvenw.nl] > > Sent: Tuesday, March 28, 2006 11:43 AM > > To: Gambin Dejan; chameleon@lists.maptools.org > > Subject: RE: [Chameleon] Rounding scale value > > > > > > Hi Dejan, > > > > I looked into the same problem a few months ago, but the > > problem with rounding seems that all the calculations with > > the scale will also lose precision, so you need to decouple > > display from the raw values somehow. > > > > If you find a solution, please update the following bug: > > > > http://bugzilla.maptools.org/show_bug.cgi?id=1031 > > > > Best regards, > > Bart > > > > -----Oorspronkelijk bericht----- > > Van: chameleon-bounces@lists.maptools.org > > [mailto:chameleon-bounces@lists.maptools.org]Namens Gambin Dejan > > Verzonden: dinsdag 28 maart 2006 10:36 > > Aan: chameleon@lists.maptools.org > > Onderwerp: [Chameleon] Rounding scale value > > > > > > Hi, > > > > I am using Scale widget to display the scale. It is ok > > initially but sometimes I get non-rounded value shown in the > > inputbox (like xxx.yyy) after zooming. I am using JSAPI. Do I > > have to round it somewhere in > > "{$this->mszHTMLForm}.SCALE.value = goCWCJSAPI.oMap.scale;"? > > I suppose I have to convert it to number first and then use > > riund function (or work with scale value as string)... > > > > thanks > > > > dejan > > > > _______________________________________________ > > Chameleon mailing list > > Chameleon@lists.maptools.org > > http://lists.maptools.org/mailman/listinfo/chameleon > > > > > > Disclaimer > > ************************************************************** > > ********** > > Aan dit bericht kunnen geen rechten worden ontleend. Dit > > bericht is uitsluitend bestemd voor de geadresseerde. Als u > > dit bericht per abuis hebt ontvangen, wordt u verzocht het te > > vernietigen en de afzender te > > informeren. Wij adviseren u om bij twijfel over de juistheid of de > > volledigheid van de mail contact met afzender op te nemen. > > > > This message shall not constitute any rights or obligations. > > This message is intended solely for the addressee. If you > > have received this message in error, please delete it and > > notify the sender immediately. When in doubt whether this > > message is correct or complete, please contact the sender. > > ************************************************************** > > ********** > > > > > > > Disclaimer > ************************************************************** > ********** > Aan dit bericht kunnen geen rechten worden ontleend. Dit > bericht is uitsluitend bestemd voor de geadresseerde. Als u > dit bericht per abuis hebt ontvangen, wordt u verzocht het te > vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. If you > have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this > message is correct or complete, please contact the sender. > ************************************************************** > ********** > > From b.vdeijnden at agi.rws.minvenw.nl Tue Apr 4 03:55:16 2006 From: b.vdeijnden at agi.rws.minvenw.nl (Eijnden, B. van den (Bart)) Date: Tue Apr 4 04:02:41 2006 Subject: [Chameleon] Rounding scale value Message-ID: <1FEE21DC1054D5119FCC0002A5517B2405F97A59@rws-mdi-dt2-01.agi.rws.minvenw.nl> We could use a widget attribute named round for the Scale widget with possible values true/false, default false. But maybe some more control would be desirable, so a precision attribute with a default value of -1 which means just the way it works now, and for your situation a value of 0. Last time I checked I had a bit of trouble finding good javascript functions which could change numeric values to a certain precision, are you familiar with any? Best regards, Bart -----Oorspronkelijk bericht----- Van: Gambin Dejan [mailto:Dejan.Gambin@pula.hr] Verzonden: dinsdag 4 april 2006 9:53 Aan: Eijnden, B. van den (Bart) CC: chameleon@lists.maptools.org Onderwerp: RE: [Chameleon] Rounding scale value I have tried nad it seems it work for me...but I just modified this piece of code because I am just interested in showing the scale value without any decimal points. I suppose you are interested in adding a new parameter in a widget... regards, dejan > -----Original Message----- > From: Eijnden, B. van den (Bart) > [mailto:b.vdeijnden@agi.rws.minvenw.nl] > Sent: Tuesday, April 04, 2006 9:26 AM > To: Gambin Dejan > Cc: chameleon@lists.maptools.org > Subject: RE: [Chameleon] Rounding scale value > > > Hi Dejan, > > I think this might work, give it a try and please report back. Thanks. > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: Gambin Dejan [mailto:Dejan.Gambin@pula.hr] > Verzonden: dinsdag 4 april 2006 9:26 > Aan: Eijnden, B. van den (Bart) > CC: chameleon@lists.maptools.org > Onderwerp: RE: [Chameleon] Rounding scale value > > > Hi Bart, > > Can you tell me where the form variable (SCALE) is used in > calculations in JSAPI mode? If I can see it is used only in: > > "goCWCJSAPI.oMap.oApplication.ZoomToScale({$this->mszHTMLForm} > .SCALE.val > ue);" > > If this is true, may I just > put:"goCWCJSAPI.oMap.oApplication.ZoomToScale(goCWCJSAPI.oMap.scale);" > instead of above and use something like: > > "{$this->mszHTMLForm}.SCALE.value = > Math.round(goCWCJSAPI.oMap.scale);" > for displaying the rounded scale? > > regards, dejan > > > -----Original Message----- > > From: Eijnden, B. van den (Bart) > > [mailto:b.vdeijnden@agi.rws.minvenw.nl] > > Sent: Tuesday, March 28, 2006 11:43 AM > > To: Gambin Dejan; chameleon@lists.maptools.org > > Subject: RE: [Chameleon] Rounding scale value > > > > > > Hi Dejan, > > > > I looked into the same problem a few months ago, but the > > problem with rounding seems that all the calculations with > > the scale will also lose precision, so you need to decouple > > display from the raw values somehow. > > > > If you find a solution, please update the following bug: > > > > http://bugzilla.maptools.org/show_bug.cgi?id=1031 > > > > Best regards, > > Bart > > > > -----Oorspronkelijk bericht----- > > Van: chameleon-bounces@lists.maptools.org > > [mailto:chameleon-bounces@lists.maptools.org]Namens Gambin Dejan > > Verzonden: dinsdag 28 maart 2006 10:36 > > Aan: chameleon@lists.maptools.org > > Onderwerp: [Chameleon] Rounding scale value > > > > > > Hi, > > > > I am using Scale widget to display the scale. It is ok > > initially but sometimes I get non-rounded value shown in the > > inputbox (like xxx.yyy) after zooming. I am using JSAPI. Do I > > have to round it somewhere in > > "{$this->mszHTMLForm}.SCALE.value = goCWCJSAPI.oMap.scale;"? > > I suppose I have to convert it to number first and then use > > riund function (or work with scale value as string)... > > > > thanks > > > > dejan > > > > _______________________________________________ > > Chameleon mailing list > > Chameleon@lists.maptools.org > > http://lists.maptools.org/mailman/listinfo/chameleon > > > > > > Disclaimer > > ************************************************************** > > ********** > > Aan dit bericht kunnen geen rechten worden ontleend. Dit > > bericht is uitsluitend bestemd voor de geadresseerde. Als u > > dit bericht per abuis hebt ontvangen, wordt u verzocht het te > > vernietigen en de afzender te > > informeren. Wij adviseren u om bij twijfel over de juistheid of de > > volledigheid van de mail contact met afzender op te nemen. > > > > This message shall not constitute any rights or obligations. > > This message is intended solely for the addressee. If you > > have received this message in error, please delete it and > > notify the sender immediately. When in doubt whether this > > message is correct or complete, please contact the sender. > > ************************************************************** > > ********** > > > > > > > Disclaimer > ************************************************************** > ********** > Aan dit bericht kunnen geen rechten worden ontleend. Dit > bericht is uitsluitend bestemd voor de geadresseerde. Als u > dit bericht per abuis hebt ontvangen, wordt u verzocht het te > vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. If you > have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this > message is correct or complete, please contact the sender. > ************************************************************** > ********** > > Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From chameleon.listserver at gmail.com Tue Apr 4 04:33:41 2006 From: chameleon.listserver at gmail.com (listserver server) Date: Tue Apr 4 04:33:47 2006 Subject: Fwd: [Chameleon] ARCIMS Image Service In-Reply-To: <253120740604032232v2c4b7f54t30d9bade6b7e80b8@mail.gmail.com> References: <253120740604030938v2beb8e91m30bee7e392e0c512@mail.gmail.com> <29B94E3912EABD4F90B82AEF6BD9B08401778899@salte0008.wurnet.nl> <253120740604032232v2c4b7f54t30d9bade6b7e80b8@mail.gmail.com> Message-ID: <253120740604040133t249c550bsa589ca763f87d87c@mail.gmail.com> Is there a way to understand if that arcims webserver is using this WMS connector so i can add their data in my application?? Thank you for replyng! 2006/4/3, Davelaar, Hilbert < Hilbert.Davelaar@wur.nl>: > I don't know if it's possible to add ArcIMS Image Services to Chameleon, > but what I know it that there's a ArcIMS WMS Connector with which you can > easily set up your ArcIMS Image Service as a WMS. > > Just search ESRI documentation. > > Cheers, > Hilbert > > -----Oorspronkelijk bericht----- > Van: chameleon-bounces@lists.maptools.org namens listserver server > Verzonden: ma 3-4-2006 18:38 > Aan: chameleon@lists.maptools.org > CC: > Onderwerp: [Chameleon] ARCIMS Image Service > > > An Arcims Image Service can be used as a WMS? > > so i can add data stored in this arcims image service in my > application made with mapserver?? > > the url of the server arcims is http://213.21.159.40/ > > you can see data here: http://www.geographynetwork.com/arcexplorer/arcexplorer.html?&link=20060403081229361_areeprotette > > > Thank you in advance! > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060404/4a342ebd/attachment.html From john.pulles at geodan.nl Tue Apr 4 04:34:17 2006 From: john.pulles at geodan.nl (John Pulles) Date: Tue Apr 4 04:35:13 2006 Subject: [Chameleon] Rounding scale value In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97A59@rws-mdi-dt2-01.agi.rws.minvenw.nl> References: <1FEE21DC1054D5119FCC0002A5517B2405F97A59@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: <44322F89.80101@geodan.nl> Eijnden, B. van den (Bart) schreef: >Last time I checked I had a bit of trouble finding good javascript functions >which could change numeric values to a certain precision, are you familiar >with any? > > Hi Bart, Recent versions of Javascript have functions like toPrecision() and toFixed(). Groeten, John. >Best regards, >Bart > >-----Oorspronkelijk bericht----- >Van: Gambin Dejan [mailto:Dejan.Gambin@pula.hr] >Verzonden: dinsdag 4 april 2006 9:53 >Aan: Eijnden, B. van den (Bart) >CC: chameleon@lists.maptools.org >Onderwerp: RE: [Chameleon] Rounding scale value > > >I have tried nad it seems it work for me...but I just modified this >piece of code because I am just interested in showing the scale value >without any decimal points. I suppose you are interested in adding a new >parameter in a widget... > >regards, dejan > > > >>-----Original Message----- >>From: Eijnden, B. van den (Bart) >>[mailto:b.vdeijnden@agi.rws.minvenw.nl] >>Sent: Tuesday, April 04, 2006 9:26 AM >>To: Gambin Dejan >>Cc: chameleon@lists.maptools.org >>Subject: RE: [Chameleon] Rounding scale value >> >> >>Hi Dejan, >> >>I think this might work, give it a try and please report back. Thanks. >> >>Best regards, >>Bart >> >>-----Oorspronkelijk bericht----- >>Van: Gambin Dejan [mailto:Dejan.Gambin@pula.hr] >>Verzonden: dinsdag 4 april 2006 9:26 >>Aan: Eijnden, B. van den (Bart) >>CC: chameleon@lists.maptools.org >>Onderwerp: RE: [Chameleon] Rounding scale value >> >> >>Hi Bart, >> >>Can you tell me where the form variable (SCALE) is used in >>calculations in JSAPI mode? If I can see it is used only in: >> >>"goCWCJSAPI.oMap.oApplication.ZoomToScale({$this->mszHTMLForm} >>.SCALE.val >>ue);" >> >>If this is true, may I just >>put:"goCWCJSAPI.oMap.oApplication.ZoomToScale(goCWCJSAPI.oMap.scale);" >>instead of above and use something like: >> >>"{$this->mszHTMLForm}.SCALE.value = >>Math.round(goCWCJSAPI.oMap.scale);" >>for displaying the rounded scale? >> >>regards, dejan >> >> >> >>>-----Original Message----- >>>From: Eijnden, B. van den (Bart) >>>[mailto:b.vdeijnden@agi.rws.minvenw.nl] >>>Sent: Tuesday, March 28, 2006 11:43 AM >>>To: Gambin Dejan; chameleon@lists.maptools.org >>>Subject: RE: [Chameleon] Rounding scale value >>> >>> >>>Hi Dejan, >>> >>>I looked into the same problem a few months ago, but the >>>problem with rounding seems that all the calculations with >>>the scale will also lose precision, so you need to decouple >>>display from the raw values somehow. >>> >>>If you find a solution, please update the following bug: >>> >>>http://bugzilla.maptools.org/show_bug.cgi?id=1031 >>> >>>Best regards, >>>Bart >>> >>>-----Oorspronkelijk bericht----- >>>Van: chameleon-bounces@lists.maptools.org >>>[mailto:chameleon-bounces@lists.maptools.org]Namens Gambin Dejan >>>Verzonden: dinsdag 28 maart 2006 10:36 >>>Aan: chameleon@lists.maptools.org >>>Onderwerp: [Chameleon] Rounding scale value >>> >>> >>>Hi, >>> >>>I am using Scale widget to display the scale. It is ok >>>initially but sometimes I get non-rounded value shown in the >>>inputbox (like xxx.yyy) after zooming. I am using JSAPI. Do I >>>have to round it somewhere in >>>"{$this->mszHTMLForm}.SCALE.value = goCWCJSAPI.oMap.scale;"? >>>I suppose I have to convert it to number first and then use >>>riund function (or work with scale value as string)... >>> >>>thanks >>> >>>dejan >>> >>>_______________________________________________ >>>Chameleon mailing list >>>Chameleon@lists.maptools.org >>>http://lists.maptools.org/mailman/listinfo/chameleon >>> >>> >>>Disclaimer >>>************************************************************** >>>********** >>>Aan dit bericht kunnen geen rechten worden ontleend. Dit >>>bericht is uitsluitend bestemd voor de geadresseerde. Als u >>>dit bericht per abuis hebt ontvangen, wordt u verzocht het te >>>vernietigen en de afzender te >>>informeren. Wij adviseren u om bij twijfel over de juistheid of de >>>volledigheid van de mail contact met afzender op te nemen. >>> >>>This message shall not constitute any rights or obligations. >>>This message is intended solely for the addressee. If you >>>have received this message in error, please delete it and >>>notify the sender immediately. When in doubt whether this >>>message is correct or complete, please contact the sender. >>>************************************************************** >>>********** >>> >>> >>> >>> >>Disclaimer >>************************************************************** >>********** >>Aan dit bericht kunnen geen rechten worden ontleend. Dit >>bericht is uitsluitend bestemd voor de geadresseerde. Als u >>dit bericht per abuis hebt ontvangen, wordt u verzocht het te >>vernietigen en de afzender te >>informeren. Wij adviseren u om bij twijfel over de juistheid of de >>volledigheid van de mail contact met afzender op te nemen. >> >>This message shall not constitute any rights or obligations. >>This message is intended solely for the addressee. If you >>have received this message in error, please delete it and >>notify the sender immediately. When in doubt whether this >>message is correct or complete, please contact the sender. >>************************************************************** >>********** >> >> >> >> > > >Disclaimer >************************************************************************ >Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis >hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >informeren. Wij adviseren u om bij twijfel over de juistheid of de >volledigheid van de mail contact met afzender op te nemen. > >This message shall not constitute any rights or obligations. >This message is intended solely for the addressee. >If you have received this message in error, please delete it and >notify the sender immediately. When in doubt whether this message >is correct or complete, please contact the sender. >************************************************************************ > >_______________________________________________ >Chameleon mailing list >Chameleon@lists.maptools.org >http://lists.maptools.org/mailman/listinfo/chameleon > > > > > -- John Pulles ------------------------------------- Geodan IT b.v. Buitenhaven 27-A 5211TP 's-Hertogenbosch ------------------------------------- Tel: +31 (0)73 - 692 5151 Fax: +31 (0)73 - 692 5150 ------------------------------------- Postadres / mailing address President Kennedylaan 1 1079MB Amsterdam ------------------------------------- E-mail: john.pulles@geodan.nl Website: http://www.geodan.nl ------------------------------------- From jlacroix at mapgears.com Tue Apr 4 09:05:40 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Tue Apr 4 09:05:48 2006 Subject: [Chameleon] MapTips Problems In-Reply-To: <44321F1D.1020409@ise.cnr.it> References: <44321F1D.1020409@ise.cnr.it> Message-ID: <44326F24.1030607@mapgears.com> Hi, Alessandro Oggioni wrote: > 1. If MapTips widgets is activate, the NavTools button is not possible > use. I have the same problem on IE and on FireFox. I have several application using the MapTips and not experiencing this. The way you describe it, it seems to be a JavaScript error. Firefox has a JavaScript Console that reports JS errors. Does it report anything? > 2. It?s possible activate more MapTips whit this button command? > > maptipsdiv="MapTipsLayer" onmouseover="myMaptipsOver" > onmouseout="myMaptipsOut" layer="Stradario" attributes="NOME_STRAD"> If you mean to have MapTips on more than one layer, no. If you mean something else, can you explain further? > 3. And finally, it?s possible insert a link in a MapTips. For example > links a different picture or a different image for everyone cities of a > layer? With your custom JavaScript function myMapTipsOver, you can put anything (link or whatever) in there. Best Regards, Julien -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From Dejan.Gambin at pula.hr Tue Apr 4 09:43:00 2006 From: Dejan.Gambin at pula.hr (Gambin Dejan) Date: Tue Apr 4 09:43:06 2006 Subject: [Chameleon] LocateByAttribute highlighting issues Message-ID: Hi, I have some highlighting issues on LocateByAttribute widget. I have a line shapefile (roads). The widget finds the attributes, lists them in a table, but: 1. There are some results in a table which the widget doesn't highlight. I suppose you can tell me what can be the reason? Maybe some parameters that you set when you create the queryresultshapefile...(by the way I looked into this shapefile and it is OK)... 2. Sometimes, the line is not completely highlighted, only some points on the line are "yellowed", not the whole line (this happens with lines that have less "nodes") One more question - is there a way to increase the search performance? It is pretty slow sometimes. Can I index dbf file maybe? Or something else? thanks regards, dejan From jacob.delfos at maunsell.com Tue Apr 4 18:44:50 2006 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Tue Apr 4 18:44:59 2006 Subject: [Chameleon] RE: LocateByAttribute highlighting issues Message-ID: <4997F456680DAD4DA1E042C40C46361142701F@auper1ex002.au.aecomnet.com> Dejan, There shouldn't be any reason why it wouldn't list certain valid results. Can you give an example of something you think it should have listed which it didn't? (give searchstring and searched value). For string fields it does a "contains" check, for number fields an exact match. The widget doesn't do any manipulation inside a shape object. In other words, it takes a shape directly from the original queried layer, and copies it to a new shapefile. This should not cause any corruption, unless the original shapefile is corrupt (import from CAD?). The performance is not optimal, though I found it acceptable for 'normal' shapefiles. On our server (P4, 3.2GHz) it takes 2 seconds to search through 70,000 records (from button press until returned results page). That's worst case scenario (no result, so searched all records). It can help to decrease the "maxnumresults" variable, as it will stop when this value is reached (e.g. will stop immediately for unique results, where maxnumresults set to 1). Search time would be halved on average. The search is a simple sequential search, so in order to optimise it you would have to alphabetically order your data and rewrite the algorithm to use a binary search. I don't have plans for this yet.. Bear in mind that Internet Explorer can act up sometimes. For some inexplicable reason, IE can take ~30 seconds to display a result that would normally take 1 second. It's as if the IFRAME is stuck. I do not know why, nor how to fix it (it's a browser issue, never happens in Firefox). Regards, Jacob > -----Original Message----- > From: Gambin Dejan [mailto:Dejan.Gambin@pula.hr] > Sent: 4 April 2006 21:43 > To: Delfos, Jacob > Cc: chameleon@lists.maptools.org > Subject: LocateByAttribute highlighting issues > > Hi, > > I have some highlighting issues on LocateByAttribute widget. I have a > line shapefile (roads). The widget finds the attributes, > lists them in a > table, but: > > 1. There are some results in a table which the widget doesn't > highlight. > I suppose you can tell me what can be the reason? Maybe some > parameters > that you set when you create the queryresultshapefile...(by the way I > looked into this shapefile and it is OK)... > > 2. Sometimes, the line is not completely highlighted, only some points > on the line are "yellowed", not the whole line (this happens > with lines > that have less "nodes") > > One more question - is there a way to increase the search performance? > It is pretty slow sometimes. Can I index dbf file maybe? Or something > else? > > > thanks > > regards, dejan > From djaimes at corponor.gov.co Tue Apr 4 20:07:22 2006 From: djaimes at corponor.gov.co (Daniel Jaimes Palacios) Date: Tue Apr 4 20:10:16 2006 Subject: [Chameleon] I need help Message-ID: <000c01c65844$ece8d4a0$1fc3c3c3@planeasis2> ----- Original Message ----- From: "Daniel Jaimes Palacios" To: Sent: Tuesday, April 04, 2006 6:56 PM Subject: Fw: [Chameleon] RE: LocateByAttribute highlighting issues >I am using chameleon, but the information of data base is the one of the >file DBF that brings shape cases out, since I make to change the labels to >him of the information when I consult? > > thanks Daniel From djaimes at corponor.gov.co Tue Apr 4 19:56:34 2006 From: djaimes at corponor.gov.co (Daniel Jaimes Palacios) Date: Tue Apr 4 20:16:53 2006 Subject: Fw: [Chameleon] RE: LocateByAttribute highlighting issues Message-ID: <00cf01c65843$6a23ebf0$1fc3c3c3@planeasis2> I am using chameleon, but the information of data base is the one of the file DBF that brings shape cases out, since I make to change the labels to him of the information when I consult? thanks Daniel From fabio.zottele at ing.unitn.it Wed Apr 5 03:38:57 2006 From: fabio.zottele at ing.unitn.it (Fabio Zottele) Date: Wed Apr 5 03:42:46 2006 Subject: [Chameleon] Developing a new widget In-Reply-To: <200604041600.k34G08p0029124@duke.maptools.org> References: <200604041600.k34G08p0029124@duke.maptools.org> Message-ID: <44337411.4000600@ing.unitn.it> Hi, I am Fabio zottele from Italy (University of Trento). I am developing a new widget: the user click on the map, retrives the coordinate of the point and then several other funny things will happen (POSTGIS connections, updating remote tables, starting phisical models ...). I am referring to the "Developing a new Chameleon widget" in the wiki page. Still I have some problems: adding this code: $szShowReport = strlen( $this->mszReport ) > 0?"alert('".$this->mszReport."')":""; $szJsFunctionName = "showReport"; $szFunction = << = $szFunction; and this code // show report $aReturnshowReport>'showReport' = "showReport();\n"; and reloading the page, nothing happans. Actually a notice is thrown saying: "Use of undefined constant showReport". Any help is welcome! Thanks, Fabio From Dejan.Gambin at pula.hr Wed Apr 5 04:10:51 2006 From: Dejan.Gambin at pula.hr (Gambin Dejan) Date: Wed Apr 5 04:13:23 2006 Subject: [Chameleon] RE: LocateByAttribute highlighting issues Message-ID: Jacob, Sorry it was my fault...I have used the wrong layer for searching (ANNOTATION) so the layer was POINT not LINE. Regarding the first problem of not highlighting the whole set, it seems that sometimes label covers the line (labels are sometimes wide and line is short) so I think it is OK now. Regarding the speed, the slowest thing is happening after showing the results table, when the new queryresult shapefile is being drawn on the map. This can be pretty slow. I suppose this can't be solved because of Chameleon nature? And the last thing - why didn't you use QueryByAttributes layer function for this kind of searching? I suppose I wouldn't get any speed using it... Anyway, thank you very much dejan > -----Original Message----- > From: Delfos, Jacob [mailto:jacob.delfos@maunsell.com] > Sent: Wednesday, April 05, 2006 12:45 AM > To: Gambin Dejan > Cc: chameleon@lists.maptools.org > Subject: RE: LocateByAttribute highlighting issues > > > Dejan, > > There shouldn't be any reason why it wouldn't list certain > valid results. Can you give an example of something you think > it should have listed which it didn't? (give searchstring and > searched value). For string fields it does a "contains" > check, for number fields an exact match. > > The widget doesn't do any manipulation inside a shape object. > In other words, it takes a shape directly from the original > queried layer, and copies it to a new shapefile. This should > not cause any corruption, unless the original shapefile is > corrupt (import from CAD?). > > The performance is not optimal, though I found it acceptable > for 'normal' shapefiles. On our server (P4, 3.2GHz) it takes > 2 seconds to search through 70,000 records (from button press > until returned results page). That's worst case scenario (no > result, so searched all records). It can help to decrease the > "maxnumresults" variable, as it will stop when this value is > reached (e.g. will stop immediately for unique results, where > maxnumresults set to 1). Search time would be halved on average. > > The search is a simple sequential search, so in order to > optimise it you would have to alphabetically order your data > and rewrite the algorithm to use a binary search. I don't > have plans for this yet.. > > Bear in mind that Internet Explorer can act up sometimes. For > some inexplicable reason, IE can take ~30 seconds to display > a result that would normally take 1 second. It's as if the > IFRAME is stuck. I do not know why, nor how to fix it (it's a > browser issue, never happens in Firefox). > > Regards, > > Jacob > > > > -----Original Message----- > > From: Gambin Dejan [mailto:Dejan.Gambin@pula.hr] > > Sent: 4 April 2006 21:43 > > To: Delfos, Jacob > > Cc: chameleon@lists.maptools.org > > Subject: LocateByAttribute highlighting issues > > > > Hi, > > > > I have some highlighting issues on LocateByAttribute > widget. I have a > > line shapefile (roads). The widget finds the attributes, > lists them in > > a table, but: > > > > 1. There are some results in a table which the widget doesn't > > highlight. > > I suppose you can tell me what can be the reason? Maybe some > > parameters > > that you set when you create the queryresultshapefile...(by > the way I > > looked into this shapefile and it is OK)... > > > > 2. Sometimes, the line is not completely highlighted, only > some points > > on the line are "yellowed", not the whole line (this happens with > > lines that have less "nodes") > > > > One more question - is there a way to increase the search > performance? > > It is pretty slow sometimes. Can I index dbf file maybe? Or > something > > else? > > > > > > thanks > > > > regards, dejan > > > From j.lam at i-real.nl Wed Apr 5 06:46:10 2006 From: j.lam at i-real.nl (Jimmy Lam) Date: Wed Apr 5 06:44:03 2006 Subject: [Chameleon] Error in ApplicationDevelopersGuide? Message-ID: <44339FF2.3080809@i-real.nl> Hi, I've just started experimenting with Chameleon and it looks good so far. Installation was child's play with the MS4W package. However, I've noticed an error in step 6 of the ApplicationDevelopersGuide. The "Recenter" widget does not work correctly with IMAGESELECTED and IMAGEHOVER as attributes. Changing this to will fix this. Best regards, Jimmy Lam From b.vdeijnden at agi.rws.minvenw.nl Wed Apr 5 07:13:25 2006 From: b.vdeijnden at agi.rws.minvenw.nl (Eijnden, B. van den (Bart)) Date: Wed Apr 5 07:23:25 2006 Subject: [Chameleon] MapTips and JSAPI Message-ID: <1FEE21DC1054D5119FCC0002A5517B2405F97A61@rws-mdi-dt2-01.agi.rws.minvenw.nl> Hi list, did anyone ever attempt to adapt the MapTips widget to work in JSAPI mode? Would this even be possible? I.e. can the current generation of browsers handle an imagemap which is not embedded in the HTML page? Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From Dejan.Gambin at pula.hr Wed Apr 5 07:34:25 2006 From: Dejan.Gambin at pula.hr (Gambin Dejan) Date: Wed Apr 5 07:36:35 2006 Subject: [Chameleon] Query widget results in iframe Message-ID: Hi, I have customized the LocateByAttribute widget to put the result in iframe and displaying it in a customized table. Now I would like to put the results of the Query widget in the same iframe, and same table I use for LocateByAttribute. Any suggestions on how to do it? regards, dejan From jlacroix at mapgears.com Wed Apr 5 10:05:13 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed Apr 5 10:05:21 2006 Subject: [Chameleon] I need help In-Reply-To: <000c01c65844$ece8d4a0$1fc3c3c3@planeasis2> References: <000c01c65844$ece8d4a0$1fc3c3c3@planeasis2> Message-ID: <4433CE99.2050307@mapgears.com> Hi, If you want to change the informations associated with your Shapefile, you may try to use qGIS. It's a desktop program to update data. http://qgis.org/ Does it answer your question? Julien Daniel Jaimes Palacios wrote: > > ----- Original Message ----- From: "Daniel Jaimes Palacios" > > To: > Sent: Tuesday, April 04, 2006 6:56 PM > Subject: Fw: [Chameleon] RE: LocateByAttribute highlighting issues > > >> I am using chameleon, but the information of data base is the one of >> the file DBF that brings shape cases out, since I make to change the >> labels to him of the information when I consult? >> >> thanks Daniel > > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From jlacroix at mapgears.com Wed Apr 5 10:13:42 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed Apr 5 10:13:48 2006 Subject: [Chameleon] MapTips Problems In-Reply-To: <4433732C.4070408@ise.cnr.it> References: <44321F1D.1020409@ise.cnr.it> <44326F24.1030607@mapgears.com> <4433732C.4070408@ise.cnr.it> Message-ID: <4433D096.7040305@mapgears.com> Hi, Alessandro Oggioni wrote: >>> 1. If MapTips widgets is activate, the NavTools button is not >>> possible use. I have the same problem on IE and on FireFox. >> >> >> I have several application using the MapTips and not experiencing >> this. The way you describe it, it seems to be a JavaScript error. >> Firefox has a JavaScript Console that reports JS errors. Does it >> report anything? >> > The report of JavaScriptConsole is: "myMapTipsOveris not definited" > thanks, Alessandro > It's the source of your problem. Try removing the MouseOver and MouseOut parameters from your widget definition in your template. It will work again. The MapTips widget use JavaScript to build the MapTips on the map. By default it provides you functions to show the information. You can redefine those functions and define your own by using the MouseOver and MouseOut widget parameters and adding the JavaScript functions to your template. If you check the sample templates in Chameleon, you will have an example of that. Julien -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From jlacroix at mapgears.com Wed Apr 5 10:22:57 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed Apr 5 10:23:03 2006 Subject: [Chameleon] Developing a new widget In-Reply-To: <44337411.4000600@ing.unitn.it> References: <200604041600.k34G08p0029124@duke.maptools.org> <44337411.4000600@ing.unitn.it> Message-ID: <4433D2C1.5010806@mapgears.com> Hi Fabio, The GetJavascript*() widget functions should return an array. In PHP the array are acces like this: ArrayName[key] = value; Try replacing > $aReturn$szJsFunctionName > = $szFunction; by: $aReturn[$szJsFunctionName] = $szFunction; And replace: > $aReturnshowReport>'showReport' > = "showReport();\n"; by $aReturn['showReport'] = "showReport();\n"; Julien Fabio Zottele wrote: > Hi, I am Fabio zottele from Italy (University of Trento). > I am developing a new widget: the user click on the map, retrives the > coordinate of the point and then several other funny things will happen > (POSTGIS connections, updating remote tables, starting phisical models > ...). > I am referring to the "Developing a new Chameleon widget" in the wiki > page. > Still I have some problems: > > adding this code: > > $szShowReport = strlen( $this->mszReport ) > > 0?"alert('".$this->mszReport."')":""; > $szJsFunctionName = "showReport"; > $szFunction = << function {$szJsFunctionName}() > { > {$szShowReport}; > return true; > } > EOT; > $aReturn$szJsFunctionName > = $szFunction; > > > and this code > > // show report > $aReturnshowReport>'showReport' > = "showReport();\n"; > > and reloading the page, nothing happans. Actually a notice is thrown > saying: "Use of undefined constant showReport". > > Any help is welcome! > > Thanks, Fabio > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From jlacroix at mapgears.com Wed Apr 5 10:29:22 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed Apr 5 10:29:27 2006 Subject: [Chameleon] Query widget results in iframe In-Reply-To: References: Message-ID: <4433D442.4080302@mapgears.com> Hi, Check the Customize Query Result documentation: http://chameleon-tiki.maptools.org/tiki-index.php?page=QueryWidgetCustomizingResults Julien Gambin Dejan wrote: > Hi, > > I have customized the LocateByAttribute widget to put the result in > iframe and displaying it in a customized table. Now I would like to put > the results of the Query widget in the same iframe, and same table I use > for LocateByAttribute. > > Any suggestions on how to do it? > > regards, dejan > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From jennifer at greeninfo.org Wed Apr 5 13:04:18 2006 From: jennifer at greeninfo.org (Jennifer Shanks) Date: Wed Apr 5 13:02:25 2006 Subject: [Chameleon] (no subject) Message-ID: <6.2.3.4.2.20060405095617.03ba0a60@hood.greeninfo.org> Hello list, I'm work for a non-profit organization and we're developing an application that helps users to find parks, campgrounds and trails (http://216.93.173.158/BAOSC/). The application includes a search widget that allows one to search by zip, city or county. When the search results load, I also want the map to zoom to the extent of the selected features. I added some code to the search results page (SearchResults.phtml) that does this. However, there are some bugs that I've not been able to figure out. **************************** Jennifer Shanks GreenInfo Network 116 New Montgomery, Suite 738 San Francisco, CA 94105 (415) 979-0343 x 306 (415) 979-0371 FAX **GreenInfo has completely re-done our web site Go to: www.greeninfo.org From jennifer at greeninfo.org Wed Apr 5 13:45:11 2006 From: jennifer at greeninfo.org (Jennifer Shanks) Date: Wed Apr 5 13:43:19 2006 Subject: [Chameleon] looking for help with zoom to features bugs Message-ID: <6.2.3.4.2.20060405104333.03ba6e90@hood.greeninfo.org> Hello list, I'm work for a non-profit organization and we're developing an application that helps users to find parks, campgrounds and trails (http://216.93.173.158/BAOSC/). The application includes a search widget that allows one to search by zip, city or county. When the search results load, I also want the map to zoom to the extent of the selected features. I added some code to the search results page (SearchResults.phtml) that does this. However, there are some bugs that I've not been able to figure out. I've attached the code and am hoping that someone might have a chance to take a look. If you look at lines 502-504 in SearchResults.phtml you can see that I am setting the map extent and saving the session. If I save and open the map file that is generated, I see that the map extent is updated but the reference map extent remains the same. I'd like to figure out how to get the keymap to draw properly when the extent changes. The other problem is that the map navigation tools don't recognize that the extent has changed. If I attempt to zoom in after using the search tool, the zoom in tool is still working with the original map extent. To see these bugs in action, visit the link above, search for the zip code 94546 and then try to zoom in on a park! Any suggestions on how I can fix these problems would be much appreciated. Regards, Jennifer **************************** Jennifer Shanks GreenInfo Network 116 New Montgomery, Suite 738 San Francisco, CA 94105 (415) 979-0343 x 306 (415) 979-0371 FAX **GreenInfo has completely re-done our web site Go to: www.greeninfo.org -------------- next part -------------- Copyright (c) 2006 DM Solutions Group Inc. | Permission is hereby granted, free of charge, to any person obtaining a | copy of this software and associated documentation files (the "Software"), | to deal in the Software without restriction, including without limitation | the rights to use, copy, modify, merge, publish, distribute, sublicense, | and/or sell copies of the Software, and to permit persons to whom the | Software is furnished to do so, subject to the following conditions: | | The above copyright notice and this permission notice shall be included | in all copies or substantial portions of the Software. | | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | DEALINGS IN THE SOFTWARE. |_____________________________________________________________________________ **/ // set session specific defines define("LOAD_MAPSESSION", 1); if(!defined("COMMON")) define( "COMMON", urldecode( $_REQUEST['common'] ) ); // include the session code to re-establish session include_once( dirname(__FILE__)."/../session.inc.php" ); $szResultsPage = $_SESSION['gszAppWebPath']. 'widgets/Search/ZoomFeature.phtml?common='.urlencode( COMMON ). '&sid='.session_id(); // init vars $szError = ''; $szNoResultsMsg = 'No Results Found'; // abort of any information is missing if ( !isset( $_REQUEST['result_geom'] ) and !isset( $_REQUEST['result_geom2'] ) and !isset( $_REQUEST['result_geom3'] ) || !isset( $_REQUEST['bound_geom'] ) || !isset( $_REQUEST['bound_field'] ) || !isset( $_REQUEST['bound_value'] ) ) { $szError = 'Invalid Search Criteria'; } // make sure the inputs are valid switch( $_REQUEST['bound_geom'] ) { // check zip code case 'zip_code_query': // cast to an int $_REQUEST['bound_value'] = intval( $_REQUEST['bound_value'] ); if ( $_REQUEST['bound_value'] == 0 ) { $szError .= 'Please specify a numeric value for a zip code.'; } break; } // only proceed if no errors if ( $szError == '' ) { // build SQL(s) //build variables if ($_REQUEST['bound_geom'] == 'agency_query') { $szTableSQL = 'select * from '.$_REQUEST['result_geom']. ' where LOWER('.$_REQUEST['bound_field'].')=LOWER(\''. $_REQUEST['bound_value'].'\') ORDER BY min_unit_n ASC'; } else { if ($_REQUEST['result_geom'] != "" ){ $szTableSQLc = 'select * from '.$_REQUEST['result_geom']. ' where intersects(the_geom,(select the_geom as my_geom from '. $_REQUEST['bound_geom'].' where LOWER('.$_REQUEST['bound_field']. ')=LOWER(\''. $_REQUEST['bound_value'].'\')))ORDER BY park_name ASC'; } if ($_REQUEST['result_geom2'] != ""){ $szTableSQLp = 'select * from '.$_REQUEST['result_geom2']. ' where intersects(the_geom,(select the_geom as my_geom from '. $_REQUEST['bound_geom'].' where LOWER('.$_REQUEST['bound_field']. ')=LOWER(\''. $_REQUEST['bound_value'].'\')))ORDER BY min_unit_n ASC'; } if ($_REQUEST['result_geom3'] != ""){ $szTableSQLt = 'select * from '.$_REQUEST['result_geom3']. ' where intersects(the_geom,(select the_geom as my_geom from '. $_REQUEST['bound_geom'].' where LOWER('.$_REQUEST['bound_field']. ')=LOWER(\''. $_REQUEST['bound_value'].'\')))ORDER BY moniker1 ASC'; } } if ($_REQUEST['bound_geom'] != 'agency_query') { $szSQLBbox = 'SELECT xmin(env), ymin(env), xmax(env), ymax(env) FROM (SELECT extent(the_geom) AS env from (select the_geom from '.$_REQUEST['bound_geom'].' where LOWER('.$_REQUEST['bound_field'].')=LOWER(\''.$_REQUEST['bound_value'].'\')) as foo) as foo'; } else { $szSQLBbox = 'SELECT xmin(env), ymin(env), xmax(env), ymax(env) FROM (SELECT extent(the_geom) AS env from ('.$szTableSQL.') as foo) as foo'; } // include the connection info include( '../connect.inc.php' ); // open db $oDb = pg_connect( 'host='.PG_HOST.' dbname='.PG_DATABASE.' user='. PG_USER.' password='.PG_PASSWORD ); if ( !$oDb ) { exit( 'Unable to connect to the postgres database. Postgres said:'. pg_last_error() ); } // get the map object $oMap = &$oMapSession->oMap; $oMap->save('c:/temp/junk_orig.map'); //zoom the map to extent of selected features getBbox($oDb, $szSQLBbox, $szNoResultsMsg, $oMap, $oMapSession); // turn off all three highlight layers $oLayer = $oMap->getLayerByName( 'parks_highlight' ); $oLayer->set( 'status', MS_OFF ); $oLayer = $oMap->getLayerByName( 'campgrounds_highlight' ); $oLayer->set( 'status', MS_OFF ); $oLayer = $oMap->getLayerByName( 'Trails_highlight' ); $oLayer->set( 'status', MS_OFF ); // get the corresponding layer object if ($_REQUEST['result_geom2'] != ""){ $szSQL = 'the_geom from ('.$szTableSQLp.') as foo using unique gid using srid=-1'; // turn on highlight layer $oLayer = $oMap->getLayerByName( 'parks_highlight' ); $oLayer->set( 'status', MS_ON ); // set the data string $oLayer->set( 'data', $szSQL); $szTitle="Park"; $szTable = buildTable( $oDb, $szTableSQLp, $szTitle, $szFindWhat, $szResultsPage); } if ($_REQUEST['result_geom'] != ""){ // process campgrounds $szSQL = 'the_geom from ('.$szTableSQLc.') as foo using unique gid using srid=-1'; // turn on highlight layer $oLayer = $oMap->getLayerByName( 'campgrounds_highlight' ); $oLayer->set( 'status', MS_ON ); // set the data string $oLayer->set( 'data', $szSQL ); $szTitle="Campground"; $szTable2 = buildTable( $oDb, $szTableSQLc, $szTitle, $szFindWhat, $szResultsPage); } if ($_REQUEST['result_geom3'] != ""){ // process trails $szSQL = 'the_geom from ('.$szTableSQLt.') as foo using unique gid using srid=-1'; // turn on highlight layer $oLayer = $oMap->getLayerByName( 'Trails_highlight' ); $oLayer->set( 'status', MS_ON ); // set the data string $oLayer->set( 'data', $szSQL ); $szTitle="Regional Trail"; $szTable3 = buildTable( $oDb, $szTableSQLt, $szTitle, $szFindWhat, $szResultsPage); } // run the table query on the postgres db and build table //$szTable = buildTable( $oDb, $szTableSQL, $szSQLBbox, $szNoResultsMsg, $oMap); // close the db pg_close( $oDb ); } else { $szTable = $szNoResultsMsg; } /** _____________________________________________________________________________ | | buildTable() | | Postcondition: This function executes the give SQL and builds the | appropriate table; | | @param $oDB object - database object. | @param $szSQL string - SQL to run. | @param $szNoResultsMsg string - message to return if no results. | @return string - HTML string of table. | @desc Build table from given SQL. |_____________________________________________________________________________ **/ function buildTable( $oDb, $szSQL, $szTitle, $szFindWhat, $szResultsPage) { // init $szReturn = "\n"; // execute the query $oResult = @pg_query( $oDb, $szSQL); if ( !$oResult ) { return( pg_last_error() ); } // check for nothing found $nCount = pg_num_rows( $oResult ); if ( $nCount == 0 ) { $szNoResultsMsg = "\n"; $szNoResultsMsg .= "
" .$szTitle ."

No Results Found
"; return $szNoResultsMsg; } // open header row // $szReturn .= ""; // close header row // $szReturn .= "\n"; // loop and build the select option items for( $i=0; $i<$nCount; $i++ ) { // get the next result $axResults = pg_fetch_assoc( $oResult, $i ); // add row for each $szReturn .= ""; // loop and add cells foreach( $axResults as $key=>$xCell ) { if (strcasecmp($key, "min_unit_n") == 0 ) { $hold_name = $xCell; } elseif (strcasecmp($key, "min_access") == 0 ) { $access = $xCell; if ($access == 'RA') { $access = "Restricted Public Access"; } elseif ($access == 'OA') { $access = "Open Public Access"; } } elseif (strcasecmp($key, "acres") == 0 ) { $gin_acres = round($xCell, 1); } elseif (strcasecmp($key, "link") == 0 ) { $link = $xCell; } elseif (strcasecmp($key, "unit_id") == 0) { $xml_id_p = $xCell; } elseif (strcasecmp($key, "xml_id") == 0) { $xml_id_c = $xCell; } elseif (strcasecmp($key, "park_name") == 0 ) { $park_name = $xCell; } elseif (strcasecmp($key, "website") == 0 ) { $website = $xCell; } elseif (strcasecmp($key, "moniker1") == 0 ) { $moniker = $xCell; } elseif (strcasecmp($key, "status") == 0 ) { $status = $xCell; } elseif (strcasecmp($key, "image") == 0 ) { //$image = $xCell; $image = "ChinaCamp.jpg"; } elseif (strcasecmp($key, "min_image") == 0 ) { $image = $xCell; } } if ($hold_name) { $szReturn .="\n"; $hold_name = ""; $xml_id_p =""; } if ($park_name) { $szReturn .="\n"; $xml_id_c =""; $park_name=""; } //if ($image) { // $szReturn .="\n"; // $image = ""; //} $szReturn .= ""; $szReturn .= "
".$szTitle.": ". $hold_name. " | Map »
\n"; } if ($access) { $szReturn .= "$access"; $szReturn .= "     "; $access = ""; } if ($gin_acres) { $szReturn .= " " .$gin_acres. " acres
\n"; $gin_acres = ""; } if ($moniker) { $szReturn .="
".$szTitle.": ". $moniker. "
\n"; $moniker =""; } if ($status) { $szReturn .="
". $status. "
\n"; $status =""; } if ($link) { if (strlen($link) > 47) { $link2 = substr($link, 0, 47); $szReturn .= "Go to: $link2
"; } else { $szReturn .= "Go to: $link
"; } $link = ""; $link2 = ""; } if ($xml_id_p) { $szReturn .= "
Transit information\n"; $szReturn .= " | Driving directions
".$szTitle.": ". $park_name. "
\n"; } if ($website) { if (strlen($website) > 47) { $website2 = substr($website, 0, 47); $szReturn .= "Go to: $website2
"; } else { $szReturn .= "Go to: $website
"; } $website = ""; $website2 = ""; } if ($xml_id_c) { $szReturn .= "
Transit information\n"; $szReturn .= " | Driving directions

"; } return $szReturn; // end buildTable() function } /** _____________________________________________________________________________ | | getBbox() | | Postcondition: This function executes the given SQL, gets the bounding | box of selected features and sets the map extent to the | bounding box extent. | | @param $oDB object - database object. | @param $szSQLBbox string - SQL to run. | @param $szNoResultsMsg string - message to return if no results. | @param $oMap object - map object |_____________________________________________________________________________ **/ function getBbox( $oDb, $szSQLBbox, $szNoResultsMsg, $oMap, $oMapSession ) { //get the bounding box $oBbox = @pg_query( $oDb, $szSQLBbox ); if ( !$oBbox ) { return( pg_last_error() ); } // check for nothing found $nCount = pg_num_rows( $oBbox ); if ( $nCount == 0 ) { return $szNoResultsMsg; } // loop and get the x and y values for( $j=0; $j<1; $j++ ) { // get the next result $axResults = pg_fetch_assoc( $oBbox, $j ); // loop and add title foreach( $axResults as $key=>$value ) { if ($key == "xmin") { $xmin= $value; $xmin = $xmin - 1500; } if ($key == "ymin") { $ymin= $value; $ymin = $ymin - 1500; } if ($key == "xmax") { $xmax= $value; $xmax = $xmax + 1500; } if ($key == "ymax") { $ymax= $value; $ymax = $ymax + 1500; } } } //set the zoom envelope if ($xmin > 0) { $oMap->setExtent($xmin, $ymin, $xmax, $ymax); $_SESSION['gszCurrentState'] = $oMapSession->saveState(); $oMap->save('c:/temp/junk.map'); } //end get the bounding box } ?> From jacob.delfos at maunsell.com Wed Apr 5 19:58:11 2006 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Wed Apr 5 20:03:48 2006 Subject: [Chameleon] RE: LocateByAttribute highlighting issues Message-ID: <4997F456680DAD4DA1E042C40C463611427029@auper1ex002.au.aecomnet.com> Dejan, The actual generating of the shapefile shouldn't take long. In fact, once it shows the results table, it means the shapefile has already been made. I guess the delay in having to wait for the results table, and the map not updating until the code from the results table has been downloaded (which contains javascript containing instructions to refresh the map). Maybe the drawing of the results is slow because it zooms to all results, which can be a big extents. But I never experienced any real slowness.... What exactly do you call slow, and how many search results do you get (out of how many records), and what other data is being drawn? Good question about QueryByAttributes layer function. I don't use it because it only works on the current map extents, and only on layers that are queryable (i.e. have a template defined). I needed more flexibility in terms of which layers are searchable, on which attributes, and at all extents. Regards, Jacob > -----Original Message----- > From: Gambin Dejan [mailto:Dejan.Gambin@pula.hr] > Sent: 5 April 2006 16:11 > To: Delfos, Jacob > Cc: chameleon@lists.maptools.org > Subject: RE: LocateByAttribute highlighting issues > > Jacob, > > Sorry it was my fault...I have used the wrong layer for searching > (ANNOTATION) so the layer was POINT not LINE. Regarding the first > problem of not highlighting the whole set, it seems that > sometimes label > covers the line (labels are sometimes wide and line is short) > so I think > it is OK now. > > Regarding the speed, the slowest thing is happening after showing the > results table, when the new queryresult shapefile is being > drawn on the > map. This can be pretty slow. I suppose this can't be solved > because of > Chameleon nature? And the last thing - why didn't you use > QueryByAttributes layer function for this kind of searching? > I suppose I > wouldn't get any speed using it... > > Anyway, thank you very much > > dejan > > > -----Original Message----- > > From: Delfos, Jacob [mailto:jacob.delfos@maunsell.com] > > Sent: Wednesday, April 05, 2006 12:45 AM > > To: Gambin Dejan > > Cc: chameleon@lists.maptools.org > > Subject: RE: LocateByAttribute highlighting issues > > > > > > Dejan, > > > > There shouldn't be any reason why it wouldn't list certain > > valid results. Can you give an example of something you think > > it should have listed which it didn't? (give searchstring and > > searched value). For string fields it does a "contains" > > check, for number fields an exact match. > > > > The widget doesn't do any manipulation inside a shape object. > > In other words, it takes a shape directly from the original > > queried layer, and copies it to a new shapefile. This should > > not cause any corruption, unless the original shapefile is > > corrupt (import from CAD?). > > > > The performance is not optimal, though I found it acceptable > > for 'normal' shapefiles. On our server (P4, 3.2GHz) it takes > > 2 seconds to search through 70,000 records (from button press > > until returned results page). That's worst case scenario (no > > result, so searched all records). It can help to decrease the > > "maxnumresults" variable, as it will stop when this value is > > reached (e.g. will stop immediately for unique results, where > > maxnumresults set to 1). Search time would be halved on average. > > > > The search is a simple sequential search, so in order to > > optimise it you would have to alphabetically order your data > > and rewrite the algorithm to use a binary search. I don't > > have plans for this yet.. > > > > Bear in mind that Internet Explorer can act up sometimes. For > > some inexplicable reason, IE can take ~30 seconds to display > > a result that would normally take 1 second. It's as if the > > IFRAME is stuck. I do not know why, nor how to fix it (it's a > > browser issue, never happens in Firefox). > > > > Regards, > > > > Jacob > > > > > > > -----Original Message----- > > > From: Gambin Dejan [mailto:Dejan.Gambin@pula.hr] > > > Sent: 4 April 2006 21:43 > > > To: Delfos, Jacob > > > Cc: chameleon@lists.maptools.org > > > Subject: LocateByAttribute highlighting issues > > > > > > Hi, > > > > > > I have some highlighting issues on LocateByAttribute > > widget. I have a > > > line shapefile (roads). The widget finds the attributes, > > lists them in > > > a table, but: > > > > > > 1. There are some results in a table which the widget doesn't > > > highlight. > > > I suppose you can tell me what can be the reason? Maybe some > > > parameters > > > that you set when you create the queryresultshapefile...(by > > the way I > > > looked into this shapefile and it is OK)... > > > > > > 2. Sometimes, the line is not completely highlighted, only > > some points > > > on the line are "yellowed", not the whole line (this happens with > > > lines that have less "nodes") > > > > > > One more question - is there a way to increase the search > > performance? > > > It is pretty slow sometimes. Can I index dbf file maybe? Or > > something > > > else? > > > > > > > > > thanks > > > > > > regards, dejan > > > > > > From me.pezoa at gmail.com Wed Apr 5 20:12:03 2006 From: me.pezoa at gmail.com (Mony) Date: Wed Apr 5 20:13:35 2006 Subject: [Chameleon] CONTEXT MAP FILE (XML) Message-ID: <9e2cfa920604051712m165f06ddj6bf9508b784fbcfb@mail.gmail.com> Hi everyone, I would like to use a .XML context file to begin the chameleon application(not a .MAP file), how can I do that?. Any help thanks in advance. Mony -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060405/fdca51e7/attachment.html From jacob.delfos at maunsell.com Wed Apr 5 20:13:28 2006 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Wed Apr 5 20:17:02 2006 Subject: [Chameleon] looking for help with zoom to features bugs Message-ID: <4997F456680DAD4DA1E042C40C46361142702A@auper1ex002.au.aecomnet.com> Jennifer, >From what I can tell you change the state of the mapfile on the server-side, and then send a command to the client to update the map. I think doing this fails to take into account some of the things that may have happened on the client-side. I suspect that on the client-side, your bounding coordinates remain the same even after your Iframe has updated the mapfile. So when you zoom, the changes from your SearchResults get overwritten. You could consider putting some javascript in your SearchResults.phtml that will actually get the map to zoom to an extent, but using the client-side interface. That way, you don't bypass anything, and everything should work as expected. You could take the function "ApplyBoundingBox" from the Boundingbox widget, and put it in the page. Then use javascript in your results to make a call to that function with the desired extents. Of course, it would make your page submit after the iframe returns, making you lose your results, unless you use the JSAPI, so the page doesn't have to submit (which I recommend). Regards, Jacob > -----Original Message----- > From: chameleon-bounces@lists.maptools.org > [mailto:chameleon-bounces@lists.maptools.org] On Behalf Of > Jennifer Shanks > Sent: 6 April 2006 01:45 > To: chameleon@lists.maptools.org > Subject: [Chameleon] looking for help with zoom to features bugs > > Hello list, > > I'm work for a non-profit organization and we're developing an > application that helps users to find parks, campgrounds and trails > (http://216.93.173.158/BAOSC/). The application includes a search > widget that allows one to search by zip, city or county. When the > search results load, I also want the map to zoom to the extent of the > selected features. I added some code to the search results page > (SearchResults.phtml) that does this. > > However, there are some bugs that I've not been able to figure > out. I've attached the code and am hoping that someone might have a > chance to take a look. > > If you look at lines 502-504 in SearchResults.phtml you can see that > I am setting the map extent and saving the session. If I save and > open the map file that is generated, I see that the map extent is > updated but the reference map extent remains the same. I'd like to > figure out how to get the keymap to draw properly when the extent > changes. The other problem is that the map navigation tools don't > recognize that the extent has changed. If I attempt to zoom in after > using the search tool, the zoom in tool is still working with the > original map extent. > > To see these bugs in action, visit the link above, search for the zip > code 94546 and then try to zoom in on a park! > > Any suggestions on how I can fix these problems would be much > appreciated. > > Regards, > Jennifer > > > **************************** > Jennifer Shanks > GreenInfo Network > 116 New Montgomery, Suite 738 > San Francisco, CA 94105 > (415) 979-0343 x 306 > (415) 979-0371 FAX > **GreenInfo has completely re-done our web site > Go to: www.greeninfo.org > > From me.pezoa at gmail.com Wed Apr 5 20:22:13 2006 From: me.pezoa at gmail.com (Mony) Date: Wed Apr 5 20:25:45 2006 Subject: [Chameleon] XMLThemeLegend In-Reply-To: <9e2cfa920602230847qea0f926g@mail.gmail.com> References: <9e2cfa920602211320k1838b03aw@mail.gmail.com> <43FC8222.9060908@dmsolutions.ca> <9e2cfa920602221305o301816c4m@mail.gmail.com> <43FCDCE8.70600@dmsolutions.ca> <9e2cfa920602221407v3a588e91r@mail.gmail.com> <43FDBD9A.1060703@dmsolutions.ca> <9e2cfa920602230847qea0f926g@mail.gmail.com> Message-ID: <9e2cfa920604051722n14b3506fvc6578a49e6264771@mail.gmail.com> Hi everyone, I would like to use a .XML context file to begin the chameleon application(not a .MAP file), how can I do that?. Any help thanks in advance. Mony -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060405/cea5833b/attachment.html From b.vdeijnden at agi.rws.minvenw.nl Thu Apr 6 03:01:19 2006 From: b.vdeijnden at agi.rws.minvenw.nl (Eijnden, B. van den (Bart)) Date: Thu Apr 6 03:13:50 2006 Subject: [Chameleon] MapTips and JSAPI Message-ID: <1FEE21DC1054D5119FCC0002A5517B2405F97A62@rws-mdi-dt2-01.agi.rws.minvenw.nl> Okay, gotten a little progress on this one. I have written a litter wrapper script around the MapTips widget (based on UpdateMap.php), called maptips.php. Using the JSAPI event manager, I do an AJAX call to this script whenever the map extent changes. For this I had to adapt the MapTips widget not to include the and HTML tag when generating the ImageMap, since the content is set using innerHTML. I'll suggest a fix for this in bugzilla, i.e. the GenerateImageMap function should not add the header but the DrawPublish function should do that. So basically in the HTML template: 1) at the onload, register the event: goCWCJSAPI.RegisterEvent(MAP_EXTENT_CHANGED, "GetImageMap") 2) GetImageMap function does a AJAX call to maptips.php: function GetImageMap() { call('/chameleon/widgets/MapTips/maptips.php?sid=[$gszSessId$]&minx=' + goCWCJSAPI.oMap.minx + '&miny='+goCWCJSAPI.oMap.miny + '&maxx=' + goCWCJSAPI.oMap.maxx + '&maxy='+goCWCJSAPI.oMap.maxy, null, processAjax); } 3) when the browser receives the content from maptips.php, it will trigger the processAjax function which sets the innerHTML (IE specific btw): function processAjax(szResults) { if (document.all) document.all.maptips_imagemap6.innerHTML= "'"+szResults+"'"; } 4) don't forget to add the imagemap to your HTML template: The maptips.php wrapper script does the necessary processing to generate the image map based on the MapTips widget, an excerpt is: $oMap = $oMapSession->oMap; $oMap->setExtent($_GET['minx'], $_GET['miny'], $_GET['maxx'], $_GET['maxy']); $_SESSION["gszCurrentState"] = $oMapSession->saveState(); include_once("MapTips.widget.php"); $oWidget = new MapTips(); $oWidget->maParams["LAYER"] = 'werkzaamheden'; $oWidget->maParams["ATTRIBUTES"] = 'WEGNUMMER,STT_NAAM,GME_NAAM'; $oWidget->maParams["ONMOUSEOVER"] = 'myMaptipsOver'; $oWidget->maParams["ONMOUSEOUT"] = 'myMaptipsOut'; $oWidget->maParams["VISIBLE"] = 'false'; $oWidget->InitDefaults(); $oWidget->SetMap($oMapSession); echo $oWidget->GenerateImageMap(); This shows the advantages of using AJAX in combination with Chameleon JSAPI, maybe not everybody knows but starting Chameleon 2.4 there is a small ajax library in chameleon/htdocs/common/ajax/xhr.js which has the call javascript function in it which I use in GetImageMap. Best regards, Bart -----Oorspronkelijk bericht----- Van: chameleon-bounces@lists.maptools.org [mailto:chameleon-bounces@lists.maptools.org]Namens Eijnden, B. van den (Bart) Verzonden: woensdag 5 april 2006 13:13 Aan: 'chameleon@lists.maptools.org' Onderwerp: [Chameleon] MapTips and JSAPI Hi list, did anyone ever attempt to adapt the MapTips widget to work in JSAPI mode? Would this even be possible? I.e. can the current generation of browsers handle an imagemap which is not embedded in the HTML page? Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ _______________________________________________ Chameleon mailing list Chameleon@lists.maptools.org http://lists.maptools.org/mailman/listinfo/chameleon Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From Dejan.Gambin at pula.hr Thu Apr 6 07:55:44 2006 From: Dejan.Gambin at pula.hr (Gambin Dejan) Date: Thu Apr 6 07:55:54 2006 Subject: [Chameleon] PopupCSS SharedResource Message-ID: Hi, I wanted to use my own Popup stylsheet so I defined: ...as it is written in ApplicationDevelopersGuide. Unfotunatelly this didin't work so I defined: ...this way it work but I get the error when look into the HTML source saying: "WARNING: following attributes are invalid for a sharedresource widget: VALUE. The widget tag was: <cwc2 type="SharedResource" name="PopupCSS" VALUE="skins/sample/css/sample_popup.css"/>." Is it a bug? regards, dejan From Dejan.Gambin at pula.hr Thu Apr 6 08:01:45 2006 From: Dejan.Gambin at pula.hr (Gambin Dejan) Date: Thu Apr 6 08:01:49 2006 Subject: [Chameleon] Stopping measurement with Ruler widget Message-ID: Hi, It is written somewhere in the documentation (by the way there is no documentation for Ruler widget on http://chameleon.maptools.org/help/viewer.phtml!) that measurement should be stopped by double clicking or pressing ESC. But this doesn't always work. Using Firefox, double clicking doesn't work at all and ESC is working but not always...for example I noticed it doesn't work after doing query (by using Query widget or LocateByAttribute widget). Any suggestions? regards, dejan From Derek.Bird at xwave.com Thu Apr 6 08:05:48 2006 From: Derek.Bird at xwave.com (Bird, Derek (xwave)) Date: Thu Apr 6 08:04:38 2006 Subject: [Chameleon] XMLThemeLegend Message-ID: Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3084 bytes Desc: not available Url : http://lists.maptools.org/pipermail/chameleon/attachments/20060406/47d9daab/smime-0001.bin From pspencer at dmsolutions.ca Thu Apr 6 08:11:44 2006 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Thu Apr 6 08:11:48 2006 Subject: [Chameleon] PopupCSS SharedResource In-Reply-To: References: Message-ID: <3EA73353-613D-4724-B4D4-4083AA2D3BC1@dmsolutions.ca> Dejan, I think you can ignore the warning. The widget SharedResource widget should be updated to make the value attribute legal, but it works without that just fine Cheers Paul On 6-Apr-06, at 7:55 AM, Gambin Dejan wrote: > Hi, > > I wanted to use my own Popup stylsheet so I defined: > > VALUE="skins/sample/css/sample_popup.css"/> > > ...as it is written in ApplicationDevelopersGuide. Unfotunatelly this > didin't work so I defined: > > VALUE="skins/sample/css/sample_popup.css"/> > > ...this way it work but I get the error when look into the HTML source > saying: > > "WARNING: following attributes are invalid for a sharedresource > widget: > VALUE. The widget tag was: <cwc2 type="SharedResource" > name="PopupCSS" > VALUE="skins/sample/css/sample_popup.css"/>." > > Is it a bug? > > regards, dejan > > _______________________________________________ > 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 chameleon.listserver at gmail.com Thu Apr 6 12:13:57 2006 From: chameleon.listserver at gmail.com (listserver server) Date: Thu Apr 6 12:14:03 2006 Subject: [Chameleon] PrintProduction Widget error when i try to download image Message-ID: <253120740604060913k452e6d62t6fdf1fb4bb148100@mail.gmail.com> When i click on download button i've this error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, admin@local.domain and inform them of the time the error occurred, and anything you might have done that may have caused the error. In log file i find this: [Thu Apr 06 01:41:49 2006] [error] [client 127.0.0.1] File does not exist: C:/ms4w/apps/chameleon/samples/htdocs/htdocs, referer: http://localhost/myapps/allevamenti.phtml [Thu Apr 06 01:42:16 2006] [error] [client 127.0.0.1] Premature end of script headers: php.exe, referer: http://localhost/chameleon//widgets/PrintProduction/production_download.phtml?sid=4434d44945ab9&selImageFormat=GIF [Thu Apr 06 01:42:51 2006] [error] [client 127.0.0.1] Premature end of script headers: php.exe, referer: http://localhost/chameleon//widgets/PrintProduction/production_download.phtml?sid=4434d44945ab9&selImageFormat=GIF -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060406/1b080a61/attachment.html From chameleon.listserver at gmail.com Thu Apr 6 12:14:53 2006 From: chameleon.listserver at gmail.com (listserver server) Date: Thu Apr 6 12:14:58 2006 Subject: [Chameleon] Problems with layer legend widget and Postgis Layer. Message-ID: <253120740604060914t338d545dja60cfa56873d368@mail.gmail.com> when i click on the layer label icon of that widget i recive these warnings and i cannot see any attribute of layers! Warning: Invalid argument supplied for foreach() in C:\ms4w\apps\chameleon\htdocs\widgets\LayerAttributes.php on line 188 Warning: array_keys(): The first argument should be an array in C:\ms4w\apps\chameleon\htdocs\widgets\LayerLabels\LayerLabelsPopup.phtml on line 90 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060406/8eced478/attachment.html From abe.gillespie at gmail.com Thu Apr 6 16:32:56 2006 From: abe.gillespie at gmail.com (Abe Gillespie) Date: Thu Apr 6 16:33:01 2006 Subject: [Chameleon] WMS Bug? Message-ID: Hi all, I've got two quick test sites setup: 1) http://www.digital-pulp.com/mike/test/ 2) http://www.digital-pulp.com/mike/myapp/htdocs/ The first is coded strictly by hand using PHP MapScript and the second is a Chameleon app. The Chameleon app only lets you zoom in until reaching a certain threshold. Once you get to the magical threshold the Chameleon app simply breaks. Any navigation other than zoom-all will not work (the map refreshes but you stay at the same place you tried to navigate away from). In comparison, the first site will let you zoom all the way down until you're below the WMS minscale (at which point it also breaks ... but we know this is do to the error returned by the WMS). Both are using the same MapFile and are running on: MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=GEOS INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE Anyone know what the problem is? Thanks. -Abe From jacob.delfos at maunsell.com Thu Apr 6 20:22:57 2006 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Thu Apr 6 20:27:38 2006 Subject: [Chameleon] PrintProduction Widget error when i try to downloadimage Message-ID: <4997F456680DAD4DA1E042C40C46361142702D@auper1ex002.au.aecomnet.com> I once had this problem, when the server I had set up did not know its own hostname should forward to 127.0.0.1. The print production widget created the image, then tried to download it from its own hostname to stream it to the browser. I think the firewall prevented this. I fixed it by putting the server hostname in the windows hosts file, with the 127.0.0.1 IP address. Maybe that's the same case for you. regards, Jacob ________________________________ From: chameleon-bounces@lists.maptools.org [mailto:chameleon-bounces@lists.maptools.org] On Behalf Of listserver server Sent: 7 April 2006 00:14 To: chameleon@lists.maptools.org Subject: [Chameleon] PrintProduction Widget error when i try to downloadimage When i click on download button i've this error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, admin@local.domain and inform them of the time the error occurred, and anything you might have done that may have caused the error. In log file i find this: [Thu Apr 06 01:41:49 2006] [error] [client 127.0.0.1] File does not exist: C:/ms4w/apps/chameleon/samples/htdocs/htdocs, referer: http://localhost/myapps/allevamenti.phtml [Thu Apr 06 01:42:16 2006] [error] [client 127.0.0.1] Premature end of script headers: php.exe, referer: http://localhost/chameleon//widgets/PrintProduction/production_download. phtml?sid=4434d44945ab9&selImageFormat=GIF [Thu Apr 06 01:42:51 2006] [error] [client 127.0.0.1] Premature end of script headers: php.exe, referer: http://localhost/chameleon//widgets/PrintProduction/production_download. phtml?sid=4434d44945ab9&selImageFormat=GIF -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060407/827c712d/attachment.html From bartvde at xs4all.nl Fri Apr 7 05:39:22 2006 From: bartvde at xs4all.nl (Bart van den Eijnden (OSGIS)) Date: Fri Apr 7 05:39:32 2006 Subject: [Chameleon] overriding maturity level of application Message-ID: <4436334A.4000301@xs4all.nl> Hi list, using Chameleon 2.4 beta2 and MS4W 1.5 I can't seem to override the maturity level of an application for using JSAPI, I used to do it like this in the application's index.phtml file: $oApp->mnMinimumMaturityLevel = MATURITY_ALPHA; $oApp->CWCInitialize( $szTemplate, $szMapFile ); But then I get the error message at the end of this e-mail. If I change chameleon.xml to ALPHA it works okay. Any ideas what could be wrong? ERROR: widget does not meet minimum maturity level for this application : cwcjsapi -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From Jeremy.Sears at CCRS.NRCan.gc.ca Fri Apr 7 09:24:54 2006 From: Jeremy.Sears at CCRS.NRCan.gc.ca (Sears, Jeremy) Date: Fri Apr 7 09:25:15 2006 Subject: [Chameleon] Draw only legend? Message-ID: Hi List, I posted this question to the Mapserver list yesterday, inretrospect I think it may be more suited to this list. Here goes... Im wondering if its possible to have mapserver draw only a legend, not its associated map... Im looking at the mapscript documentation on maptools.org regarding the LegendObj Class, it says: "Instances of legendObj are always are always embedded inside the mapObj." So Im starting with code like: // draw ledgend ... $legend = ms_newMapObj($mapfileloc); .. And Id like to get to the point where I write: $legend_image = $legend->draw(); But Im not sure how to specify to only draw a legend.. Is it possible? Thanks Jeremy From bartvde at xs4all.nl Fri Apr 7 09:32:34 2006 From: bartvde at xs4all.nl (Bart van den Eijnden (OSGIS)) Date: Fri Apr 7 09:32:50 2006 Subject: [Chameleon] Draw only legend? In-Reply-To: References: Message-ID: <443669F2.10202@xs4all.nl> Check out the code in this bug report: http://bugzilla.maptools.org/show_bug.cgi?id=1402 that should get you started. Best regards, Bart Sears, Jeremy wrote: > >Hi List, >I posted this question to the Mapserver list yesterday, inretrospect I think >it may be more suited to this list. Here goes... > > >Im wondering if its possible to have mapserver draw only a legend, not its >associated map... >Im looking at the mapscript documentation on maptools.org regarding the >LegendObj Class, it says: > >"Instances of legendObj are always are always embedded inside the mapObj." > >So Im starting with code like: > >// draw ledgend ... >$legend = ms_newMapObj($mapfileloc); >.. > >And Id like to get to the point where I write: > >$legend_image = $legend->draw(); > > > >But Im not sure how to specify to only draw a legend.. Is it possible? > > >Thanks >Jeremy > >_______________________________________________ >Chameleon mailing list >Chameleon@lists.maptools.org >http://lists.maptools.org/mailman/listinfo/chameleon > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From b.vdeijnden at agi.rws.minvenw.nl Mon Apr 10 04:30:16 2006 From: b.vdeijnden at agi.rws.minvenw.nl (Eijnden, B. van den (Bart)) Date: Mon Apr 10 04:35:53 2006 Subject: [Chameleon] download.phtml problem on https Message-ID: <1FEE21DC1054D5119FCC0002A5517B2405F97A71@rws-mdi-dt2-01.agi.rws.minvenw.nl> Hi list, there is a problem with Chameleon's download.phtml in https environments. IE won't download files, whereas Firefox will. I've tracked this down to the http headers which are used in download.phtml. Is the person who wrote download.phtml able to comment on this? I replaced the existing Cache-Control and Pragma headers from download.phtml (3 lines) with the ones mentioned here: http://nl3.php.net/header For Internet Explorer: When using an attachement Content-Dispositon, it seems the following headers are also required: header("Cache-Control: cache, must-revalidate"); header("Pragma: public"); If you have Cache-Control as no-cache, IE fails. I have done several tests and those two lines fixed my script. (It was trying to download a .csv) The above seems to be especially true on https connections. Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From pspencer at dmsolutions.ca Mon Apr 10 08:18:53 2006 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Mon Apr 10 08:19:03 2006 Subject: [Chameleon] download.phtml problem on https In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97A71@rws-mdi-dt2-01.agi.rws.minvenw.nl> References: <1FEE21DC1054D5119FCC0002A5517B2405F97A71@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: <7CEAB8C3-D703-4021-964F-89694BA2E74D@dmsolutions.ca> Bart, Bill and I combined on that script. I have no problems with the change, go ahead and apply it. Cheers Paul On 10-Apr-06, at 4:30 AM, Eijnden, B. van den (Bart) wrote: > Hi list, > > there is a problem with Chameleon's download.phtml in https > environments. IE > won't download files, whereas Firefox will. > > I've tracked this down to the http headers which are used in > download.phtml. > > Is the person who wrote download.phtml able to comment on this? I > replaced > the existing Cache-Control and Pragma headers from download.phtml > (3 lines) > with the ones mentioned here: http://nl3.php.net/header > > For Internet Explorer: > > When using an attachement Content-Dispositon, it seems the > following headers > are also required: > > header("Cache-Control: cache, must-revalidate"); > header("Pragma: public"); > > If you have Cache-Control as no-cache, IE fails. > > I have done several tests and those two lines fixed my script. (It was > trying to download a .csv) > > The above seems to be especially true on https connections. > > Best regards, > Bart > > > Disclaimer > ********************************************************************** > ** > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ********************************************************************** > ** > > _______________________________________________ > 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 mariette.hachey at geonet-tech.com Mon Apr 10 13:49:30 2006 From: mariette.hachey at geonet-tech.com (Mariette) Date: Mon Apr 10 13:50:04 2006 Subject: [Chameleon] Need help in debugging page Message-ID: <001401c65cc7$1e9c12b0$6600a8c0@CMMIBill> Greetings, I have been working with Mapserver-Chameleon for the last couple of months and I have gotten to the point that I have a decent site up and running with the functionality that I want. But there have been a few errors that I have never been able to figure out, so I am opening up the site for the next week or so to get some help in debugging. The problems are as follows: 1) Query issue 1--> I have the site set up so that it only queries the layer with the active radio button, this functions but an error occurs on IE and Firefox. I would like to get rid of the error. 2) Query issue 2--> I must hide certain results and with the new query tool you set what columns to hide in the Map file. I have done this according to instruction by inserting the HEADER info in the layer, but instead it prevents all results from appearing. The property layer is set this way. 3) Query issue 3--> I had the query results in the last chameleon version set up so that if the query results had http:// at the beginning it would convert the text to "Click here to view photo" as a link. Example in the photograph layer. I cannot seem to figure out were to put the if statement in the new query tool. 4) Reference image is not showing up, before the upgrade it was fine. I had simply replaced the keymap widget file with the old one from before the upgrade. 5) I also have a lot of space at the bottom of the web page that I can't seem to get rid of. 6) The copyright text disappears after you navigate; I need it to be there at all time. 7) The legend looses its status after a page refresh 8) In the legend, at the layer level I would like to be able to read the name and replace the underscore with a space, I have done this at the group and class level but could not achieve it at the layer level. 9) Legend icons are not appearing in Firefox, they were before the upgrade. These are some of the last issue plaguing me and any insight on any of them would be much appreciated. If you require any files please do not hesitate to ask. I am running this on windows server 2003 and using apache. I am using ms4w version 1.4.1 with Chameleon. I do have some JavaScript skills but I am currently still taking my first course and I have no PHP skills as of yet. Website http://142.176.0.171 username-geonet password-flood Also if anybody finds other errors or could offer advice about the page please don't hesitate. Thank You ******************************** Mariette Hachey GIS Technologist GeoNet Technologies Inc. Box 22, Suite 211 90 University Ave Charlottetown, PE Canada, C1A 4K9 Bus: (902) 628-3797 Fax: (902) 628-1145 ******************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060410/2d67189d/attachment.html From jacob.delfos at maunsell.com Mon Apr 10 19:44:20 2006 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Mon Apr 10 19:47:35 2006 Subject: [Chameleon] Need help in debugging page Message-ID: <4997F456680DAD4DA1E042C40C463611427039@auper1ex002.au.aecomnet.com> Mariette, I can't answer all your questions, but I can see that your legend images don't appear because the path misses the "chameleon" after the servername. Adding it makes it work. So it probably means either your web_server_path is wrong in chameleon.xml (change it to '/chameleon'), or you didn't register the skin path correctly in index.phtml (or whatever you called it). Fixing that may fix some other issues too. Queryresults can be changed by modifying '/chamleon/htdocs/widgets/query/QueryResults.phtml' You could actually put an entire link inside the attribute table, such that it shows up as a link when queried. For example: Click for Photo That way is probably more straightforward. Try these things, and see what issues are left. regards, Jacob ________________________________ From: chameleon-bounces@lists.maptools.org [mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Mariette Sent: 11 April 2006 01:50 To: chameleon@lists.maptools.org Subject: [Chameleon] Need help in debugging page Greetings, I have been working with Mapserver-Chameleon for the last couple of months and I have gotten to the point that I have a decent site up and running with the functionality that I want. But there have been a few errors that I have never been able to figure out, so I am opening up the site for the next week or so to get some help in debugging. The problems are as follows: 1) Query issue 1--> I have the site set up so that it only queries the layer with the active radio button, this functions but an error occurs on IE and Firefox. I would like to get rid of the error. 2) Query issue 2--> I must hide certain results and with the new query tool you set what columns to hide in the Map file. I have done this according to instruction by inserting the HEADER info in the layer, but instead it prevents all results from appearing. The property layer is set this way. 3) Query issue 3--> I had the query results in the last chameleon version set up so that if the query results had http:// at the beginning it would convert the text to "Click here to view photo" as a link. Example in the photograph layer. I cannot seem to figure out were to put the if statement in the new query tool. 4) Reference image is not showing up, before the upgrade it was fine. I had simply replaced the keymap widget file with the old one from before the upgrade. 5) I also have a lot of space at the bottom of the web page that I can't seem to get rid of. 6) The copyright text disappears after you navigate; I need it to be there at all time. 7) The legend looses its status after a page refresh 8) In the legend, at the layer level I would like to be able to read the name and replace the underscore with a space, I have done this at the group and class level but could not achieve it at the layer level. 9) Legend icons are not appearing in Firefox, they were before the upgrade. These are some of the last issue plaguing me and any insight on any of them would be much appreciated. If you require any files please do not hesitate to ask. I am running this on windows server 2003 and using apache. I am using ms4w version 1.4.1 with Chameleon. I do have some JavaScript skills but I am currently still taking my first course and I have no PHP skills as of yet. Website http://142.176.0.171 username-geonet password-flood Also if anybody finds other errors or could offer advice about the page please don't hesitate. Thank You ******************************** Mariette Hachey GIS Technologist GeoNet Technologies Inc. Box 22, Suite 211 90 University Ave Charlottetown, PE Canada, C1A 4K9 Bus: (902) 628-3797 Fax: (902) 628-1145 ******************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060411/b91d6110/attachment-0001.html From davide.albertini at ticino.com Tue Apr 11 05:21:05 2006 From: davide.albertini at ticino.com (72555) Date: Tue Apr 11 05:18:59 2006 Subject: [Chameleon] Problems with sample applications Message-ID: <380-2200642119215359@ticino.com> Hi, I'm tring to understand how to use chameleon using the sample applications. This is my problem: I'am attempting to get the sample _enhanced.phtml with my own map. I've replaced the chameleon.map reference in the sample_enhanced.php with the path to my map file. I've and deleted out the Keymap portion in the sample_enhanced.html (since my map doesn't have a reference map object) as I read on this mailing-list. When I open the sample_enhanced.phtml URL I get this error: Fatal error: Call to a member function on a non-object in D:\ms4w\apps\chameleon\htdocs\widgets\KeyMapDHTML\KeyMapDHTML.widget.p hp in line 115 I've tried to solve it by myself but I can't, I hope you can help me. Greetings Davide From mariette.hachey at geonet-tech.com Tue Apr 11 12:07:33 2006 From: mariette.hachey at geonet-tech.com (Mariette) Date: Tue Apr 11 12:08:02 2006 Subject: [Chameleon] FW: Need help in debugging page Message-ID: <002301c65d82$0ac3bed0$6600a8c0@CMMIBill> Greetings, thank you for the help. Both issues were solved so its 2 down 7 to go. 1) Query issue 1--> I have the site set up so that it only queries the layer with the active radio button, this functions but an error occurs on IE and Firefox. I would like to get rid of the error. 2) Query issue 2--> I must hide certain results and with the new query tool you set what columns to hide in the Map file. I have done this according to instruction by inserting the HEADER info in the layer, but instead it prevents all results from appearing. The property layer is set this way. 3) Query issue 3--> I had the query results in the last chameleon version set up so that if the query results had http:// at the beginning it would convert the text to "Click here to view photo" as a link. Example in the photograph layer. I cannot seem to figure out were to put the if statement in the new query tool. Solved, I changed the path to the photo in the attributes into code to open a link. ie; Click for Photo 4) Reference image is not showing up, before the upgrade it was fine. I had simply replaced the keymap widget file with the old one from before the upgrade. 5) I also have a lot of space at the bottom of the web page that I can't seem to get rid of. 6) The copyright text disappears after you navigate; I need it to be there at all time. 7) The legend looses its status after a page refresh 8) In the legend, at the layer level I would like to be able to read the name and replace the underscore with a space, I have done this at the group and class level but could not achieve it at the layer level. 9) Legend icons are not appearing in Firefox, they were before the upgrade. Solved, the path had to be corrected. These are some of the last issue plaguing me and any insight on any of them would be much appreciated. If you require any files please do not hesitate to ask. I am running this on windows server 2003 and using apache. I am using ms4w version 1.4.1 with Chameleon. I do have some JavaScript skills but I am currently still taking my first course and I have no PHP skills as of yet. Website http://142.176.0.171 username-geonet password-flood Also if anybody finds other errors or could offer advice about the page please don't hesitate. Thank You ******************************** Mariette Hachey GIS Technologist GeoNet Technologies Inc. Box 22, Suite 211 90 University Ave Charlottetown, PE Canada, C1A 4K9 Bus: (902) 628-3797 Fax: (902) 628-1145 ******************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060411/b9ce80ad/attachment.html From Jeremy.Sears at CCRS.NRCan.gc.ca Tue Apr 11 15:27:22 2006 From: Jeremy.Sears at CCRS.NRCan.gc.ca (Sears, Jeremy) Date: Tue Apr 11 15:27:27 2006 Subject: [Chameleon] too many rasters! Message-ID: Hi All, Ive got a chameleon app set up. Ive recently been adding raster images to my map. For each image, I have three versions sampled to 150m, 75m, and 30m resolution. In my map file I have each of the three rasters added and set to display only at particular scales. Everything is working fine, except that chameleon shows all three rasters in the legend all the time. How would I go about having 1 legend entry for the three related images? Thanks Jeremy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060411/7bb62bac/attachment.html From me.pezoa at gmail.com Tue Apr 11 19:40:09 2006 From: me.pezoa at gmail.com (Mony) Date: Tue Apr 11 19:41:58 2006 Subject: [Chameleon] MAPTIPS WITH WFS LAYER Message-ID: <9e2cfa920604111640y41a8720cj4a7e496bff45348d@mail.gmail.com> Hi everyone, I am using maptips but these not working with WFS or WMS layer. My question is if is possible to do that. Thanks in advance any help bye Mony -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060411/096c5528/attachment.html From jacob.delfos at maunsell.com Tue Apr 11 19:48:22 2006 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Tue Apr 11 19:52:11 2006 Subject: [Chameleon] too many rasters! Message-ID: <4997F456680DAD4DA1E042C40C463611427041@auper1ex002.au.aecomnet.com> Jeremy, Have a look at this post: http://lists.maptools.org/pipermail/chameleon/2004-October/001526.html That should fix your issue. regards, Jacob ________________________________ From: chameleon-bounces@lists.maptools.org [mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Sears, Jeremy Sent: 12 April 2006 03:27 To: chameleon@lists.maptools.org Subject: [Chameleon] too many rasters! Hi All, Ive got a chameleon app set up. Ive recently been adding raster images to my map. For each image, I have three versions sampled to 150m, 75m, and 30m resolution. In my map file I have each of the three rasters added and set to display only at particular scales. Everything is working fine, except that chameleon shows all three rasters in the legend all the time. How would I go about having 1 legend entry for the three related images? Thanks Jeremy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060412/7d217046/attachment-0001.html From b.vdeijnden at agi.rws.minvenw.nl Wed Apr 12 01:50:03 2006 From: b.vdeijnden at agi.rws.minvenw.nl (Eijnden, B. van den (Bart)) Date: Wed Apr 12 02:07:07 2006 Subject: [Chameleon] MAPTIPS WITH WFS LAYER Message-ID: <1FEE21DC1054D5119FCC0002A5517B2405F97A87@rws-mdi-dt2-01.agi.rws.minvenw.nl> Looking at the code it seems supported, for a WMS layer a temporary WFS layer will be added. I have never tried this though, I only use MapTips with local shapefile layers. Best regards, Bart -----Oorspronkelijk bericht----- Van: chameleon-bounces@lists.maptools.org [mailto:chameleon-bounces@lists.maptools.org]Namens Mony Verzonden: woensdag 12 april 2006 1:40 Aan: Sears, Jeremy; Julien-Samuel Lacroix CC: chameleon@lists.maptools.org Onderwerp: [Chameleon] MAPTIPS WITH WFS LAYER Hi everyone, I am using maptips but these not working with WFS or WMS layer. My question is if is possible to do that. Thanks in advance any help bye Mony Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060412/00ef2201/attachment.html From b.vdeijnden at agi.rws.minvenw.nl Wed Apr 12 01:59:42 2006 From: b.vdeijnden at agi.rws.minvenw.nl (Eijnden, B. van den (Bart)) Date: Wed Apr 12 02:07:10 2006 Subject: [Chameleon] RE: IE: famous red cross :-) Message-ID: <1FEE21DC1054D5119FCC0002A5517B2405F97A89@rws-mdi-dt2-01.agi.rws.minvenw.nl> I was too quick with my conclusion .... Now I can safely say the problem was with PHP using the bundled GD version (2.0.28 compatible) and not the GD version (2.0.33) against which Mapscript was compiled. It only caused problems for PNG24 by the way in IE, all other formats worked fine. Best regards, Bart > -----Oorspronkelijk bericht----- > Van: Eijnden, B. van den (Bart) > Verzonden: dinsdag 4 april 2006 9:22 > Aan: 'chameleon@lists.maptools.org' > CC: Wooning, D. (Dion) > Onderwerp: RE: IE: famous red cross :-) > > Hi list, > > update on this, in my case this could be fixed by adding the following to > my Apache conf: > > KeepAlive On > MaxKeepAliveRequests 10000 > > No red crosses anymore, only once in a while the map seems to wait > forever. > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: Eijnden, B. van den (Bart) > Verzonden: vrijdag 17 maart 2006 14:49 > Aan: 'chameleon@lists.maptools.org' > Onderwerp: IE: famous red cross :-) > > Hi list, > > after switching our server from PHP CGI to PHP as an Apache module I > have run into frequent IE red crosses again. This does seem to bring lots > of performance gain in our RHE 3, VMWare setup though so I really want to > keep PHP as a module :-) > > None of the before-mentioned suggestions work for me: > > -registry settings, I have no access to the registry on the > workstation :-( > -setting KeepAlive to false (this is already the case for our Apache > install) > > The only solution which works for us is the option by Assefa in this > e-mail: > > > http://lists.maptools.org/pipermail/chameleon/2004-December/001693.html > > Is it okay if I implement this as a MapDHTML widget parameter with a > default of false (which is suggested in the e-mail)? > > Any other suggestions which I could try? > > Best regards, > Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From jacob.delfos at maunsell.com Wed Apr 12 02:29:29 2006 From: jacob.delfos at maunsell.com (Jacob Delfos) Date: Wed Apr 12 02:29:34 2006 Subject: [Chameleon] RE: IE: famous red cross :-) Message-ID: That doesn't explain why it can happen with JPEG's..... We should make a log sometime with all possible causes and solutions (and of every occasion where we thought we figured it out). I'm sure there is more than 1 possible cause...... Jacob >> I was too quick with my conclusion .... >> >> Now I can safely say the problem was with PHP using the bundled GD version >> (2.0.28 compatible) and not the GD version (2.0.33) against which Mapscript >> was compiled. It only caused problems for PNG24 by the way in IE, all other >> formats worked fine. >> >> Best regards, >> Bart >* -----Oorspronkelijk bericht----- *>* Van: Eijnden, B. van den (Bart) *>* Verzonden: dinsdag 4 april 2006 9:22 *>* Aan: 'chameleon at lists.maptools.org ' *>* CC: Wooning, D. (Dion) *>* Onderwerp: RE: IE: famous red cross :-) *>* *>* Hi list, *>* *>* update on this, in my case this could be fixed by adding the following to *>* my Apache conf: *>* *>* KeepAlive On *>* MaxKeepAliveRequests 10000 *>* *>* No red crosses anymore, only once in a while the map seems to wait *>* forever. *>* *>* Best regards, *>* Bart *>* *>* -----Oorspronkelijk bericht----- *>* Van: Eijnden, B. van den (Bart) *>* Verzonden: vrijdag 17 maart 2006 14:49 *>* Aan: 'chameleon at lists.maptools.org ' *>* Onderwerp: IE: famous red cross :-) *>* *>* Hi list, *>* *>* after switching our server from PHP CGI to PHP as an Apache module I *>* have run into frequent IE red crosses again. This does seem to bring lots *>* of performance gain in our RHE 3, VMWare setup though so I really want to *>* keep PHP as a module :-) *>* *>* None of the before-mentioned suggestions work for me: *>* *>* -registry settings, I have no access to the registry on the *>* workstation :-( *>* -setting KeepAlive to false (this is already the case for our Apache *>* install) *>* *>* The only solution which works for us is the option by Assefa in this *>* e-mail: *>* *>* *>* http://lists.maptools.org/pipermail/chameleon/2004-December/001693.html *>* *>* Is it okay if I implement this as a MapDHTML widget parameter with a *>* default of false (which is suggested in the e-mail)? *>* *>* Any other suggestions which I could try? *>* *>* Best regards, *>* Bart* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060412/c44f2b14/attachment.html From Dejan.Gambin at pula.hr Wed Apr 12 06:14:21 2006 From: Dejan.Gambin at pula.hr (Gambin Dejan) Date: Wed Apr 12 06:14:25 2006 Subject: [Chameleon] Performance measuring question Message-ID: Hi list, I have finally finished my first serious Chameleon application. It is working very good, but I would like to see if there are possibly some performance problems that can be solved because I am experiencing slow map drawing sometimes (when zooming in)....I'll try to be more detailed: My current application has several layers of which the one is raster layer defined over 12 tif files (40MB each) that I joined using tileindex..I have also internally tiled and created internal overviews on each of the tif files... Next I have the main layer, that is roads...it is a LINE shape that has about 1MB (and its dbf has only 73KB with 247 records). This layer is also labeled with two lines, one is overlayed over the other... My questions are: 1. Since the data I presented shouldn't be "heavy" and assuming testing on my localhost - what can be the main reason for sometimes slow map drawing? I am using JSAPI mode 2. How to debug it on Windows? How can I see what is causing this slowness? I would like to know if hardware is the reason (disk subsystem or RAM) or the application... 3. I have created my own buttons and icons...maybe they are "heavy"? Are they somehow cached? What about the caching anyway? Any suggestions are welcome Thanks very much regards, dejan From pspencer at dmsolutions.ca Wed Apr 12 07:20:25 2006 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Wed Apr 12 07:20:23 2006 Subject: [Chameleon] Performance measuring question In-Reply-To: References: Message-ID: <3710747D-704A-4428-A43E-6A0690391A49@dmsolutions.ca> Dejan, you 'might' get some performance gain out of building a shptree index for your shape file and perhaps tiling it ... not sure. In general, I would more likely suspect Chameleon since it produces quite heavy load on the server. Running php as a module should be possible, and could give you some performance gain. Cheers Paul On 12-Apr-06, at 6:14 AM, Gambin Dejan wrote: > Hi list, > > I have finally finished my first serious Chameleon application. It is > working very good, but I would like to see if there are possibly some > performance problems that can be solved because I am experiencing slow > map drawing sometimes (when zooming in)....I'll try to be more > detailed: > > My current application has several layers of which the one is raster > layer defined over 12 tif files (40MB each) that I joined using > tileindex..I have also internally tiled and created internal overviews > on each of the tif files... > > Next I have the main layer, that is roads...it is a LINE shape that > has > about 1MB (and its dbf has only 73KB with 247 records). This layer is > also labeled with two lines, one is overlayed over the other... > > My questions are: > > 1. Since the data I presented shouldn't be "heavy" and assuming > testing > on my localhost - what can be the main reason for sometimes slow map > drawing? I am using JSAPI mode > > 2. How to debug it on Windows? How can I see what is causing this > slowness? I would like to know if hardware is the reason (disk > subsystem > or RAM) or the application... > > 3. I have created my own buttons and icons...maybe they are > "heavy"? Are > they somehow cached? What about the caching anyway? > > Any suggestions are welcome > > Thanks very much > > regards, dejan > > _______________________________________________ > 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 Dejan.Gambin at pula.hr Wed Apr 12 07:29:31 2006 From: Dejan.Gambin at pula.hr (Gambin Dejan) Date: Wed Apr 12 07:29:35 2006 Subject: [Chameleon] Performance measuring question Message-ID: Paul, Thanks, I'll try that...regarding Chameleon - I suppose there is not much that can be done? Do you maybe suggest some hardware modifications that could increase the speed? dejan > -----Original Message----- > From: Paul Spencer [mailto:pspencer@dmsolutions.ca] > Sent: Wednesday, April 12, 2006 1:20 PM > To: Gambin Dejan > Cc: chameleon@lists.maptools.org > Subject: Re: [Chameleon] Performance measuring question > > > Dejan, > > you 'might' get some performance gain out of building a > shptree index > for your shape file and perhaps tiling it ... not sure. In general, > I would more likely suspect Chameleon since it produces quite heavy > load on the server. Running php as a module should be possible, and > could give you some performance gain. > > Cheers > > Paul > > On 12-Apr-06, at 6:14 AM, Gambin Dejan wrote: > > > Hi list, > > > > I have finally finished my first serious Chameleon > application. It is > > working very good, but I would like to see if there are > possibly some > > performance problems that can be solved because I am > experiencing slow > > map drawing sometimes (when zooming in)....I'll try to be more > > detailed: > > > > My current application has several layers of which the one > is raster > > layer defined over 12 tif files (40MB each) that I joined using > > tileindex..I have also internally tiled and created > internal overviews > > on each of the tif files... > > > > Next I have the main layer, that is roads...it is a LINE shape that > > has > > about 1MB (and its dbf has only 73KB with 247 records). > This layer is > > also labeled with two lines, one is overlayed over the other... > > > > My questions are: > > > > 1. Since the data I presented shouldn't be "heavy" and assuming > > testing > > on my localhost - what can be the main reason for sometimes slow map > > drawing? I am using JSAPI mode > > > > 2. How to debug it on Windows? How can I see what is causing this > > slowness? I would like to know if hardware is the reason (disk > > subsystem > > or RAM) or the application... > > > > 3. I have created my own buttons and icons...maybe they are > > "heavy"? Are > > they somehow cached? What about the caching anyway? > > > > Any suggestions are welcome > > > > Thanks very much > > > > regards, dejan > > > > _______________________________________________ > > 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 mariette.hachey at geonet-tech.com Wed Apr 12 08:12:28 2006 From: mariette.hachey at geonet-tech.com (Mariette) Date: Wed Apr 12 08:13:04 2006 Subject: [Chameleon] FW: Need help in debugging page Message-ID: <006501c65e2a$5dd252a0$6600a8c0@CMMIBill> -----Original Message----- From: Mariette [mailto:mariette.hachey@geonet-tech.com] Sent: Tuesday, April 11, 2006 1:08 PM To: 'chameleon@lists.maptools.org' Subject: FW: Need help in debugging page Greetings, thank you for the help. Both issues were solved so its 3 down 6 to go. 1) Query issue 1--> I have the site set up so that it only queries the layer with the active radio button, this functions but an error occurs on IE and Firefox. I would like to get rid of the error. 2) Query issue 2--> I must hide certain results and with the new query tool you set what columns to hide in the Map file. I have done this according to instruction by inserting the HEADER info in the layer, but instead it prevents all results from appearing. The property layer is set this way. 3) Query issue 3--> I had the query results in the last chameleon version set up so that if the query results had http:// at the beginning it would convert the text to "Click here to view photo" as a link. Example in the photograph layer. I cannot seem to figure out were to put the if statement in the new query tool. Solved, I changed the path to the photo in the attributes into code to open a link. ie; Click for Photo 4) Reference image is not showing up, before the upgrade it was fine. I had simply replaced the keymap widget file with the old one from before the upgrade. 5) I also have a lot of space at the bottom of the web page that I can't seem to get rid of. 6) The copyright text disappears after you navigate; I need it to be there at all time. 7) The legend looses its status after a page refresh This was solved by inserting scroll bars that are referecend in the CSS and HTML files. 8) In the legend, at the layer level I would like to be able to read the name and replace the underscore with a space, I have done this at the group and class level but could not achieve it at the layer level. 9) Legend icons are not appearing in Firefox, they were before the upgrade. Solved, the path had to be corrected. These are some of the last issue plaguing me and any insight on any of them would be much appreciated. If you require any files please do not hesitate to ask. I am running this on windows server 2003 and using apache. I am using ms4w version 1.4.1 with Chameleon. I do have some JavaScript skills but I am currently still taking my first course and I have no PHP skills as of yet. Website http://142.176.0.171 username-geonet password-flood Also if anybody finds other errors or could offer advice about the page please don't hesitate. Thank You ******************************** Mariette Hachey GIS Technologist GeoNet Technologies Inc. Box 22, Suite 211 90 University Ave Charlottetown, PE Canada, C1A 4K9 Bus: (902) 628-3797 Fax: (902) 628-1145 ******************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060412/d7a8acd5/attachment-0001.html From j.lam at i-real.nl Wed Apr 12 08:29:16 2006 From: j.lam at i-real.nl (Jimmy Lam) Date: Wed Apr 12 08:26:55 2006 Subject: [Chameleon] Problem with ZoomAllLayers and sid (session id) Message-ID: <443CF29C.8030302@i-real.nl> Hi all, While working on my first Chameleon app, I experienced a problem with the ZoomAllLayers widget. It just wouldn't zoom to full extent when I clicked on the button. I'm using chameleon.map from the examples where it functioned normally, so the cause weren't the original_extents and original_projection from the WEB/META settings. Then I started to slowly strip sample_enhanced.html from all the widgets and settings till it resembled my own html file. Finally, after comparing the generated phtml files, I found the cause. Widgets like KeepSessionAlive or ZoomFactor, which are direct descendants from CWCWidget, were responsible for adding to the phtml. This is necessary for ZoomAllLayers to work. Widget descendants from NavTool, which inherits from CWCWidget, don't add this. I'm not sure if this is just with ZoomAllLayers or with other widgets too, as I haven't tested with others. There are a few workarounds like adding the sid manually or just use a widget that adds it. Best regards, Jimmy From pspencer at dmsolutions.ca Wed Apr 12 08:30:08 2006 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Wed Apr 12 08:30:06 2006 Subject: [Chameleon] Performance measuring question In-Reply-To: References: Message-ID: <44B8674D-BB7F-438E-9E2B-758C777C2501@dmsolutions.ca> Hardware will always help :) We've had some surprisingly good results with 64 bit processors. Faster hard drives, more ram etc etc Cheers Paul On 12-Apr-06, at 7:29 AM, Gambin Dejan wrote: > Paul, > > Thanks, I'll try that...regarding Chameleon - I suppose there is not > much that can be done? Do you maybe suggest some hardware > modifications > that could increase the speed? > > dejan > >> -----Original Message----- >> From: Paul Spencer [mailto:pspencer@dmsolutions.ca] >> Sent: Wednesday, April 12, 2006 1:20 PM >> To: Gambin Dejan >> Cc: chameleon@lists.maptools.org >> Subject: Re: [Chameleon] Performance measuring question >> >> >> Dejan, >> >> you 'might' get some performance gain out of building a >> shptree index >> for your shape file and perhaps tiling it ... not sure. In general, >> I would more likely suspect Chameleon since it produces quite heavy >> load on the server. Running php as a module should be possible, and >> could give you some performance gain. >> >> Cheers >> >> Paul >> >> On 12-Apr-06, at 6:14 AM, Gambin Dejan wrote: >> >>> Hi list, >>> >>> I have finally finished my first serious Chameleon >> application. It is >>> working very good, but I would like to see if there are >> possibly some >>> performance problems that can be solved because I am >> experiencing slow >>> map drawing sometimes (when zooming in)....I'll try to be more >>> detailed: >>> >>> My current application has several layers of which the one >> is raster >>> layer defined over 12 tif files (40MB each) that I joined using >>> tileindex..I have also internally tiled and created >> internal overviews >>> on each of the tif files... >>> >>> Next I have the main layer, that is roads...it is a LINE shape that >>> has >>> about 1MB (and its dbf has only 73KB with 247 records). >> This layer is >>> also labeled with two lines, one is overlayed over the other... >>> >>> My questions are: >>> >>> 1. Since the data I presented shouldn't be "heavy" and assuming >>> testing >>> on my localhost - what can be the main reason for sometimes slow map >>> drawing? I am using JSAPI mode >>> >>> 2. How to debug it on Windows? How can I see what is causing this >>> slowness? I would like to know if hardware is the reason (disk >>> subsystem >>> or RAM) or the application... >>> >>> 3. I have created my own buttons and icons...maybe they are >>> "heavy"? Are >>> they somehow cached? What about the caching anyway? >>> >>> Any suggestions are welcome >>> >>> Thanks very much >>> >>> regards, dejan >>> >>> _______________________________________________ >>> 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/| >> +-----------------------------------------------------------------+ >> >> >> >> >> > > _______________________________________________ > 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 Jeremy.Sears at CCRS.NRCan.gc.ca Wed Apr 12 09:10:51 2006 From: Jeremy.Sears at CCRS.NRCan.gc.ca (Sears, Jeremy) Date: Wed Apr 12 09:10:55 2006 Subject: [Chameleon] too many rasters! Message-ID: Thanks for the response. Ive figured it it out. It truns out all I needed to do was change the opt_flag value in my html legend template. I had it set to 15, 14 is the value I use now. Thanks! Jeremy _____ From: Delfos, Jacob [mailto:jacob.delfos@maunsell.com] Sent: April 11, 2006 7:48 PM To: Sears, Jeremy; chameleon@lists.maptools.org Subject: RE: [Chameleon] too many rasters! Jeremy, Have a look at this post: http://lists.maptools.org/pipermail/chameleon/2004-October/001526.html That should fix your issue. regards, Jacob _____ From: chameleon-bounces@lists.maptools.org [mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Sears, Jeremy Sent: 12 April 2006 03:27 To: chameleon@lists.maptools.org Subject: [Chameleon] too many rasters! Hi All, Ive got a chameleon app set up. Ive recently been adding raster images to my map. For each image, I have three versions sampled to 150m, 75m, and 30m resolution. In my map file I have each of the three rasters added and set to display only at particular scales. Everything is working fine, except that chameleon shows all three rasters in the legend all the time. How would I go about having 1 legend entry for the three related images? Thanks Jeremy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060412/cf2973b4/attachment.html From mariette.hachey at geonet-tech.com Wed Apr 12 10:04:19 2006 From: mariette.hachey at geonet-tech.com (Mariette) Date: Wed Apr 12 10:04:45 2006 Subject: [Chameleon] FW: Need help in debugging page Message-ID: <007401c65e39$fe0030d0$6600a8c0@CMMIBill> Greetings, thank you for the help. Both issues were solved so its 4 down 5 to go. 1) Query issue 1--> I have the site set up so that it only queries the layer with the active radio button, this functions but an error occurs on IE and Firefox. I would like to get rid of the error. 2) Query issue 2--> I must hide certain results and with the new query tool you set what columns to hide in the Map file. I have done this according to instruction by inserting the HEADER info in the layer, but instead it prevents all results from appearing. The property layer is set this way. 3) Query issue 3--> I had the query results in the last chameleon version set up so that if the query results had http:// at the beginning it would convert the text to "Click here to view photo" as a link. Example in the photograph layer. I cannot seem to figure out were to put the if statement in the new query tool. Solved, I changed the path to the photo in the attributes into code to open a link. ie; Click for Photo 4) Reference image is not showing up, before the upgrade it was fine. I had simply replaced the keymap widget file with the old one from before the upgrade. 5) I also have a lot of space at the bottom of the web page that I can't seem to get rid of. Used the new DOM inspector from firefox to find which div was not set correctly to the appropriate height. 6) The copyright text disappears after you navigate; I need it to be there at all time. 7) The legend looses its status after a page refresh This was solved by inserting scroll bars that are referecend in the CSS and HTML files. 8) In the legend, at the layer level I would like to be able to read the name and replace the underscore with a space, I have done this at the group and class level but could not achieve it at the layer level. 9) Legend icons are not appearing in Firefox, they were before the upgrade. Solved, the path had to be corrected. These are some of the last issue plaguing me and any insight on any of them would be much appreciated. If you require any files please do not hesitate to ask. I am running this on windows server 2003 and using apache. I am using ms4w version 1.4.1 with Chameleon. I do have some JavaScript skills but I am currently still taking my first course and I have no PHP skills as of yet. Website http://142.176.0.171 username-geonet password-flood Also if anybody finds other errors or could offer advice about the page please don't hesitate. Thank You ******************************** Mariette Hachey GIS Technologist GeoNet Technologies Inc. Box 22, Suite 211 90 University Ave Charlottetown, PE Canada, C1A 4K9 Bus: (902) 628-3797 Fax: (902) 628-1145 ******************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060412/b9fbd5fc/attachment-0001.html From mariette.hachey at geonet-tech.com Wed Apr 12 11:40:12 2006 From: mariette.hachey at geonet-tech.com (Mariette) Date: Wed Apr 12 11:40:41 2006 Subject: [Chameleon] FW: Need help in debugging page(query tool) Message-ID: <007e01c65e47$635f8090$6600a8c0@CMMIBill> Greetings, thank you for the help. Both issues were solved so its 5 down 4 to go. 1) Query issue 1--> I have the site set up so that it only queries the layer with the active radio button, this functions but an error occurs on IE and Firefox. I would like to get rid of the error. 2) Query issue 2--> I must hide certain results and with the new query tool you set what columns to hide in the Map file. I have done this according to instruction by inserting the HEADER info in the layer, but instead it prevents all results from appearing. The property layer is set this way. 3) Query issue 3--> I had the query results in the last chameleon version set up so that if the query results had http:// at the beginning it would convert the text to "Click here to view photo" as a link. Example in the photograph layer. I cannot seem to figure out were to put the if statement in the new query tool. Solved, I changed the path to the photo in the attributes into code to open a link. ie; Click for Photo 4) Reference image is not showing up, before the upgrade it was fine. I had simply replaced the keymap widget file with the old one from before the upgrade. Found a line that had an apostraphy in the wrong place and the layer order may have been off in the widget. 5) I also have a lot of space at the bottom of the web page that I can't seem to get rid of. Used the new DOM inspector from firefox to find which div was not set correctly to the appropriate height. 6) The copyright text disappears after you navigate; I need it to be there at all time. 7) The legend looses its status after a page refresh This was solved by inserting scroll bars that are referecend in the CSS and HTML files. 8) In the legend, at the layer level I would like to be able to read the name and replace the underscore with a space, I have done this at the group and class level but could not achieve it at the layer level. 9) Legend icons are not appearing in Firefox, they were before the upgrade. Solved, the path had to be corrected. These are some of the last issue plaguing me and any insight on any of them would be much appreciated. If you require any files please do not hesitate to ask. I am running this on windows server 2003 and using apache. I am using ms4w version 1.4.1 with Chameleon. I do have some JavaScript skills but I am currently still taking my first course and I have no PHP skills as of yet. Website http://142.176.0.171 username-geonet password-flood Also if anybody finds other errors or could offer advice about the page please don't hesitate. Thank You ******************************** Mariette Hachey GIS Technologist GeoNet Technologies Inc. Box 22, Suite 211 90 University Ave Charlottetown, PE Canada, C1A 4K9 Bus: (902) 628-3797 Fax: (902) 628-1145 ******************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060412/5aa5bf6b/attachment.html From jlacroix at mapgears.com Wed Apr 12 11:56:44 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed Apr 12 11:56:49 2006 Subject: [Chameleon] FW: Need help in debugging page In-Reply-To: <007401c65e39$fe0030d0$6600a8c0@CMMIBill> References: <007401c65e39$fe0030d0$6600a8c0@CMMIBill> Message-ID: <443D233C.9090800@mapgears.com> Hi! Mariette wrote: > > 1) Query issue 1? I have the site set up so that it only queries > the layer with the active radio button, this functions but an error > occurs on IE and Firefox. I would like to get rid of the error. What is the error? I don't get it. > 2) Query issue 2? I must hide certain results and with the new > query tool you set what columns to hide in the Map file. I have done > this according to instruction by inserting the HEADER info in the layer, > but instead it prevents all results from appearing. The property layer > is set this way. The normal declaration should be : HEADER "AREA^|PERIMETER^|POPPLACE_^" But this not work I've open bug http://bugzilla.maptools.org/show_bug.cgi?id=1422 to fix that. In the mean time, simply put a title in the header "AREA^Area|PERIMETER^Perimeter|POPPLACE_^Population" > 6) The copyright text disappears after you navigate; I need it to > be there at all time. How did you define the copyright layer? Normally you should only need to do: LAYER NAME "copyright" TYPE annotation STATUS ON TRANSFORM OFF CLASS COLOR 0 0 0 TEXT "Copyright text" LABEL FONT "sans" TYPE TRUETYPE POSITION LR OFFSET 0 0 SIZE 8 BUFFER 1 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END END END > 8) In the legend, at the layer level I would like to be able to > read the name and replace the underscore with a space, I have done this > at the group and class level but could not achieve it at the layer level. You can create a new metadata in your layer ("legend_title" "ttt") and access it in the legend template. [metadata name=] See: http://mapserver.gis.umn.edu/docs/howto/html_legend/#layer-block -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From mariette.hachey at geonet-tech.com Wed Apr 12 13:12:53 2006 From: mariette.hachey at geonet-tech.com (Mariette) Date: Wed Apr 12 13:13:18 2006 Subject: FW: [Chameleon] FW: Need help in debugging page Message-ID: <008a01c65e54$559af400$6600a8c0@CMMIBill> Greetings, 1) The error from the query in IE is a runtime error on line 154, "Object expected", In FireFox "Query Selected is not defined" on the same line. The actual query functions properly. But I want to get rid of the error (if posible). In order to get it use the photography layer, turn it on and select the radio button, refresh and query a photo point. 2) For the copyright text I am using: LAYER NAME copyright STATUS ON TYPE annotation TRANSFORM false FEATURE POINTS 150 385 #this is the position of the text in image coordinates (pixels) END TEXT "? xyz company 2006" #this is your displaying text END CLASS LABEL #defines the font, colors etc. of the text FONT "sans" TYPE TRUETYPE SIZE 8 BUFFER 1 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END END END I did try and use the bit of code you sent me but it crashes mapserver because it does not reconise the "POSITION" piece. As for the legend issue, I created metadata--> "legend_title" "Flood_01" But when I try and call it rather than give me the "Flood_01" It prints off the enter line of code. "[metadata name=]" I looked at the help file you pointed me too but It didn?t help me figure this out. This is the section I have in my template at the layer level [leg_layer_html order=ascending opt_flag=15] [/leg_layer_html] Thank You -----Original Message----- From: chameleon-bounces@lists.maptools.org [mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Julien-Samuel Lacroix Sent: Wednesday, April 12, 2006 12:57 PM To: Mariette Cc: chameleon@lists.maptools.org Subject: Re: [Chameleon] FW: Need help in debugging page Hi! Mariette wrote: > > 1) Query issue 1? I have the site set up so that it only queries > the layer with the active radio button, this functions but an error > occurs on IE and Firefox. I would like to get rid of the error. What is the error? I don't get it. > 2) Query issue 2? I must hide certain results and with the new > query tool you set what columns to hide in the Map file. I have done > this according to instruction by inserting the HEADER info in the layer, > but instead it prevents all results from appearing. The property layer > is set this way. The normal declaration should be : HEADER "AREA^|PERIMETER^|POPPLACE_^" But this not work I've open bug http://bugzilla.maptools.org/show_bug.cgi?id=1422 to fix that. In the mean time, simply put a title in the header "AREA^Area|PERIMETER^Perimeter|POPPLACE_^Population" > 6) The copyright text disappears after you navigate; I need it to > be there at all time. How did you define the copyright layer? Normally you should only need to do: LAYER NAME "copyright" TYPE annotation STATUS ON TRANSFORM OFF CLASS COLOR 0 0 0 TEXT "Copyright text" LABEL FONT "sans" TYPE TRUETYPE POSITION LR OFFSET 0 0 SIZE 8 BUFFER 1 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END END END > 8) In the legend, at the layer level I would like to be able to > read the name and replace the underscore with a space, I have done this > at the group and class level but could not achieve it at the layer level. You can create a new metadata in your layer ("legend_title" "ttt") and access it in the legend template. [metadata name=] See: http://mapserver.gis.umn.edu/docs/howto/html_legend/#layer-block -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ _______________________________________________ Chameleon mailing list Chameleon@lists.maptools.org http://lists.maptools.org/mailman/listinfo/chameleon From JLittle at NRCan.gc.ca Wed Apr 12 18:36:55 2006 From: JLittle at NRCan.gc.ca (Little, John) Date: Wed Apr 12 18:37:16 2006 Subject: [Chameleon] Add point data to database Message-ID: Hi all, I have a chameleon/mapserver application running, and (if possible) would like to use this for entering spatial and attribute data into a postgres database. For example, I'd like to click on the map to open a pop-up with the point location coordinates displayed as well as input boxes for additional attribute data. Then, press the "send" button to add this point data to a postgres database. Is this possible? Does something like this already exist? Or could I perhaps accomplish this by creating a custom widget? or am I simply living in la la land? As you may have guessed - I'm fairly new to the world of chameleon. Thanks for your suggestions :) John -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060412/10651364/attachment.html From jacob.delfos at maunsell.com Wed Apr 12 19:46:38 2006 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Wed Apr 12 19:46:48 2006 Subject: [Chameleon] Performance measuring question Message-ID: <4997F456680DAD4DA1E042C40C463611427045@auper1ex002.au.aecomnet.com> Dejan, It depends very much on your hardware, but I find rasters are mostly the culprit (unless your vector layers are more than 20MB) on systems that have normal hard-drives (IDE or ATA, not SCSI). People running server hardware get better performance for TIF's, because their harddisks are very fast, and they like to reduce load on the CPU. However, I find that on 'normal' machines with 1 harddisk the performance of ECW's is significantly better. If I were you I'd experiment with compressing your TIF's into 1 ECW file, and see what happens. Your image will probably be only 30-50MB. Particularly in a situation where all 12 TIF's need to be drawn, you may be better off with one ECW file. We get great redrawing times even with 2.5GB ecw's on a normal harddisk. Obviously this will go down as users increase, because of increased loan on the CPU. Regards, Jacob > -----Original Message----- > From: chameleon-bounces@lists.maptools.org > [mailto:chameleon-bounces@lists.maptools.org] On Behalf Of > Gambin Dejan > Sent: 12 April 2006 18:14 > To: chameleon@lists.maptools.org > Subject: [Chameleon] Performance measuring question > > Hi list, > > I have finally finished my first serious Chameleon application. It is > working very good, but I would like to see if there are possibly some > performance problems that can be solved because I am experiencing slow > map drawing sometimes (when zooming in)....I'll try to be > more detailed: > > My current application has several layers of which the one is raster > layer defined over 12 tif files (40MB each) that I joined using > tileindex..I have also internally tiled and created internal overviews > on each of the tif files... > > Next I have the main layer, that is roads...it is a LINE > shape that has > about 1MB (and its dbf has only 73KB with 247 records). This layer is > also labeled with two lines, one is overlayed over the other... > > My questions are: > > 1. Since the data I presented shouldn't be "heavy" and > assuming testing > on my localhost - what can be the main reason for sometimes slow map > drawing? I am using JSAPI mode > > 2. How to debug it on Windows? How can I see what is causing this > slowness? I would like to know if hardware is the reason > (disk subsystem > or RAM) or the application... > > 3. I have created my own buttons and icons...maybe they are > "heavy"? Are > they somehow cached? What about the caching anyway? > > Any suggestions are welcome > > Thanks very much > > regards, dejan > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > From jlacroix at mapgears.com Wed Apr 12 20:10:33 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed Apr 12 20:10:40 2006 Subject: [Chameleon] Add point data to database In-Reply-To: References: Message-ID: <443D96F9.3000001@mapgears.com> hi John, We have something here that does something like this, but I can't really share it since it's very very client specific so it would not help much. But that means that what you want is possible. You can start by looking at the Widget development guide. http://chameleon-tiki.maptools.org/tiki-index.php?page=Developing+a+new+Chameleon+Widget If you have any question, don't hesitate to ask. Julien Little, John wrote: > Hi all, > > I have a chameleon/mapserver application running, and (if possible) > would like to use this for entering spatial and attribute data into a > postgres database. > > For example, I'd like to click on the map to open a pop-up with the > point location coordinates displayed as well as input boxes for > additional attribute data. Then, press the "send" button to add this > point data to a postgres database. > > Is this possible? Does something like this already exist? Or could I > perhaps accomplish this by creating a custom widget? or am I simply > living in la la land? > > As you may have guessed - I'm fairly new to the world of chameleon. > > Thanks for your suggestions :) > > John > > > ------------------------------------------------------------------------ > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From jlacroix at mapgears.com Wed Apr 12 21:26:05 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed Apr 12 21:26:12 2006 Subject: FW: [Chameleon] FW: Need help in debugging page In-Reply-To: <008a01c65e54$559af400$6600a8c0@CMMIBill> References: <008a01c65e54$559af400$6600a8c0@CMMIBill> Message-ID: <443DA8AD.7000800@mapgears.com> Hi, Comment In-Line. Mariette wrote: > Greetings, > 1) The error from the query in IE is a runtime error on line 154, "Object > expected", In FireFox "Query Selected is not defined" on the same line. The > actual query functions properly. But I want to get rid of the error (if > posible). In order to get it use the photography layer, turn it on and > select the radio button, refresh and query a photo point. In your myOnLoad function in your template file. Remove the line: goEventManager.registerForEvent( 'ON_QUERY', 'QuerySelected' ); > 2) For the copyright text I am using: [snip] I copied/pasted in the chameleon.map sample mapfile and it showed up when I modified the POINT position to 200 200. Maybe you can try to add a UNITS PIXELS in you layer. > As for the legend issue, I created metadata--> "legend_title" "Flood_01" > But when I try and call it rather than give me the "Flood_01" It prints off > the enter line of code. > "[metadata name=]" Sorry, try removing the '<' and '>' characters. This will give you: [metadata name=legend_title] Note that if a layer does not have this metadata defined, you will get the tag printed in your legend instead of a metadata value. Was there any other issue? Best regards Julien -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From jlacroix at mapgears.com Wed Apr 12 21:36:58 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed Apr 12 21:37:04 2006 Subject: [Chameleon] Performance measuring question In-Reply-To: References: Message-ID: <443DAB3A.2090007@mapgears.com> Hi, If you are confident in your PHP and Chameleon developper skills you can try to profile your application. A tool like xdebug (http://www.xdebug.org/) can be helpful, but you have to understand the ouput. But the first place to look, like others said, is the mapfile. Remove the PROJECTION object and prefilter your vector and raster data to certain scales. To help you optimizing your mapfile, try using a simple mapscript example instead of chameleon. draw(); $endtime = microtime(1); $image_url=$image->saveWebImage(); echo 'Drawn in '.($endtime-$starttime).' second.'; ?> Example 1: Displaying a map > Julien Gambin Dejan wrote: > Hi list, > > I have finally finished my first serious Chameleon application. It is > working very good, but I would like to see if there are possibly some > performance problems that can be solved because I am experiencing slow > map drawing sometimes (when zooming in)....I'll try to be more detailed: > > My current application has several layers of which the one is raster > layer defined over 12 tif files (40MB each) that I joined using > tileindex..I have also internally tiled and created internal overviews > on each of the tif files... > > Next I have the main layer, that is roads...it is a LINE shape that has > about 1MB (and its dbf has only 73KB with 247 records). This layer is > also labeled with two lines, one is overlayed over the other... > > My questions are: > > 1. Since the data I presented shouldn't be "heavy" and assuming testing > on my localhost - what can be the main reason for sometimes slow map > drawing? I am using JSAPI mode > > 2. How to debug it on Windows? How can I see what is causing this > slowness? I would like to know if hardware is the reason (disk subsystem > or RAM) or the application... > > 3. I have created my own buttons and icons...maybe they are "heavy"? Are > they somehow cached? What about the caching anyway? > > Any suggestions are welcome > > Thanks very much > > regards, dejan > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From b.vdeijnden at agi.rws.minvenw.nl Thu Apr 13 02:14:06 2006 From: b.vdeijnden at agi.rws.minvenw.nl (Eijnden, B. van den (Bart)) Date: Thu Apr 13 02:22:57 2006 Subject: [Chameleon] Add point data to database Message-ID: <1FEE21DC1054D5119FCC0002A5517B2405F97A95@rws-mdi-dt2-01.agi.rws.minvenw.nl> Also, have a look at the MapNotes widget for a start, which does a similar thing but writes a shapefile. Best regards, Bart -----Oorspronkelijk bericht----- Van: chameleon-bounces@lists.maptools.org [mailto:chameleon-bounces@lists.maptools.org]Namens Julien-Samuel Lacroix Verzonden: donderdag 13 april 2006 2:11 Aan: Little, John CC: chameleon@lists.maptools.org Onderwerp: Re: [Chameleon] Add point data to database hi John, We have something here that does something like this, but I can't really share it since it's very very client specific so it would not help much. But that means that what you want is possible. You can start by looking at the Widget development guide. http://chameleon-tiki.maptools.org/tiki-index.php?page=Developing+a+new+Cham eleon+Widget If you have any question, don't hesitate to ask. Julien Little, John wrote: > Hi all, > > I have a chameleon/mapserver application running, and (if possible) > would like to use this for entering spatial and attribute data into a > postgres database. > > For example, I'd like to click on the map to open a pop-up with the > point location coordinates displayed as well as input boxes for > additional attribute data. Then, press the "send" button to add this > point data to a postgres database. > > Is this possible? Does something like this already exist? Or could I > perhaps accomplish this by creating a custom widget? or am I simply > living in la la land? > > As you may have guessed - I'm fairly new to the world of chameleon. > > Thanks for your suggestions :) > > John > > > ------------------------------------------------------------------------ > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ _______________________________________________ Chameleon mailing list Chameleon@lists.maptools.org http://lists.maptools.org/mailman/listinfo/chameleon Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From b.vdeijnden at agi.rws.minvenw.nl Thu Apr 13 03:31:45 2006 From: b.vdeijnden at agi.rws.minvenw.nl (Eijnden, B. van den (Bart)) Date: Thu Apr 13 03:37:52 2006 Subject: [Chameleon] PHP safe mode Message-ID: <1FEE21DC1054D5119FCC0002A5517B2405F97A97@rws-mdi-dt2-01.agi.rws.minvenw.nl> Hi list, just wanting to let you all know that we have managed to succesfully run Chameleon under PHP safe mode (PHP 4). Here are the little tweaks we had to do: 1) have all the scripts and directories owned by apache (Linux only) 2) add GDFONTPATH to the allowed list of environment variables (this is needed for the buttonizer which uses putenv): safe_mode_allowed_env_vars = PHP_,GDFONTPATH 3) make sure the wmsparse utility can be executed: safe_mode_exec_dir =/data/geoservices-50/apps/chameleon/htdocs/common/wmsparse/linux/ 4) add the Mapscript module to php.ini (extension=) since dl's are not allowed extension=php_mapscript.so.4.8.1 Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From Dejan.Gambin at pula.hr Thu Apr 13 05:33:53 2006 From: Dejan.Gambin at pula.hr (Gambin Dejan) Date: Thu Apr 13 05:34:01 2006 Subject: [Chameleon] pdfMap question Message-ID: Hi Jeremy (and possibly others), I have copied all my pdfMap files to another server and now it gives me an error: "file does not begin with '%PDF-'" when trying to open the produced pdf file...I saw many posts regarding this issue but maybe you can tell me what do you think can be the problem? (my blankmap.pdf file is exactly the same as the one on my localhost) dejan From Dejan.Gambin at pula.hr Thu Apr 13 06:09:49 2006 From: Dejan.Gambin at pula.hr (Gambin Dejan) Date: Thu Apr 13 06:10:12 2006 Subject: [Chameleon] RE: pdfMap question Message-ID: Hi, I have solved this problem....now maybe you can tell me why I am getting a blank pdf page when using IE? (It works OK in FireFox) dejan > -----Original Message----- > From: Gambin Dejan > Sent: Thursday, April 13, 2006 11:34 AM > To: 'Sears, Jeremy' > Cc: 'chameleon@lists.maptools.org' > Subject: pdfMap question > > > Hi Jeremy (and possibly others), > > I have copied all my pdfMap files to another server and now > it gives me an error: "file does not begin with '%PDF-'" when > trying to open the produced pdf file...I saw many posts > regarding this issue but maybe you can tell me what do you > think can be the problem? (my blankmap.pdf file is exactly > the same as the one on my localhost) > > dejan > From chameleon.listserver at gmail.com Thu Apr 13 06:45:26 2006 From: chameleon.listserver at gmail.com (listserver server) Date: Thu Apr 13 06:45:30 2006 Subject: [Chameleon] Problems with layer legend widget and Postgis Layer Message-ID: <253120740604130345n2a22f7x8887803eff1e4770@mail.gmail.com> when i click on the layer label icon of that widget i recive these warnings and i cannot see any attribute of layers! Warning: Invalid argument supplied for foreach() in C:\ms4w\apps\chameleon\htdocs\widgets\LayerAttributes.php on line 188 Warning: array_keys(): The first argument should be an array in C:\ms4w\apps\chameleon\htdocs\widgets\LayerLabels\LayerLabelsPopup.phtml on line 90 *------- Additional Comment #1From Julien-Samuel Lacroix 2006-04-11 11:19 ------- * I'm not currently setup with PoastGIS can ou try this: In C:\ms4w\apps\chameleon\htdocs\widgets\LayerAttributes.php on line 188: Add this if() around the foreach: if($oShape->values) { foreach($oShape->values as $key => $value) { $aszAttributes['fields'][$key] = "string"; } } else $aszAttributes['fields'] = array(); Does it fix the problem? *------- Additional Comment #2From skynewbie 2006-04-13 04:52 ------- * Now i have not errors but in Attributes i can't find valeus! Here is the bug report: http://bugzilla.maptools.org/show_bug.cgi?id=1411 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060413/ef2afc6d/attachment.html From mariette.hachey at geonet-tech.com Thu Apr 13 09:00:42 2006 From: mariette.hachey at geonet-tech.com (Mariette) Date: Thu Apr 13 09:01:20 2006 Subject: FW: FW: [Chameleon] FW: Need help in debugging page Message-ID: <001201c65efa$458029e0$6600a8c0@CMMIBill> Greetings, All issues have been resolved. The copyright text required the UNITS to function properly, the error is now gone and the metadata is working like a charm. And that was all the errors on my site. Thank You for the help. Mariette -----Original Message----- From: chameleon-bounces@lists.maptools.org [mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Julien-Samuel Lacroix Sent: Wednesday, April 12, 2006 10:26 PM To: Mariette Cc: chameleon@lists.maptools.org Subject: Re: FW: [Chameleon] FW: Need help in debugging page Hi, Comment In-Line. Mariette wrote: > Greetings, > 1) The error from the query in IE is a runtime error on line 154, "Object > expected", In FireFox "Query Selected is not defined" on the same line. The > actual query functions properly. But I want to get rid of the error (if > posible). In order to get it use the photography layer, turn it on and > select the radio button, refresh and query a photo point. In your myOnLoad function in your template file. Remove the line: goEventManager.registerForEvent( 'ON_QUERY', 'QuerySelected' ); > 2) For the copyright text I am using: [snip] I copied/pasted in the chameleon.map sample mapfile and it showed up when I modified the POINT position to 200 200. Maybe you can try to add a UNITS PIXELS in you layer. > As for the legend issue, I created metadata--> "legend_title" "Flood_01" > But when I try and call it rather than give me the "Flood_01" It prints off > the enter line of code. > "[metadata name=]" Sorry, try removing the '<' and '>' characters. This will give you: [metadata name=legend_title] Note that if a layer does not have this metadata defined, you will get the tag printed in your legend instead of a metadata value. Was there any other issue? Best regards Julien -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ _______________________________________________ Chameleon mailing list Chameleon@lists.maptools.org http://lists.maptools.org/mailman/listinfo/chameleon From Jeremy.Sears at CCRS.NRCan.gc.ca Thu Apr 13 09:53:18 2006 From: Jeremy.Sears at CCRS.NRCan.gc.ca (Sears, Jeremy) Date: Thu Apr 13 09:53:24 2006 Subject: [Chameleon] RE: pdfMap question Message-ID: Hmmmmm, I havent seen that yet. . . Is the other server a different OS that the original? What program were you using to view the produced pdf file (or perhaps what browser were you using to call the viewer) in the operational and non-operational situations? Also .. You mention : "file does not begin with '%PDF-'" perhaps you could tryn' change "blankmap.pdf" to "blankmap.PDF" ... Or make try making sure that the output pdf has all uppercase letters in the filename extension (if your writing your pdf to disk rather than sending direct to the browser..). Keep me posted. Jeremy -----Original Message----- From: Gambin Dejan [mailto:Dejan.Gambin@pula.hr] Sent: April 13, 2006 5:34 AM To: Sears, Jeremy Cc: chameleon@lists.maptools.org Subject: pdfMap question Hi Jeremy (and possibly others), I have copied all my pdfMap files to another server and now it gives me an error: "file does not begin with '%PDF-'" when trying to open the produced pdf file...I saw many posts regarding this issue but maybe you can tell me what do you think can be the problem? (my blankmap.pdf file is exactly the same as the one on my localhost) dejan From Dejan.Gambin at pula.hr Thu Apr 13 09:57:15 2006 From: Dejan.Gambin at pula.hr (Gambin Dejan) Date: Thu Apr 13 09:57:25 2006 Subject: [Chameleon] RE: pdfMap question Message-ID: Hi I solved this ...but not the other error I sent the mail about.....getting a blank page with IE :-(( dejan > -----Original Message----- > From: Sears, Jeremy [mailto:Jeremy.Sears@CCRS.NRCan.gc.ca] > Sent: Thursday, April 13, 2006 3:53 PM > To: Gambin Dejan > Cc: chameleon@lists.maptools.org > Subject: RE: pdfMap question > > > Hmmmmm, I havent seen that yet. . . > Is the other server a different OS that the original? What > program were you using to view the produced pdf file (or > perhaps what browser were you using to call the viewer) in > the operational and non-operational situations? > Also .. You mention : "file does not begin with '%PDF-'" > perhaps you could tryn' change "blankmap.pdf" to > "blankmap.PDF" ... Or make try making sure that the output > pdf has all uppercase letters in the filename extension (if > your writing your pdf to disk rather than sending direct to > the browser..). Keep me posted. > > Jeremy > > > -----Original Message----- > From: Gambin Dejan [mailto:Dejan.Gambin@pula.hr] > Sent: April 13, 2006 5:34 AM > To: Sears, Jeremy > Cc: chameleon@lists.maptools.org > Subject: pdfMap question > > Hi Jeremy (and possibly others), > > I have copied all my pdfMap files to another server and now > it gives me an > error: "file does not begin with '%PDF-'" when trying to open > the produced pdf file...I saw many posts regarding this issue > but maybe you can tell me what do you think can be the > problem? (my blankmap.pdf file is exactly the same as the one > on my localhost) > > dejan > From Jeremy.Sears at CCRS.NRCan.gc.ca Thu Apr 13 09:59:07 2006 From: Jeremy.Sears at CCRS.NRCan.gc.ca (Sears, Jeremy) Date: Thu Apr 13 09:59:12 2006 Subject: [Chameleon] RE: pdfMap question Message-ID: Good to hear you fixed it.. What was the problem? RE:IE Im not sure. Do you have the latest version of IE (maby an older version works better). Personally I use almost exclusivly firefox, the little bit of testing ive done with IE tells me that IE handels the inline pdfs differently than FF, mainly IE by default seems to want to download the pdf to a location on disk, rather than just show it in the browser. .. Have you modified the header output in pdfmap.phtml? Maby that's the problem.. Again, Im shotting in the dark... Jeremy -----Original Message----- From: chameleon-bounces@lists.maptools.org [mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Gambin Dejan Sent: April 13, 2006 6:10 AM To: chameleon@lists.maptools.org Subject: [Chameleon] RE: pdfMap question Hi, I have solved this problem....now maybe you can tell me why I am getting a blank pdf page when using IE? (It works OK in FireFox) dejan > -----Original Message----- > From: Gambin Dejan > Sent: Thursday, April 13, 2006 11:34 AM > To: 'Sears, Jeremy' > Cc: 'chameleon@lists.maptools.org' > Subject: pdfMap question > > > Hi Jeremy (and possibly others), > > I have copied all my pdfMap files to another server and now it gives > me an error: "file does not begin with '%PDF-'" when trying to open > the produced pdf file...I saw many posts regarding this issue but > maybe you can tell me what do you think can be the problem? (my > blankmap.pdf file is exactly the same as the one on my localhost) > > dejan > _______________________________________________ Chameleon mailing list Chameleon@lists.maptools.org http://lists.maptools.org/mailman/listinfo/chameleon From catalin_gn at yahoo.com Sat Apr 15 12:41:33 2006 From: catalin_gn at yahoo.com (Catalin G.) Date: Sat Apr 15 12:41:54 2006 Subject: [Chameleon] Installing Chameleon error Message-ID: <20060415164133.23476.qmail@web31315.mail.mud.yahoo.com> I just installed Chameleon and here is the problem. I have in my header this error: ERROR: Button.php was unable to find the image 'icons/icon_pan_se.png' in any of the registered or default skins. The result is that bellow my map menu I have a big and grey table. Bellow this is the map. I added the folder with the icons for the Pans in my image folder, and now I got my buttons, but the big table is still there and the map is still bellow it. What can I do? Catalin G. --------------------------------- Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060415/195388af/attachment.html From mfyahya at gmail.com Sun Apr 16 02:44:27 2006 From: mfyahya at gmail.com (Yahya Mohammad) Date: Sun Apr 16 02:45:13 2006 Subject: [Chameleon] How to not show a layer in XMLThemeLegend? Message-ID: <200604161044.27261.mfyahya@gmail.com> Hi all, I have a layer of type Query in my mapfile and do not want this to show up in the legend layer list. I did not enter this layer anywhere in my legend_theme.xml file but it still shows up with the layer name from the mapfile. I tried creating and tag for this layer, with visible=false attribute, and that got rid of the layer name, but the theme name was still there. I'm stuck at this point. Any help is welcome! Thanks, Yahya Mohammad From racine_pierre at hotmail.com Sun Apr 16 10:42:35 2006 From: racine_pierre at hotmail.com (Pierre Racine) Date: Sun Apr 16 10:42:44 2006 Subject: [Chameleon] MapTips and JSAPI In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97A62@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: Hi Bart, I'have done this work of adapting MapTips to JSAPI last summer. It works pretty fine using also AJAX and everything. I'have sent my code to Paul Spencer many months ago so he could integrate it in the next release. But I never got any answer after two or three emails. I'have wrote to Juilien-Samuel Lacroix three weeks ago to see if this code would be in the upcoming release. No news since then. Amazingly this guy is working 250km from me... Or people at DMSolution to busy to integrate stuff or they do retain some informations. I would not be surprised if this mail do not reach the newsgroup. Anyway this is a strange Open Source project and this is very frustrating. Many people are rebuiding the wheel because of a lack of coordination. Probably there is something I haven't yet understand... Pierre Racine >From: "Eijnden, B. van den (Bart)" >To: "Eijnden, B. van den (Bart)" , >"'chameleon@lists.maptools.org'" >Subject: RE: [Chameleon] MapTips and JSAPI >Date: Thu, 6 Apr 2006 09:01:19 +0200 > >Okay, gotten a little progress on this one. > >I have written a litter wrapper script around the MapTips widget (based on >UpdateMap.php), called maptips.php. > >Using the JSAPI event manager, I do an AJAX call to this script whenever >the >map extent changes. For this I had to adapt the MapTips widget not to >include the and HTML tag when generating the ImageMap, since >the content is set using innerHTML. I'll suggest a fix for this in >bugzilla, >i.e. the GenerateImageMap function should not add the header but the >DrawPublish function should do that. > >So basically in the HTML template: > >1) at the onload, register the event: >goCWCJSAPI.RegisterEvent(MAP_EXTENT_CHANGED, "GetImageMap") > >2) GetImageMap function does a AJAX call to maptips.php: >function GetImageMap() >{ > call('/chameleon/widgets/MapTips/maptips.php?sid=[$gszSessId$]&minx=' + >goCWCJSAPI.oMap.minx + > '&miny='+goCWCJSAPI.oMap.miny + '&maxx=' + goCWCJSAPI.oMap.maxx + > '&maxy='+goCWCJSAPI.oMap.maxy, null, processAjax); >} > >3) when the browser receives the content from maptips.php, it will trigger >the processAjax function which sets the innerHTML (IE specific btw): >function processAjax(szResults) >{ > if (document.all) > document.all.maptips_imagemap6.innerHTML= "'"+szResults+"'"; >} > >4) don't forget to add the imagemap to your HTML template: > > >The maptips.php wrapper script does the necessary processing to generate >the >image map based on the MapTips widget, an excerpt is: > >$oMap = $oMapSession->oMap; >$oMap->setExtent($_GET['minx'], $_GET['miny'], $_GET['maxx'], >$_GET['maxy']); >$_SESSION["gszCurrentState"] = $oMapSession->saveState(); >include_once("MapTips.widget.php"); >$oWidget = new MapTips(); >$oWidget->maParams["LAYER"] = 'werkzaamheden'; >$oWidget->maParams["ATTRIBUTES"] = 'WEGNUMMER,STT_NAAM,GME_NAAM'; >$oWidget->maParams["ONMOUSEOVER"] = 'myMaptipsOver'; >$oWidget->maParams["ONMOUSEOUT"] = 'myMaptipsOut'; >$oWidget->maParams["VISIBLE"] = 'false'; >$oWidget->InitDefaults(); >$oWidget->SetMap($oMapSession); >echo $oWidget->GenerateImageMap(); > >This shows the advantages of using AJAX in combination with Chameleon >JSAPI, >maybe not everybody knows but starting Chameleon 2.4 there is a small ajax >library in chameleon/htdocs/common/ajax/xhr.js which has the call >javascript >function in it which I use in GetImageMap. > >Best regards, >Bart > >-----Oorspronkelijk bericht----- >Van: chameleon-bounces@lists.maptools.org >[mailto:chameleon-bounces@lists.maptools.org]Namens Eijnden, B. van den >(Bart) >Verzonden: woensdag 5 april 2006 13:13 >Aan: 'chameleon@lists.maptools.org' >Onderwerp: [Chameleon] MapTips and JSAPI > > >Hi list, > >did anyone ever attempt to adapt the MapTips widget to work in JSAPI mode? > >Would this even be possible? I.e. can the current generation of browsers >handle an imagemap which is not embedded in the HTML page? > >Best regards, >Bart > > >Disclaimer >************************************************************************ >Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis >hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >informeren. Wij adviseren u om bij twijfel over de juistheid of de >volledigheid van de mail contact met afzender op te nemen. > >This message shall not constitute any rights or obligations. >This message is intended solely for the addressee. >If you have received this message in error, please delete it and >notify the sender immediately. When in doubt whether this message >is correct or complete, please contact the sender. >************************************************************************ > >_______________________________________________ >Chameleon mailing list >Chameleon@lists.maptools.org >http://lists.maptools.org/mailman/listinfo/chameleon > > >Disclaimer >************************************************************************ >Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis >hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >informeren. Wij adviseren u om bij twijfel over de juistheid of de >volledigheid van de mail contact met afzender op te nemen. > >This message shall not constitute any rights or obligations. >This message is intended solely for the addressee. >If you have received this message in error, please delete it and >notify the sender immediately. When in doubt whether this message >is correct or complete, please contact the sender. >************************************************************************ > >_______________________________________________ >Chameleon mailing list >Chameleon@lists.maptools.org >http://lists.maptools.org/mailman/listinfo/chameleon From racine_pierre at hotmail.com Sun Apr 16 11:14:04 2006 From: racine_pierre at hotmail.com (Pierre Racine) Date: Sun Apr 16 11:14:12 2006 Subject: [Chameleon] MapTips and JSAPI In-Reply-To: Message-ID: Ok, I just found the answer from Julien-Samuel... My apologies... Seems that my mail filters aren't fine tuned. Sorry again. It seems that the code was lost in the process. Julien-Samuel is looking forward to find it. I presume many people are experiencing the same frustration. Seems to me that DMSolution should act mostly as an orientator and integrator of everything that is being developed by the Chameleon community... Pierre Racine >From: "Pierre Racine" >To: b.vdeijnden@agi.rws.minvenw.nl, chameleon@lists.maptools.org >Subject: RE: [Chameleon] MapTips and JSAPI >Date: Sun, 16 Apr 2006 14:42:35 +0000 > >Hi Bart, > >I'have done this work of adapting MapTips to JSAPI last summer. It works >pretty fine using also AJAX and everything. I'have sent my code to Paul >Spencer many months ago so he could integrate it in the next release. But I >never got any answer after two or three emails. I'have wrote to >Juilien-Samuel Lacroix three weeks ago to see if this code would be in the >upcoming release. No news since then. Amazingly this guy is working 250km >from me... Or people at DMSolution to busy to integrate stuff or they do >retain some informations. I would not be surprised if this mail do not >reach the newsgroup. > >Anyway this is a strange Open Source project and this is very frustrating. >Many people are rebuiding the wheel because of a lack of coordination. > >Probably there is something I haven't yet understand... > >Pierre Racine > >>From: "Eijnden, B. van den (Bart)" >>To: "Eijnden, B. van den (Bart)" , >>"'chameleon@lists.maptools.org'" >>Subject: RE: [Chameleon] MapTips and JSAPI >>Date: Thu, 6 Apr 2006 09:01:19 +0200 >> >>Okay, gotten a little progress on this one. >> >>I have written a litter wrapper script around the MapTips widget (based on >>UpdateMap.php), called maptips.php. >> >>Using the JSAPI event manager, I do an AJAX call to this script whenever >>the >>map extent changes. For this I had to adapt the MapTips widget not to >>include the and HTML tag when generating the ImageMap, since >>the content is set using innerHTML. I'll suggest a fix for this in >>bugzilla, >>i.e. the GenerateImageMap function should not add the header but the >>DrawPublish function should do that. >> >>So basically in the HTML template: >> >>1) at the onload, register the event: >>goCWCJSAPI.RegisterEvent(MAP_EXTENT_CHANGED, "GetImageMap") >> >>2) GetImageMap function does a AJAX call to maptips.php: >>function GetImageMap() >>{ >> call('/chameleon/widgets/MapTips/maptips.php?sid=[$gszSessId$]&minx=' + >>goCWCJSAPI.oMap.minx + >> '&miny='+goCWCJSAPI.oMap.miny + '&maxx=' + goCWCJSAPI.oMap.maxx + >> '&maxy='+goCWCJSAPI.oMap.maxy, null, processAjax); >>} >> >>3) when the browser receives the content from maptips.php, it will trigger >>the processAjax function which sets the innerHTML (IE specific btw): >>function processAjax(szResults) >>{ >> if (document.all) >> document.all.maptips_imagemap6.innerHTML= "'"+szResults+"'"; >>} >> >>4) don't forget to add the imagemap to your HTML template: >> >> >>The maptips.php wrapper script does the necessary processing to generate >>the >>image map based on the MapTips widget, an excerpt is: >> >>$oMap = $oMapSession->oMap; >>$oMap->setExtent($_GET['minx'], $_GET['miny'], $_GET['maxx'], >>$_GET['maxy']); >>$_SESSION["gszCurrentState"] = $oMapSession->saveState(); >>include_once("MapTips.widget.php"); >>$oWidget = new MapTips(); >>$oWidget->maParams["LAYER"] = 'werkzaamheden'; >>$oWidget->maParams["ATTRIBUTES"] = 'WEGNUMMER,STT_NAAM,GME_NAAM'; >>$oWidget->maParams["ONMOUSEOVER"] = 'myMaptipsOver'; >>$oWidget->maParams["ONMOUSEOUT"] = 'myMaptipsOut'; >>$oWidget->maParams["VISIBLE"] = 'false'; >>$oWidget->InitDefaults(); >>$oWidget->SetMap($oMapSession); >>echo $oWidget->GenerateImageMap(); >> >>This shows the advantages of using AJAX in combination with Chameleon >>JSAPI, >>maybe not everybody knows but starting Chameleon 2.4 there is a small ajax >>library in chameleon/htdocs/common/ajax/xhr.js which has the call >>javascript >>function in it which I use in GetImageMap. >> >>Best regards, >>Bart >> >>-----Oorspronkelijk bericht----- >>Van: chameleon-bounces@lists.maptools.org >>[mailto:chameleon-bounces@lists.maptools.org]Namens Eijnden, B. van den >>(Bart) >>Verzonden: woensdag 5 april 2006 13:13 >>Aan: 'chameleon@lists.maptools.org' >>Onderwerp: [Chameleon] MapTips and JSAPI >> >> >>Hi list, >> >>did anyone ever attempt to adapt the MapTips widget to work in JSAPI mode? >> >>Would this even be possible? I.e. can the current generation of browsers >>handle an imagemap which is not embedded in the HTML page? >> >>Best regards, >>Bart >> >> >>Disclaimer >>************************************************************************ >>Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >>uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis >>hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >>informeren. Wij adviseren u om bij twijfel over de juistheid of de >>volledigheid van de mail contact met afzender op te nemen. >> >>This message shall not constitute any rights or obligations. >>This message is intended solely for the addressee. >>If you have received this message in error, please delete it and >>notify the sender immediately. When in doubt whether this message >>is correct or complete, please contact the sender. >>************************************************************************ >> >>_______________________________________________ >>Chameleon mailing list >>Chameleon@lists.maptools.org >>http://lists.maptools.org/mailman/listinfo/chameleon >> >> >>Disclaimer >>************************************************************************ >>Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >>uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis >>hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >>informeren. Wij adviseren u om bij twijfel over de juistheid of de >>volledigheid van de mail contact met afzender op te nemen. >> >>This message shall not constitute any rights or obligations. >>This message is intended solely for the addressee. >>If you have received this message in error, please delete it and >>notify the sender immediately. When in doubt whether this message >>is correct or complete, please contact the sender. >>************************************************************************ >> >>_______________________________________________ >>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 pspencer at dmsolutions.ca Sun Apr 16 12:14:56 2006 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Sun Apr 16 12:15:09 2006 Subject: [Chameleon] MapTips and JSAPI In-Reply-To: References: Message-ID: <6E330DC2-FE14-4BEF-A18C-DF3BF1FFEDC3@dmsolutions.ca> Hi Pierre, I emailed you back in December asking you to forward the code to Julien. Cheers Paul On 16-Apr-06, at 10:42 AM, Pierre Racine wrote: > Hi Bart, > > I'have done this work of adapting MapTips to JSAPI last summer. It > works pretty fine using also AJAX and everything. I'have sent my > code to Paul Spencer many months ago so he could integrate it in > the next release. But I never got any answer after two or three > emails. I'have wrote to Juilien-Samuel Lacroix three weeks ago to > see if this code would be in the upcoming release. No news since > then. Amazingly this guy is working 250km from me... Or people at > DMSolution to busy to integrate stuff or they do retain some > informations. I would not be surprised if this mail do not reach > the newsgroup. > > Anyway this is a strange Open Source project and this is very > frustrating. Many people are rebuiding the wheel because of a lack > of coordination. > > Probably there is something I haven't yet understand... > > Pierre Racine > >> From: "Eijnden, B. van den (Bart)" >> To: "Eijnden, B. van den (Bart)" >> , >> "'chameleon@lists.maptools.org'" >> Subject: RE: [Chameleon] MapTips and JSAPI >> Date: Thu, 6 Apr 2006 09:01:19 +0200 >> >> Okay, gotten a little progress on this one. >> >> I have written a litter wrapper script around the MapTips widget >> (based on >> UpdateMap.php), called maptips.php. >> >> Using the JSAPI event manager, I do an AJAX call to this script >> whenever the >> map extent changes. For this I had to adapt the MapTips widget not to >> include the and HTML tag when generating the >> ImageMap, since >> the content is set using innerHTML. I'll suggest a fix for this in >> bugzilla, >> i.e. the GenerateImageMap function should not add the header >> but the >> DrawPublish function should do that. >> >> So basically in the HTML template: >> >> 1) at the onload, register the event: >> goCWCJSAPI.RegisterEvent(MAP_EXTENT_CHANGED, "GetImageMap") >> >> 2) GetImageMap function does a AJAX call to maptips.php: >> function GetImageMap() >> { >> call('/chameleon/widgets/MapTips/maptips.php?sid=[$gszSessId$] >> &minx=' + >> goCWCJSAPI.oMap.minx + >> '&miny='+goCWCJSAPI.oMap.miny + '&maxx=' + goCWCJSAPI.oMap.maxx + >> '&maxy='+goCWCJSAPI.oMap.maxy, null, processAjax); >> } >> >> 3) when the browser receives the content from maptips.php, it will >> trigger >> the processAjax function which sets the innerHTML (IE specific btw): >> function processAjax(szResults) >> { >> if (document.all) >> document.all.maptips_imagemap6.innerHTML= "'"+szResults+"'"; >> } >> >> 4) don't forget to add the imagemap to your HTML template: >> >> >> The maptips.php wrapper script does the necessary processing to >> generate the >> image map based on the MapTips widget, an excerpt is: >> >> $oMap = $oMapSession->oMap; >> $oMap->setExtent($_GET['minx'], $_GET['miny'], $_GET['maxx'], >> $_GET['maxy']); >> $_SESSION["gszCurrentState"] = $oMapSession->saveState(); >> include_once("MapTips.widget.php"); >> $oWidget = new MapTips(); >> $oWidget->maParams["LAYER"] = 'werkzaamheden'; >> $oWidget->maParams["ATTRIBUTES"] = 'WEGNUMMER,STT_NAAM,GME_NAAM'; >> $oWidget->maParams["ONMOUSEOVER"] = 'myMaptipsOver'; >> $oWidget->maParams["ONMOUSEOUT"] = 'myMaptipsOut'; >> $oWidget->maParams["VISIBLE"] = 'false'; >> $oWidget->InitDefaults(); >> $oWidget->SetMap($oMapSession); >> echo $oWidget->GenerateImageMap(); >> >> This shows the advantages of using AJAX in combination with >> Chameleon JSAPI, >> maybe not everybody knows but starting Chameleon 2.4 there is a >> small ajax >> library in chameleon/htdocs/common/ajax/xhr.js which has the call >> javascript >> function in it which I use in GetImageMap. >> >> Best regards, >> Bart >> >> -----Oorspronkelijk bericht----- >> Van: chameleon-bounces@lists.maptools.org >> [mailto:chameleon-bounces@lists.maptools.org]Namens Eijnden, B. >> van den >> (Bart) >> Verzonden: woensdag 5 april 2006 13:13 >> Aan: 'chameleon@lists.maptools.org' >> Onderwerp: [Chameleon] MapTips and JSAPI >> >> >> Hi list, >> >> did anyone ever attempt to adapt the MapTips widget to work in >> JSAPI mode? >> >> Would this even be possible? I.e. can the current generation of >> browsers >> handle an imagemap which is not embedded in the HTML page? >> >> Best regards, >> Bart >> >> >> Disclaimer >> ********************************************************************* >> *** >> Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >> uitsluitend bestemd voor de geadresseerde. Als u dit bericht per >> abuis >> hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >> informeren. Wij adviseren u om bij twijfel over de juistheid of de >> volledigheid van de mail contact met afzender op te nemen. >> >> This message shall not constitute any rights or obligations. >> This message is intended solely for the addressee. >> If you have received this message in error, please delete it and >> notify the sender immediately. When in doubt whether this message >> is correct or complete, please contact the sender. >> ********************************************************************* >> *** >> >> _______________________________________________ >> Chameleon mailing list >> Chameleon@lists.maptools.org >> http://lists.maptools.org/mailman/listinfo/chameleon >> >> >> Disclaimer >> ********************************************************************* >> *** >> Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >> uitsluitend bestemd voor de geadresseerde. Als u dit bericht per >> abuis >> hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >> informeren. Wij adviseren u om bij twijfel over de juistheid of de >> volledigheid van de mail contact met afzender op te nemen. >> >> This message shall not constitute any rights or obligations. >> This message is intended solely for the addressee. >> If you have received this message in error, please delete it and >> notify the sender immediately. When in doubt whether this message >> is correct or complete, please contact the sender. >> ********************************************************************* >> *** >> >> _______________________________________________ >> 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 +-----------------------------------------------------------------+ |Paul Spencer pspencer@dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From bartvde at xs4all.nl Mon Apr 17 07:56:40 2006 From: bartvde at xs4all.nl (Bart van den Eijnden (OSGIS)) Date: Mon Apr 17 07:56:56 2006 Subject: [Chameleon] How to not show a layer in XMLThemeLegend? In-Reply-To: <200604161044.27261.mfyahya@gmail.com> References: <200604161044.27261.mfyahya@gmail.com> Message-ID: <44438278.20005@xs4all.nl> Hi, this can only be done using Chameleon 2.4 (or by saving the attachment of the following bug report as XMLThemeParser.php in your current Chameleon tree): http://bugzilla.maptools.org/show_bug.cgi?id=1245 the bug report text should get you started. Best regards, Bart Yahya Mohammad wrote: >Hi all, >I have a layer of type Query in my mapfile and do not want this to show up in >the legend layer list. I did not enter this layer anywhere in my >legend_theme.xml file but it still shows up with the layer name from the >mapfile. I tried creating and tag for this layer, with >visible=false attribute, and that got rid of the layer name, but the theme >name was still there. I'm stuck at this point. Any help is welcome! > >Thanks, >Yahya Mohammad >_______________________________________________ >Chameleon mailing list >Chameleon@lists.maptools.org >http://lists.maptools.org/mailman/listinfo/chameleon > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bartvde at xs4all.nl Mon Apr 17 08:00:59 2006 From: bartvde at xs4all.nl (Bart van den Eijnden (OSGIS)) Date: Mon Apr 17 08:01:25 2006 Subject: [Chameleon] MapTips and JSAPI In-Reply-To: <6E330DC2-FE14-4BEF-A18C-DF3BF1FFEDC3@dmsolutions.ca> References: <6E330DC2-FE14-4BEF-A18C-DF3BF1FFEDC3@dmsolutions.ca> Message-ID: <4443837B.4050701@xs4all.nl> Hi Pierre, I can imagine it is frustrating. What also can help in general is to open up a bug report, and attach your code or patch to the bug report. All bug reports are e-mailed to the chameleon-dev e-mail list, and so all people with Chameleon CVS access (including me) will see it, and can try to incorporate it into Chameleon CVS if it makes sense to do so. Are you willing to open up a bug report and attach your patch to it? Thanks. Best regards, Bart Paul Spencer wrote: > Hi Pierre, > > I emailed you back in December asking you to forward the code to Julien. > > Cheers > > Paul > > On 16-Apr-06, at 10:42 AM, Pierre Racine wrote: > >> Hi Bart, >> >> I'have done this work of adapting MapTips to JSAPI last summer. It >> works pretty fine using also AJAX and everything. I'have sent my >> code to Paul Spencer many months ago so he could integrate it in the >> next release. But I never got any answer after two or three emails. >> I'have wrote to Juilien-Samuel Lacroix three weeks ago to see if >> this code would be in the upcoming release. No news since then. >> Amazingly this guy is working 250km from me... Or people at >> DMSolution to busy to integrate stuff or they do retain some >> informations. I would not be surprised if this mail do not reach the >> newsgroup. >> >> Anyway this is a strange Open Source project and this is very >> frustrating. Many people are rebuiding the wheel because of a lack >> of coordination. >> >> Probably there is something I haven't yet understand... >> >> Pierre Racine >> >>> From: "Eijnden, B. van den (Bart)" >>> To: "Eijnden, B. van den (Bart)" >>> , >>> "'chameleon@lists.maptools.org'" >>> Subject: RE: [Chameleon] MapTips and JSAPI >>> Date: Thu, 6 Apr 2006 09:01:19 +0200 >>> >>> Okay, gotten a little progress on this one. >>> >>> I have written a litter wrapper script around the MapTips widget >>> (based on >>> UpdateMap.php), called maptips.php. >>> >>> Using the JSAPI event manager, I do an AJAX call to this script >>> whenever the >>> map extent changes. For this I had to adapt the MapTips widget not to >>> include the and HTML tag when generating the ImageMap, >>> since >>> the content is set using innerHTML. I'll suggest a fix for this in >>> bugzilla, >>> i.e. the GenerateImageMap function should not add the header >>> but the >>> DrawPublish function should do that. >>> >>> So basically in the HTML template: >>> >>> 1) at the onload, register the event: >>> goCWCJSAPI.RegisterEvent(MAP_EXTENT_CHANGED, "GetImageMap") >>> >>> 2) GetImageMap function does a AJAX call to maptips.php: >>> function GetImageMap() >>> { >>> call('/chameleon/widgets/MapTips/maptips.php?sid=[$gszSessId$] >>> &minx=' + >>> goCWCJSAPI.oMap.minx + >>> '&miny='+goCWCJSAPI.oMap.miny + '&maxx=' + goCWCJSAPI.oMap.maxx + >>> '&maxy='+goCWCJSAPI.oMap.maxy, null, processAjax); >>> } >>> >>> 3) when the browser receives the content from maptips.php, it will >>> trigger >>> the processAjax function which sets the innerHTML (IE specific btw): >>> function processAjax(szResults) >>> { >>> if (document.all) >>> document.all.maptips_imagemap6.innerHTML= "'"+szResults+"'"; >>> } >>> >>> 4) don't forget to add the imagemap to your HTML template: >>> >>> >>> The maptips.php wrapper script does the necessary processing to >>> generate the >>> image map based on the MapTips widget, an excerpt is: >>> >>> $oMap = $oMapSession->oMap; >>> $oMap->setExtent($_GET['minx'], $_GET['miny'], $_GET['maxx'], >>> $_GET['maxy']); >>> $_SESSION["gszCurrentState"] = $oMapSession->saveState(); >>> include_once("MapTips.widget.php"); >>> $oWidget = new MapTips(); >>> $oWidget->maParams["LAYER"] = 'werkzaamheden'; >>> $oWidget->maParams["ATTRIBUTES"] = 'WEGNUMMER,STT_NAAM,GME_NAAM'; >>> $oWidget->maParams["ONMOUSEOVER"] = 'myMaptipsOver'; >>> $oWidget->maParams["ONMOUSEOUT"] = 'myMaptipsOut'; >>> $oWidget->maParams["VISIBLE"] = 'false'; >>> $oWidget->InitDefaults(); >>> $oWidget->SetMap($oMapSession); >>> echo $oWidget->GenerateImageMap(); >>> >>> This shows the advantages of using AJAX in combination with >>> Chameleon JSAPI, >>> maybe not everybody knows but starting Chameleon 2.4 there is a >>> small ajax >>> library in chameleon/htdocs/common/ajax/xhr.js which has the call >>> javascript >>> function in it which I use in GetImageMap. >>> >>> Best regards, >>> Bart >>> >>> -----Oorspronkelijk bericht----- >>> Van: chameleon-bounces@lists.maptools.org >>> [mailto:chameleon-bounces@lists.maptools.org]Namens Eijnden, B. van >>> den >>> (Bart) >>> Verzonden: woensdag 5 april 2006 13:13 >>> Aan: 'chameleon@lists.maptools.org' >>> Onderwerp: [Chameleon] MapTips and JSAPI >>> >>> >>> Hi list, >>> >>> did anyone ever attempt to adapt the MapTips widget to work in >>> JSAPI mode? >>> >>> Would this even be possible? I.e. can the current generation of >>> browsers >>> handle an imagemap which is not embedded in the HTML page? >>> >>> Best regards, >>> Bart >>> >>> >>> Disclaimer >>> ********************************************************************* >>> *** >>> Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >>> uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis >>> hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >>> informeren. Wij adviseren u om bij twijfel over de juistheid of de >>> volledigheid van de mail contact met afzender op te nemen. >>> >>> This message shall not constitute any rights or obligations. >>> This message is intended solely for the addressee. >>> If you have received this message in error, please delete it and >>> notify the sender immediately. When in doubt whether this message >>> is correct or complete, please contact the sender. >>> ********************************************************************* >>> *** >>> >>> _______________________________________________ >>> Chameleon mailing list >>> Chameleon@lists.maptools.org >>> http://lists.maptools.org/mailman/listinfo/chameleon >>> >>> >>> Disclaimer >>> ********************************************************************* >>> *** >>> Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >>> uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis >>> hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >>> informeren. Wij adviseren u om bij twijfel over de juistheid of de >>> volledigheid van de mail contact met afzender op te nemen. >>> >>> This message shall not constitute any rights or obligations. >>> This message is intended solely for the addressee. >>> If you have received this message in error, please delete it and >>> notify the sender immediately. When in doubt whether this message >>> is correct or complete, please contact the sender. >>> ********************************************************************* >>> *** >>> >>> _______________________________________________ >>> 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 > > > +-----------------------------------------------------------------+ > |Paul Spencer pspencer@dmsolutions.ca | > +-----------------------------------------------------------------+ > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > +-----------------------------------------------------------------+ > > > > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From racine_pierre at hotmail.com Mon Apr 17 09:36:04 2006 From: racine_pierre at hotmail.com (Pierre Racine) Date: Mon Apr 17 09:36:16 2006 Subject: [Chameleon] MapTips and JSAPI In-Reply-To: <4443837B.4050701@xs4all.nl> Message-ID: Ok. Bugzilla Bug 1429, fix included. I should have done this since a while... Bart, I didn't have a carefull look at the way you implemented this. Let me know about the differences if you look at it. Nevertheless, thanks for the advice. Hopefully this will make it to a subsequent release. MapTips is a great feature (ArcIMS do not have it except in Java mode) and I would not recommand Chameleon in something else than JSAPI mode. I'm sorry Paul. I never got your answer... Pierre >From: "Bart van den Eijnden (OSGIS)" >To: Paul Spencer >CC: Pierre Racine , chameleon@lists.maptools.org >Subject: Re: [Chameleon] MapTips and JSAPI >Date: Mon, 17 Apr 2006 14:00:59 +0200 > >Hi Pierre, > >I can imagine it is frustrating. > >What also can help in general is to open up a bug report, and attach your >code or patch to the bug report. All bug reports are e-mailed to the >chameleon-dev e-mail list, and so all people with Chameleon CVS access >(including me) will see it, and can try to incorporate it into Chameleon >CVS if it makes sense to do so. > >Are you willing to open up a bug report and attach your patch to it? >Thanks. > >Best regards, >Bart > >Paul Spencer wrote: > >>Hi Pierre, >> >>I emailed you back in December asking you to forward the code to Julien. >> >>Cheers >> >>Paul >> >>On 16-Apr-06, at 10:42 AM, Pierre Racine wrote: >> >>>Hi Bart, >>> >>>I'have done this work of adapting MapTips to JSAPI last summer. It works >>>pretty fine using also AJAX and everything. I'have sent my code to Paul >>>Spencer many months ago so he could integrate it in the next release. >>>But I never got any answer after two or three emails. I'have wrote to >>>Juilien-Samuel Lacroix three weeks ago to see if this code would be in >>>the upcoming release. No news since then. Amazingly this guy is working >>>250km from me... Or people at DMSolution to busy to integrate stuff or >>>they do retain some informations. I would not be surprised if this mail >>>do not reach the newsgroup. >>> >>>Anyway this is a strange Open Source project and this is very >>>frustrating. Many people are rebuiding the wheel because of a lack of >>>coordination. >>> >>>Probably there is something I haven't yet understand... >>> >>>Pierre Racine >>> >>>>From: "Eijnden, B. van den (Bart)" >>>>To: "Eijnden, B. van den (Bart)" , >>>> "'chameleon@lists.maptools.org'" >>>>Subject: RE: [Chameleon] MapTips and JSAPI >>>>Date: Thu, 6 Apr 2006 09:01:19 +0200 >>>> >>>>Okay, gotten a little progress on this one. >>>> >>>>I have written a litter wrapper script around the MapTips widget (based >>>>on >>>>UpdateMap.php), called maptips.php. >>>> >>>>Using the JSAPI event manager, I do an AJAX call to this script >>>>whenever the >>>>map extent changes. For this I had to adapt the MapTips widget not to >>>>include the and HTML tag when generating the ImageMap, >>>>since >>>>the content is set using innerHTML. I'll suggest a fix for this in >>>>bugzilla, >>>>i.e. the GenerateImageMap function should not add the header but >>>>the >>>>DrawPublish function should do that. >>>> >>>>So basically in the HTML template: >>>> >>>>1) at the onload, register the event: >>>>goCWCJSAPI.RegisterEvent(MAP_EXTENT_CHANGED, "GetImageMap") >>>> >>>>2) GetImageMap function does a AJAX call to maptips.php: >>>>function GetImageMap() >>>>{ >>>> call('/chameleon/widgets/MapTips/maptips.php?sid=[$gszSessId$] >>>>&minx=' + >>>>goCWCJSAPI.oMap.minx + >>>> '&miny='+goCWCJSAPI.oMap.miny + '&maxx=' + goCWCJSAPI.oMap.maxx + >>>> '&maxy='+goCWCJSAPI.oMap.maxy, null, processAjax); >>>>} >>>> >>>>3) when the browser receives the content from maptips.php, it will >>>>trigger >>>>the processAjax function which sets the innerHTML (IE specific btw): >>>>function processAjax(szResults) >>>>{ >>>> if (document.all) >>>> document.all.maptips_imagemap6.innerHTML= "'"+szResults+"'"; >>>>} >>>> >>>>4) don't forget to add the imagemap to your HTML template: >>>> >>>> >>>>The maptips.php wrapper script does the necessary processing to >>>>generate the >>>>image map based on the MapTips widget, an excerpt is: >>>> >>>>$oMap = $oMapSession->oMap; >>>>$oMap->setExtent($_GET['minx'], $_GET['miny'], $_GET['maxx'], >>>>$_GET['maxy']); >>>>$_SESSION["gszCurrentState"] = $oMapSession->saveState(); >>>>include_once("MapTips.widget.php"); >>>>$oWidget = new MapTips(); >>>>$oWidget->maParams["LAYER"] = 'werkzaamheden'; >>>>$oWidget->maParams["ATTRIBUTES"] = 'WEGNUMMER,STT_NAAM,GME_NAAM'; >>>>$oWidget->maParams["ONMOUSEOVER"] = 'myMaptipsOver'; >>>>$oWidget->maParams["ONMOUSEOUT"] = 'myMaptipsOut'; >>>>$oWidget->maParams["VISIBLE"] = 'false'; >>>>$oWidget->InitDefaults(); >>>>$oWidget->SetMap($oMapSession); >>>>echo $oWidget->GenerateImageMap(); >>>> >>>>This shows the advantages of using AJAX in combination with Chameleon >>>>JSAPI, >>>>maybe not everybody knows but starting Chameleon 2.4 there is a small >>>>ajax >>>>library in chameleon/htdocs/common/ajax/xhr.js which has the call >>>>javascript >>>>function in it which I use in GetImageMap. >>>> >>>>Best regards, >>>>Bart >>>> >>>>-----Oorspronkelijk bericht----- >>>>Van: chameleon-bounces@lists.maptools.org >>>>[mailto:chameleon-bounces@lists.maptools.org]Namens Eijnden, B. van den >>>>(Bart) >>>>Verzonden: woensdag 5 april 2006 13:13 >>>>Aan: 'chameleon@lists.maptools.org' >>>>Onderwerp: [Chameleon] MapTips and JSAPI >>>> >>>> >>>>Hi list, >>>> >>>>did anyone ever attempt to adapt the MapTips widget to work in JSAPI >>>>mode? >>>> >>>>Would this even be possible? I.e. can the current generation of >>>>browsers >>>>handle an imagemap which is not embedded in the HTML page? >>>> >>>>Best regards, >>>>Bart >>>> >>>> >>>>Disclaimer >>>>********************************************************************* >>>>*** >>>>Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >>>>uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis >>>>hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >>>>informeren. Wij adviseren u om bij twijfel over de juistheid of de >>>>volledigheid van de mail contact met afzender op te nemen. >>>> >>>>This message shall not constitute any rights or obligations. >>>>This message is intended solely for the addressee. >>>>If you have received this message in error, please delete it and >>>>notify the sender immediately. When in doubt whether this message >>>>is correct or complete, please contact the sender. >>>>********************************************************************* >>>>*** >>>> >>>>_______________________________________________ >>>>Chameleon mailing list >>>>Chameleon@lists.maptools.org >>>>http://lists.maptools.org/mailman/listinfo/chameleon >>>> >>>> >>>>Disclaimer >>>>********************************************************************* >>>>*** >>>>Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >>>>uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis >>>>hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >>>>informeren. Wij adviseren u om bij twijfel over de juistheid of de >>>>volledigheid van de mail contact met afzender op te nemen. >>>> >>>>This message shall not constitute any rights or obligations. >>>>This message is intended solely for the addressee. >>>>If you have received this message in error, please delete it and >>>>notify the sender immediately. When in doubt whether this message >>>>is correct or complete, please contact the sender. >>>>********************************************************************* >>>>*** >>>> >>>>_______________________________________________ >>>>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 >> >> >>+-----------------------------------------------------------------+ >>|Paul Spencer pspencer@dmsolutions.ca | >>+-----------------------------------------------------------------+ >>|Applications & Software Development | >>|DM Solutions Group Inc http://www.dmsolutions.ca/| >>+-----------------------------------------------------------------+ >> >> >> >> >>_______________________________________________ >>Chameleon mailing list >>Chameleon@lists.maptools.org >>http://lists.maptools.org/mailman/listinfo/chameleon >> >> > > >-- >Bart van den Eijnden >OSGIS, Open Source GIS >http://www.osgis.nl > From b.vdeijnden at agi.rws.minvenw.nl Tue Apr 18 02:49:00 2006 From: b.vdeijnden at agi.rws.minvenw.nl (Eijnden, B. van den (Bart)) Date: Tue Apr 18 02:54:16 2006 Subject: [Chameleon] Chameleon PHP module Message-ID: <1FEE21DC1054D5119FCC0002A5517B2405F97AA6@rws-mdi-dt2-01.agi.rws.minvenw.nl> Hi list, where can I find the Chameleon PHP module which was designed to replace the wmsparse CGI? in server_data_manager.php it says: * Revision 1.34 2005/04/12 15:16:57 jlacroix * Add the use of the chameleon php module for the capabilities parsing. Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From jlacroix at mapgears.com Tue Apr 18 07:04:56 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Tue Apr 18 07:05:03 2006 Subject: [Chameleon] Chameleon PHP module In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97AA6@rws-mdi-dt2-01.agi.rws.minvenw.nl> References: <1FEE21DC1054D5119FCC0002A5517B2405F97AA6@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: <4444C7D8.5070402@mapgears.com> Hi Bart, In chameleon/ext/ in CVS, currently it only contains replacement for the wmsparser. Julien Eijnden, B. van den (Bart) wrote: > Hi list, > > where can I find the Chameleon PHP module which was designed to replace the > wmsparse CGI? > > in server_data_manager.php it says: > * Revision 1.34 2005/04/12 15:16:57 jlacroix > * Add the use of the chameleon php module for the capabilities parsing. > > Best regards, > Bart > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From mariette.hachey at geonet-tech.com Mon Apr 17 13:24:31 2006 From: mariette.hachey at geonet-tech.com (Mariette) Date: Tue Apr 18 13:25:07 2006 Subject: [Chameleon] Print Production Output Message-ID: <001e01c66243$ca071330$6600a8c0@CMMIBill> Greetings, I have been having some trouble with the print production widget, specifically with the output options. If left to the default GIF image setting all is well for both for saving and the printer friendly map. But if another option is chosen and IE is being used for the browser the image never gets loaded via the printer friendly map or the image is not downloadable via the save. It will get stuck at the please wait image and no errors are present. But if you use Firefox all aspects function as they should. I am using Chamelone MS4W 2.4 beta 2 on a windows server 2003 machine. Site http://142.176.0.171 Username - geonet Password - flood Thanks ******************************** Mariette Hachey GIS Technologist GeoNet Technologies Inc. Box 22, Suite 211 90 University Ave Charlottetown, PE Canada, C1A 4K9 Bus: (902) 628-3797 Fax: (902) 628-1145 ******************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060417/05b5973a/attachment.html From jacob.delfos at maunsell.com Wed Apr 19 01:25:30 2006 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Wed Apr 19 01:25:42 2006 Subject: [Chameleon] Print Production Output Message-ID: <4997F456680DAD4DA1E042C40C463611427050@auper1ex002.au.aecomnet.com> Marriette, I think this was fixed a short while ago by Bart. It had to do with the headers not being right. Headers are sent when a file is downloaded; if they are not right, you can't download, or the file will be corrupt. Internet Explorer suffers from this a lot more than Mozilla. The fix was mentioned in: http://lists.maptools.org/pipermail/chameleon/2006-April/003896.html This fixed it for me. regards, Jacob ________________________________ From: chameleon-bounces@lists.maptools.org [mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Mariette Sent: 18 April 2006 01:25 To: chameleon@lists.maptools.org Subject: [Chameleon] Print Production Output Greetings, I have been having some trouble with the print production widget, specifically with the output options. If left to the default GIF image setting all is well for both for saving and the printer friendly map. But if another option is chosen and IE is being used for the browser the image never gets loaded via the printer friendly map or the image is not downloadable via the save. It will get stuck at the please wait image and no errors are present. But if you use Firefox all aspects function as they should. I am using Chamelone MS4W 2.4 beta 2 on a windows server 2003 machine. Site http://142.176.0.171 Username - geonet Password - flood Thanks ******************************** Mariette Hachey GIS Technologist GeoNet Technologies Inc. Box 22, Suite 211 90 University Ave Charlottetown, PE Canada, C1A 4K9 Bus: (902) 628-3797 Fax: (902) 628-1145 ******************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060419/0ed3b318/attachment.html From mariette.hachey at geonet-tech.com Wed Apr 19 10:02:29 2006 From: mariette.hachey at geonet-tech.com (Mariette) Date: Wed Apr 19 10:03:14 2006 Subject: [Chameleon] php.exe error Message-ID: <002001c663b9$e5942a30$6600a8c0@CMMIBill> Greetings, I have been getting an error on my server machine anytime someone attempts to use the print production "download" or "printer friendly map". The error only appears on the server and then anything within print production is useless until somebody hits ok on the server. The error is as follows; php.exe application error The instruction at "0x7c838bdb" referenced memory at "0x018b1eb8. The memory could not be "written". I have just finished updating the header as told in this link http://lists.maptools.org/pipermail/chameleon/2006-April/003896.html But the error was occurring before this change was made. I am using windows server 2003 With chameleon 2.4 beta 2. Site http://142.176.0.171 Username - geonet Password - flood Thank You ******************************** Mariette Hachey GIS Technologist GeoNet Technologies Inc. Box 22, Suite 211 90 University Ave Charlottetown, PE Canada, C1A 4K9 Bus: (902) 628-3797 Fax: (902) 628-1145 ******************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060419/b0f6ca2a/attachment.html From nsavard at mapgears.com Wed Apr 19 10:22:31 2006 From: nsavard at mapgears.com (Normand Savard) Date: Wed Apr 19 10:22:37 2006 Subject: [Chameleon] php.exe error In-Reply-To: <002001c663b9$e5942a30$6600a8c0@CMMIBill> References: <002001c663b9$e5942a30$6600a8c0@CMMIBill> Message-ID: <444647A7.30903@mapgears.com> Mariette wrote: > Greetings, > > I have been getting an error on my server machine anytime someone > attempts to use the print production ?download? or ?printer friendly > map?. The error only appears on the server and then anything within > print production is useless until somebody hits ok on the server. > > The error is as follows; > > php.exe application error > > The instruction at ?0x7c838bdb? referenced memory at ?0x018b1eb8. The > memory could not be ?written?. > Mariette, There is actually a bug on MapTools.org about this error. This is bug 1409. I got this error with the print production widget on one of our Windows machine. This error vanished with the print production widget when I tested it on another Windows machine. It reappears somewhere else with another widget. I don't have a clear scenario to reproduce it. Which version of ms4w are you using? Which version of php_mapscript are you using? Norm From mariette.hachey at geonet-tech.com Wed Apr 19 11:10:00 2006 From: mariette.hachey at geonet-tech.com (Mariette) Date: Wed Apr 19 11:10:59 2006 Subject: FW: [Chameleon] php.exe error Message-ID: <002c01c663c3$544d9160$6600a8c0@CMMIBill> I am using the ms4w package 1.5.0 released on april 1st 2006. And mapscripts I believe is 4.8.3 (not shure tho, always just used the ms4w installation package) I am on a windows server 2003 and using Apache that came with the ms4w package. Should I maybe update to the newest ms4w package? Thanks -----Original Message----- From: Normand Savard [mailto:nsavard@mapgears.com] Sent: Wednesday, April 19, 2006 11:23 AM To: Mariette Cc: chameleon@lists.maptools.org Subject: Re: [Chameleon] php.exe error Mariette wrote: > Greetings, > > I have been getting an error on my server machine anytime someone > attempts to use the print production "download" or "printer friendly > map". The error only appears on the server and then anything within > print production is useless until somebody hits ok on the server. > > The error is as follows; > > php.exe application error > > The instruction at "0x7c838bdb" referenced memory at "0x018b1eb8. The > memory could not be "written". > Mariette, There is actually a bug on MapTools.org about this error. This is bug 1409. I got this error with the print production widget on one of our Windows machine. This error vanished with the print production widget when I tested it on another Windows machine. It reappears somewhere else with another widget. I don't have a clear scenario to reproduce it. Which version of ms4w are you using? Which version of php_mapscript are you using? Norm From jennifer at greeninfo.org Wed Apr 19 14:56:34 2006 From: jennifer at greeninfo.org (Jennifer Shanks) Date: Wed Apr 19 14:58:54 2006 Subject: [Chameleon] Query widget - rectangle query? Message-ID: <6.2.3.4.2.20060419115449.0376d578@hood.greeninfo.org> Hello, I saw in some older threads that query by rectangle functionality will be built into the query widget at some point. Does anyone know that status of this? Or has anyone customized the widget to do this? Thanks for your help. Regards, Jennifer Jennifer Shanks GreenInfo Network - Information and Mapping in the Public Interest 116 New Montgomery Street Suite 738 San Francisco CA 94105 PH: (415)979-0343 x306 Fax: 415-979-0371 Web: www.greeninfo.org From jlacroix at mapgears.com Wed Apr 19 16:04:32 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed Apr 19 16:05:03 2006 Subject: [Chameleon] Chameleon 24 rc1 Message-ID: <444697D0.4090205@mapgears.com> All, Chameleon 2.4 RC 1 is now available for download. The changes from Beta 2 is mostly bug fixes and changes to the MLT. Downloads are available (or will be shortly) at http://www.maptools.org/chameleon. If no major issues are raised, there will be an official 2.4 release at the beginning of next week. Changes: -------- MLT: As detailed in bug 1413, we enabled backward compatibility in the new MLT for custom widgets. Widget developpers can now use the MLTdBase function prototype with the new MLTPHPInclude class. For more details on the MLTPHPInclude class, please refer to the chameleon/docs/MLT_for_Chameleon_Developers.txt file. Bug fixes: ---------- QueryResults.phtml: bug 1422: Use column header name if no alternative is given MT bug 1414: download.phtml does not work with https and IE Added group name to search result layer, so the layer doesn't disappear if the legend doesn't support groups. UploadSLD: Corrected text (bug 1420). UploadContext.phtml: Corrected a key in one of the call to MLT get method (bug 1428). UploadContext.phtml: Added a missing parenthesis in openWindow() function (bug 1416). DownloadSLD.phtml: Added missing "DownloadSLD" parameter to MLT get method call. Locate.widget.php: bug 1408: Load dbase if not already loaded. bug 1407: Add includes in ExtentHistory widget MapNotes/properties.php: Added trim() function in manageLayer() function where string records are extracted from dbf file. UpdateMap.php: bug 1403: Move SCALE_ZOOM with other NAV_CMD MT bug 974: Security: The JSAPI widget generates javascript that includes connection parameters MT bug 1410: MapTips widget: GenerateImageMap should not output LocateByAttribute: changed font-style and size in comboboxes, to fit larger names easier -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From j.lam at i-real.nl Thu Apr 20 09:56:43 2006 From: j.lam at i-real.nl (Jimmy Lam) Date: Thu Apr 20 09:54:13 2006 Subject: [Chameleon] Problem with adding points using CWCJSAPI Message-ID: <4447931B.6030707@i-real.nl> Hello, I'm working on a Chameleon client with the ability to add points to a database. To draw points on the map, I'm using CWCJSAPI since I thought it would be easier to add functionality this way than creating a widget of my own. For now, I've used a stripped down version of sample_enhanced.html as the template and chameleon.map as map file. The code below is what I've added to the template. The essentials like the 2 mandatory tags for CWCJSAPI, onload() and other html tags are omitted for clarity's sake. Basicly, there are 2 buttons, 1 adds a layer, another registers MOUSE_CLICKED. After pressing the "new layer" button, the page refreshes and a layer named "test" is added to the legend. By clicking on the "add point" button, I should be able to add a point when clicking inside the map. Unfortunately, nothing is drawn. A few notes: - Creating a new layer will add it to the MapObject, numlayer gets incremented by 1, GetLayerByName("test") will return a LayerObject. GetType returns POINT, GetStatus returns ON - Clicking inside the map will create points. AddPoint returns true. - I tried turning all layers in the map file off so the newly created layer would be the only one on, but it didn't help. - For every point I create, an error is found in the ErrorReport widget saying "ERROR: InitDefaults didn't call base class InitDefaults in widget locate". I have not used the Locate widget in my template. - Calling __CWCMapObject's CreateNewLayer does not update the DrawLayerOrder. The array returned by GetDrawLayerOrder has size 11 while numlayer is 12. I tried to manually add the layer by creating a new array with size+1, copying the old array into it and use SetLayerDrawingOrder but this didn't fix it. Am I overseeing something? Regards, Jimmy Lam function myMouseClicked() { if(MapWinsideMap()) { mouseClickedX = goCWCJSAPI.mouseclick[0]; mouseClickedY = goCWCJSAPI.mouseclick[1]; po = new CWCPoint(); aGeoCoord = goCWCJSAPI.oMap.Pix2Geo(mouseClickedX, mouseClickedY); po.x = aGeoCoord[0]; po.y = aGeoCoord[1]; po.symbol = 6; po.symbol_colour ="255,0,0"; po.symbol_size = 20; po.symbol_outlinecolour = "255,255,255"; po.font_size="GIANT"; po.font_colour="255,255,255"; if(goCWCJSAPI.oMap.AddPoint("test", po)) { alert("Point("+po.x+"," +po.y+") added."); } else { alert("failed"); } } } function addPoint() { goCWCJSAPI.RegisterEvent( MOUSE_CLICKED, "myMouseClicked"); } function newLayer() { goCWCJSAPI.oMap.CreateNewLayer("test","POINT"); } From jlacroix at mapgears.com Thu Apr 20 13:16:58 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Thu Apr 20 13:17:05 2006 Subject: [Chameleon] Query widget - rectangle query? In-Reply-To: <6.2.3.4.2.20060419115449.0376d578@hood.greeninfo.org> References: <6.2.3.4.2.20060419115449.0376d578@hood.greeninfo.org> Message-ID: <4447C20A.2080701@mapgears.com> Hi Jennifer, The rectangle query is not in the Query widget. I have a custom widget here which is specific to a client that may fit. Let me know if you are willing to test it. If it work for you, we may try to include it in the official Query widget. Julien Jennifer Shanks wrote: > Hello, > > I saw in some older threads that query by rectangle functionality will > be built into the query widget at some point. > > Does anyone know that status of this? Or has anyone customized the > widget to do this? > > Thanks for your help. > > Regards, > Jennifer > > > > > Jennifer Shanks > GreenInfo Network - Information and Mapping in the Public Interest > 116 New Montgomery Street Suite 738 San Francisco CA 94105 > PH: (415)979-0343 x306 Fax: 415-979-0371 Web: www.greeninfo.org > > > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From nsavard at mapgears.com Thu Apr 20 13:17:05 2006 From: nsavard at mapgears.com (Normand Savard) Date: Thu Apr 20 13:17:12 2006 Subject: FW: [Chameleon] php.exe error In-Reply-To: <002c01c663c3$544d9160$6600a8c0@CMMIBill> References: <002c01c663c3$544d9160$6600a8c0@CMMIBill> Message-ID: <4447C211.4000607@mapgears.com> Mariette wrote: >I am using the ms4w package 1.5.0 released on april 1st 2006. >And mapscripts I believe is 4.8.3 (not shure tho, always just used the ms4w >installation package) >I am on a windows server 2003 and using Apache that came with the ms4w >package. > >Should I maybe update to the newest ms4w package? > > Mariette, Try with the new ms4w package. I don't think it will solve the problem though. Did someone else fall on this error when using the PrintProduction widet or another widgets: 'The instruction at "0x7c838bdb" referenced memory at "0x018b1eb8. The memory could not be "written".' ? Norm From jacob.delfos at maunsell.com Thu Apr 20 19:26:17 2006 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Thu Apr 20 19:26:31 2006 Subject: [Chameleon] php.exe error Message-ID: <4997F456680DAD4DA1E042C40C46361142705A@auper1ex002.au.aecomnet.com> Norm, I have run into this as well. It's a weird error, because it sometimes goes away temporarily by changing things in the mapfile, but it will still occur at different times. I have added my feedback to bug 1409. Regards, Jacob > -----Original Message----- > From: chameleon-bounces@lists.maptools.org > [mailto:chameleon-bounces@lists.maptools.org] On Behalf Of > Normand Savard > Sent: 21 April 2006 01:17 > To: Mariette > Cc: chameleon@lists.maptools.org > Subject: Re: FW: [Chameleon] php.exe error > > Mariette wrote: > > >I am using the ms4w package 1.5.0 released on april 1st 2006. > >And mapscripts I believe is 4.8.3 (not shure tho, always > just used the ms4w > >installation package) > >I am on a windows server 2003 and using Apache that came > with the ms4w > >package. > > > >Should I maybe update to the newest ms4w package? > > > > > Mariette, > > Try with the new ms4w package. I don't think it will solve > the problem > though. Did someone else fall on this error when using the > PrintProduction widet or another widgets: > > 'The instruction at "0x7c838bdb" referenced memory at > "0x018b1eb8. The memory could not be "written".' ? > > Norm > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > From dgr8_39991 at yahoo.com Fri Apr 21 07:21:17 2006 From: dgr8_39991 at yahoo.com (JR Santillan) Date: Fri Apr 21 07:22:11 2006 Subject: [Chameleon] "Quickzoom"... Message-ID: <20060421112117.79081.qmail@web60612.mail.yahoo.com> hi everyone. is it possible that a "quickzoom" entry have a unique http address? for example, one entry in my application is "Quezon Hall". As expected, when this entry is selected, the mapping window will display the "Quezon Hall" polygon. Can this "mapping window" have a unique http address like http://www.mychameleonapps.com/QuezonHall.htm or something like that? thanks. jojin --------------------------------- Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060421/9a08e831/attachment.html From temp at chello.hu Sun Apr 23 19:16:08 2006 From: temp at chello.hu (Carlo Tronnberg) Date: Sun Apr 23 19:16:02 2006 Subject: [Chameleon] Map file data read from database Message-ID: <00d101c6672b$e72d5400$6501a8c0@blackbird> Dear List! I got the task to implement a web user management system where each user can access a customized map server and modify some of the map settings. There are different groups and roles in each group. Some are local administrators for their groups and can create and modify the privileges and the basic settings of the map server for their users. All users can modify/customize their own settings and save them in the database. For this reason I estimate the only way is to solve this through a database. Since I am already using PostgreSQL for my PostGIS layers, the choice of database is trivial. The user will have to login before he/she can access the system, thus the user is known at loading the map files. Question: Has anyone created such a system to read some (or all) data from a database to memory instead of the map file? If so, how could this be done? Maybe a default map file should be supplied and the values replaced with values from the database before the "$oApp->CWCExecute();" call in the .phtml file? I have found several allusions to this topic in the forums but never found a real practical help. I hope somebody can help me with this. Greetings, Carlo Tr?nnberg -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060424/94bc2f8c/attachment.html From jacob.delfos at maunsell.com Mon Apr 24 03:24:44 2006 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Mon Apr 24 03:26:09 2006 Subject: [Chameleon] "Quickzoom"... Message-ID: <4997F456680DAD4DA1E042C40C463611427064@auper1ex002.au.aecomnet.com> Jojin, In that case, you can just use an ordinary combobox (drop-down box). Use the 'onChange' functionality to invoke a function when a value is selected. That function can then load a particular URL into the page (or into a frame or iframe) that is associated with that entry. e.g. function loadPage() { location.href=document.forms[0].pageselector.options[document.forms[0].pageselector.selectedIndex].value; } To load it into a frame (which may be cleaner) means you put "window.someframe." before "location.href". Please note this code is untested, but the principle should hopefully work. Hope this helps, Jacob ________________________________ From: chameleon-bounces@lists.maptools.org [mailto:chameleon-bounces@lists.maptools.org] On Behalf Of JR Santillan Sent: 21 April 2006 19:21 To: Chameleon Subject: [Chameleon] "Quickzoom"... hi everyone. is it possible that a "quickzoom" entry have a unique http address? for example, one entry in my application is "Quezon Hall". As expected, when this entry is selected, the mapping window will display the "Quezon Hall" polygon. Can this "mapping window" have a unique http address like http://www.mychameleonapps.com/QuezonHall.htm or something like that? thanks. jojin ________________________________ Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060424/3eb80798/attachment.html From Derek.Bird at xwave.com Mon Apr 24 07:49:32 2006 From: Derek.Bird at xwave.com (Bird, Derek (xwave)) Date: Mon Apr 24 07:49:45 2006 Subject: [Chameleon] "Quickzoom"... Message-ID: Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3084 bytes Desc: not available Url : http://lists.maptools.org/pipermail/chameleon/attachments/20060424/ed35e78d/smime.bin From gisaalter at gmail.com Tue Apr 25 08:46:26 2006 From: gisaalter at gmail.com (Steven De Vriendt) Date: Tue Apr 25 08:46:34 2006 Subject: [Chameleon] Chameleon error In-Reply-To: <8d2ea9d70604250509y310c3f2bq72d74d195cde9bf3@mail.gmail.com> References: <8d2ea9d70604250509y310c3f2bq72d74d195cde9bf3@mail.gmail.com> Message-ID: <8d2ea9d70604250546y6d2de9cak3fa477d0ddfc085f@mail.gmail.com> Can someone help me out with this error ? When I open my Chameleon map I get the following error message: ** *Warning*: imagepng() [function.imagepng]: Unable to open '/ms4w/tmp/ms_tmp/buttons/b456a7df8c1b514117d456e788b076407.png' for writing in *C:\ms4w\apps\chameleon\htdocs\common\buttonizer\buttonizer.php* on line *637* ** for about 20 times... After about 5 seconds my map shows up and the chameleon sample interface, yet above the lines with the error messsages. Can someone help me out with this ? Is there something wrong with my ms_tmp directory ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060425/9df7e620/attachment.html From pspencer at dmsolutions.ca Wed Apr 26 07:03:08 2006 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Wed Apr 26 07:03:18 2006 Subject: [Chameleon] Chameleon error In-Reply-To: <8d2ea9d70604250546y6d2de9cak3fa477d0ddfc085f@mail.gmail.com> References: <8d2ea9d70604250509y310c3f2bq72d74d195cde9bf3@mail.gmail.com> <8d2ea9d70604250546y6d2de9cak3fa477d0ddfc085f@mail.gmail.com> Message-ID: Steven, to use the generated button images, you need to create /ms4w/tmp/ ms_tmp/buttons directory (it isn't created automatically) and make sure it is writable by the web-server-user (on windows this isn't generally a problem). Cheers Paul On 25-Apr-06, at 8:46 AM, Steven De Vriendt wrote: > Can someone help me out with this error ? > When I open my Chameleon map I get the following error message: > > Warning: imagepng() [function.imagepng]: Unable to open '/ms4w/tmp/ > ms_tmp/buttons/b456a7df8c1b514117d456e788b076407.png' for writing > in C:\ms4w\apps\chameleon\htdocs\common\buttonizer\buttonizer.php > on line 637 > > for about 20 times... > After about 5 seconds my map shows up and the chameleon sample > interface, yet above the lines with the error messsages. > Can someone help me out with this ? Is there something wrong with > my ms_tmp directory ? > > > _______________________________________________ > 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 gisaalter at gmail.com Wed Apr 26 07:40:21 2006 From: gisaalter at gmail.com (Steven De Vriendt) Date: Wed Apr 26 07:40:27 2006 Subject: [Chameleon] Chameleon error In-Reply-To: References: <8d2ea9d70604250509y310c3f2bq72d74d195cde9bf3@mail.gmail.com> <8d2ea9d70604250546y6d2de9cak3fa477d0ddfc085f@mail.gmail.com> Message-ID: <8d2ea9d70604260440w511da75aned01822b36e588ad@mail.gmail.com> Paul, Thank you for answering. That was indeed the solution to my problem. Thx! Steven On 4/26/06, Paul Spencer wrote: > > Steven, > > to use the generated button images, you need to create /ms4w/tmp/ > ms_tmp/buttons directory (it isn't created automatically) and make > sure it is writable by the web-server-user (on windows this isn't > generally a problem). > > Cheers > > Paul > > On 25-Apr-06, at 8:46 AM, Steven De Vriendt wrote: > > > Can someone help me out with this error ? > > When I open my Chameleon map I get the following error message: > > > > Warning: imagepng() [function.imagepng]: Unable to open '/ms4w/tmp/ > > ms_tmp/buttons/b456a7df8c1b514117d456e788b076407.png' for writing > > in C:\ms4w\apps\chameleon\htdocs\common\buttonizer\buttonizer.php > > on line 637 > > > > for about 20 times... > > After about 5 seconds my map shows up and the chameleon sample > > interface, yet above the lines with the error messsages. > > Can someone help me out with this ? Is there something wrong with > > my ms_tmp directory ? > > > > > > _______________________________________________ > > 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/| > +-----------------------------------------------------------------+ > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060426/da3d9d50/attachment.html From jacob.delfos at maunsell.com Wed Apr 26 21:40:10 2006 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Wed Apr 26 21:40:28 2006 Subject: [Chameleon] Anyone have file system corruptions on Windows machines running Mapscript? Message-ID: <4997F456680DAD4DA1E042C40C46361142706D@auper1ex002.au.aecomnet.com> Hi List, I would like to ask whether other people running php_mapscript applications on Windows have run into any problems with file system corruptions. I'm not talking about something happening frequently, but rather over periods of 3-6 months. We run an internal and external server, running Windows XP and Windows Server 2003. We found that the machines tend to get corrupted file systems after a while, quite consistently. The registry would get corrupt, or files that are accessed by php_mapscript 4.4-4.8. (.php files, .map files, etc). Some files had characters appear in them at random (e.g. a '!' character in the middle of the mapfile, or "this->" becoming "thss->"). I know this sounds vague, but I was just wondering whether we are the only ones experiencing these type of problems. I do not expect this to be a php_mapscript problem, rather a windows issue that is more pronounced when running mapserver sites (mostly Chameleon). One of our servers is a 3.2MHzPentium, 1GB RAM, DELL Optiplex (Workstation), no SCSI, no RAID. Traffic is not heavy, but files are big (>1GB ecw's, 300MB shapefiles, etc.). System does not get rebooted much (< 1x/month). Best regards, Jacob p.s. We're investigating Linux options :) JACOB DELFOS GIS ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 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/20060427/45ede501/attachment.html From jacob.delfos at maunsell.com Thu Apr 27 04:15:58 2006 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Thu Apr 27 04:59:13 2006 Subject: [Chameleon] Anyone have file system corruptions on Windows machines running Mapscript? Message-ID: <4997F456680DAD4DA1E042C40C463611427074@auper1ex002.au.aecomnet.com> Resending - seems not to have arrived Hi List, I would like to ask whether other people running php_mapscript applications on Windows have run into any problems with file system corruptions. I'm not talking about something happening frequently, but rather over periods of 3-6 months. We run an internal and external server, running Windows XP and Windows Server 2003. We found that the machines tend to get corrupted file systems after a while, quite consistently. The registry would get corrupt, or files that are accessed by php_mapscript 4.4-4.8. (.php files, .map files, etc). Some files had characters appear in them at random (e.g. a '!' character in the middle of the mapfile, or "this->" becoming "thss->"). I know this sounds vague, but I was just wondering whether we are the only ones experiencing these type of problems. I do not expect this to be a php_mapscript problem, rather a windows issue that is more pronounced when running mapserver sites (mostly Chameleon). One of our servers is a 3.2MHzPentium, 1GB RAM, DELL Optiplex (Workstation), no SCSI, no RAID. Traffic is not heavy, but files are big (>1GB ecw's, 300MB shapefiles, etc.). System does not get rebooted much (< 1x/month). Best regards, Jacob p.s. We're investigating Linux options :) JACOB DELFOS GIS ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel ????+ 61 8 9281 6185 Fax??? + 61 8 9281 6297 jacob.delfos@maunsell.com From nsavard at mapgears.com Thu Apr 27 09:18:15 2006 From: nsavard at mapgears.com (Normand Savard) Date: Thu Apr 27 09:18:22 2006 Subject: [Chameleon] php.exe error In-Reply-To: <002001c663b9$e5942a30$6600a8c0@CMMIBill> References: <002001c663b9$e5942a30$6600a8c0@CMMIBill> Message-ID: <4450C497.7060604@mapgears.com> Mariette wrote: > Greetings, > > I have been getting an error on my server machine anytime someone > attempts to use the print production ?download? or ?printer friendly > map?. The error only appears on the server and then anything within > print production is useless until somebody hits ok on the server. > > The error is as follows; > > php.exe application error > > The instruction at ?0x7c838bdb? referenced memory at ?0x018b1eb8. The > memory could not be ?written?. > Mariette, Yesterday I post a small script and a test file in bug 1409 comment # 24 on maptools to reproduce the error. This small script makes the php.exe error pops up on my computer. Could you try on your computer and let me know if the error shows up. Thanks. Norm From mariette.hachey at geonet-tech.com Thu Apr 27 09:56:21 2006 From: mariette.hachey at geonet-tech.com (Mariette) Date: Thu Apr 27 09:57:07 2006 Subject: [Chameleon] php.exe error In-Reply-To: <4450C497.7060604@mapgears.com> Message-ID: <001801c66a02$5dadade0$6600a8c0@CMMIBill> Greetings, I am uncertain if I tested it right. I created the map file and the index.phtml file with what you provided in the bug report, then registered it. I ran it and a blank screen appears, with no errors. I am running Windows Server 2003 with service pack 1. With MS4W 1.5.0, chameleon 2.4 beta 2, and the mapserver is 4.8.3. Should I put this in the bug report? Thanks Mariette -----Original Message----- From: chameleon-bounces@lists.maptools.org [mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Normand Savard Sent: Thursday, April 27, 2006 10:18 AM To: Mariette Cc: chameleon@lists.maptools.org Subject: Re: [Chameleon] php.exe error Mariette wrote: > Greetings, > > I have been getting an error on my server machine anytime someone > attempts to use the print production "download" or "printer friendly > map". The error only appears on the server and then anything within > print production is useless until somebody hits ok on the server. > > The error is as follows; > > php.exe application error > > The instruction at "0x7c838bdb" referenced memory at "0x018b1eb8. The > memory could not be "written". > Mariette, Yesterday I post a small script and a test file in bug 1409 comment # 24 on maptools to reproduce the error. This small script makes the php.exe error pops up on my computer. Could you try on your computer and let me know if the error shows up. Thanks. Norm _______________________________________________ Chameleon mailing list Chameleon@lists.maptools.org http://lists.maptools.org/mailman/listinfo/chameleon From nsavard at mapgears.com Thu Apr 27 10:03:56 2006 From: nsavard at mapgears.com (Normand Savard) Date: Thu Apr 27 10:04:01 2006 Subject: [Chameleon] php.exe error In-Reply-To: <001801c66a02$5dadade0$6600a8c0@CMMIBill> References: <001801c66a02$5dadade0$6600a8c0@CMMIBill> Message-ID: <4450CF4C.8070700@mapgears.com> Mariette wrote: >Greetings, >I am uncertain if I tested it right. I created the map file and the >index.phtml file with what you provided in the bug report, then registered >it. I ran it and a blank screen appears, with no errors. > > > Could you retry again but before clear the browser cache? >I am running Windows Server 2003 with service pack 1. >With MS4W 1.5.0, chameleon 2.4 beta 2, and the mapserver is 4.8.3. > >Should I put this in the bug report? > > Yes please add your result to the bug. Thanks. Norm From jlacroix at mapgears.com Thu Apr 27 11:43:30 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Thu Apr 27 11:43:38 2006 Subject: [Chameleon] Chameleon 2.4.0 final! Message-ID: <4450E6A2.2010900@mapgears.com> Hi All, Chameleon 2.4 release is out! Big thanks to everyone involved in Chameleon in the last months, for developping, testing, bug fixing or simply using it. Here's a summary of what's new in 2.4: ------------------------------------- - One of the big change of this version is in the language handling. The MLT (Multi-Lingual Translator Module) now allow widget developpers to maintain language files more easily via text files instead of DBF files. Widget directories now contains one file per language currently supported in Chameleon (english or en-CA, french or fr-CA and some of dutch or nl-NL). The process to add a new one is now simplier. Feel free to contribute new language! The migration of custom widgets to the new language handling should be very straight-forward. You can read the documentation in chameleon/docs/MLT_for_Chameleon_Developers.txt - Another related change of this release is the addition of a new language for core functionality and common files: dutch. - The other big addition is the support for popins in Chameleon. Popins are just like popups, but open inside the main windows. This gives a bunch of advantages like not being affected by popup blockers. Currently only the MapSize widget is configured to support this new feature (Not the MapNote as previously mentioned). It is planned to migrate all Chameleon widgets to the new popin archtecture as we get feedback from the community. So let us know what you think of it. bug fixes since rc1: ------------------- - MapNotes: bug 1227 Always loa dbase module. - LocateByAttribute: Allow 'spatialsearch' parameters to override 'searchall' parameter, such that when all attributes of all layers are searchable, you can force only certain attributes to be searchable for individual layers. Julien -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From mhe at itsc.uah.edu Fri Apr 28 14:06:02 2006 From: mhe at itsc.uah.edu (He, Matt Yubin) Date: Fri Apr 28 14:06:15 2006 Subject: [Chameleon] drop current session and restart a new Message-ID: My Chameleon has a function to allow user to change the map file. However, the current session is still in effect, and I can't see the new changes made in map file. Please give me some advises on how to drop the current session and restart a new one. Thanks. Matt. From jlacroix at mapgears.com Fri Apr 28 15:33:47 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Fri Apr 28 15:33:52 2006 Subject: [Chameleon] drop current session and restart a new In-Reply-To: References: Message-ID: <44526E1B.2050605@mapgears.com> Hi, I'm not sure it's the best way to proceed, but you can probably try: $this->moHttpFormVars->set('sid', $this->moHttpFormVars->get('sid').'new'); define('SID', SID.'new') But I think you can simply do: $oMap = ms_newMapObj('path_to_map.map'); $this->moMapSession->oMap =& $oMap; And don't forget to set the widget priority to SUPER. Let us know if this work Best regards, Julien He, Matt Yubin wrote: > My Chameleon has a function to allow user to change the map file. > However, the current session is still in effect, and I can't see the new > changes made in map file. > > Please give me some advises on how to drop the current session and > restart a new one. > > Thanks. > > Matt. > > > > > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From godwin.liz at gmail.com Fri Apr 28 16:13:39 2006 From: godwin.liz at gmail.com (Liz Godwin) Date: Fri Apr 28 16:13:42 2006 Subject: [Chameleon] chameleon session vars .... In-Reply-To: References: Message-ID: Hi Jeremy, I don't know if you have solved this yet. I came across your post while researching another session problem I'm having. In our popup pages (essentially the same as non-chameleon pages), you must pass the session id (sid=xxx) in the url to the page, and then before you call on the session.inc.php you need to define LOAD_SESSION if not already done. Here is a snippit from the top of one of my popup pages.. .dbf"; include_once("../session.inc.php"); include_once("../CWC2ButtonCache.php"); //...etc ?> Hope this helps you out! Cheers, Liz On 3/28/06, Sears, Jeremy wrote: > > Hi all, > > Regarding my question about passing session vars around an app, I found the > following post that seems very relavent: > http://lists.maptools.org/pipermail/chameleon/2005-March/001972.html > > Im trying to work with Paul's second suggestion... however Im still not > finding success. Currently I either get no data passed in the session var, > or the "headers already sent..." error. > > This is the code I have been adding in an attempt to make my other > 'non-chameleon' pages aware of the cham session: > > include_once("/dir1/dir2/ms4w/apps/chameleon/htdocs/common/session/session.p > hp"); > > installSessionDirectoryHandler(); > initializeSession(); > ?> > > Any suggestions? > > Thanks > Jeremy > > > > -----Original Message----- > From: Bart van den Eijnden [mailto:bartvde@xs4all.nl] > Sent: March 28, 2006 9:06 AM > To: Sears, Jeremy > Cc: chameleon@lists.maptools.org > Subject: Re: [Chameleon] chameleon session vars .... > > > I am guessing you need to include Chameleon's session.inc.php script. > > e.g.: > > include_once("../../../../chameleon/htdocs/widgets/session.inc.php"); > > Best regards, > Bart > > > Hi All, > > Im having some problems with session vars in my chameleon app ... > > > > Basically, it seems that if I set a session var in say a *.phtml file, I > > can > > only acccess that variable from other *.phtml files, or at least only from > > other pages that are directly related to the chameleon app itself... > > Our application includes pages (php/html) that dont display maps, yet need > > to be aware of the session variables. > > Is there a way to get session variables into these non-chameleon > > applications? > > It seems that I could likly do this by including some of the widget code, > > however Id prefer not to , if poossible. > > > > Any thoughts? > > Thanks > > Jeremy > > > > -----Original Message----- > > From: chameleon-bounces@lists.maptools.org > > [mailto:chameleon-bounces@lists.maptools.org]On Behalf Of Davelaar, > > Hilbert > > Sent: March 28, 2006 8:46 AM > > To: chameleon@lists.maptools.org > > Subject: [Chameleon] Change mouse icon for navigation functionality > > > > > > Hi List, > > > >>From a user-friendly point of view: is it possible to change the > >> appearance > > of the mouse icon for a chameleon application? > > > > What I want is that when the user selects the pan functionality that the > > mouse icon changes to a hand. And when he selects the zoom in button that > > the mouse icon changes to a zoomin-icon, just like in GIS software. And > > for > > identiy ..., and so on.... > > > > It this possible? If so, how? > > > > Regards, > > Hilbert Davelaar > > > > > > > > _______________________________________________ > > 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 > > > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060428/3726e832/attachment.html From godwin.liz at gmail.com Fri Apr 28 17:17:31 2006 From: godwin.liz at gmail.com (Liz Godwin) Date: Fri Apr 28 17:17:35 2006 Subject: [Chameleon] Sessions and jsapi Message-ID: Hello fellow users, I have a question about something I havn't seen anyone post about yet... I have a really fast chameleon application (IMHO). Sometimes when it runs, the session will timeout when you first call it. So obviously the 24 minutes (or however long it is) hasn't passed to expire the session normally. The reason I bring up speed, is I'm wondering if it's happening because it's in JSAPI mode and making concurrent calls to the server. One of them is called before the session exists and fails. Is this possible??? So far I've been hard pressed to duplicate this on my development server, but it's happening on the production one. go figure! The production server is faster than the development one. When I wrote the code, I extended the JSAPI widget to include a JS function that redirects the client to a restart page containing a link to the application. This function is called in UpdateMap.php like this... if (!initializeSession("sid")){ $szFormContents = "\n"; $szOnLoad = 'NLWISSessionExpired()'; echo BuildHTMLOutput( $szOnLoad, $szFormContents, 0 ); return; } such that if any call is made back to the server the app will redirect when the session has expired. I added this because in jsapi mode, the sessionexpired widget doesn't work. I also added code in session.inc.php to check for an expired session and if it has to do similar redirection. All of this works beautifuly on the dev server, at least if it's happened i don't remember when and cannot duplicate it. On the production one (and test server too), it fails 1% (ish) of the time. To see the application live, check out the following: http://nlwis-snite1.agr.gc.ca/eco/ or http://nlwis-snite1.agr.gc.ca/plant00/ PLEASE - if it fails abnormally for you, please send me an e-mail with the time (with time zone) you used it, and the application you were on. Cheers, Liz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060428/3d4ee11c/attachment.html From godwin.liz at gmail.com Fri Apr 28 17:47:26 2006 From: godwin.liz at gmail.com (Liz Godwin) Date: Fri Apr 28 17:47:29 2006 Subject: [Chameleon] Re: Sessions and jsapi In-Reply-To: References: Message-ID: Ok. it finally happened on my development machine, but it was just before i was able to enable debugging of sessions!! GRRR! On 4/28/06, Liz Godwin wrote: > > All of this works beautifuly on the dev server, at least if it's happened > i don't remember when and cannot duplicate it. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060428/cd85dd17/attachment.html From jacob.delfos at maunsell.com Sat Apr 29 22:53:11 2006 From: jacob.delfos at maunsell.com (Delfos, Jacob) Date: Sat Apr 29 22:57:02 2006 Subject: [Chameleon] Sessions and jsapi Message-ID: <4997F456680DAD4DA1E042C40C46361106B285@auper1ex002.au.aecomnet.com> An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060430/a7f287a4/attachment.html From jlacroix at mapgears.com Sun Apr 30 13:38:30 2006 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Sun Apr 30 13:38:36 2006 Subject: [Chameleon] Anyone have file system corruptions on Windows machines running Mapscript? In-Reply-To: <4997F456680DAD4DA1E042C40C46361142706D@auper1ex002.au.aecomnet.com> References: <4997F456680DAD4DA1E042C40C46361142706D@auper1ex002.au.aecomnet.com> Message-ID: <4454F616.3000509@mapgears.com> Hi, I'm no Windows expert, but my first intuition is that it will be related to bug 1409. Can it be? http://bugzilla.maptools.org/show_bug.cgi?id=1409 Julien Delfos, Jacob wrote: > Hi List, > > I would like to ask whether other people running php_mapscript > applications on Windows have run into any problems with file system > corruptions. I'm not talking about something happening frequently, but > rather over periods of 3-6 months. > > We run an internal and external server, running Windows XP and Windows > Server 2003. We found that the machines tend to get corrupted file > systems after a while, quite consistently. The registry would get > corrupt, or files that are accessed by php_mapscript 4.4-4.8. (.php > files, .map files, etc). Some files had characters appear in them at > random (e.g. a '!' character in the middle of the mapfile, or "this->" > becoming "thss->"). > > I know this sounds vague, but I was just wondering whether we are the > only ones experiencing these type of problems. I do not expect this to > be a php_mapscript problem, rather a windows issue that is more > pronounced when running mapserver sites (mostly Chameleon). > > One of our servers is a 3.2MHzPentium, 1GB RAM, DELL Optiplex > (Workstation), no SCSI, no RAID. Traffic is not heavy, but files are big > (>1GB ecw's, 300MB shapefiles, etc.). System does not get rebooted much > (< 1x/month). > > Best regards, > > Jacob > > p.s. We're investigating Linux options :) > > > *JACOB DELFOS > GIS ANALYST > *Maunsell Australia Pty Ltd > 629 Newcastle Street, Leederville, WA 6007 > PO Box 81, Leederville, WA 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 -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From Jacob.Delfos at maunsell.com Sun Apr 30 18:34:29 2006 From: Jacob.Delfos at maunsell.com (Delfos, Jacob) Date: Sun Apr 30 18:35:20 2006 Subject: [Chameleon] Anyone have file system corruptions on Windowsmachines running Mapscript? Message-ID: <4997F456680DAD4DA1E042C40C46361142707D@auper1ex002.au.aecomnet.com> Julien, I don't think it's related to that, because our binaries don't show that error (I have reproduced that error once, but it doesn't occur with DM Solutions binaries). For one of our servers, it turned out to be a hardware problem. But the other one has had registry problems on several boxes. Maybe Windows still requires occasional rebooting, just like it did 6 years ago :) Jacob > -----Original Message----- > From: chameleon-bounces@lists.maptools.org > [mailto:chameleon-bounces@lists.maptools.org] On Behalf Of > Julien-Samuel Lacroix > Sent: 1 May 2006 01:39 > To: Delfos, Jacob > Cc: Chameleon > Subject: Re: [Chameleon] Anyone have file system corruptions > on Windowsmachines running Mapscript? > > Hi, > I'm no Windows expert, but my first intuition is that it will > be related > to bug 1409. Can it be? > > http://bugzilla.maptools.org/show_bug.cgi?id=1409 > > Julien > > Delfos, Jacob wrote: > > Hi List, > > > > I would like to ask whether other people running php_mapscript > > applications on Windows have run into any problems with file system > > corruptions. I'm not talking about something happening > frequently, but > > rather over periods of 3-6 months. > > > > We run an internal and external server, running Windows XP > and Windows > > Server 2003. We found that the machines tend to get corrupted file > > systems after a while, quite consistently. The registry would get > > corrupt, or files that are accessed by php_mapscript 4.4-4.8. (.php > > files, .map files, etc). Some files had characters appear > in them at > > random (e.g. a '!' character in the middle of the mapfile, > or "this->" > > becoming "thss->"). > > > > I know this sounds vague, but I was just wondering whether > we are the > > only ones experiencing these type of problems. I do not > expect this to > > be a php_mapscript problem, rather a windows issue that is more > > pronounced when running mapserver sites (mostly Chameleon). > > > > One of our servers is a 3.2MHzPentium, 1GB RAM, DELL Optiplex > > (Workstation), no SCSI, no RAID. Traffic is not heavy, but > files are big > > (>1GB ecw's, 300MB shapefiles, etc.). System does not get > rebooted much > > (< 1x/month). > > > > Best regards, > > > > Jacob > > > > p.s. We're investigating Linux options :) > > > > > > *JACOB DELFOS > > GIS ANALYST > > *Maunsell Australia Pty Ltd > > 629 Newcastle Street, Leederville, WA 6007 > > PO Box 81, Leederville, WA 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 > > -- > Julien-Samuel Lacroix > Mapgears > http://www.mapgears.com/ > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > From dgr8_39991 at yahoo.com Sun Apr 30 23:50:56 2006 From: dgr8_39991 at yahoo.com (JR Santillan) Date: Sun Apr 30 23:51:19 2006 Subject: [Chameleon] make the chameleon directory inaccessible to users Message-ID: <20060501035056.48837.qmail@web60616.mail.yahoo.com> hi all. i'm planning to deploy a chameleon mapserver application on the web. however, i found out that it is not fully secured. for instance, users can get access to the main chameleon directory.. what code should be added (and wehere) in such a way that users can have access only on the main application and not on the chameleon files? thanks. jojin --------------------------------- Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060430/ec4aa15d/attachment.html