From kenneth at kongsbak.dk Tue Jun 1 03:06:33 2004 From: kenneth at kongsbak.dk (Kenneth Slot) Date: Tue Jun 1 03:40:27 2004 Subject: [maplab-users] Remove columns from query result Message-ID: When i make queries with maplab i get my result as an table from the dbf file. But in the end of the table there is added three columns "SHAPE_INDEX ","TILE_INDEX", "LAYER_INDEX" Do they come from my conversion from MapInfo to shp format. They are not included in the dbf files. How do I suppress/remove these three columns from my query? I know i send this message Friday, but i did not get any respons, i guess its because theres weekend, so i try again. Thanks Kenneth Slot -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040601/0a10622b/attachment.htm From fikru.yifter at unicatt.it Tue Jun 1 10:16:35 2004 From: fikru.yifter at unicatt.it (Yifter Kidane Fikru) Date: Tue Jun 1 10:17:16 2004 Subject: [maplab-users] Weblink to a column in a dbf file Message-ID: <7471FA6957ACE948A6CB71E07753223B2BE001@pcpe001.unicatt.it> Dear all, If you have a layer with dbf containing a column which is a link to other document (file or address), and would like to see this link in the query result, just do this: edit your query.phtml somewhere: // loop and add a cell for each result foreach ( $aRow as $xCell ) { $szReturnValue .= "".$xCell."\n"; } $szReturnValue .= "\n"; } and replace it with: // loop and add a cell for each result foreach ( $aRow as $xCell ) { if (ereg("http", $xCell)) { $szReturnValue .= "Link\n"; } else $szReturnValue .= "".$xCell."\n"; } $szReturnValue .= "\n"; } the regula expression should be able to pick necessary elements from the link field, so that it turns true to make links. I hope some of you might find this useful, as it can be extended to make anyother fields linked to other sources. Ciao, Fikru From m.f.jimenez at cgiar.org Wed Jun 2 12:17:44 2004 From: m.f.jimenez at cgiar.org (Jimenez, Maria Fernanda (CIAT)) Date: Wed Jun 2 12:23:01 2004 Subject: [maplab-users] Install Maplab Message-ID: <41F99683CE01C042A60CD8FE55F95FF60274D47B@ciatex4.ciat.cgiar.org> Hi list, I have not used MapLab, because I have this errors, can anybody help me? thanks a lot GMapFactory Problems Notice: Undefined variable: gszNewAppPathPath in c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\gmapfactory\globprefs.php on line 76 Notice: Undefined index: gszMapFile in c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml on line 98 Notice: Undefined index: gszProject in c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml on line 102 Notice: Undefined index: gszMapFile in c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml on line 121 MapLab Problems Warning: dl(): Unable to load dynamic library './php_dbase.dll' - The specified module could not be found. in c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\common\phpwms\dbf.php on line 151 MapEdit Problems <<...OLE_Obj...>> I need one examples in this items <<...OLE_Obj...>> Thanks MariaF From zak-ms at hoppsan.org Wed Jun 2 13:09:16 2004 From: zak-ms at hoppsan.org (Zak James) Date: Wed Jun 2 13:09:30 2004 Subject: [maplab-users] Install Maplab In-Reply-To: <41F99683CE01C042A60CD8FE55F95FF60274D47B@ciatex4.ciat.cgiar.org> References: <41F99683CE01C042A60CD8FE55F95FF60274D47B@ciatex4.ciat.cgiar.org> Message-ID: <9413C9C4-B4B7-11D8-8EE5-000D933576F4@hoppsan.org> Do you have the php_dbase.dll available on your system? zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Jun 2, 2004, at 12:17 PM, Jimenez, Maria Fernanda (CIAT) wrote: > Hi list, > I have not used MapLab, because I have this errors, can anybody help > me? > thanks a lot > > GMapFactory Problems > > Notice: Undefined variable: gszNewAppPathPath in > c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\gmapfactory\globprefs.php on > line > 76 > > Notice: Undefined index: gszMapFile in > c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml > on > line 98 > > Notice: Undefined index: gszProject in > c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml > on > line 102 > > Notice: Undefined index: gszMapFile in > c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml > on > line 121 > > > MapLab Problems > > Warning: dl(): Unable to load dynamic library './php_dbase.dll' - The > specified module could not be found. in > c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\common\phpwms\dbf.php on line > 151 > > MapEdit Problems > > <<...OLE_Obj...>> > I need one examples in this items > > <<...OLE_Obj...>> > > > Thanks > > > MariaF > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > From zak-ms at hoppsan.org Wed Jun 2 14:51:04 2004 From: zak-ms at hoppsan.org (Zak James) Date: Wed Jun 2 14:51:17 2004 Subject: [maplab-users] Install Maplab In-Reply-To: <41F99683CE01C042A60CD8FE55F95FF60274D47E@ciatex4.ciat.cgiar.org> References: <41F99683CE01C042A60CD8FE55F95FF60274D47E@ciatex4.ciat.cgiar.org> Message-ID: MariaF, It's included in the php distribution, you just need to enable it while compiling php. Probably the easiest way to get it without rebuilding components is to use the Windows package for mapserver which definitely includes it: http://maptools.org/ms4w/index.phtml If you get the ms4w version of maplab too, it should just work right away after installation. The downloads for the packages are at http://maptools.org/ms4w/index.phtml?page=downloads.html and you want MapServer 4.2 beta 3 (May 17, 2004) and MapLab 2.1 release candidate 3 (October 15, 2003). zak On Jun 2, 2004, at 2:20 PM, Jimenez, Maria Fernanda (CIAT) wrote: > No ZAK, I don't have, do you know how I can missing > > Thanks > > -----Original Message----- > From: Zak James [mailto:zak-ms@hoppsan.org] > Sent: Wednesday, June 02, 2004 12:09 PM > To: Jimenez, Maria Fernanda (CIAT) > Cc: 'maplab-users@lists.maptools.org' Users > Subject: Re: [maplab-users] Install Maplab > > > Do you have the php_dbase.dll available on your system? > > zak > -- > Zak James > Applications and Software Development > DM Solutions Group Inc. > http://www.dmsolutions.ca > > > On Jun 2, 2004, at 12:17 PM, Jimenez, Maria Fernanda (CIAT) wrote: > >> Hi list, >> I have not used MapLab, because I have this errors, can anybody help >> me? >> thanks a lot >> >> GMapFactory Problems >> >> Notice: Undefined variable: gszNewAppPathPath in >> c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\gmapfactory\globprefs.php on >> line >> 76 >> >> Notice: Undefined index: gszMapFile in >> c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml >> on >> line 98 >> >> Notice: Undefined index: gszProject in >> c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml >> on >> line 102 >> >> Notice: Undefined index: gszMapFile in >> c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml >> on >> line 121 >> >> >> MapLab Problems >> >> Warning: dl(): Unable to load dynamic library './php_dbase.dll' - The >> specified module could not be found. in >> c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\common\phpwms\dbf.php on line >> 151 >> >> MapEdit Problems >> >> <<...OLE_Obj...>> >> I need one examples in this items >> >> <<...OLE_Obj...>> >> >> >> Thanks >> >> >> MariaF >> >> _______________________________________________ >> Maplab-users mailing list >> Maplab-users@lists.maptools.org >> http://lists.maptools.org/mailman/listinfo/maplab-users >> > From m.f.jimenez at cgiar.org Wed Jun 2 14:47:12 2004 From: m.f.jimenez at cgiar.org (Jimenez, Maria Fernanda (CIAT)) Date: Wed Jun 2 14:54:42 2004 Subject: [maplab-users] Help Install MapLab Message-ID: <41F99683CE01C042A60CD8FE55F95FF60274D47F@ciatex4.ciat.cgiar.org> I have this PHP and not include php_dbase.dll neither php_gd2.dll would anyone give me copy that this files? Thanks a Lot MF Windows Binaries All Windows binaries can be used on Windows 98/Me and on Windows NT/2000/XP/2003. * PHP 4.3.6 installer [1,047Kb] - 15 April 2004 (CGI only, MySQL support built-in, packaged as Windows installer to install and configure PHP, and automatically configure IIS, PWS and Xitami, with manual configuration for other servers. N.B. no external extensions included) md5: 76b4ba2bfa93ce7c4df7447285c71815 From bartvde at xs4all.nl Wed Jun 2 15:07:12 2004 From: bartvde at xs4all.nl (Bart van den Eijnden) Date: Wed Jun 2 15:09:18 2004 Subject: [maplab-users] Help Install MapLab In-Reply-To: <41F99683CE01C042A60CD8FE55F95FF60274D47F@ciatex4.ciat.cgiar.org> References: <41F99683CE01C042A60CD8FE55F95FF60274D47F@ciatex4.ciat.cgiar.org> Message-ID: Hi, just download MS4W and you will get the necessary extensions. Is by far the easiest way of installing anyway. http://www.maptools.org/ms4w/index.phtml?page=downloads.html Best regards, Bart On Wed, 02 Jun 2004 11:47:12 -0700, Jimenez, Maria Fernanda (CIAT) wrote: > > I have this PHP and not include php_dbase.dll neither php_gd2.dll > would anyone give me copy that this files? Thanks a Lot > > MF > > Windows Binaries > All Windows binaries can be used on Windows 98/Me and on Windows > NT/2000/XP/2003. > * PHP 4.3.6 installer > [1,047Kb] - 15 April 2004 > (CGI only, MySQL support built-in, packaged as Windows installer to > install > and configure PHP, and automatically configure IIS, PWS and Xitami, with > manual configuration for other servers. N.B. no external extensions > included) > md5: 76b4ba2bfa93ce7c4df7447285c71815 > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > -- From swapan at dataworld.co.za Thu Jun 3 07:36:03 2004 From: swapan at dataworld.co.za (Swapan Mazumdar) Date: Thu Jun 3 07:37:01 2004 Subject: [maplab-users] Zoom To Feature Message-ID: <00F1D25697A9094BA850427870FC5F0508394F@kwazulu.dataworld.co.za> Hi forum, Greetings! 1) How can I implement zoom to an Item(Feature) in MapLab. Please refer to the demo shown in case 1 on http://maps.dnr.state.mn.us/mapserver_demos/tests36/itemquery/test.html. Actually I would have like to zoom to polygon(province) from a dropdown list. 2) Is it possible to provide an option of active layer in the published mapping application? 3) All my .map files work fine with MapLab. But why I am not able to Test With A GetMap Request using http://localhost/cgi-bin/mapserv?map= tutorial.map&VERSION=1.1.0&REQUEST=GetMap Just like what is it is explained in http://localhost/msapps/maplab-2.1-rc3/htdocs/mapedit/docs/wms-server-ho wto.html I would really appreciate your help in this regard. I thank you in advance. Regards, Swapan Mazumdar Dataworld.co.za -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040603/4e523b2d/attachment.htm From m.f.jimenez at cgiar.org Wed Jun 2 12:39:05 2004 From: m.f.jimenez at cgiar.org (Jimenez, Maria Fernanda (CIAT)) Date: Thu Jun 3 08:46:46 2004 Subject: [maplab-users] Install Maplab Message-ID: <41F99683CE01C042A60CD8FE55F95FF60274D47C@ciatex4.ciat.cgiar.org> > Hi list, > I have not used MapLab, because I have this errors, can anybody help me? > thanks a lot > > GMapFactory Problems > > Notice: Undefined variable: gszNewAppPathPath in > c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\gmapfactory\globprefs.php on line > 76 > > Notice: Undefined index: gszMapFile in > c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml on > line 98 > > Notice: Undefined index: gszProject in > c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml on > line 102 > > Notice: Undefined index: gszMapFile in > c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\gmapfactory\appframeset.phtml on > line 121 > > > MapLab Problems > > Warning: dl(): Unable to load dynamic library './php_dbase.dll' - The > specified module could not be found. in > c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\common\phpwms\dbf.php on line 151 > > MapEdit Problems > > <<...OLE_Obj...>> > I need one example in this item > > <<...OLE_Obj...>> > > > Thanks > > > MariaF > <> <> -------------- next part -------------- A non-text attachment was scrubbed... Name: e1.jpg Type: image/jpeg Size: 14340 bytes Desc: not available Url : http://lists.maptools.org/pipermail/maplab-users/attachments/20040602/96352aab/e1-0001.jpg -------------- next part -------------- A non-text attachment was scrubbed... Name: E2.jpg Type: image/jpeg Size: 11839 bytes Desc: not available Url : http://lists.maptools.org/pipermail/maplab-users/attachments/20040602/96352aab/E2-0001.jpg From zak-ms at hoppsan.org Thu Jun 3 11:23:26 2004 From: zak-ms at hoppsan.org (Zak James) Date: Thu Jun 3 11:23:51 2004 Subject: [maplab-users] Zoom To Feature In-Reply-To: <00F1D25697A9094BA850427870FC5F0508394F@kwazulu.dataworld.co.za> References: <00F1D25697A9094BA850427870FC5F0508394F@kwazulu.dataworld.co.za> Message-ID: On Jun 3, 2004, at 7:36 AM, Swapan Mazumdar wrote: > 1) How can I implement zoom to an Item(Feature) in MapLab. Please refer > to the demo shown in case 1 on > > http://maps.dnr.state.mn.us/mapserver_demos/tests36/itemquery/ > test.html. > > Actually I would have like to zoom to polygon(province) from a dropdown > list. You would have to edit the php code generated by gmapfactory to do this. It's not really a good solution as gmapfactory was never intended to generate extendable applications. The ideal solution for this problem is the chameleon package (see http://www.maptools.org) which already has a 'widget' for zooming to pre-defined map extents. You could take the sample chameleon application and modify it for your purposes. The chameleon application's template is just an html document with extra tags so it is relatively straightforward to edit. > 2) Is it possible to provide an option of active layer in the published > mapping application? Again, you would have to write your own code and chameleon already has similar functionality in some of its widgets (the locate widget, for instance). > 3) All my .map files work fine with MapLab. But why I am not able to > Test With A GetMap Request using > > http://localhost/cgi-bin/mapserv?map= > tutorial.map&VERSION=1.1.0&REQUEST=GetMap > > Just like what is it is explained in > http://localhost/msapps/maplab-2.1-rc3/htdocs/mapedit/docs/wms-server- > ho > wto.html Make sure that your wms layer has all the required metadata. What error message do you get? -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From chengcharlie2003 at yahoo.ca Tue Jun 8 04:51:23 2004 From: chengcharlie2003 at yahoo.ca (charley cheng) Date: Tue Jun 8 04:51:28 2004 Subject: [maplab-users] need help for maplab install, can not read index.phtml Message-ID: <20040608085123.48389.qmail@web14803.mail.yahoo.com> Hi! Dear Lists, This is my first time installing maplab I install maplab on windowsXp, apache web server, mapscript, php. The mapscript test.php works well. I also access maplab folder(http://localhost/mymaplab/htdocs/index.phtml). The problem is that when read the index.phtml, it only show the code . In httpd, I set: DirectoryIndex index.html index.html.var index.phtml default.phtml default.html Alias /mymaplab/ "C:/maplab/maplab-2.1-rc3/" Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all why can not read index.phtml? looking forward for any suggestion and advice Thank you very much!! Charlie Copyright (c) 2001, DM Solutions Group Inc. * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ include_once( "./common/session/session.php" ); installSessionDirectoryHandler(); $sess_name = "sid"; initializeSession(); ........ --------------------------------- Post your free ad now! Yahoo! Canada Personals -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040608/96146b34/attachment.htm From zak-ms at hoppsan.org Tue Jun 8 08:37:22 2004 From: zak-ms at hoppsan.org (Zak James) Date: Tue Jun 8 08:37:26 2004 Subject: [maplab-users] need help for maplab install, can not read index.phtml In-Reply-To: <20040608085123.48389.qmail@web14803.mail.yahoo.com> References: <20040608085123.48389.qmail@web14803.mail.yahoo.com> Message-ID: <9685EDE0-B948-11D8-85DC-000D933576F4@hoppsan.org> Charlie, You need to make apache aware that php code has to be handled differently by adding something like >>#Added for MapScript PHP functionality >>ScriptAlias /php/ "c:/php/" >>AddType application/x-httpd-php .php >>Action application/x-httpd-php "/php/php.exe" to your httpd.conf. By far the easiest way to set up maplab on windows is to use the MS4W package found here: http://maptools.org/ms4w/index.phtml It includes a properly configured httpd.conf and will work right away after being installed. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Jun 8, 2004, at 4:51 AM, charley cheng wrote: > Hi! Dear Lists, > > This is my first time installing maplab > I install maplab on windowsXp, apache web server, mapscript, php. > The mapscript test.php works well. I also access maplab > folder(http://localhost/mymaplab/htdocs/index.phtml). The problem is > that when read the index.phtml, it only show the code . > In httpd, I set: > > DirectoryIndex index.html index.html.var index.phtml default.phtml > default.html > > Alias /mymaplab/ "C:/maplab/maplab-2.1-rc3/" > > Options Indexes MultiViews > AllowOverride None > Order allow,deny > Allow from all > > why can not read index.phtml? > > looking forward for any suggestion and advice > > Thank you very much!! > > Charlie > > > > > /** > * main index frameset for maplab > * > * @project MapLab > * @revision $Id: index.phtml,v 1.6 2003/02/13 19:47:54 sacha Exp $ > * @purpose main index frameset for maplab > * @author Paul Spencer (spencer@dmsolutions.ca) > * @copyright > * Copyright (c) 2001, DM Solutions Group Inc. > * Permission is hereby granted, free of charge, to any person > obtaining a > * copy of this software and associated documentation files (the > "Software"), > * to deal in the Software without restriction, including without > limitation > * the rights to use, copy, modify, merge, publish, distribute, > sublicense, > * and/or sell copies of the Software, and to permit persons to whom > the > * Software is furnished to do so, subject to the following conditions: > * > * The above copyright notice and this permission notice shall be > included > * in all copies or substantial portions of the Software. > * > * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > EXPRESS OR > * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF > MERCHANTABILITY, > * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT > SHALL > * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES > OR OTHER > * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, > ARISING > * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER > * DEALINGS IN THE SOFTWARE. > */ > > include_once( "./common/session/session.php" ); > installSessionDirectoryHandler(); > > $sess_name = "sid"; > > initializeSession(); > ........ > > > > > > --------------------------------- > Post your free ad now! Yahoo! Canada Personals > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users From chengcharlie2003 at yahoo.ca Tue Jun 8 10:45:11 2004 From: chengcharlie2003 at yahoo.ca (charley cheng) Date: Tue Jun 8 10:45:32 2004 Subject: [maplab-users] need help for maplab install, can not read index.phtml In-Reply-To: <9685EDE0-B948-11D8-85DC-000D933576F4@hoppsan.org> Message-ID: <20040608144511.25103.qmail@web14807.mail.yahoo.com> Thank you very much, Zak. I tried it, it does not works. I put the other .php file such as mascript_test.php under htdocs of maplab folder. It works fine. It means that .php in maplab is read by apache and mapscript/php. The problem is that it does not read .phtml file. I put php folder at C:Program files/Apache group/Apache/php My maplab under C:/maplab/maplab-2.1-rc3 I have tried MS4W, however I am now planning to establish mapserver/maplab system on company server.MS4W might not be a choice. By the way, I am MGIS student in Department of Geography, University of Calgary. Currently, I am working as a summer student in a environmental engineering company. Looking forward for your advice and thank you for your time. Charlie Zak James wrote: Charlie, You need to make apache aware that php code has to be handled differently by adding something like >>#Added for MapScript PHP functionality >>ScriptAlias /php/ "c:/php/" >>AddType application/x-httpd-php .php >>Action application/x-httpd-php "/php/php.exe" to your httpd.conf. By far the easiest way to set up maplab on windows is to use the MS4W package found here: http://maptools.org/ms4w/index.phtml It includes a properly configured httpd.conf and will work right away after being installed. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Jun 8, 2004, at 4:51 AM, charley cheng wrote: > Hi! Dear Lists, > > This is my first time installing maplab > I install maplab on windowsXp, apache web server, mapscript, php. > The mapscript test.php works well. I also access maplab > folder(http://localhost/mymaplab/htdocs/index.phtml). The problem is > that when read the index.phtml, it only show the code . > In httpd, I set: > > DirectoryIndex index.html index.html.var index.phtml default.phtml > default.html > > Alias /mymaplab/ "C:/maplab/maplab-2.1-rc3/" > > Options Indexes MultiViews > AllowOverride None > Order allow,deny > Allow from all > > why can not read index.phtml? > > looking forward for any suggestion and advice > > Thank you very much!! > > Charlie > > > > > > /** > * main index frameset for maplab > * > * @project MapLab > * @revision $Id: index.phtml,v 1.6 2003/02/13 19:47:54 sacha Exp $ > * @purpose main index frameset for maplab > * @author Paul Spencer (spencer@dmsolutions.ca) > * @copyright > * Copyright (c) 2001, DM Solutions Group Inc. > * Permission is hereby granted, free of charge, to any person > obtaining a > * copy of this software and associated documentation files (the > "Software"), > * to deal in the Software without restriction, including without > limitation > * the rights to use, copy, modify, merge, publish, distribute, > sublicense, > * and/or sell copies of the Software, and to permit persons to whom > the > * Software is furnished to do so, subject to the following conditions: > * > * The above copyright notice and this permission notice shall be > included > * in all copies or substantial portions of the Software. > * > * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > EXPRESS OR > * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF > MERCHANTABILITY, > * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT > SHALL > * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES > OR OTHER > * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, > ARISING > * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER > * DEALINGS IN THE SOFTWARE. > */ > > include_once( "./common/session/session.php" ); > installSessionDirectoryHandler(); > > $sess_name = "sid"; > > initializeSession(); > ........ > > > > > > --------------------------------- > Post your free ad now! Yahoo! Canada Personals > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users --------------------------------- Post your free ad now! Yahoo! Canada Personals -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040608/5f998e45/attachment.htm From chengcharlie2003 at yahoo.ca Tue Jun 8 11:17:20 2004 From: chengcharlie2003 at yahoo.ca (charley cheng) Date: Tue Jun 8 11:17:24 2004 Subject: Fwd: Re: [maplab-users] need help for maplab install, can not read index.phtml Message-ID: <20040608151720.18991.qmail@web14808.mail.yahoo.com> Skipped content of type multipart/alternative-------------- next part -------------- An embedded message was scrubbed... From: charley cheng Subject: Re: [maplab-users] need help for maplab install, can not read index.phtml Date: Tue, 8 Jun 2004 10:45:11 -0400 (EDT) Size: 11896 Url: http://lists.maptools.org/pipermail/maplab-users/attachments/20040608/f58133cb/attachment-0001.eml From zak-ms at hoppsan.org Tue Jun 8 11:24:19 2004 From: zak-ms at hoppsan.org (Zak James) Date: Tue Jun 8 11:24:24 2004 Subject: [maplab-users] need help for maplab install, can not read index.phtml In-Reply-To: <20040608144511.25103.qmail@web14807.mail.yahoo.com> References: <20040608144511.25103.qmail@web14807.mail.yahoo.com> Message-ID: Charlie, You should take a look at the httpd.conf file distributed with your MS4W - it has a working configuration that could be adapted to your needs. The thing you are missing is a type handler for phtml: AddType application/x-httpd-php .phtml zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Jun 8, 2004, at 10:45 AM, charley cheng wrote: > Thank you very much, Zak. > I tried it, it does not works. I put the other .php file such as > mascript_test.php under htdocs of maplab folder. It works fine. It > means that .php in maplab is read by apache and mapscript/php. The > problem is that it does not read .phtml file. > > I put php folder at C:Program files/Apache group/Apache/php > > My maplab under C:/maplab/maplab-2.1-rc3 > > I have tried MS4W, however I am now planning to establish > mapserver/maplab system on company server.MS4W might not be a choice. > > By the way, I am MGIS student in Department of Geography, University > of Calgary. Currently, I am working as a summer student in a > environmental engineering company. > > Looking forward for your advice and thank you for your time. > > Charlie > > > Zak James wrote: > Charlie, > > You need to make apache aware that php code has to be handled > differently by adding something like >>> #Added for MapScript PHP functionality >>> ScriptAlias /php/ "c:/php/" >>> AddType application/x-httpd-php .php >>> Action application/x-httpd-php "/php/php.exe" > > to your httpd.conf. > > By far the easiest way to set up maplab on windows is to use the MS4W > package found here: > > http://maptools.org/ms4w/index.phtml > > It includes a properly configured httpd.conf and will work right away > after being installed. > > zak > -- > Zak James > Applications and Software Development > DM Solutions Group Inc. > http://www.dmsolutions.ca > > > On Jun 8, 2004, at 4:51 AM, charley cheng wrote: > >> Hi! Dear Lists, >> >> This is my first time installing maplab >> I install maplab on windowsXp, apache web server, mapscript, php. >> The mapscript test.php works well. I also access maplab >> folder(http://localhost/mymaplab/htdocs/index.phtml). The problem is >> that when read the index.phtml, it only show the code . >> In httpd, I set: >> >> DirectoryIndex index.html index.html.var index.phtml default.phtml >> default.html >> >> Alias /mymaplab/ "C:/maplab/maplab-2.1-rc3/" >> >> Options Indexes MultiViews >> AllowOverride None >> Order allow,deny >> Allow from all >> >> why can not read index.phtml? >> >> looking forward for any suggestion and advice >> >> Thank you very much!! >> >> Charlie >> >> >> >> >>> /** >> * main index frameset for maplab >> * >> * @project MapLab >> * @revision $Id: index.phtml,v 1.6 2003/02/13 19:47:54 sacha Exp $ >> * @purpose main index frameset for maplab >> * @author Paul Spencer (spencer@dmsolutions.ca) >> * @copyright >> * Copyright (c) 2001, DM Solutions Group Inc. >> * Permission is hereby granted, free of charge, to any person >> obtaining a >> * copy of this software and associated documentation files (the >> "Software"), >> * to deal in the Software without restriction, including without >> limitation >> * the rights to use, copy, modify, merge, publish, distribute, >> sublicense, >> * and/or sell copies of the Software, and to permit persons to whom >> the >> * Software is furnished to do so, subject to the following conditions: >> * >> * The above copyright notice and this permission notice shall be >> included >> * in all copies or substantial portions of the Software. >> * >> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, >> EXPRESS OR >> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF >> MERCHANTABILITY, >> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT >> SHALL >> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES >> OR OTHER >> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, >> ARISING >> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER >> * DEALINGS IN THE SOFTWARE. >> */ >> >> include_once( "./common/session/session.php" ); >> installSessionDirectoryHandler(); >> >> $sess_name = "sid"; >> >> initializeSession(); >> ........ >> >> >> >> >> >> --------------------------------- >> Post your free ad now! Yahoo! Canada Personals >> _______________________________________________ >> Maplab-users mailing list >> Maplab-users@lists.maptools.org >> http://lists.maptools.org/mailman/listinfo/maplab-users > > > > --------------------------------- > Post your free ad now! Yahoo! Canada Personals > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users From swapan at dataworld.co.za Wed Jun 9 03:59:06 2004 From: swapan at dataworld.co.za (Swapan Mazumdar) Date: Wed Jun 9 03:59:26 2004 Subject: [maplab-users] Zoom To Feature Message-ID: <00F1D25697A9094BA850427870FC5F05083955@kwazulu.dataworld.co.za> Hi Zak, Greetings! Thank you very much for your help. To be honest I had nightmare with chameleon trying to setup and go on with understanding widgets. Somehow I had some visibility problems with MapServer CGI variables. Thankfully I am on with MapLabs tweaking spree. I have made two progress as of now. One I am now able to call PHP MapScript Objects and Methods from php page. And I am able to trap the flow of execution of the published map application created by GMapFactory. If I could call the required method from PhpMapScript to Zoom to Item or Feature, then I would be able to accomplish my objective. Currently, I can query on layer and find by index position using code snippet written below. The code doesn't zoom to the feature. How can I implement ITEMQUERY feature? Regarding my problem with accessing http://localhost/cgi-bin/mapserv?map=tutorial.map&VERSION=1.1.0&REQUEST= GetMap directly from the IE browser I am getting some ascii file downloaded I consider it as junk because when I specify any Image Viewer to open it just fails. What is wrong with my MapServer setting. I am running on windows/IIS. I would appreciate your help in this regard. draw(); $layerObj = $map->getLayerByName("municipality"); $layerObj->open(); $shapeObj = $layerObj->getShape(-1, 10); $st = $layerObj->queryByShape($shapeObj); $map->prepareQuery(); if($st == MS_SUCCESS){ $shapefound = $map->queryByIndex(1, -1, 10, MS_FALSE); $imageObj = $map->drawQuery(); echo $shapefound."FOUND"; } $image_url=$image->saveWebImage(MS_PNG,1,1,0); $image_url1=$imageObj->saveWebImage(MS_JPG,1,1,0); $layerObj->close(); echo "
".$image_url; echo "
".$image_url1; ?> -----Original Message----- From: Zak James [mailto:zak-ms@hoppsan.org] Sent: 03 June 2004 05:23 PM To: Swapan Mazumdar Cc: maplab-users@lists.maptools.org Subject: Re: [maplab-users] Zoom To Feature On Jun 3, 2004, at 7:36 AM, Swapan Mazumdar wrote: > 1) How can I implement zoom to an Item(Feature) in MapLab. Please refer > to the demo shown in case 1 on > > http://maps.dnr.state.mn.us/mapserver_demos/tests36/itemquery/ > test.html. > > Actually I would have like to zoom to polygon(province) from a dropdown > list. You would have to edit the php code generated by gmapfactory to do this. It's not really a good solution as gmapfactory was never intended to generate extendable applications. The ideal solution for this problem is the chameleon package (see http://www.maptools.org) which already has a 'widget' for zooming to pre-defined map extents. You could take the sample chameleon application and modify it for your purposes. The chameleon application's template is just an html document with extra tags so it is relatively straightforward to edit. > 2) Is it possible to provide an option of active layer in the published > mapping application? Again, you would have to write your own code and chameleon already has similar functionality in some of its widgets (the locate widget, for instance). > 3) All my .map files work fine with MapLab. But why I am not able to > Test With A GetMap Request using > > http://localhost/cgi-bin/mapserv?map= > tutorial.map&VERSION=1.1.0&REQUEST=GetMap > > Just like what is it is explained in > http://localhost/msapps/maplab-2.1-rc3/htdocs/mapedit/docs/wms-server- > ho > wto.html Make sure that your wms layer has all the required metadata. What error message do you get? -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From jive at aino.com.tw Wed Jun 9 08:30:21 2004 From: jive at aino.com.tw (jive) Date: Wed Jun 9 08:30:41 2004 Subject: [maplab-users] phpmapscript error Message-ID: <001b01c44e1d$887ba840$f101a8c0@jpc> Hi, I have compile mapserver 4.0.1 and phpmapscript succesful with vc6 and install on my server(windows 2003) well. I use phpmapscript to get map,it works fine,but when I use functions to get legend and scalebar,it is fail,and its error log is PHP "Fatal error: Call to a member function on a non-object in c:\apache\htdocs\test_draw_map.phtml on line 57". What is wrong with it? Here is my php code:

PHP/MapScript module test

draw(); $url = $img->saveWebImage(MS_PNG, 0, 0, 0); printf("\n", $url, $map->width, $map->height); $img = $map->drawLegend(); $url = $img->saveWebImage(MS_PNG, 0, 0, 0); printf("

\n", $url); $img = $map->drawScaleBar(); $url = $img->saveWebImage(MS_PNG, 0, 0, 0); printf("

\n", $url); ?> -- Jive Chang Project Manager AINOTECH Inc. E-mail:jive@aino.com.tw TEL:+886-2-2553-3652 FAX:+886-2-2553-2647 7F, No. 100, Sec. 3, Chung Hsiao East Road, Taipei 106, Taiwan, R.O.C. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040609/038af50d/attachment.htm From fikru.yifter at unicatt.it Mon Jun 14 10:53:13 2004 From: fikru.yifter at unicatt.it (Yifter Kidane Fikru) Date: Mon Jun 14 10:53:43 2004 Subject: [maplab-users] May be a BUG ???? Message-ID: <7471FA6957ACE948A6CB71E07753223B2BE00C@pcpe001.unicatt.it> Dear all, Why is ROSA behaviour change when I insert a quick zoom tool to my application: in my proj_contents.php? What happens is the following: without this (select/select) it works fine, I can zoom in and zoom out as I wish 'correctly'. After inserting this quick zoom tool (i also added the necessary codes in my proj.phtml, and proj.php), the zoom gets crazy, zooming relative to the key map incorrectly. I spent days in figuring out this, but now I don-t undertstand why? I am very sure that the problem is no other. Any help is appreciated. Regards, Fikru Yifter ps. the codes added for quick zoom can be found in one of my previous mails. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 4654 bytes Desc: not available Url : http://lists.maptools.org/pipermail/maplab-users/attachments/20040614/d3855129/attachment.bin From swapan at dataworld.co.za Mon Jun 14 13:02:28 2004 From: swapan at dataworld.co.za (Swapan Mazumdar) Date: Mon Jun 14 13:02:46 2004 Subject: [maplab-users] FW: May be a BUG ???? Message-ID: <00F1D25697A9094BA850427870FC5F0520E9D2@kwazulu.dataworld.co.za> Hi, I am also experiencing a similar problem to keep a consistent state. I am implementing zoomto feature using html controls. It works fine. But the moment I use zoomin/out etc, its starts from the previous extent which there before the zoomto action was triggered. Look at the code from wrapper/drawmap.php. I think I am not able to figure out how to set the map extent globally. How could I be able to do this? if ($http_form_vars["run_query"] == 1 ){ runQuery( $oMapSession, $szQueryCoords, $szQueryLayers, $szURI ); $oImage = $oMapSession->oMap->drawQuery(); }elseif ($http_form_vars["sindex"]){ $layerObj = $oMap->getLayer(1); $layerObj->open(); $st = $layerObj->queryByAttributes("VA_SG_CODE", $http_form_vars["sitem"], MS_SINGLE); $layerObj->close();$layerObj->open(); $shpObject = ms_newShapeObj(MS_SHAPE_POLYGON); $shpObject = $layerObj->getShape(-1, intval($http_form_vars["sindex"])); $rect = $shpObject->bounds; $oMapSession->oMap->setExtent($rect->minx, $rect->miny, $rect->maxx, $rect->maxy); $oImage = $oMapSession->oMap->drawQuery(); //$oImage = $oMapSession->oMap->draw(); } $layerObj->close(); Dear all, ? Why is ROSA behaviour change when I insert a quick zoom tool to my application: ? ? in?my proj_contents.php? ? What happens is the following: without this (select/select) it works fine, I can zoom in and zoom out as I wish 'correctly'. After inserting this quick zoom tool (i also added the necessary codes in my proj.phtml, and proj.php), the zoom gets crazy, zooming relative to the key map incorrectly. I spent days in figuring out this, but now I?don-t undertstand why? I am very sure that the problem is no other. Any help is appreciated. ? Regards, ? Fikru Yifter ? ps. the codes added for quick zoom can be found in one of my previous mails.? ? From zak-ms at hoppsan.org Mon Jun 14 15:59:53 2004 From: zak-ms at hoppsan.org (Zak James) Date: Mon Jun 14 16:00:24 2004 Subject: [maplab-users] phpmapscript error In-Reply-To: <001b01c44e1d$887ba840$f101a8c0@jpc> References: <001b01c44e1d$887ba840$f101a8c0@jpc> Message-ID: <66D8235B-BE3D-11D8-B71E-000D933576F4@hoppsan.org> Are the paths in your mapfile for IMAGEPATH and IMAGEURL set to existing directories, writable by your webserver? zak On Jun 9, 2004, at 8:30 AM, jive wrote: > Hi, > I have compile mapserver 4.0.1 and phpmapscript succesful with vc6 > and install on my server(windows 2003) well. > I use phpmapscript to get map,it works fine,but when I use > functions to get legend and scalebar,it is fail,and its error log > is PHP "Fatal error: Call to a member function on a non-object in > c:\apache\htdocs\test_draw_map.phtml on line 57". > What is wrong with it? > Here is my php code: > > >

>

PHP/MapScript module test

>

> $map_path="C:/maplab/tutorial/"; > $map = ms_newMapObj($map_path."mymap.map"); > > $img = $map->draw(); > $url = $img->saveWebImage(MS_PNG, 0, 0, 0); > printf("\n", $url, $map->width, > $map->height); > > $img = $map->drawLegend(); > $url = $img->saveWebImage(MS_PNG, 0, 0, 0); > printf("

\n", $url); > > $img = $map->drawScaleBar(); > $url = $img->saveWebImage(MS_PNG, 0, 0, 0); > printf("

\n", $url); > ?> > > > -- > Jive Chang > Project Manager > AINOTECH Inc. > E-mail:jive@aino.com.tw > TEL:+886-2-2553-3652 > FAX:+886-2-2553-2647 > 7F, No. 100, Sec. 3, Chung Hsiao East Road, Taipei 106, Taiwan, > R.O.C._______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users From arun_usctrojan at yahoo.com Tue Jun 15 01:45:40 2004 From: arun_usctrojan at yahoo.com (Arun !) Date: Tue Jun 15 01:46:05 2004 Subject: [maplab-users] Image not showing up. Message-ID: <20040615054540.65148.qmail@web52008.mail.yahoo.com> Hi, I am a newbie user terribly stuck using maplab.The maplab code looks fine and the applet starts but the map isnt displaying.Its displayin all RED.When i test my map file using just mapserver the map shows up but not in maplab.My shp,dbf,shx files are located at http://www.arun.ws/maplab.htm .Can some body please help me.ITs just a starting problem I have as i am a newbie.My map file code is as follows # # Start of map file # MAP NAME "CAL" #NAME OF MAP STATUS ON #SIZE OF MAP EXTENT -126 42 -113 33 SIZE 500 400 #UNIT OF MAP decimal degrees.. SHAPEPATH "data" IMAGETYPE PNG IMAGECOLOR 255 0 0 #MAP EXTENT UNITS DD DATAPATTERN "*" WEB IMAGEPATH "e:\inetpub\wwwroot\tmp\" IMAGEURL "/tmp/" TEMPLATE "e:\inetpub\wwwroot\geohome\geomap\CAL\mapCALmap.htm" EMPTY "http://samurai.ou.edu/geomap/CAL/mapCALnorecords.htm" END #MAP PROJECTION PROJECTION #GEOGRAPHIC NAD83 "init=epsg:4269" END LEGEND STATUS ON TRANSPARENT on KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END #IMAGE TYPE OF MAP # you may need to change this to match your MapServer build OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE RGBA END # # # # # # # # # # # # # # # # # LAYERS # # # # # # # # # # # # # # # # # # # # COUNTY - FIRST LAYER # # # LAYER NAME "county" STATUS DEFAULT DATA "theme1" TYPE LINE METADATA "NoID" "T" "wms_title" "Zipcode" "legend_order" "101" "wms_srs" "EPSG:4269" END PROJECTION #GEOGRAPHIC NAD83 "init=epsg:4269" END CLASS # END END LAYER NAME "county_anno" #cnty Anno GROUP "Administrative Boundaries" STATUS OFF DATA "county" TYPE ANNOTATION LABELITEM "county_name" METADATA "wms_title" "County Labels" "wms_srs" "EPSG:4269" "legend_order" "201" "legend_name" "County Labels" END PROJECTION #GEOGRAPHIC NAD83 "proj=longlat" "ellps=GRS80" "no_defs" END #A COLUMN IN THE DBF FILE YOU WANT TO DISPLAY AS LABEL CLASS LABEL TYPE TRUETYPE FONT "ARIAL-BOLD" SIZE 10 POSITION cc BUFFER -1 COLOR 0 192 0 PARTIALS FALSE END END END END --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040614/e143fece/attachment.htm From jmckenna at dmsolutions.ca Tue Jun 15 09:16:21 2004 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Tue Jun 15 09:16:24 2004 Subject: [maplab-users] Image not showing up. References: <20040615054540.65148.qmail@web52008.mail.yahoo.com> Message-ID: <40CEF6A5.6020905@dmsolutions.ca> If you send me the data I can test with my setup. jeff Arun ! wrote: > Hi, > I am a newbie user terribly stuck using maplab.The maplab code > looks fine and the applet starts but the map isnt displaying.Its > displayin all RED.When i test my map file using just mapserver the map > shows up but not in maplab.My shp,dbf,shx files are located at > http://www.arun.ws/maplab.htm .Can some body please help me.ITs just a > starting problem I have as i am a newbie.My map file code is as follows > # > # Start of map file > # > MAP > NAME "CAL" > #NAME OF MAP > STATUS ON > #SIZE OF MAP > EXTENT -126 42 -113 33 > SIZE 500 400 > #UNIT OF MAP decimal degrees.. > SHAPEPATH "data" > IMAGETYPE PNG > IMAGECOLOR 255 0 0 > #MAP EXTENT > UNITS DD > DATAPATTERN "*" > WEB > IMAGEPATH "e:\inetpub\wwwroot\tmp\" > IMAGEURL "/tmp/" > TEMPLATE "e:\inetpub\wwwroot\geohome\geomap\CAL\mapCALmap.htm" > EMPTY "http://samurai.ou.edu/geomap/CAL/mapCALnorecords.htm" > END > #MAP PROJECTION > PROJECTION > #GEOGRAPHIC NAD83 > "init=epsg:4269" > END > LEGEND > STATUS ON > TRANSPARENT on > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > #IMAGE TYPE OF MAP > # you may need to change this to match your MapServer build > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EX! TENSION "png" > IMAGEMODE RGBA > END > # # # # # # # # # # # # # # > # # # LAYERS # # # > # # # # # # # # # # # # # # > # # # COUNTY - FIRST LAYER # # # > LAYER > NAME "county" > STATUS DEFAULT > DATA "theme1" > TYPE LINE > METADATA > "NoID" "T" > "wms_title" "Zipcode" > "legend_order" "101" > "wms_srs" "EPSG:4269" > END > PROJECTION > &nb! sp; #GEOGRAPHIC NAD83 > "init=epsg:4269" > END > CLASS > # > END > END > LAYER > NAME "county_anno" > #cnty Anno > GROUP "Administrative Boundaries" > STATUS OFF > DATA "county" > TYPE ANNOTATION > LABELITEM "county_name" > METADATA > "wms_title" "County Labels" > "wms_srs" "EPSG:4269" > "legend_order" "201" > "legend_name" "County Labels" > END > PROJECTION > #GEOGRAPHIC NAD83 > "proj=longlat" > "ellps=GRS80" > "no_defs" > END > #A COLUMN IN THE DBF FILE YOU WANT TO DISPLAY AS LABEL > CLASS > LABEL > TYPE TRUETYPE > FONT "ARIAL-BOLD" > SIZE 10 > POSITION cc > BUFFER -1 > COLOR 0 192 0 > PARTIALS FALSE > END > END > END > END > > > > > > ------------------------------------------------------------------------ > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca From swapan at dataworld.co.za Fri Jun 18 05:40:57 2004 From: swapan at dataworld.co.za (Swapan Mazumdar) Date: Fri Jun 18 05:41:24 2004 Subject: [maplab-users] How to Catch Warning & Exception Message-ID: <00F1D25697A9094BA850427870FC5F0520E9F1@kwazulu.dataworld.co.za> Hi Forum, In my mapping applicationbased on PhpMapScript how should it be possible to catch warnings and exceptions like this: Warning: [MapServer Error]: msQueryByAttributes(): No matching record(s) found. in C:\msapps\maplab-2.1-rc3\projects\gmf_apps\hibiscus\hibiscus.php I have no experience in php besides understanding normal programming constructs. Whilst I work in Java extensibly. Pl. guide me how should I stop warning messages getting displayed on web pages. TIA Swapan Mazumdar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040618/cddfa7bf/attachment.htm From zak-ms at hoppsan.org Fri Jun 18 08:12:18 2004 From: zak-ms at hoppsan.org (Zak James) Date: Fri Jun 18 08:12:43 2004 Subject: [maplab-users] How to Catch Warning & Exception In-Reply-To: <00F1D25697A9094BA850427870FC5F0520E9F1@kwazulu.dataworld.co.za> References: <00F1D25697A9094BA850427870FC5F0520E9F1@kwazulu.dataworld.co.za> Message-ID: Hi, You can suppress some errors in php using the @ symbol (see php.net for details). To stop warnings from being printed in your page, add something like display_errors=off log_errors=true error_log="/tmp/phperrors.log" to your php.ini file. Since this is a Mapscript programming question and not strictly related to Maplab, you may get more help on the mapserver-users list. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Jun 18, 2004, at 5:40 AM, Swapan Mazumdar wrote: > Hi Forum, > > > > In my mapping applicationbased on PhpMapScript how should it be > possible > to catch warnings and exceptions like this: > > Warning: [MapServer Error]: msQueryByAttributes(): > > No matching record(s) found. in > C:\msapps\maplab-2.1-rc3\projects\gmf_apps\hibiscus\hibiscus.php > > > > I have no experience in php besides understanding normal programming > constructs. Whilst I work in Java extensibly. > > Pl. guide me how should I stop warning messages getting displayed on > web > pages. > > TIA > > Swapan Mazumdar > > > > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users From il_vikingo at yahoo.com Wed Jun 23 06:02:20 2004 From: il_vikingo at yahoo.com (Andrea Rossi) Date: Wed Jun 23 06:02:39 2004 Subject: [maplab-users] Problem Message-ID: <20040623100220.95216.qmail@web12301.mail.yahoo.com> I have installed the latest version of Maplab an when I go on MapEdit I have some errors. I hope someone can help me. Thank You. Error Parsing Description execution_mode not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editobject.phtml execution_mode not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editobject.phtml An error occurred accessing the log level from the mapedit.xml file. One possible cause of this problem is an invalid path to the maplab.xml. Please check the mapedit.xml configuration file and ensure that the path to the maplab.xml file is valid. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editobject.phtml log_level not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editobject.phtml log_level not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editobject.phtml new_file_permission not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editobject.phtml new_file_permission not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editobject.phtml group_name not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editobject.phtml group_name not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editobject.phtml log_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editobject.phtml log_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editobject.phtml file_browser_root not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editobject.phtml file_browser_root not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editobject.phtml execution_mode not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/edittitle.phtml execution_mode not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/edittitle.phtml An error occurred accessing the log level from the mapedit.xml file. One possible cause of this problem is an invalid path to the maplab.xml. Please check the mapedit.xml configuration file and ensure that the path to the maplab.xml file is valid. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/edittitle.phtml log_level not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/edittitle.phtml log_level not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/edittitle.phtml new_file_permission not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/edittitle.phtml new_file_permission not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/edittitle.phtml group_name not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/edittitle.phtml group_name not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/edittitle.phtml log_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/edittitle.phtml log_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/edittitle.phtml file_browser_root not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/edittitle.phtml file_browser_root not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/edittitle.phtml demo_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editframe.phtml execution_mode not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editframe.phtml execution_mode not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editframe.phtml An error occurred accessing the log level from the mapedit.xml file. One possible cause of this problem is an invalid path to the maplab.xml. Please check the mapedit.xml configuration file and ensure that the path to the maplab.xml file is valid. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editframe.phtml log_level not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editframe.phtml log_level not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editframe.phtml new_file_permission not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editframe.phtml new_file_permission not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editframe.phtml group_name not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editframe.phtml group_name not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editframe.phtml log_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editframe.phtml log_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editframe.phtml file_browser_root not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editframe.phtml file_browser_root not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/editframe.phtml demo_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/treeframe.phtml execution_mode not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/treeframe.phtml execution_mode not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/treeframe.phtml An error occurred accessing the log level from the mapedit.xml file. One possible cause of this problem is an invalid path to the maplab.xml. Please check the mapedit.xml configuration file and ensure that the path to the maplab.xml file is valid. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/treeframe.phtml log_level not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/treeframe.phtml log_level not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/treeframe.phtml new_file_permission not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/treeframe.phtml new_file_permission not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/treeframe.phtml group_name not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/treeframe.phtml group_name not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/treeframe.phtml log_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/treeframe.phtml log_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/treeframe.phtml file_browser_root not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/treeframe.phtml file_browser_root not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/treeframe.phtml default_navigation_mode not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml tmp_map_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml tmp_map_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml tmp_web_img_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml tmp_web_img_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml tmp_img_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml tmp_img_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml image_type not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml image_type not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml mapscript_module not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml mapscript_module not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml demo_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml demo_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml execution_mode not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml execution_mode not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml An error occurred accessing the log level from the mapedit.xml file. One possible cause of this problem is an invalid path to the maplab.xml. Please check the mapedit.xml configuration file and ensure that the path to the maplab.xml file is valid. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml log_level not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml log_level not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml new_file_permission not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml new_file_permission not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml group_name not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml group_name not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml log_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml log_path not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml file_browser_root not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml file_browser_root not found. Returning default value. in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml missing file MUST_CHANGE in /jonathan/maplab-2.1-rc3/htdocs/mapedit/toolbar.phtml These errors may not interfere with the use of MapEdit. They may indicate an unsupported feature, a syntax error in your MapFile, or a non-fatal application error __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From il_vikingo at yahoo.com Wed Jun 23 09:28:07 2004 From: il_vikingo at yahoo.com (Andrea Rossi) Date: Wed Jun 23 09:28:11 2004 Subject: [maplab-users] Problem #2 Message-ID: <20040623132807.54947.qmail@web12308.mail.yahoo.com> Hello I have resolved mi first problem but now if I try to open or create a map file I get some errors. If I try to open i recive this message: Warning: dl(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_mapscript.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_mapscript.so: cannot open shared object file: No such file or directory in /usr/local/apache2/htdocs/jonathan/maplab-2.1-rc3/htdocs/mapedit/mapeditapp.php on line 165 Fatal error: Call to undefined function: ms_tokenizemap() in /usr/local/apache2/htdocs/jonathan/maplab-2.1-rc3/htdocs/mapedit/mapeditapp.php on line 168 If I try to create I give the name but after the path in the configuration file put 3 "/" so it can't create the file... Thank you to anyone __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail From m.f.jimenez at cgiar.org Wed Jun 23 09:55:14 2004 From: m.f.jimenez at cgiar.org (Jimenez, Maria Fernanda (CIAT)) Date: Wed Jun 23 10:02:51 2004 Subject: [maplab-users] Mapbal problems Message-ID: <41F99683CE01C042A60CD8FE55F95FF60274D4B4@ciatex4.ciat.cgiar.org> Hi I have installed maplab an when I go on gMapfactory I have some errors. Notice: Undefined variable: gszNewAppPathPath in c:\inetpub\wwwroot\maplab\htdocs\gmapfactory\globprefs.php on line 76 Notice: Undefined index: gszMapFile in c:\inetpub\wwwroot\maplab\htdocs\gmapfactory\appframeset.phtml on line 98 Notice: Undefined index: gszMapName in c:\inetpub\wwwroot\maplab\htdocs\gmapfactory\appframeset.phtml on line 101 Notice: Undefined index: gszMapFile in c:\inetpub\wwwroot\maplab\htdocs\gmapfactory\appframeset.phtml on line 121 Please use the toolbar to select a project and map file Notice: Undefined index: gszMapName in c:\inetpub\wwwroot\maplab\htdocs\gmapfactory\no_proj.phtml on line 136 Mapbrowser I have some errors Notice: Undefined variable: szSessionVar in c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 Notice: Undefined variable: szSessionVar in c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 Notice: Undefined variable: szSessionVar in c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 Notice: Undefined variable: szSessionVar in c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 Notice: Undefined variable: szSessionVar in c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 Notice: Undefined variable: szSessionVar in c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 Notice: Undefined variable: szSessionVar in c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 Notice: Undefined variable: szSessionVar in c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 Notice: Undefined variable: szSessionVar in c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 Notice: Undefined variable: szSessionVar in c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 Notice: Undefined variable: szSessionVar in c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 Maplab Information I have some errors Notice: Use of undefined constant MS_GIF - assumed 'MS_GIF' in c:\inetpub\wwwroot\maplab\htdocs\info.php on line 121 Notice: Use of undefined constant MS_PNG - assumed 'MS_PNG' in c:\inetpub\wwwroot\maplab\htdocs\info.php on line 123 Notice: Use of undefined constant MS_JPEG - assumed 'MS_JPEG' in c:\inetpub\wwwroot\maplab\htdocs\info.php on line 125 Notice: Use of undefined constant MS_WBMP - assumed 'MS_WBMP' in c:\inetpub\wwwroot\maplab\htdocs\info.php on line 127 Supported Image Types <<...OLE_Obj...>> Enabled? GIF Notice: Use of undefined constant MS_GIF - assumed 'MS_GIF' in c:\inetpub\wwwroot\maplab\htdocs\info.phtml on line 245 <<...OLE_Obj...>> PNG Notice: Use of undefined constant MS_PNG - assumed 'MS_PNG' in c:\inetpub\wwwroot\maplab\htdocs\info.phtml on line 255 <<...OLE_Obj...>> JPEG Notice: Use of undefined constant MS_JPEG - assumed 'MS_JPEG' in c:\inetpub\wwwroot\maplab\htdocs\info.phtml on line 265 <<...OLE_Obj...>> WBMP Notice: Use of undefined constant MS_WBMP - assumed 'MS_WBMP' in c:\inetpub\wwwroot\maplab\htdocs\info.phtml on line 275 Thanks for help me MariaF <<...OLE_Obj...>> Bottom of Form 1 From il_vikingo at yahoo.com Thu Jun 24 06:27:49 2004 From: il_vikingo at yahoo.com (Andrea Rossi) Date: Thu Jun 24 06:28:09 2004 Subject: [maplab-users] Problem with Preview Message-ID: <20040624102749.75778.qmail@web12306.mail.yahoo.com> Hello when I try o open the previw from MapEdit I get this errors: Warning: fopen(/usr/local/apache2/htdocs/maplab-2.1-rc3/htdocs/common//40daa4e694a6d.map): failed to open stream: Permission denied in /usr/local/apache2/htdocs/maplab-2.1-rc3/htdocs/mapedit/preview.php on line 259 Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/apache2/htdocs/maplab-2.1-rc3/htdocs/mapedit/preview.php on line 260 Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/apache2/htdocs/maplab-2.1-rc3/htdocs/mapedit/preview.php on line 261 Fatal error: Call to a member function on a non-object in /usr/local/apache2/htdocs/maplab-2.1-rc3/htdocs/mapedit/preview.php on line 308 Any ideas? Thank You! __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail From swapan at dataworld.co.za Thu Jun 24 06:28:36 2004 From: swapan at dataworld.co.za (Swapan Mazumdar) Date: Thu Jun 24 06:29:10 2004 Subject: [maplab-users] PhpMapScript- setExtent problem - URGENT Message-ID: <00F1D25697A9094BA850427870FC5F0508396E@kwazulu.dataworld.co.za> I am trying to implement zoom to feature. Infact I can easily do that. But the problem is the zoom to (Polygon feature) fits the map extent full and no breathing space is left around it. How can I implement this. Pl. look at the code: $shpObject = $layerObj->getShape(-1, intval($http_form_vars["searchIndex"])); //returns chape object $rect = $shpObject->bounds; //returns enclosing rectangle $oMap->setExtent($rect->minx, $rect->miny, $rect->maxx, $rect->maxy); // HERE I NEED SOME HELP. What calculations are needed to zoom out by 10%. Unfortunately map object's nZoomFactor doesn't take values in fractions. Your quick pointers will help me a lot, its kindda urgent. TIA Swapan Mazumdar Durban, South Africa -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040624/80e9db19/attachment.htm From pagameba at magma.ca Thu Jun 24 07:46:41 2004 From: pagameba at magma.ca (Paul Spencer) Date: Thu Jun 24 07:47:07 2004 Subject: [maplab-users] PhpMapScript- setExtent problem - URGENT In-Reply-To: <00F1D25697A9094BA850427870FC5F0508396E@kwazulu.dataworld.co.za> References: <00F1D25697A9094BA850427870FC5F0508396E@kwazulu.dataworld.co.za> Message-ID: <40DABF21.3070906@magma.ca> $dx = abs(($rect->maxx - $rect->minx) * 0.1); $dy = abs(($rect->maxy - $rect->miny) * 0.1); $rect->setExtent( $minx - $dx, $miny - $dy, $maxx + $dx, $maxy + $dy ); this should work (untested) Cheers, Paul Swapan Mazumdar wrote: > I am trying to implement zoom to feature. Infact I can easily do that. > But the problem is the zoom to (Polygon feature) fits the map extent > full and no breathing space is left around it. How can I implement this. > Pl. look at the code: > > > > $shpObject = $layerObj->getShape(-1, > intval($http_form_vars["searchIndex"])); //returns chape object > > $rect = $shpObject->bounds; //returns enclosing rectangle > > $oMap->setExtent($rect->minx, $rect->miny, $rect->maxx, $rect->maxy); // > HERE I NEED SOME HELP. > > > > What calculations are needed to zoom out by 10%. Unfortunately map > object?s nZoomFactor doesn?t take values in fractions. > > Your quick pointers will help me a lot, its kindda urgent. > > > > TIA > > Swapan Mazumdar > > Durban, South Africa > > > ------------------------------------------------------------------------ > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From swapan at dataworld.co.za Thu Jun 24 08:20:21 2004 From: swapan at dataworld.co.za (Swapan Mazumdar) Date: Thu Jun 24 08:21:07 2004 Subject: [maplab-users] PhpMapScript- setExtent problem - URGENT Message-ID: <00F1D25697A9094BA850427870FC5F0520EA2C@kwazulu.dataworld.co.za> Paul, Thank you for your prompt reply. I used the same calculations suggested by you but now the map doesn't show even. Pl. look at the output of $rec->extent attributes below. $rect = $shpObject->bounds; $dx = abs(($rect->maxx - $rect->minx) * 0.1); $dy = abs(($rect->maxy - $rect->miny) * 0.1); echo "BEFORE: $rect->minx, $rect->miny, $rect->maxx, $rect->maxy"; // BEFORE: -47898.6578075, -3394254.84527, -47397.1956946, -3393854.31115 $rect->setExtent( $minx - $dx, $miny - $dy, $maxx + $dx, $maxy + $dy ); echo "AFTER: $rect->minx, $rect->miny, $rect->maxx, $rect->maxy"; AFTER: -50.1462112868, -40.0534118076, 50.1462112868, 40.0534118076 $oMap->setExtent($rect->minx, $rect->miny, $rect->maxx, $rect->maxy); Hope you might come with some help. TIA/ \Swapan/ -----Original Message----- From: Paul Spencer [mailto:pagameba@magma.ca] Sent: 24 June 2004 01:47 PM To: Swapan Mazumdar Cc: maplab-users@lists.maptools.org Subject: Re: [maplab-users] PhpMapScript- setExtent problem - URGENT $dx = abs(($rect->maxx - $rect->minx) * 0.1); $dy = abs(($rect->maxy - $rect->miny) * 0.1); $rect->setExtent( $minx - $dx, $miny - $dy, $maxx + $dx, $maxy + $dy ); this should work (untested) Cheers, Paul Swapan Mazumdar wrote: > I am trying to implement zoom to feature. Infact I can easily do that. > But the problem is the zoom to (Polygon feature) fits the map extent > full and no breathing space is left around it. How can I implement this. > Pl. look at the code: > > > > $shpObject = $layerObj->getShape(-1, > intval($http_form_vars["searchIndex"])); //returns chape object > > $rect = $shpObject->bounds; //returns enclosing rectangle > > $oMap->setExtent($rect->minx, $rect->miny, $rect->maxx, $rect->maxy); // > HERE I NEED SOME HELP. > > > > What calculations are needed to zoom out by 10%. Unfortunately map > object's nZoomFactor doesn't take values in fractions. > > Your quick pointers will help me a lot, its kindda urgent. > > > > TIA > > Swapan Mazumdar > > Durban, South Africa > > > ------------------------------------------------------------------------ > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From zak-ms at hoppsan.org Thu Jun 24 08:21:54 2004 From: zak-ms at hoppsan.org (Zak James) Date: Thu Jun 24 08:21:59 2004 Subject: [maplab-users] Problem with Preview In-Reply-To: <20040624102749.75778.qmail@web12306.mail.yahoo.com> References: <20040624102749.75778.qmail@web12306.mail.yahoo.com> Message-ID: <1431BD26-C5D9-11D8-887E-000D933576F4@hoppsan.org> Hi Andrea, This looks like a configuration problem. Can you review the installation instructions and see if there are any problems there? If not, you could email your maplab.xml file to the list and I would take a look at it and try to make suggestions. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Jun 24, 2004, at 6:27 AM, Andrea Rossi wrote: > Hello > when I try o open the previw from MapEdit I get this > errors: > > Warning: > fopen(/usr/local/apache2/htdocs/maplab-2.1-rc3/htdocs/common// > 40daa4e694a6d.map): > failed to open stream: Permission denied in > /usr/local/apache2/htdocs/maplab-2.1-rc3/htdocs/mapedit/preview.php > on line 259 > > Warning: fwrite(): supplied argument is not a valid > stream resource in > /usr/local/apache2/htdocs/maplab-2.1-rc3/htdocs/mapedit/preview.php > on line 260 > > Warning: fclose(): supplied argument is not a valid > stream resource in > /usr/local/apache2/htdocs/maplab-2.1-rc3/htdocs/mapedit/preview.php > on line 261 > > Fatal error: Call to a member function on a non-object > in > /usr/local/apache2/htdocs/maplab-2.1-rc3/htdocs/mapedit/preview.php > on line 308 > > Any ideas? > Thank You! > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - You care about security. So do we. > http://promotions.yahoo.com/new_mail > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > From dmorissette at dmsolutions.ca Thu Jun 24 10:04:06 2004 From: dmorissette at dmsolutions.ca (Daniel Morissette) Date: Thu Jun 24 10:06:19 2004 Subject: [maplab-users] PhpMapScript- setExtent problem - URGENT In-Reply-To: <00F1D25697A9094BA850427870FC5F0520EA2C@kwazulu.dataworld.co.za> References: <00F1D25697A9094BA850427870FC5F0520EA2C@kwazulu.dataworld.co.za> Message-ID: <40DADF56.9060601@dmsolutions.ca> Swapan Mazumdar wrote: > Paul, > > Thank you for your prompt reply. I used the same calculations suggested > by you but now the map doesn't show even. Pl. look at the output of > $rec->extent attributes below. > > $rect = $shpObject->bounds; > $dx = abs(($rect->maxx - $rect->minx) * 0.1); $dy = abs(($rect->maxy - > $rect->miny) * 0.1); echo "BEFORE: $rect->minx, $rect->miny, > $rect->maxx, $rect->maxy"; // BEFORE: -47898.6578075, -3394254.84527, > -47397.1956946, -3393854.31115 > $rect->setExtent( $minx - $dx, $miny - $dy, $maxx + $dx, $maxy + $dy ); > echo "AFTER: $rect->minx, $rect->miny, $rect->maxx, $rect->maxy"; > AFTER: -50.1462112868, -40.0534118076, 50.1462112868, 40.0534118076 > $oMap->setExtent($rect->minx, $rect->miny, $rect->maxx, $rect->maxy); > If you look closely at the setExtent call you'll notice that it uses $minx, $maxx,... variable names that are not set in your script. Try: $oMap->setExtent( $rect->minx - $dx, $rect->miny - $dy, $rect->maxx + $dx, $rect->maxy + $dy ); -- ------------------------------------------------------------ Daniel Morissette dmorissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From swapan at dataworld.co.za Thu Jun 24 11:03:10 2004 From: swapan at dataworld.co.za (Swapan Mazumdar) Date: Thu Jun 24 11:05:18 2004 Subject: [maplab-users] PhpMapScript- setExtent problem - URGENT Message-ID: <00F1D25697A9094BA850427870FC5F0520EA3E@kwazulu.dataworld.co.za> Thank you Daniel, With your help I have got it working as desired. Swapan Mazumdar wrote: > Paul, > > Thank you for your prompt reply. I used the same calculations suggested > by you but now the map doesn't show even. Pl. look at the output of > $rec->extent attributes below. > > $rect = $shpObject->bounds; > $dx = abs(($rect->maxx - $rect->minx) * 0.1); $dy = abs(($rect->maxy - > $rect->miny) * 0.1); echo "BEFORE: $rect->minx, $rect->miny, > $rect->maxx, $rect->maxy"; // BEFORE: -47898.6578075, -3394254.84527, > -47397.1956946, -3393854.31115 > $rect->setExtent( $minx - $dx, $miny - $dy, $maxx + $dx, $maxy + $dy ); > echo "AFTER: $rect->minx, $rect->miny, $rect->maxx, $rect->maxy"; > AFTER: -50.1462112868, -40.0534118076, 50.1462112868, 40.0534118076 > $oMap->setExtent($rect->minx, $rect->miny, $rect->maxx, $rect->maxy); > If you look closely at the setExtent call you'll notice that it uses $minx, $maxx,... variable names that are not set in your script. Try: $oMap->setExtent( $rect->minx - $dx, $rect->miny - $dy, $rect->maxx + $dx, $rect->maxy + $dy ); -- ------------------------------------------------------------ Daniel Morissette dmorissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From mdoggett at coas.oregonstate.edu Thu Jun 24 12:05:26 2004 From: mdoggett at coas.oregonstate.edu (Matt Doggett) Date: Thu Jun 24 12:08:19 2004 Subject: [maplab-users] Remove columns from query result In-Reply-To: Message-ID: <008a01c45a05$10b4d7c0$2441c180@oce.orst.edu> In the wrapper sub-directory of your MapLab app, you will find the file map_query.php. Somewhere in the vicinity of lines 528-531 you will find an array_merge() function that merges the SHAPE_INDEX, TILE_INDEX, and LAYER_INDEX onto the array $aTmp. Comment this function out. Should be good to go after that. Matt -----Original Message----- From: maplab-users-bounces@lists.maptools.org [mailto:maplab-users-bounces@lists.maptools.org] On Behalf Of Kenneth Slot Sent: Tuesday, June 01, 2004 12:07 AM To: maplab-users@lists.maptools.org Subject: [maplab-users] Remove columns from query result When i make queries with maplab i get my result as an table from the dbf file. But in the end of the table there is added three columns "SHAPE_INDEX ","TILE_INDEX", "LAYER_INDEX" Do they come from my conversion from MapInfo to shp format. They are not included in the dbf files. How do I suppress/remove these three columns from my query? I know i send this message Friday, but i did not get any respons, i guess its because theres weekend, so i try again. Thanks Kenneth Slot -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040624/eef44830/attachment.htm From ken at rockies.ca Thu Jun 24 19:40:13 2004 From: ken at rockies.ca (Ken Sanderson) Date: Thu Jun 24 19:38:09 2004 Subject: [maplab-users] File extensions Message-ID: <005c01c45a44$9ba6eaa0$31289f88@GLADSTONE> Hello. Been having a problem with getting a raster image to work properly after adding it to the map file via mapedit. I kept getting PHP errors on the top of the page. I tried a number of things and didn't get it to work until I edited the map file by adding .tif to the raster image listed. Mapedit isnt saving the extension of the selected file to the map file. This seems to work with shp files no problem, but apparently a problem with tif's. What is the general scoop on this? Should I be editing my map file and putting .shp extensions on everything as well? Is there a way to make mapedit save the extension always instead of me having to go edit it? Also on a somewhat related note I noticed that Mapedit stores the path information in the DATA attribute for each layer. I assume this isnt necessary since I have the path information in the shapepath attribute? I noticed the tutorial doesn't have paths, just the file name. Thanks, Ken From zak-ms at hoppsan.org Thu Jun 24 21:50:42 2004 From: zak-ms at hoppsan.org (Zak James) Date: Thu Jun 24 21:50:59 2004 Subject: [maplab-users] File extensions In-Reply-To: <005c01c45a44$9ba6eaa0$31289f88@GLADSTONE> References: <005c01c45a44$9ba6eaa0$31289f88@GLADSTONE> Message-ID: <10E75A0E-C64A-11D8-9A48-000D933576F4@hoppsan.org> Ken, Can you be more explicit about what steps you are taking to add the tiff file? What maplab layer settings do you have and what does the layer look like in the saved mapfile before you edit it? Can you append all or part of the file? Shape files are handled differently from other types of files and do not need .shp appended to them. Mapserver can resolve both absolute and relative paths so the path in the DATA tag is not a problem. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Jun 24, 2004, at 7:40 PM, Ken Sanderson wrote: > Hello. > > Been having a problem with getting a raster image to work properly > after > adding it to the map file via mapedit. I kept getting PHP errors on the > top of the page. > > I tried a number of things and didn't get it to work until I edited the > map file by adding .tif to the raster image listed. Mapedit isnt saving > the extension of the selected file to the map file. This seems to work > with shp files no problem, but apparently a problem with tif's. > > What is the general scoop on this? Should I be editing my map file and > putting .shp extensions on everything as well? Is there a way to make > mapedit save the extension always instead of me having to go edit it? > > Also on a somewhat related note I noticed that Mapedit stores the path > information in the DATA attribute for each layer. I assume this isnt > necessary since I have the path information in the shapepath attribute? > I noticed the tutorial doesn't have paths, just the file name. > > Thanks, > > Ken > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > From zak-ms at hoppsan.org Fri Jun 25 07:04:17 2004 From: zak-ms at hoppsan.org (Zak James) Date: Fri Jun 25 07:04:25 2004 Subject: [maplab-users] Problem #2 In-Reply-To: <20040623132807.54947.qmail@web12308.mail.yahoo.com> References: <20040623132807.54947.qmail@web12308.mail.yahoo.com> Message-ID: <66AF230A-C697-11D8-9A48-000D933576F4@hoppsan.org> Hi, Can you confirm that the mapscript library (php_mapscript.so) exists in that location? If it does, it may be that there was a problem with your compilation and it just won't load. What version of mapserver are you using and what unix platform are you on? Did you build it yourself or are you using a package manager like rpm? zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Jun 23, 2004, at 9:28 AM, Andrea Rossi wrote: > Hello > I have resolved mi first problem but now if I try to > open or create a map file I get some errors. > If I try to open i recive this message: > > Warning: dl(): Unable to load dynamic library > '/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ > php_mapscript.so' > - > /usr/local/lib/php/extensions/no-debug-non-zts-20020429/ > php_mapscript.so: > cannot open shared object file: No such file or > directory in > /usr/local/apache2/htdocs/jonathan/maplab-2.1-rc3/htdocs/mapedit/ > mapeditapp.php > on line 165 > > Fatal error: Call to undefined function: > ms_tokenizemap() in > /usr/local/apache2/htdocs/jonathan/maplab-2.1-rc3/htdocs/mapedit/ > mapeditapp.php > on line 168 > > If I try to create I give the name but after the path > in the configuration file put 3 "/" so it can't create > the file... > > Thank you to anyone > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - Helps protect you from nasty viruses. > http://promotions.yahoo.com/new_mail > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > From zak-ms at hoppsan.org Fri Jun 25 07:15:10 2004 From: zak-ms at hoppsan.org (Zak James) Date: Fri Jun 25 07:15:17 2004 Subject: [maplab-users] Mapbal problems In-Reply-To: <41F99683CE01C042A60CD8FE55F95FF60274D4B4@ciatex4.ciat.cgiar.org> References: <41F99683CE01C042A60CD8FE55F95FF60274D4B4@ciatex4.ciat.cgiar.org> Message-ID: Hi, It's hard to guess what could be going wrong here except to say it looks like a misconfiguration of maplab or php. Have you checked the configuration panels for mapbrowser and gmapfactory (the configuration editor is accessible from the opening maplab page)? Don't forget that the ms4w package at www.maptools.org allows you to avoid all these configuration headaches on the windows platform. zak On Jun 23, 2004, at 9:55 AM, Jimenez, Maria Fernanda (CIAT) wrote: > Hi I have installed maplab an when I go on gMapfactory I have some > errors. > > Notice: Undefined variable: gszNewAppPathPath in > c:\inetpub\wwwroot\maplab\htdocs\gmapfactory\globprefs.php on line 76 > > Notice: Undefined index: gszMapFile in > c:\inetpub\wwwroot\maplab\htdocs\gmapfactory\appframeset.phtml on line > 98 > > Notice: Undefined index: gszMapName in > c:\inetpub\wwwroot\maplab\htdocs\gmapfactory\appframeset.phtml on line > 101 > > Notice: Undefined index: gszMapFile in > c:\inetpub\wwwroot\maplab\htdocs\gmapfactory\appframeset.phtml on line > 121 > Please use the toolbar to select a project and map file Notice: > Undefined > index: gszMapName in > c:\inetpub\wwwroot\maplab\htdocs\gmapfactory\no_proj.phtml on line 136 > > > Mapbrowser I have some errors > > Notice: Undefined variable: szSessionVar in > c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 > > Notice: Undefined variable: szSessionVar in > c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 > > Notice: Undefined variable: szSessionVar in > c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 > > Notice: Undefined variable: szSessionVar in > c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 > > Notice: Undefined variable: szSessionVar in > c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 > > Notice: Undefined variable: szSessionVar in > c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 > > Notice: Undefined variable: szSessionVar in > c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 > > Notice: Undefined variable: szSessionVar in > c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 > > Notice: Undefined variable: szSessionVar in > c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 > > Notice: Undefined variable: szSessionVar in > c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 > > Notice: Undefined variable: szSessionVar in > c:\inetpub\wwwroot\maplab\htdocs\mapbrowser\globprefs.php on line 251 > > Maplab Information I have some errors > > Notice: Use of undefined constant MS_GIF - assumed 'MS_GIF' in > c:\inetpub\wwwroot\maplab\htdocs\info.php on line 121 > > Notice: Use of undefined constant MS_PNG - assumed 'MS_PNG' in > c:\inetpub\wwwroot\maplab\htdocs\info.php on line 123 > > Notice: Use of undefined constant MS_JPEG - assumed 'MS_JPEG' in > c:\inetpub\wwwroot\maplab\htdocs\info.php on line 125 > > Notice: Use of undefined constant MS_WBMP - assumed 'MS_WBMP' in > c:\inetpub\wwwroot\maplab\htdocs\info.php on line 127 > > Supported Image Types <<...OLE_Obj...>> Enabled? > GIF Notice: Use of undefined constant MS_GIF - assumed 'MS_GIF' in > c:\inetpub\wwwroot\maplab\htdocs\info.phtml on line 245 > <<...OLE_Obj...>> > PNG Notice: Use of undefined constant MS_PNG - assumed 'MS_PNG' in > c:\inetpub\wwwroot\maplab\htdocs\info.phtml on line 255 > <<...OLE_Obj...>> > JPEG Notice: Use of undefined constant MS_JPEG - assumed 'MS_JPEG' in > c:\inetpub\wwwroot\maplab\htdocs\info.phtml on line 265 > <<...OLE_Obj...>> > WBMP Notice: Use of undefined constant MS_WBMP - assumed 'MS_WBMP' in > c:\inetpub\wwwroot\maplab\htdocs\info.phtml on line 275 > > Thanks for help me > > MariaF > <<...OLE_Obj...>> > Bottom of Form 1 > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > From ken at rockies.ca Fri Jun 25 12:24:32 2004 From: ken at rockies.ca (Ken Sanderson) Date: Fri Jun 25 12:22:19 2004 Subject: [maplab-users] File extensions In-Reply-To: <10E75A0E-C64A-11D8-9A48-000D933576F4@hoppsan.org> Message-ID: <002301c45ad0$e626b3d0$31289f88@GLADSTONE> I just add a layer object, same as I would for a shape file, then under the DATA attribute I browse to select the tif file (have to select all files to see it). Here is what the layer looks like in the map file before I edit: LAYER NAME "Background Image" STATUS OFF DATA "../../portaldem" TYPE RASTER UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS END To get it to work all I did was change DATA to "../../portaldem.tif". Ken -----Original Message----- From: Zak James [mailto:zak-ms@hoppsan.org] Sent: June 24, 2004 7:51 PM To: Ken Sanderson Cc: maplab-users@lists.maptools.org Subject: Re: [maplab-users] File extensions Ken, Can you be more explicit about what steps you are taking to add the tiff file? What maplab layer settings do you have and what does the layer look like in the saved mapfile before you edit it? Can you append all or part of the file? Shape files are handled differently from other types of files and do not need .shp appended to them. Mapserver can resolve both absolute and relative paths so the path in the DATA tag is not a problem. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Jun 24, 2004, at 7:40 PM, Ken Sanderson wrote: > Hello. > > Been having a problem with getting a raster image to work properly > after > adding it to the map file via mapedit. I kept getting PHP errors on the > top of the page. > > I tried a number of things and didn't get it to work until I edited > the map file by adding .tif to the raster image listed. Mapedit isnt > saving the extension of the selected file to the map file. This seems > to work with shp files no problem, but apparently a problem with > tif's. > > What is the general scoop on this? Should I be editing my map file and > putting .shp extensions on everything as well? Is there a way to make > mapedit save the extension always instead of me having to go edit it? > > Also on a somewhat related note I noticed that Mapedit stores the path > information in the DATA attribute for each layer. I assume this isnt > necessary since I have the path information in the shapepath > attribute? I noticed the tutorial doesn't have paths, just the file > name. > > Thanks, > > Ken > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > From ken at rockies.ca Fri Jun 25 13:05:08 2004 From: ken at rockies.ca (Ken Sanderson) Date: Fri Jun 25 13:02:49 2004 Subject: [maplab-users] How do you display a layer by attribute? Message-ID: <002601c45ad6$9477b1f0$31289f88@GLADSTONE> Hello all. How do you set up a map file through map edit to display a layer by an attribute value. So for example if I have a field called TYPE and in that field you can have a value of 1-4. I then want to display all 1's as red, 2's as blue, 3's as green, 4's as yellow on the map. How do I go about setting that up? I assumed that I would set ClassItem to TYPE, but not sure how to go about defining a style object for each value type could be? Thanks, Ken From zak-ms at hoppsan.org Fri Jun 25 13:50:11 2004 From: zak-ms at hoppsan.org (Zak James) Date: Fri Jun 25 13:50:17 2004 Subject: [maplab-users] File extensions In-Reply-To: <002301c45ad0$e626b3d0$31289f88@GLADSTONE> References: <002301c45ad0$e626b3d0$31289f88@GLADSTONE> Message-ID: <1AFA6923-C6D0-11D8-BE78-000D933576F4@hoppsan.org> Hi Ken, I will file a bug on this and try to get the fix included in the next release of Maplab (2.2) which should be coming within the next few weeks. Thanks for the information. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Jun 25, 2004, at 12:24 PM, Ken Sanderson wrote: > I just add a layer object, same as I would for a shape file, then under > the DATA attribute I browse to select the tif file (have to select all > files to see it). > > Here is what the layer looks like in the map file before I edit: > > LAYER > NAME "Background Image" > STATUS OFF > DATA "../../portaldem" > TYPE RASTER > UNITS METERS > SIZEUNITS PIXELS > TOLERANCE 0 > TOLERANCEUNITS PIXELS > END > > To get it to work all I did was change DATA to "../../portaldem.tif". > > Ken > > -----Original Message----- > From: Zak James [mailto:zak-ms@hoppsan.org] > Sent: June 24, 2004 7:51 PM > To: Ken Sanderson > Cc: maplab-users@lists.maptools.org > Subject: Re: [maplab-users] File extensions > > > Ken, > > Can you be more explicit about what steps you are taking to add the > tiff file? What maplab layer settings do you have and what does the > layer look like in the saved mapfile before you edit it? Can you append > all or part of the file? > > Shape files are handled differently from other types of files and do > not need .shp appended to them. > > Mapserver can resolve both absolute and relative paths so the path in > the DATA tag is not a problem. > > zak > -- > Zak James > Applications and Software Development > DM Solutions Group Inc. > http://www.dmsolutions.ca > > > On Jun 24, 2004, at 7:40 PM, Ken Sanderson wrote: > >> Hello. >> >> Been having a problem with getting a raster image to work properly >> after >> adding it to the map file via mapedit. I kept getting PHP errors on > the >> top of the page. >> >> I tried a number of things and didn't get it to work until I edited >> the map file by adding .tif to the raster image listed. Mapedit isnt >> saving the extension of the selected file to the map file. This seems >> to work with shp files no problem, but apparently a problem with >> tif's. >> >> What is the general scoop on this? Should I be editing my map file and > >> putting .shp extensions on everything as well? Is there a way to make >> mapedit save the extension always instead of me having to go edit it? >> >> Also on a somewhat related note I noticed that Mapedit stores the path > >> information in the DATA attribute for each layer. I assume this isnt >> necessary since I have the path information in the shapepath >> attribute? I noticed the tutorial doesn't have paths, just the file >> name. >> >> Thanks, >> >> Ken >> >> >> _______________________________________________ >> Maplab-users mailing list >> Maplab-users@lists.maptools.org >> http://lists.maptools.org/mailman/listinfo/maplab-users >> > > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > From zak-ms at hoppsan.org Fri Jun 25 13:55:27 2004 From: zak-ms at hoppsan.org (Zak James) Date: Fri Jun 25 13:55:32 2004 Subject: [maplab-users] How do you display a layer by attribute? In-Reply-To: <002601c45ad6$9477b1f0$31289f88@GLADSTONE> References: <002601c45ad6$9477b1f0$31289f88@GLADSTONE> Message-ID: Ken, You need to specify a separate class for each value or value range of the attribute that you want to differentiate. Multiple Style objects are used within each class to build layered symbolization (for instance a star within a circle for point markers or a fill with a contrasting outline for polygons). One serious bug that I can warn you about: don't give a Style a name in Mapedit or it will break your mapfile. This problem will be addressed in the upcoming release. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Jun 25, 2004, at 1:05 PM, Ken Sanderson wrote: > Hello all. > > How do you set up a map file through map edit to display a layer by an > attribute value. So for example if I have a field called TYPE and in > that field you can have a value of 1-4. I then want to display all 1's > as red, 2's as blue, 3's as green, 4's as yellow on the map. > > How do I go about setting that up? I assumed that I would set ClassItem > to TYPE, but not sure how to go about defining a style object for each > value type could be? > > Thanks, > > Ken > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > From ken at rockies.ca Fri Jun 25 13:58:39 2004 From: ken at rockies.ca (Ken Sanderson) Date: Fri Jun 25 13:56:22 2004 Subject: [maplab-users] How do you display a layer by attribute? In-Reply-To: <002601c45ad6$9477b1f0$31289f88@GLADSTONE> Message-ID: <002801c45ade$0e80d420$31289f88@GLADSTONE> Following up my own question. I found a map file on the web and by looking at what they have done I noticed they had multiple classes, rather then multiple styles like I was trying. So I did a class for each value and an associated Style. It works fine as far as displaying the data, my question now is how do I make it so that the legend doesn't just show the top value for that layer? In short how can I have a color for each class listed in the legend under that particular layer? Thanks again, Ken -----Original Message----- From: maplab-users-bounces@lists.maptools.org [mailto:maplab-users-bounces@lists.maptools.org] On Behalf Of Ken Sanderson Sent: June 25, 2004 11:05 AM To: maplab-users@lists.maptools.org Subject: [maplab-users] How do you display a layer by attribute? Hello all. How do you set up a map file through map edit to display a layer by an attribute value. So for example if I have a field called TYPE and in that field you can have a value of 1-4. I then want to display all 1's as red, 2's as blue, 3's as green, 4's as yellow on the map. How do I go about setting that up? I assumed that I would set ClassItem to TYPE, but not sure how to go about defining a style object for each value type could be? Thanks, Ken _______________________________________________ Maplab-users mailing list Maplab-users@lists.maptools.org http://lists.maptools.org/mailman/listinfo/maplab-users From cthorne at dmsolutions.ca Fri Jun 25 14:40:01 2004 From: cthorne at dmsolutions.ca (Christopher R. Thorne) Date: Fri Jun 25 14:42:29 2004 Subject: [maplab-users] How do you display a layer by attribute? In-Reply-To: <002801c45ade$0e80d420$31289f88@GLADSTONE> References: <002801c45ade$0e80d420$31289f88@GLADSTONE> Message-ID: <40DC7181.7090706@dmsolutions.ca> Ken, Your Question: In short how can I have a color for each class listed in the legend under that particular layer? In mapedit preview and gmap factory (ie. maplab) it is not flexible (a side from going into the code of maplab, or editing your final outputted gmap factory) in displaying classes within a mapfile. The easiest way in maplab would be to set up a Layer for each defined class you wish to display. But if you want to build a web application that can handle legend classes, I would personally use the chameleon technology found on www.maptools.org. This allows you to personally configure your own web application with the mapfile you created in mapedit, knowing little of php_mapscript/mapserver. If you are interested in Chameleon than the "Chameleon widget" That can do the job for you would be the "LegendTemplate" Widget. Chris Ken Sanderson wrote: >Following up my own question. I found a map file on the web and by >looking at what they have done I noticed they had multiple classes, >rather then multiple styles like I was trying. So I did a class for each >value and an associated Style. It works fine as far as displaying the >data, my question now is how do I make it so that the legend doesn't >just show the top value for that layer? In short how can I have a color >for each class listed in the legend under that particular layer? > >Thanks again, > >Ken > >-----Original Message----- >From: maplab-users-bounces@lists.maptools.org >[mailto:maplab-users-bounces@lists.maptools.org] On Behalf Of Ken >Sanderson >Sent: June 25, 2004 11:05 AM >To: maplab-users@lists.maptools.org >Subject: [maplab-users] How do you display a layer by attribute? > > >Hello all. > >How do you set up a map file through map edit to display a layer by an >attribute value. So for example if I have a field called TYPE and in >that field you can have a value of 1-4. I then want to display all 1's >as red, 2's as blue, 3's as green, 4's as yellow on the map. > >How do I go about setting that up? I assumed that I would set ClassItem >to TYPE, but not sure how to go about defining a style object for each >value type could be? > >Thanks, > >Ken > > >_______________________________________________ >Maplab-users mailing list >Maplab-users@lists.maptools.org >http://lists.maptools.org/mailman/listinfo/maplab-users > > >_______________________________________________ >Maplab-users mailing list >Maplab-users@lists.maptools.org >http://lists.maptools.org/mailman/listinfo/maplab-users > > > -- --------------------- Christopher R. Thorne GIS Product Specialist, DM Solutions Group Inc. http://www.dmsolutions.ca Email: cthorne@dmsolutions.ca Phone: (613) 565-5056 ext.22 Fax : (613) 565-0925 From ken at rockies.ca Fri Jun 25 14:56:45 2004 From: ken at rockies.ca (Ken Sanderson) Date: Fri Jun 25 14:54:26 2004 Subject: [maplab-users] How do you display a layer by attribute? In-Reply-To: <40DC7181.7090706@dmsolutions.ca> Message-ID: <002b01c45ae6$2c4fc620$31289f88@GLADSTONE> Chris, Thanks for the reply. I am actually using Chameleon, or rather have intentions to use. I set up Chameleon and got it all working with the samples and I am now going through the steps of creating my own map file with my data, thus using maplab to get things setup. I am not that familiar with map files yet, but from your post I gather I have done all that I need to do as far as setting up the map file so that in Chameleon I can have the legend display each class? Thanks again, Ken -----Original Message----- From: maplab-users-bounces@lists.maptools.org [mailto:maplab-users-bounces@lists.maptools.org] On Behalf Of Christopher R. Thorne Sent: June 25, 2004 12:40 PM Cc: maplab-users@lists.maptools.org Subject: Re: [maplab-users] How do you display a layer by attribute? Ken, Your Question: In short how can I have a color for each class listed in the legend under that particular layer? In mapedit preview and gmap factory (ie. maplab) it is not flexible (a side from going into the code of maplab, or editing your final outputted gmap factory) in displaying classes within a mapfile. The easiest way in maplab would be to set up a Layer for each defined class you wish to display. But if you want to build a web application that can handle legend classes, I would personally use the chameleon technology found on www.maptools.org. This allows you to personally configure your own web application with the mapfile you created in mapedit, knowing little of php_mapscript/mapserver. If you are interested in Chameleon than the "Chameleon widget" That can do the job for you would be the "LegendTemplate" Widget. Chris Ken Sanderson wrote: >Following up my own question. I found a map file on the web and by >looking at what they have done I noticed they had multiple classes, >rather then multiple styles like I was trying. So I did a class for >each value and an associated Style. It works fine as far as displaying >the data, my question now is how do I make it so that the legend >doesn't just show the top value for that layer? In short how can I have >a color for each class listed in the legend under that particular >layer? > >Thanks again, > >Ken > >-----Original Message----- >From: maplab-users-bounces@lists.maptools.org >[mailto:maplab-users-bounces@lists.maptools.org] On Behalf Of Ken >Sanderson >Sent: June 25, 2004 11:05 AM >To: maplab-users@lists.maptools.org >Subject: [maplab-users] How do you display a layer by attribute? > > >Hello all. > >How do you set up a map file through map edit to display a layer by an >attribute value. So for example if I have a field called TYPE and in >that field you can have a value of 1-4. I then want to display all 1's >as red, 2's as blue, 3's as green, 4's as yellow on the map. > >How do I go about setting that up? I assumed that I would set ClassItem >to TYPE, but not sure how to go about defining a style object for each >value type could be? > >Thanks, > >Ken > > >_______________________________________________ >Maplab-users mailing list >Maplab-users@lists.maptools.org >http://lists.maptools.org/mailman/listinfo/maplab-users > > >_______________________________________________ >Maplab-users mailing list >Maplab-users@lists.maptools.org >http://lists.maptools.org/mailman/listinfo/maplab-users > > > -- --------------------- Christopher R. Thorne GIS Product Specialist, DM Solutions Group Inc. http://www.dmsolutions.ca Email: cthorne@dmsolutions.ca Phone: (613) 565-5056 ext.22 Fax : (613) 565-0925 _______________________________________________ Maplab-users mailing list Maplab-users@lists.maptools.org http://lists.maptools.org/mailman/listinfo/maplab-users From toudert at uabc.mx Fri Jun 25 18:30:04 2004 From: toudert at uabc.mx (Djamel Toudert) Date: Sat Jun 26 07:47:29 2004 Subject: [maplab-users] Installing and configuring maplab Message-ID: <000001c45b03$f687c920$5a37e794@Mexicali> I apreciate any help to resolve this probleme with maplab: I am installing maplab the first time in Linux Mondrake 9.2, I have Mapserver working fine. After the instalation (With the linux maplab guide), all things seem to be ok, but when I try to acces maplab/htdocs, I guet nothing in the browser (I guet only the dmsolution image link). The same thing happened with maplab/htdoc/index.phtml and info.phtml, absolulty nothing in the browser. Manually, I make all changes to the values in the XML files (maplab.xml, mapedit.xml, gmapfactory.xml) whith no success to guet something looking maplab. Thanks lots for your help. Djamel Toudert Investigador del Instituto de Investigaciones Sociales Universidad Aut?noma de Baja California Ed. Posgrado e Investigaciones. S/N BLVD. Benito Ju?rez. Mexicali. Baja California. Tel:(686)-566-29-85 EXT: 131. FAX: EXT:105 ------------------------------------------- Instituto de Investigaciones Sociales P.O.BOX 3280 Calexico, CA 92232-1426 USA -------------------------------------------- toudert@uabc.mx http://geomex.multimania.com -------------------------------------------- -Certificado por Norton System Works 2003- ----------Norton Version 9.05.15------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040625/c5568239/attachment-0001.htm From zak-ms at hoppsan.org Sat Jun 26 10:05:51 2004 From: zak-ms at hoppsan.org (Zak James) Date: Sat Jun 26 10:05:59 2004 Subject: [maplab-users] Installing and configuring maplab In-Reply-To: <000001c45b03$f687c920$5a37e794@Mexicali> References: <000001c45b03$f687c920$5a37e794@Mexicali> Message-ID: Djamel, Check your Apache error log for messages about missing files. Did you follow the steps to configure Apache to serve php and phtml files? zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Jun 25, 2004, at 6:30 PM, Djamel Toudert wrote: > I apreciate any help to resolve this probleme with maplab: > > I am installing maplab the first time in Linux Mondrake 9.2, I have > Mapserver working fine. > After the instalation (With the linux maplab guide), all things seem to > be ok, but when I try to acces maplab/htdocs, I guet nothing in the > browser (I guet only the dmsolution image link). The same thing > happened > with maplab/htdoc/index.phtml and info.phtml, absolulty nothing in the > browser. Manually, I make all changes to the values in the XML files > (maplab.xml, mapedit.xml, gmapfactory.xml) whith no success to guet > something looking maplab. > Thanks lots for your help. > > Djamel Toudert > Investigador del Instituto de Investigaciones Sociales > Universidad Aut?noma de Baja California > Ed. Posgrado e Investigaciones. S/N > BLVD. Benito Ju?rez. Mexicali. Baja California. > Tel:(686)-566-29-85 EXT: 131. FAX: EXT:105 > ------------------------------------------- > Instituto de Investigaciones Sociales > P.O.BOX 3280 > Calexico, CA 92232-1426 USA > -------------------------------------------- > toudert@uabc.mx > http://geomex.multimania.com > -------------------------------------------- > -Certificado por Norton System Works 2003- > ----------Norton Version 9.05.15------------ > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users From chengcharlie2003 at yahoo.ca Mon Jun 28 12:41:01 2004 From: chengcharlie2003 at yahoo.ca (charley cheng) Date: Mon Jun 28 12:41:25 2004 Subject: [maplab-users] Could not preview map in MapEdit Message-ID: <20040628164101.19843.qmail@web14824.mail.yahoo.com> Hi! Dear Lists; I am trying to use Maplab for my thesis project. After I followed the turtorial, I could not preview my Mapfile. The error messages are as follows: Warning: fopen(C:/temp//40e042ae9b2c4.map): failed to open stream. No such file or diectory in c:\map\maplab-2.1-rc3\htdocs\mapedit\preview.php on line 259. Warning: fwrite(): supplied argument is not a valid stream rescource in c:\maplab \maplab-2.1-rc3\htdocs\mapedit\preview.php on line 260 Warning: fclose(): supplied argument is not a valid stream resource in c:\maplab\maplab-2.1-rc3\htdocs\mapedit\preview.php on line 261 Fatal error: call to a member function on a non-object in c:\maplab\maplab-2.1-rc3\htdocs\mapedit\preview.php on line 308. In fact, the preview.php is at above location. I tested other mapfiles, they all could not be previewed and the error message is similar. However, I can publish the tutorial using GMAPFactory, it seems work fine. Other question is that I use MapScript 4.0 which is copied from MSW4, I could not find the link to download the PHP MapScript 4.2.0. I use Window XP, apache, mapsever. Thank you very much! Charlie MGIS Candiate Department of Geography University of Calgary --------------------------------- Post your free ad now! Yahoo! Canada Personals -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040628/13162970/attachment.htm From jrivard at connect.carleton.ca Mon Jun 28 14:15:42 2004 From: jrivard at connect.carleton.ca (Joel Rivard) Date: Mon Jun 28 14:15:46 2004 Subject: [maplab-users] Could not preview map in MapEdit Message-ID: <1595301.1088446542251.JavaMail.jrivard@connect.carleton.ca> Hi Charley, Are you running MapServer from the MS4W base Package? I would recommend the MS4W package because it installs MapServer 4.1 CGI, php_mapscript_41.dll and Apache. You can get the latest PHP Mapscript 4.2 for MS4W and the MS4W package at: http://maptools.org/ms4w/index.phtml?page=downloads.html you simply have to extract both zip files to the root of the drive. Joel Rivard charley cheng wrote: >Hi! Dear Lists; > >I am trying to use Maplab for my thesis project. After I followed the turtorial, I could not preview my Mapfile. The error messages are as follows: > >Warning: fopen(C:/temp//40e042ae9b2c4.map): failed to open stream. No such file or diectory in c:\map\maplab-2.1-rc3\htdocs\mapedit\preview.php on line 259. > >Warning: fwrite(): supplied argument is not a valid stream rescource in c:\maplab \maplab-2.1-rc3\htdocs\mapedit\preview.php on line 260 > >Warning: fclose(): supplied argument is not a valid stream resource in c:\maplab\maplab-2.1-rc3\htdocs\mapedit\preview.php on line 261 > >Fatal error: call to a member function on a non-object in c:\maplab\maplab-2.1-rc3\htdocs\mapedit\preview.php on line 308. > >In fact, the preview.php is at above location. > >I tested other mapfiles, they all could not be previewed and the error message is similar. > >However, I can publish the tutorial using GMAPFactory, it seems work fine. > >Other question is that I use MapScript 4.0 which is copied from MSW4, >I could not find the link to download the PHP MapScript 4.2.0. > >I use Window XP, apache, mapsever. > >Thank you very much! > >Charlie > >MGIS Candiate >Department of Geography >University of Calgary > > > > >--------------------------------- >Post your free ad now! Yahoo! Canada Personals > ------------------------------------------------------------------------ _______________________________________________ >Maplab-users mailing list >Maplab-users@lists.maptools.org >http://lists.maptools.org/mailman/listinfo/maplab-users > From zak-ms at hoppsan.org Mon Jun 28 14:51:25 2004 From: zak-ms at hoppsan.org (Zak James) Date: Mon Jun 28 14:51:32 2004 Subject: [maplab-users] Could not preview map in MapEdit In-Reply-To: <20040628164101.19843.qmail@web14824.mail.yahoo.com> References: <20040628164101.19843.qmail@web14824.mail.yahoo.com> Message-ID: <28021C4C-C934-11D8-BC0E-000D933576F4@hoppsan.org> Charlie, That looks like a misconfiguration of Maplab. Can you send your maplab.xml settings to the list? Otherwise, look at how the maplab.xml that came with your ms4w package is set up and make similar entries in your customized one, accounting for install path differences. zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Jun 28, 2004, at 12:41 PM, charley cheng wrote: > Hi! Dear Lists; > ? > I am trying to use Maplab for my thesis project. After I followed the > turtorial, I could not preview my Mapfile. The error messages are as > follows: > ? > Warning: fopen(C:/temp//40e042ae9b2c4.map): failed to open stream. No > such file or diectory in > c:\map\maplab-2.1-rc3\htdocs\mapedit\preview.php on line 259. > ? > Warning: fwrite(): supplied argument is not a valid stream rescource > in c:\maplab \maplab-2.1-rc3\htdocs\mapedit\preview.php on line 260 > ? > Warning: fclose(): supplied argument is not a valid stream resource in > c:\maplab\maplab-2.1-rc3\htdocs\mapedit\preview.php on line 261 > ? > Fatal error: call to a member function on a non-object in > c:\maplab\maplab-2.1-rc3\htdocs\mapedit\preview.php on line 308. > ? > In fact, the preview.php is at above location. > ? > I tested other mapfiles, they all could not be previewed and the error > message is similar. > ? > However, I can publish the tutorial using GMAPFactory, it seems work > fine. > ? > Other question is that I use MapScript 4.0 which is copied from MSW4, > I could not find the link to download the PHP MapScript 4.2.0. > ? > I use Window XP, apache, mapsever. > ? > Thank you very much! > ? > Charlie > ? > MGIS Candiate > Department of Geography > University of Calgary > ? > > > Post your free ad now! Yahoo! Canada Personals > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users From chengcharlie2003 at yahoo.ca Mon Jun 28 16:42:40 2004 From: chengcharlie2003 at yahoo.ca (charley cheng) Date: Mon Jun 28 16:42:43 2004 Subject: [maplab-users] Could not preview map in MapEdit In-Reply-To: <1595301.1088446542251.JavaMail.jrivard@connect.carleton.ca> Message-ID: <20040628204240.53335.qmail@web14824.mail.yahoo.com> Hi! Thanks Joel, I am not runing MapServer from MS4W. According to your suggestion, I download the MS4W based package and maplab, and install it. It works fine. I am now working as summer student in company and am planning to run mapserver, php/ mapscript, maplab under company's Window 2000 server, IIS platform. Do you or the Dear lists know where I can find the good references? Thank you very much indeed! Charlie Joel Rivard wrote: Hi Charley, Are you running MapServer from the MS4W base Package? I would recommend the MS4W package because it installs MapServer 4.1 CGI, php_mapscript_41.dll and Apache. You can get the latest PHP Mapscript 4.2 for MS4W and the MS4W package at: http://maptools.org/ms4w/index.phtml?page=downloads.html you simply have to extract both zip files to the root of the drive. Joel Rivard charley cheng wrote: >Hi! Dear Lists; > >I am trying to use Maplab for my thesis project. After I followed the turtorial, I could not preview my Mapfile. The error messages are as follows: > >Warning: fopen(C:/temp//40e042ae9b2c4.map): failed to open stream. No such file or diectory in c:\map\maplab-2.1-rc3\htdocs\mapedit\preview.php on line 259. > >Warning: fwrite(): supplied argument is not a valid stream rescource in c:\maplab \maplab-2.1-rc3\htdocs\mapedit\preview.php on line 260 > >Warning: fclose(): supplied argument is not a valid stream resource in c:\maplab\maplab-2.1-rc3\htdocs\mapedit\preview.php on line 261 > >Fatal error: call to a member function on a non-object in c:\maplab\maplab-2.1-rc3\htdocs\mapedit\preview.php on line 308. > >In fact, the preview.php is at above location. > >I tested other mapfiles, they all could not be previewed and the error message is similar. > >However, I can publish the tutorial using GMAPFactory, it seems work fine. > >Other question is that I use MapScript 4.0 which is copied from MSW4, >I could not find the link to download the PHP MapScript 4.2.0. > >I use Window XP, apache, mapsever. > >Thank you very much! > >Charlie > >MGIS Candiate >Department of Geography >University of Calgary > > > > >--------------------------------- >Post your free ad now! Yahoo! Canada Personals > ------------------------------------------------------------------------ _______________________________________________ >Maplab-users mailing list >Maplab-users@lists.maptools.org >http://lists.maptools.org/mailman/listinfo/maplab-users > --------------------------------- Post your free ad now! Yahoo! Canada Personals -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040628/b077c545/attachment.htm From toudert at uabc.mx Mon Jun 28 14:00:43 2004 From: toudert at uabc.mx (Djamel Toudert) Date: Mon Jun 28 19:48:12 2004 Subject: RV: [maplab-users] Installing and configuring maplab Message-ID: <000401c45d39$d7ec1970$5a37e794@Mexicali> He Zac, Thanks for your answer. The apache seem to work properly. I send the output of the testing mapscript with: I hope you can detect something to help me run Maplab. Thanks for your very appreciated help phpinfo() PHP Version 4.3.3 System Linux projekt.mxl.uabc.mx 2.4.22-10mdk #1 Thu Sep 18 12:30:58 CEST 2003 i686 Build Date Aug 27 2003 02:16:14 Configure Command './configure' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-discard-path' '--disable-force-cgi-redirect' '--enable-shared' '--disable-static' '--disable-debug' '--disable-rpath' '--enable-pic' '--enable-inline-optimization' '--enable-memory-limit' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php' '--with-pear=/usr/share/pear' '--enable-magic-quotes' '--enable-debugger' '--enable-track-vars' '--with-exec-dir=/usr/bin' '--with-versioning' '--with-mod_charset' '--with-regex=php' '--enable-track-vars' '--enable-trans-sid' '--enable-safe-mode' '--enable-ctype' '--enable-ftp' '--with-gettext=/usr' '--enable-posix' '--enable-session' '--enable-sysvsem' '--enable-sysvshm' '--enable-yp' '--with-openssl=/usr' '--without-kerberos' '--with-ttf' '--with-freetype-dir=/usr' '--with-zlib=/usr' '--with-zlib=/usr' '--with-zlib-dir=/usr' Extensions listed here are (or will be soon) available as external modules. To install one or all of these, use "urpmi" php-EXTENSION_NAME mysql pgsql sqlite gd imap ldap bcmath bz2 calendar cpdf crack curl cyrus db dba dba_bundle dbase dbx dio domxml exif fbsql fdf filepro fribidi gmp hwapi hyperwave iconv imagick informix ingres_ii interbase ircg java mbstring mcal mcrypt mcve mhash mime_magic ming mnogosearch msession msql mssql ncurses notes oci8 odbc oracle overload ovrimos pam_auth pcntl pdf pfpro pspell qtdom readline recode rrdtool shmop snmp smbauth sockets swf sybase sybase_ct sysvmsg tokenizer wddx xml xmlrpc xslt yaz zip adodb mmcache apd cybercash cybermut mono mqseries netools python spplus spread inifile Server API Apache 2.0 Handler Virtual Directory Support disabled Configuration File (php.ini) Path /etc/php.ini Scan this dir for additional .ini files /etc/php additional .ini files parsed /etc/php/23_gd.ini, /etc/php/34_mysql.ini PHP API 20020918 PHP Extension 20020429 Zend Extension 20021010 Debug Build no Thread Safety disabled Registered PHP Streams php, http, ftp, https, ftps, compress.zlib This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies PHP Credits Configuration PHP Core DirectiveLocal ValueMaster Value allow_call_time_pass_referenceOnOn allow_url_fopenOnOn always_populate_raw_post_dataOffOff arg_separator.input&& arg_separator.output&& asp_tagsOffOff auto_append_fileno valueno value auto_prepend_fileno valueno value browscapno valueno value default_charsetno valueno value default_mimetypetext/htmltext/html define_syslog_variablesOffOff disable_classesno valueno value disable_functionsno valueno value display_errorsOffOff display_startup_errorsOffOff doc_rootno valueno value docref_extno valueno value docref_rootno valueno value enable_dlOnOn error_append_stringno valueno value error_logno valueno value error_prepend_stringno valueno value error_reporting20392039 expose_phpOnOn extension_dir/usr/lib/php/extensions/usr/lib/php/extensions file_uploadsOnOn gpc_orderGPCGPC highlight.bg#FFFFFF#FFFFFF highlight.comment#FF8000#FF8000 highlight.default#0000BB#0000BB highlight.html#000000#000000 highlight.keyword#007700#007700 highlight.string#DD0000#DD0000 html_errorsOnOn ignore_repeated_errorsOffOff ignore_repeated_sourceOffOff ignore_user_abortOffOff implicit_flushOffOff include_path.:/usr/lib/php/:/usr/share/pear/.:/usr/lib/php/:/usr/share/p ear/ log_errorsOffOff log_errors_max_len10241024 magic_quotes_gpcOnOn magic_quotes_runtimeOffOff magic_quotes_sybaseOffOff max_execution_time3030 max_input_time6060 memory_limit8M8M open_basedirno valueno value output_bufferingno valueno value output_handlerno valueno value post_max_size8M8M precision1212 register_argc_argvOnOn register_globalsOnOn report_memleaksOnOn safe_modeOffOff safe_mode_exec_dirno valueno value safe_mode_gidOffOff safe_mode_include_dirno valueno value sendmail_fromme@localhost.comme@localhost.com sendmail_path/usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i serialize_precision100100 short_open_tagOnOn SMTPlocalhostlocalhost smtp_port2525 sql.safe_modeOffOff track_errorsOffOff unserialize_callback_funcno valueno value upload_max_filesize2M2M upload_tmp_dirno valueno value user_dirno valueno value variables_orderEGPCSEGPCS xmlrpc_error_number00 xmlrpc_errorsOffOff y2k_complianceOnOn apache2handler Apache Version Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/6mdk) mod_perl/1.99_09 Perl/v5.8.1 mod_ssl/2.0.47 OpenSSL/0.9.7b PHP/4.3.2 Apache API Version 20020903 Server Administrator root@localhost Hostname:Port projekt.mxl.uabc.mx:0 User/Group apache(13)/101 Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100 Timeouts Connection: 300 - Keep-Alive: 15 Virtual Server No Server Root /etc/httpd/2.0 Loaded Modules core prefork http_core mod_so mod_access mod_auth mod_auth_anon mod_auth_digest mod_include mod_log_config mod_env mod_expires mod_headers mod_usertrack mod_setenvif mod_mime mod_status mod_autoindex mod_asis mod_info mod_cgi mod_vhost_alias mod_negotiation mod_dir mod_imap mod_actions mod_userdir mod_alias mod_rewrite mod_proxy proxy_http mod_ssl mod_suexec mod_php4 mod_perl DirectiveLocal ValueMaster Value engine11 last_modified00 xbithack00 Apache Environment VariableValue SCRIPT_URL /test_phpMascript.php SCRIPT_URI http://projekt.mxl.uabc.mx/test_phpMascript.php HTTP_ACCEPT */* HTTP_ACCEPT_LANGUAGE es-mx HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) HTTP_ACCEPT_ENCODING gzip, deflate HTTP_HOST 148.231.55.91 HTTP_CONNECTION Keep-Alive PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin SERVER_SIGNATURE

Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/6mdk) mod_perl/1.99_09 Perl/v5.8.1 mod_ssl/2.0.47 OpenSSL/0.9.7b PHP/4.3.2 Server at projekt.mxl.uabc.mx Port 80
SERVER_SOFTWARE Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/6mdk) mod_perl/1.99_09 Perl/v5.8.1 mod_ssl/2.0.47 OpenSSL/0.9.7b PHP/4.3.2 SERVER_NAME projekt.mxl.uabc.mx SERVER_ADDR 148.231.55.91 SERVER_PORT 80 REMOTE_ADDR 148.231.55.90 DOCUMENT_ROOT /var/www/html SERVER_ADMIN root@localhost SCRIPT_FILENAME /var/www/html/test_phpMascript.php REMOTE_PORT 1453 GATEWAY_INTERFACE CGI/1.1 SERVER_PROTOCOL HTTP/1.1 REQUEST_METHOD GET QUERY_STRING no value REQUEST_URI /test_phpMascript.php SCRIPT_NAME /test_phpMascript.php HTTP Headers Information HTTP Request Headers HTTP Request GET /test_phpMascript.php HTTP/1.1 Accept */* Accept-Language es-mx User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Accept-Encoding gzip, deflate Host 148.231.55.91 HTTP Response Headers X-Powered-By PHP/4.3.3 Transfer-Encoding chunked Content-Type text/html ctype ctype functions enabled ftp FTP support enabled gd GD Support enabled GD Version bundled (2.0.15 compatible) FreeType Support enabled FreeType Linkage with freetype GIF Read Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled gettext GetText Support enabled mysql MySQL Supportenabled Active Persistent Links 0 Active Links 0 Client API version 4.0.15 MYSQL_MODULE_TYPE none MYSQL_SOCKET /var/lib/mysql/mysql.sock MYSQL_INCLUDE no value MYSQL_LIBS no value DirectiveLocal ValueMaster Value mysql.allow_persistentOnOn mysql.connect_timeout6060 mysql.default_hostno valueno value mysql.default_passwordno valueno value mysql.default_portno valueno value mysql.default_socketno valueno value mysql.default_userno valueno value mysql.max_linksUnlimitedUnlimited mysql.max_persistentUnlimitedUnlimited mysql.trace_modeOffOff openssl OpenSSL support enabled OpenSSL Version OpenSSL 0.9.7b 10 Apr 2003 pcre PCRE (Perl Compatible Regular Expressions) Support enabled PCRE Library Version 4.3 21-May-2003 posix Revision $Revision: 1.51.2.2 $ session Session Support enabled Registered save handlers files user DirectiveLocal ValueMaster Value session.auto_startOffOff session.bug_compat_42OnOn session.bug_compat_warnOnOn session.cache_expire180180 session.cache_limiternocachenocache session.cookie_domainno valueno value session.cookie_lifetime00 session.cookie_path// session.cookie_secureOffOff session.entropy_fileno valueno value session.entropy_length00 session.gc_divisor100100 session.gc_maxlifetime14401440 session.gc_probability11 session.namePHPSESSIDPHPSESSID session.referer_checkno valueno value session.save_handlerfilesfiles session.save_path/tmp/tmp session.serialize_handlerphpphp session.use_cookiesOnOn session.use_only_cookiesOffOff session.use_trans_sidOffOff standard Regex Library Bundled library enabled Dynamic Library Support enabled Path to sendmail /usr/sbin/sendmail -t -i DirectiveLocal ValueMaster Value assert.active11 assert.bail00 assert.callbackno valueno value assert.quiet_eval00 assert.warning11 auto_detect_line_endings00 default_socket_timeout6060 safe_mode_allowed_env_varsPHP_PHP_ safe_mode_protected_env_varsLD_LIBRARY_PATHLD_LIBRARY_PATH url_rewriter.tagsa=href,area=href,frame=src,input=src,form=,fieldset=a=h ref,area=href,frame=src,input=src,form=,fieldset= user_agentno valueno value yp YP Support enabled zlib ZLib Support enabled Compiled Version 1.1.4 Linked Version 1.1.4 DirectiveLocal ValueMaster Value zlib.output_compressionOffOff zlib.output_compression_level-1-1 zlib.output_handlerno valueno value Additional Modules Module Name sysvsem sysvshm Environment VariableValue CONSOLE /dev/console LOCPATH /etc/locale progress 6 INIT_VERSION sysvinit-2.85 AUTOBOOT YES PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin RUNLEVEL 3 runlevel 3 devfs mount resume /dev/hda5 splash_rc no value PREVLEVEL N previous N SHLVL 2 BOOT_IMAGE linux nbservices 19 TEXTDOMAINDIR /etc/locale OLDPWD /etc/httpd _ /sbin/initlog PHP Variables VariableValue PHP_SELF /test_phpMascript.php _SERVER["SCRIPT_URL"]/test_phpMascript.php _SERVER["SCRIPT_URI"]http://projekt.mxl.uabc.mx/test_phpMascript.php _SERVER["HTTP_ACCEPT"]*/* _SERVER["HTTP_ACCEPT_LANGUAGE"]es-mx _SERVER["HTTP_USER_AGENT"]Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) _SERVER["HTTP_ACCEPT_ENCODING"]gzip, deflate _SERVER["HTTP_HOST"]148.231.55.91 _SERVER["HTTP_CONNECTION"]Keep-Alive _SERVER["PATH"]/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin _SERVER["SERVER_SIGNATURE"]
Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/6mdk) mod_perl/1.99_09 Perl/v5.8.1 mod_ssl/2.0.47 OpenSSL/0.9.7b PHP/4.3.2 Server at projekt.mxl.uabc.mx Port 80
_SERVER["SERVER_SOFTWARE"]Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/6mdk) mod_perl/1.99_09 Perl/v5.8.1 mod_ssl/2.0.47 OpenSSL/0.9.7b PHP/4.3.2 _SERVER["SERVER_NAME"]projekt.mxl.uabc.mx _SERVER["SERVER_ADDR"]148.231.55.91 _SERVER["SERVER_PORT"]80 _SERVER["REMOTE_ADDR"]148.231.55.90 _SERVER["DOCUMENT_ROOT"]/var/www/html _SERVER["SERVER_ADMIN"]root@localhost _SERVER["SCRIPT_FILENAME"]/var/www/html/test_phpMascript.php _SERVER["REMOTE_PORT"]1453 _SERVER["GATEWAY_INTERFACE"]CGI/1.1 _SERVER["SERVER_PROTOCOL"]HTTP/1.1 _SERVER["REQUEST_METHOD"]GET _SERVER["QUERY_STRING"]no value _SERVER["REQUEST_URI"]/test_phpMascript.php _SERVER["SCRIPT_NAME"]/test_phpMascript.php _SERVER["PHP_SELF"]/test_phpMascript.php _SERVER["PATH_TRANSLATED"]/var/www/html/test_phpMascript.php _SERVER["argv"]Array ( ) _SERVER["argc"]0 _ENV["CONSOLE"]/dev/console _ENV["LOCPATH"]/etc/locale _ENV["progress"]6 _ENV["INIT_VERSION"]sysvinit-2.85 _ENV["AUTOBOOT"]YES _ENV["PATH"]/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin _ENV["RUNLEVEL"]3 _ENV["runlevel"]3 _ENV["devfs"]mount _ENV["resume"]/dev/hda5 _ENV["splash_rc"]no value _ENV["PREVLEVEL"]N _ENV["previous"]N _ENV["SHLVL"]2 _ENV["BOOT_IMAGE"]linux _ENV["nbservices"]19 _ENV["TEXTDOMAINDIR"]/etc/locale _ENV["OLDPWD"]/etc/httpd _ENV["_"]/sbin/initlog PHP License This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net. Djamel Toudert Investigador del Instituto de Investigaciones Sociales Universidad Aut?noma de Baja California Ed. Posgrado e Investigaciones. S/N BLVD. Benito Ju?rez. Mexicali. Baja California. Tel:(686)-566-29-85 EXT: 131. FAX: EXT:105 ------------------------------------------- Instituto de Investigaciones Sociales P.O.BOX 3280 Calexico, CA 92232-1426 USA -------------------------------------------- toudert@uabc.mx http://geomex.multimania.com -------------------------------------------- -Certificado por Norton System Works 2003- ----------Norton Version 9.05.15------------ -----Mensaje original----- De: Zak James [mailto:zak-ms@hoppsan.org] Enviado el: S?bado, 26 de Junio de 2004 06:06 a.m. Para: Djamel Toudert CC: maplab-users@lists.maptools.org Asunto: Re: [maplab-users] Installing and configuring maplab Djamel, Check your Apache error log for messages about missing files. Did you follow the steps to configure Apache to serve php and phtml files? zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Jun 25, 2004, at 6:30 PM, Djamel Toudert wrote: > I apreciate any help to resolve this probleme with maplab: > > I am installing maplab the first time in Linux Mondrake 9.2, I have > Mapserver working fine. > After the instalation (With the linux maplab guide), all things seem to > be ok, but when I try to acces maplab/htdocs, I guet nothing in the > browser (I guet only the dmsolution image link). The same thing > happened > with maplab/htdoc/index.phtml and info.phtml, absolulty nothing in the > browser. Manually, I make all changes to the values in the XML files > (maplab.xml, mapedit.xml, gmapfactory.xml) whith no success to guet > something looking maplab. > Thanks lots for your help. > > Djamel Toudert > Investigador del Instituto de Investigaciones Sociales > Universidad Aut?noma de Baja California > Ed. Posgrado e Investigaciones. S/N > BLVD. Benito Ju?rez. Mexicali. Baja California. > Tel:(686)-566-29-85 EXT: 131. FAX: EXT:105 > ------------------------------------------- > Instituto de Investigaciones Sociales > P.O.BOX 3280 > Calexico, CA 92232-1426 USA > -------------------------------------------- > toudert@uabc.mx > http://geomex.multimania.com > -------------------------------------------- > -Certificado por Norton System Works 2003- > ----------Norton Version 9.05.15------------ > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users From zak-ms at hoppsan.org Tue Jun 29 12:04:26 2004 From: zak-ms at hoppsan.org (Zak James) Date: Tue Jun 29 12:04:33 2004 Subject: RV: [maplab-users] Installing and configuring maplab In-Reply-To: <000401c45d39$d7ec1970$5a37e794@Mexicali> References: <000401c45d39$d7ec1970$5a37e794@Mexicali> Message-ID: Djamel, Make sure your php.ini is set to either display errors or log them to a file. Look there to see what is failing. The most likely problem is a configuration problem in the maplab.xml file (in the config folder). zak -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca On Jun 28, 2004, at 2:00 PM, Djamel Toudert wrote: > He Zac, > > Thanks for your answer. The apache seem to work properly. I send the > output of the testing mapscript with: > dl("php_mapscript.so"); > phpinfo(); > ?> > I hope you can detect something to help me run Maplab. > Thanks for your very appreciated help > > phpinfo() > PHP Version 4.3.3 > > System Linux projekt.mxl.uabc.mx 2.4.22-10mdk #1 Thu Sep 18 > 12:30:58 CEST > 2003 i686 > Build Date Aug 27 2003 02:16:14 > Configure Command './configure' '--prefix=/usr' > '--exec-prefix=/usr' > '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' > '--datadir=/usr/share' '--includedir=/usr/include' > '--libdir=/usr/lib' > '--libexecdir=/usr/lib' '--localstatedir=/var/lib' > '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' > '--infodir=/usr/share/info' '--enable-discard-path' > '--disable-force-cgi-redirect' '--enable-shared' > '--disable-static' > '--disable-debug' '--disable-rpath' '--enable-pic' > '--enable-inline-optimization' '--enable-memory-limit' > '--with-config-file-path=/etc' > '--with-config-file-scan-dir=/etc/php' > '--with-pear=/usr/share/pear' '--enable-magic-quotes' > '--enable-debugger' > '--enable-track-vars' '--with-exec-dir=/usr/bin' > '--with-versioning' > '--with-mod_charset' '--with-regex=php' '--enable-track-vars' > '--enable-trans-sid' '--enable-safe-mode' '--enable-ctype' > '--enable-ftp' > '--with-gettext=/usr' '--enable-posix' '--enable-session' > '--enable-sysvsem' '--enable-sysvshm' '--enable-yp' > '--with-openssl=/usr' > '--without-kerberos' '--with-ttf' '--with-freetype-dir=/usr' > '--with-zlib=/usr' '--with-zlib=/usr' '--with-zlib-dir=/usr' > Extensions listed here are (or will be soon) available as > external > > modules. To install one or all of these, use "urpmi" > php-EXTENSION_NAME > mysql pgsql sqlite gd imap ldap bcmath bz2 calendar cpdf crack > curl cyrus > db dba dba_bundle dbase dbx dio domxml exif fbsql fdf filepro > fribidi gmp > hwapi hyperwave iconv imagick informix ingres_ii interbase ircg > java > mbstring mcal mcrypt mcve mhash mime_magic ming mnogosearch > msession msql > mssql ncurses notes oci8 odbc oracle overload ovrimos pam_auth > pcntl pdf > pfpro pspell qtdom readline recode rrdtool shmop snmp smbauth > sockets swf > sybase sybase_ct sysvmsg tokenizer wddx xml xmlrpc xslt yaz zip > adodb > mmcache apd cybercash cybermut mono mqseries netools python > spplus > spread > inifile > Server API Apache 2.0 Handler > Virtual Directory Support disabled > Configuration File (php.ini) Path /etc/php.ini > Scan this dir for additional .ini files /etc/php > additional .ini files parsed /etc/php/23_gd.ini, > /etc/php/34_mysql.ini > PHP API 20020918 > PHP Extension 20020429 > Zend Extension 20021010 > Debug Build no > Thread Safety disabled > Registered PHP Streams php, http, ftp, https, ftps, compress.zlib > > This program makes use of the Zend Scripting Language Engine: > Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies > > > > > PHP Credits > > > > Configuration > PHP Core > DirectiveLocal ValueMaster Value > allow_call_time_pass_referenceOnOn > allow_url_fopenOnOn > always_populate_raw_post_dataOffOff > arg_separator.input&& > arg_separator.output&& > asp_tagsOffOff > auto_append_fileno valueno value > auto_prepend_fileno valueno value > browscapno valueno value > default_charsetno valueno value > default_mimetypetext/htmltext/html > define_syslog_variablesOffOff > disable_classesno valueno value > disable_functionsno valueno value > display_errorsOffOff > display_startup_errorsOffOff > doc_rootno valueno value > docref_extno valueno value > docref_rootno valueno value > enable_dlOnOn > error_append_stringno valueno value > error_logno valueno value > error_prepend_stringno valueno value > error_reporting20392039 > expose_phpOnOn > extension_dir/usr/lib/php/extensions/usr/lib/php/extensions > file_uploadsOnOn > gpc_orderGPCGPC > highlight.bg#FFFFFF#FFFFFF > highlight.comment#FF8000#FF8000 > highlight.default#0000BB#0000BB > highlight.html#000000#000000 > highlight.keyword#007700#007700 > highlight.string#DD0000#DD0000 > html_errorsOnOn > ignore_repeated_errorsOffOff > ignore_repeated_sourceOffOff > ignore_user_abortOffOff > implicit_flushOffOff > > include_path.:/usr/lib/php/:/usr/share/pear/.:/usr/lib/php/:/usr/ > share/p > ear/ > log_errorsOffOff > log_errors_max_len10241024 > magic_quotes_gpcOnOn > magic_quotes_runtimeOffOff > magic_quotes_sybaseOffOff > max_execution_time3030 > max_input_time6060 > memory_limit8M8M > open_basedirno valueno value > output_bufferingno valueno value > output_handlerno valueno value > post_max_size8M8M > precision1212 > register_argc_argvOnOn > register_globalsOnOn > report_memleaksOnOn > safe_modeOffOff > safe_mode_exec_dirno valueno value > safe_mode_gidOffOff > safe_mode_include_dirno valueno value > sendmail_fromme@localhost.comme@localhost.com > sendmail_path/usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i > serialize_precision100100 > short_open_tagOnOn > SMTPlocalhostlocalhost > smtp_port2525 > sql.safe_modeOffOff > track_errorsOffOff > unserialize_callback_funcno valueno value > upload_max_filesize2M2M > upload_tmp_dirno valueno value > user_dirno valueno value > variables_orderEGPCSEGPCS > xmlrpc_error_number00 > xmlrpc_errorsOffOff > y2k_complianceOnOn > > > apache2handler > Apache Version Apache-AdvancedExtranetServer/2.0.47 (Mandrake > Linux/6mdk) > mod_perl/1.99_09 Perl/v5.8.1 mod_ssl/2.0.47 OpenSSL/0.9.7b > PHP/4.3.2 > Apache API Version 20020903 > Server Administrator root@localhost > Hostname:Port projekt.mxl.uabc.mx:0 > User/Group apache(13)/101 > Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: > 100 > Timeouts Connection: 300 - Keep-Alive: 15 > Virtual Server No > Server Root /etc/httpd/2.0 > Loaded Modules core prefork http_core mod_so mod_access mod_auth > mod_auth_anon mod_auth_digest mod_include mod_log_config mod_env > mod_expires mod_headers mod_usertrack mod_setenvif mod_mime > mod_status > mod_autoindex mod_asis mod_info mod_cgi mod_vhost_alias > mod_negotiation > mod_dir mod_imap mod_actions mod_userdir mod_alias mod_rewrite > mod_proxy > proxy_http mod_ssl mod_suexec mod_php4 mod_perl > > DirectiveLocal ValueMaster Value > engine11 > last_modified00 > xbithack00 > > > Apache Environment > VariableValue > SCRIPT_URL /test_phpMascript.php > SCRIPT_URI http://projekt.mxl.uabc.mx/test_phpMascript.php > HTTP_ACCEPT */* > HTTP_ACCEPT_LANGUAGE es-mx > HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT > 5.1) > > HTTP_ACCEPT_ENCODING gzip, deflate > HTTP_HOST 148.231.55.91 > HTTP_CONNECTION Keep-Alive > PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin > SERVER_SIGNATURE
Apache-AdvancedExtranetServer/2.0.47 > (Mandrake > Linux/6mdk) mod_perl/1.99_09 Perl/v5.8.1 mod_ssl/2.0.47 > OpenSSL/0.9.7b > PHP/4.3.2 Server at projekt.mxl.uabc.mx Port 80
> SERVER_SOFTWARE Apache-AdvancedExtranetServer/2.0.47 (Mandrake > Linux/6mdk) > mod_perl/1.99_09 Perl/v5.8.1 mod_ssl/2.0.47 OpenSSL/0.9.7b > PHP/4.3.2 > SERVER_NAME projekt.mxl.uabc.mx > SERVER_ADDR 148.231.55.91 > SERVER_PORT 80 > REMOTE_ADDR 148.231.55.90 > DOCUMENT_ROOT /var/www/html > SERVER_ADMIN root@localhost > SCRIPT_FILENAME /var/www/html/test_phpMascript.php > REMOTE_PORT 1453 > GATEWAY_INTERFACE CGI/1.1 > SERVER_PROTOCOL HTTP/1.1 > REQUEST_METHOD GET > QUERY_STRING no value > REQUEST_URI /test_phpMascript.php > SCRIPT_NAME /test_phpMascript.php > > > HTTP Headers Information > HTTP Request Headers > HTTP Request GET /test_phpMascript.php HTTP/1.1 > Accept */* > Accept-Language es-mx > User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) > Accept-Encoding gzip, deflate > Host 148.231.55.91 > HTTP Response Headers > X-Powered-By PHP/4.3.3 > Transfer-Encoding chunked > Content-Type text/html > > > ctype > ctype functions enabled > > > ftp > FTP support enabled > > > gd > GD Support enabled > GD Version bundled (2.0.15 compatible) > FreeType Support enabled > FreeType Linkage with freetype > GIF Read Support enabled > JPG Support enabled > PNG Support enabled > WBMP Support enabled > XBM Support enabled > > > gettext > GetText Support enabled > > > mysql > MySQL Supportenabled > Active Persistent Links 0 > Active Links 0 > Client API version 4.0.15 > MYSQL_MODULE_TYPE none > MYSQL_SOCKET /var/lib/mysql/mysql.sock > MYSQL_INCLUDE no value > MYSQL_LIBS no value > > DirectiveLocal ValueMaster Value > mysql.allow_persistentOnOn > mysql.connect_timeout6060 > mysql.default_hostno valueno value > mysql.default_passwordno valueno value > mysql.default_portno valueno value > mysql.default_socketno valueno value > mysql.default_userno valueno value > mysql.max_linksUnlimitedUnlimited > mysql.max_persistentUnlimitedUnlimited > mysql.trace_modeOffOff > > > openssl > OpenSSL support enabled > OpenSSL Version OpenSSL 0.9.7b 10 Apr 2003 > > > pcre > PCRE (Perl Compatible Regular Expressions) Support enabled > PCRE Library Version 4.3 21-May-2003 > > > posix > Revision $Revision: 1.51.2.2 $ > > > session > Session Support enabled > Registered save handlers files user > > DirectiveLocal ValueMaster Value > session.auto_startOffOff > session.bug_compat_42OnOn > session.bug_compat_warnOnOn > session.cache_expire180180 > session.cache_limiternocachenocache > session.cookie_domainno valueno value > session.cookie_lifetime00 > session.cookie_path// > session.cookie_secureOffOff > session.entropy_fileno valueno value > session.entropy_length00 > session.gc_divisor100100 > session.gc_maxlifetime14401440 > session.gc_probability11 > session.namePHPSESSIDPHPSESSID > session.referer_checkno valueno value > session.save_handlerfilesfiles > session.save_path/tmp/tmp > session.serialize_handlerphpphp > session.use_cookiesOnOn > session.use_only_cookiesOffOff > session.use_trans_sidOffOff > > > standard > Regex Library Bundled library enabled > Dynamic Library Support enabled > Path to sendmail /usr/sbin/sendmail -t -i > > DirectiveLocal ValueMaster Value > assert.active11 > assert.bail00 > assert.callbackno valueno value > assert.quiet_eval00 > assert.warning11 > auto_detect_line_endings00 > default_socket_timeout6060 > safe_mode_allowed_env_varsPHP_PHP_ > safe_mode_protected_env_varsLD_LIBRARY_PATHLD_LIBRARY_PATH > > url_rewriter.tagsa=href,area=href,frame=src,input=src,form=,fieldset=a= > h > ref,area=href,frame=src,input=src,form=,fieldset= > user_agentno valueno value > > > yp > YP Support enabled > > > zlib > ZLib Support enabled > Compiled Version 1.1.4 > Linked Version 1.1.4 > > DirectiveLocal ValueMaster Value > zlib.output_compressionOffOff > zlib.output_compression_level-1-1 > zlib.output_handlerno valueno value > > > Additional Modules > Module Name > sysvsem > sysvshm > > > Environment > VariableValue > CONSOLE /dev/console > LOCPATH /etc/locale > progress 6 > INIT_VERSION sysvinit-2.85 > AUTOBOOT YES > PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin > RUNLEVEL 3 > runlevel 3 > devfs mount > resume /dev/hda5 > splash_rc no value > PREVLEVEL N > previous N > SHLVL 2 > BOOT_IMAGE linux > nbservices 19 > TEXTDOMAINDIR /etc/locale > OLDPWD /etc/httpd > _ /sbin/initlog > > > PHP Variables > VariableValue > PHP_SELF /test_phpMascript.php > _SERVER["SCRIPT_URL"]/test_phpMascript.php > > _SERVER["SCRIPT_URI"]http://projekt.mxl.uabc.mx/test_phpMascript.php > _SERVER["HTTP_ACCEPT"]*/* > _SERVER["HTTP_ACCEPT_LANGUAGE"]es-mx > _SERVER["HTTP_USER_AGENT"]Mozilla/4.0 (compatible; MSIE 6.0; > Windows NT > 5.1) > _SERVER["HTTP_ACCEPT_ENCODING"]gzip, deflate > _SERVER["HTTP_HOST"]148.231.55.91 > _SERVER["HTTP_CONNECTION"]Keep-Alive > _SERVER["PATH"]/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin > > _SERVER["SERVER_SIGNATURE"]
Apache-AdvancedExtranetServer/ > 2.0.47 > > (Mandrake Linux/6mdk) mod_perl/1.99_09 Perl/v5.8.1 mod_ssl/2.0.47 > OpenSSL/0.9.7b PHP/4.3.2 Server at projekt.mxl.uabc.mx Port > 80
> _SERVER["SERVER_SOFTWARE"]Apache-AdvancedExtranetServer/2.0.47 > (Mandrake > Linux/6mdk) mod_perl/1.99_09 Perl/v5.8.1 mod_ssl/2.0.47 > OpenSSL/0.9.7b > PHP/4.3.2 > _SERVER["SERVER_NAME"]projekt.mxl.uabc.mx > _SERVER["SERVER_ADDR"]148.231.55.91 > _SERVER["SERVER_PORT"]80 > _SERVER["REMOTE_ADDR"]148.231.55.90 > _SERVER["DOCUMENT_ROOT"]/var/www/html > _SERVER["SERVER_ADMIN"]root@localhost > _SERVER["SCRIPT_FILENAME"]/var/www/html/test_phpMascript.php > _SERVER["REMOTE_PORT"]1453 > _SERVER["GATEWAY_INTERFACE"]CGI/1.1 > _SERVER["SERVER_PROTOCOL"]HTTP/1.1 > _SERVER["REQUEST_METHOD"]GET > _SERVER["QUERY_STRING"]no value > _SERVER["REQUEST_URI"]/test_phpMascript.php > _SERVER["SCRIPT_NAME"]/test_phpMascript.php > _SERVER["PHP_SELF"]/test_phpMascript.php > _SERVER["PATH_TRANSLATED"]/var/www/html/test_phpMascript.php > _SERVER["argv"]Array > ( > ) > > _SERVER["argc"]0 > _ENV["CONSOLE"]/dev/console > _ENV["LOCPATH"]/etc/locale > _ENV["progress"]6 > _ENV["INIT_VERSION"]sysvinit-2.85 > _ENV["AUTOBOOT"]YES > _ENV["PATH"]/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin > _ENV["RUNLEVEL"]3 > _ENV["runlevel"]3 > _ENV["devfs"]mount > _ENV["resume"]/dev/hda5 > _ENV["splash_rc"]no value > _ENV["PREVLEVEL"]N > _ENV["previous"]N > _ENV["SHLVL"]2 > _ENV["BOOT_IMAGE"]linux > _ENV["nbservices"]19 > _ENV["TEXTDOMAINDIR"]/etc/locale > _ENV["OLDPWD"]/etc/httpd > _ENV["_"]/sbin/initlog > > > PHP License > This program is free software; you can redistribute it and/or > modify it > under the terms of the PHP License as published by the PHP Group > and > included in the distribution in the file: LICENSE > This program is distributed in the hope that it will be useful, > but > WITHOUT ANY WARRANTY; without even the implied warranty of > MERCHANTABILITY > or FITNESS FOR A PARTICULAR PURPOSE. > If you did not receive a copy of the PHP license, or have any > questions > about PHP licensing, please contact license@php.net. > > Djamel Toudert > Investigador del Instituto de Investigaciones Sociales > Universidad Aut?noma de Baja California > Ed. Posgrado e Investigaciones. S/N > BLVD. Benito Ju?rez. Mexicali. Baja California. > Tel:(686)-566-29-85 EXT: 131. FAX: EXT:105 > ------------------------------------------- > Instituto de Investigaciones Sociales > P.O.BOX 3280 > Calexico, CA 92232-1426 USA > -------------------------------------------- > toudert@uabc.mx > http://geomex.multimania.com > -------------------------------------------- > -Certificado por Norton System Works 2003- > ----------Norton Version 9.05.15------------ > > > -----Mensaje original----- > De: Zak James [mailto:zak-ms@hoppsan.org] > Enviado el: S?bado, 26 de Junio de 2004 06:06 a.m. > Para: Djamel Toudert > CC: maplab-users@lists.maptools.org > Asunto: Re: [maplab-users] Installing and configuring maplab > > Djamel, > > Check your Apache error log for messages about missing files. Did you > follow the steps to configure Apache to serve php and phtml files? > > zak > -- > Zak James > Applications and Software Development > DM Solutions Group Inc. > http://www.dmsolutions.ca > > > On Jun 25, 2004, at 6:30 PM, Djamel Toudert wrote: > >> I apreciate any help to resolve this probleme with maplab: >> >> I am installing maplab the first time in Linux Mondrake 9.2, I have >> Mapserver working fine. >> After the instalation (With the linux maplab guide), all things seem > to >> be ok, but when I try to acces maplab/htdocs, I guet nothing in the >> browser (I guet only the dmsolution image link). The same thing >> happened >> with maplab/htdoc/index.phtml and info.phtml, absolulty nothing in the >> browser. Manually, I make all changes to the values in the XML files >> (maplab.xml, mapedit.xml, gmapfactory.xml) whith no success to guet >> something looking maplab. >> Thanks lots for your help. >> >> Djamel Toudert >> Investigador del Instituto de Investigaciones Sociales >> Universidad Aut?noma de Baja California >> Ed. Posgrado e Investigaciones. S/N >> BLVD. Benito Ju?rez. Mexicali. Baja California. >> Tel:(686)-566-29-85 EXT: 131. FAX: EXT:105 >> ------------------------------------------- >> Instituto de Investigaciones Sociales >> P.O.BOX 3280 >> Calexico, CA 92232-1426 USA >> -------------------------------------------- >> toudert@uabc.mx >> http://geomex.multimania.com >> -------------------------------------------- >> -Certificado por Norton System Works 2003- >> ----------Norton Version 9.05.15------------ >> >> _______________________________________________ >> Maplab-users mailing list >> Maplab-users@lists.maptools.org >> http://lists.maptools.org/mailman/listinfo/maplab-users > > > > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/maplab-users > From chengcharlie2003 at yahoo.ca Tue Jun 29 15:49:43 2004 From: chengcharlie2003 at yahoo.ca (charley cheng) Date: Tue Jun 29 15:50:13 2004 Subject: [maplab-users] Projection problem in Maplab with MSW4 Message-ID: <20040629194943.52397.qmail@web14804.mail.yahoo.com> Dear Zak and lists, My MSW4 with maplab works fine with tutorial mapfile. There is no projection setting in tutorial mapfile. When I worked on my own data, whatever projection I seted, it give the following error message. If I delete the projection definition in my mapfile, the maplab works and no crash , but no image at all. I am using data from mapinfo(.tab) and longitude and latitude projection. Following is my error message and mapfile. Thank you for you help!! Charlie Warning: [MapServer Error]: msProcessProjection(): major axis or radius = 0 or not given in C:\ms4w\apps\maplab-2.1\htdocs\common\wrapper\map_session.php on line 215 Warning: Failed to open map file /ms4w/tmp//40e1c2b759cf3.map in C:\ms4w\apps\maplab-2.1\htdocs\common\wrapper\map_session.php on line 215 Warning: [MapServer Error]: msProcessProjection(): major axis or radius = 0 or not given in C:\ms4w\apps\maplab-2.1\htdocs\common\wrapper\map_session.php on line 215 Warning: [MapServer Error]: msProcessProjection(): major axis or radius = 0 or not given in C:\ms4w\apps\maplab-2.1\htdocs\common\wrapper\map_session.php on line 215 Warning: Failed to open map file /ms4w/tmp//40e1c2b759cf3.map in C:\ms4w\apps\maplab-2.1\htdocs\common\wrapper\map_session.php on line 215 Fatal error: Call to a member function on a non-object in C:\ms4w\apps\maplab-2.1\htdocs\mapedit\preview.php on line 304 MAP NAME "NAL_GIS_DEMO" STATUS ON EXTENT -120.10 48.95 -109.91 60.03 SIZE 400 600 SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS KILOMETERS WEB MINSCALE 2e+06 MAXSCALE 5e+07 IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END PROJECTION "proj=latlong" END REFERENCE STATUS ON IMAGE "images/overview_nal.png" SIZE 75 131 EXTENT -120.10 48.95 -109.91 60.03 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MINBOXSIZE 3 MAXBOXSIZE 0 MARKER 0 MARKERSIZE 0 END QUERYMAP STATUS OFF SIZE -1 -1 COLOR 255 0 0 STYLE HILITE END LEGEND STATUS ON IMAGECOLOR 255 255 255 POSITION LL KEYSIZE 18 12 KEYSPACING 5 5 TEMPLATE "ttt" END SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 150 5 STYLE 0 POSITION LL END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT OFF END LAYER NAME "Alberta Bnd" STATUS ON TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "TAB_ FILES/AlbertaBounds.TAB" PROJECTION "proj=latlong" END TOLERANCE 5 TOLERANCEUNITS PIXELS CLASS NAME "Province_Name" color 0 255 182 outlinecolor 32 32 32 END END END --------------------------------- Post your free ad now! Yahoo! Canada Personals -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040629/7ee80355/attachment.htm From dmorissette at dmsolutions.ca Tue Jun 29 16:08:07 2004 From: dmorissette at dmsolutions.ca (Daniel Morissette) Date: Tue Jun 29 16:13:31 2004 Subject: [maplab-users] Projection problem in Maplab with MSW4 In-Reply-To: <20040629194943.52397.qmail@web14804.mail.yahoo.com> References: <20040629194943.52397.qmail@web14804.mail.yahoo.com> Message-ID: <40E1CC27.10207@dmsolutions.ca> charley cheng wrote: > > Warning: [MapServer Error]: msProcessProjection(): major axis or radius > = 0 or not given in > C:\ms4w\apps\maplab-2.1\htdocs\common\wrapper\map_session.php on line 215 ... > > PROJECTION > "proj=latlong" > END > I believe you need to specify the ellipsoid parameter as well when you specify a latlong projection. Try: PROJECTION "proj=latlong" "ellps=WGS84 END Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From chengcharlie2003 at yahoo.ca Tue Jun 29 16:46:20 2004 From: chengcharlie2003 at yahoo.ca (charley cheng) Date: Tue Jun 29 16:46:45 2004 Subject: [maplab-users] Projection problem in Maplab with MSW4 In-Reply-To: <40E1CC27.10207@dmsolutions.ca> Message-ID: <20040629204620.13210.qmail@web14826.mail.yahoo.com> Thanks Daniel, You are right, after I add ellips, the maplab does not crash, but I still could not see the any map. Is it possible my OGR connection to mapinfo tab file not corrected? Any suggestion? When I use info tool in preview click on the blank map , the error message is " Fatal error [MapServer Error] msProcessProjection(), projection not named in C:\ms4w\apps\maplab-2.1\htdocs\common\wraper\map_session.php on line 841 Thanks Charlie charley cheng wrote: > > Warning: [MapServer Error]: msProcessProjection(): major axis or radius > = 0 or not given in > C:\ms4w\apps\maplab-2.1\htdocs\common\wrapper\map_session.php on line 215 ... > > PROJECTION > "proj=latlong" > END > I believe you need to specify the ellipsoid parameter as well when you specify a latlong projection. Try: PROJECTION "proj=latlong" "ellps=WGS84 END Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ --------------------------------- Post your free ad now! Yahoo! Canada Personals -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040629/012bb7ed/attachment.htm From dmorissette at dmsolutions.ca Tue Jun 29 17:05:40 2004 From: dmorissette at dmsolutions.ca (Daniel Morissette) Date: Tue Jun 29 17:09:11 2004 Subject: [maplab-users] Projection problem in Maplab with MSW4 In-Reply-To: <20040629204620.13210.qmail@web14826.mail.yahoo.com> References: <20040629204620.13210.qmail@web14826.mail.yahoo.com> Message-ID: <40E1D9A4.9050201@dmsolutions.ca> charley cheng wrote: > Thanks Daniel, > > You are right, after I add ellips, the maplab does not crash, but I > still could not see the any map. Is it possible my OGR connection to > mapinfo tab file not corrected? Any suggestion? > > When I use info tool in preview click on the blank map , the error > message is " Fatal error [MapServer Error] msProcessProjection(), > projection not named in > C:\ms4w\apps\maplab-2.1\htdocs\common\wraper\map_session.php on line 841 > Just a guess, but I think you would get this "projection not named" error when a projection object somewhere in your mapfile is missing the "proj=..." parameter. I would suggest making sure your mapfile doesn't contain an empty projection object at the top-level or somewhere in one of the layers. Also, in my example in my previous message I had forgotten a double quote at the end of the ellps line. I don't think that would leads to this error message though. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------