From cfuhrman at tfcci.com Thu Jun 1 04:53:52 2000 From: cfuhrman at tfcci.com (Chris Fuhrman) Date: Thu, 1 Jun 2000 07:53:52 -0400 (EDT) Subject: client-side image-maps In-Reply-To: <4.2.0.58.20000531115825.011c06f0@popcorn.llnl.gov> Message-ID: On Wed, 31 May 2000, John Carlson wrote: > What do you think? One of the things I'm worried about is that > I'll have to do some transformations to get from map > coordinates to image coordinates. > On the mapserver demo page, there's a script that will map current earthquakes (http://arachnid.dnr.state.mn.us/cgi-bin/mapquakes.pl). I've found that looking through the code for the script to be very helpful in coding an application that displays electrical outages in real time. Hopefully, this will help. BTW: If anyone wants some nifty screen shots of what I'm doing, feel free to drop me a line. -- Chris Fuhrman | Twenty First Century Communications cfuhrman at tfcci.com | Software Engineer (W) 614-442-1215 x271 | (F) 614-442-5662 | PGP/GPG Public Key Available on Request From steve.lime at dnr.state.mn.us Thu Jun 1 07:33:33 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 01 Jun 2000 09:33:33 -0500 Subject: Mapscript- parse exception Message-ID: Just doing a "use mapscript" would be the first test. I suppose I can write a test suite at some point to test each function. That will take some time. I've no experience with win32 and perl. Perhaps other list members have some ideas. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Grzegorz Myrda" 05/28/00 02:31PM >>> Is there any way to test somehow if my mapscript build is correct ? I install ActivePerl (Windows) and mapscript, but when I try to declare "use mapscript", I'm getting "parse exception". Grzegorz From michalak at hwr.arizona.edu Thu Jun 1 09:23:49 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Thu, 1 Jun 2000 09:23:49 -0700 (MST) Subject: Mapscript- parse exception In-Reply-To: Message-ID: "use mapscript" is working for us now as of today. I hope to find out the fix for this today after meeting with Jim, the guy who fixed it. Yeah, Jim! I'll share the details when I find out. We got it working first in unix, and now it is working in the cgi-bin from a web browser. -zm On Thu, 1 Jun 2000, Stephen Lime wrote: > Just doing a "use mapscript" would be the first test. I suppose I can write a > test suite at some point to test each function. That will take some time. I've no > experience with win32 and perl. Perhaps other list members have some ideas. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Grzegorz Myrda" 05/28/00 02:31PM >>> > Is there any way to test somehow if my mapscript build is correct ? > > I install ActivePerl (Windows) and mapscript, but when I try to declare "use > mapscript", I'm getting "parse exception". > > Grzegorz > > > From lap at cs.wisc.edu Thu Jun 1 09:35:58 2000 From: lap at cs.wisc.edu (Lap Lo) Date: Thu, 1 Jun 2000 11:35:58 -0500 (CDT) Subject: cannot find freetype.h Message-ID: Hi, I have encountered a installation problem. When I type "make" in to install the program, it said gdttf.c:14: freetype.h: No such file or directory make[1]: *** [gdttf.o] Error 1 But I have already installed the freetype package. The following are some of my system information. OS : Red Hat Linux 6.1 Mapserver: 3.3 Webserver: Apache Thank you Bernard From mapadm at polsl.gliwice.pl Thu Jun 1 09:54:30 2000 From: mapadm at polsl.gliwice.pl (Grzegorz Myrda) Date: Thu, 1 Jun 2000 18:54:30 +0200 Subject: Mapscript- parse exception Message-ID: <000401bfcbea$0e1360c0$e9cb9e9d@default> I done exactly that. Only printing "Hello", works ok without "use mapscript" and fail with it. Grzegorz Myrda > -----Oryginalna wiadomo??----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]W imieniu Stephen Lime > Wys?ano: 1 czerwca 2000 16:34 > Do: mapadm at polsl.gliwice.pl > DW: mapserver-users at lists.gis.umn.edu > Temat: Re: Mapscript- parse exception > > > Just doing a "use mapscript" would be the first test. I suppose I > can write a > test suite at some point to test each function. That will take > some time. I've no > experience with win32 and perl. Perhaps other list members have > some ideas. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Grzegorz Myrda" 05/28/00 02:31PM >>> > Is there any way to test somehow if my mapscript build is correct ? > > I install ActivePerl (Windows) and mapscript, but when I try to > declare "use > mapscript", I'm getting "parse exception". > > Grzegorz > > From danmo at videotron.ca Thu Jun 1 10:08:54 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Thu, 01 Jun 2000 13:08:54 -0400 Subject: cannot find freetype.h References: Message-ID: <393698A6.38F7E744@videotron.ca> Lap Lo wrote: > > gdttf.c:14: freetype.h: No such file or directory > make[1]: *** [gdttf.o] Error 1 > > But I have already installed the freetype package. The following are some > of my system information. > > OS : Red Hat Linux 6.1 > Mapserver: 3.3 > Webserver: Apache > You probably have the Freetype lib installed but the headers are not installed by default. You'll have to install the freetype-devel package that came with the RedHat CD: $ mount /cdrom $ rmp -i /cdrom/RedHat/RPMS/freetype-devel-1.2-7.i386.rpm -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From lap at cs.wisc.edu Thu Jun 1 10:34:38 2000 From: lap at cs.wisc.edu (Lap Lo) Date: Thu, 1 Jun 2000 12:34:38 -0500 (CDT) Subject: cannot find freetype.h In-Reply-To: <393698A6.38F7E744@videotron.ca> Message-ID: Daniel, I installed the devel package of the freetype but the "make" process still have trouble finding the freetype.h file. Right now, the freetype.h is located in "/usr/include/freetype/freetype.h". Is there any variable that I can set so that "make" can find thet file? Bernard On Thu, 1 Jun 2000, Daniel Morissette wrote: > Lap Lo wrote: > > > > gdttf.c:14: freetype.h: No such file or directory > > make[1]: *** [gdttf.o] Error 1 > > > > But I have already installed the freetype package. The following are some > > of my system information. > > > > OS : Red Hat Linux 6.1 > > Mapserver: 3.3 > > Webserver: Apache > > > > You probably have the Freetype lib installed but the headers are not > installed by default. You'll have to install the freetype-devel package > that came with the RedHat CD: > > $ mount /cdrom > $ rmp -i /cdrom/RedHat/RPMS/freetype-devel-1.2-7.i386.rpm > > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > > > From steve.lime at dnr.state.mn.us Thu Jun 1 11:22:41 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 01 Jun 2000 13:22:41 -0500 Subject: cannot find freetype.h Message-ID: You can edit the gdft/Makefile and add a -I/usr/include/freetype to the TTF_INC line. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Lap Lo 06/01/00 12:34PM >>> Daniel, I installed the devel package of the freetype but the "make" process still have trouble finding the freetype.h file. Right now, the freetype.h is located in "/usr/include/freetype/freetype.h". Is there any variable that I can set so that "make" can find thet file? Bernard On Thu, 1 Jun 2000, Daniel Morissette wrote: > Lap Lo wrote: > > > > gdttf.c:14: freetype.h: No such file or directory > > make[1]: *** [gdttf.o] Error 1 > > > > But I have already installed the freetype package. The following are some > > of my system information. > > > > OS : Red Hat Linux 6.1 > > Mapserver: 3.3 > > Webserver: Apache > > > > You probably have the Freetype lib installed but the headers are not > installed by default. You'll have to install the freetype-devel package > that came with the RedHat CD: > > $ mount /cdrom > $ rmp -i /cdrom/RedHat/RPMS/freetype-devel-1.2-7.i386.rpm > > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > > > From seano at metavera.com Thu Jun 1 12:23:17 2000 From: seano at metavera.com (Sean O'Hagan) Date: Thu, 1 Jun 2000 15:23:17 -0400 Subject: Map file: EXTENT Message-ID: <002501bfcbfe$d6e7f240$0882a8c0@karkalis.com> Just starting to work with MapServer. Successfully compiled the source in NT thanks to all the existing helpful postings. I've got a question about the Map file structure, specifically the EXTENT line. The sample file shows numbers such as 481093.000000 4969319.036682 502271.000000 4997508.3073184; are these values in meters? And if so meters from what? Can someone give me a clue in this? Thanks in advance, Sean O'Hagan. Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com From lap at cs.wisc.edu Thu Jun 1 13:14:34 2000 From: lap at cs.wisc.edu (Lap Lo) Date: Thu, 1 Jun 2000 15:14:34 -0500 (CDT) Subject: cannot find freetype.h In-Reply-To: Message-ID: Steve, I still have trouble to make it work. I put TTF_INC=-I/usr/include/freetype in the Makefile of the ms_3.3.010/gdft dir and it didn't work. I also tried to put the same line in the ms_3.3.010/Makefile, it didn't work either. This is the messages that I got, . . . gdttf.c:14: freetype.h: No such file or directory make[1]: *** [gdttf.o] Error 1 . . . . maplabel.c:13: freetype.h: No such file or directory make: *** [maplabel.o] Error 1 Thank you Bernard On Thu, 1 Jun 2000, Stephen Lime wrote: > You can edit the gdft/Makefile and add a -I/usr/include/freetype to > the TTF_INC line. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Lap Lo 06/01/00 12:34PM >>> > Daniel, > > I installed the devel package of the freetype but the "make" process still > have trouble finding the freetype.h file. Right now, the freetype.h is > located in "/usr/include/freetype/freetype.h". Is there any variable that > I can set so that "make" can find thet file? > > Bernard > > > > > On Thu, 1 Jun 2000, Daniel Morissette wrote: > > > Lap Lo wrote: > > > > > > gdttf.c:14: freetype.h: No such file or directory > > > make[1]: *** [gdttf.o] Error 1 > > > > > > But I have already installed the freetype package. The following are some > > > of my system information. > > > > > > OS : Red Hat Linux 6.1 > > > Mapserver: 3.3 > > > Webserver: Apache > > > > > > > You probably have the Freetype lib installed but the headers are not > > installed by default. You'll have to install the freetype-devel package > > that came with the RedHat CD: > > > > $ mount /cdrom > > $ rmp -i /cdrom/RedHat/RPMS/freetype-devel-1.2-7.i386.rpm > > > > -- > > ------------------------------------------------------------ > > Daniel Morissette danmo at videotron.ca > > http://pages.infinit.net/danmo/ > > ------------------------------------------------------------ > > Don't put for tomorrow what you can do today, because if > > you enjoy it today you can do it again tomorrow. > > > > > > > > > > > From mochaexpress at yahoo.com Thu Jun 1 13:40:13 2000 From: mochaexpress at yahoo.com (mocha) Date: Thu, 01 Jun 2000 15:40:13 -0500 Subject: cannot find freetype.h In-Reply-To: References: Message-ID: <4.3.1.2.20000601153903.00b8a880@pop.mail.yahoo.com> At 03:14 PM 6/1/00 -0500, Lap Lo wrote: >Steve, > >I still have trouble to make it work. > >I put TTF_INC=-I/usr/include/freetype > >in the Makefile of the ms_3.3.010/gdft dir and it didn't work. > >I also tried to put the same line in the ms_3.3.010/Makefile, it didn't >work either. This is the messages that I got, > >.. >.. >.. >gdttf.c:14: freetype.h: No such file or directory >make[1]: *** [gdttf.o] Error 1 >.. try find / -name "freetype.h" on your shell command line and see what shows up From tom at minnesota.com Thu Jun 1 14:03:01 2000 From: tom at minnesota.com (Thomas T. Thai) Date: Thu, 1 Jun 2000 16:03:01 -0500 (CDT) Subject: diff for configure.in Message-ID: attached is the diff for configure.in to properly include runtime library paths for dynamic libraries. i've tested this out on NetBSD and should work for other *BSD ELF systems. -------------- next part -------------- --- configure.in Thu Jun 1 15:58:24 2000 +++ configure.in.mod Thu Jun 1 14:31:54 2000 @@ -70,7 +70,7 @@ test -f $GD_DIR/libgd.a && GD_LIBDIR="$GD_DIR" if test -n "$GD_INCLUDE" -a -n "$GD_LIBDIR" ; then GD_INC=-I$GD_INCLUDE - GD_LIB="-L$GD_LIBDIR -lgd" + GD_LIB="-Wl,-R$GD_LIBDIR -L$GD_LIBDIR -lgd" else AC_MSG_ERROR("Could not find gd.h or libgd.a in $GD_DIR. Make sure gd is compiled before calling configure.") fi @@ -84,7 +84,7 @@ else dnl - dnl --width-gd was not given... look in system libs, and if not found + dnl --with-gd was not given... look in system libs, and if not found dnl then use the local copy of gd 1.2 dnl AC_CHECK_LIB(gd, gdImageGif, GD_DEF=-DUSE_GD_1_2,,) @@ -100,7 +100,7 @@ MAKE_GD_CLEAN=gd_clean AC_EXPAND_PATH(gd-1.2, GD_DIR) GD_INC=-I$GD_DIR - GD_LIB="-L$GD_DIR -lgd" + GD_LIB="-Wl,-R$GD_DIR -L$GD_DIR -lgd" test -f $GD_DIR/Makefile.in && GD_MAKEFILE="$GD_DIR/Makefile" AC_MSG_RESULT([ using GD ($GD_DEF) from $GD_DIR.]) fi @@ -146,7 +146,7 @@ if test -n "$TIFF_INCLUDE" -a -n "$TIFF_LIBDIR" ; then TIFF_INC=-I$TIFF_INCLUDE - TIFF_LIB="-L$TIFF_LIBDIR -ltiff" + TIFF_LIB="-Wl,-R$TIFF_LIBDIR -L$TIFF_LIBDIR -ltiff -lz" else AC_MSG_ERROR("Could not find tiffio.h or libtiff.a in $TIFF_DIR.") fi @@ -198,7 +198,7 @@ test -f $JPEG_DIR/libjpeg.a && JPEG_LIBDIR="$JPEG_DIR" if test -n "$JPEG_INCLUDE" -a -n "$JPEG_LIBDIR" ; then JPEG_INC=-I$JPEG_INCLUDE - JPEG_LIB="-L$JPEG_LIBDIR -ljpeg" + JPEG_LIB="-Wl,-R$JPEG_LIBDIR -L$JPEG_LIBDIR -ljpeg" else AC_MSG_ERROR("Could not find jpeglib.h.h or libjpeg.a in $JPEG_DIR.") fi @@ -277,7 +277,7 @@ test -f $TTF_DIR/libttf.so && TTF_LIBDIR="$TTF_DIR" if test -n "$TTF_INCLUDE" -a -n "$TTF_LIBDIR" ; then TTF_INC=-I$TTF_INCLUDE - TTF_LIB="-L$TTF_LIBDIR -lttf" + TTF_LIB="-Wl,-R$TTF_LIBDIR -L$TTF_LIBDIR -lttf" else AC_MSG_ERROR("Could not find freetype.h or libttf.so in $TTF_DIR.") fi @@ -304,7 +304,7 @@ dnl We need to link with the GDFT directory as well dnl AC_EXPAND_PATH(gdft, GDFT_DIR) - TTF_LIB="-L$GDFT_DIR -lgdft $TTF_LIB" + TTF_LIB="-Wl,-R$GDFT_DIR -L$GDFT_DIR -lgdft $TTF_LIB" TTF_INC="-I$GDFT_DIR $TTF_INC" MAKE_GDFT="gdft" MAKE_GDFT_CLEAN="gdft_clean" @@ -353,7 +353,7 @@ test -f $PROJ_DIR/libproj.a && PROJ_LIBDIR="$PROJ_DIR" if test -n "$PROJ_INCLUDE" -a -n "$PROJ_LIBDIR" ; then PROJ_INC=-I$PROJ_INCLUDE - PROJ_LIB="-L$PROJ_LIBDIR -lproj" + PROJ_LIB="-Wl,-R$PROJ_LIBDIR -L$PROJ_LIBDIR -lproj" else AC_MSG_ERROR("Could not find projects.h or libproj.a in $PROJ_DIR.") fi @@ -381,7 +381,7 @@ MS_DIR="`pwd`" MS_INC="-I$MS_DIR" -MS_LIB="-L$MS_DIR -lmap" +MS_LIB="-Wl,-R$MS_DIR -L$MS_DIR -lmap" AC_SUBST(MS_INC, $MS_INC) AC_SUBST(MS_LIB, $MS_LIB) From mochaexpress at yahoo.com Thu Jun 1 23:54:17 2000 From: mochaexpress at yahoo.com (mocha) Date: Fri, 02 Jun 2000 01:54:17 -0500 Subject: core dump - drawTIFF Message-ID: <4.3.1.2.20000602015346.00b92260@pop.mail.yahoo.com> Core was generated by `php'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/libexec/ld.elf_so...done. Reading symbols from /usr/pkg/lib/mysql/libmysqlclient.so.6...done. Reading symbols from /usr/pkg/lib/libgdbm.so.1...done. Reading symbols from /usr/lib/libm.so.0...done. Reading symbols from /usr/lib/libcrypt.so.0...done. Reading symbols from /usr/lib/libresolv.so.1...done. Reading symbols from /usr/lib/libc.so.12...done. Reading symbols from /usr/pkg/lib/php3/php_mapscript.so...done. Reading symbols from /usr/pkg/lib/libttf.so.3...done. Reading symbols from /usr/pkg/lib/libjpeg.so.62...done. Reading symbols from /usr/lib/libz.so.0...done. Reading symbols from /usr/pkg/lib/libtiff.so.3...done. #0 0x1609770bc in drawTIFF (map=0x160f69970, layer=0xa6, img=0x1202ea000, filename=0x120312000 "") at mapraster.c:359 ---Type to continue, or q to quit--- 359 vv=buf[xi+boffset]; From berend.veldkamp at aris.nl Fri Jun 2 00:31:35 2000 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Fri, 02 Jun 2000 09:31:35 +0200 Subject: Map file: EXTENT References: <002501bfcbfe$d6e7f240$0882a8c0@karkalis.com> Message-ID: <393762D7.693287F8@aris.nl> Well, that depends on the units of your shapefile. If those are meters, then the extent will also be in meters. IOW, they are the same. HTH, Berend Sean O'Hagan wrote: > Just starting to work with MapServer. Successfully compiled the source in NT > thanks to all the existing helpful postings. > > I've got a question about the Map file structure, specifically the EXTENT > line. The sample file shows numbers such as 481093.000000 4969319.036682 > 502271.000000 4997508.3073184; are these values in meters? And if so meters > from what? > > Can someone give me a clue in this? Thanks in advance, -- ______________________________________________ ARIS - Hooghiemstraplein 126 - 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl ______________________________________________ From pnaciona at gis.umn.edu Fri Jun 2 10:58:29 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Fri, 2 Jun 2000 12:58:29 -0500 Subject: MapServ and Proj.4 on NT Message-ID: <006d01bfccbc$28a4f340$9a496580@gis.umn.edu> This may be a little off-topic, but has anyone compiled MapServer with Proj4 support on NT? I'm not getting much success compiling Proj4 on VC++ and NT. Thanks in advance. Perry Nacionales pnaciona at gis.umn.edu From assefa at dmsolutions.on.ca Fri Jun 2 11:34:14 2000 From: assefa at dmsolutions.on.ca (Assefa Yewondwossen) Date: Fri, 02 Jun 2000 14:34:14 -0400 Subject: Fwd: MapServ and Proj.4 on NT References: <20000602181718.10955.qmail@web1302.mail.yahoo.com> Message-ID: <3937FE26.74BBC0DA@dmsolutions.on.ca> Hi I have compiled mapserver here with Proj4 on NT. As I remember there was one problem doing that : there was a conflict on the PVALUE defined in the proj4 files and in winreg.h. To solve this I had to do simple modifications in 2 files in the proj/src directory: the files are projects.j and pj_param.c and the modification is I replaced PVALUE by PARAMVALUE . - projects.h (2 occurences) - pj_params.c (2 occurences). I did compile with these changes with no further problems. Hope it helps, Later, > ------------------------------------------------------------------------ > > Subject: MapServ and Proj.4 on NT > Date: Fri, 2 Jun 2000 12:58:29 -0500 > From: "Pericles S. Nacionales" > To: > > This may be a little off-topic, but has anyone compiled MapServer with Proj4 > support on NT? I'm not getting much success compiling Proj4 on VC++ and NT. > > Thanks in advance. > Perry Nacionales > pnaciona at gis.umn.edu From bfraser at geoanalytic.com Fri Jun 2 11:37:59 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 2 Jun 2000 12:37:59 -0600 Subject: MapServ and Proj.4 on NT References: <006d01bfccbc$28a4f340$9a496580@gis.umn.edu> Message-ID: <014601bfccc1$adb555c0$390002c0@servo> I've done it (although my version of MapServer is a little old, 3.3.006). If you add any Windows include files in the source, you need to do the following: ============================================ Changes to Proj4 source In PARAM.C and PROJECTS.H, change all occurrences of PVALUE (there are four of them) to something like PJVALUE, since Windows already uses PVALUE. Also change UV to ptUV. These changes are not necesary if you do not include any Window-specific include files (windows.h, etc). ============================================ Let me know of any specific problems... Brent Fraser bfraser at geoanalytic.com ----- Original Message ----- From: "Pericles S. Nacionales" To: Sent: Friday, June 02, 2000 11:58 AM Subject: MapServ and Proj.4 on NT > This may be a little off-topic, but has anyone compiled MapServer with Proj4 > support on NT? I'm not getting much success compiling Proj4 on VC++ and NT. > > Thanks in advance. > Perry Nacionales > pnaciona at gis.umn.edu > From seano at metavera.com Fri Jun 2 12:49:24 2000 From: seano at metavera.com (Sean O'Hagan) Date: Fri, 2 Jun 2000 15:49:24 -0400 Subject: geocoding utility Message-ID: <006f01bfcccb$a77f2be0$0882a8c0@karkalis.com> Hello list, Can anyone suggest a good open source geocoding tool? Thanks in advance. Sean O'Hagan. Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com From steve.lime at dnr.state.mn.us Fri Jun 2 12:56:34 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 02 Jun 2000 14:56:34 -0500 Subject: MapServ and Proj.4 on NT Message-ID: Where are you grabbing Proj from? We made changes to mapserver and proj to facilitate a clean compile on NT. You must grab proj from www.remotesensing.org. s. >>> "Pericles S. Nacionales" 06/02/00 12:58PM >>> This may be a little off-topic, but has anyone compiled MapServer with Proj4 support on NT? I'm not getting much success compiling Proj4 on VC++ and NT. Thanks in advance. Perry Nacionales pnaciona at gis.umn.edu From seano at metavera.com Fri Jun 2 14:17:54 2000 From: seano at metavera.com (Sean O'Hagan) Date: Fri, 2 Jun 2000 17:17:54 -0400 Subject: Perl MapScript and NT Message-ID: <007501bfccd8$041f5df0$0882a8c0@karkalis.com> Hello list, I just read a posting that read: "As far as I know nobody has compiled MapScript on NT. I don't suspect many have tried." Just thought I'd add our name to the (hopefully) growing list of people who have done this for the Perl implementation. Everything seems okay so far... Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com From imap at chesapeake.net Fri Jun 2 14:32:24 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Fri, 02 Jun 2000 17:32:24 -0400 Subject: Perl MapScript and NT References: <007501bfccd8$041f5df0$0882a8c0@karkalis.com> Message-ID: <393827E8.BD6606A0@chesapeake.net> Sean, Are you saying you have mapserver compiled on NT with mapscript working? I dont think that there has been an any problems compiling on NT, but I have not heard of anyone successfully getting mapscript to work. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. 410.257.3187 Sean O'Hagan wrote: > > Hello list, > > I just read a posting that read: "As far as I know nobody has compiled > MapScript on NT. I don't suspect many have tried." Just thought I'd add our > name to the (hopefully) growing list of people who have done this for the > Perl implementation. Everything seems okay so far... > > Metavera Solutions, Inc. > 192 Spadina Ave., Suite 405 > Toronto, ON > M5T 2C2 > Tel: (416) 504-8351 > Fax: (416) 364-2636 > Email: seano at metavera.com From danmo at videotron.ca Fri Jun 2 16:00:48 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Fri, 02 Jun 2000 19:00:48 -0400 Subject: diff for configure.in References: Message-ID: <39383CA0.6D517326@videotron.ca> "Thomas T. Thai" wrote: > > attached is the diff for configure.in to properly include runtime library > paths for dynamic libraries. i've tested this out on NetBSD and should > work for other *BSD ELF systems. > The diffs have been included in the master copy of the configure script on the CVS server, but the runtime library path have been made optional to avoid causing side-effects on other platforms where they're not required. *BSD users (and others with problems with runtime libpath) should use the new "--enable-runpath" configure option to enable the "-Wl,-R" flags that will make the *BSD linker happy. This should hopefully be part of one of the next nightly builds on the web site. -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From trevor at banisterconsulting.com Sat Jun 3 09:21:28 2000 From: trevor at banisterconsulting.com (Trevor Banister) Date: Sat, 3 Jun 2000 10:21:28 -0600 Subject: ZIP+4 Vectors? Message-ID: <51BFCC79A3CCD311A2DD0800362C8E0301F961@banister4.conen.net> A little off topic, but in the past posters have alluded to the availability of ZIP+4 vector and/or centroid data for a price. Anyone have a source that is in shape file format, or something that could be converted to shape (E00, MIF, Atlas, etc.) Thanks, Trevor From imap at chesapeake.net Sat Jun 3 09:57:26 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Sat, 03 Jun 2000 12:57:26 -0400 Subject: ZIP+4 Vectors? References: <51BFCC79A3CCD311A2DD0800362C8E0301F961@banister4.conen.net> Message-ID: <393938F6.5E2ABA6@chesapeake.net> I have a ZIP+4 centroid file from GDT cost $10k (shapefile format) Unfortunately, this price is NOT a constant. GDT changes their price structure depending on who they are talking to, which IMHO is a crappy way to do business. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. Trevor Banister wrote: > > A little off topic, but in the past posters have alluded to the availability > of ZIP+4 vector and/or centroid data for a price. Anyone have a source that > is in shape file format, or something that could be converted to shape (E00, > MIF, Atlas, etc.) > > Thanks, > > Trevor From imap at chesapeake.net Sat Jun 3 10:47:54 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Sat, 03 Jun 2000 13:47:54 -0400 Subject: mapserver on PDA? References: <51BFCC79A3CCD311A2DD0800362C8E0301F961@banister4.conen.net> Message-ID: <393944CA.EBB3E13F@chesapeake.net> Has anyone on the list attempted to compile mapserver on a PDA or Windows CE? Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. From mochaexpress at yahoo.com Sat Jun 3 11:07:19 2000 From: mochaexpress at yahoo.com (mocha) Date: Sat, 03 Jun 2000 13:07:19 -0500 Subject: ZIP+4 Vectors? In-Reply-To: <51BFCC79A3CCD311A2DD0800362C8E0301F961@banister4.conen.net > Message-ID: <4.3.1.2.20000603124111.00bb6100@pop.mail.yahoo.com> At 10:21 AM 6/3/00 -0600, Trevor Banister wrote: >A little off topic, but in the past posters have alluded to the availability >of ZIP+4 vector and/or centroid data for a price. Anyone have a source that >is in shape file format, or something that could be converted to shape (E00, >MIF, Atlas, etc.) you can extract them from Tiger/Line files. these files are public domain. you can get them from your local library or ftp it from here. ftp://ftp.linuxvc.com/US-map/ From ehs at cs.wisc.edu Sun Jun 4 16:11:35 2000 From: ehs at cs.wisc.edu (Eric Schneider) Date: Sun, 4 Jun 2000 18:11:35 -0500 (CDT) Subject: Problem with MS_3.3 Demo Message-ID: Hi, I'm having problems getting the 3.3 demo load properly. I've unpacked the demo files and I changed the cgi pathes, imagepath, and imageurl pathes to match my server, but I still received the following error when trying to initialize MS from demo_int.html: msLoadSymbolFile(): Unknown identifier. ( ):(0) I don't know what part of the map file is generating this error. Does anyone have any clues? Also, I'm having difficulty understanding Web Object's imagepath and imageurl properties. Specifically, in the documentation it says that the web server must have a user configured with write permission for the imagepath directory. Right now I'm using Apache and I have nobody as the user. Will any security problems occur if I introduce a user with write permissions? Thanks in advance, -Eric From mochaexpress at yahoo.com Sun Jun 4 20:41:21 2000 From: mochaexpress at yahoo.com (mocha) Date: Sun, 04 Jun 2000 22:41:21 -0500 Subject: Problem with MS_3.3 Demo In-Reply-To: Message-ID: <4.3.1.2.20000604224014.00aa76c0@pop.mail.yahoo.com> At 06:11 PM 6/4/00 -0500, Eric Schneider wrote: >Hi, > > I'm having problems getting the 3.3 demo load properly. I've unpacked >the demo files and I changed the cgi pathes, imagepath, and imageurl >pathes to match my server, but I still received the following error when >trying to initialize MS from demo_int.html: > >msLoadSymbolFile(): Unknown identifier. ( ):(0) you probably have some ^M or blanks at the end of the lines. more likely ^M. this happened to me when i unzip a zip file that was zipped originally from a winbox From rgu at ems.muenchen.de Mon Jun 5 07:18:32 2000 From: rgu at ems.muenchen.de (Markus Spring) Date: Mon, 05 Jun 2000 16:18:32 +0200 Subject: Mapscript in mod_perl: frequent errors in mapObj->new Message-ID: <393BB6B8.7D09A9A1@ems.muenchen.de> Hello list, I am trying to use Mapscript in an Apache::mod_perl content handler. The body of the handler I derived from a simple commandline-script which creates images without problem. package Apache::perlmapserv; use strict; use mapscript; use Apache::Constants qw(:common DONE); sub handler { my $r = shift; # request-Object my @args = $r->args; make_map($r, \@args); return OK; } sub make_map{ my ($r, $r_args) = @_; my $mapfile = extract_args($r_args, 'map'); # get name of mapfile $r->exit(DONE) unless -r $mapfile; my $map = mapObj->new($mapfile) or $r->exit(DONE); ^---- when it crashes, then in this line! The script runs fine two or three times, then it complains that it fails in the line of the "new mapObj" request. After having used the cgi-mapserv for a time I can again use the mod_perl version for a limited number of calls. I am running the programs on a linux SuSE 6.4 system. Kernel 2.2.14, Perl 5.005_03. For my knowledge, this points to a problem with a shared library. I would be very glad, if someone could point me out what's happening there. Kind regards - markus From steve.lime at dnr.state.mn.us Mon Jun 5 08:29:16 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 05 Jun 2000 10:29:16 -0500 Subject: mapserver on PDA? Message-ID: You actually talking about running a webserver and mapserver on the pda or developing apps with pda's in mind? Big difference... s. >>> 06/03/00 12:47PM >>> Has anyone on the list attempted to compile mapserver on a PDA or Windows CE? Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. From aborruso at spaziogis.it Mon Jun 5 09:16:10 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Mon, 5 Jun 2000 18:16:10 +0200 Subject: Unable to access file??? Message-ID: Dear mapserver users, I have begun to use mapserver few days ago. I have installed it on windows Nt machine and It seems to work, but I'm not be able to view a very simple map. I have begun to write a simple map file and then I have put this string in my web browser (IE 5): http://easyms/cgi-bin/mapserv.exe?map=/ms_demo/prova.map&mode=map. The result is: msLoadMap(): Unable to access file. (/prova.map) I have used the Path, relative to the CGI directory, but I have no result. This is my map file: NAME EX1 EXTENT 74000 4775000 798000 5500000 SIZE 300 300 SHAPEPATH "/ms_demo/data" LAYER NAME "lakes" DATA lakes STATUS DEFAULT TYPE POLYGON CLASS COLOR 250 175 25 END END END Please help me. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From michalak at hwr.arizona.edu Mon Jun 5 09:38:07 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Mon, 5 Jun 2000 09:38:07 -0700 (MST) Subject: Unable to access file??? In-Reply-To: Message-ID: I've also had some problems with accessing the map file. I have it working now with a complete path, rather than relative from the cgi-bin. Also, make sure your file permissions are set correctly. -zm On Mon, 5 Jun 2000 aborruso at spaziogis.it wrote: > Dear mapserver users, > I have begun to use mapserver few days ago. I have installed it on windows > Nt machine and It seems to work, but I'm not be able to view a very simple > map. I have begun to write a simple map file and then I have put this > string in my web browser (IE 5): http://easyms/cgi-bin/mapserv.exe?map=/ms_demo/prova.map&mode=map. > The result is: msLoadMap(): Unable to access file. (/prova.map) > I have used the Path, relative to the CGI directory, but I have no > result. > This is my map file: > > NAME EX1 > EXTENT 74000 4775000 798000 5500000 > SIZE 300 300 > SHAPEPATH "/ms_demo/data" > LAYER > NAME "lakes" > DATA lakes > STATUS DEFAULT > TYPE POLYGON > CLASS > COLOR 250 175 25 > END > END > END > > Please help me. > Thank you From pnaciona at gis.umn.edu Mon Jun 5 10:01:16 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Mon, 5 Jun 2000 12:01:16 -0500 Subject: Unable to access file??? In-Reply-To: Message-ID: You need to use the DOS/Windows convention in specifying your map file. That is, use the full drive letter and path to the map file (i.e., http://easyms/cgi-bin/mapserv.exe?map="c:\ms_demo\demo.map"). MapServer doesn't know the virtual paths you provide to the web server (it is not the web server). Also, mind the slashes. :) This is one of the differences you'll run into in implementing MapServer on NT. In fact, on your map file, you might have to change your SHAPEPATH to something like: SHAPEPATH "C:\MS_DEMO\DATA" Hope that helps. (and don't forget to enclose your paths in quotes) Perry Nacionales pnaciona at gis.umn.edu > -----Original Message----- > From: owner-mapserver-users at lists [mailto:owner-mapserver-users at lists]On > Behalf Of Zolla Michalak > Sent: Monday, June 05, 2000 11:38 AM > To: aborruso at spaziogis.it > Cc: mapserver-users at lists > Subject: Re: Unable to access file??? > > > I've also had some problems with accessing the map file. I have it working > now with a complete path, rather than relative from the cgi-bin. Also, > make sure your file permissions are set correctly. > > -zm > > On Mon, 5 Jun 2000 aborruso at spaziogis.it wrote: > > > Dear mapserver users, > > I have begun to use mapserver few days ago. I have installed it > on windows > > Nt machine and It seems to work, but I'm not be able to view a > very simple > > map. I have begun to write a simple map file and then I have put this > > string in my web browser (IE 5): > http://easyms/cgi-bin/mapserv.exe?map=/ms_demo/prova.map&mode=map. > > The result is: msLoadMap(): Unable to access file. (/prova.map) > > I have used the Path, relative to the CGI directory, > but I have no > > result. > > This is my map file: > > > > NAME EX1 > > EXTENT 74000 4775000 798000 5500000 > > SIZE 300 300 > > SHAPEPATH "/ms_demo/data" > > LAYER > > NAME "lakes" > > DATA lakes > > STATUS DEFAULT > > TYPE POLYGON > > CLASS > > COLOR 250 175 25 > > END > > END > > END > > > > Please help me. > > Thank you > From steve.lime at dnr.state.mn.us Mon Jun 5 10:09:02 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 05 Jun 2000 12:09:02 -0500 Subject: Unable to access file??? Message-ID: Some of the other users with more experience on NT can confirm or deny this but you may need to specify a drive letter too. NT seems very particular about paths. s. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 06/05/00 11:16AM >>> Dear mapserver users, I have begun to use mapserver few days ago. I have installed it on windows Nt machine and It seems to work, but I'm not be able to view a very simple map. I have begun to write a simple map file and then I have put this string in my web browser (IE 5): http://easyms/cgi-bin/mapserv.exe?map=/ms_demo/prova.map&mode=map. The result is: msLoadMap(): Unable to access file. (/prova.map) I have used the Path, relative to the CGI directory, but I have no result. This is my map file: NAME EX1 EXTENT 74000 4775000 798000 5500000 SIZE 300 300 SHAPEPATH "/ms_demo/data" LAYER NAME "lakes" DATA lakes STATUS DEFAULT TYPE POLYGON CLASS COLOR 250 175 25 END END END Please help me. Thank you From steve.lime at dnr.state.mn.us Mon Jun 5 10:14:15 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 05 Jun 2000 12:14:15 -0500 Subject: Mapscript in mod_perl: frequent errors in mapObj->new Message-ID: Are you getting any additional information about the crash, perl or mapscript messages? There are undoubtedly a few memory leaks but it should run more than just a couple of times. I'm using Apache::PerlRun module with mapscript queries with no problem but haven't screwed around much with images. s. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> rgu at ems.muenchen.de 06/05/00 09:18AM >>> Hello list, I am trying to use Mapscript in an Apache::mod_perl content handler. The body of the handler I derived from a simple commandline-script which creates images without problem. package Apache::perlmapserv; use strict; use mapscript; use Apache::Constants qw(:common DONE); sub handler { my $r = shift; # request-Object my @args = $r->args; make_map($r, \@args); return OK; } sub make_map{ my ($r, $r_args) = @_; my $mapfile = extract_args($r_args, 'map'); # get name of mapfile $r->exit(DONE) unless -r $mapfile; my $map = mapObj->new($mapfile) or $r->exit(DONE); ^---- when it crashes, then in this line! The script runs fine two or three times, then it complains that it fails in the line of the "new mapObj" request. After having used the cgi-mapserv for a time I can again use the mod_perl version for a limited number of calls. I am running the programs on a linux SuSE 6.4 system. Kernel 2.2.14, Perl 5.005_03. For my knowledge, this points to a problem with a shared library. I would be very glad, if someone could point me out what's happening there. Kind regards - markus From michalak at hwr.arizona.edu Mon Jun 5 14:40:40 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Mon, 5 Jun 2000 14:40:40 -0700 (MST) Subject: drawLegend() and drawScalebar() Message-ID: I'm getting a segmentation fault for both drawLegend() and drawScalebar(). My code is: $legendImg = $map->drawLegend(); $scalebarImg = $map->drawScalebar(); Should these methods work on thier own, or do I need to call something else first like drawLabelCache(image)? ($map is a working mapObj) -zm From seano at metavera.com Mon Jun 5 15:38:11 2000 From: seano at metavera.com (Sean O'Hagan) Date: Mon, 5 Jun 2000 18:38:11 -0400 Subject: DBF file indexer? Message-ID: <003201bfcf3e$ba7bc9e0$0882a8c0@karkalis.com> Hello list, Has anybody found a good utility for indexing those large DBF files that store the attributes for shape files? Is there such a beast? TIA, Sean O'Hagan Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com From trevor at banisterconsulting.com Mon Jun 5 16:01:00 2000 From: trevor at banisterconsulting.com (Trevor Banister) Date: Mon, 5 Jun 2000 17:01:00 -0600 Subject: DBF file indexer? Message-ID: <51BFCC79A3CCD311A2DD0800362C8E0301F97D@banister4.conen.net> I believe sortshp.c is included in the distribution, if you want to sort a database on one of it's attributes. This is handy if you want to restrict output to say, the largest 50 cities in the view. shptree.c makes a quad tree spatial index that speeds map generation. I think these are the only index schemes that mapserver supports. Trevor Banister Banister Consulting and Online Services Trevor at BanisterConsulting.com -----Original Message----- From: Sean O'Hagan [mailto:seano at metavera.com] Sent: Monday, June 05, 2000 4:38 PM To: MapServer List Subject: DBF file indexer? Hello list, Has anybody found a good utility for indexing those large DBF files that store the attributes for shape files? Is there such a beast? TIA, Sean O'Hagan Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com From trevor at banisterconsulting.com Mon Jun 5 16:11:19 2000 From: trevor at banisterconsulting.com (Trevor Banister) Date: Mon, 5 Jun 2000 17:11:19 -0600 Subject: Unable to access file??? Message-ID: <51BFCC79A3CCD311A2DD0800362C8E0301F97E@banister4.conen.net> Unless you compile under the Cygwin environment, you do need drive letters and back slashes. Trevor -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Monday, June 05, 2000 11:09 AM To: mapserver-users at lists.gis.umn.edu; aborruso at spaziogis.it Subject: Re: Unable to access file??? Some of the other users with more experience on NT can confirm or deny this but you may need to specify a drive letter too. NT seems very particular about paths. s. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 06/05/00 11:16AM >>> Dear mapserver users, I have begun to use mapserver few days ago. I have installed it on windows Nt machine and It seems to work, but I'm not be able to view a very simple map. I have begun to write a simple map file and then I have put this string in my web browser (IE 5): http://easyms/cgi-bin/mapserv.exe?map=/ms_demo/prova.map&mode=map. The result is: msLoadMap(): Unable to access file. (/prova.map) I have used the Path, relative to the CGI directory, but I have no result. This is my map file: NAME EX1 EXTENT 74000 4775000 798000 5500000 SIZE 300 300 SHAPEPATH "/ms_demo/data" LAYER NAME "lakes" DATA lakes STATUS DEFAULT TYPE POLYGON CLASS COLOR 250 175 25 END END END Please help me. Thank you From danmo at videotron.ca Mon Jun 5 16:18:48 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Mon, 05 Jun 2000 19:18:48 -0400 Subject: DBF file indexer? References: <003201bfcf3e$ba7bc9e0$0882a8c0@karkalis.com> Message-ID: <393C3558.1BA16726@videotron.ca> Sean O'Hagan wrote: > > Hello list, > > Has anybody found a good utility for indexing those large DBF files that > store the attributes for shape files? Is there such a beast? > There are a couple of Open source libs that will read/write DBF files, but I have never found one that supports reading/writing .NTX (or .NDX?) files... I would be interested in hearing about it as well if one exists. I know that there is some format information at: http://www.e-bachmann.dk/docs/xbase.htm and there may be some in other places I guess. If I had had the time I would have already implemented a lib to read/write .NTX (or .NDX) files since I could use that myself... (or maybe I should take the time and do it?!?) However, here is another option if you want to do some coding... it's a hack, but it would work! MapInfo stores its table information in a format that is similar to .DBF files, and they store their indexes in .IND files. I have written some C++ code to read/write MapInfo .IND indexes as part of my lib to read/write MapInfo TAB datasets. One could extract the code to handle MapInfo's .IND files and use that to index his .DBF files. Please keep us posted on whatever you find. -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jedgar at fxp.org Mon Jun 5 17:26:17 2000 From: jedgar at fxp.org (Chris D. Faulhaber) Date: Mon, 5 Jun 2000 20:26:17 -0400 (EDT) Subject: DBF file indexer? In-Reply-To: <393C3558.1BA16726@videotron.ca> Message-ID: On Mon, 5 Jun 2000, Daniel Morissette wrote: > Sean O'Hagan wrote: > > > > Hello list, > > > > Has anybody found a good utility for indexing those large DBF files that > > store the attributes for shape files? Is there such a beast? > > > > There are a couple of Open source libs that will read/write DBF files, > but I have never found one that supports reading/writing .NTX (or .NDX?) > files... I would be interested in hearing about it as well if one > exists. I know that there is some format information at: > http://www.e-bachmann.dk/docs/xbase.htm > and there may be some in other places I guess. > *snip* > > Please keep us posted on whatever you find. > http://www.startech.keller.tx.us/xbase/xbase.html and it's child: http://linux.techass.com/projects/xdb/ are both C++ [dx]base libraries that handle indicies. ----- Chris D. Faulhaber - jedgar at fxp.org - jedgar at FreeBSD.org -------------------------------------------------------- FreeBSD: The Power To Serve - http://www.FreeBSD.org From aborruso at spaziogis.it Tue Jun 6 02:20:51 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Tue, 6 Jun 2000 11:20:51 +0200 Subject: Unable to access file??? Message-ID: Thak you very much, now all it's ok. Thank you again!! The problem was the path! Don't you think that it would be important to put this information in mapserver documentation? Cheers --------------------------------------------- Andrea Borruso Nadir s.n.c. Tel 091580305 interno 218 Fax 0916124646 email: aborruso at spaziogis.it www.spaziogis.it --------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From spclark at nbnet.nb.ca Tue Jun 6 05:01:34 2000 From: spclark at nbnet.nb.ca (Stephen Clark) Date: Tue, 6 Jun 2000 09:01:34 -0300 Subject: archived threads Message-ID: <004201bfcfae$f6158d90$1300a8c0@giszero> hi , Does this mapserver listserv have an archived thread index. The reason I ask is that I am new to the list and would like to follow some of the existing NT comments. Also, how would I search for NT specific threads? Stephen Clark Geomatics Specialist Tantramar Planning 2 Bridge Street Sackville, N.B. E4L 3N5 Ph: 506 364 4701 From steve.lime at dnr.state.mn.us Tue Jun 6 07:12:55 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 06 Jun 2000 09:12:55 -0500 Subject: DBF file indexer? Message-ID: MapServer itself won't benefit from .dbf indexing, at least not much. Shapes are processed sequentially with spatial searches driving this process. Each shape is then classified, but since the index (i.e. record number) is know an index is useless. The one place it would help is with itemquery searches. In that case I'd recommend using MapScript in combination with the perl modules XBase or DBD::XBase. Both the perl modules can use indexes. I'm not inclined to re-write any of the .dbf handling given that perl and the other scripting languages are already so good at it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Sean O'Hagan" 06/05/00 05:38PM >>> Hello list, Has anybody found a good utility for indexing those large DBF files that store the attributes for shape files? Is there such a beast? TIA, Sean O'Hagan Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com From vrraju at gis.umn.edu Tue Jun 6 08:15:40 2000 From: vrraju at gis.umn.edu (Vatsavai Ranga Raju) Date: Tue, 06 Jun 2000 10:15:40 -0500 Subject: search Message-ID: <393D159C.998AB0F5@gis.umn.edu> Dear Mapserver-Users list members Search interface to mapserver-users mailing list archieves was broken for the last 2 weeks due to currupted index files. The problem is solved now, and users can search the archives again using the following URL: http://mapserver.gis.umn.edu/support.html Good luck Raju -- Ranga Raju Vatsavai, Research Fellow. ~(oo)~ Remote Sensing & GIS Lab, Dept. of FR. 612-624-7281 SDB Research Group, Dept. of Comp Sci. 612-626-7703 http://www.cs.umn.edu/~vatsavai -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfischer at usgs.gov Tue Jun 6 08:33:27 2000 From: bfischer at usgs.gov (bfischer at usgs.gov) Date: Tue, 6 Jun 2000 10:33:27 -0500 Subject: Perl MapScript and NT Message-ID: I am also curious if you have got mapscript compiled for NT. I have not seen a final answer to this question and was just wondering if I missed it. I am looking for a way to incoporate some of mapscripts functions on a NT website. Thanks, Brian Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 |--------+---------------------------------------> | | imap at chesapeake.net | | | Sent by: | | | owner-mapserver-users at lists.g| | | is.umn.edu | | | | | | | | | 06/02/00 04:32 PM | | | | |--------+---------------------------------------> >---------------------------------------------------------------------------------------------------------| | | | To: "Sean O'Hagan" | | cc: MapServer List | | Subject: Re: Perl MapScript and NT | >---------------------------------------------------------------------------------------------------------| Sean, Are you saying you have mapserver compiled on NT with mapscript working? I dont think that there has been an any problems compiling on NT, but I have not heard of anyone successfully getting mapscript to work. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. 410.257.3187 Sean O'Hagan wrote: > > Hello list, > > I just read a posting that read: "As far as I know nobody has compiled > MapScript on NT. I don't suspect many have tried." Just thought I'd add our > name to the (hopefully) growing list of people who have done this for the > Perl implementation. Everything seems okay so far... > > Metavera Solutions, Inc. > 192 Spadina Ave., Suite 405 > Toronto, ON > M5T 2C2 > Tel: (416) 504-8351 > Fax: (416) 364-2636 > Email: seano at metavera.com From bertha_bonita at yahoo.com Tue Jun 6 13:30:26 2000 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Tue, 6 Jun 2000 13:30:26 -0700 (PDT) Subject: MEWBIE: MAPS FILE Message-ID: <20000606203026.630.qmail@web4204.mail.yahoo.com> Hello somebody can say me what are the MAP FILES? thanks. ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com From seano at metavera.com Tue Jun 6 15:57:06 2000 From: seano at metavera.com (Sean O'Hagan) Date: Tue, 6 Jun 2000 18:57:06 -0400 Subject: Any info on the other shapeObj methods? Message-ID: <017101bfd00a$89cdcec0$0882a8c0@karkalis.com> ie. get, intersect, etc.. Any help is appreciated. (any other undocumented features out there?) Sean O'Hagan Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com From bertha_bonita at yahoo.com Tue Jun 6 16:08:23 2000 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Tue, 6 Jun 2000 16:08:23 -0700 (PDT) Subject: msLoadMap(): Unknown identifier. (LABELOVERLAP):(14) Message-ID: <20000606230823.3443.qmail@web4207.mail.yahoo.com> hello when i run the demo i got this. msLoadMap(): Unknown identifier. (LABELOVERLAP):(1) and i not understand.! thanks. ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com From mapadm at polsl.gliwice.pl Wed Jun 7 06:53:46 2000 From: mapadm at polsl.gliwice.pl (Grzegorz Myrda) Date: Wed, 7 Jun 2000 15:53:46 +0200 Subject: Perl MapScript and NT In-Reply-To: Message-ID: <000301bfd087$ccf16e00$0900000a@pc-grek.ispik.pl> Me too. I have compiled with no problems, but cannot run. Grzegorz > I am also curious if you have got mapscript compiled for NT. I have not > seen a final answer to this question and was just wondering if I > missed it. > I am looking for a way to incoporate some of mapscripts functions on a NT > website. > > Thanks, > > Brian > > Brian Fischer > bfischer at usgs.gov > USGS WRD > 2280 Woodale Dr. > Mounds View, MN > (612) 783-3133 > > > > > > > > > > > > > > > > > > > > > > > > > > > |--------+---------------------------------------> > | | imap at chesapeake.net | > | | Sent by: | > | | owner-mapserver-users at lists.g| > | | is.umn.edu | > | | | > | | | > | | 06/02/00 04:32 PM | > | | | > |--------+---------------------------------------> > > >----------------------------------------------------------------- > ----------------------------------------| > | > | > | To: "Sean O'Hagan" > | > | cc: MapServer List > > | > | Subject: Re: Perl MapScript and NT > | > > >----------------------------------------------------------------- > ----------------------------------------| > > > > Sean, Are you saying you have mapserver compiled on NT > with mapscript working? I dont think that there has been > an any problems compiling on NT, but I have not heard of > anyone successfully getting mapscript to work. > > Regards, > > Chris Stuber (mapsurfer) > Silicon Mapping Solutions, Inc. > 410.257.3187 > > > Sean O'Hagan wrote: > > > > Hello list, > > > > I just read a posting that read: "As far as I know nobody has compiled > > MapScript on NT. I don't suspect many have tried." Just thought I'd add > our > > name to the (hopefully) growing list of people who have done > this for the > > Perl implementation. Everything seems okay so far... > > > > Metavera Solutions, Inc. > > 192 Spadina Ave., Suite 405 > > Toronto, ON > > M5T 2C2 > > Tel: (416) 504-8351 > > Fax: (416) 364-2636 > > Email: seano at metavera.com > > > > From mdh20 at humboldt.edu Wed Jun 7 11:09:19 2000 From: mdh20 at humboldt.edu (Michael Hass) Date: Wed, 7 Jun 2000 11:09:19 -0700 (PDT) Subject: Back to Basics Message-ID: After running MS for a bunch of months on Linux without freetype, etc. I thought I would finally step up to the "majors". I have a chicken and egg question though. Originally, I placed proj4, freetype, etc (didn't compile) provided the location in the makefile, ran the make, then created a path using LD_LIBRARY_PATH instructions that Steve provided to the list in January. I added a ttf file, referenced it in the font file and low and behold....crash. Do I need to compile each of the component programs first, create the path statement and then compile MS for it to recognize this stuff? Any comments to this unix/linux rookie would be appreciated. Thanks Mike From danmo at videotron.ca Wed Jun 7 13:54:20 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 07 Jun 2000 16:54:20 -0400 Subject: Back to Basics References: Message-ID: <393EB67C.BB3A7D4C@videotron.ca> Michael Hass wrote: > > Originally, I placed proj4, freetype, etc (didn't compile) provided the > location > in the makefile, ran the make, then created a path using > LD_LIBRARY_PATH instructions that Steve provided to > the list in January. I added a ttf file, referenced it > in the font file and low and behold....crash. > This could be a problem with a shared library not being available at runtime because LD_LIBRARY_PATH does not get passed properly. If that's the case then you should see a message about that in your Apache error_log ... you should check there first for an error message. Also, make sure that the -DUSE_GD_* flag in the Makefile matches the version of GD that you use. Freetype support is sensitive to the difference between GD 1.2 and 1.3 in the way to access the pixel buffer. Finally, MapServer now has a "configure" script that takes care of that Makefile stuff for you. So you could get the latest MapServer source (nightly build) from the MapServer web site and follow the instructions in the README.CONFIGURE file. Good Luck! -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From bertha_bonita at yahoo.com Wed Jun 7 14:52:47 2000 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Wed, 7 Jun 2000 14:52:47 -0700 (PDT) Subject: msOpenSHPFile() Message-ID: <20000607215247.503.qmail@web4204.mail.yahoo.com> Hello i ran the demo and i got this when i pressed the initialize button: msOpenSHPFile(): Unable to access file. (county) this is part of the map file LAYER NAME county TYPE POLYGON STATUS DEFAULT DATA county CLASS SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 248 248 95 END END what's wrong? thanks for help me. ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com From aelon at sph.umich.edu Wed Jun 7 19:46:27 2000 From: aelon at sph.umich.edu (Andrew E Long) Date: Wed, 7 Jun 2000 22:46:27 -0400 (EDT) Subject: TIFFIsByteSwapped Message-ID: Hi Folks, I've got the ms_3.3.010 mapserver & demo running using the latest and greatest of the usual software suspects (e.g. libtiff), but am crashing ignominously when I get to the LandSat TM Image: if I try to display it, all crashes. Checking the error log for my web server, I find ld.so.1: mapserv: fatal: relocation error: file mapserv: symbol TIFFIsByteSwapped: referenced symbol not found TIFFIsByteSwapped is definitely contained in the libtiff distribution, and I find it in libtiff.so, which is in /usr/local/lib. I've added the LD_LIBRARY_PATH variable to Apache (thanks Daniel Morissette), which includes /usr/local/lib, i.e. SetEnv LD_LIBRARY_PATH /usr/lib:/usr/openwin/lib:/usr/ucblib:/usr/local/lib Any bright ideas, hints, or? Thanks, Andy From rgu at ems.muenchen.de Wed Jun 7 23:30:55 2000 From: rgu at ems.muenchen.de (Markus Spring) Date: Thu, 08 Jun 2000 08:30:55 +0200 Subject: Mapscript in mod_perl: frequent errors in mapObj->new Message-ID: <393F3D9F.3B844D6@ems.muenchen.de> Hi list, unfortunately there is no further info. In the http_error.log it tells only the line, in some very rare cases it mentions an ioctl problem (in german, as I use a german SuSE Linux) and then even the command line script will hang until I kill the http processes. It looks to me as if there is a file close/lock problem with the mapfile itself, but I do not understand enough C to add some debugging messages. Kind regards - markus From imap at chesapeake.net Thu Jun 8 00:28:54 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Thu, 08 Jun 2000 03:28:54 -0400 Subject: Mapscript in mod_perl: frequent errors in mapObj->new References: <393F3D9F.3B844D6@ems.muenchen.de> Message-ID: <393F4B36.DFEE914A@chesapeake.net> Markus/MapServer List, On the topic of mod_perl problems... a similar experience. A client of mine tried to run under fastCGI, but Steve reports a memory leak with PIXMAP symbols and we pretty much concluded that mapObj->new is not reiterate. That never did work for us. It would be ideal to instantiate the mapfile/symbols only once and crank out mapObjects over and over via mod_perl or fastCGI. Probably all that is needed is some initialization and free()s to solve the issues. That request gets deferred to Steve for the TODO list. After testing fastCGI, they had some success getting *very* quick map generations.... but they backed off the idea until there is some resolution to the mapObj->new and memory leak malfuntions. I know it was eventually consuming all of the available RAM on the machine as a bad side effect. I'll ask Jim to elaborate on the details on the testing. along the performance issues, the thing that would make a fastCGI mod_perl configuration wildly successful is to snap-to quantified zoom/panning ratios so that you build a decent cache of images. That has been somewhat tested and for a high volume application, I think that is the way to go. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. 410-257-3187 Markus Spring wrote: > > Hi list, > > unfortunately there is no further info. In the http_error.log it > tells only the line, in some very rare cases it mentions an ioctl > problem (in german, as I use a german SuSE Linux) and then even the > command line script will hang until I kill the http processes. > > It looks to me as if there is a file close/lock problem with the mapfile > itself, > but I do not understand enough C to add some debugging messages. > > Kind regards - markus From bfraser at geoanalytic.com Thu Jun 8 07:18:27 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 8 Jun 2000 08:18:27 -0600 Subject: TIFFIsByteSwapped References: Message-ID: <000701bfd154$6a89b150$390002c0@servo> What's the color depth of your images? As I recall I think it needs to be 256 colors (paletted image), not 24 -bit color. Or has that restriction been removed? Brent Fraser ----- Original Message ----- From: "Andrew E Long" To: Sent: Wednesday, June 07, 2000 8:46 PM Subject: TIFFIsByteSwapped > Hi Folks, > > I've got the ms_3.3.010 mapserver & demo running using the latest and > greatest of the usual software suspects (e.g. libtiff), but am crashing > ignominously when I get to the LandSat TM Image: if I try to display it, > all crashes. Checking the error log for my web server, I find > > ld.so.1: mapserv: fatal: relocation error: file mapserv: symbol > TIFFIsByteSwapped: referenced symbol not found > > TIFFIsByteSwapped is definitely contained in the libtiff > distribution, and I find it in libtiff.so, which is in > /usr/local/lib. > > I've added the LD_LIBRARY_PATH variable to Apache (thanks Daniel > Morissette), which includes /usr/local/lib, i.e. > > SetEnv LD_LIBRARY_PATH /usr/lib:/usr/openwin/lib:/usr/ucblib:/usr/local/lib > > Any bright ideas, hints, or? > > Thanks, > Andy > > > From steve.lime at dnr.state.mn.us Thu Jun 8 07:22:18 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 08 Jun 2000 09:22:18 -0500 Subject: TIFFIsByteSwapped Message-ID: No, still 8-bit or less... >>> "Brent Fraser" 06/08/00 09:18AM >>> What's the color depth of your images? As I recall I think it needs to be 256 colors (paletted image), not 24 -bit color. Or has that restriction been removed? Brent Fraser ----- Original Message ----- From: "Andrew E Long" To: Sent: Wednesday, June 07, 2000 8:46 PM Subject: TIFFIsByteSwapped > Hi Folks, > > I've got the ms_3.3.010 mapserver & demo running using the latest and > greatest of the usual software suspects (e.g. libtiff), but am crashing > ignominously when I get to the LandSat TM Image: if I try to display it, > all crashes. Checking the error log for my web server, I find > > ld.so.1: mapserv: fatal: relocation error: file mapserv: symbol > TIFFIsByteSwapped: referenced symbol not found > > TIFFIsByteSwapped is definitely contained in the libtiff > distribution, and I find it in libtiff.so, which is in > /usr/local/lib. > > I've added the LD_LIBRARY_PATH variable to Apache (thanks Daniel > Morissette), which includes /usr/local/lib, i.e. > > SetEnv LD_LIBRARY_PATH /usr/lib:/usr/openwin/lib:/usr/ucblib:/usr/local/lib > > Any bright ideas, hints, or? > > Thanks, > Andy > > > From aelon at sph.umich.edu Thu Jun 8 07:32:16 2000 From: aelon at sph.umich.edu (Andrew E Long) Date: Thu, 8 Jun 2000 10:32:16 -0400 (EDT) Subject: TIFFIsByteSwapped: solution In-Reply-To: Message-ID: Stephen wins the prize. This was exactly the problem: another version of libtiff.so lying around.... Thanks! Andy On Wed, 7 Jun 2000, Stephen Lime wrote: > Might there be other versions of libtiff on the system? Perhaps in the other libs defined in LD_LIBRARY_PATH? > > s. > > <<< Andrew E Long 6/ 7 9:49p >>> > Hi Folks, > > I've got the ms_3.3.010 mapserver & demo running using the latest and > greatest of the usual software suspects (e.g. libtiff), but am crashing > ignominously when I get to the LandSat TM Image: if I try to display it, > all crashes. Checking the error log for my web server, I find > > ld.so.1: mapserv: fatal: relocation error: file mapserv: symbol > TIFFIsByteSwapped: referenced symbol not found > > TIFFIsByteSwapped is definitely contained in the libtiff > distribution, and I find it in libtiff.so, which is in > /usr/local/lib. > > I've added the LD_LIBRARY_PATH variable to Apache (thanks Daniel > Morissette), which includes /usr/local/lib, i.e. > > SetEnv LD_LIBRARY_PATH /usr/lib:/usr/openwin/lib:/usr/ucblib:/usr/local/lib > > Any bright ideas, hints, or? > > Thanks, > Andy > > > > > > From peepk at ekk.ee Thu Jun 8 08:37:43 2000 From: peepk at ekk.ee (Peep Krusberg) Date: Thu, 08 Jun 2000 18:37:43 +0300 Subject: mapserver on NT and java Message-ID: <393FBDC7.A437FA8B@ekk.ee> Hello list! I'm experimenting with java and mapserver on NT (EXE downloaded from UMN) but with very little success. Is such a combination even possible? Regards, Peep -- Peep Krusberg Projektijuht / Project Manager, MSc AS Eesti Kaardikeskus / Estonian Map Centre, Ltd. Mustamae tee 33, 10616 Tallinn, Estonia Tel: +(372) 6529 976; Fax: +(372) 6542 108 E-mail: peepk at ekk.ee From steve.lime at dnr.state.mn.us Thu Jun 8 09:59:54 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 08 Jun 2000 11:59:54 -0500 Subject: mapserver on NT and java Message-ID: Depends on how you define that combination. We've used java frontends to the MapServer very successfully for quite sometime. In this case java is used for advanced functionality like rubberband boxes and mouse overs. MapServer and or MapScript just produces data, images, xml or whatever. Now, it is theoretically possible to generate a java version of MapScript using SWIG (alpha versions of 1.3). The MapScript class library could then be used to build server-side applications using java. Using RMI it might be possible to embed some functionality in clients too. I said, in theory and I haven't played in this area at all, but I choose SWIG as a tool for just this reason. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Peep Krusberg 06/08/00 10:37AM >>> Hello list! I'm experimenting with java and mapserver on NT (EXE downloaded from UMN) but with very little success. Is such a combination even possible? Regards, Peep -- Peep Krusberg Projektijuht / Project Manager, MSc AS Eesti Kaardikeskus / Estonian Map Centre, Ltd. Mustamae tee 33, 10616 Tallinn, Estonia Tel: +(372) 6529 976; Fax: +(372) 6542 108 E-mail: peepk at ekk.ee From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Jun 8 10:33:16 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 8 Jun 2000 13:33:16 -0400 Subject: MAP file conversion from 3.2 to 3.3 Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C05C@s5-ccr-r1> Goodday, I've been experimenting with MapServer, and as a way to learn I downloaded 3.2 with the demo, unfortunately there's some features I need in 3.3, so I tried installing it, but I'm having problems withe MAP file I was using with 3.2 ... The keyword LABELOVERLAP apparently is no longer used (didn't find it in the docs) so I commented it out, but now I keep getting the following error : getInteger(): Incorrect data type. (END):(7) This REALLY is driving me crazy, I've tried EVERYTHING to get rid of it, without any luck. The catch being there is no word END on line 7 ! (or 6 or 8) And since the keyword END doesn't usually expect any data, I'm really confused. I've attached my current mapfile (canada.map) whihc is causing me the grief, it works fine in 3.2 ... Any help/comments/ideas would be greatly appreciated ! <> Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada (613) 992-4902 -------------- next part -------------- A non-text attachment was scrubbed... Name: canada.map Type: application/octet-stream Size: 3334 bytes Desc: not available URL: From bowenj at peligroso.gaiaenv.com Thu Jun 8 10:48:33 2000 From: bowenj at peligroso.gaiaenv.com (Jim T. Bowen (GAIA Consultants Inc.)) Date: Thu, 08 Jun 2000 11:48:33 -0600 Subject: MAP file conversion from 3.2 to 3.3 References: <2951561DB3DDD0118FEC00805FFE98050380C05C@s5-ccr-r1> Message-ID: <393FDC71.A289F377@gaiaenv.com> Looks like your symbol file(s) is tar. Grab new versions. On another note, make sure the symbol files only have LF (for Unix-like boxes) and not CR/LF...this too can cause grief. Cheers, Jim "Doyon, Jean-Francois" wrote: > > Goodday, > > I've been experimenting with MapServer, and as a way to learn I downloaded > 3.2 with the demo, unfortunately there's some features I need in 3.3, so I > tried installing it, but I'm having problems withe MAP file I was using with > 3.2 ... The keyword LABELOVERLAP apparently is no longer used (didn't find > it in the docs) so I commented it out, but now I keep getting the following > error : > > getInteger(): Incorrect data type. (END):(7) > > This REALLY is driving me crazy, I've tried EVERYTHING to get rid of it, > without any luck. The catch being there is no word END on line 7 ! (or 6 or > 8) And since the keyword END doesn't usually expect any data, I'm really > confused. > > I've attached my current mapfile (canada.map) whihc is causing me the grief, > it works fine in 3.2 ... > > Any help/comments/ideas would be greatly appreciated ! > > <> > > Jean-Francois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Natural Resources Canada > (613) 992-4902 > > ------------------------------------------------------------------------ > Name: canada.map > canada.map Type: ESRI Print Document (application/x-unknown-content-type-WinPress) > Encoding: quoted-printable From michalak at hwr.arizona.edu Thu Jun 8 11:24:36 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Thu, 8 Jun 2000 11:24:36 -0700 (MST) Subject: Perl script as template Message-ID: I have a suggestion for future versions of mapserver, which I think might be easy to implement. Correct me if I'm out to lunch. I would like to be able to use a perl script (which generates html) for the template file. Looks like it is catching my file name (.pl file) at the TEMPLATE line in the map file, and rejecting it because of its extention even before it looks at the perl. Do you think this would be a possibility? -zolla michalak From steve.lime at dnr.state.mn.us Thu Jun 8 11:40:13 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 08 Jun 2000 13:40:13 -0500 Subject: Perl script as template Message-ID: Not sure what sense it makes. The template is processed and sent directly to the user. It is not processed by the server in any way. What does make sense is passing mapserver results to a perl script or whatever for further processing. That can be done already using URL templates. Basically you define a template that is a string in the map file and that contains normal template substitutions. Once processed the user is redirected to that url. Pretty useful. One limitation is that only single result queries can be processed this way. For complex sets of results you have to get sneaky. You can use a page containing only javascript to process and format a url and once done processing you redirect the browser. It appears to the user as a blank page (or you could display text like "hang on a minute...") and then moves to the right page. Lot's of power here. There is an example on the tutorial at the main mapserver web site that does just this. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Zolla Michalak 06/08/00 01:24PM >>> I have a suggestion for future versions of mapserver, which I think might be easy to implement. Correct me if I'm out to lunch. I would like to be able to use a perl script (which generates html) for the template file. Looks like it is catching my file name (.pl file) at the TEMPLATE line in the map file, and rejecting it because of its extention even before it looks at the perl. Do you think this would be a possibility? -zolla michalak From steve.lime at dnr.state.mn.us Thu Jun 8 11:46:33 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 08 Jun 2000 13:46:33 -0500 Subject: Mapscript in mod_perl: frequent errors in mapObj->new Message-ID: Correct me if I'm wrong but it seems to me that the mapObj constructor shouldn't be re-entrant. The mapObj is reusable without re-reading from a file. Some things need to be reset for each map but that will always be the case: scale, extent, cellsize and layer status are examples. I'm not a mod_perl or fastCGI expert. I assume there is a section for initialization, that's where the new mapObj happens. Then there must a loop handling execution. Question is what happens to the mapObj each run, is a copy made, is it truly shared or what? Anyone know for sure. Once that is understood I (think) can work around it to preserve that original state of the mapObj. Memory leaks are another matter. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 06/08/00 02:28AM >>> Markus/MapServer List, On the topic of mod_perl problems... a similar experience. A client of mine tried to run under fastCGI, but Steve reports a memory leak with PIXMAP symbols and we pretty much concluded that mapObj->new is not reiterate. That never did work for us. It would be ideal to instantiate the mapfile/symbols only once and crank out mapObjects over and over via mod_perl or fastCGI. Probably all that is needed is some initialization and free()s to solve the issues. That request gets deferred to Steve for the TODO list. After testing fastCGI, they had some success getting *very* quick map generations.... but they backed off the idea until there is some resolution to the mapObj->new and memory leak malfuntions. I know it was eventually consuming all of the available RAM on the machine as a bad side effect. I'll ask Jim to elaborate on the details on the testing. along the performance issues, the thing that would make a fastCGI mod_perl configuration wildly successful is to snap-to quantified zoom/panning ratios so that you build a decent cache of images. That has been somewhat tested and for a high volume application, I think that is the way to go. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. 410-257-3187 Markus Spring wrote: > > Hi list, > > unfortunately there is no further info. In the http_error.log it > tells only the line, in some very rare cases it mentions an ioctl > problem (in german, as I use a german SuSE Linux) and then even the > command line script will hang until I kill the http processes. > > It looks to me as if there is a file close/lock problem with the mapfile > itself, > but I do not understand enough C to add some debugging messages. > > Kind regards - markus From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Jun 8 11:59:57 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 8 Jun 2000 14:59:57 -0400 Subject: Perl script as template Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C05E@s5-ccr-r1> I realize Perl would be nice, but have you tried some form of Parsed HTML like PHP or ColdFusion ? Might do the trick ... J.F. > ---------- > From: Zolla Michalak[SMTP:michalak at hwr.arizona.edu] > Sent: Thursday, June 08, 2000 2:24 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Perl script as template > > > I have a suggestion for future versions of mapserver, which I think might > be easy to implement. Correct me if I'm out to lunch. > > I would like to be able to use a perl script (which generates html) for > the template file. Looks like it is catching my file name (.pl file) at > the TEMPLATE line in the map file, and rejecting it because of its > extention even before it looks at the perl. > > Do you think this would be a possibility? > > -zolla michalak > From michalak at hwr.arizona.edu Thu Jun 8 12:47:28 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Thu, 8 Jun 2000 12:47:28 -0700 (MST) Subject: Perl script as template In-Reply-To: <2951561DB3DDD0118FEC00805FFE98050380C05E@s5-ccr-r1> Message-ID: Hmm. Interesting idea, but I don't think that would do what I want. I need the perl code because I'm using the mapscript perl module. Also, it looks like the template file needs a .html extension. -zm On Thu, 8 Jun 2000, Doyon, Jean-Francois wrote: > I realize Perl would be nice, but have you tried some form of Parsed HTML > like PHP or ColdFusion ? Might do the trick ... > > J.F. > > > ---------- > > From: Zolla Michalak[SMTP:michalak at hwr.arizona.edu] > > Sent: Thursday, June 08, 2000 2:24 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: Perl script as template > > > > > > I have a suggestion for future versions of mapserver, which I think might > > be easy to implement. Correct me if I'm out to lunch. > > > > I would like to be able to use a perl script (which generates html) for > > the template file. Looks like it is catching my file name (.pl file) at > > the TEMPLATE line in the map file, and rejecting it because of its > > extention even before it looks at the perl. > > > > Do you think this would be a possibility? > > > > -zolla michalak > > > From meng_li at city.vancouver.bc.ca Thu Jun 8 13:10:46 2000 From: meng_li at city.vancouver.bc.ca (Li, Meng) Date: Thu, 8 Jun 2000 13:10:46 -0700 Subject: list Message-ID: <00Jun8.131047pdt.115229@gw.city.vancouver.bc.ca> list From danmo at videotron.ca Thu Jun 8 13:29:13 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Thu, 08 Jun 2000 16:29:13 -0400 Subject: Perl script as template References: Message-ID: <39400219.471E717D@videotron.ca> I'm not sure what you're trying to do exactly (i.e. why you need to mix MapServer templates and MapScript), but there is also the PHP MapScript module that might allow you to do what you want. Then your PHP page would be your HTML template and you would have access to MapScript. Zolla Michalak wrote: > > Hmm. Interesting idea, but I don't think that would do what I want. I need > the perl code because I'm using the mapscript perl module. Also, it looks > like the template file needs a .html extension. > > -zm > > On Thu, 8 Jun 2000, Doyon, Jean-Francois wrote: > > > I realize Perl would be nice, but have you tried some form of Parsed HTML > > like PHP or ColdFusion ? Might do the trick ... > > > > J.F. > > > > > ---------- > > > From: Zolla Michalak[SMTP:michalak at hwr.arizona.edu] > > > Sent: Thursday, June 08, 2000 2:24 PM > > > To: mapserver-users at lists.gis.umn.edu > > > Subject: Perl script as template > > > > > > > > > I have a suggestion for future versions of mapserver, which I think might > > > be easy to implement. Correct me if I'm out to lunch. > > > > > > I would like to be able to use a perl script (which generates html) for > > > the template file. Looks like it is catching my file name (.pl file) at > > > the TEMPLATE line in the map file, and rejecting it because of its > > > extention even before it looks at the perl. > > > > > > Do you think this would be a possibility? > > > > > > -zolla michalak > > > > > -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From michalak at hwr.arizona.edu Thu Jun 8 13:35:56 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Thu, 8 Jun 2000 13:35:56 -0700 (MST) Subject: Perl script as template In-Reply-To: <39400219.471E717D@videotron.ca> Message-ID: Sounds interesting. I'm not familiar with PHP though. Do you know where a good example is? -zm On Thu, 8 Jun 2000, Daniel Morissette wrote: > > I'm not sure what you're trying to do exactly (i.e. why you need to mix > MapServer templates and MapScript), but there is also the PHP MapScript > module that might allow you to do what you want. Then your PHP page > would be your HTML template and you would have access to MapScript. > > > Zolla Michalak wrote: > > > > Hmm. Interesting idea, but I don't think that would do what I want. I need > > the perl code because I'm using the mapscript perl module. Also, it looks > > like the template file needs a .html extension. > > > > -zm > > > > On Thu, 8 Jun 2000, Doyon, Jean-Francois wrote: > > > > > I realize Perl would be nice, but have you tried some form of Parsed HTML > > > like PHP or ColdFusion ? Might do the trick ... > > > > > > J.F. > > > > > > > ---------- > > > > From: Zolla Michalak[SMTP:michalak at hwr.arizona.edu] > > > > Sent: Thursday, June 08, 2000 2:24 PM > > > > To: mapserver-users at lists.gis.umn.edu > > > > Subject: Perl script as template > > > > > > > > > > > > I have a suggestion for future versions of mapserver, which I think might > > > > be easy to implement. Correct me if I'm out to lunch. > > > > > > > > I would like to be able to use a perl script (which generates html) for > > > > the template file. Looks like it is catching my file name (.pl file) at > > > > the TEMPLATE line in the map file, and rejecting it because of its > > > > extention even before it looks at the perl. > > > > > > > > Do you think this would be a possibility? > > > > > > > > -zolla michalak > > > > > > > > > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From michalak at hwr.arizona.edu Thu Jun 8 13:58:08 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Thu, 8 Jun 2000 13:58:08 -0700 (MST) Subject: Perl script as template In-Reply-To: <39400219.471E717D@videotron.ca> Message-ID: Daniel- Here's what I'm trying to do. Take a look at the MapScript demo at http://mapserver.gis.umn.edu/demo_init.html. My program is very similar, except that instead of opening with the page that has the "Initialize" button, it opens with a perl script with a map (created with perl code, using the perl module) and a form (going to the mapserver). The form is processed with mapserver, and the temlate file is sent to the user. Well, to make it look slick, I made the template file look exactly the same as the opening perl script page, with the map and form, so that it looks like you stayed on the same page, when really you jumped from perl over to the template. So, wouldn't it be nice if the perl script and template could be the same file. That way, I wouldn't need two copies of the exact same thing. I could open up with say, mytemplate.pl, a page with a map and a form on it, the form would go to mapserver, and pass the information back to the template, the same page at mytemplate.pl. I'm also working on a version that sends a form to my perl script, but I need the functionality of the mapserver for processing the form and dealing with variables, so rather than rewrite all that, I've combined them. -zm On Thu, 8 Jun 2000, Daniel Morissette wrote: > > I'm not sure what you're trying to do exactly (i.e. why you need to mix > MapServer templates and MapScript), but there is also the PHP MapScript > module that might allow you to do what you want. Then your PHP page > would be your HTML template and you would have access to MapScript. > > > Zolla Michalak wrote: > > > > Hmm. Interesting idea, but I don't think that would do what I want. I need > > the perl code because I'm using the mapscript perl module. Also, it looks > > like the template file needs a .html extension. > > > > -zm > > > > On Thu, 8 Jun 2000, Doyon, Jean-Francois wrote: > > > > > I realize Perl would be nice, but have you tried some form of Parsed HTML > > > like PHP or ColdFusion ? Might do the trick ... > > > > > > J.F. > > > > > > > ---------- > > > > From: Zolla Michalak[SMTP:michalak at hwr.arizona.edu] > > > > Sent: Thursday, June 08, 2000 2:24 PM > > > > To: mapserver-users at lists.gis.umn.edu > > > > Subject: Perl script as template > > > > > > > > > > > > I have a suggestion for future versions of mapserver, which I think might > > > > be easy to implement. Correct me if I'm out to lunch. > > > > > > > > I would like to be able to use a perl script (which generates html) for > > > > the template file. Looks like it is catching my file name (.pl file) at > > > > the TEMPLATE line in the map file, and rejecting it because of its > > > > extention even before it looks at the perl. > > > > > > > > Do you think this would be a possibility? > > > > > > > > -zolla michalak > > > > > > > > > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From danmo at videotron.ca Thu Jun 8 14:01:19 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Thu, 08 Jun 2000 17:01:19 -0400 Subject: Perl script as template References: Message-ID: <3940099F.62B992B2@videotron.ca> Zolla Michalak wrote: > > Sounds interesting. I'm not familiar with PHP though. Do you know where a > good example is? > If you already know Perl then there should not be a huge learning curve for PHP since I believe that it shares some if its syntax. There is no info on the UMN MapServer web site yet for the PHP module, but we have started a FAQ with pointers to some info at: http://www2.dmsolutions.on.ca/mapserver/php_mapscript_faq.html I included at the end of this message the sample test page that comes with the PHP MapScript module. All it does is open a .MAP file, and display the map, legend and scalebar. If you want to look at something more advanced, there is an example of a map navigation application on our web site that uses the PHP MapScript module: http://www2.dmsolutions.on.ca/gmap/gmap75.phtml and you can download the whole application (including source code and data, 2.4Mb) at: http://www2.dmsolutions.on.ca/mapserver/gmap-20000515.tar.gz Good Luck! -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow.

PHP/MapScript module test

numlayers; // phpinfo(); // // RENDER MAIN MAP // // Note: If you get errors with the saveWebImage() call below, then make sure // that the directory specified by IMAGEPATH in the .MAP file exists and is // writable by the httpd user. // $img = $map->draw(); $url = $img->saveWebImage(0, 0); printf("\n", $url, $map->width, $map->height); // // LEGEND // $img = $map->drawLegend(); $url = $img->saveWebImage(0, 0); printf("

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

\n", $url); ?> From seano at metavera.com Fri Jun 9 14:29:03 2000 From: seano at metavera.com (Sean O'Hagan) Date: Fri, 9 Jun 2000 17:29:03 -0400 Subject: MapScript labelling problem Message-ID: <018401bfd259$bc01cc60$0882a8c0@karkalis.com> Hello list, I'm not able to get a label for an in-line feature to render using mapscript. When I used the /cgi-bin/mapserv? method with feature_new, feature_text, etc., etc. it works fine. When I tried to mimic this using mapscript, I don't get any labels. I've tried a couple of things with $map->drawLabelCache but to no avail. Here is my map file and perl file: *** Map File *** NAME mv STATUS ON SIZE 400 400 SHADESET symbols/shade.sym MARKERSET symbols/marker.sym LINESET symbols/line.sym FONTSET font.list EXTENT -79.4477 43.6279 -79.3413 43.7254 UNITS METERS SHAPEPATH d:/shapedata IMAGECOLOR 224 224 224 LAYER NAME streets TYPE line STATUS default DATA streetdata CLASS SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 49 49 185 END END LAYER NAME places TYPE point STATUS default CLASS SYMBOL 7 SIZE 12 OUTLINECOLOR 0 0 0 COLOR 185 49 49 LABEL BACKGROUNDCOLOR 253 253 253 COLOR 0 0 0 FONT arial PARTIALS true POSITION auto TYPE truetype SIZE 6 END END END END *** Perl Script: Search for mabObj to get to the MapScript part *** #!perl print "Content-Type: text/html\n\n"; print "\n"; use mapscript; use DBI; use XBase; read STDIN, $gcvars, $ENV{CONTENT_LENGTH}; @gcvarsarray = split /&/,$gcvars; foreach $gcvar (@gcvarsarray) { ($var,$val) = split /=/,$gcvar; $vars{$var} = $val; } ($gcnumber=$vars{'gcnumber'})=~tr/[A-Za-z]+/[] /; ($gcstreet=$vars{'gcstreet'})=~tr/[A-Za-z]+/[A-ZA-Z] /; ($gctype=$vars{'gctype'})=~tr/[A-Za-z]+/[A-ZA-Z] /; ($gcdir=$vars{'gcdir'})=~tr/[A-Za-z]+/[A-ZA-Z] /; ($gccity=$vars{'gccity'})=~tr/[A-Za-z]+/[A-ZA-Z] /; $gcname=$vars{'gcname'}; $gcmode=$vars{'gcmode'}; if ($gcname eq "") { $gcname = "Here"; } my $x; my $y; my $from; my $to; my $shapefile = new shapefileObj("streetdata.shp",-1); my $table = new XBase "streetdata.dbf"; my $cur = $table->prepare_select_with_index("streetdata.ndx", "STREETNAME", "FROMLEFT", "TOLEFT", "FROMRIGHT", "TORIGHT", "STREETTYPE", "LEFT_CITY", "SUFDIR"); my @data; my $shape = new shapeObj(MS_LINE); my $streetname; $xmin; $ymin; $xmax; $ymax; if ($gcmode eq 'map') { $xmin = -79.4477; $ymin = 43.6279; $xmax = -79.3413; $ymax = 43.7254; } $cur->find_eq($gcstreet); while (@data = $cur->fetch()) { last if ($data[0] !~ /^$gcstreet/); $streetname = $data[0]; if (($data[0] eq $gcstreet) && ($data[6] eq $gccity) && ($data[5] eq $gctype) && (!$gcdir || ($data[7] eq $gcdir))) { if ((0 eq ($data[1] % 2)) && (0 eq ($data[2] % 2))) { if (0 == ($gcnumber % 2)) { $from = $data[1]; $to = $data[2]; } else { $from = $data[3]; $to = $data[4]; } } else { if (0 eq ($gcnumber % 2)) { $from = $data[3]; $to = $data[4]; } else { $from = $data[1]; $to = $data[2]; } } if (($gcnumber < $from) || ($gcnumber > $to)) { next; } my $ratio = 0.5; if (0 != ($to-$from)) { $ratio = ($gcnumber-$from)/($to-$from); } my $recnum = $cur->last_fetched-1; $shapefile->get($recnum, $shape); $numlines = $shape->{numlines}; $line = new lineObj; $line = $shape->get(0); $numpoints = $line->{numpoints}; my $pointfirst = new pointObj(); $pointfirst = $line->get(0); my $pointnext = new pointObj(); my $distance = 0; for (my $i=1; $i<$numpoints; $i++) { $pointnext = $line->get($i); my $deltax = $pointnext->{x}-$pointfirst->{x}; my $deltay = $pointnext->{y}-$pointfirst->{y}; $distance += sqrt(($deltax * $deltax) + ($deltay * $deltay)); $pointfirst = $pointnext; } my $sofar = 0; my $stopdistance = $ratio * $distance; my $partdistance; $pointfirst = $line->get(0); for (my $i=1; $i<$numpoints; $i++) { $pointnext = $line->get($i); my $deltax = $pointnext->{x}-$pointfirst->{x}; my $deltay = $pointnext->{y}-$pointfirst->{y}; $partdistance = sqrt(($deltax * $deltax) + ($deltay * $deltay)); $sofar += $partdistance; last if ($sofar > $stopdistance); $pointfirst = $pointnext; } my $fullpartdistance = $sofar - $partdistance; my $remainingdistance = $stopdistance - $fullpartdistance; my $partratio = $remainingdistance/$partdistance; my $minx = $pointfirst->{x}; my $miny = $pointfirst->{y}; my $maxx = $pointnext->{x}; my $maxy = $pointnext->{y}; $x = $minx + $partratio * ($maxx - $minx); $y = $miny + $partratio * ($maxy - $miny); if ($gcmode eq 'centre') { $xmin = $x - .01; $ymin = $y - .01; $xmax = $x + .01; $ymax = $y + .01; } } } $map = new mapObj('plot.map') or die('Unable to open map file'); $map->{extent}->{minx} = $xmin or die('Unable to set minx of extent'); $map->{extent}->{miny} = $ymin or die('Unable to set miny of extent'); $map->{extent}->{maxx} = $xmax or die('Unable to set maxx of extent'); $map->{extent}->{maxy} = $ymax or die('Unable to set maxy of extent'); $img = $map->prepareImage(); $layer = $map->getLayerByName('places') or die('Unable to get layer'); $mainlayer = $map->getLayerByName('streets') or die('Unable to get layer'); $point = new pointObj() or die('Unable to create point'); $point->{x} = $x or die('Unable to add x value to point'); $point->{y} = $y or die('Unable to add y value to point'); $line = new lineObj() or die('Unable to create line'); $line->add($point); $feature = new featureObj($layer) or die('Unable to create feature'); $feature->add($line); $feature->{text} = $gcname or die('Unable to add text to feature'); $mainlayer->draw($map,$img); $layer->draw($map,$img); $map->drawLabelCache($img); mapscript::msSaveImage($img,'plot.gif',$map->{interlace},$map->{transparent} ); print "\n"; print "\n"; Thanks a million, Sean O'Hagan Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com From lap at cs.wisc.edu Sat Jun 10 09:37:26 2000 From: lap at cs.wisc.edu (Lap Lo) Date: Sat, 10 Jun 2000 11:37:26 -0500 (CDT) Subject: what is class, expression? In-Reply-To: Message-ID: Hi, I am new to mapserver. I just installed mapserver 3.3. I got a copy of demo from the web and I have trouble understanding some of the features of Class Object. This is a brief introduction of class object given by mapserver 3.3 documentation, "Used to define thematic classes for a given layer and each (vector) layer must have at least one class. In cases with more than one class, membership is determined using attribute values and regular expressions. Starts with the keyword class and terminates with the keyword end." These are my questions, 1) what is the function of a class inside the layer object? 2) Why do we need more than one class? 3) Please look at some example code below, CLASSITEM usclass CLASS NAME "Water & Rivers" EXPRESSION "421" COLOR 49 117 185 BACKGROUNDCOLOR 32 201 201 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "^-" COLOR 255 0 0 OUTLINECOLOR 0 0 0 END a)what is the function of expressions? b)why do they have some strange values like "421"? Can I say "422"? Thanks a lot. Bernard From lap at cs.wisc.edu Sat Jun 10 14:00:01 2000 From: lap at cs.wisc.edu (Lap Lo) Date: Sat, 10 Jun 2000 16:00:01 -0500 (CDT) Subject: extents In-Reply-To: Message-ID: Hi, I am new to mapserver and I am not a GIS people. I would like to know what is an extent and how to define an extent. Thanks for all the help Bernard From seano at metavera.com Mon Jun 12 10:57:24 2000 From: seano at metavera.com (Sean O'Hagan) Date: Mon, 12 Jun 2000 13:57:24 -0400 Subject: MINFEATURESIZE bug? Message-ID: <00b301bfd497$aa004d80$0882a8c0@karkalis.com> Hello list: Has anyone come across something similar to the following? I'm labelling a map (which is fairly dense in streets) on which I noticed a labelling error. The label for one of the streets had been pushed about 30 pixels to the left of where it should have been. I had not included MINFEATURESIZE in the map file (found at the end of this message), so I started playing around with it, starting at a high value and working downwards finally reaching the value "1". At this point, the map looked fine: the street in question was labelled properly, and all the streets were labelled. However, when I set MINFEATURESIZE to 0 or remove it altogether, the original problem returns. Any thoughts, any more info required? Thanks, Sean O'Hagan Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com LAYER NAME streets TYPE line STATUS default DATA "streets" LABELITEM street CLASS SYMBOL 0 COLOR 199 199 199 LABEL ANTIALIAS BACKGROUNDCOLOR 253 253 253 COLOR 0 0 0 FONT arial MINDISTANCE 700 MINFEATURESIZE 1 ANGLE auto PARTIALS false POSITION auto TYPE truetype SIZE 6 END END END From bertha_bonita at yahoo.com Mon Jun 12 12:19:55 2000 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Mon, 12 Jun 2000 12:19:55 -0700 (PDT) Subject: Trouble whit run demo Message-ID: <20000612191955.17471.qmail@web4205.mail.yahoo.com> Hi! when i run the demo 3.3.010 i got this. msOpenSHPFile(): Unable to access file. (county) in the map file i have some paths or files , so i need to know where are the next: SHAPEPATH "data" where are "data"? LABELOVERLAP FALSE What that's mean? IMAGE graphics/reference_base.gif where are "gif"? in the LAYER i don't understand: LAYER NAME landsat TYPE RASTER STATUS ON DATA landsat.tif where is landsat.tif?? OFFSITE 0 END .... QUERYITEM usclass QUERY EXPRESSION "421" TEMPLATE lakes.html JOIN "data/lakejoin.dbf" islake "type" END Where are the files.dbf?? i only have the next files for run the demo: source of initializing html file source of map file source of template file then some paths or files i don't have or where can i find it? ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com From seano at metavera.com Mon Jun 12 16:25:57 2000 From: seano at metavera.com (Sean O'Hagan) Date: Mon, 12 Jun 2000 19:25:57 -0400 Subject: Address Matching & Sides of Streets Message-ID: <010f01bfd4c5$903f0c00$0882a8c0@karkalis.com> Hello list: This question is to any mapserver users who have created geocoders out there. I've been thinking about it for a bit, and I'm wondering if it's possible to determine the side of the street an address is on, given the fromleft, toleft, fromright, toright fields for a line. I originally thought it was, but now I fear it may not. Can someone confirm this? Thanks very much. Sean O'Hagan Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com From vanderwalm at peligroso.gaiaenv.com Mon Jun 12 18:22:53 2000 From: vanderwalm at peligroso.gaiaenv.com (Mel VanderWal) Date: Mon, 12 Jun 2000 19:22:53 -0600 Subject: Symbol file limits Message-ID: <39458CED.51C03EB4@gaiaenv.com> According to the MapServer documentation, the maximum number of symbols you can have in one symbol file is 31. I looked at mapsymbol.c and couldn't figure out how to bump this up, which isn't surprising considering my extremely limited C knowledge. Also, is there an adverse effect to using a large number of symbols? If anyone could show me the light, it would be greatly appreciated. -- Mel VanderWal GIS Programmer / Manager GAIA Consultants Inc. Suite 306, 822-11th Avenue SW Calgary, Alberta Canada T2R 0E5 Phone: (403) 571-7216 Fax: (403) 571-7211 www.gaiaenv.com vanderwalm at gaiaenv.com From imap at chesapeake.net Mon Jun 12 18:46:35 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Mon, 12 Jun 2000 21:46:35 -0400 Subject: Address Matching & Sides of Streets References: <010f01bfd4c5$903f0c00$0882a8c0@karkalis.com> Message-ID: <3945927B.9992CDAD@chesapeake.net> Sean, You can build coding rules for such things, but they are not 100%. What I do is try to derive a parity (Odd/Even) code by assigning Odd/Even or Both. What I do is evaluate both from-to of both left and right side segment and make the assignment. If Left From 100 to 198 = Even Right From 101 to 199 = Odd or Left From 100 to 199 = Both That rule does not always yield a correct match, but most of the time, that works. For example you may have one side or the other missing a range for the left or right side. Sometime you will have secondary address attributes.. that is dependant on the data you are working with. Consider the case of a highrise building, firm, general delivery, post office boxes and rural/contract routes. You cannot be guaranteed any real truth for soft or imputed matches, so is is suggested that you score match candidates with a weight. All of the component of a input record match are given a confidence factor depending on what is actually matched. The address line is parsed and standardized into it components: [House Number] [Street Prefix] [Street Name] [Directional Suffix] [Type] This is just a single permutation, but just and example of how you might assigned to weight House Number and Street Name, whereas the direction prefixes, suffix and type carry less weight. If you derive a match for a record and only match the Street Name (there is no address ranges attributes coded)... that record still is assigned a weight and considered a candidate. In those cases, it is best to resolve a ZIP+4 or Census Block centroid to geocode from. The candidate with the highest weight is *probably* the best answer, but you need to validate the City/State or Postal code as well. In datasets that have large tiles, (like county), you will see situations where 123 Main St occurs multiple time within the tile, so you have to make sure the you at least validate City/State and postal code as well. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc 410-257-3187 Sean O'Hagan wrote: > > Hello list: > > This question is to any mapserver users who have created geocoders out > there. I've been thinking about it for a bit, and I'm wondering if it's > possible to determine the side of the street an address is on, given the > fromleft, toleft, fromright, toright fields for a line. I originally thought > it was, but now I fear it may not. Can someone confirm this? Thanks very > much. > > Sean O'Hagan > Metavera Solutions, Inc. > 192 Spadina Ave., Suite 405 > Toronto, ON > M5T 2C2 > Tel: (416) 504-8351 > Fax: (416) 364-2636 > Email: seano at metavera.com From Robin.Ellis at dnr.qld.gov.au Mon Jun 12 21:43:52 2000 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Tue, 13 Jun 2000 14:43:52 +1000 Subject: Burnett Catchment Web GIS Message-ID: Ross Searle and myself have finally cut through the redtape and put our demo on an external server. Please have a look if you're at all interested. We will add more datasets as time goes by, we just wanted to get it published for the time being. Any feedback will also be appreciated. > http://www.dnr.qld.gov.au/resourcenet/land/lris/webgis/burnett/ > > It's a bit hard to locate without this link at the moment, as the > adjoining pages haven't been updated. This will hopefully happen shortly. > > Please take the time to have a look and a play, there's a tutorial > provided from the intro page to give you some idea of the functionality. > Any feedback is appreciated - be it alternative datasets that might be > applicable, or even a new colour scheme. I'm interested in getting all the > feedback I can. > > I look forward to hearing from you all soon. > > Rob. > > > Robin Ellis > Land Resources Officer > Department of Natural Resources > Burnett District > ph: 07 4153 7843 > fax: 07 4153 7823 > Robin.Ellis at dnr.qld.gov.au > From serdula_jaroslav at vse.sk Tue Jun 13 05:32:51 2000 From: serdula_jaroslav at vse.sk (Jaroslav Serdula) Date: Tue, 13 Jun 2000 14:32:51 +0200 Subject: 2 Color (1 bit) tiff files References: Message-ID: <000a01bfd533$7dd28420$4e11a8c0@vse.sk> I have several huge (20 000 x 20 000 pixels) 2 color tiff files that represent different layers (rivers, roads). How can I make MapServer to draw these files in different colors? From steve.lime at dnr.state.mn.us Tue Jun 13 07:25:43 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 13 Jun 2000 09:25:43 -0500 Subject: 2 Color (1 bit) tiff files Message-ID: In 3.3 I implemented raster classes which allows you to recolor images on-the-fly. Here's an example assuming that 0 is offsite and 1 is data in your tiff images: LAYER NAME rivers DATA rivers.tif TYPE RASTER CLASS EXPRESSION "1" COLOR 0 0 255 END OFFSITE 0 END LAYER NAME roads DATA roads.tif TYPE RASTER CLASS EXPRESSION "1" COLOR 255 0 0 END OFFSITE 0 END I haven't tested this with bit images so let me know if you run into any problems. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Jaroslav Serdula" 06/13/00 07:32AM >>> I have several huge (20 000 x 20 000 pixels) 2 color tiff files that represent different layers (rivers, roads). How can I make MapServer to draw these files in different colors? From hugo at grida.no Tue Jun 13 09:50:00 2000 From: hugo at grida.no (Hugo Ahlenius) Date: Tue, 13 Jun 2000 18:50:00 +0200 Subject: interested... Message-ID: <02c201bfd557$6a1e39a0$40942780@pc801> I am curious in mapserver, capabilities and potential. I have been working in MapObjects w/ VB and feel quite home there, but it is always fun to poke with free software, especially if it can do something I couldnt do before. Here is what I have done; http://128.39.148.64/ This map service uses 24-bit TIFF for the raster data. The legend is NOT created dynamically (would be attractive). Another nice feature is that it shows different degrees of generalization in comparison to zoom level. Can I do the same thing with mapserver? Actually Im leaning towards MoIMS/ArcIMS, since the capabilities would rather be extended... ------------------------------------------------------------- Hugo Ahlenius E-Mail: hugo at grida.no Project Officer Phone: +47 3703 5713 UNEP GRID-Arendal Fax: +47 3703 5050 P.O.Box 1602, N-4801 Arendal Home: +46 708782517 Norway WWW: http://www.grida.no ------------------------------------------------------------- From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Tue Jun 13 09:59:38 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 13 Jun 2000 12:59:38 -0400 Subject: Mapscript & Perl 5.6 Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C06C@s5-ccr-r1> Has mapscript been tested against perl 5.6 ? I just upgraded and am having a problem : Can't locate auto/colorObj/addColor.al in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /home/httpd/cgi-bin/opengis line 104 This error is generated by the line : $map->{imagecolor} = $map->addColor(0,0,255); in my perl code. Am I doing something wrong ? I've used other mapscript methods successfully, like new mapObj and new rectObj, as well as using constants like $mapscript::MS_METERS ... Looks like the problem is with that method specifically ... Oh, BTW, a $mapscript::MS_DEFAULT might be nice too ... Didn't see one mentionned anywhere. Thanks ! Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada (613) 992-4902 From bfraser at geoanalytic.com Tue Jun 13 10:19:47 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 13 Jun 2000 11:19:47 -0600 Subject: some progress building MapScript on NT References: Message-ID: <035f01bfd55b$935f74b0$390002c0@servo> Steve (and list subscribers), I'm using the makefile created by using the command "perl makefile.pl" (I'm using ActivePerl, on NT 4.0. I then do an "nmake" at the command line. I removed the "-nodefaultlib" from the makefile (what a hacker), and now it will compile to a DLL using "nmake". I then did a "nmake install" and it seemed to work (it copied files into the ActivePerl directory and updated some other files). I tried the dump.pl perl script in the mapscript examples directory, and got the following error: Error: Parse Exception When I use perl interactively, and type in the first line of the dump.pl script "use mapscript;" I get the same error as above. So likely some perl file has not been updated properly so it will recognize the mapscript package. Any perl experts out there..? Brent Fraser ----- Original Message ----- From: "Stephen Lime" To: Sent: Tuesday, June 13, 2000 9:11 AM Subject: Re: some progress building MapScript on NT Which makefiles you using and are you using the perl MakeMaker module to build the perl code? I'm a win32 neophyte so how to install the dll is a mystery. A note to the list might help cause I think there are a bunch of people trying to do this same thing. s. >>> "Brent Fraser" 06/13/00 09:24AM >>> Steve, Well, it looks like we won't have to change the variable names (maybe). I edited the Makefile at the line CCFLAGS (approx line 244) and removed -TP and -DPERL_OBJECT. Things compiled alot cleaner, but I still had some unresolved symbols at the linking stage. I added perlCAPI.lib to the list of libaries in perlvars, and inserted #include "perlCAPI.h" into mapscript_wrap.c It compiles and links in the VC++ GUI. I actually get a DLL ! However, on the command line with nmake, the linking stage gives unresolved symbols in regex and proj of "HUGE" and "pctype". I'm not sure if it's worth pursuing since I can use the GUI to produce the DLL. Now that I have a mapscript.dll (the same as mapscript.so in Unix?), what do I do with it (be nice!)? Do I need to place it in the perl dir tree somewhere? Thanks, Brent bfraser at geoanalytic.com GeoAnalytic Inc. #300 , 700 - 4th Avenue SW Calgary, AB T2P 3J4 Tel: (403)213-2700 Fax: (403)213-2707 www.geoanalytic.com From danmo at videotron.ca Tue Jun 13 10:56:18 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Tue, 13 Jun 2000 13:56:18 -0400 Subject: interested... References: <02c201bfd557$6a1e39a0$40942780@pc801> Message-ID: <394675C2.B1B71A41@videotron.ca> Hugo Ahlenius wrote: > > I am curious in mapserver, capabilities and potential. I have been working > in MapObjects w/ VB and feel quite home there, but it is always fun to poke > with free software, especially if it can do something I couldnt do before. > For having used MapObjects IMS myself in the past, I can tell you at least one thing that MapServer does better than MoIMS (and that has frustrated me a lot!): With MapServer, the map slides are guaranteed to contain the RGB colors that you ask for, unless you ask for more than 256 colors which is the limit for GIFs. I don't know if you ever noticed, but the colors that MoIMS gives you come from a fixed palet that will change depending on which applications are running on WinNT server at the time you start up MoIMS... pretty good Eh!?!? Probably something to do with the fact that they use the Windows rendering services. (Without mentioning the fact that you are stuck with JPEG output only unless you pay the Unisys royality) Another point is that as far as I remember MoIMS works the good old CGI way, that means that you need one "print" statement for every line of HTML you want to generate. Being allowed to work with HTML templates would simplify your MoIMS script a lot. I had solved that myself by writing a COM object that did manipulations on an HTML template, and with one single call I could replace a portion of a page with the output from a VB object. This worked very well together with MoIMS and I could make a copy available if you decide to stick with MoIMS. > Here is what I have done; > http://128.39.148.64/ > > This map service uses 24-bit TIFF for the raster data. The legend is NOT > created dynamically (would be attractive). Another nice feature is that it > shows different degrees of generalization in comparison to zoom level. > > Can I do the same thing with mapserver? > Except for the fact that MapServer currently accepts only 8 bit Tiffs at this point, I would think that you should be able to do that. I have to admit that for advanced GIS analysis MoIMS is probably stronger than MapServer, but MapServer does everything you need for simple thematic mapping and navigation. For my part I have switched to MapServer completely and don't see a need to go back to MoIMS! If you're used to scripting your application, you might want to look at MapScript that gives you much more flexibility than the regular MapServer (mapserv.exe). Not sure if the Perl version works on NT yet, but we have a PHP version that works great on NT, see: http://www2.dmsolutions.on.ca/mapserver/php_mapscript_faq.html (FYI, PHP is a bit like Microsoft's .ASP pages and allows you to embed script in an HTML template) OOpps... I was about to forget one more advantage: MapServer is very light. The following demo runs with the PHP MapScript on a Pentium-120 with Linux that's sitting in a corner of our office: http://www2.dmsolutions.on.ca/gmap/gmap75.phtml That machine could hardly run WinNT as a workstation!!! Anyways... just my $0.02! -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pnaciona at gis.umn.edu Tue Jun 13 11:00:39 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Tue, 13 Jun 2000 13:00:39 -0500 Subject: what is class, expression? References: Message-ID: <002b01bfd561$48abb5e0$9a496580@gis.umn.edu> Bernard, The CLASS keyword defines how the layer will be represented in the output (the map and the legend). So, if you have something like... LAYER # start layer defs NAME watershed TYPE POLYGON STATUS ON DATA mjwshed CLASS NAME "Major Watersheds" SYMBOL 0 COLOR 255 0 255 OUTLINECOLOR 0 0 0 END END # layer defs MapServer will draw the map of the watershed polygons in magenta, with black as the outline color (to delineate the boundary of each polygon). It will also create a legend with the name "Major Watersheds" (sans quotes). Here you have created a layer with a single class--much like what you would see when you add a new theme in ArcView. However, you probably would like to give each watershed polygon (catchment, if you prefer) a different color to emphasize their uniqueness (or to separate the different regions, etc.). That's when you need to specify several classes. That's also when you need to use the CLASSITEM and EXPRESSION tags (or keywords, in MapServer-speak). Basically, the CLASSITEM keyword defines which table attribute, and the EXPRESSION keyword defines what attribute values, to use in defining the classes. For example, if the "mjwshed" shapefile (the example data above) has a database with an attribute "Region" with values that define which region each major watershed belongs to, you can use it to define your classes. So, your LAYER definition would then look something like: LAYER # start layer defs NAME watershed TYPE POLYGON STATUS ON DATA mjwshed CLASSITEM "region" CLASS NAME "Upper Mississippi" EXPRESSION "1" SYMBOL 0 COLOR 255 128 128 OUTLINECOLOR 0 0 0 END CLASS NAME "Great Lakes" EXPRESSION "2" SYMBOL 0 COLOR 128 255 128 OUTLINECOLOR 0 0 0 END CLASS NAME "Souris-Red-Rainy" EXPRESSION "3" SYMBOL 0 COLOR 255 128 128 OUTLINECOLOR 0 0 0 END END # layer defs In this example the EXPRESSION keyword uses the values in the "Region" attribute. (Note: this is a simple example and EXPRESSION can have far more advanced uses). I hope my explanations didn't confuse you any further. If you want to see an example, go to http://terrasip.gis.umn.edu/cgi-bin/mapserv?map=/data/projects/avhrr/avhrr_j ava.map&layer=watershed The map you'll see is nearly identical to the output of the example layer definition above. If you want more examples, go to the MapServer tutorial at http://terrasip.gis.umn.edu/projects/tutorial. Good luck! Perry Nacionales ----- Original Message ----- From: "Lap Lo" To: Sent: Saturday, June 10, 2000 11:37 AM Subject: what is class, expression? > Hi, > > I am new to mapserver. I just installed mapserver 3.3. I got a copy of > demo from the web and I have trouble understanding some of the features of > Class Object. > > This is a brief introduction of class object given by mapserver 3.3 > documentation, > > "Used to define thematic classes for a given layer and each (vector) layer > must have at least one class. In cases with more than one class, > membership is determined using attribute values and regular expressions. > Starts with the keyword class and terminates with the > keyword end." > > These are my questions, > > 1) what is the function of a class inside the layer object? > 2) Why do we need more than one class? > 3) Please look at some example code below, > > CLASSITEM usclass > CLASS > NAME "Water & Rivers" > EXPRESSION "421" > COLOR 49 117 185 > BACKGROUNDCOLOR 32 201 201 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "^-" > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END > > a)what is the function of expressions? > b)why do they have some strange values like "421"? Can I say "422"? > > Thanks a lot. > > Bernard > From rday at pa.net Tue Jun 13 11:02:22 2000 From: rday at pa.net (Robert Day) Date: Tue, 13 Jun 2000 14:02:22 -0400 Subject: Logo Message-ID: <00a901bfd561$8a316460$f2281bac@pa.net> Is there a logo for site using the Map Server. I would like to give recognition where it is due. Robert Day robert.day at konsalt.com Konsalt, Ltd. 4902 Carlisle Pike, Box 346 Mechanicsburg, PA 17055 www.konsalt.com 717.677.8311 ph. 717.677.4589 fax 717.877.0015 cell -------------- next part -------------- An HTML attachment was scrubbed... URL: From libmap1 at uconnvm.uconn.edu Tue Jun 13 11:57:39 2000 From: libmap1 at uconnvm.uconn.edu (Patrick McGlamery) Date: Tue, 13 Jun 2000 14:57:39 -0400 Subject: Mapserver compiled for Alpha Message-ID: <39468422.BB0B90DF@uconnvm.uconn.edu> I seem to remember a while back someone mentioned installing Mapserver on an Alpha. I will be installing on an Alpha either Tru64 or Linux. Would anyone out there like to serve as a resource person? Thanks very much, Patrick McGlamery Map librarian UConn MAGIC http://magic.lib.uconn.edu From rob at cabrion.com Tue Jun 13 12:21:58 2000 From: rob at cabrion.com (rob) Date: Tue, 13 Jun 2000 15:21:58 -0400 Subject: Mapscript & Perl 5.6 References: <2951561DB3DDD0118FEC00805FFE98050380C06C@s5-ccr-r1> Message-ID: <001601bfd56c$a50648e0$4100fd0a@cabrion.org> Redo mapscript's "perl Makfile.PL", "make" & "make install" that will do the trick. --rob ----- Original Message ----- From: "Doyon, Jean-Francois" To: Sent: Tuesday, June 13, 2000 12:59 PM Subject: Mapscript & Perl 5.6 > Has mapscript been tested against perl 5.6 ? I just upgraded and am having a > problem : > > Can't locate auto/colorObj/addColor.al in @INC (@INC contains: > /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 > /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 > /usr/lib/perl5/site_perl .) at /home/httpd/cgi-bin/opengis line 104 > > This error is generated by the line : > > $map->{imagecolor} = $map->addColor(0,0,255); > > in my perl code. > > Am I doing something wrong ? I've used other mapscript methods successfully, > like new mapObj and new rectObj, as well as using constants like > $mapscript::MS_METERS ... Looks like the problem is with that method > specifically ... > > Oh, BTW, a $mapscript::MS_DEFAULT might be nice too ... Didn't see one > mentionned anywhere. > > Thanks ! > > Jean-Francois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Natural Resources Canada > (613) 992-4902 > From steve.lime at dnr.state.mn.us Tue Jun 13 12:11:22 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 13 Jun 2000 14:11:22 -0500 Subject: interested... Message-ID: I never like to get info feature matches with ESRI. They have good software, we're an ESRI shop except for the Internet stuff. Can your interface be replicated? (nice job by the way) Sure. MapServer does not support 24-bit TIFF but other than that it looks straight forward enough. Things like scale dependent layer display are standard features. MapServer has always had a nice niche- UNIX, particularly and Apache and this continues with support of scripting languages like perl and python. The scripting support really extends MapServer capabilities to a new level. There are just some things you can't do with ESRI products but can with MapServer. The reverse holds true as well. Of course $'s play a role as well. Other users might have ESRI/MapServer experiences to share as well. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Hugo Ahlenius" 06/13/00 11:50AM >>> I am curious in mapserver, capabilities and potential. I have been working in MapObjects w/ VB and feel quite home there, but it is always fun to poke with free software, especially if it can do something I couldnt do before. Here is what I have done; http://128.39.148.64/ This map service uses 24-bit TIFF for the raster data. The legend is NOT created dynamically (would be attractive). Another nice feature is that it shows different degrees of generalization in comparison to zoom level. Can I do the same thing with mapserver? Actually Im leaning towards MoIMS/ArcIMS, since the capabilities would rather be extended... ------------------------------------------------------------- Hugo Ahlenius E-Mail: hugo at grida.no Project Officer Phone: +47 3703 5713 UNEP GRID-Arendal Fax: +47 3703 5050 P.O.Box 1602, N-4801 Arendal Home: +46 708782517 Norway WWW: http://www.grida.no ------------------------------------------------------------- From steve.lime at dnr.state.mn.us Tue Jun 13 12:18:55 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 13 Jun 2000 14:18:55 -0500 Subject: Mapscript & Perl 5.6 Message-ID: I have not tested it. The MapScript interface file (mapscript.i) probably needs to be re-SWIGed with the new version of Perl. It may be that SWIG has not added any changes made to Perl internals in 5.6. Only way to know would be to load the latest version of SWIG (www.swig.org), I think 1.3a2 is ok. I'll try this from home tonite, but feel free to try yourself. I'll try dropping a note to the SWIG mailing list to see if all is well. BTW You did re-install mapscript with perl 5.6? Steve >>> "Doyon, Jean-Francois" 06/13/00 11:59AM >>> Has mapscript been tested against perl 5.6 ? I just upgraded and am having a problem : Can't locate auto/colorObj/addColor.al in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /home/httpd/cgi-bin/opengis line 104 This error is generated by the line : $map->{imagecolor} = $map->addColor(0,0,255); in my perl code. Am I doing something wrong ? I've used other mapscript methods successfully, like new mapObj and new rectObj, as well as using constants like $mapscript::MS_METERS ... Looks like the problem is with that method specifically ... Oh, BTW, a $mapscript::MS_DEFAULT might be nice too ... Didn't see one mentionned anywhere. Thanks ! Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada (613) 992-4902 From teb at mallit.fr.umn.edu Tue Jun 13 14:00:46 2000 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 13 Jun 2000 16:00:46 -0500 (CDT) Subject: Logo Message-ID: <200006132100.QAA23113@mallit.fr.umn.edu> Steve has asked for suggestions for a "Powered by MapServer" logo. We have not developed one at this point. It is very important to us from reporting and funding of continued development perspectives that developers give the recognition you suggest. At this point the words "University of Minnesota MapServer" (I'd say U of M MapServer but we've been misidentified as University of Michigan on a couple occasions :>) ) with a link to the MapServer Web site is the best solution. Thanks, TOm ======================= Dr. Thomas E. Burk University of Minnesota 1530 Cleveland Avenue North St. Paul, MN 55108 612-624-6741 612-625-5212 (FAX) tburk at forestry.umn.edu >From: "Robert Day" >To: >Subject: Logo >Date: Tue, 13 Jun 2000 14:02:22 -0400 >MIME-Version: 1.0 >X-Priority: 3 >X-MSMail-Priority: Normal >X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 > >Is there a logo for site using the Map Server. I would like to give recognition where it is due. > > > >Robert Day >robert.day at konsalt.com >Konsalt, Ltd. >4902 Carlisle Pike, Box 346 >Mechanicsburg, PA 17055 > >www.konsalt.com >717.677.8311 ph. >717.677.4589 fax >717.877.0015 cell > > From steve.lime at dnr.state.mn.us Tue Jun 13 13:54:51 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 13 Jun 2000 15:54:51 -0500 Subject: Mapserver compiled for Alpha Message-ID: We've got it running here on an alpha with redhat 6 something. Compiled out-of-the-box with no problems. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Patrick McGlamery 06/13/00 01:57PM >>> I seem to remember a while back someone mentioned installing Mapserver on an Alpha. I will be installing on an Alpha either Tru64 or Linux. Would anyone out there like to serve as a resource person? Thanks very much, Patrick McGlamery Map librarian UConn MAGIC http://magic.lib.uconn.edu From aborruso at spaziogis.it Wed Jun 14 06:42:18 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Wed, 14 Jun 2000 15:42:18 +0200 Subject: what is "^-"????? Message-ID: Dear mapserver users, I have seen in the template file of "http://mapserver.gis.umn.edu/cgi-bin/mapserv?map =%2Fms_demo%2Fdemo.map&layer=lakes&layer=streams&zoomsize=2" a string like "^-". What does it mean? It's exactly: CLASS EXPRESSION "^-" COLOR 255 0 0 OUTLINECOLOR 0 0 0 END Thank you, Andrea From steve.lime at dnr.state.mn.us Wed Jun 14 06:48:27 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 14 Jun 2000 08:48:27 -0500 Subject: what is "^-"????? Message-ID: In 3.2 "^-" is a regular expression that means anything starting with a minus sign, (i.e. negative numbers). In 3.3 the syntax for denoting regular expressions has changed slightly so this would be written as /^-/ now. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 06/14/00 08:42AM >>> Dear mapserver users, I have seen in the template file of "http://mapserver.gis.umn.edu/cgi-bin/mapserv?map =%2Fms_demo%2Fdemo.map&layer=lakes&layer=streams&zoomsize=2" a string like "^-". What does it mean? It's exactly: CLASS EXPRESSION "^-" COLOR 255 0 0 OUTLINECOLOR 0 0 0 END Thank you, Andrea From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Jun 14 07:33:23 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 14 Jun 2000 10:33:23 -0400 Subject: Mapscript & Perl 5.6 Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C06F@s5-ccr-r1> Yes I installed the new perl from scratch, so I had to rebuild mapscript after that, the compile/build process went without a hitch. (I however did not rebuild the mapserv binary, which I don't even use right now anyways, but that should'nt change anything to do with mapscript, right ?) Turns out the problem may or may not be with the addColor method. I used the method successfully elsewhere in the script (with classes), so it seems the problem is showing up specifically in relation to the $map->{imagecolor} property. Any ideas ? Also : Is there anyway to pass the shadeset,lineset and markerset through mapscript ? I haven't been un-successfull so far, and would like to be able to get rid of the map file all together .... Thanks ! J.F. > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Tuesday, June 13, 2000 3:18 PM > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; > mapserver-users at lists.gis.umn.edu > Subject: Re: Mapscript & Perl 5.6 > > I have not tested it. The MapScript interface file (mapscript.i) probably > needs to be re-SWIGed > with the new version of Perl. It may be that SWIG has not added any > changes made to Perl > internals in 5.6. Only way to know would be to load the latest version of > SWIG (www.swig.org), > I think 1.3a2 is ok. I'll try this from home tonite, but feel free to try > yourself. I'll try dropping a > note to the SWIG mailing list to see if all is well. > > BTW You did re-install mapscript with perl 5.6? > > Steve > > >>> "Doyon, Jean-Francois" 06/13/00 > 11:59AM >>> > Has mapscript been tested against perl 5.6 ? I just upgraded and am having > a > problem : > > Can't locate auto/colorObj/addColor.al in @INC (@INC contains: > /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 > /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 > /usr/lib/perl5/site_perl .) at /home/httpd/cgi-bin/opengis line 104 > > This error is generated by the line : > > $map->{imagecolor} = $map->addColor(0,0,255); > > in my perl code. > > Am I doing something wrong ? I've used other mapscript methods > successfully, > like new mapObj and new rectObj, as well as using constants like > $mapscript::MS_METERS ... Looks like the problem is with that method > specifically ... > > Oh, BTW, a $mapscript::MS_DEFAULT might be nice too ... Didn't see one > mentionned anywhere. > > Thanks ! > > Jean-Francois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Natural Resources Canada > (613) 992-4902 > > From ddnebert at usgs.gov Wed Jun 14 08:52:09 2000 From: ddnebert at usgs.gov (Doug Nebert) Date: Wed, 14 Jun 2000 11:52:09 -0400 Subject: Finding files Message-ID: <3947AA29.2030400@usgs.gov> I am porting my mapserver application (the global map viewer) from Linux to NT and am running into some permissions problem that yields the follwoing error when advancing beyond the first page. The first HTML page is found as is the applet, but nothing more. From IIS: "403.2 Forbidden: Read Access Forbidden This error can be caused if there is no default page available and directory browsing has not been enabled for the directory, or if you are trying to display an HTML page that resides in a directory marked for Execute or Script permissions only." My global.html and global_template.html are in wwwroot My .map file and data are pathed elsewhere (H:\global) How do I "enable" which directories? Is there a possible problem with forward versus backslashes in the declaration of file locations in the various files? The interface is at http://130.11.52.184/global.html Help appreciated. -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From aborruso at spaziogis.it Wed Jun 14 09:15:43 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Wed, 14 Jun 2000 18:15:43 +0200 Subject: I'm not able to see my zoomed image!!! Message-ID: I'm working under NT with ms_3.3.009_win32. I have builded a page with only one layer: a tif image. When I open my page (http://mapserver/mapserv.exe?map=c:%5Cinetpub%5Cwwwroot%5Ccgi-bin%5Craster.map&layer=landsat&zoomsize=2) I see everything in correct manner, but when I zoom I see only my correcct scalebar and my correct reference image, but I don't see my zoomed map. What's wrong?? This is my map file: NAME raster1 EXTENT 92994 944996 94003 946002 SIZE 300 300 SHAPEPATH "ms_demo/data" UNITS METERS WEB TEMPLATE ms_demo/raster.htm IMAGEPATH "ms_demo/data/tmp/" IMAGEURL "ms_demo/data/tmp/" END SCALEBAR STATUS ON INTERVALS 4 SIZE 200 2 COLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS meters LABEL COLOR 0 0 0 SIZE small END END REFERENCE STATUS ON IMAGE ms_demo/data/bcs156.gif SIZE 150 150 EXTENT 92994 944996 94003 946002 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END LAYER NAME landsat TYPE RASTER STATUS ON DATA bcs156.tif OFFSITE 0 END END And this is my template file:

 


Map Controls

Set your zoom option:

Thank you, Andrea From bfraser at geoanalytic.com Wed Jun 14 09:24:03 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 14 Jun 2000 10:24:03 -0600 Subject: Finding files References: <3947AA29.2030400@usgs.gov> Message-ID: <003b01bfd61c$f47267f0$390002c0@servo> Doug, Try changing your HTML from
to Brent ----- Original Message ----- From: "Doug Nebert" To: Sent: Wednesday, June 14, 2000 9:52 AM Subject: Finding files > I am porting my mapserver application (the global map viewer) from Linux > to NT and am running into some permissions problem that yields the > follwoing error when advancing beyond the first page. The first HTML > page is found as is the applet, but nothing more. From IIS: > > "403.2 Forbidden: Read Access Forbidden > This error can be caused if there is no default page available and > directory browsing has not been enabled for the directory, or if you are > trying to display an HTML page that resides in a directory marked for > Execute or Script permissions only." > > My global.html and global_template.html are in wwwroot > My .map file and data are pathed elsewhere (H:\global) > How do I "enable" which directories? > > Is there a possible problem with forward versus backslashes in the > declaration of file locations in the various files? > > The interface is at http://130.11.52.184/global.html > > Help appreciated. > > -- > Douglas D. Nebert > Geospatial Data Clearinghouse Coordinator > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html > From bfraser at geoanalytic.com Wed Jun 14 09:36:03 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 14 Jun 2000 10:36:03 -0600 Subject: I'm not able to see my zoomed image!!! References: Message-ID: <004c01bfd61e$a1c6b360$390002c0@servo> You need to make sure mapserv.exe is putting the images in a directory accessible to your web server. For example, my map files contains: WEB IMAGEPATH "/Program Files/Apache Group/Apache/htdocs/mapserv3.3/tmp/" IMAGEURL "/mapserv3.3/tmp/" : Notice how the value for IMAGEURL is the last two dirs of IMAGEPATH (and it is relative to the web server's "document-root" of /Program Files/Apache Group/Apache/htdocs) Brent ----- Original Message ----- From: To: Sent: Wednesday, June 14, 2000 10:15 AM Subject: I'm not able to see my zoomed image!!! > I'm working under NT with ms_3.3.009_win32. I have builded a page with only > one layer: a tif image. When I open my page > (http://mapserver/mapserv.exe?map=c:%5Cinetpub%5Cwwwroot%5Ccgi-bin%5Craster. map&layer=landsat&zoomsize=2) > > I see everything in correct manner, but when I zoom I see only my correcct > scalebar and my correct reference image, but I don't see my zoomed map. > What's wrong?? > This is my map file: > > NAME raster1 > EXTENT 92994 944996 94003 946002 > SIZE 300 300 > SHAPEPATH "ms_demo/data" > UNITS METERS > > WEB > TEMPLATE ms_demo/raster.htm > IMAGEPATH "ms_demo/data/tmp/" > IMAGEURL "ms_demo/data/tmp/" > END > > SCALEBAR > STATUS ON > INTERVALS 4 > SIZE 200 2 > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS meters > LABEL > COLOR 0 0 0 > SIZE small > END > END > > > REFERENCE > STATUS ON > IMAGE ms_demo/data/bcs156.gif > SIZE 150 150 > EXTENT 92994 944996 94003 946002 > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END > > > LAYER > NAME landsat > TYPE RASTER > STATUS ON > DATA bcs156.tif > OFFSITE 0 > END > END > > > And this is my template file: > > > > > > > > > > >

 

> > > > > > > > > >
>

> >

>


>

>
> Map Controls >

> Set your zoom option:
> >

>

> > > > > > > > > Thank you, > > Andrea > From steve.lime at dnr.state.mn.us Wed Jun 14 10:03:27 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 14 Jun 2000 12:03:27 -0500 Subject: Burnett Catchment Web GIS Message-ID: Looks pretty nice to me. Mouse images are a bit distracting and seemed to lag behind the cursor at times. Anyone know if it's possible to change the actual cursor using java? Could you ellaborate on the project a bit? What other types of solutions had you looked at if any? What process did you go through in designing the interface? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 06/12/00 11:43PM >>> Ross Searle and myself have finally cut through the redtape and put our demo on an external server. Please have a look if you're at all interested. We will add more datasets as time goes by, we just wanted to get it published for the time being. Any feedback will also be appreciated. > http://www.dnr.qld.gov.au/resourcenet/land/lris/webgis/burnett/ > > It's a bit hard to locate without this link at the moment, as the > adjoining pages haven't been updated. This will hopefully happen shortly. > > Please take the time to have a look and a play, there's a tutorial > provided from the intro page to give you some idea of the functionality. > Any feedback is appreciated - be it alternative datasets that might be > applicable, or even a new colour scheme. I'm interested in getting all the > feedback I can. > > I look forward to hearing from you all soon. > > Rob. > > > Robin Ellis > Land Resources Officer > Department of Natural Resources > Burnett District > ph: 07 4153 7843 > fax: 07 4153 7823 > Robin.Ellis at dnr.qld.gov.au > From aborruso at spaziogis.it Thu Jun 15 10:25:56 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Thu, 15 Jun 2000 19:25:56 +0200 Subject: Create an url from a map!! Message-ID: How is it possible (without Java) to click in a map and go to an url? I have seen http://www.dnr.state.mn.us/compass/ and it makes this work; I check the query box and I have (in example) http://www.dnr.state.mn.us/fish_and_wildlife/sna/sna02005.html. If is it possible I would like to see template and map files. Thank you very much, Andrea From steve.lime at dnr.state.mn.us Thu Jun 15 10:26:12 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 15 Jun 2000 12:26:12 -0500 Subject: Create an url from a map!! Message-ID: Here's the compass template and mapfile. This is now a production 3.3 interface... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 06/15/00 12:25PM >>> How is it possible (without Java) to click in a map and go to an url? I have seen http://www.dnr.state.mn.us/compass/ and it makes this work; I check the query box and I have (in example) http://www.dnr.state.mn.us/fish_and_wildlife/sna/sna02005.html. If is it possible I would like to see template and map files. Thank you very much, Andrea -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: compass.map URL: From michalak at hwr.arizona.edu Fri Jun 16 13:53:59 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Fri, 16 Jun 2000 13:53:59 -0700 (MST) Subject: drawLegend() and drawScalebar() Message-ID: I'm getting a segmentation fault for both drawLegend() and drawScalebar(). My code is: $legendImg = $map->drawLegend(); $scalebarImg = $map->drawScalebar(); Should these methods work on thier own, or do I need to call something else first like drawLabelCache(image)? ($map is a working mapObj) I'm also having trouble with queryUsingRect(rect) and queryUsingPoint(). Has anyone had success with these methods? If so, would you mind sending code examples? Thanks! -zm From michalak at hwr.arizona.edu Fri Jun 16 13:57:30 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Fri, 16 Jun 2000 13:57:30 -0700 (MST) Subject: PHP Module (was: drawing on top of maps) In-Reply-To: <392C0BD1.837ACA95@videotron.ca> Message-ID: Could someone please explain how to draw on top of maps using mapscript? On Wed, 24 May 2000, Daniel Morissette wrote: > John Carlson wrote: > > > > I was able to create maps and draw on top of them using > > mapscript, but now I am wondering how to incorporate > > this functionality into mapserv (a web page). Is there some hook into > > mapserver that I can define my own mapscript program to generate > > the gif file? This seems like a very easy thing to hook into > > the template file (have a path to a mapscript program instead > > [img]????). Has anyone done this? I'm using 3.3.009 > > > > I guess it's time to make an official announcement for the PHP/MapScript > module... > > PHP combined with the new PHP/MapScript module would allow you to do > exactly what you ask here. If you know Perl already, PHP should not be > too hard to learn and you should get the same functionality from the PHP > MapScript module that you used to get from the Perl MapScript module > (Except for a couple of functions that are not implemented yet). > > > The PHP module is now available on the CVS server at UMN under > mapserver/mapscript/php3/. I expect it to be included in the next > source code release of MapServer (version 3.3.011). > > WinNT users can download a pre-compiled version of PHP3_MAPSCRIPT.DLL > from > http://www2.dmsolutions.on.ca/mapserver/php3_mapscript_dll-20000524.zip > and Unix users will have to get the source from the CVS server and > compile it. > > I have started a FAQ for the PHP/MapScript module. > http://www2.dmsolutions.on.ca/mapserver/php_mapscript_faq.html > > At this point it contains pointers to the information you need to get > started (compile and install the PHP module), and I expect that it will > grow as we get feedback from users. > > Enjoy! > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > > From Robin.Ellis at dnr.qld.gov.au Sun Jun 18 19:42:39 2000 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Mon, 19 Jun 2000 12:42:39 +1000 Subject: Burnett Catchment Web GIS Message-ID: Thanks Steve. I'll try to elaborate a little on what we're trying to achieve with Mapserver. Ross Searle (Ross.Searle at dnr.qld.gov.au) and myself work on a project that is attempting to get some of our existing land resource information out to the community in a format that is easy to use and understand in a spatial sense. Most of our historical datasets have been traditionally stored as codes with accompanying technical documents and references. We've tried to use Mapserver combined with mSQL as a database management system (www.hughes.com.au) to deliver interpreted information combined with a real world feel. We're also combining images and other multi-media, just to enhance the appeal the system to a broader audience. We're currently restricted to a small area geographically by reliance on external funding. We'd like to extend both the geographical region covered and the datasets incorporated, but we have to firstly prove that information presented in this manner is useful and effective method. Ross has done most of the work on the operatin of the interface. I've decided to keep large operational images at this time (eg zoom in button), as we are potentially dealing with individual clients who have never used GIS, and perhaps would not be familiar with traditional operators. Again, the check boxes and radio buttons for layer and query control are aimed simply at creating the least amount of confusion possible. I realise we have restricted ourselves to querying just 1 layer at a time, but am happy to accept that at this time. Mapserver was chosen for probably the same reasons everybody else is using it. It flexible to suit a lot of needs, there's plenty of people around willing to help out and give advice, and the cost really suits those of us battling with ever decreasing government budgets! It's also pretty easy to pick up the basic concepts - I have no Web background, but from a fairly rudimentary knowledge of GIS I was able to pick up the basics of Mapserver quickly, and I'm finding more people in my situation starting to do the same. That's really about it. I would appreciate any feedback or queries from anybody. I apologise for any technical difficulties people have encountered trying to access the site. We're trying to make it a bit easier to find, but the wheels sometimes turn slowly. Please do have and a look and tell us what you think. http://www.dnr.qld.gov.au/resourcenet/land/lris/webgis/burnett/ Thanks. Rob. -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Thursday, 15 June 2000 3:03 To: Robin.Ellis at dnr.qld.gov.au; mapserver-users at lists.gis.umn.edu Subject: Re: Burnett Catchment Web GIS Looks pretty nice to me. Mouse images are a bit distracting and seemed to lag behind the cursor at times. Anyone know if it's possible to change the actual cursor using java? Could you ellaborate on the project a bit? What other types of solutions had you looked at if any? What process did you go through in designing the interface? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 06/12/00 11:43PM >>> Ross Searle and myself have finally cut through the redtape and put our demo on an external server. Please have a look if you're at all interested. We will add more datasets as time goes by, we just wanted to get it published for the time being. Any feedback will also be appreciated. > http://www.dnr.qld.gov.au/resourcenet/land/lris/webgis/burnett/ > > It's a bit hard to locate without this link at the moment, as the > adjoining pages haven't been updated. This will hopefully happen shortly. > > Please take the time to have a look and a play, there's a tutorial > provided from the intro page to give you some idea of the functionality. > Any feedback is appreciated - be it alternative datasets that might be > applicable, or even a new colour scheme. I'm interested in getting all the > feedback I can. > > I look forward to hearing from you all soon. > > Rob. > > > Robin Ellis > Land Resources Officer > Department of Natural Resources > Burnett District > ph: 07 4153 7843 > fax: 07 4153 7823 > Robin.Ellis at dnr.qld.gov.au > From steve.lime at dnr.state.mn.us Mon Jun 19 09:33:05 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 19 Jun 2000 11:33:05 -0500 Subject: MapServer 3.3.011 update.... Message-ID: No, it's not quite ready. I just wanted to bring people up to date with the timetable for the next release. I'm looking at the 1st week in July for the official release. Lot's of cool stuff including: - mapfile writing (CGI/MapScript) - autoconf support - Win32 Makefiles - initial PHP/MapScript release - alpha ESRI SDE support - lots of bug fixes etc... In addition I'll release a new demo tailored especially for 3.3. The website is being refurbished and all documentation is being brought inline with the 3.3.011 release. I'll also post new versions of my mapplet for adding box zooms, busy images and optionally XML-based image maps to MapServer applications. Special thanks to Dan Morissette for including PHP/MapScript, autoconf and their Win32 configuration information. Anyway, keep an eye out... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From vanderwalm at peligroso.gaiaenv.com Mon Jun 19 12:58:12 2000 From: vanderwalm at peligroso.gaiaenv.com (vanderwalm at peligroso.gaiaenv.com) Date: Mon, 19 Jun 2000 13:58:12 -0600 Subject: Tiling data Message-ID: <394E7B54.18E98A8@gaiaenv.com> I am having difficulty accessing tiled data. When I attempt to use my map file, I get an error: msOpenSHPFile(): Unable to access file. (tile). My understanding is that this means MapServer is not finding my tile index layer (tile.shp), which is located within the SHAPEPATH directory. I have tried setting my MapObject's TILE keyword to the same as SHAPEPATH, tried commenting it out, and tried every variation I could thing of in conjunction with the LayerObject's TILEINDEX keyword. My question is: with my tile index shapefile located in my SHAPEPATH directory, how do I tell MapServer where it is using the MapObject's TILE keyword and the LayerObject's TILEINDEX keyword? Any suggestions or ideas greatly appreciated. Thanks, Mel From steve.lime at dnr.state.mn.us Mon Jun 19 13:38:05 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 19 Jun 2000 15:38:05 -0500 Subject: Tiling data Message-ID: The map object TILE parameter really has nothing to do with layer tiling. It's actually a hold over from early MapServer versions. It's used when you want to apply a given interface to distinct datasets (i.e. groups of shapefiles) that are organized by directory. In general it's not used much anymore. Don't set the map object TILE parameter at all unless you're sure you need it. You need to use the layer object TILEINDEX and TILEITEM parameters and that's it. If the TILEINDEX is in SHAPEPATH then setting TILEINDEX "tile" should suffice (note the quotes since tile is a keyword). Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 06/19/00 02:58PM >>> I am having difficulty accessing tiled data. When I attempt to use my map file, I get an error: msOpenSHPFile(): Unable to access file. (tile). My understanding is that this means MapServer is not finding my tile index layer (tile.shp), which is located within the SHAPEPATH directory. I have tried setting my MapObject's TILE keyword to the same as SHAPEPATH, tried commenting it out, and tried every variation I could thing of in conjunction with the LayerObject's TILEINDEX keyword. My question is: with my tile index shapefile located in my SHAPEPATH directory, how do I tell MapServer where it is using the MapObject's TILE keyword and the LayerObject's TILEINDEX keyword? Any suggestions or ideas greatly appreciated. Thanks, Mel From Robin.Ellis at dnr.qld.gov.au Tue Jun 20 18:33:24 2000 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Wed, 21 Jun 2000 11:33:24 +1000 Subject: difficulties with Burnett Web GIS Message-ID: A couple of people have had difficulty accessing the site that I sent around the other day. We think we've tracked down the problem and solved it. Sorry if I caused any inconvenience. Please do have a look at the site and pass on some feedback if you get a chance. http://www.dnr.qld.gov.au/resourcenet/land/lris/webgis/burnett/ Thanks Rob Robin Ellis Land Resources Officer Department of Natural Resources Burnett District ph: 07 4153 7843 fax: 07 4153 7823 Robin.Ellis at dnr.qld.gov.au From aborruso at spaziogis.it Wed Jun 21 00:47:03 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Wed, 21 Jun 2000 09:47:03 +0200 Subject: Where the temp files?? Message-ID: Do the temp files must be in the folder (or subfolder) of cgi application??? If no, how can I configure mapserver?? Thank you, Andrea --------------------------------------------- Andrea Borruso Nadir s.n.c. Tel 091580305 interno 218 Fax 0916124646 email: aborruso at spaziogis.it www.spaziogis.it --------------------------------------------- From bfraser at geoanalytic.com Wed Jun 21 06:53:23 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 21 Jun 2000 07:53:23 -0600 Subject: Where the temp files?? References: Message-ID: <000e01bfdb88$1161f1d0$390002c0@servo> Use the IMAGEPATH (and IMAGEURL) in the map file to specify the location of the "temp" directory for storing the images mapserver creates. Have a look at the documentation at http://mapserver.gis.umn.edu/mapfile.html for more information. Hope this helps... Brent Fraser ----- Original Message ----- From: To: Sent: Wednesday, June 21, 2000 1:47 AM Subject: Where the temp files?? > Do the temp files must be in the folder (or subfolder) of cgi > application??? If no, how can I configure mapserver?? > > Thank you, > > Andrea > > > > > > > > > --------------------------------------------- > Andrea Borruso > > Nadir s.n.c. > Tel 091580305 interno 218 > Fax 0916124646 > email: aborruso at spaziogis.it > www.spaziogis.it > --------------------------------------------- > From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Jun 21 09:58:00 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 21 Jun 2000 12:58:00 -0400 Subject: MapScript & Class expressions Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C08A@s5-ccr-r1> I'm trying to create expression based classes, but not having much luck ... The rest of the code works fine, but for these two lines : $map->{classitem} = '$variable'; and $class->{expression} = '$variable'; These two lines are not next to each other, but of course that doesn't really matter. The core of the problem is this : Undefined subroutine &mapscriptc::classObj_expression_set called at /usr/lib/perl5/site_perl/5.6.0/i386-linux/mapscript.pm line 735. Is this a compatiblity issue with perl 5.6 ? Or are expression defined in a different way ? Thanks ! Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada (613) 992-4902 From bfraser at geoanalytic.com Wed Jun 21 13:01:06 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 21 Jun 2000 14:01:06 -0600 Subject: Tiled Data and Queries References: <4C1E2651.3A2576EF@gaiaenv.com> Message-ID: <081401bfdbbb$6fd9df60$390002c0@servo> Steve (and others), I'd like to add my vote for querying tiled layers... Brent Fraser bfraser at geoanalytic.com GeoAnalytic Inc. ----- Original Message ----- From: "Jim T. Bowen (GAIA Consultants Inc.)" To: "MapServer" Sent: Sunday, June 20, 2010 8:31 AM Subject: Tiled Data and Queries > Hi all, > > It would be nice to be able to query tiled data. > > Right now we are adding a monster theme as a queryonly layer in addition > to individual tiles. It works; however, it can be quite slow. When I > have a moment, I will explore a better option...it should be fairly > straight forward. > > Steve, any plans to incorporate querying tiled data in the next release > (please, please) :) > > > Cheers, > Jim From bertha_bonita at yahoo.com Wed Jun 21 13:16:25 2000 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Wed, 21 Jun 2000 13:16:25 -0700 (PDT) Subject: PERL,PHP,CGI Message-ID: <20000621201625.18402.qmail@web4203.mail.yahoo.com> hello i need know the diference betweem PHP,PERL and CGI what's better?.. where can i found information?, i would like learn PHP and PERL but the link in the mapserver page " not found" what is more comfortable for using wtih mapserver? Why? i'm waiting for a soon answer ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Send instant messages with Yahoo! Messenger. http://im.yahoo.com/ From b-8 at gmx.de Wed Jun 21 15:00:03 2000 From: b-8 at gmx.de (b-8 at gmx.de) Date: Thu, 22 Jun 2000 00:00:03 +0200 (MEST) Subject: itemquery Message-ID: <6635.961624803@www9.gmx.net> Hi, I'm playing around with the itemquery stuff and it works fine so far. My only problem at this time is that the text search is case sensitive. Is there a possibility to tell mapserver to ignore the case ? thanks in advance Michael -- Sent through Global Message Exchange - http://www.gmx.net From steve.lime at dnr.state.mn.us Wed Jun 21 18:09:25 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 21 Jun 2000 20:09:25 -0500 Subject: itemquery Message-ID: Itemquery uses regular expression for determining matches. I hope to make itemquery more like expressions in the variety supported. For now you'd have to create case insensitive regex's to send as values for itemquery. Should be doable with javascript for preprocessing. Itemqueries can easily be mimiced, with much more flexibility, using xbase modules of popular scripting languages and a tiny bit of mapscript if necessary. Steve <<< 6/21 5:02p >>> Hi, I'm playing around with the itemquery stuff and it works fine so far. My only problem at this time is that the text search is case sensitive. Is there a possibility to tell mapserver to ignore the case ? thanks in advance Michael -- Sent through Global Message Exchange - http://www.gmx.net From b-8 at gmx.de Wed Jun 21 19:59:18 2000 From: b-8 at gmx.de (b-8 at gmx.de) Date: Thu, 22 Jun 2000 04:59:18 +0200 (MEST) Subject: itemquery References: <6298.961641503@www19.gmx.net> Message-ID: <11639.961642758@www19.gmx.net> Hi, thanx, it worked. I tried (w|W)(a|A)(c|C)(o|O)(n|N)(i|I)(a|A) instead of Waconia in my lake search, and it worked ... cool :o) I'm not familar with regex, so maybe there is a simpler regex out there to achieve the same (?) thanx again Michael > Itemquery uses regular expression for determining matches. I hope to > make itemquery more like expressions in the variety supported. For now you'd > have to create case insensitive regex's to send as values for itemquery. > Should be doable with javascript for > > Itemqueries can easily be mimiced, with much more flexibility, using > xbase modules of popular scripting languages and a tiny bit of mapscript if > necessary. > > Steve > > <<< 6/21 5:02p >>> > Hi, > > I'm playing around with the itemquery stuff and it works fine > so far. My only problem at this time is that the text search is case > sensitive. > Is there a possibility to tell mapserver to ignore the > case ? > > thanks in advance > Michael > > -- > Sent through Global Message Exchange - http://www.gmx.net -- Sent through Global Message Exchange - http://www.gmx.net From loszi at gyor-ph.hu Thu Jun 22 06:12:37 2000 From: loszi at gyor-ph.hu (Lovas Szilard) Date: Thu, 22 Jun 2000 15:12:37 +0200 Subject: label error? Message-ID: <395210C5.521F8E43@gyor-ph.hu> Hi! I'm trying to make a city map with street labeling. When a label is rotated, it's appear on wrong place (not far from good place). The distance is depends on rotation angle (if angle is 0, then no distance) I use truetype fonts (of course), and the spatial data come from mapinfo converted with universal translator (part of mapinfo). When i see the converted shp file with arcview it's ok. Have you any deal? Thank You: Lovas Szilard From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Jun 22 07:22:13 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 22 Jun 2000 10:22:13 -0400 Subject: labelObj in mapscript ? Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C08D@s5-ccr-r1> Exactly how are Label Objects handled with mapscript ? I don't see any labelObj type method defined in the docs ... I'm trying to put labels together for a class for an annotation type layer ... (Cites w/ names) Or ar the Label parameters just part of the class ? can I go $class->{type} = 'Bitmap' ? Thanks, Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada (613) 992-4902 From steve.lime at dnr.state.mn.us Thu Jun 22 08:43:16 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 22 Jun 2000 10:43:16 -0500 Subject: labelObj in mapscript ? Message-ID: Since there are no formal methods for label objects most of the documentation is simply the labelObj parameters in the map file docs. Labels are part of classes, scalebar and legend objects and are accessed through those. Syntax is simple: $class->{label}->{size} = 12; $map->{scalebar}->{label}->{color} = $map->addColor(0,0,0); There are 2 exceptions to the params in the mapfile docs, ANGLE and MINFEATURESIZE when using the AUTO keyword. Instead use: $class->{label}->{autoangle} = 1; $class->{label}->{autominfeaturesize} = 1; Will add this to the new site... Steve >>> "Doyon, Jean-Francois" 06/22/00 09:22AM >>> Exactly how are Label Objects handled with mapscript ? I don't see any labelObj type method defined in the docs ... I'm trying to put labels together for a class for an annotation type layer ... (Cites w/ names) Or ar the Label parameters just part of the class ? can I go $class->{type} = 'Bitmap' ? Thanks, Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada (613) 992-4902 Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Jun 22 11:56:20 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 22 Jun 2000 14:56:20 -0400 Subject: labelObj in mapscript ? Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C08F@s5-ccr-r1> Thanks a bunch ... Now, I'm just stumped ... I've setup a system where the mapfile type parameters are now stored in a database (At least all the ones that I can). So it cycles through the database, determining classes and labels and so on .. It's been working well so far. I've managed to color all canadian provinces and territories using a classitem and an expression, and storing all the classes in the DB and so on. Now I'm trying to generate an annotation layer that is the city names, but I'm having no luck, the labels simply won't draw it seems, and I'm running out of ideas as to why this might be ... Assuming the back end data is correct (which it IS !), can anybody find a problem with the code below ? It's fairly straightforward ... I know it's ugly, I'm just toying around for now, the production version will be much nicer :) I've commented some lines of code as well , meaning I've toyed around with them without success ... Any help would be greatly appreciated ! oh BTW, I'm using a nightly build from a couple of nights ago, and $class->{label}->{backgroundcolor} does not seem to "exist" ... J.F. sub getmap { checklayers(); checksrs(); checkformat(); $map = new mapObj('/home/mapdata/canada/perltest.map'); $map->{name} = 'Test'; $map->{status} = $mapscript::MS_ON; $map->{height} = $height; $map->{width} = $width; $map->{interlace} = $mapscript::MS_OFF; $map->{transparent} = $mapscript::MS_OFF; $map->{shapepath} = 'data'; $map->{imagecolor}->{red} = 255; $map->{imagecolor}->{green} = 255; $map->{imagecolor}->{blue} = 255; my $ext = new rectObj(); my @bb = split(/,/,$bbox); $ext->{minx} = $bb[0]; $ext->{miny} = $bb[1]; $ext->{maxx} = $bb[2]; $ext->{maxy} = $bb[3]; $map->{extent} = $ext; $map->{units} = $mapscript::MS_METERS; foreach ( @reqlayer ) { $res = $conn->exec("SELECT id,data,type,classitem,labelitem FROM layers WHERE name='$_'"); my @laydata = $res->fetchrow; $layer = new layerObj($map); $layer->{name} = $_; if ( $laydata[2] eq "p" ) { $layer->{type} = $mapscript::MS_POLYGON } elsif ( $laydata[2] eq "l" ) { $layer->{type} = $mapscript::MS_LINE } elsif ( $laydata[2] eq "t" ) { $layer->{type} = $mapscript::MS_POINT } elsif ( $laydata[2] eq "a" ) { $layer->{type} = $mapscript::MS_ANNOTATION } else { showerror('There seems to be a server configuration error. Layer '.$_.' specifies an unsupported shape type : ',$laydata[1],'Please contact the server administrator listed below.') } $layer->{status} = $mapscript::MS_ON; $layer->{data} = $laydata[1]; if ( $laydata[3] ) { $layer->{classitem} = $laydata[3] } elsif ( $laydata[4] ) { $layer->{labelitem} = $laydata[4] } $res = $conn->exec("SELECT id,color,outlinecolor,expression,symbol,size FROM classes WHERE layid=$laydata[0]"); while ( @classdata = $res->fetchrow ) { $class = new classObj($layer); $class->{symbol} = $classdata[4]; @colors = getcol($classdata[2]); $class->{outlinecolor} = $map->addColor($colors[0],$colors[1],$colors[2]); @colors = getcol($classdata[1]); $class->{color} = $map->addColor($colors[0],$colors[1],$colors[2]); if ( $classdata[5] ) { $class->{size} = $classdata[5] } if ( $laydata[3] ) { $class->setExpression($classdata[3]) } elsif ( $laydata[4] ) { $res2 = $conn->exec("SELECT backgroundcolor,color,relposition,size,type FROM classlabels WHERE classid=$classdata[0]"); while ( @labeldata = $res2->fetchrow ) { @colors = getcol($labeldata[1]); $class->{label}->{color} = $map->addColor($colors[0],$colors[1],$colors[2]); $class->{label}->{position} = $mapscript::MS_AUTO; $class->{label}->{size} = 'GIANT'; $class->{label}->{type} = $mapscript::MS_BITMAP; $class->{label}->{wrap} = " "; } } } } # $map->prepareImage(); $img = $map->draw(); # $map->drawLabelCache($img); print "Content-Type: image/gif\n\n"; mapscript::msSaveImage($img,undef,$map->{interlace},$map->{transparent}); > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Thursday, June 22, 2000 11:43 AM > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; > mapserver-users at lists.gis.umn.edu > Subject: Re: labelObj in mapscript ? > > Since there are no formal methods for label objects most of the > documentation > is simply the labelObj parameters in the map file docs. Labels are part of > classes, > scalebar and legend objects and are accessed through those. Syntax is > simple: > > $class->{label}->{size} = 12; > $map->{scalebar}->{label}->{color} = $map->addColor(0,0,0); > > There are 2 exceptions to the params in the mapfile docs, ANGLE and > MINFEATURESIZE > when using the AUTO keyword. Instead use: > > $class->{label}->{autoangle} = 1; > $class->{label}->{autominfeaturesize} = 1; > > Will add this to the new site... > > Steve > > >>> "Doyon, Jean-Francois" 06/22/00 > 09:22AM >>> > Exactly how are Label Objects handled with mapscript ? I don't see any > labelObj type method defined in the docs ... > > I'm trying to put labels together for a class for an annotation type layer > ... (Cites w/ names) > > Or ar the Label parameters just part of the class ? can I go > $class->{type} > = 'Bitmap' ? > > Thanks, > > > Jean-Francois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Natural Resources Canada > (613) 992-4902 > > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > From steve.lime at dnr.state.mn.us Thu Jun 22 11:58:48 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 22 Jun 2000 13:58:48 -0500 Subject: Tiled Data and Queries Message-ID: It's on the "to do" list and with point based queries it should be pretty simple to implement. Actually I had that working in version 2 but pulled that support to implement the more complex queries. The problem is when more than a single tile is involved which would often be the case with bounding box or feature queries. I'm not sure how I want to handle features that span tiles. My guess is that some sort of keyitem will have to be maintained to be used for de-duping the results at least for tabular display. QueryMaps want the dups though so it gets messy quick. Have you tried using the quadtree indexes? (i.e. shptree) Even with large files that should be faster than querying tiled data. If anyone has other ideas, let me know... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Jim T. Bowen (GAIA Consultants Inc.)" 06/20/10 09:31AM >>> Hi all, It would be nice to be able to query tiled data. Right now we are adding a monster theme as a queryonly layer in addition to individual tiles. It works; however, it can be quite slow. When I have a moment, I will explore a better option...it should be fairly straight forward. Steve, any plans to incorporate querying tiled data in the next release (please, please) :) Cheers, Jim From steve.lime at dnr.state.mn.us Thu Jun 22 12:34:58 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 22 Jun 2000 14:34:58 -0500 Subject: labelObj in mapscript ? Message-ID: This probably has to do with an internal annotation flag that is set when the mapfile is read. In cases where the decision to annotate is set after the mapfile is loaded then then flag isn't set and annotation won't be done. This has been remedied in the latest CVS (which I would avoid until next Monday unless you're desperate). For now there are a couple of workarounds. If you're using a mapfile with all layers predefined then you can define a dummy classitem property or class text porperty. This is suffiecient to set the annotate flag. Since your building the entire map from scratch you'll need to set the flag by hand for each layer that has annotation. Use something like: $layer->{annotate} = 1; and see if that fixes things. Again this has been fixed in the latest code. Use $class->{label}->{outlinecolor} rather than backgoundcolor. Both keywords do the samething, but I had to choose one name for the C structures. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 06/22/00 01:56PM >>> Thanks a bunch ... Now, I'm just stumped ... I've setup a system where the mapfile type parameters are now stored in a database (At least all the ones that I can). So it cycles through the database, determining classes and labels and so on .. It's been working well so far. I've managed to color all canadian provinces and territories using a classitem and an expression, and storing all the classes in the DB and so on. Now I'm trying to generate an annotation layer that is the city names, but I'm having no luck, the labels simply won't draw it seems, and I'm running out of ideas as to why this might be ... Assuming the back end data is correct (which it IS !), can anybody find a problem with the code below ? It's fairly straightforward ... I know it's ugly, I'm just toying around for now, the production version will be much nicer :) I've commented some lines of code as well , meaning I've toyed around with them without success ... Any help would be greatly appreciated ! oh BTW, I'm using a nightly build from a couple of nights ago, and $class->{label}->{backgroundcolor} does not seem to "exist" ... J.F. sub getmap { checklayers(); checksrs(); checkformat(); $map = new mapObj('/home/mapdata/canada/perltest.map'); $map->{name} = 'Test'; $map->{status} = $mapscript::MS_ON; $map->{height} = $height; $map->{width} = $width; $map->{interlace} = $mapscript::MS_OFF; $map->{transparent} = $mapscript::MS_OFF; $map->{shapepath} = 'data'; $map->{imagecolor}->{red} = 255; $map->{imagecolor}->{green} = 255; $map->{imagecolor}->{blue} = 255; my $ext = new rectObj(); my @bb = split(/,/,$bbox); $ext->{minx} = $bb[0]; $ext->{miny} = $bb[1]; $ext->{maxx} = $bb[2]; $ext->{maxy} = $bb[3]; $map->{extent} = $ext; $map->{units} = $mapscript::MS_METERS; foreach ( @reqlayer ) { $res = $conn->exec("SELECT id,data,type,classitem,labelitem FROM layers WHERE name='$_'"); my @laydata = $res->fetchrow; $layer = new layerObj($map); $layer->{name} = $_; if ( $laydata[2] eq "p" ) { $layer->{type} = $mapscript::MS_POLYGON } elsif ( $laydata[2] eq "l" ) { $layer->{type} = $mapscript::MS_LINE } elsif ( $laydata[2] eq "t" ) { $layer->{type} = $mapscript::MS_POINT } elsif ( $laydata[2] eq "a" ) { $layer->{type} = $mapscript::MS_ANNOTATION } else { showerror('There seems to be a server configuration error. Layer '.$_.' specifies an unsupported shape type : ',$laydata[1],'Please contact the server administrator listed below.') } $layer->{status} = $mapscript::MS_ON; $layer->{data} = $laydata[1]; if ( $laydata[3] ) { $layer->{classitem} = $laydata[3] } elsif ( $laydata[4] ) { $layer->{labelitem} = $laydata[4] } $res = $conn->exec("SELECT id,color,outlinecolor,expression,symbol,size FROM classes WHERE layid=$laydata[0]"); while ( @classdata = $res->fetchrow ) { $class = new classObj($layer); $class->{symbol} = $classdata[4]; @colors = getcol($classdata[2]); $class->{outlinecolor} = $map->addColor($colors[0],$colors[1],$colors[2]); @colors = getcol($classdata[1]); $class->{color} = $map->addColor($colors[0],$colors[1],$colors[2]); if ( $classdata[5] ) { $class->{size} = $classdata[5] } if ( $laydata[3] ) { $class->setExpression($classdata[3]) } elsif ( $laydata[4] ) { $res2 = $conn->exec("SELECT backgroundcolor,color,relposition,size,type FROM classlabels WHERE classid=$classdata[0]"); while ( @labeldata = $res2->fetchrow ) { @colors = getcol($labeldata[1]); $class->{label}->{color} = $map->addColor($colors[0],$colors[1],$colors[2]); $class->{label}->{position} = $mapscript::MS_AUTO; $class->{label}->{size} = 'GIANT'; $class->{label}->{type} = $mapscript::MS_BITMAP; $class->{label}->{wrap} = " "; } } } } # $map->prepareImage(); $img = $map->draw(); # $map->drawLabelCache($img); print "Content-Type: image/gif\n\n"; mapscript::msSaveImage($img,undef,$map->{interlace},$map->{transparent}); > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Thursday, June 22, 2000 11:43 AM > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; > mapserver-users at lists.gis.umn.edu > Subject: Re: labelObj in mapscript ? > > Since there are no formal methods for label objects most of the > documentation > is simply the labelObj parameters in the map file docs. Labels are part of > classes, > scalebar and legend objects and are accessed through those. Syntax is > simple: > > $class->{label}->{size} = 12; > $map->{scalebar}->{label}->{color} = $map->addColor(0,0,0); > > There are 2 exceptions to the params in the mapfile docs, ANGLE and > MINFEATURESIZE > when using the AUTO keyword. Instead use: > > $class->{label}->{autoangle} = 1; > $class->{label}->{autominfeaturesize} = 1; > > Will add this to the new site... > > Steve > > >>> "Doyon, Jean-Francois" 06/22/00 > 09:22AM >>> > Exactly how are Label Objects handled with mapscript ? I don't see any > labelObj type method defined in the docs ... > > I'm trying to put labels together for a class for an annotation type layer > ... (Cites w/ names) > > Or ar the Label parameters just part of the class ? can I go > $class->{type} > = 'Bitmap' ? > > Thanks, > > > Jean-Francois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Natural Resources Canada > (613) 992-4902 > > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > From johnh at erin.gov.au Thu Jun 22 16:34:22 2000 From: johnh at erin.gov.au (John Hockaday) Date: Fri, 23 Jun 2000 09:34:22 +1000 (EST) Subject: PERL,PHP,CGI Message-ID: <200006222334.JAA04372@eos.erin.gov.au> I am sending this to the list so that Bertha doesn't get inundated with replies. Please ignore this message if you know about PHP, PERL and CGI. Hi Bertha, There are several differences between PHP, PERL and CGI. Simply: PHP is like Hypertext Markup Language (HTML) in which it uses tags to build a template that will allow access to a database through the World Wide Web (WWW). It is very simple to use as you only need to know about HTML and understand the concepts of templates and accessing databases. PERL is a scripting language that can do almost anything that any other programming language can do. It is really easy to use because you don't have to declare variable types, you just use them. It doesn't have some Object Oriented (OO) features as in JAVA and C++ etc. but it is still very powerful. There are so many PERL packages that do specific things you usually don't have to do much programming other than calling these packages and using them to suit yourself. Packages are usually located at the Comprehensive Perl Archive Network (CPAN) site ( http://www.perl.com/CPAN/ ) and PERL can be accessed via ( http://www.perl.com/ ) CGI (Common Gateway Interface) is a way of a WWW server delivering dynamic HTML pages to a WWW browser via Hypertext Transfer Protocol (HTTP). It can be written in any programming language as it is just an executable that runs when an HTML form is submitted. (There're other ways but this is a simple explanation to get you started.) You must have a WWW server set up on a machine that allows access to it via HTTP and usually a dedicated port such as port 80. HTTP is a "stateless" connection. That is, the WWW browser connects to the WWW server, the server does what it is asked to so and then closes the connection to the WWW browser. The next time the same WWW browser contacts the WWW server the WWW server treats it as a completely new connection. You are probably wondering what to use to suit your needs. With all of these you will need to have a good idea of HTML or a very good book on HTML as is seems that your need is to deliver HTML pages. To deliver HTML pages you need a WWW server. Apache is free and good. If you just want to access a database and present them on the WWW and you don't have programming skills then PHP may be the answer. It will handle the CGI part of the WWW accesses and via your templates it will present information accessed to the database. It is simple but limited. If you know how to program then PERL is for you. It allows you to access a database via the DBI package and allows you to build CGI scripts via the CGI package. Lots of other packages will help you with other bits and pieces like the IO package for accessing files etc. Just remember to look at CPAN before you try to do anything as it may already have been done for you. If you have complicated WWW server needs and need to keep on passing information back and forwards from the WWW browser to the WWW server then you should be looking at Java servlets. These make a "stateful" connection and so know what the WWW browser has asked from a previous WWW page. It is faster than CGI because it doesn't have to keep on passing information about the previous WWW connection. Java is a full OO except that it doesn't allow multiple inheritance. However, you can get around this by inheriting from one class and then implementing from many other classes. You will have to match you skills to what you want to do. I have given a very simple explanation. I hope that I have correctly interpreted what you were asking. If not, then I am sorry for this lengthy explanation. Good luck. ;-) Johnh > Date: Wed, 21 Jun 2000 13:16:25 -0700 (PDT) > From: bertha amalia serrato de la cruz > Subject: PERL,PHP,CGI > To: MAPSERVER > MIME-Version: 1.0 > Content-Transfer-Encoding: 8bit > > hello > > i need know the diference betweem PHP,PERL and CGI > what's better?.. > where can i found information?, i would like learn PHP > and PERL but the link in the mapserver page " not > found" > > what is more comfortable for using wtih mapserver? > Why? > > i'm waiting for a soon answer > > ===== > *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- > Bertha A. Serrato > bserrato at cicese.mx > CICESE,Divisi?n de Ciencias de la Tierra. > Ensenada, B.C. > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- > > __________________________________________________ > Do You Yahoo!? > Send instant messages with Yahoo! Messenger. > http://im.yahoo.com/ From bowenj at peligroso.gaiaenv.com Fri Jun 23 06:37:04 2000 From: bowenj at peligroso.gaiaenv.com (Jim T. Bowen (GAIA Consultants Inc.)) Date: Fri, 23 Jun 2000 07:37:04 -0600 Subject: PERL,PHP,CGI References: <200006222334.JAA04372@eos.erin.gov.au> Message-ID: <39536800.3BC45217@gaiaenv.com> Hi all, Thanks to John for the intro. to PHP, Perl, and CGI. My $0.02 worth... I would like to emphasise that PHP is a powerful scripting language. Although PHP is well known for its database support, it does contain a suite of inherent functions along with the capability to create user-defined functions, classes, and objects (to name a few). The PHP interpreter can be included in a web server as a module or executed as a separate CGI binary. We have were initially turned on to PHP to establish database connections with PostgeSQL, but are now using it for a host of web-based programming endeavours. If you want more details on PHP and its capabilities, check out: http://www.php.net/manual/ Cheers, Jim John Hockaday wrote: > > I am sending this to the list so that Bertha doesn't get inundated with > replies. Please ignore this message if you know about PHP, PERL and > CGI. > > Hi Bertha, > > There are several differences between PHP, PERL and CGI. > > Simply: > > PHP is like Hypertext Markup Language (HTML) in which it uses > tags to build a template that will allow access to a database > through the World Wide Web (WWW). It is very simple to use as > you only need to know about HTML and understand the concepts of > templates and accessing databases. > > PERL is a scripting language that can do almost anything that > any other programming language can do. It is really easy to > use because you don't have to declare variable types, you just > use them. It doesn't have some Object Oriented (OO) features > as in JAVA and C++ etc. but it is still very powerful. There are > so many PERL packages that do specific things you usually don't > have to do much programming other than calling these packages > and using them to suit yourself. Packages are usually located > at the Comprehensive Perl Archive Network (CPAN) site ( > http://www.perl.com/CPAN/ ) and PERL can be accessed via ( > http://www.perl.com/ ) > > CGI (Common Gateway Interface) is a way of a WWW server > delivering dynamic HTML pages to a WWW browser via Hypertext > Transfer Protocol (HTTP). It can be written in any programming > language as it is just an executable that runs when an HTML > form is submitted. (There're other ways but this is a simple > explanation to get you started.) You must have a WWW server > set up on a machine that allows access to it via HTTP and > usually a dedicated port such as port 80. > > HTTP is a "stateless" connection. That is, the WWW browser > connects to the WWW server, the server does what it is asked to > so and then closes the connection to the WWW browser. The next > time the same WWW browser contacts the WWW server the WWW > server treats it as a completely new connection. > > You are probably wondering what to use to suit your needs. > > With all of these you will need to have a good idea of HTML or > a very good book on HTML as is seems that your need is to > deliver HTML pages. > > To deliver HTML pages you need a WWW server. Apache is free > and good. > > If you just want to access a database and present them on the > WWW and you don't have programming skills then PHP may be the > answer. It will handle the CGI part of the WWW accesses and > via your templates it will present information accessed to the > database. It is simple but limited. > > If you know how to program then PERL is for you. It allows you > to access a database via the DBI package and allows you to > build CGI scripts via the CGI package. Lots of other packages > will help you with other bits and pieces like the IO package > for accessing files etc. Just remember to look at CPAN before > you try to do anything as it may already have been done for > you. > > If you have complicated WWW server needs and need to keep on > passing information back and forwards from the WWW browser to > the WWW server then you should be looking at Java servlets. > These make a "stateful" connection and so know what the WWW > browser has asked from a previous WWW page. It is faster than > CGI because it doesn't have to keep on passing information > about the previous WWW connection. Java is a full OO except > that it doesn't allow multiple inheritance. However, you can > get around this by inheriting from one class and then > implementing from many other classes. > > You will have to match you skills to what you want to do. > > I have given a very simple explanation. I hope that I have correctly > interpreted what you were asking. If not, then I am sorry for this > lengthy explanation. > > Good luck. ;-) > > Johnh > > > Date: Wed, 21 Jun 2000 13:16:25 -0700 (PDT) > > From: bertha amalia serrato de la cruz > > Subject: PERL,PHP,CGI > > To: MAPSERVER > > MIME-Version: 1.0 > > Content-Transfer-Encoding: 8bit > > > > hello > > > > i need know the diference betweem PHP,PERL and CGI > > what's better?.. > > where can i found information?, i would like learn PHP > > and PERL but the link in the mapserver page " not > > found" > > > > what is more comfortable for using wtih mapserver? > > Why? > > > > i'm waiting for a soon answer > > > > ===== > > *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- > > Bertha A. Serrato > > bserrato at cicese.mx > > CICESE,Divisi?n de Ciencias de la Tierra. > > Ensenada, B.C. > > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- > > > > __________________________________________________ > > Do You Yahoo!? > > Send instant messages with Yahoo! Messenger. > > http://im.yahoo.com/ From Tim.Mackey at agso.gov.au Mon Jun 26 22:56:34 2000 From: Tim.Mackey at agso.gov.au (Tim.Mackey at agso.gov.au) Date: Tue, 27 Jun 2000 15:56:34 +1000 Subject: Is there a Mapscript and PROJ example? Message-ID: <52113C81E9ACD31182D40060B0570D9B176806@agsomail1.agso.gov.au> Hi, I am writing a perl script (using mapscript) and cannot figure out the syntax to project a pair of coordinates from longitude/latitude to something else. Does anyone know of a perl script that uses the PROJ functions that I could get a look at? thanks, Tim Mackey Web Applications Developer Australian Geological Survey Organisation email: tim.mackey at agso.gov.au phone: (02) 6249 9813 fax: (02) 6249 9984 http://www.agso.gov.au/ From steve.lime at dnr.state.mn.us Tue Jun 27 08:13:18 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 27 Jun 2000 10:13:18 -0500 Subject: Is there a Mapscript and PROJ example? Message-ID: MapScript doesn't not have any projection routines exposed. The conditional compilation was too hairy using SWIG. So, instead I created a small Proj.4 perl module that's a standalone piece. I've attached. It's nothing fancy, but it works. The compilation assumes that Proj.4 is installed in /usr/local/lib and /usr/local/include. You may need to change Makefile.PL if it's somewhere else. Then a normal: perl Makefile.PL make make install will get you going. A super simple test script is included to show the syntax. This module was built with SWIG so Python, Tk/Tcl users etc. can also use it, but they'll need to process the interface file for their language. MapScript can process data that needs projection as normal (i.e. when drawing/querying), there are just no methods for routine projection of individual points. Both modules can be used together. This was never intendend for public release. Please let me know if it's useful. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 06/27/00 12:56AM >>> Hi, I am writing a perl script (using mapscript) and cannot figure out the syntax to project a pair of coordinates from longitude/latitude to something else. Does anyone know of a perl script that uses the PROJ functions that I could get a look at? thanks, Tim Mackey Web Applications Developer Australian Geological Survey Organisation email: tim.mackey at agso.gov.au phone: (02) 6249 9813 fax: (02) 6249 9984 http://www.agso.gov.au/ -------------- next part -------------- A non-text attachment was scrubbed... Name: proj.pm.tar.gz Type: application/octet-stream Size: 7352 bytes Desc: not available URL: From steve.lime at dnr.state.mn.us Tue Jun 27 08:42:02 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 27 Jun 2000 10:42:02 -0500 Subject: SDE Servers for Testing Message-ID: Anyone have a SDE server that they'd be willing to let me connect to (read only obviously) for development work? I'm stuck right now and am not sure if it's code or the fact I'm developing against an SDE for Coverages server. Thanks. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From steve.lime at dnr.state.mn.us Tue Jun 27 11:50:04 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 27 Jun 2000 13:50:04 -0500 Subject: SDE Servers for Testing Message-ID: Nevermind. I now have MapServer rendering from SDE. About time... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From m_anderson14 at hotmail.com Tue Jun 27 12:27:56 2000 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Tue, 27 Jun 2000 12:27:56 PDT Subject: mapscript with python Message-ID: <20000627192757.26172.qmail@hotmail.com> Hello all, I have been waiting to post questions until I sent a suitable introduction, but I have a problem that I can't figure out so the introduction will have to wait. We tried to compile the python wrapper and got the errors in the attached file. I truncated the final 95% of the error messages so it wouldn't be so large. What I cut out was just more of the same so hopefully someone can figure it out with what I have attached. I can send all the errors if somebody wants them (about 100K). If anyone knows what I am doing wrong, please let me know. Let me say up front that I am not a C programmer, but I do have a couple available to give me a hand. Mike Anderson ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: errors.txt URL: From nhv at cape.com Tue Jun 27 12:53:38 2000 From: nhv at cape.com (Norman Vine) Date: Tue, 27 Jun 2000 15:53:38 -0400 Subject: mapscript with python In-Reply-To: <20000627192757.26172.qmail@hotmail.com> Message-ID: <000101bfe071$68b6cd00$1837ba8c@nhv> Michael Anderson writes: > >I have been waiting to post questions until I sent a suitable >introduction, >but I have a problem that I can't figure out so the >introduction will have >to wait. We tried to compile the python wrapper and got the >errors in the attached file. Hmm... Looking at your errors it appears as if you are not linking with libpython.a I have attached the makefile I used to compile 3.3.009 with Python 1.52 and Cygwin. You can probably modify this to work for you. I am having problems getting later versions to compile of course I have upgraded my compiler and Python and SWIG so I am not blaming MapServer :-) When I finally do get it going I will write a python script that should automate building the python extension. If your 'C' programers are comfortable in Python they could take a look at the python Distutils SIG http://www.python.org/sigs/distutils-sig/download.html The latest snapshots are getting much more powerful :-) Norman -------------- next part -------------- A non-text attachment was scrubbed... Name: makefile Type: application/octet-stream Size: 1021 bytes Desc: not available URL: From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Tue Jun 27 13:08:25 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 27 Jun 2000 16:08:25 -0400 Subject: labelObj in mapscript ? Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C098@s5-ccr-r1> Thanks, that fixed the problem right away ! Now, same KINd of problem, but with a twist. I am now trying to map elevation levels. In order to do this, I set a CLASSITEM of LEVEL_RANGE in my case. Then I define various classes with different EXPRESSION statements. Right now I just have one that says "60", which basically would mean : draw alll the polygons that have a LEVEL_RANGE of 60, right ? Well, no such luck. It keeps drawing the whole country ! (or, at times, nothing at all). So, what am I doing wrong ? I've successfully used CLASSITEM and EXPRESSION allready to draw the provinces and territories different colors. (CLASSITEM "NAME" , EXPRESSION "Ontario" , EXPRESSION "Quebec" , etc ...) I tried setting the "annotate" flag, no dice. I tried using a type of "Polygon" and "Annotation" without success. The rendering allways takes a while though (i.e. it IS doing something). I was wondering if the datatype might be a concern (since, as you might remember, all this configuration information comes from a DB Backend), but after playing with that, it didn't help. (i.e. 60 or '60' or '[ELEV_RANGE] = 60' , etc ...) I'm out of ideas ... anyone ? BTW, Stephen, thanks for thet Proj.pm ... I haven't tried it yet, but I was looking for such a beast, might want to officially release it someday ! Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada (613) 992-4902 > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Thursday, June 22, 2000 3:34 PM > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; > mapserver-users at lists.gis.umn.edu > Subject: RE: labelObj in mapscript ? > > This probably has to do with an internal annotation flag that is set when > the mapfile is read. In cases where the decision to annotate is set after > the mapfile is loaded then then flag isn't set and annotation won't be > done. > This has been remedied in the latest CVS (which I would avoid until > next Monday unless you're desperate). > > For now there are a couple of workarounds. If you're using a mapfile > with all layers predefined then you can define a dummy classitem > property or class text porperty. This is suffiecient to set the annotate > flag. > Since your building the entire map from scratch you'll need to set the > flag > by hand for each layer that has annotation. Use something like: > > $layer->{annotate} = 1; > > and see if that fixes things. Again this has been fixed in the latest > code. > > Use $class->{label}->{outlinecolor} rather than backgoundcolor. Both > keywords > do the samething, but I had to choose one name for the C structures. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Doyon, Jean-Francois" 06/22/00 > 01:56PM >>> > Thanks a bunch ... > > Now, I'm just stumped ... > > I've setup a system where the mapfile type parameters are now stored in a > database (At least all the ones that I can). > > So it cycles through the database, determining classes and labels and so > on > .. It's been working well so far. I've managed > to color all canadian provinces and territories using a classitem and an > expression, and storing all the classes in the DB > and so on. Now I'm trying to generate an annotation layer that is the city > names, but I'm having no luck, the labels simply > won't draw it seems, and I'm running out of ideas as to why this might be > ... > > Assuming the back end data is correct (which it IS !), can anybody find a > problem with the code below ? It's fairly straightforward ... > I know it's ugly, I'm just toying around for now, the production version > will be much nicer :) > > I've commented some lines of code as well , meaning I've toyed around with > them without success ... > > Any help would be greatly appreciated ! > > oh BTW, I'm using a nightly build from a couple of nights ago, and > $class->{label}->{backgroundcolor} does not seem to "exist" ... > > J.F. > > sub getmap { > checklayers(); > checksrs(); > checkformat(); > $map = new mapObj('/home/mapdata/canada/perltest.map'); > $map->{name} = 'Test'; > $map->{status} = $mapscript::MS_ON; > $map->{height} = $height; > $map->{width} = $width; > $map->{interlace} = $mapscript::MS_OFF; > $map->{transparent} = $mapscript::MS_OFF; > $map->{shapepath} = 'data'; > $map->{imagecolor}->{red} = 255; > $map->{imagecolor}->{green} = 255; > $map->{imagecolor}->{blue} = 255; > my $ext = new rectObj(); > my @bb = split(/,/,$bbox); > $ext->{minx} = $bb[0]; > $ext->{miny} = $bb[1]; > $ext->{maxx} = $bb[2]; > $ext->{maxy} = $bb[3]; > $map->{extent} = $ext; > $map->{units} = $mapscript::MS_METERS; > foreach ( @reqlayer ) { > $res = $conn->exec("SELECT id,data,type,classitem,labelitem > FROM layers WHERE name='$_'"); > my @laydata = $res->fetchrow; > $layer = new layerObj($map); > $layer->{name} = $_; > if ( $laydata[2] eq "p" ) { $layer->{type} = > $mapscript::MS_POLYGON } > elsif ( $laydata[2] eq "l" ) { $layer->{type} = > $mapscript::MS_LINE } > elsif ( $laydata[2] eq "t" ) { $layer->{type} = > $mapscript::MS_POINT } > elsif ( $laydata[2] eq "a" ) { $layer->{type} = > $mapscript::MS_ANNOTATION } > else { showerror('There seems to be a server configuration > error. Layer '.$_.' specifies an unsupported shape type : > ',$laydata[1],'Please contact the server administrator listed below.') } > $layer->{status} = $mapscript::MS_ON; > $layer->{data} = $laydata[1]; > if ( $laydata[3] ) { $layer->{classitem} = $laydata[3] } > elsif ( $laydata[4] ) { $layer->{labelitem} = $laydata[4] } > $res = $conn->exec("SELECT > id,color,outlinecolor,expression,symbol,size FROM classes WHERE > layid=$laydata[0]"); > while ( @classdata = $res->fetchrow ) { > $class = new classObj($layer); > $class->{symbol} = $classdata[4]; > @colors = getcol($classdata[2]); > $class->{outlinecolor} = > $map->addColor($colors[0],$colors[1],$colors[2]); > @colors = getcol($classdata[1]); > $class->{color} = > $map->addColor($colors[0],$colors[1],$colors[2]); > if ( $classdata[5] ) { $class->{size} = > $classdata[5] } > if ( $laydata[3] ) { > $class->setExpression($classdata[3]) } > elsif ( $laydata[4] ) { > $res2 = $conn->exec("SELECT > backgroundcolor,color,relposition,size,type FROM classlabels WHERE > classid=$classdata[0]"); > while ( @labeldata = $res2->fetchrow ) { > @colors = getcol($labeldata[1]); > $class->{label}->{color} = > $map->addColor($colors[0],$colors[1],$colors[2]); > $class->{label}->{position} = > $mapscript::MS_AUTO; > $class->{label}->{size} = 'GIANT'; > $class->{label}->{type} = > $mapscript::MS_BITMAP; > $class->{label}->{wrap} = " "; > } > } > } > } > # $map->prepareImage(); > $img = $map->draw(); > # $map->drawLabelCache($img); > print "Content-Type: image/gif\n\n"; > > mapscript::msSaveImage($img,undef,$map->{interlace},$map->{transparent}); > > > > ---------- > > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > > Sent: Thursday, June 22, 2000 11:43 AM > > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; > > mapserver-users at lists.gis.umn.edu > > Subject: Re: labelObj in mapscript ? > > > > Since there are no formal methods for label objects most of the > > documentation > > is simply the labelObj parameters in the map file docs. Labels are part > of > > classes, > > scalebar and legend objects and are accessed through those. Syntax is > > simple: > > > > $class->{label}->{size} = 12; > > $map->{scalebar}->{label}->{color} = $map->addColor(0,0,0); > > > > There are 2 exceptions to the params in the mapfile docs, ANGLE and > > MINFEATURESIZE > > when using the AUTO keyword. Instead use: > > > > $class->{label}->{autoangle} = 1; > > $class->{label}->{autominfeaturesize} = 1; > > > > Will add this to the new site... > > > > Steve > > > > >>> "Doyon, Jean-Francois" > 06/22/00 > > 09:22AM >>> > > Exactly how are Label Objects handled with mapscript ? I don't see any > > labelObj type method defined in the docs ... > > > > I'm trying to put labels together for a class for an annotation type > layer > > ... (Cites w/ names) > > > > Or ar the Label parameters just part of the class ? can I go > > $class->{type} > > = 'Bitmap' ? > > > > Thanks, > > > > > > Jean-Francois Doyon > > Internet Service Development and Systems Support > > GeoAccess Division > > Natural Resources Canada > > (613) 992-4902 > > > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > From steve.lime at dnr.state.mn.us Tue Jun 27 20:13:18 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 27 Jun 2000 22:13:18 -0500 Subject: labelObj in mapscript ? Message-ID: What xbase type is LEVEL_RANGE? All equality tests are done using string comparisons. With integers and char fields this is no problem but with floats it can become a hassle although equality tests with floats have been rare in my travels. What happens with that the database coughs up "60.00000" which doesn't match "60". Would've thought the logical expression: ([LEVEL_RANGE] = 60.0) would've worked. Will have to test that. Anyway, if LEVEL_RANGE is a float then using a regex like EXPRESSION /^60.*/ might solve the problem. If this suggestion doesn't help then please pass along the shapefile (or a portion thereof). Steve <<< "Doyon, Jean-Francois" 6/27 3:07p >>> Thanks, that fixed the problem right away ! Now, same KINd of problem, but with a twist. I am now trying to map elevation levels. In order to do this, I set a CLASSITEM of LEVEL_RANGE in my case. Then I define various classes with different EXPRESSION statements. Right now I just have one that says "60", which basically would mean : draw alll the polygons that have a LEVEL_RANGE of 60, right ? Well, no such luck. It keeps drawing the whole country ! (or, at times, nothing at all). So, what am I doing wrong ? I've successfully used CLASSITEM and EXPRESSION allready to draw the provinces and territories different colors. (CLASSITEM "NAME" , EXPRESSION "Ontario" , EXPRESSION "Quebec" , etc ...) I tried setting the "annotate" flag, no dice. I tried using a type of "Polygon" and "Annotation" without success. The rendering allways takes a while though (i.e. it IS doing something). I was wondering if the datatype might be a concern (since, as you might remember, all this configuration information comes from a DB Backend), but after playing with that, it didn't help. (i.e. 60 or '60' or '[ELEV_RANGE] = 60' , etc ...) I'm out of ideas ... anyone ? BTW, Stephen, thanks for thet Proj.pm ... I haven't tried it yet, but I was looking for such a beast, might want to officially release it someday ! Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada (613) 992-4902 > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Thursday, June 22, 2000 3:34 PM > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; > mapserver-users at lists.gis.umn.edu > Subject: RE: labelObj in mapscript ? > > This probably has to do with an internal annotation flag that is set when > the mapfile is read. In cases where the decision to annotate is set after > the mapfile is loaded then then flag isn't set and annotation won't be > done. > This has been remedied in the latest CVS (which I would avoid until > next Monday unless you're desperate). > > For now there are a couple of workarounds. If you're using a mapfile > with all layers predefined then you can define a dummy classitem > property or class text porperty. This is suffiecient to set the annotate > flag. > Since your building the entire map from scratch you'll need to set the > flag > by hand for each layer that has annotation. Use something like: > > $layer->{annotate} = 1; > > and see if that fixes things. Again this has been fixed in the latest > code. > > Use $class->{label}->{outlinecolor} rather than backgoundcolor. Both > keywords > do the samething, but I had to choose one name for the C structures. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Doyon, Jean-Francois" 06/22/00 > 01:56PM >>> > Thanks a bunch ... > > Now, I'm just stumped ... > > I've setup a system where the mapfile type parameters are now stored in a > database (At least all the ones that I can). > > So it cycles through the database, determining classes and labels and so > on > .. It's been working well so far. I've managed > to color all canadian provinces and territories using a classitem and an > expression, and storing all the classes in the DB > and so on. Now I'm trying to generate an annotation layer that is the city > names, but I'm having no luck, the labels simply > won't draw From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Jun 28 06:58:27 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 28 Jun 2000 09:58:27 -0400 Subject: labelObj in mapscript ? Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C09A@s5-ccr-r1> Allright, I couldn't easily get the ACTUAL datatype of the columns (The Perl XBase module doesn't give you those for some reason), so I just went ahead and tried. Turns out those parentheses make a big difference ! They make things work ! I tried successfully ([ELEV_RANGE] = 60) , ([ELEV_RANGE] = 60.0) , ([ELEV_RANGE] > 20) ... But of course the minute I remove the parentheses, nothing works. Didn't see this in the docs, and it seems a bit strange behavior, since parentheses are usually used for grouping, but hey if it works, it's fine by me. Thanks a bunch, as allways :) J.F. > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Tuesday, June 27, 2000 11:13 PM > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; > mapserver-users at lists.gis.umn.edu > Subject: RE: labelObj in mapscript ? > > What xbase type is LEVEL_RANGE? All equality tests are done using string > comparisons. With integers and char fields this is no problem but with > floats it can become a hassle although equality tests with floats have > been rare in my travels. What happens with that the database coughs up > "60.00000" which doesn't match "60". Would've thought the logical > expression: > > ([LEVEL_RANGE] = 60.0) > > would've worked. Will have to test that. > > Anyway, if LEVEL_RANGE is a float then using a regex like EXPRESSION > /^60.*/ might solve the problem. > > If this suggestion doesn't help then please pass along the shapefile (or a > portion thereof). > > Steve > > <<< "Doyon, Jean-Francois" 6/27 > 3:07p >>> > Thanks, that fixed the problem right away ! > > Now, same KINd of problem, but with a twist. > > I am now trying to map elevation levels. > > In order to do this, I set a CLASSITEM of LEVEL_RANGE in my case. > > Then I define various classes with different EXPRESSION statements. Right > now I just have one that says "60", which basically would mean : draw alll > the polygons that have a LEVEL_RANGE of 60, right ? > > Well, no such luck. It keeps drawing the whole country ! (or, at times, > nothing at all). > > So, what am I doing wrong ? I've successfully used CLASSITEM and > EXPRESSION > allready to draw the provinces and territories different colors. > (CLASSITEM "NAME" , EXPRESSION "Ontario" , EXPRESSION "Quebec" , etc ...) > > I tried setting the "annotate" flag, no dice. I tried using a type of > "Polygon" and "Annotation" without success. > The rendering allways takes a while though (i.e. it IS doing something). > > I was wondering if the datatype might be a concern (since, as you might > remember, all this configuration information comes from a DB Backend), but > after playing with that, it didn't help. (i.e. 60 or '60' or '[ELEV_RANGE] > = > 60' , etc ...) > > I'm out of ideas ... anyone ? > > BTW, Stephen, thanks for thet Proj.pm ... I haven't tried it yet, but I > was > looking for such a beast, might want to officially release it someday ! > > Jean-Francois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Natural Resources Canada > (613) 992-4902 > > > > > ---------- > > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > > Sent: Thursday, June 22, 2000 3:34 PM > > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; > > mapserver-users at lists.gis.umn.edu > > Subject: RE: labelObj in mapscript ? > > > > This probably has to do with an internal annotation flag that is set > when > > the mapfile is read. In cases where the decision to annotate is set > after > > the mapfile is loaded then then flag isn't set and annotation won't be > > done. > > This has been remedied in the latest CVS (which I would avoid until > > next Monday unless you're desperate). > > > > For now there are a couple of workarounds. If you're using a mapfile > > with all layers predefined then you can define a dummy classitem > > property or class text porperty. This is suffiecient to set the annotate > > flag. > > Since your building the entire map from scratch you'll need to set the > > flag > > by hand for each layer that has annotation. Use something like: > > > > $layer->{annotate} = 1; > > > > and see if that fixes things. Again this has been fixed in the latest > > code. > > > > Use $class->{label}->{outlinecolor} rather than backgoundcolor. Both > > keywords > > do the samething, but I had to choose one name for the C structures. > > > > Steve > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> "Doyon, Jean-Francois" > 06/22/00 > > 01:56PM >>> > > Thanks a bunch ... > > > > Now, I'm just stumped ... > > > > I've setup a system where the mapfile type parameters are now stored in > a > > database (At least all the ones that I can). > > > > So it cycles through the database, determining classes and labels and so > > on > > .. It's been working well so far. I've managed > > to color all canadian provinces and territories using a classitem and an > > expression, and storing all the classes in the DB > > and so on. Now I'm trying to generate an annotation layer that is the > city > > names, but I'm having no luck, the labels simply > > won't draw > From nhv at cape.com Wed Jun 28 07:26:56 2000 From: nhv at cape.com (Norman Vine) Date: Wed, 28 Jun 2000 10:26:56 -0400 Subject: mapscript with python In-Reply-To: <000101bfe071$68b6cd00$1837ba8c@nhv> Message-ID: <002501bfe10c$f0425780$c037ba8c@nhv> >Norman Vine wrote: > >I have attached the makefile I used to compile 3.3.009 >with Python 1.52 and Cygwin. You can probably modify >this to work for you. > >I am having problems getting later versions to compile >of course I have upgraded my compiler and Python and SWIG >so I am not blaming MapServer :-) Quick update I was not having problems compiling Mapscript but runing it. After changing my test script ( see attached ) to reflect the current mapscript language, the Python Mapscript extension seems to work fine :-)) On another note: There is a pending release of a Python module that will be very similar and as easy to use as Perl's MakeMaker module. I will post a python mapscript module similar to the Perl version of mapscripts Makefile.PL shortly after the official python Distutils module's release. Cheers Norman -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: dump.py URL: From schu at gaf.de Thu Jun 29 07:19:13 2000 From: schu at gaf.de (Matthias Schulz at GAF) Date: Thu, 29 Jun 2000 16:19:13 +0200 Subject: embedded legend Message-ID: <395B5AE1.A4082BA1@gaf.de> Hi all, I am currently trying to embed a legend with 'embed = true' or 'status = embed' in the Legend-Object of the map-file like it is written in the documentation (first solution). But up to now this is not working. Does anyone have a solution for this problem ? Regards, Matthias -- Matthias Schulz GAF mbH Arnulfstr. 197 80634 Muenchen Germany tel.: +49 (0)89 121528-28 fax: +49 (0)89 121528-79 mailto:schu at gaf.de URL: http://www.gaf.de From joel at free.crrel.usace.army.mil Thu Jun 29 10:16:22 2000 From: joel at free.crrel.usace.army.mil (Joel Schlagel) Date: Thu, 29 Jun 2000 13:16:22 -0400 (EDT) Subject: perl module for raster-based gis work In-Reply-To: <395B5AE1.A4082BA1@gaf.de> Message-ID: i noticed this today on freegis.org: http://www.water.hut.fi/pub/Grid/Grid.html looks great! joel From michalak at hwr.arizona.edu Thu Jun 29 11:30:00 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Thu, 29 Jun 2000 11:30:00 -0700 (MST) Subject: php3 Message-ID: Does mapserver require that php3 be a DSO? From michalak at hwr.arizona.edu Thu Jun 29 11:33:32 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Thu, 29 Jun 2000 11:33:32 -0700 (MST) Subject: slayer and query mode Message-ID: I'm having trouble finding documentation for how to set an slayer and how to set the mode to nquery or featurequery using php. I'm looking at the mapscript.html docs. From danmo at videotron.ca Thu Jun 29 12:17:31 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Thu, 29 Jun 2000 15:17:31 -0400 Subject: [Fwd: Re: php3] Message-ID: <395BA0CB.A1C57782@videotron.ca> -------------- next part -------------- An embedded message was scrubbed... From: Daniel Morissette Subject: Re: php3 Date: Thu, 29 Jun 2000 15:08:14 -0400 Size: 2625 URL: From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Jun 29 13:22:37 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 29 Jun 2000 16:22:37 -0400 Subject: php3 Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C0B2@s5-ccr-r1> On that topic, I'm trying to compile the PHP3 MapServer module, and am having some trouble : When I run configure with "--with-php3=[DIR]", I get the following errors : creating Makefile sed: file conftest.s1 line 66: Unterminated 's' command creating gdft/Makefile sed: file conftest.s1 line 66: Unterminated 's' command creating mapscript/php3/Makefile sed: file conftest.s1 line 66: Unterminated 's' command No makefiles ! This is the latest nightly build (Got it but a few minutes ago) It compiles fine with no options or with --with-proj for instance. This is a stock RedHat 6.2, SED Version 3.02. Am I alone ? J.F. > ---------- > From: Zolla Michalak[SMTP:michalak at hwr.arizona.edu] > Sent: Thursday, June 29, 2000 2:30 PM > To: mapserver-users at lists.gis.umn.edu > Subject: php3 > > Does mapserver require that php3 be a DSO? > From danmo at videotron.ca Thu Jun 29 14:04:44 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Thu, 29 Jun 2000 17:04:44 -0400 Subject: php3 References: <2951561DB3DDD0118FEC00805FFE98050380C0B2@s5-ccr-r1> Message-ID: <395BB9EC.948D4108@videotron.ca> "Doyon, Jean-Francois" wrote: > > On that topic, I'm trying to compile the PHP3 MapServer module, and am > having some trouble : > > When I run configure with "--with-php3=[DIR]", I get the following errors : > > creating Makefile > sed: file conftest.s1 line 66: Unterminated 's' command > creating gdft/Makefile > sed: file conftest.s1 line 66: Unterminated 's' command > creating mapscript/php3/Makefile > sed: file conftest.s1 line 66: Unterminated 's' command > > No makefiles ! This is the latest nightly build (Got it but a few minutes > ago) > > It compiles fine with no options or with --with-proj for instance. > > This is a stock RedHat 6.2, SED Version 3.02. > The configure script was generated by autoconf on RedHat 6.1 and I would expect it to work on RH 6.2. BTW, RH6.1 uses sed V3.02 as well. Maybe you could try run the "autoconf" command from the MapServer directory. This will regenerate the configure script from the configure.in. Then try running ./configure again and we'll see if that makes a difference. -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From bertha_bonita at yahoo.com Thu Jun 29 20:30:40 2000 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Thu, 29 Jun 2000 20:30:40 -0700 (PDT) Subject: PROJECTION Message-ID: <20000630033040.795.qmail@web4202.mail.yahoo.com> Hello List! How can i use the proj4.4.1 in mapserver? when i run my program, the result is: "library projection is unable" or sometime like, i don'r remember in this moment exactly. so, when i run my program, the images can't see,.. in the demo the images see very well.. somebody can say me, what projection use in the demo.map? mapserver take a default projection? i'm waiting for a soon answer ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Get Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ From kibez at gilan.uar.net Tue Jun 27 12:18:01 2000 From: kibez at gilan.uar.net (kibez) Date: Tue, 27 Jun 2000 18:18:01 -0100 Subject: How to mark object on a map using PHP/MapScript ?? Message-ID: <3958FDE9.448936BB@gilan.uar.net> Hi all, It is necessary for me to draw the sign (a point, a line...) on a map ????????? Somehow it is necessary to select the retrieved object on a map. How it can be made, using PHP/MapScript???? Unfortunately the given code does not work!!! .......................... $img = $gpoMap->draw(); $point[0]=3396429; $point[1]=6490035; $oMarkPoint = ms_newpointobj(); $oMarkPoint->setxy($point[0], $point[1]); $oLayerAddress = $gpoMap->getlayerbyname("address_point"); $oMarkPoint->draw($gpoMap, $oLayerAddress, $img, "", "!!!!!!!!!!"); Fatal error: Call to unsupported or undefined function draw() in map.php3 on line 675 ................................... Whether there are other ways to mark the object on a map using PHP/MapScript ???