From morissette@dmsolutions.ca Tue Oct 1 19:14:04 2002 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 01 Oct 2002 14:14:04 -0400 Subject: [maplab-users] [Fwd: problems with preview] Message-ID: <3D99E5EC.FFA0ACC2@dmsolutions.ca> This is a multi-part message in MIME format. --------------A7BCC035F8DE967D550BF4F9 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit --------------A7BCC035F8DE967D550BF4F9 Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Received: from xcalibur.dmsolutions.ca (www2.dmsolutions.on.ca [209.217.116.146]) by in3.magma.ca (Magma's Mail Server) with ESMTP id g91I350q004904; Tue, 1 Oct 2002 14:03:06 -0400 (EDT) Received: from www.mapsherpa.com ([64.26.174.2]) by xcalibur.dmsolutions.ca (8.11.2/8.11.2) with ESMTP id g91I35t18210 for ; Tue, 1 Oct 2002 14:03:05 -0400 Received: from www.mapsherpa.com (www.mapsherpa.com [127.0.0.1]) by www.mapsherpa.com (8.11.6/8.11.6) with ESMTP id g91I30901046 for ; Tue, 1 Oct 2002 14:03:00 -0400 Received: from xcalibur.dmsolutions.ca (www2.dmsolutions.on.ca [209.217.116.146]) by www.mapsherpa.com (8.11.6/8.11.6) with ESMTP id g91I2U901040 for ; Tue, 1 Oct 2002 14:02:30 -0400 Received: from mailhub.usp.br (serv1.uspnet.usp.br [143.107.253.61]) by xcalibur.dmsolutions.ca (8.11.2/8.11.2) with SMTP id g91I2Nt18201 for ; Tue, 1 Oct 2002 14:02:24 -0400 Received: (qmail 24131 invoked from network); 1 Oct 2002 18:02:18 -0000 Received: from unknown (HELO geo100) (143.107.240.111) by mailhub.usp.br with SMTP; 1 Oct 2002 18:02:18 -0000 Message-ID: <00bf01c26996$3ee19fe0$6ff06b8f@geo100> From: "Alfredo Pereira de Queiroz" To: Subject: problems with preview Date: Tue, 1 Oct 2002 15:02:34 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00BC_01C2695B.92792AF0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: maplab-users-owner@dmsolutions.ca Errors-To: maplab-users-owner@dmsolutions.ca X-BeenThere: maplab-users@dmsolutions.ca X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Maplab Users Mailing list List-Unsubscribe: , List-Archive: X-Mozilla-Status2: 00000000 This is a multi-part message in MIME format. ------=_NextPart_000_00BC_01C2695B.92792AF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I can open the tutorial mapfile in mapedit, but when I click on = PreviewMap I get a new browser window with the error: Warning: MapServer Error in msLoadMap(): = (F:\Inetpub\wwwroot\msapps\maplab-2.0rc2\htdocs\mapedit\/php/sessiondata/= /3d99df38ce2df.map) in = F:\Inetpub\wwwroot\msapps\maplab-2.0rc2\common\wrapper\map_session.php = on line 271 Fatal error: Failed to open map file /php/sessiondata//3d99df38ce2df.map = in = F:\Inetpub\wwwroot\msapps\maplab-2.0rc2\common\wrapper\map_session.php = on line 271 I already changed the directories and their permissions a few times. The = first error message was in preview.php lines 220, 221, 222 and 271 = (fopen /x/x/*.map, "w+", fwrite and fclose) and the directory was = /ms_tmp/. How can I fix it? Alfredo ------=_NextPart_000_00BC_01C2695B.92792AF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I can open the tutorial mapfile in = mapedit, but=20 when I click on PreviewMap I get a new browser window with the=20 error:
Warning: MapServer Error in = msLoadMap():=20 (F:\Inetpub\wwwroot\msapps\maplab-2.0rc2\htdocs\mapedit\/php/sessiondata/= /3d99df38ce2df.map)=20 in = F:\Inetpub\wwwroot\msapps\maplab-2.0rc2\common\wrapper\map_session.php= =20 on line 271
Fatal error: Failed to open map file=20 /php/sessiondata//3d99df38ce2df.map in=20 F:\Inetpub\wwwroot\msapps\maplab-2.0rc2\common\wrapper\map_session.php= on=20 line 271
I already changed the directories and = their=20 permissions a few times. The first error message was in preview.php = lines 220,=20 221, 222 and 271 (fopen /x/x/*.map, "w+", fwrite and fclose) and the = directory=20 was /ms_tmp/.
How can I fix it?
 
Alfredo
------=_NextPart_000_00BC_01C2695B.92792AF0-- --------------A7BCC035F8DE967D550BF4F9-- From morissette@dmsolutions.ca Tue Oct 1 20:19:05 2002 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 01 Oct 2002 15:19:05 -0400 Subject: [maplab-users] [Fwd: problems with preview] Message-ID: <3D99F529.FC745672@dmsolutions.ca> This is a multi-part message in MIME format. --------------34CFF7B42AA78FA8941ACAC4 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit --------------34CFF7B42AA78FA8941ACAC4 Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Received: from xcalibur.dmsolutions.ca (www2.dmsolutions.on.ca [209.217.116.146]) by in2.magma.ca (Magma's Mail Server) with ESMTP id g91J96ac008805; Tue, 1 Oct 2002 15:09:06 -0400 (EDT) Received: from www.mapsherpa.com ([64.26.174.2]) by xcalibur.dmsolutions.ca (8.11.2/8.11.2) with ESMTP id g91J95t18766 for ; Tue, 1 Oct 2002 15:09:05 -0400 Received: from www.mapsherpa.com (www.mapsherpa.com [127.0.0.1]) by www.mapsherpa.com (8.11.6/8.11.6) with ESMTP id g91J90901320 for ; Tue, 1 Oct 2002 15:09:00 -0400 Received: from xcalibur.dmsolutions.ca (www2.dmsolutions.on.ca [209.217.116.146]) by www.mapsherpa.com (8.11.6/8.11.6) with ESMTP id g91J8n901314 for ; Tue, 1 Oct 2002 15:08:49 -0400 Received: from swoodbridge.com (dsl-65-187-198-197.telocity.com [65.187.198.197]) by xcalibur.dmsolutions.ca (8.11.2/8.11.2) with ESMTP id g91J8ht18763 for ; Tue, 1 Oct 2002 15:08:44 -0400 Received: from woodbri.swoodbridge.com ([10.1.1.1] helo=woodbri) by swoodbridge.com with esmtp (Exim 3.33 #1) id 17wSNm-0008Fp-00; Tue, 01 Oct 2002 15:08:34 -0400 From: woodbri@swoodbridge.com To: "Alfredo Pereira de Queiroz" , Date: Tue, 1 Oct 2002 15:08:35 -0400 MIME-Version: 1.0 Subject: Re: problems with preview Reply-to: woodbri@swoodbridge.com Message-ID: <3D99BA73.9736.49342F2B@localhost> Priority: normal In-reply-to: <00bf01c26996$3ee19fe0$6ff06b8f@geo100> X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: maplab-users-owner@dmsolutions.ca Errors-To: maplab-users-owner@dmsolutions.ca X-BeenThere: maplab-users@dmsolutions.ca X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Maplab Users Mailing list List-Unsubscribe: , List-Archive: X-Mozilla-Status2: 00000000 Alfredo, if you are sure you have the permissions set correctly so the webuser has r/w access to the directory and files, then I would check the // in the path. While I know this works ok on Linux I seem to remember that Windows does not like that. -Stephen Woodbridge http://iMapTools.com On 1 Oct 2002 at 15:02, Alfredo Pereira de Queiroz wrote: > > I can open the tutorial mapfile in mapedit, but when I click on > PreviewMap I get a new browser window with the error: > Warning: MapServer Error in msLoadMap(): > (F:\Inetpub\wwwroot\msapps\maplab- > 2.0rc2\htdocs\mapedit\/php/sessiondata//3d99df38ce2df.map) in > F:\Inetpub\wwwroot\msapps\maplab- > 2.0rc2\common\wrapper\map_session.php on line 271 > Fatal error: Failed to open map file > /php/sessiondata//3d99df38ce2df.map in > F:\Inetpub\wwwroot\msapps\maplab- > 2.0rc2\common\wrapper\map_session.php on line 271 > I already changed the directories and their permissions a few times. > The first error message was in preview.php lines 220, 221, 222 and 271 > (fopen /x/x/*.map, "w+", fwrite and fclose) and the directory was > /ms_tmp/. How can I fix it? > > Alfredo > --------------34CFF7B42AA78FA8941ACAC4-- From aspaeter@hit.handshake.de Tue Oct 1 18:27:55 2002 From: aspaeter@hit.handshake.de (Achim Spaeter) Date: Tue, 1 Oct 2002 19:27:55 +0200 Subject: [maplab-users] Tiled rasters - no Query results Message-ID: <000001c26994$4d9fcdb0$bce118d9@IBM> This is a multi-part message in MIME format. ------=_NextPart_000_0271_01C26980.A4B4ADF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, after adding a tiled raster layer to my map and setting it to visible, = querying the map leads always to a "no results" answer. Turning the raster layer off leads to correct results. What can be done? Achim Spaeter ------=_NextPart_000_0271_01C26980.A4B4ADF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all,
 
after adding a tiled raster layer to my = map and=20 setting it to visible, querying the map
leads always to a "no results" = answer.
Turning the raster layer off leads to = correct=20 results.
 
What can be done?
 
Achim = Spaeter
------=_NextPart_000_0271_01C26980.A4B4ADF0-- From aspaeter@hit.handshake.de Tue Oct 1 18:31:48 2002 From: aspaeter@hit.handshake.de (Achim Spaeter) Date: Tue, 1 Oct 2002 19:31:48 +0200 Subject: [maplab-users] Multi Class Layer - Correct Legend Message-ID: <000101c26994$4e61e530$bce118d9@IBM> This is a multi-part message in MIME format. ------=_NextPart_000_027B_01C26981.2F49F970 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, a built a a multiclass layer that comes with 4 different categories. How can I produce a legend that shows all 4 colors an the names of those = categories? Thanks in advance Achim Spaeter ------=_NextPart_000_027B_01C26981.2F49F970 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all,
 
a built a a multiclass layer that comes = with 4=20 different categories.
How can I produce a legend that shows = all 4 colors=20 an the names of those categories?
 
Thanks in advance
 
Achim = Spaeter
------=_NextPart_000_027B_01C26981.2F49F970-- From aspaeter@hit.handshake.de Tue Oct 1 18:45:14 2002 From: aspaeter@hit.handshake.de (Achim Spaeter) Date: Tue, 1 Oct 2002 19:45:14 +0200 Subject: [maplab-users] Classitem not browseable Message-ID: <000201c26994$4f1ad4f0$bce118d9@IBM> This is a multi-part message in MIME format. ------=_NextPart_000_0291_01C26983.0F9FD340 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, trying to browse my shapefiles attributes gives the following error. PHP Fatal error: Call to a member function on a non-object in = c:\Inetpub\wwwroot\maplab\htdocs\common\picker\shape_file_attr.php on = line 129=20 Inserting attribute names by hand works o.k. Achim Spaeter ------=_NextPart_000_0291_01C26983.0F9FD340 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all,
 
trying to browse my shapefiles = attributes gives the=20 following error.
 
PHP Fatal error: Call to a member function on a = non-object=20 in c:\Inetpub\wwwroot\maplab\htdocs\common\picker\shape_file_attr.php on = line=20 129
 
Inserting attribute names by hand works = o.k.
 
 
Achim = Spaeter
------=_NextPart_000_0291_01C26983.0F9FD340-- From rvenkat79@yahoo.co.uk Wed Oct 2 15:10:05 2002 From: rvenkat79@yahoo.co.uk (Rajagopalan Venkatakrishnan) Date: Wed, 2 Oct 2002 07:10:05 -0700 (PDT) Subject: [maplab-users] problem in globprefs.php in windows 2000 advanced server Message-ID: <20021002141005.96875.qmail@web10501.mail.yahoo.com> sir, I am a new user of maplab. I downloaded all applications required for running maplab and installed them. I am able to get the starting web page. The configuration of maplab was not that successful. I get an error in globprefs.php when i open mapedit in maplab. And in mapbrowser and gmapfactory i get the same. can somebody give me the contents of the configuration that is to be done for the three. Is mapserver need to be installed for maplab to function or is it independent. Need urgetnnt help. regards venkatakrishnan __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From sctweedy@NRCan.gc.ca Wed Oct 2 19:01:17 2002 From: sctweedy@NRCan.gc.ca (Tweedy, Scott) Date: Wed, 2 Oct 2002 14:01:17 -0400 Subject: [maplab-users] Question about MapBrowser and mapserv.exe Message-ID: <5ACEEE96F4F9D41190790002A528B51E02740940@s0-ott-x11.nrn.nrcan.gc.ca> I have set up a WMS test for MapBrowser. Unfortunately it's on an Intranet so I can't show examples. I have set up a .map file that works as a WMS request, I have tested the GetMap and GetCapabilites requests using the syntax: http:///cgi-bin/mapserv.exe?map=wms.map&version=1.1.0&request= This test works. I want to know if there's anything I have to do to use this .map file/these layers in MapBrowser calling them from another computer. Whenever I try to define the server I get the vague error message "Errors occurred". Do I have to do anything special to make a mapserv.exe layer available to MapBrowser? Thanks in advance, st From pgs@magma.ca Wed Oct 2 20:38:28 2002 From: pgs@magma.ca (Paul Spencer) Date: Wed, 02 Oct 2002 15:38:28 -0400 Subject: [maplab-users] problem in globprefs.php in windows 2000 advanced server References: <20021002141005.96875.qmail@web10501.mail.yahoo.com> Message-ID: <3D9B4B34.1020309@magma.ca> Well, since it's urgent ;) mapserver is required for maplab. Mapserver is provided by php_mapscript.dll. This file is compiled for different versions of php, so you will need to pick the appropriate one. You should be able to find one at http://www2.dmsolutions.ca/mapserver/dl. To make sure mapserver is configured properly, you should create a file called phpinfo.php (the name is not really important) with the following contents: Once you can display this page without error and see a MapScript section, mapserver and php are correctly installed and working. From this point, the configuration of maplab should be relatively straightforward. Please confirm that you have mapserver installed and working as per above and then if you are still experiencing problems, please send me another message with details on your setup. Good luck, Paul Rajagopalan Venkatakrishnan wrote: > sir, > > I am a new user of maplab. I downloaded all > applications required for running maplab and installed > them. I am able to get the starting web page. The > configuration of maplab was not that successful. > > I get an error in globprefs.php when i open mapedit in > maplab. And in mapbrowser and gmapfactory i get the > same. can somebody give me the contents of the > configuration that is to be done for the three. > > Is mapserver need to be installed for maplab to > function or is it independent. > > Need urgetnnt help. > > regards > > venkatakrishnan > > __________________________________________________ > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! > http://sbc.yahoo.com > _______________________________________________ > Maplab-users mailing list > Maplab-users@dmsolutions.ca > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > -- Paul Spencer Applications and Software Development DM Solutions Group From EDUARDOPK@vcp.com.br Thu Oct 3 12:12:05 2002 From: EDUARDOPK@vcp.com.br (EDUARDO PATTO KANEGAE) Date: Thu, 3 Oct 2002 08:12:05 -0300 Subject: [maplab-users] digest Message-ID: <0066FEFC20B1D411AB4600805F8540C403EE836D@la02vcp.vcp.com.br> is there a way of subscribing to this list and receive only the digest of the day? tks Eduardo Patto Kanegae eduardopk@vcp.com.br Time Planejamento - UNIDADE LA - Ramal 9126 eduardo@scopotecnologia.com.br http://www.scopotecnologia.com.br From sfournier@dmsolutions.ca Thu Oct 3 13:22:31 2002 From: sfournier@dmsolutions.ca (Sacha Fournier) Date: Thu, 03 Oct 2002 08:22:31 -0400 Subject: [maplab-users] digest References: <0066FEFC20B1D411AB4600805F8540C403EE836D@la02vcp.vcp.com.br> Message-ID: <3D9C3687.9030403@dmsolutions.ca> Hi, If you click that link (http://lists.dmsolutions.ca/mailman/listinfo/maplab-users) you'll be able to manage your personal options. There is one for the digest. Regards, EDUARDO PATTO KANEGAE wrote: >is there a way of subscribing to this list and receive only the digest of >the day? > >tks > >Eduardo Patto Kanegae >eduardopk@vcp.com.br >Time Planejamento - UNIDADE LA - Ramal 9126 >eduardo@scopotecnologia.com.br >http://www.scopotecnologia.com.br >_______________________________________________ >Maplab-users mailing list >Maplab-users@dmsolutions.ca >http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > > > -- DM Solutions Group sfournier@dmsolutions.ca 72 Chamberlain Ave., 3rd Floord Ottawa, ON K1S 1V9 Tel.: (613) 565-5056 Fax.: (613) 565-0925 930 Jacques-Cartier Est Chicoutimi, QC G7H 7K9 Tel.: (418) 696-5056 From pgs@magma.ca Thu Oct 3 15:18:14 2002 From: pgs@magma.ca (Paul Spencer) Date: Thu, 03 Oct 2002 10:18:14 -0400 Subject: [maplab-users] digest References: <0066FEFC20B1D411AB4600805F8540C403EE836D@la02vcp.vcp.com.br> Message-ID: <3D9C51A6.4070804@magma.ca> Eduardo, if you follow the link at the bottom of a message from this list, it will take you to an info page for the list. At the bottom of the page you can your email address to be taken to an options page where you can select to recieve daily digests. Cheers, Paul EDUARDO PATTO KANEGAE wrote: > is there a way of subscribing to this list and receive only the digest of > the day? > > tks > > Eduardo Patto Kanegae > eduardopk@vcp.com.br > Time Planejamento - UNIDADE LA - Ramal 9126 > eduardo@scopotecnologia.com.br > http://www.scopotecnologia.com.br > _______________________________________________ > Maplab-users mailing list > Maplab-users@dmsolutions.ca > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > -- Paul Spencer Applications and Software Development DM Solutions Group From ab@bha-ing.ch Thu Oct 3 19:44:26 2002 From: ab@bha-ing.ch (Andreas Berweger BHA AG) Date: Thu, 3 Oct 2002 20:44:26 +0200 Subject: [maplab-users] maplab/mapserver/PHP-mapscript function to search a object Message-ID: Hello together For first excuse my english. i'm from switzerland and im speaking a bad english but well german. im working on a project for little communes and there internet-maping. - i'm using maplab v2.0-rc3, mapserver 3.6.2 with OGR support and PHP 4.2.2 on windows - my data commes from mapinfo Ver 6.0 and im using the tab files with OGR first i have to say that maplab and mapserver are working very fine on my system. maplab is easy to use and understand. The application i've made is temporaly browsable at http://193.246.110.38/mappub/GIS/BHA_apps/GIS_warth-weiningen/GIS_warth-wein ingen.phtml now my question: I have to made a textbox at the bottom of the legend. The user could input a parcell-number and klick on search. now (i hope it would be possible) mapserver/maplab had to search for this parcell in the Layer "Liegenschaften"(=parcells in german) and zoom on it. Thats all :) "liegenschaften" is a polygon layer with the attributes parcell-number and area from mapinfo/OGR. You see im not so familar with PHP and mapscript. I hope you could help me an give me some hints. when i have forgotten something or you need data to help me i could give you ... Thanks a lot and good night From jithesh@flashmail.com Sat Oct 5 08:08:46 2002 From: jithesh@flashmail.com (Jithesh P. Joseph) Date: Sat, 5 Oct 2002 00:08:46 -0700 Subject: [maplab-users] info tool Message-ID: <3d9e8ffe.191.0@flashmail.com> Hi All, I'm using Mapserver 3.6.2 with PHP-mapscript provided by dmsolutions. I'm using point query to get information about some of the layers. When I use the query tool, the map zooms out to the initial extent eventhough the extent in the query string is different. Do I have to change the map file in any sense? Hope somebody help! Regards Jithesh Joseph Vice President MapTell _______________________________________________________________ Get Your FREE FlashMail Address now at http://www.flashmail.com It's Free, Easy, & Fun !!! From jithesh@flashmail.com Sat Oct 5 09:10:25 2002 From: jithesh@flashmail.com (Jithesh P. Joseph) Date: Sat, 5 Oct 2002 01:10:25 -0700 Subject: [maplab-users] Maplab installation Message-ID: <3d9e9e71.1ad.0@flashmail.com> Hi All, I've downloaded Maplab (maplab-2.0rc2) from dmsolutions site and installed it and configured. I got the Maplab introduction page (http://myserver_name/maplab-2.0rc2/htdocs). Then I tried to use one of the three components, the Mapedit. In the configuration file I have given D:/TMP/maplab-2.0rc2/tutorial as the file_browser_root. I got the tutorial.map in the file browser dialog box, clicked it and pressed OK. I could't see anything in the screen except the no mapfile warning. What will be the possible problem? Is their any problem in the configuration? I'm using Win200 with php version 4.3.2 The Mapserver is working fine in my system (mapserver-3.6.1-win32-php4.2.1-libwww from dmsolutions). Regards Jithesh Joseph MapTell _______________________________________________________________ Get Your FREE FlashMail Address now at http://www.flashmail.com It's Free, Easy, & Fun !!! From pgs@magma.ca Tue Oct 8 02:22:45 2002 From: pgs@magma.ca (Paul Spencer) Date: Mon, 07 Oct 2002 21:22:45 -0400 Subject: [maplab-users] info tool References: <3d9e8ffe.191.0@flashmail.com> Message-ID: <3DA23365.2050609@magma.ca> Hi, not sure I understand your question. Are you using MapLab and have generated an application using GMapFactory and it is this application which is doing the wrong thing? Or is it MapBrowser or MapEdit? Or have you built your own app using mapserver and mapscript and want to do this? Cheers, Paul Jithesh P. Joseph wrote: > Hi All, > > I'm using Mapserver 3.6.2 with PHP-mapscript provided > by dmsolutions. > > I'm using point query to get information about some of the layers. > > When I use the query tool, the map zooms out to the initial extent > eventhough the extent in the query string is different. > > Do I have to change the map file in any sense? > > Hope somebody help! > > Regards > > Jithesh Joseph > Vice President > MapTell > _______________________________________________________________ > Get Your FREE FlashMail Address now at http://www.flashmail.com > It's Free, Easy, & Fun !!! > _______________________________________________ > Maplab-users mailing list > Maplab-users@dmsolutions.ca > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > -- Paul Spencer Applications and Software Development DM Solutions Group From pgs@magma.ca Tue Oct 8 02:58:32 2002 From: pgs@magma.ca (Paul Spencer) Date: Mon, 07 Oct 2002 21:58:32 -0400 Subject: [maplab-users] maplab/mapserver/PHP-mapscript function to search a object References: Message-ID: <3DA23BC8.5080804@magma.ca> Andreas, cool app :) I think I can help point you in the right direction. My appologies if there is too much detail here and you have already figured some/all of this out. I am hoping to also help others who may not have tried to customize their gmapfactory application. Let's assume that your application is called MyApp and is in a directory called MyApp under maplab-2.0rc3/projects/gmf_apps/MyApp/. The main user interface file is called MyApp_contents.php. You will add your new input box to this file in the appropriate location. It should be easy to determine where to put it, there are comments ;) The next file of interest is called MyApp.php. This is the main file that does all the work for navigation among other things. In here are a series of if() statements that check for various modes of navigation that the user could have performed. You will add an if() here something like: if ( $http_form_vars["parcel-number"] ) { // the parcel number to query for $szParcelNumber = $http_form_vars["parcel-number"]; // the current extents will be the default if we fail. $oExtents = $oMapSession->oMap->extents; //first we need a handle on the layer, let's assume that we have //it's name $oParcelLayer = $oMapSession->oMap->getLayerByName( "Parcels" ); // set up the layer for a query in ms 3.6 - in 3.7 we don't need // to do this, we can just use querybyattribute. Here we assume // that the data file associated with the layer has an attribute // called parcel_number that we are querying. $oParcelLayer->set( "FILTERITEM", "parcel_number" ); $oParcelLayer->setFilter( $szParcelNumber ); // use querybyattribute to generate the result, assume a single // one for simplicity but this can be extended to multiple // results easily $oParcelLayer->queryByAttribute( MS_SINGLE ); //now check to see if there are any results? if ($oParcelLayer->getNumResults() > 0 ) { //at least one result, assume only one for this example $oResult = $oParcelLayer->getResult( 0 ); //oResult is a resultCacheMemberObj $oShape = $oParcelLayer->getShape( $oResult->tileindex, $oResult->shapeid ); $oExtents = $oShape->bounds; $oShape->free(); //at this point we might add a buffer to the extents $nXBuffer = ( $oExtents->maxx - $oExtents->minx )*0.05; $nYBuffer = ( $oExtents->maxy - $oExtents->miny )*0.05; $nMinX = $oExtents->minx - $nXBuffer; $nMaxX = $oExtents->maxx + $nXBuffer; $nMinY = $oExtents->miny - $nYBuffer; $nMaxY = $oExtents->maxy + $nYBuffer; $oExtents->setExtents( $nMinX, $nMinY, $nMaxX, $nMaxY ); } // now use $oMapNavigator to navigate to the parcel // location. There are two useful options now. We // can zoom to a rectangle which we have calculated or // to a point and scale. Let's assume we have calculated // a rectangle and put a buffer around it if necessary. $oMapNavigator->zoomRectangle($oExtents->minx, $oExtents->miny, $oExtents->maxx, $oExtents->maxy); // alternately if it's a point and a scale ... // $oMapNavigator->zoomScale( $nScale, $nX, $nY ); } The $oMapSession and $oMapNavigator are MapScript wrapper objects that we created to make working with a map object simpler for us, they can be found in the wrapper directory of your app. The documentation for MapScript itself can be found at: http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_docs36.html. Daniel has also mentioned that you should get the old GMap demo and look for GMapDumpQueryResults() for some related ideas to working with queries. You should find it at http://www2.dmsolutions.ca/mapserver/dl/gmap-ms36.zip For questions like this, you may get faster response by posting to the mapserver-users mailing list, its very active and responsive ;) Cheers, Paul Andreas Berweger BHA AG wrote: > Hello together > > For first excuse my english. i'm from switzerland and im speaking a bad > english but well german. > im working on a project for little communes and there internet-maping. > > - i'm using maplab v2.0-rc3, mapserver 3.6.2 with OGR support and PHP 4.2.2 > on windows > - my data commes from mapinfo Ver 6.0 and im using the tab files with OGR > > first i have to say that maplab and mapserver are working very fine on my > system. maplab is easy to use and understand. The application i've made is > temporaly browsable at > > http://193.246.110.38/mappub/GIS/BHA_apps/GIS_warth-weiningen/GIS_warth-wein > ingen.phtml > > now my question: > > I have to made a textbox at the bottom of the legend. The user could input a > parcell-number and klick on search. now (i hope it would be possible) > mapserver/maplab had to search for this parcell in the Layer > "Liegenschaften"(=parcells in german) and zoom on it. Thats all :) > "liegenschaften" is a polygon layer with the attributes parcell-number and > area from mapinfo/OGR. You see im not so familar with PHP and mapscript. > > I hope you could help me an give me some hints. when i have forgotten > something or you need data to help me i could give you ... > > Thanks a lot and good night > > > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@dmsolutions.ca > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > -- Paul Spencer Applications and Software Development DM Solutions Group From jithesh@flashmail.com Tue Oct 8 05:18:16 2002 From: jithesh@flashmail.com (Jithesh P. Joseph) Date: Mon, 7 Oct 2002 21:18:16 -0700 Subject: [maplab-users] thanks Message-ID: <3da25c88.2e.0@flashmail.com> Hi All, Thanks for all the answers to my question... Special thanks to Paul Spencer and Scott I want to add flash support to my mapserver. Where can I download the MS VC++ makefile for compiling ming under Win system. Can anybody send me the link? Regards Jithesh Joseph MapTell _______________________________________________________________ Get Your FREE FlashMail Address now at http://www.flashmail.com It's Free, Easy, & Fun !!! From assefa@dmsolutions.ca Tue Oct 8 14:08:25 2002 From: assefa@dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 08 Oct 2002 09:08:25 -0400 Subject: [maplab-users] thanks References: <3da25c88.2e.0@flashmail.com> Message-ID: <3DA2D8C9.A360EAC7@dmsolutions.ca> This is a multi-part message in MIME format. --------------2B8CF4C81B6E760DC737920B Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Attached is a makefile for mc vc++ that I used to build the ming library (ming-0.2a) under windows. Place this file under the src directory. Usage : nmake -f makefile.vc Later "Jithesh P. Joseph" wrote: > Hi All, > > Thanks for all the answers to my question... > > Special thanks to Paul Spencer and Scott > > I want to add flash support to my mapserver. > > Where can I download the MS VC++ makefile for compiling ming under Win > system. > > Can anybody send me the link? > > Regards > > Jithesh Joseph > MapTell > _______________________________________________________________ > Get Your FREE FlashMail Address now at http://www.flashmail.com > It's Free, Easy, & Fun !!! > _______________________________________________ > Maplab-users mailing list > Maplab-users@dmsolutions.ca > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- --------------2B8CF4C81B6E760DC737920B Content-Type: text/plain; charset=us-ascii; name="makefile.vc" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="makefile.vc" # # OPTFLAGS = /nologo /Zi /W3 /DDEBUG BASE_CFLAGS = $(OPTFLAGS) /DWIN32 LDFLAGS = /NODEFAULTLIB:libcd /DEBUG CC= cl LINK= link MING_LIB = libming.lib MING_OBJS = movie.obj displaylist.obj blocklist.obj position.obj movieclip.obj \ shape_util.obj shape_cubic.obj text_util.obj fill.obj ming.obj BLOCKS_OBJS = ./blocks/output.obj ./blocks/character.obj ./blocks/shape.obj \ ./blocks/morph.obj ./blocks/fillstyle.obj ./blocks/matrix.obj ./blocks/font.obj \ ./blocks/block.obj ./blocks/cxform.obj ./blocks/text.obj ./blocks/action.obj \ ./blocks/button.obj ./blocks/placeobject.obj ./blocks/outputblock.obj \ ./blocks/method.obj ./blocks/sprite.obj ./blocks/fontinfo.obj \ ./blocks/loadfont.obj \ ./blocks/rect.obj ./blocks/jpeg.obj ./blocks/mp3.obj ./blocks/soundstream.obj \ ./blocks/textfield.obj ./blocks/browserfont.obj ./blocks/dbl.obj \ ./blocks/linestyle.obj ./blocks/gradient.obj ./blocks/bitmap.obj \ ./blocks/error.obj ./blocks/input.obj ./blocks/placeobject.obj ACTIONS_OBJS = ./actioncompiler/compile.obj ./actioncompiler/listaction.obj ./actioncompiler/lex.swf4.obj ./actioncompiler/lex.swf5.obj ./actioncompiler/swf5compiler.tab.obj ./actioncompiler/swf4compiler.tab.obj ./actioncompiler/assembler.obj ./actioncompiler/compileaction.obj LIBS = $(MING_LIB) CFLAGS = $(BASE_CFLAGS) $(INCLUDES) default: all all: $(MING_LIB) $(MING_LIB): $(MING_OBJS) $(BLOCKS_OBJS) $(ACTIONS_OBJS) lib /out:$(MING_LIB) *.obj clean: del *.obj del *.lib --------------2B8CF4C81B6E760DC737920B-- From andreas.berweger@bluewin.ch Tue Oct 8 18:10:32 2002 From: andreas.berweger@bluewin.ch (Andreas Berweger) Date: Tue, 8 Oct 2002 19:10:32 +0200 Subject: AW: AW: [maplab-users] maplab/mapserver/PHP-mapscript function to search a object In-Reply-To: <3DA2E632.2080404@magma.ca> Message-ID: Done!! Thanks Paul!! With one limitation at the moment ... you could only zoom to objects they are in your actually picture ... Here some comments for the list ... $oMapSession->oMap->shapepath works fine when you use relative paths to your data directory. the relativ path starts in your Application directory (for example: ../../Daten/data_ww/) ok and here is our ( Paul's :) Code: /* ============================================================================ * Parzellennummer suchen * ========================================================================= */ if ( $http_form_vars["parcel-number"]) { // the parcel number to query for $szParcelNumber = $http_form_vars["parcel-number"]; // the current extents will be the default if we fail. $oExtents = $oMapSession->oMap->extent; $oldExtents=$oExtents; //first we need a handle on the layer, let's assume that we have //it's name $oParcelLayer = $oMapSession->oMap->getLayerByName( "Parzellen" ); // set up the layer for a query in ms 3.6 - in 3.7 we don't need // to do this, we can just use querybyattribute. Here we assume // that the data file associated with the layer has an attribute // called parcel_number that we are querying. $oParcelLayer->set( "filteritem", "Nummer" ); $oParcelLayer->setFilter("\"$szParcelNumber\""); // use querybyattribute to generate the result, assume a single // one for simplicity but this can be extended to multiple // results easily $oParcelLayer->queryByAttributes( MS_SINGLE ); //now check to see if there are any results? if ($oParcelLayer->getNumResults() > 0 ) { //at least one result, assume only one for this example $oResult = $oParcelLayer->getResult( 0 ); //oResult is a resultCacheMemberObj $oParcelLayer->open($oMapSession->oMap->shapepath); $oShape = $oParcelLayer->getShape( $oResult->tileindex,$oResult->shapeindex ); $oExtents = $oShape->bounds; $oShape->free(); //at this point we might add a buffer to the extents $nXBuffer = ( $oExtents->maxx - $oExtents->minx )*0.05; $nYBuffer = ( $oExtents->maxy - $oExtents->miny )*0.05; $nMinX = $oExtents->minx - $nXBuffer; $nMaxX = $oExtents->maxx + $nXBuffer; $nMinY = $oExtents->miny - $nYBuffer; $nMaxY = $oExtents->maxy + $nYBuffer; $oExtents->setextent( $nMinX, $nMinY, $nMaxX, $nMaxY ); } // now use $oMapNavigator to navigate to the parcel // location. There are two useful options now. We // can zoom to a rectangle which we have calculated or // to a point and scale. Let's assume we have calculated // a rectangle and put a buffer around it if necessary. $breite=$oMapSession->oMap->width; $hoehe=$oMapSession->oMap->height; $px1=$breite/($oldExtents->maxx-$oldExtents->minx)*($oExtents->minx-$oldExte nts->minx); $px2=$breite/($oldExtents->maxx-$oldExtents->minx)*($oExtents->maxx-$oldExte nts->minx); $py1=$hoehe/($oldExtents->maxy-$oldExtents->miny)*($oldExtents->maxy-$oExten ts->maxy); $py2=$hoehe/($oldExtents->maxy-$oldExtents->miny)*($oldExtents->maxy-$oExten ts->miny); $oMapNavigator->zoomRectangle($px1, $py2, $px2, $py1); // alternately if it's a point and a scale ... //$oMapNavigator->zoomScale( 1000, 100, 100 ); } Thanks again Andreas Berweger BHA AG > -----Ursprungliche Nachricht----- > Von: Paul Spencer [mailto:pgs@magma.ca] > Gesendet: Dienstag, 8. Oktober 2002 16:06 > An: Andreas Berweger > Betreff: Re: AW: [maplab-users] maplab/mapserver/PHP-mapscript function > to search a object > > > Andreas, glad I could help. Sorry, I didn't check the code, it was just > a rough example I threw together. I would have been very suprised if it > was right the first time :) If your layer is correctly configured, you > should have been able to access a shape in the layer using > $oLayer->getShape(). You can calculate the path to your layer's data by > getting the shapepath from the map object > ($oMapSession->oMap->shapepath) unless you use absolute paths in the > layer's data attribute. If this doesn't work, try a post on > mapserver-users, I'm sure you'll get lots of help :) > > Cheers, > > Paul > > Andreas Berweger wrote: > > Thanks for your help Paul!! > > It helps a lot and looks very easy/logical. But i have some > Problems with > > accessing Mapinfo/OGR files through the "getshape()" command. I > have used > > your syntax as you described in your mail. it works great. but > when i call > > the "getshape()" command the following php error occurs > > > > > > $oShape = > > $oParcelLayer->getShape($oResult->tileindex,$oResult->shapeindex ); > > > > -> MapServer Error in msOGRLayerNextShape(): Assertion failed: > OGR layer not > > opened!!! > > > > i have read in some posts that i have to open the layer > explicitly before > > using get shape() and close it after. Command: int open(string > shapepath) > > > > http://mapserver.gis.umn.edu/wilma/mapserver-users/0207/msg00542.html > > > > But how to open a OGR layer through php/mapscript? Whats the > shapepath for > > OGR layers ... with $map->shapepath it doesn't work ... > > > > > > Thanks a lot for you help and time paul > > > > > > P.S. i have also changed the foolowing lines because we use mapserver > > version 3.6.2 (3.7.0) > > > > $oParcelLayer->queryByAttribute( MS_SINGLE ); // > > $oParcelLayer->queryByAttributes( MS_SINGLE ) > > > > $oParcelLayer->set( "filteritem", "Nummer" ); // > "filteritem" in small > > cases > > $oParcelLayer->setFilter("\"$szParcelNumber\""); // replaces ( > > $szParcelNumber ) > > > > $oShape = > > $oParcelLayer->getShape($oResult->tileindex,$oResult->shapeindex ); > > //shapeid to shapeindex > > > > > > > >>-----Ursprungliche Nachricht----- > >>Von: maplab-users-admin@dmsolutions.ca > >>[mailto:maplab-users-admin@dmsolutions.ca]Im Auftrag von Paul Spencer > >>Gesendet: Dienstag, 8. Oktober 2002 03:59 > >>An: Andreas Berweger BHA AG; maplab-users; mapserver-users > >>Betreff: Re: [maplab-users] maplab/mapserver/PHP-mapscript function to > >>search a object > >> > >> > >>Andreas, > >> > >>cool app :) I think I can help point you in the right direction. My > >>appologies if there is too much detail here and you have already figured > >>some/all of this out. I am hoping to also help others who may not have > >>tried to customize their gmapfactory application. > >> > >>Let's assume that your application is called MyApp and is in a directory > >>called MyApp under maplab-2.0rc3/projects/gmf_apps/MyApp/. > >> > >>The main user interface file is called MyApp_contents.php. You will add > >>your new input box to this file in the appropriate location. It should > >>be easy to determine where to put it, there are comments ;) > >> > >>The next file of interest is called MyApp.php. This is the main file > >>that does all the work for navigation among other things. In here are a > >>series of if() statements that check for various modes of navigation > >>that the user could have performed. You will add an if() here something > >>like: > >> > >>if ( $http_form_vars["parcel-number"] ) > >>{ > >> // the parcel number to query for > >> $szParcelNumber = $http_form_vars["parcel-number"]; > >> > >> // the current extents will be the default if we fail. > >> $oExtents = $oMapSession->oMap->extents; > >> > >> //first we need a handle on the layer, let's assume that we have > >> //it's name > >> $oParcelLayer = $oMapSession->oMap->getLayerByName( "Parcels" ); > >> > >> // set up the layer for a query in ms 3.6 - in 3.7 we don't need > >> // to do this, we can just use querybyattribute. Here we assume > >> // that the data file associated with the layer has an attribute > >> // called parcel_number that we are querying. > >> $oParcelLayer->set( "FILTERITEM", "parcel_number" ); > >> $oParcelLayer->setFilter( $szParcelNumber ); > >> > >> // use querybyattribute to generate the result, assume a single > >> // one for simplicity but this can be extended to multiple > >> // results easily > >> $oParcelLayer->queryByAttribute( MS_SINGLE ); > >> > >> //now check to see if there are any results? > >> if ($oParcelLayer->getNumResults() > 0 ) > >> { > >> //at least one result, assume only one for this example > >> $oResult = $oParcelLayer->getResult( 0 ); > >> //oResult is a resultCacheMemberObj > >> $oShape = $oParcelLayer->getShape( $oResult->tileindex, > >> $oResult->shapeid ); > >> $oExtents = $oShape->bounds; > >> $oShape->free(); > >> > >> //at this point we might add a buffer to the extents > >> $nXBuffer = ( $oExtents->maxx - $oExtents->minx )*0.05; > >> $nYBuffer = ( $oExtents->maxy - $oExtents->miny )*0.05; > >> $nMinX = $oExtents->minx - $nXBuffer; > >> $nMaxX = $oExtents->maxx + $nXBuffer; > >> $nMinY = $oExtents->miny - $nYBuffer; > >> $nMaxY = $oExtents->maxy + $nYBuffer; > >> $oExtents->setExtents( $nMinX, $nMinY, $nMaxX, $nMaxY ); > >> } > >> > >> // now use $oMapNavigator to navigate to the parcel > >> // location. There are two useful options now. We > >> // can zoom to a rectangle which we have calculated or > >> // to a point and scale. Let's assume we have calculated > >> // a rectangle and put a buffer around it if necessary. > >> $oMapNavigator->zoomRectangle($oExtents->minx, $oExtents->miny, > >> $oExtents->maxx, $oExtents->maxy); > >> > >> // alternately if it's a point and a scale ... > >> // $oMapNavigator->zoomScale( $nScale, $nX, $nY ); > >>} > >> > >>The $oMapSession and $oMapNavigator are MapScript wrapper objects that > >>we created to make working with a map object simpler for us, they can be > >>found in the wrapper directory of your app. The documentation for > >>MapScript itself can be found at: > >> > >>http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_d > >>ocs36.html. > >> > >>Daniel has also mentioned that you should get the old GMap demo and look > >>for GMapDumpQueryResults() for some related ideas to working with > >>queries. You should find it at > >>http://www2.dmsolutions.ca/mapserver/dl/gmap-ms36.zip > >> > >>For questions like this, you may get faster response by posting to the > >>mapserver-users mailing list, its very active and responsive ;) > >> > >>Cheers, > >> > >>Paul > >> > >> > >>Andreas Berweger BHA AG wrote: > >> > >>>Hello together > >>> > >>>For first excuse my english. i'm from switzerland and im speaking a bad > >>>english but well german. > >>>im working on a project for little communes and there internet-maping. > >>> > >>>- i'm using maplab v2.0-rc3, mapserver 3.6.2 with OGR support > >> > >>and PHP 4.2.2 > >> > >>>on windows > >>>- my data commes from mapinfo Ver 6.0 and im using the tab > >> > >>files with OGR > >> > >>>first i have to say that maplab and mapserver are working very > >> > >>fine on my > >> > >>>system. maplab is easy to use and understand. The application > >> > >>i've made is > >> > >>>temporaly browsable at > >>> > >>> > >> > >>http://193.246.110.38/mappub/GIS/BHA_apps/GIS_warth-weiningen/GIS_ > > > > warth-wein > > > >>ingen.phtml > >> > >>now my question: > >> > >>I have to made a textbox at the bottom of the legend. The user > could input > > > > a > > > >>parcell-number and klick on search. now (i hope it would be possible) > >>mapserver/maplab had to search for this parcell in the Layer > >>"Liegenschaften"(=parcells in german) and zoom on it. Thats all :) > >>"liegenschaften" is a polygon layer with the attributes > parcell-number and > >>area from mapinfo/OGR. You see im not so familar with PHP and mapscript. > >> > >>I hope you could help me an give me some hints. when i have forgotten > >>something or you need data to help me i could give you ... > >> > >>Thanks a lot and good night > >> > >> > >> > >> > >>_______________________________________________ > >>Maplab-users mailing list > >>Maplab-users@dmsolutions.ca > >>http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > >> > > > > > > > > -- > > Paul Spencer > > Applications and Software Development > > DM Solutions Group > > > > > > _______________________________________________ > > Maplab-users mailing list > > Maplab-users@dmsolutions.ca > > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > > > > > > > -- > Paul Spencer > Applications and Software Development > DM Solutions Group > > From jithesh@flashmail.com Wed Oct 9 05:42:47 2002 From: jithesh@flashmail.com (Jithesh P. Joseph) Date: Tue, 8 Oct 2002 21:42:47 -0700 Subject: [maplab-users] (no subject) Message-ID: <3da3b3c7.1a3.0@flashmail.com> Hi Steve, Itried to get the new Mapserver-php module at http://www2.dmsolutions.ca/mapserv/dl/mapserver-3.6.3-win32-php4.2.3-libwww .zip I couldn't find it there. Is their any problem with the link? Thanks!! I got it from http://www2.dmsolutions.ca/webtools/dl/mapserver-3.6.3-win32-php4.2.3-libww w.zip Regards Jithesh Joseph MapTell INDIA _______________________________________________________________ Get Your FREE FlashMail Address now at http://www.flashmail.com It's Free, Easy, & Fun !!! From MattLynch@acm.org Fri Oct 11 19:22:17 2002 From: MattLynch@acm.org (MattLynch@acm.org) Date: Fri, 11 Oct 2002 12:22:17 -0600 Subject: [maplab-users] problem using preview in MapEdit Message-ID: <334d5b32f8b6.32f8b6334d5b@shaw.ca> Hi, I have recently installed MapLab and MapScript and I am trying to get everything functional. My installation details: Win2K Adv Server SP3 Apache 1.3.27 PHP 4.2.3 MapScript version 3.6.3 (for some reason does not support JPEG?) MapLab 2.0rc2 When I try to preview a the tutorial map file I get the following error message ( I have set the image type to PNG) Warning: MapServer Error in msSaveImage(): (/tmp/ms_tmp/103435944716281.gif) in d:\apacheserverroot\maplab\htdocs\mapedit\preview.php on line 400 Fatal error: Failed writing image to /tmp/ms_tmp/103435944716281.gif in d:\apacheserverroot\maplab\htdocs\mapedit\preview.php on line 400 Any suggestions? Thanks, Matt From pgs@magma.ca Sat Oct 12 00:40:02 2002 From: pgs@magma.ca (Paul Spencer) Date: Fri, 11 Oct 2002 19:40:02 -0400 Subject: [maplab-users] problem using preview in MapEdit References: <334d5b32f8b6.32f8b6334d5b@shaw.ca> Message-ID: <3DA76152.10201@magma.ca> Matt, if you have got everything set up right, you should have a temporary directory that is used for map and image files. This directory is also accessible through your web server. At DM Solutions, we typically set this up to be /tmp/ms_tmp/ with an alias for /tmp/ in the apache httpd.conf file. The reasons are somewhat historical but basically stem from a linux background. On your system, this would probably translate to d:\tmp\ms_tmp\. The tutorial.map file is configured for this setup. A MAP file has a web object that defines both the physical path to the temporary directory and a web-accessible path to the same directory. The tutorial.map file comes with these settings configured for the DM Solutions default settings /tmp/ms_tmp/ and /tmp/. The error message appears to be indicating that the /tmp/ms_tmp/ directory doesn't exist, so you will need to either change the MAP file or your system. On Windows, you can (or should) specify a drive letter as well (i.e. d:/tmp/ms_tmp/), but it should default to the same drive as everything is installed on. You will also have to make sure that MapLab is configured for the same paths as you decide to use in your MAP files. Cheers, Paul Applications and Software Development DM Solutions Group Inc http://www.dmsolutions.ca/ lynch.matt@shaw.ca wrote: > Hi, > > I have recently installed MapLab and MapScript and I am trying to get everything functional. > > My installation details: > Win2K Adv Server SP3 > Apache 1.3.27 > PHP 4.2.3 > MapScript version 3.6.3 (for some reason does not support JPEG?) > MapLab 2.0rc2 > > When I try to preview a the tutorial map file I get the following error message > ( I have set the image type to PNG) > > Warning: MapServer Error in msSaveImage(): (/tmp/ms_tmp/103435944716281.gif) in d:\apacheserverroot\maplab\htdocs\mapedit\preview.php on line 400 > > Fatal error: Failed writing image to /tmp/ms_tmp/103435944716281.gif in d:\apacheserverroot\maplab\htdocs\mapedit\preview.php on line 400 > > Any suggestions? > > Thanks, > > Matt > > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@dmsolutions.ca > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > From aqueiroz@usp.br Tue Oct 15 00:22:13 2002 From: aqueiroz@usp.br (Alfredo Pereira de Queiroz) Date: Mon, 14 Oct 2002 16:22:13 -0700 Subject: [maplab-users] MapLab's Tutorial Message-ID: <001001c273d8$86de7010$09f06b8f@geo100> This is a multi-part message in MIME format. ------=_NextPart_000_000D_01C2739D.DA6A3B50 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello All, I got the following message when I try to preview the tutorial with = layer PARK (projection object init=3Depsg:42304): Warning: MapServer Error in msProcessProjection(): no system list, = errno: 2 in = F:\Inetpub\wwwroot\msapps\maplab-2.0rc2\common\wrapper\map_session.php = on line 271 Fatal error: Failed to open map file c:/temp//3daaf912da004.map in = F:\Inetpub\wwwroot\msapps\maplab-2.0rc2\common\wrapper\map_session.php = on line 271 Any hint to help this brazilian guy? I didnt understand, also, how to change the projection, in order to use = may own maps. The button Modify Projection is off at the Mapbrowser = window. Change the Extents numbers are enough? I changed but nothing = shows up on preview map. Thanks in advance Alfredo ------=_NextPart_000_000D_01C2739D.DA6A3B50 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello All,
I got the following message when I try = to preview=20 the tutorial with layer PARK (projection object=20 init=3Depsg:42304):
Warning: MapServer Error in=20 msProcessProjection(): no system list, errno: 2 in=20 F:\Inetpub\wwwroot\msapps\maplab-2.0rc2\common\wrapper\map_session.php= on=20 line 271
Fatal error: Failed to open map file=20 c:/temp//3daaf912da004.map in=20 F:\Inetpub\wwwroot\msapps\maplab-2.0rc2\common\wrapper\map_session.php= on=20 line 271
Any hint to help this brazilian = guy?
I didnt understand, also, how to change = the=20 projection, in order to use may own maps. The button Modify = Projection is=20 off at the Mapbrowser window. Change the Extents numbers are enough? I = changed=20 but nothing shows up on preview map.
Thanks in advance
Alfredo
 
 
------=_NextPart_000_000D_01C2739D.DA6A3B50-- From spencer@dmsolutions.ca Tue Oct 15 03:43:47 2002 From: spencer@dmsolutions.ca (Paul Spencer) Date: Mon, 14 Oct 2002 22:43:47 -0400 Subject: [maplab-users] MapLab's Tutorial References: <001001c273d8$86de7010$09f06b8f@geo100> Message-ID: <3DAB80E3.4050109@dmsolutions.ca> Alfredo, the somewhat cryptic error message is telling you that you either have not installed proj or you have referred to a proj definition that doesn't exist. You should have a directory called "proj" on your c:\ drive (this location is essentially hard-coded, I did hear that it can be changed with an environment variable but I don't know how to do that). If you don't have this directory, then you will need to create it. Next, you should have a file called epsg in this directory. If you do, then you have a file that doesn't include the definition for 4203. If you don't then you need one :) You can get it at: http://www2.dmsolutions.ca/mapserver/dl/proj4-epsg-with-42xxx.zip The projection definitions for 42xxx are all at the bottom and have been added by DM Solutions Group for projections we commonly use in Canada. HTH Paul -- Paul Spencer Applications and Software Development DM Solutions Group Inc http://www.dmsolutions.ca Alfredo Pereira de Queiroz wrote: > Hello All, > I got the following message when I try to preview the tutorial with > layer PARK (projection object init=epsg:42304): > *Warning*: MapServer Error in msProcessProjection(): no system list, > errno: 2 in > *F:\Inetpub\wwwroot\msapps\maplab-2.0rc2\common\wrapper\map_session.php* > on line *271* > *Fatal error*: Failed to open map file c:/temp//3daaf912da004.map in > *F:\Inetpub\wwwroot\msapps\maplab-2.0rc2\common\wrapper\map_session.php* > on line *271* > Any hint to help this brazilian guy? > I didnt understand, also, how to change the projection, in order to > use may own maps. The button Modify Projection is off at the Mapbrowser > window. Change the Extents numbers are enough? I changed but nothing > shows up on preview map. > Thanks in advance > Alfredo > > -- Paul Spencer Applications and Software Development DM Solutions Group From spencer@dmsolutions.ca Tue Oct 15 03:45:49 2002 From: spencer@dmsolutions.ca (Paul Spencer) Date: Mon, 14 Oct 2002 22:45:49 -0400 Subject: [Fwd: Re: [maplab-users] problem using preview in MapEdit] Message-ID: <3DAB815D.5090503@dmsolutions.ca> This is a multi-part message in MIME format. --------------090000010001000905030203 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Matt and list, my appologies for the typo, the webserver alias should be /ms_tmp/ instead of /tmp/ Cheers, Paul -- Paul Spencer Applications and Software Development DM Solutions Group --------------090000010001000905030203 Content-Type: message/rfc822; name="Re: [maplab-users] problem using preview in MapEdit" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Re: [maplab-users] problem using preview in MapEdit" >From - Mon Oct 14 10:54:44 2002 X-Mozilla-Status2: 00000000 Received: from mx1.magmacom.com (mx1.magma.ca [206.191.0.217]) by in1.magma.ca (Magma's Mail Server) with ESMTP id g9EEn5HN018853; Mon, 14 Oct 2002 10:49:06 -0400 (EDT) Received: from mail6.magma.ca (mail6 [206.191.0.248]) by mx1.magmacom.com (Magma's Mail Server) with ESMTP id g9EEn5AN024079; Mon, 14 Oct 2002 10:49:05 -0400 (EDT) Received: from dmsolutions.ca (Toronto-HSE-ppp3765522.sympatico.ca [67.68.164.9]) by mail6.magma.ca (Magma's Mail Server) with ESMTP id g9EEn5RZ014523; Mon, 14 Oct 2002 10:49:05 -0400 (EDT) Message-ID: <3DAAD8E0.1CE8839E@dmsolutions.ca> Date: Mon, 14 Oct 2002 10:46:56 -0400 From: Daniel Morissette X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Paul Spencer Subject: Re: [maplab-users] problem using preview in MapEdit References: <334d5b32f8b6.32f8b6334d5b@shaw.ca> <3DA76152.10201@magma.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Paul Spencer wrote: > > if you have got everything set up right, you should have a temporary > directory that is used for map and image files. This directory is also > accessible through your web server. At DM Solutions, we typically set > this up to be /tmp/ms_tmp/ with an alias for /tmp/ in the apache I'm not sure what you use in MapLab, but all our servers and other apps use /ms_tmp/ as the alias in Apache, so I suspect a small typo here. I thought I should point it in case you want to send a correction to avoid creating more confusion on the user's system. -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. --------------090000010001000905030203-- From w.blanken@12move.nl Tue Oct 15 09:15:17 2002 From: w.blanken@12move.nl (Wim Blanken) Date: Tue, 15 Oct 2002 10:15:17 +0200 Subject: [maplab-users] Mapserver site Message-ID: <003401c27423$02cef470$6400a8c0@BLANKEN> This is a multi-part message in MIME format. ------=_NextPart_000_0031_01C27433.C2BE4A00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello users, A little bit off topic here but anyway, can anyone tell me why the main mapserver website is offline. For three days or so i have no connection. Also the maillist seems to be not functioning. Wim Blanken The Netherlands ------=_NextPart_000_0031_01C27433.C2BE4A00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello users,
 
A little bit off topic here but anyway, = can anyone=20 tell me why the main
mapserver website is offline. For three = days or so=20 i have no connection.
Also the maillist seems to be not=20 functioning.
 
Wim Blanken
The Netherlands
 
------=_NextPart_000_0031_01C27433.C2BE4A00-- From morissette@dmsolutions.ca Tue Oct 15 14:37:35 2002 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 15 Oct 2002 09:37:35 -0400 Subject: [maplab-users] Mapserver site References: <003401c27423$02cef470$6400a8c0@BLANKEN> Message-ID: <3DAC1A1F.BDA679D4@dmsolutions.ca> > Wim Blanken wrote: > > A little bit off topic here but anyway, can anyone tell me why the > main > mapserver website is offline. For three days or so i have no > connection. > Also the maillist seems to be not functioning. > Hi, I got a note on Friday afternoon from Steve Lime saying that the UMN server that hosts the list, CVS and website has been hacked. The system administrator at UMN was not available to fix it until this week and they could not guarantee when it would be back up, but we should hopefully hear from UMN soon on this. That's all the information I have. I'll keep this list posted if I hear anything else. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From nfabellar@yahoo.com Thu Oct 17 09:51:46 2002 From: nfabellar@yahoo.com (Nestor Fabellar) Date: Thu, 17 Oct 2002 01:51:46 -0700 (PDT) Subject: [maplab-users] Dynamic legend Message-ID: <20021017085146.33993.qmail@web40410.mail.yahoo.com> Maplab Gurus, I would like to know how to use the dynamic legend and where do you normally insert such function. Thanks, nestor __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com From dpadron@lareserva.com Fri Oct 18 15:52:39 2002 From: dpadron@lareserva.com (Diego Padr=?ISO-8859-1?Q?=F3?=n Paredes) Date: Fri, 18 Oct 2002 08:52:39 -0600 Subject: [maplab-users] Help connect in MySql Message-ID: <200210180852.AA66060946@lareserva.com> Hello Somebody can orient to me like connecting php-mapscript3.6 to mysql using layers shp. I use Xp Windows like servant. and Maplab like manager. Thank you very much by the aid. Diego J. Padrón _____________________________ Pura Vida! www.lareserva.com From mcilhagga@dmsolutions.ca Mon Oct 21 21:40:08 2002 From: mcilhagga@dmsolutions.ca (Dave McIlhagga) Date: Mon, 21 Oct 2002 16:40:08 -0400 Subject: [maplab-users] [Fwd: Error Call to a member function] Message-ID: <3DB46628.3090207@dmsolutions.ca> Please use the Maplab-users@dmsolutions.ca mailing list for MapLab related questions. -------- Original Message -------- Subject: [mapserver-users] Error Call to a member function Date: Mon, 21 Oct 2002 11:15:03 -0600 From: "Diego Padrón Paredes" Reply-To: To: PHP Fatal error: Call to a member function on a non-object in C:\msapps\htdocs\common\picker\shape_file_attr.php on line 129 east error is generated in use the TileItem in Maplab (2.0-dev) What is error _____________________________ Pura Vida! www.lareserva.com -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca EMail : mcilhagga@dmsolutions.ca Phone : 613-565-5056 x15 Fax : 613-565-0925 From aqueiroz@usp.br Fri Oct 25 00:18:51 2002 From: aqueiroz@usp.br (Alfredo Pereira de Queiroz) Date: Thu, 24 Oct 2002 16:18:51 -0700 Subject: [maplab-users] Symbol examples Message-ID: <002101c27bb3$b6dc0470$0ef06b8f@geo100> This is a multi-part message in MIME format. ------=_NextPart_000_001E_01C27B79.0A738F80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, Do you know where should I find more Symbol examples? Thanks in Advance Alfredo ------=_NextPart_000_001E_01C27B79.0A738F80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all,
Do you know where should I find more = Symbol=20 examples?
Thanks in Advance
Alfredo
------=_NextPart_000_001E_01C27B79.0A738F80-- From fredrock@magma.ca Thu Oct 24 21:57:14 2002 From: fredrock@magma.ca (Fred Warnock) Date: Thu, 24 Oct 2002 16:57:14 -0400 Subject: [maplab-users] Symbol examples References: <002101c27bb3$b6dc0470$0ef06b8f@geo100> Message-ID: <3DB85EAA.3030803@magma.ca> Hi Alfredo, Did you know you can define TT Font characters as symbols in the symbol file? Check out the MapServer refrence at UMN for details on how. This may be the easiest way to add symbols to the map without designing your own. Besides TT Characters, you can also use bitmap graphics (my favourite) and of course you can define your own in the symbol syntax which I find challenging. just incase you didn't already know, the refrence I'm refering to is at: http://mapserver.gis.umn.edu/doc36/mapfile-reference.html#symbology I hope this help you get the symbols on your map that you want. The only places I know of any other symbol file defined symbols are in some of the demos on th UMN Site, but from what I can tell they are mostly basic shapes and hatch patterns. -- Fred Warnock : Web, Graphic & Cartographic Design : DM Solutions Group Inc. web site : http://www.dmsolutions.ca From aspaeter@hit.handshake.de Sun Oct 27 19:42:36 2002 From: aspaeter@hit.handshake.de (Achim Spaeter) Date: Sun, 27 Oct 2002 20:42:36 +0100 Subject: [maplab-users] Mapfile for a correct legend Message-ID: <000001c27df1$c07f1720$a0e118d9@IBM> Hello all, I would like to build a mapfile that shows a correct HTML legend based on groups - layers and classes that are used within my map. I did not succeed to get my layers grouped or to have a full legend for layers in my map that are drawn with different classes. Can this be done? thanks in advance Achim ---- Achim Spaeter Kapellenstrasse 26 66649 Oberthal-Guedesweiler aspaeter@hit.handshake.de From Mark.Balman@birdlife.org.uk Mon Oct 28 10:35:52 2002 From: Mark.Balman@birdlife.org.uk (Mark Balman) Date: Mon, 28 Oct 2002 10:35:52 -0000 Subject: [maplab-users] Polygon selecting by list box Message-ID: Hi All I have Maplab up and running (cool app!) and am slowly building an application but I have a question: I have a shapefile containing various polygons. What I am trying to do is to be able to select a value ( e.g. the name of the polygon) from a drop down list and then display the selected polygon. I am a bit stumped on how best to do this can anyone provide any pointers? Thanks in advance! Mark Balman From fx.gamoy@mapxplore.com Mon Oct 28 17:46:53 2002 From: fx.gamoy@mapxplore.com (fx gamoy) Date: Mon, 28 Oct 2002 17:46:53 -0000 Subject: [maplab-users] use of querymap Message-ID: <001901c27eaa$002b6820$0201a8c0@mapxplore.com> C'est un message de format MIME en plusieurs parties. ------=_NextPart_000_0016_01C27EAA.00291E30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello i don't understand the use of querymap for highlighting a query. I would like to use (@$oLayer->queryByAttributes(MS_MULTIPLE) =3D=3D = MS_SUCCESS) and to get a map zoomed on the query result. I have reached to zoom on the query (using the bounds of the shapes = selected) but not to highlight these shapes when the image is = rendered... thanks FX ------=_NextPart_000_0016_01C27EAA.00291E30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello
i don't understand the use of querymap = for=20 highlighting a query.
I would like to use=20 (@$oLayer->queryByAttributes(MS_MULTIPLE) =3D=3D MS_SUCCESS) and to = get a map=20 zoomed on the query result.
I have reached to zoom on the query = (using the=20 bounds of the shapes selected) but not to highlight these shapes when = the image=20 is rendered...
thanks
FX
------=_NextPart_000_0016_01C27EAA.00291E30-- From pgs@magma.ca Mon Oct 28 17:39:46 2002 From: pgs@magma.ca (Paul Spencer) Date: Mon, 28 Oct 2002 12:39:46 -0500 Subject: [maplab-users] use of querymap References: <001901c27eaa$002b6820$0201a8c0@mapxplore.com> Message-ID: <3DBD7662.9080301@magma.ca> It sounds like you need to use the drawQuery() method of the map object. If you are using an application produced by GMapFactory then this should happen automatically unless you are modifying the application structure. If this is the case, you should be using drawmap.php to render the map results, read the documentation at the top of this file to see how to call this page. Cheers, Paul fx gamoy wrote: > Hello > i don't understand the use of querymap for highlighting a query. > I would like to use (@$oLayer->queryByAttributes(MS_MULTIPLE) == > MS_SUCCESS) and to get a map zoomed on the query result. > I have reached to zoom on the query (using the bounds of the shapes > selected) but not to highlight these shapes when the image is rendered... > thanks > FX -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From aqueiroz@usp.br Tue Oct 29 00:14:52 2002 From: aqueiroz@usp.br (Alfredo Pereira de Queiroz) Date: Mon, 28 Oct 2002 16:14:52 -0800 Subject: [maplab-users] ttf file Message-ID: <004701c27ee0$33a7e350$10f06b8f@geo100> This is a multi-part message in MIME format. ------=_NextPart_000_0044_01C27E9D.25767280 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all, I had problems to define ttf files. When I change the symbol file (symbol.sym) by ttf file, esri_1.ttf for = instance, I got this message: Warning: MapServer Error in msLoadSymbolFile(): ():(0) in F:\Inetpub\wwwroot\msapps\maplab-2.0rc2\common\picker\symbol_picker.php = on line 123 Fatal error: Failed to open map file c:/temp//3db9813174440.map in F:\Inetpub\wwwroot\msapps\maplab-2.0rc2\common\picker\symbol_picker.php = on line 123 Can I create, like text fonts, a txt file with all ttf file names? Can I use different ttf files? Thanks in advance Alfredo (again...) ------=_NextPart_000_0044_01C27E9D.25767280 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all,
I had problems to define ttf=20 files.
When I change the symbol file=20 (symbol.sym)  by ttf file, esri_1.ttf=20 for instance, I got this message:
Warning: MapServer Error in=20 msLoadSymbolFile(): ():(0)=20 in
F:\Inetpub\wwwroot\msapps\maplab-2.0rc2\common\picker\symbol_picker= .php=20 on
line 123
Fatal error: Failed to open map file=20 c:/temp//3db9813174440.map=20 in
F:\Inetpub\wwwroot\msapps\maplab-2.0rc2\common\picker\symbol_picker= .php=20 on
line 123
Can I create, like text fonts, a txt file = with all=20 ttf file names?
Can I use different ttf = files?
Thanks in advance
Alfredo=20 (again...)

------=_NextPart_000_0044_01C27E9D.25767280-- From fx.gamoy@mapxplore.com Tue Oct 29 13:16:22 2002 From: fx.gamoy@mapxplore.com (fx gamoy) Date: Tue, 29 Oct 2002 13:16:22 -0000 Subject: [maplab-users] using a symbol PIXMAP Message-ID: <001b01c27f4d$6056dd30$0201a8c0@mapxplore.com> C'est un message de format MIME en plusieurs parties. ------=_NextPart_000_0018_01C27F4D.60522240 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, i have created a symbol object named etatpub(type PIXMAP name = "z_musse.gif" Then i have created a layer and a class object. I want to use the symbol = objet i have created but when i define etatpub as symbol, the program = match Warning: MapServer Error in loadSymbol(): (z_musee.gif):(86) in = d:\downloads\mapserver\maplab\maplab-2.0rc2\gmf_apps\polocs\wrapper\map_s= ession.php on line 276 Thanks for your help fx http://www.mapxplore.com/ ------=_NextPart_000_0018_01C27F4D.60522240 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
i have created a symbol object named = etatpub(type=20 PIXMAP name "z_musse.gif"
Then i have created a layer and a class = object. I=20 want to use the symbol objet i have created but when i define etatpub as = symbol,=20 the program match
Warning: MapServer Error in = loadSymbol():=20 (z_musee.gif):(86) in=20 d:\downloads\mapserver\maplab\maplab-2.0rc2\gmf_apps\polocs\wrapper\map_s= ession.php=20 on line 276
 
Thanks for your help
fx
http://www.mapxplore.com/
------=_NextPart_000_0018_01C27F4D.60522240-- From martin.antonio@etat.ge.ch Tue Oct 29 14:36:02 2002 From: martin.antonio@etat.ge.ch (Antonio Martin (DIAE)) Date: Tue, 29 Oct 2002 15:36:02 +0100 Subject: [maplab-users] help Message-ID: Hi all, I installed the Mapserverdemo Itasca and it seems to work ok. But, I get these error messages when I try to work with MapLab: In MapLab: Warning: MapServer Error in loadSymbol(): Symbol of type VECTOR or ELLIPSE has no point data. in /var/www/maplab-2.0rc1/common/wrapper/map_session.php on line 259 Fatal error: Failed to open map file /tmp//10e47801e826d91280967f5b069fe125.map in /var/www/maplab-2.0rc1/common/wrapper/map_session.php on line 259 What is installed: - apache 1.3.26 - php4 4.1.2 - mapserver 3.6.1 - maplab 2.0rc1 Some information: - Apache DocumentRoot is in /var/www - error messages (Gif and Dbase) in Maplab Information - Maplab installed in /var/www/maplab-2.0rc1/ The file / tmp / 10e.... exist and can be opened About mapscript in phpinfo : MapScript Version ($Revision: 1.104.2.1 $ $Date: 2002/06/03 14:19:53 $) MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE Thanks for your help... MARTIN DIAZ Antonio From spencer@dmsolutions.ca Tue Oct 29 16:39:35 2002 From: spencer@dmsolutions.ca (Paul Spencer) Date: Tue, 29 Oct 2002 11:39:35 -0500 Subject: [maplab-users] help References: Message-ID: <3DBEB9C7.6040609@dmsolutions.ca> Antonio, is it possible for you to upgrade to mapserver 3.6.3, maplab 2.0 rc3 (the development link on the web site for now, it will be released in a couple of days formally I hope), and php 4.2.3? Unfortunately, there are several problems relating to the issues you have here that were addressed in newer versions of maplab, but they require newer php and mapscript versions. Cheers, Paul Antonio Martin (DIAE) wrote: > Hi all, > > I installed the Mapserverdemo Itasca and it seems to work ok. > But, I get these error messages when I try to work with MapLab: > > In MapLab: > Warning: MapServer Error in loadSymbol(): Symbol of type VECTOR or > ELLIPSE has no point data. in > /var/www/maplab-2.0rc1/common/wrapper/map_session.php on line 259 > > Fatal error: Failed to open map file > /tmp//10e47801e826d91280967f5b069fe125.map in > /var/www/maplab-2.0rc1/common/wrapper/map_session.php on line 259 > > What is installed: > > - apache 1.3.26 > - php4 4.1.2 > - mapserver 3.6.1 > - maplab 2.0rc1 > > Some information: > > - Apache DocumentRoot is in /var/www > > - error messages (Gif and Dbase) in Maplab Information > > - Maplab installed in /var/www/maplab-2.0rc1/ > > The file / tmp / 10e.... exist and can be opened > > About mapscript in phpinfo : > > MapScript Version ($Revision: 1.104.2.1 $ $Date: 2002/06/03 14:19:53 $) > MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF > INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE > > Thanks for your help... > > MARTIN DIAZ Antonio > > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@dmsolutions.ca > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From fx.gamoy@mapxplore.com Wed Oct 30 13:48:10 2002 From: fx.gamoy@mapxplore.com (fx gamoy) Date: Wed, 30 Oct 2002 13:48:10 -0000 Subject: [maplab-users] redraw map and javascript Message-ID: <000a01c2801a$fbef3c60$0201a8c0@mapxplore.com> C'est un message de format MIME en plusieurs parties. ------=_NextPart_000_0007_01C2801A.FBECCB60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hello in mode javascript, the redraw map function render the cool image but IE = doesn't match it. Is it a known problem? problem of cache? thanks FX http://www.mapxplore.com/ ------=_NextPart_000_0007_01C2801A.FBECCB60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hello
in mode javascript, the redraw map = function render=20 the cool image but IE doesn't match it.
Is it a known problem?
problem of cache?
thanks
 
FX
http://www.mapxplore.com/
------=_NextPart_000_0007_01C2801A.FBECCB60-- From spencer@dmsolutions.ca, spencer@dmsolutions.ca Wed Oct 30 19:34:52 2002 From: spencer@dmsolutions.ca, spencer@dmsolutions.ca (Paul Spencer) Date: Wed, 30 Oct 2002 14:34:52 -0500 Subject: [maplab-users] MapLab 2.0 rc3 Release Message-ID: <3DC0345C.2040003@dmsolutions.ca> All, It is my pleasure to announce the release of Release Candidate 3 of the MapLab 2.0 toolkit. This release contains several important bug fixes and some minor improvements to the WMS functionality in MapBrowser. It is intended that this will be the last Release Candidate before a formal release of MapLab 2.0. If there are no significant bugs found, the MapLab 2.0 release will be in about 2 weeks. Getting MapLab 2.0 rc 3 ======================= You can find this new release on the MapLab website at http://www2.dmsolutions.ca/owt/maplab/ Support Information =================== Please do not forget that we have set up a WIKI at: http://www2.dmsolutions.ca/pub_phpwiki/maplab.php This WIKI is for the MapLab community to share information about MapLab, provide solutions to common (or not so common) problems, and perhaps learn something in the process. Bug Fixes and Changes ===================== o modified handling of WMS data to include more information about layers, including styles, abstracts and support for CubeWerx extractable layers extension o modified MapBrowser to take advantage of the new WMS information o performance optimizations in MapEdit and MapBrowser o fixed a bug in MapEdit that stopped it from updating the preview if you changed projections o cross-browser compatibility updates for Mozilla/Netscape 7.0 o updates to the filebrowser to make it more secure and more flexible o removed some dependency on user configuration of php x allow_call_time_pass_reference doesn't matter any more x check for session.save_path to be valid x automatically load required modules if necessary o updates to ROSA o changed how sessions are handled to make MapLab more secure, removed dependency on cookies (cookies are used for sessions by default) o changed file structure to allow for more secure installations, only the htdocs directory needs to be web-accessible now. o other general enhancements and bug fixes. Known Issues ============ Windows Users: you must enable the php_dbase.dll extension in you php.ini file by uncommenting this line in the [extensions] section: extension=php_dbase.dll Well, I think that's it. Cheers and thanks to everyone for their support, Paul -- Paul Spencer Applications and Software Development DM Solutions Group From spencer@dmsolutions.ca Wed Oct 30 21:03:27 2002 From: spencer@dmsolutions.ca (Paul Spencer) Date: Wed, 30 Oct 2002 16:03:27 -0500 Subject: [maplab-users] Mapfile for a correct legend References: <3DBDAB46.4020701@dmsolutions.ca> <001401c28056$d53924f0$b5e118d9@IBM> Message-ID: <3DC0491F.9000107@dmsolutions.ca> maplab handles legends using the legend template capability of mapserver. A GMapFactory application gets a default legend template file, you will need to read up on templates on the umn web site if you want to modify it's behaviour Cheers Paul Achim Spaeter wrote: >>Achim, is this a question about how maplab handles the legend or how >>mapserver legends in general are handled? > > > How does maplab handle legends? > > Can multi class layers come with a correct all color legend? > > thanks in advance > > Achim Spaeter > > -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From kevin@peoplegis.com Wed Oct 30 21:14:35 2002 From: kevin@peoplegis.com (Kevin Flanders) Date: Wed, 30 Oct 2002 16:14:35 -0500 Subject: [maplab-users] zoom to nowhere... Message-ID: I am creating new projects by copying all the file structure from previous projects and just changing the data. My first projects were created with Maplab. I am having a problem with the ZoomToExtent function, which Assefa helped me with on my last project, in which I zoom to nowhere. Apparently, I have not put the bounding coordinates in every place they need to be. I know of the two places in the map file to put these coordinates, but I can't find where else they are needed.....can someone tell me where else I should be editing? Kevin From kevin@peoplegis.com Wed Oct 30 21:15:44 2002 From: kevin@peoplegis.com (Kevin Flanders) Date: Wed, 30 Oct 2002 16:15:44 -0500 Subject: [maplab-users] rosa buttons Message-ID: This may be a more general question than maplab forum, but I need to move the rosa buttons from their default postion to the lower right horizontally. I know that is possible, but am not sure which file to edit....? Kevin From assefa@dmsolutions.ca Wed Oct 30 21:25:10 2002 From: assefa@dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 30 Oct 2002 16:25:10 -0500 Subject: [maplab-users] zoom to nowhere... References: Message-ID: <3DC04E36.547DC55D@dmsolutions.ca> The problem last time if I remeber correctly with the zoom was that the exents defined in the globpref.php were wrong (look for // define the maximum extents). Later, Kevin Flanders wrote: > I am creating new projects by copying all the file structure from previous > projects and just changing the data. My first projects were created with > Maplab. I am having a problem with the ZoomToExtent function, which Assefa > helped me with on my last project, in which I zoom to nowhere. Apparently, > I have not put the bounding coordinates in every place they need to be. > > I know of the two places in the map file to put these coordinates, but I > can't find where else they are needed.....can someone tell me where else I > should be editing? > > Kevin > > _______________________________________________ > Maplab-users mailing list > Maplab-users@dmsolutions.ca > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From spencer@dmsolutions.ca Wed Oct 30 21:30:38 2002 From: spencer@dmsolutions.ca (Paul Spencer) Date: Wed, 30 Oct 2002 16:30:38 -0500 Subject: [maplab-users] rosa buttons References: Message-ID: <3DC04F7E.6040605@dmsolutions.ca> Kevin you should edit the Test.php file (where Test is the name of your application). You are looking for the drawMainMap function on or about line 655. There's a block of code in there that determines if ROSA is enabled and writes out a ROSA applet tag. You can put your modifications here. Cheers, Paul Kevin Flanders wrote: > This may be a more general question than maplab forum, but I need to move > the rosa buttons from their default postion to the lower right horizontally. > I know that is possible, but am not sure which file to edit....? > > > Kevin > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@dmsolutions.ca > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From spencer@dmsolutions.ca Wed Oct 30 22:41:53 2002 From: spencer@dmsolutions.ca (Paul Spencer) Date: Wed, 30 Oct 2002 17:41:53 -0500 Subject: [maplab-users] rosa buttons References: Message-ID: <3DC06031.5000601@dmsolutions.ca> Kevin, I added these two lines: echo "\n"; echo "\n"; right after this line: echo "\n"; and it worked. Perhaps caching is a problem? Paul Kevin Flanders wrote: > Thanks Paul....I found the location you specified...and added the following > two lines: > > > printf ( "\n"); > printf ( "\n"); > > > and my app runs, but the buttons are still vertical on the right side at the > top (default postion)....? > > > Kevin > > > > > > -----Original Message----- > From: maplab-users-admin@dmsolutions.ca > [mailto:maplab-users-admin@dmsolutions.ca]On Behalf Of Paul Spencer > Sent: Wednesday, October 30, 2002 4:31 PM > To: maplab-users > Subject: Re: [maplab-users] rosa buttons > > > Kevin > > you should edit the Test.php file (where Test is the name of your > application). You are looking for the drawMainMap function on or about > line 655. There's a block of code in there that determines if ROSA is > enabled and writes out a ROSA applet tag. You can put your > modifications here. > > Cheers, > > Paul > > Kevin Flanders wrote: > >>This may be a more general question than maplab forum, but I need to move >>the rosa buttons from their default postion to the lower right > > horizontally. > >>I know that is possible, but am not sure which file to edit....? >> >> >>Kevin >> >> >>_______________________________________________ >>Maplab-users mailing list >>Maplab-users@dmsolutions.ca >>http://lists.dmsolutions.ca/mailman/listinfo/maplab-users >> > > > > -- > Paul Spencer > Applications and Software Development > DM Solutions Group Inc. > http://www.dmsolutions.ca > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@dmsolutions.ca > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > > > -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From woodbri@swoodbridge.com Wed Oct 30 23:59:54 2002 From: woodbri@swoodbridge.com (woodbri@swoodbridge.com) Date: Wed, 30 Oct 2002 18:59:54 -0500 Subject: [maplab-users] Mapfile for a correct legend In-Reply-To: <3DC0491F.9000107@dmsolutions.ca> Message-ID: <3DC02C2A.21293.722E6FD@localhost> I have actually made some changes doing this, but you need to be aware the the gmapfactory application depends on the legend to figure out what layers to display so some changes will made layers disappear. I set up a legend_template file that was showed the visible layer like a real legend, instead of all possible layers even if they are not shown because of scale. The problem I ran into is that as you zoom in they did not turn on :(, but I was able to work around this problem by emitting a hidden form field to simulate the check box. The problem I have not been able to resolve it that with my tiger map, I have multiple layers name Roads and Highways that are used to display these layers with differently at different zoom scales, only having the name the same confuses gmapfactory totally! So avoid doing this if you are using maplab. Enhancement Request: I am moving to a position where simpler is better for end-user controls, so I would like to generate Legends that are NOT controls. The user can navigate, but can not turn layers on/off, that is controlled by the mapfile settings on. I would like to have a gmapfactory option to generate this for me. Enhancement Request: 90% of my applications are the same but with different datasets. It would be nice if gmapfactory kept all the file names the same in the output directory so it would be easier to diff two directories to see what is different and to apply patches to a directory to merge my changes into it. So that this email has wandered a little (a lot?) off topic, it just struck a sympathetic cord :) You guys are doing a great job with maplab. I will be checking out RC3 shortly. -Steve Woodbridge On 30 Oct 2002 at 16:03, Paul Spencer wrote: > maplab handles legends using the legend template capability of > mapserver. A GMapFactory application gets a default legend template > file, you will need to read up on templates on the umn web site if you > want to modify it's behaviour > > Cheers > > Paul > > Achim Spaeter wrote: > >>Achim, is this a question about how maplab handles the legend or how > >> mapserver legends in general are handled? > > > > > > How does maplab handle legends? > > > > Can multi class layers come with a correct all color legend? > > > > thanks in advance > > > > Achim Spaeter > > > > > > > -- > Paul Spencer > Applications and Software Development > DM Solutions Group Inc. > http://www.dmsolutions.ca > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@dmsolutions.ca > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > From btolka@geointeractive.biz Thu Oct 31 00:21:03 2002 From: btolka@geointeractive.biz (Bryan Tolka) Date: 30 Oct 2002 19:21:03 -0500 Subject: [maplab-users] Java/HTML and Map-Resize code In-Reply-To: <3DC06031.5000601@dmsolutions.ca> References: <3DC06031.5000601@dmsolutions.ca> Message-ID: <1036023673.1002.5.camel@btcruize> Hello everyone, I have worked out all the bugs to any previous code submitted. I have incorporated the ability to switch between Java and HTML and to resize the map. Basically I just modified the map generated by GMap Factory, which by the way is great tool, thanks again DM Solutions. There are a total of three files to be altered. None of the GMAP factory core code has been modified. I have just added. If anyone is interested, just drop me a line. Bryan Tolka On Wed, 2002-10-30 at 17:41, Paul Spencer wrote: > Kevin, I added these two lines: > > echo "\n"; > echo "\n"; > > right after this line: > > echo "\n"; > > and it worked. > > Perhaps caching is a problem? > > Paul > > Kevin Flanders wrote: > > Thanks Paul....I found the location you specified...and added the following > > two lines: > > > > > > printf ( "\n"); > > printf ( "\n"); > > > > > > and my app runs, but the buttons are still vertical on the right side at the > > top (default postion)....? > > > > > > Kevin > > > > > > > > > > > > -----Original Message----- > > From: maplab-users-admin@dmsolutions.ca > > [mailto:maplab-users-admin@dmsolutions.ca]On Behalf Of Paul Spencer > > Sent: Wednesday, October 30, 2002 4:31 PM > > To: maplab-users > > Subject: Re: [maplab-users] rosa buttons > > > > > > Kevin > > > > you should edit the Test.php file (where Test is the name of your > > application). You are looking for the drawMainMap function on or about > > line 655. There's a block of code in there that determines if ROSA is > > enabled and writes out a ROSA applet tag. You can put your > > modifications here. > > > > Cheers, > > > > Paul > > > > Kevin Flanders wrote: > > > >>This may be a more general question than maplab forum, but I need to move > >>the rosa buttons from their default postion to the lower right > > > > horizontally. > > > >>I know that is possible, but am not sure which file to edit....? > >> > >> > >>Kevin > >> > >> > >>_______________________________________________ > >>Maplab-users mailing list > >>Maplab-users@dmsolutions.ca > >>http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > >> > > > > > > > > -- > > Paul Spencer > > Applications and Software Development > > DM Solutions Group Inc. > > http://www.dmsolutions.ca > > > > > > _______________________________________________ > > Maplab-users mailing list > > Maplab-users@dmsolutions.ca > > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > > > > > > > > > -- > Paul Spencer > Applications and Software Development > DM Solutions Group Inc. > http://www.dmsolutions.ca > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@dmsolutions.ca > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > From morissette@dmsolutions.ca Thu Oct 31 03:19:57 2002 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Wed, 30 Oct 2002 22:19:57 -0500 Subject: [maplab-users] using a symbol PIXMAP References: <001b01c27f4d$6056dd30$0201a8c0@mapxplore.com> Message-ID: <3DC0A15D.2D0EB626@dmsolutions.ca> > fx gamoy wrote: > > i have created a symbol object named etatpub(type PIXMAP name > "z_musse.gif" > Then i have created a layer and a class object. I want to use the > symbol objet i have created but when i define etatpub as symbol, the > program match > Warning: MapServer Error in loadSymbol(): (z_musee.gif):(86) in > d:\downloads\mapserver\maplab\maplab-2.0rc2\gmf_apps\polocs\wrapper\map_session.php > on line 276 > Hard to tell what could have gone wrong. I would suggest that you check the following: - Is the filename spelled properly? In your example you write z_musse.gif but in the error message it says z_musee.gif - Does your PHP MapScript include GIF support? - Is the GIF file located in the same directory as the symbol file? I hope that helps, Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From spencer@dmsolutions.ca Thu Oct 31 21:29:30 2002 From: spencer@dmsolutions.ca (Paul Spencer) Date: Thu, 31 Oct 2002 16:29:30 -0500 Subject: [maplab-users] MapLab 2.0 rc3 bug Message-ID: <3DC1A0BA.4070203@dmsolutions.ca> All, a bug was discovered in the latest release candidate. It affects the file browser if maplab is installed on Windows and makes it essentially unusable in most cases. The link to the dev version (maplab-2.0dev) contains the fix. If you don't want to overwrite your whole install, you can replace the following files: maplab-2.0rc3/htdocs/common/file_browser/Browser.php maplab-2.0rc3/htdocs/common/file_browser/browser_list.phtml Sorry for any problems this may have caused you. Cheers, Paul -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca