From peter42 at dds.nl Wed Mar 1 12:59:48 2000 From: peter42 at dds.nl (Peter H.M. Jacobs) Date: Wed, 1 Mar 2000 21:59:48 +0100 Subject: image size depends on screen resolution Message-ID: Hello, I've implemented a very small Java script for creating a mapserv image where the size depends on the resolution of the screen of the user. I thought that perhaps some of you might be interested. Just put something like this in the HTML template Now you've created just another hidden input type that is being send to the mapserv Regards, Peter From steve.lime at dnr.state.mn.us Wed Mar 1 13:03:07 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 01 Mar 2000 15:03:07 -0600 Subject: image size depends on screen resolution Message-ID: Cool. Any idea which browsers and versions of javascript this is limited to (if any)? >>> "Peter H.M. Jacobs" 03/01/00 02:59PM >>> Hello, I've implemented a very small Java script for creating a mapserv image where the size depends on the resolution of the screen of the user. I thought that perhaps some of you might be interested. Just put something like this in the HTML template Now you've created just another hidden input type that is being send to the mapserv Regards, Peter From peter42 at dds.nl Wed Mar 1 13:12:39 2000 From: peter42 at dds.nl (Peter H.M. Jacobs) Date: Wed, 1 Mar 2000 22:12:39 +0100 Subject: image size depends on screen resolution In-Reply-To: Message-ID: Hello Stephen and others, It works for all the browsers I've tested. These are Microsoft Internet Explorer and Netscape for both Linux as Windows. It's in my opinion a very common Java code. Regards, Peter -----Oorspronkelijk bericht----- Van: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Verzonden: woensdag 1 maart 2000 22:03 Aan: peter42 at dds.nl; mapserver-users at lists.gis.umn.edu Onderwerp: Re: image size depends on screen resolution Cool. Any idea which browsers and versions of javascript this is limited to (if any)? >>> "Peter H.M. Jacobs" 03/01/00 02:59PM >>> Hello, I've implemented a very small Java script for creating a mapserv image where the size depends on the resolution of the screen of the user. I thought that perhaps some of you might be interested. Just put something like this in the HTML template Now you've created just another hidden input type that is being send to the mapserv Regards, Peter From kenboss at dilbert.dnr.state.mn.us Wed Mar 1 13:14:28 2000 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Wed, 1 Mar 2000 15:14:28 -0600 (CST) Subject: image size depends on screen resolution Message-ID: <200003012114.PAA13384@philbert.dnr.state.mn.us> The book in front of me here says the screen javascript object is available in Navigator 4 and Internet Explorer 4 (and presumably 5). It is not available in earlier versions. --Ken > > Cool. Any idea which browsers and versions of javascript this is limited to (if any)? > > >>> "Peter H.M. Jacobs" 03/01/00 02:59PM >>> > Hello, > > I've implemented a very small Java script for creating a mapserv image where > the size depends on the resolution of the screen of the user. I thought that > perhaps some of you might be interested. Just put something like this in the > HTML template > > > > Now you've created just another hidden input type that is being send to the > mapserv > > Regards, > > Peter > > > From peter42 at dds.nl Thu Mar 2 15:08:35 2000 From: peter42 at dds.nl (Peter H.M. Jacobs) Date: Fri, 3 Mar 2000 00:08:35 +0100 Subject: templates for now records found Message-ID: Hello, does anyone know how to implement html templates for queries with no results. ( when I query the city layer in the demo map and point my mouse on a lake I get a html page "msQueryUsingPoint(): Search returned no results. No matching record(s) found. ") How can I recplace this by the Dutch equivalent? Regards, Peter Jacobs From steve.lime at dnr.state.mn.us Thu Mar 2 15:31:03 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 02 Mar 2000 17:31:03 -0600 Subject: templates for now records found Message-ID: There is a EMPTY parameter for the webObj. The argument is a fully qualified URL to redirect users to when a query returns an empty result set. For example: EMPTY "http://myserver.com/mapapp/notfound.html" Similarly there is an ERROR parameter for other error messages. If EMPTY is not defined than all errors are redirected to ERROR. If neither is defined then the standard error message is used. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Peter H.M. Jacobs" 03/02/00 05:08PM >>> Hello, does anyone know how to implement html templates for queries with no results. ( when I query the city layer in the demo map and point my mouse on a lake I get a html page "msQueryUsingPoint(): Search returned no results. No matching record(s) found. ") How can I recplace this by the Dutch equivalent? Regards, Peter Jacobs From rchavez at perseus.tufts.edu Thu Mar 2 16:06:30 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Thu, 02 Mar 2000 19:06:30 -0500 Subject: question about using shptree Message-ID: <38BF0206.D7C1EA3F@perseus.tufts.edu> Curiosity question. Once a spatial index is created with shptree, how is the resulting .qih file registered with and used by mapserver. Does mapserver pick it up automatically from the Layer Object data field? Rob Chavez Perseus Project From steve.lime at dnr.state.mn.us Thu Mar 2 16:03:50 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 02 Mar 2000 18:03:50 -0600 Subject: question about using shptree Message-ID: Quadtree index (.qix) file is detected automatically. If it's not there then the MapServer falls back on a bounding box intersection test FOR EACH SHAPE to determine if it should be processed further. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Robert Chavez 03/02/00 06:06PM >>> Curiosity question. Once a spatial index is created with shptree, how is the resulting .qih file registered with and used by mapserver. Does mapserver pick it up automatically from the Layer Object data field? Rob Chavez Perseus Project From peter42 at dds.nl Sun Mar 5 17:18:24 2000 From: peter42 at dds.nl (Peter H.M. Jacobs) Date: Mon, 6 Mar 2000 02:18:24 +0100 Subject: mapserv & PHP Message-ID: Hello, A year ago there were some meesages about the combination of mapserv and PHP. Stephen explained that it is immpossible to combine them because the results of mapserv are sent directly to the user instead of Apache. I use PHP in the template files and make the template files update the shapefiles (using mascript). This works OK. I have 1 other remark. I'm testing a WAP way for the mapserv that will be able to fetch all the information to local mobile phones (I think the Wireless Application Protocol=WAP is European, but I'm not sure) If anyone is interested, please mail me Regards, Peter From cfuhrman at tfcci.com Mon Mar 6 07:04:14 2000 From: cfuhrman at tfcci.com (Chris Fuhrman) Date: Mon, 6 Mar 2000 10:04:14 -0500 (EST) Subject: undefined symbol when using mapscript Message-ID: Howdy, I'm afraid this is going to be a typical newbie-type question but... I've downloaded the complete mapserv package and installed it according to the instructions on the web site. I am now testing the mapscript with some sample data I grabbed from ESRI's web site. Unfortunately, when I run my test script, I get the following error: Can't load '/usr/lib/perl5/site_perl/5.005/i386-linux/auto/mapscript/mapscript.so' for module mapscript: /usr/lib/perl5/site_perl/5.005/i386-linux/auto/mapscript/mapscript.so: undefined symbol: gdImageGif at /usr/lib/perl5/5.00503/i386-linux/DynaLoader.pm line 169. I'm compiling this under Redhat Linux 6.1 (kernel 2.2.12-20) with perl 5.005. I believe I've got everything installed right although it looks like mapscript doesn't know where to find the gdImageGif Function. Suggestions? -- Chris Fuhrman cfuhrman at tfcci.com Public Encryption Key Available Upon Request From frank.koormann at intevation.de Mon Mar 6 07:31:45 2000 From: frank.koormann at intevation.de (Frank Koormann) Date: Mon, 6 Mar 2000 16:31:45 +0100 Subject: undefined symbol when using mapscript In-Reply-To: ; from cfuhrman@tfcci.com on Mon, Mar 06, 2000 at 10:04:14AM -0500 References: Message-ID: <20000306163145.A3805@cheops.usf.Uni-Osnabrueck.DE> Hello, * Chris Fuhrman (cfuhrman at tfcci.com) [000306 16:15]: > > Howdy, > ... > > Unfortunately, when I run my test script, I get the following error: > > Can't load > '/usr/lib/perl5/site_perl/5.005/i386-linux/auto/mapscript/mapscript.so' > for module > mapscript: /usr/lib/perl5/site_perl/5.005/i386-linux/auto/mapscript/mapscript.so: undefined > symbol: gdImageGif at /usr/lib/perl5/5.00503/i386-linux/DynaLoader.pm line > 169. > > I'm compiling this under Redhat Linux 6.1 (kernel 2.2.12-20) with perl > 5.005. I believe I've got everything installed right although it looks > like mapscript doesn't know where to find the gdImageGif Function. > > Suggestions? > I am not that familiar with mapscript (and perl) but what version of the gd-library is installed on your system ? The developers dropped gif-support from the library due to the licence issues with Unisys (they hold a patent on the LZW data compression used by the gif format). Newer versions of gd (>= 1.6 ?) support only png-format (which is not a limitation IMO). MapServer is alrady reflecting this by a define-rule to be set in the makefile (GD=-DUSE_GD_1_6). Cheers, Frank P.S.: For more information on the gif issue: http://burnallgifs.org -- Frank Koormann http://intevation.net/~frank/ Intevation GmbH http://intevation.net/ FreeGIS Project http://freegis.org Institute of Environmental Systems Research http://www.usf.uos.de/ From imap at chesapeake.net Mon Mar 6 08:14:43 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Mon, 06 Mar 2000 11:14:43 -0500 Subject: undefined symbol when using mapscript References: Message-ID: <38C3D973.B8A746EE@chesapeake.net> Chris, go into the ms_3.3.007/mapscript subdir perl Makefile.PL make make install (as root) -Chris Chris Fuhrman wrote: > > Howdy, > > I'm afraid this is going to be a typical newbie-type question but... > > I've downloaded the complete mapserv package and installed it according to > the instructions on the web site. I am now testing the mapscript with > some sample data I grabbed from ESRI's web site. > > Unfortunately, when I run my test script, I get the following error: > > Can't load > '/usr/lib/perl5/site_perl/5.005/i386-linux/auto/mapscript/mapscript.so' > for module > mapscript: /usr/lib/perl5/site_perl/5.005/i386-linux/auto/mapscript/mapscript.so: undefined > symbol: gdImageGif at /usr/lib/perl5/5.00503/i386-linux/DynaLoader.pm line > 169. > > I'm compiling this under Redhat Linux 6.1 (kernel 2.2.12-20) with perl > 5.005. I believe I've got everything installed right although it looks > like mapscript doesn't know where to find the gdImageGif Function. > > Suggestions? > > -- > Chris Fuhrman > cfuhrman at tfcci.com > > Public Encryption Key Available Upon Request -- Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. 410-257-3187 From cfuhrman at tfcci.com Mon Mar 6 10:21:14 2000 From: cfuhrman at tfcci.com (Chris Fuhrman) Date: Mon, 6 Mar 2000 13:21:14 -0500 (EST) Subject: undefined symbol when using mapscript In-Reply-To: <20000306163145.A3805@cheops.usf.Uni-Osnabrueck.DE> Message-ID: On Mon, 6 Mar 2000, Frank Koormann wrote: > Hello, > > I am not that familiar with mapscript (and perl) but what version of > the gd-library is installed on your system ? The developers dropped > gif-support from the library due to the licence issues with Unisys > (they hold a patent on the LZW data compression used by the gif format). > Newer versions of gd (>= 1.6 ?) support only png-format (which is not a > limitation IMO). MapServer is alrady reflecting this by a define-rule > to be set in the makefile (GD=-DUSE_GD_1_6). I'm using the version of gd-lib that comes with mapserv (gd-1.2) which looks like it still supports GIF. I've tried recompiling everything (including mapscript) and re-installing to no avail. If there is any additional information you need, please let me know. -- Chris Fuhrman cfuhrman at tfcci.com Public Encryption Key Available Upon Request From cfuhrman at tfcci.com Mon Mar 6 10:25:07 2000 From: cfuhrman at tfcci.com (Chris Fuhrman) Date: Mon, 6 Mar 2000 13:25:07 -0500 (EST) Subject: undefined symbol when using mapscript In-Reply-To: <38C3D973.B8A746EE@chesapeake.net> Message-ID: On Mon, 6 Mar 2000 imap at chesapeake.net wrote: > Chris, > > go into the ms_3.3.007/mapscript subdir > > perl Makefile.PL > make > make install (as root) This is how I initially installed it. At someone's suggestion (Thanks Steve! It's appreciated!), I've also copied libgd.a to /usr/lib but that didn't work either... :( > > -Chris -- Chris Fuhrman cfuhrman at tfcci.com Public Encryption Key Available Upon Request From RALDRIDG at gulf-states.com Mon Mar 6 11:08:51 2000 From: RALDRIDG at gulf-states.com (Robert Aldridge) Date: Mon, 06 Mar 2000 13:08:51 -0600 Subject: Building 3.3.007 Message-ID: I recently downloaded and built ms_3.3.007 with no problems. I built it with gd-1.7.3 and libTiff. I then copied the mapserv executable to my CGI directory. Everything works fine. I have 3 different projects set up and all work great. Unfortunately, I removed the ms_3.3.007 directory before copying the other utilities. So, I was just going to replicate what I did before and copy the utilities and the mapscript stuff. However, when I try to build it now, I get the errors shown below. I thought that I did everything identical to before, but apparently not. Here's what I did: 1) tar xzvf ms_3.3.007.tar.gz 2) cd ms_3.3.007 3) tar xzvf ../gd-1.7.3.tar.gz 4) vi Makefile (changed all references to gd-1.2 to gd-1.7.3 and all -DUSE_GD_1_2 to -DUSE_GD_1_6) 5) cd gdft 6) vi Makefile (changed all references to gd-1.2 to gd-1.7.3 and all -DUSE_GD_1_2 to -DUSE_GD_1_6) 7) cd .. 8) make 9) Got "maplabel.c:13: freetype.h: No such file or directory" 10) make clean 11) cd gdft 12) cp /usr/local/include/freetype/*.h . 13) cd .. 14) make then, I get the following. Any ideas? Since my mapserver is working OK, should I just wait for ms_3.3.008? Thanks, Robert Aldridge [begin code snippet] . . . gcc -Wall -O -DUSE_EPPL -DUSE_TTF -DUSE_TIFF -DUSE_GD_1_6 -I./gd-1.7.3 -I./gdft shp2img.o -L. -lmap -L./gd-1.7.3 -lgd -L./gdft -lgdft -lttf -ltiff -lm -o shp2img ./gd-1.7.3/libgd.a(gd_png.o): In function `gdPngErrorHandler': gd_png.o(.text+0x27): undefined reference to `png_get_error_ptr' ./gd-1.7.3/libgd.a(gd_png.o): In function `gdPngReadData': gd_png.o(.text+0x6b): undefined reference to `png_get_io_ptr' ./gd-1.7.3/libgd.a(gd_png.o): In function `gdPngWriteData': gd_png.o(.text+0x8f): undefined reference to `png_get_io_ptr' ./gd-1.7.3/libgd.a(gd_png.o): In function `gdImageCreateFromPngCtx': gd_png.o(.text+0x107): undefined reference to `png_check_sig' gd_png.o(.text+0x132): undefined reference to `png_create_read_struct' gd_png.o(.text+0x15b): undefined reference to `png_create_info_struct' gd_png.o(.text+0x1a6): undefined reference to `png_set_sig_bytes' gd_png.o(.text+0x1b7): undefined reference to `png_set_read_fn' gd_png.o(.text+0x1c2): undefined reference to `png_read_info' gd_png.o(.text+0x1e5): undefined reference to `png_get_IHDR' gd_png.o(.text+0x1f6): undefined reference to `png_set_strip_16' gd_png.o(.text+0x20a): undefined reference to `png_set_packing' gd_png.o(.text+0x22b): undefined reference to `png_set_strip_alpha' gd_png.o(.text+0x255): undefined reference to `png_get_PLTE' gd_png.o(.text+0x262): undefined reference to `png_get_valid' gd_png.o(.text+0x298): undefined reference to `png_get_tRNS' gd_png.o(.text+0x366): undefined reference to `png_get_valid' gd_png.o(.text+0x384): undefined reference to `png_get_tRNS' gd_png.o(.text+0x3e7): undefined reference to `png_get_valid' gd_png.o(.text+0x401): undefined reference to `png_get_tRNS' gd_png.o(.text+0x4ed): undefined reference to `png_set_dither' gd_png.o(.text+0x4fb): undefined reference to `png_read_update_info' gd_png.o(.text+0x506): undefined reference to `png_get_rowbytes' gd_png.o(.text+0x53b): undefined reference to `png_destroy_read_struct' gd_png.o(.text+0x57b): undefined reference to `png_destroy_read_struct' gd_png.o(.text+0x5ac): undefined reference to `png_read_image' gd_png.o(.text+0x5b6): undefined reference to `png_read_end' gd_png.o(.text+0x5e9): undefined reference to `png_destroy_read_struct' gd_png.o(.text+0x6c2): undefined reference to `png_destroy_read_struct' ./gd-1.7.3/libgd.a(gd_png.o): In function `gdImagePngCtx': gd_png.o(.text+0x801): undefined reference to `png_create_write_struct' gd_png.o(.text+0x82e): undefined reference to `png_create_info_struct' gd_png.o(.text+0x895): undefined reference to `png_set_write_fn' gd_png.o(.text+0x9ca): undefined reference to `png_set_IHDR' gd_png.o(.text+0xa53): undefined reference to `png_set_tRNS' gd_png.o(.text+0xbcb): undefined reference to `png_set_PLTE' gd_png.o(.text+0xbdc): undefined reference to `png_write_info' gd_png.o(.text+0xbe7): undefined reference to `png_set_packing' gd_png.o(.text+0xcfb): undefined reference to `png_write_image' gd_png.o(.text+0xd0c): undefined reference to `png_write_end' gd_png.o(.text+0xd5c): undefined reference to `png_write_image' gd_png.o(.text+0xd6d): undefined reference to `png_write_end' gd_png.o(.text+0xd83): undefined reference to `png_destroy_write_struct' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 [end code snippet] From steve.lime at dnr.state.mn.us Mon Mar 6 11:46:11 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 06 Mar 2000 13:46:11 -0600 Subject: Building 3.3.007 Message-ID: I've seen this error before. Did you add the -lpng -lz to the library defines in the Makefile's? >>> "Robert Aldridge" 03/06/00 01:08PM >>> I recently downloaded and built ms_3.3.007 with no problems. I built it with gd-1.7.3 and libTiff. I then copied the mapserv executable to my CGI directory. Everything works fine. I have 3 different projects set up and all work great. Unfortunately, I removed the ms_3.3.007 directory before copying the other utilities. So, I was just going to replicate what I did before and copy the utilities and the mapscript stuff. However, when I try to build it now, I get the errors shown below. I thought that I did everything identical to before, but apparently not. Here's what I did: 1) tar xzvf ms_3.3.007.tar.gz 2) cd ms_3.3.007 3) tar xzvf ../gd-1.7.3.tar.gz 4) vi Makefile (changed all references to gd-1.2 to gd-1.7.3 and all -DUSE_GD_1_2 to -DUSE_GD_1_6) 5) cd gdft 6) vi Makefile (changed all references to gd-1.2 to gd-1.7.3 and all -DUSE_GD_1_2 to -DUSE_GD_1_6) 7) cd .. 8) make 9) Got "maplabel.c:13: freetype.h: No such file or directory" 10) make clean 11) cd gdft 12) cp /usr/local/include/freetype/*.h . 13) cd .. 14) make then, I get the following. Any ideas? Since my mapserver is working OK, should I just wait for ms_3.3.008? Thanks, Robert Aldridge [begin code snippet] . . . gcc -Wall -O -DUSE_EPPL -DUSE_TTF -DUSE_TIFF -DUSE_GD_1_6 -I./gd-1.7.3 -I./gdft shp2img.o -L. -lmap -L./gd-1.7.3 -lgd -L./gdft -lgdft -lttf -ltiff -lm -o shp2img ./gd-1.7.3/libgd.a(gd_png.o): In function `gdPngErrorHandler': gd_png.o(.text+0x27): undefined reference to `png_get_error_ptr' ./gd-1.7.3/libgd.a(gd_png.o): In function `gdPngReadData': gd_png.o(.text+0x6b): undefined reference to `png_get_io_ptr' ./gd-1.7.3/libgd.a(gd_png.o): In function `gdPngWriteData': gd_png.o(.text+0x8f): undefined reference to `png_get_io_ptr' ./gd-1.7.3/libgd.a(gd_png.o): In function `gdImageCreateFromPngCtx': gd_png.o(.text+0x107): undefined reference to `png_check_sig' gd_png.o(.text+0x132): undefined reference to `png_create_read_struct' gd_png.o(.text+0x15b): undefined reference to `png_create_info_struct' gd_png.o(.text+0x1a6): undefined reference to `png_set_sig_bytes' gd_png.o(.text+0x1b7): undefined reference to `png_set_read_fn' gd_png.o(.text+0x1c2): undefined reference to `png_read_info' gd_png.o(.text+0x1e5): undefined reference to `png_get_IHDR' gd_png.o(.text+0x1f6): undefined reference to `png_set_strip_16' gd_png.o(.text+0x20a): undefined reference to `png_set_packing' gd_png.o(.text+0x22b): undefined reference to `png_set_strip_alpha' gd_png.o(.text+0x255): undefined reference to `png_get_PLTE' gd_png.o(.text+0x262): undefined reference to `png_get_valid' gd_png.o(.text+0x298): undefined reference to `png_get_tRNS' gd_png.o(.text+0x366): undefined reference to `png_get_valid' gd_png.o(.text+0x384): undefined reference to `png_get_tRNS' gd_png.o(.text+0x3e7): undefined reference to `png_get_valid' gd_png.o(.text+0x401): undefined reference to `png_get_tRNS' gd_png.o(.text+0x4ed): undefined reference to `png_set_dither' gd_png.o(.text+0x4fb): undefined reference to `png_read_update_info' gd_png.o(.text+0x506): undefined reference to `png_get_rowbytes' gd_png.o(.text+0x53b): undefined reference to `png_destroy_read_struct' gd_png.o(.text+0x57b): undefined reference to `png_destroy_read_struct' gd_png.o(.text+0x5ac): undefined reference to `png_read_image' gd_png.o(.text+0x5b6): undefined reference to `png_read_end' gd_png.o(.text+0x5e9): undefined reference to `png_destroy_read_struct' gd_png.o(.text+0x6c2): undefined reference to `png_destroy_read_struct' ./gd-1.7.3/libgd.a(gd_png.o): In function `gdImagePngCtx': gd_png.o(.text+0x801): undefined reference to `png_create_write_struct' gd_png.o(.text+0x82e): undefined reference to `png_create_info_struct' gd_png.o(.text+0x895): undefined reference to `png_set_write_fn' gd_png.o(.text+0x9ca): undefined reference to `png_set_IHDR' gd_png.o(.text+0xa53): undefined reference to `png_set_tRNS' gd_png.o(.text+0xbcb): undefined reference to `png_set_PLTE' gd_png.o(.text+0xbdc): undefined reference to `png_write_info' gd_png.o(.text+0xbe7): undefined reference to `png_set_packing' gd_png.o(.text+0xcfb): undefined reference to `png_write_image' gd_png.o(.text+0xd0c): undefined reference to `png_write_end' gd_png.o(.text+0xd5c): undefined reference to `png_write_image' gd_png.o(.text+0xd6d): undefined reference to `png_write_end' gd_png.o(.text+0xd83): undefined reference to `png_destroy_write_struct' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 [end code snippet] From cfuhrman at tfcci.com Mon Mar 6 12:09:10 2000 From: cfuhrman at tfcci.com (Chris Fuhrman) Date: Mon, 6 Mar 2000 15:09:10 -0500 (EST) Subject: mapscript.bs -- bootstrap file Message-ID: As a followup to the undefined symbol problem, I've noticed when the installation script for mapscript runs Mkbootstrap, it creates a file called mapscript.bs. This file is a zero-length file. Could this have anything to do with it? -- Chris Fuhrman cfuhrman at tfcci.com Public Encryption Key Available Upon Request From RAldridge at linuxstart.com Mon Mar 6 12:17:06 2000 From: RAldridge at linuxstart.com (RAldridge) Date: Mon, 6 Mar 2000 12:17:06 -0800 Subject: SUM: Building MS_3.3.007 Message-ID: <200003062017.MAA01584@ns1.filetron.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From cfuhrman at tfcci.com Mon Mar 6 13:26:53 2000 From: cfuhrman at tfcci.com (Chris Fuhrman) Date: Mon, 6 Mar 2000 16:26:53 -0500 (EST) Subject: Possible explanation for undefined symbol problem... Message-ID: Just for fun, I tried compiling mapserver/mapscript with gd-1.7.3 instead of gd-1.2. Upon re-installation, it told me that png_get_error_ptr was undefined. I then decided to go into the gd-1.7.3 src and make sure the thing was installed. In the course of fiddling with it, I discovered that libgd.a was being installed in /usr/local/* Normally, this wouldn't be a problem except that in my work environment /usr/local is actually NFS-mounted off of another machine. Furthermore, there is already another version of libgd.a in there. So my guess is that mapscript is trying to link off of that other version of libgd.a which is causing the problems (I've no idea what version is on the NFS server). So basically, I've got two options: 1) Install the latest-n-greatest version of GD on the NFS box (risky. Could break other programs) 2) Install mapserver on a completely separate machine. Thanks for the help! -- Chris Fuhrman cfuhrman at tfcci.com Public Encryption Key Available Upon Request From cshorte2 at csc.com Mon Mar 6 15:18:44 2000 From: cshorte2 at csc.com (cshorte2 at csc.com) Date: Tue, 7 Mar 2000 09:18:44 +1000 Subject: http://www.freegis.org/ Message-ID: <8525689A.007B6464.00@csc.com> Just found a website which lists all the free GIS packages. http://www.freegis.org/ From imap at chesapeake.net Mon Mar 6 21:55:45 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Tue, 07 Mar 2000 00:55:45 -0500 Subject: undefined symbol when using mapscript References: Message-ID: <38C499E0.A6262BAB@chesapeake.net> Chris, I'd recommending building the libraries locally, and link GD (possibly others) statically. The dynamic libraries could be a problem, especially if they are NFS mountes. Sounds like a questionable practice to me. With 3.3.007 make sure that the mapscript "Makefile.PL" uses the same -D defines as the mapserv Makefile. That one, I had to tweak by hand. That is about the only other suggestions I can make. -Chris Chris Fuhrman wrote: > > On Mon, 6 Mar 2000 imap at chesapeake.net wrote: > > > Chris, > > > > go into the ms_3.3.007/mapscript subdir > > > > perl Makefile.PL > > make > > make install (as root) > > This is how I initially installed it. > > At someone's suggestion (Thanks Steve! It's appreciated!), I've also > copied libgd.a to /usr/lib but that didn't work either... :( > > > > > -Chris > > -- > Chris Fuhrman > cfuhrman at tfcci.com > > Public Encryption Key Available Upon Request -- Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. 410-257-3187 From steve.lime at dnr.state.mn.us Tue Mar 7 06:18:54 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 07 Mar 2000 08:18:54 -0600 Subject: Possible explanation for undefined symbol problem... Message-ID: This is strange though. I just installed all this on an Alpha running RH6.1 with no problem. There was another version of GD installed on that box as well. Anyone know if -L./gd takes precedence over anything found in default library locations (i.e. /usr/lib or /usr/local/lib) or the other way around? Steve <<< Chris Fuhrman 3/ 6 3:28p >>> Just for fun, I tried compiling mapserver/mapscript with gd-1.7.3 instead of gd-1.2. Upon re-installation, it told me that png_get_error_ptr was undefined. I then decided to go into the gd-1.7.3 src and make sure the thing was installed. In the course of fiddling with it, I discovered that libgd.a was being installed in /usr/local/* Normally, this wouldn't be a problem except that in my work environment /usr/local is actually NFS-mounted off of another machine. Furthermore, there is already another version of libgd.a in there. So my guess is that mapscript is trying to link off of that other version of libgd.a which is causing the problems (I've no idea what version is on the NFS server). So basically, I've got two options: 1) Install the latest-n-greatest version of GD on the NFS box (risky. Could break other programs) 2) Install mapserver on a completely separate machine. Thanks for the help! -- Chris Fuhrman cfuhrman at tfcci.com Public Encryption Key Available Upon Request From jedgar at fxp.org Tue Mar 7 06:39:53 2000 From: jedgar at fxp.org (Chris D. Faulhaber) Date: Tue, 7 Mar 2000 09:39:53 -0500 (EST) Subject: Possible explanation for undefined symbol problem... In-Reply-To: Message-ID: On Tue, 7 Mar 2000, Stephen Lime wrote: > This is strange though. I just installed all this on an Alpha running RH6.1 with no problem. There was another version of GD installed on that box as well. Anyone know if -L./gd takes precedence over anything found in default library locations (i.e. /usr/lib or /usr/local/lib) or the other way around? > Normally the system compiler (assuming gcc) will search predefined paths (/usr/lib) before searching user-specified paths unless you specify the compiler option '-nostdlib' before the '-L', in which it will search only the specified paths. ----- Chris D. Faulhaber - jedgar at fxp.org - jedgar at FreeBSD.org -------------------------------------------------------- FreeBSD: The Power To Serve - http://www.FreeBSD.org From bfischer at usgs.gov Tue Mar 7 11:41:21 2000 From: bfischer at usgs.gov (bfischer at usgs.gov) Date: Tue, 7 Mar 2000 13:41:21 -0600 Subject: Changing the width of a polygon outline. Message-ID: Hello Everyone, I was wondering if there is a way to change the width of a polygon's outline and keep the fill set to transparent? Thanks, Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 From steve.lime at dnr.state.mn.us Tue Mar 7 13:45:32 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 07 Mar 2000 15:45:32 -0600 Subject: Changing the width of a polygon outline. Message-ID: That's what layer TYPE POLYLINE is for. You can use any line symbol for the outline then. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 03/07/00 01:41PM >>> Hello Everyone, I was wondering if there is a way to change the width of a polygon's outline and keep the fill set to transparent? Thanks, Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 From peter42 at dds.nl Tue Mar 7 14:10:31 2000 From: peter42 at dds.nl (Peter H.M. Jacobs) Date: Tue, 7 Mar 2000 23:10:31 +0100 Subject: Tiff raster pictures In-Reply-To: Message-ID: Hi all, does anyone know if it is poosible to render 24-bit TIF files instead of the 8-bit raster files? Is it perhaps possible with the jpeg library? People then have the possibility to choose between a very sharp but slow picture or a less sharp but faster picture. Regards, Peter Jacobs From imap at chesapeake.net Tue Mar 7 16:45:29 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Tue, 07 Mar 2000 19:45:29 -0500 Subject: Tiff raster pictures References: Message-ID: <38C5A2A9.F5DBF51B@chesapeake.net> I think the jpeg support is currently limited to input only, but it would be great to render 24-bit TIFFs. By the time you whack a 24-bit image to 8-bits... It doesnt look so great anymore. Adobe Illustrator has the ablility to zoom into a 24-bit TIFF without pixelization or distortion of any kind. The output is really nice.... I was hoping to see a similar functionality is some other free graphic package like ImageMagick or GIMP. Is it libtiff's limitation to do < 8-bit images, or what? PNG is a output option, but JPEG would be nice too. While on the topic of wants... Does anyone know of a public b-spline routine for multipoint labelling? Or perhaps another algorithm that might work? Regards, -Chris "Peter H.M. Jacobs" wrote: > > Hi all, > > does anyone know if it is poosible to render 24-bit TIF files instead of the > 8-bit raster files? > Is it perhaps possible with the jpeg library? > People then have the possibility to choose between a very sharp but slow > picture or a less sharp but faster picture. > > Regards, > > Peter Jacobs -- Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. 410-257-3187 From steve.lime at dnr.state.mn.us Tue Mar 7 18:27:08 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 07 Mar 2000 20:27:08 -0600 Subject: Tiff raster pictures Message-ID: The limitation is not due to libtiff. It can handle just about any friggin tiff you give it. The limitation is purely one of GD. It can only produce 8-bit output. It's a big move to 24-bit graphics so I'm not surprised they have't done it yet although it is in the works. MapServer is poised to take advantage of it when it does happen (notice all the colors are rgb etc.). There are some practical reasons why not to use 24-bit output. Number one is there really isn't a decent format yet. Yes, png is promising but many browsers don't support it. File sizes are another. MapServer 8-bit output compresses well. Triple the file size (at least) and users won't be that happy. Lastly there are performance issues. Antialiased graphics, update 3+ image planes all takes time. Imagemagick supports some of the GD functionality in 24-bits but is 6 to 8 times slower. A high price to pay. JPEG simply is not well suited to line art applications. BTW JPEG support is limited to 8-bit greyscale input. JPEG was not built to support random (ie. windowed) access so should be avoided at all cost. Use TIFF instead. Steve <<< 3/ 7 6:46p >>> I think the jpeg support is currently limited to input only, but it would be great to render 24-bit TIFFs. By the time you whack a 24-bit image to 8-bits... It doesnt look so great anymore. Adobe Illustrator has the ablility to zoom into a 24-bit TIFF without pixelization or distortion of any kind. The output is really nice.... I was hoping to see a similar functionality is some other free graphic package like ImageMagick or GIMP. Is it libtiff's limitation to do < 8-bit images, or what? PNG is a output option, but JPEG would be nice too. While on the topic of wants... Does anyone know of a public b-spline routine for multipoint labelling? Or perhaps another algorithm that might work? Regards, -Chris "Peter H.M. Jacobs" wrote: > > Hi all, > > does anyone know if it is poosible to render 24-bit TIF files instead of the > 8-bit raster files? > Is it perhaps possible with the jpeg library? > People then have the possibility to choose between a very sharp but slow > picture or a less sharp but faster picture. > > Regards, > > Peter Jacobs -- Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. 410-257-3187 From puchert at gfz-potsdam.de Wed Mar 8 07:01:41 2000 From: puchert at gfz-potsdam.de (Ralf Puchert) Date: Wed, 08 Mar 2000 15:01:41 GMT Subject: Usage of PROJ4 in map file Message-ID: <20000308.15014151@dc27.gfz-potsdam.de> Hello, Does anyone knows how to use the PROJ4 in map file ? I 've got a white (empty) picture whist this. My mapfile is : NAME mexico STATUS ON EXTENT -117.1224 34.0105 -86.771 13.3327 SIZE 500 300 SHAPEPATH "." UNITS DD PROJECTION "proj=utm" "ellps=GRS80" "zone=12" "north" "no_defs" END LAYER NAME states PROJECTION geographic END TYPE LINE STATUS ON DATA states MAXSCALE 113499149 TYPE LINE CLASS COLOR 0 0 200 END END END Thanks Ralf Puchert puchert at gfz-potsdam.de Student Computer Science GeoForschungsZentrum Potsdam From steve.lime at dnr.state.mn.us Wed Mar 8 07:17:34 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 08 Mar 2000 09:17:34 -0600 Subject: Usage of PROJ4 in map file Message-ID: Your usage looks fine. It's the code that sucks. It appears that a few small bugs have rendered on-the-fly projection useless. I'm surprised nobody noticed since I think it's been busted for several versions. Anyway, it's fixed in 3.3.008 which I will release later today. Steve <<< Ralf Puchert 3/ 8 9:01a >>> Hello, Does anyone knows how to use the PROJ4 in map file ? I 've got a white (empty) picture whist this. My mapfile is : NAME mexico STATUS ON EXTENT -117.1224 34.0105 -86.771 13.3327 SIZE 500 300 SHAPEPATH "." UNITS DD PROJECTION "proj=utm" "ellps=GRS80" "zone=12" "north" "no_defs" END LAYER NAME states PROJECTION geographic END TYPE LINE STATUS ON DATA states MAXSCALE 113499149 TYPE LINE CLASS COLOR 0 0 200 END END END Thanks Ralf Puchert puchert at gfz-potsdam.de Student Computer Science GeoForschungsZentrum Potsdam From RAldridge at linuxstart.com Wed Mar 8 08:39:58 2000 From: RAldridge at linuxstart.com (RAldridge) Date: Wed, 8 Mar 2000 08:39:58 -0800 Subject: SDE support Message-ID: <200003081639.IAA28124@ns1.filetron.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From steve.lime at dnr.state.mn.us Wed Mar 8 12:35:38 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 08 Mar 2000 14:35:38 -0600 Subject: SDE support Message-ID: Just in it's begining. The basic hooks are there just need to write the guts. I finally have access to the SDE libs and a server so will be actively pursuing. Steve <<< RAldridge 3/ 8 10:40a >>> Hello List, Just out of curiosity, what's the status of adding hooks to SDE data sources in Mapserver? Thanks, Robert Aldridge ---------------------- Do you do Linux? :) Get your FREE @linuxstart.com email address at: http://www.linuxstart.com From steve.lime at dnr.state.mn.us Wed Mar 8 16:39:32 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 08 Mar 2000 18:39:32 -0600 Subject: 3.3.008 released... Message-ID: See the main website for links to the newest release... Steve From steve.lime at dnr.state.mn.us Thu Mar 9 08:39:33 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 09 Mar 2000 10:39:33 -0600 Subject: NT version? Message-ID: Has anybody compiled an NT version of 3.3.008 yet? I'm looking for something to post on the MapServer website. A set of all executables would be great if someone would be willing to contribute that. Please let me know if you could help out. Thanks- Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From bfraser at geoanalytic.com Thu Mar 9 10:23:48 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 9 Mar 2000 11:23:48 -0700 Subject: NT version? References: Message-ID: <002b01bf89f4$9d15f270$390002c0@servo> I'll be happy to compile 3.3.008 and supply the executables.. Brent Fraser 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 ----- Original Message ----- From: "Stephen Lime" To: Sent: Thursday, March 09, 2000 9:39 AM Subject: NT version? > Has anybody compiled an NT version of 3.3.008 yet? I'm looking for something > to post on the MapServer website. A set of all executables would be great if someone > would be willing to contribute that. Please let me know if you could help out. > > Thanks- Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > From andreag at geoplan.ufl.edu Thu Mar 9 11:25:55 2000 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Thu, 9 Mar 2000 14:25:55 -0500 (EST) Subject: gd-1.8 Message-ID: <200003091925.OAA04644@alderon.geoplan.ufl.edu> For those of you considering using the latest version of GD, maybe you will have better luck with it than I did. Even after changing all the Makefiles to reflect the newer version of GD, it still wouldn't work. I was getting an error that it couldn't find jinclude.h I did some searching to find out what jinclude.h could be, and my best guess is that it has to do with jpegs. I made sure I had the latest jpeg and libjpeg libraries, but it didn't help. GD-1.8 requires a few more libraries, but making sure I had the latest of each didn't help. I finally switched it back to GD-1.2 and had no problems. If any of you are going to use a version of GD other than 1.2 note that there are 2 places further down in the ms_3.3.008/Makefile where "GD-1.2" is hardcoded in. So change the version there as well as in the top part. @---------------------------------------------------@ | Andrea Goethals GeoPlan Center | | andreag at geoplan.ufl.edu University of Florida | | Web and Graphics Manager 431 Architecture Bldg | | http://www.geoplan.ufl.edu P.O. Box 115706 | | Phone: (352)392-2351 Gainesville, FL 32611 | | Fax:(352)392-3308 | @---------------------------------------------------@ From steve.lime at dnr.state.mn.us Thu Mar 9 11:45:03 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 09 Mar 2000 13:45:03 -0600 Subject: gd-1.8 Message-ID: The latest version of GD I had tried was 1.7.3. The jpeg stuff is brand new. MapServer won't use it anyway cause at the moment there is no way to toggle between PNG, JPG or BMP output with the new version. I imagine you could compile GD without JPEG support and it would probably work. I'll try it at home. Note: You don't have to edit any additional references in the Makefile to gd-1.2. Those references are to build and clean up the 1.2 directory. If you want comment out the line "MAKE_GD" to prevent it from being built. Otherwise those other lines are harmless. In other words, only edit lines in the GD section in the Makefile and the gdft/Makefile. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Andrea Goethals 03/09/00 01:25PM >>> For those of you considering using the latest version of GD, maybe you will have better luck with it than I did. Even after changing all the Makefiles to reflect the newer version of GD, it still wouldn't work. I was getting an error that it couldn't find jinclude.h I did some searching to find out what jinclude.h could be, and my best guess is that it has to do with jpegs. I made sure I had the latest jpeg and libjpeg libraries, but it didn't help. GD-1.8 requires a few more libraries, but making sure I had the latest of each didn't help. I finally switched it back to GD-1.2 and had no problems. If any of you are going to use a version of GD other than 1.2 note that there are 2 places further down in the ms_3.3.008/Makefile where "GD-1.2" is hardcoded in. So change the version there as well as in the top part. @---------------------------------------------------@ | Andrea Goethals GeoPlan Center | | andreag at geoplan.ufl.edu University of Florida | | Web and Graphics Manager 431 Architecture Bldg | | http://www.geoplan.ufl.edu P.O. Box 115706 | | Phone: (352)392-2351 Gainesville, FL 32611 | | Fax:(352)392-3308 | @---------------------------------------------------@ From gerry at page4.tamu.edu Thu Mar 9 12:27:06 2000 From: gerry at page4.tamu.edu (Gerry Creager) Date: Thu, 9 Mar 2000 14:27:06 -0600 (CST) Subject: gd-1.8 In-Reply-To: <200003091925.OAA04644@alderon.geoplan.ufl.edu> from "Andrea Goethals" at Mar 09, 2000 02:25:55 PM Message-ID: <200003092027.OAA08549@page4.tamu.edu> > For those of you considering using the latest version > of GD, maybe you will have better luck with it than > I did. Even after changing all the Makefiles to reflect > the newer version of GD, it still wouldn't work. > I was getting an error that it couldn't find jinclude.h > I did some searching to find out what jinclude.h could > be, and my best guess is that it has to do with jpegs. > I made sure I had the latest jpeg and libjpeg libraries, > but it didn't help. > > GD-1.8 requires a few more libraries, but making sure > I had the latest of each didn't help. I used gd 1.7.3 (I think... I'm away from that computer right now...) and had to move a couple of .h files around but everything else made and worked fine. Don't know about 1.8, however. Gerry Creager Spatial Sciences Lab Texas A&M University From cfuhrman at tfcci.com Thu Mar 9 12:48:05 2000 From: cfuhrman at tfcci.com (Chris Fuhrman) Date: Thu, 9 Mar 2000 15:48:05 -0500 (EST) Subject: Mapscript examples Message-ID: Howdy, If anyone has any basic examples of Perl/mapscript and associated mapfiles (especially those reading ESRI shapefiles), please let me know. Basically, all I'm trying to do is get a layer from a shapefile and produce a .png from it (gd-1.7.3). Nothing fancy... -- Chris Fuhrman cfuhrman at tfcci.com Public Encryption Key Available Upon Request From peter42 at dds.nl Thu Mar 9 15:15:38 2000 From: peter42 at dds.nl (Peter H.M. Jacobs) Date: Fri, 10 Mar 2000 00:15:38 +0100 Subject: maximum number of layers Message-ID: Hi all, I know Stephen wrote in previous documentation which C file to edit if you want to use more than 50 layers. I don't seem able to find it myself, so does anyone remember which file it was. Regards, Peter Jacobs From steve.lime at dnr.state.mn.us Thu Mar 9 22:30:43 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 10 Mar 2000 00:30:43 -0600 Subject: maximum number of layers Message-ID: Look in map.h. I believe it is currently set to 100, could be 50 though. Steve <<< "Peter H.M. Jacobs" 3/ 9 5:19p >>> Hi all, I know Stephen wrote in previous documentation which C file to edit if you want to use more than 50 layers. I don't seem able to find it myself, so does anyone remember which file it was. Regards, Peter Jacobs From frank.koormann at intevation.de Fri Mar 10 03:54:59 2000 From: frank.koormann at intevation.de (Frank Koormann) Date: Fri, 10 Mar 2000 12:54:59 +0100 Subject: gd-1.8 In-Reply-To: ; from steve.lime@dnr.state.mn.us on Thu, Mar 09, 2000 at 01:45:03PM -0600 References: Message-ID: <20000310125458.A4752@cheops.usf.Uni-Osnabrueck.DE> Hi, * Stephen Lime (steve.lime at dnr.state.mn.us) [000309 21:01]: > The latest version of GD I had tried was 1.7.3. The jpeg stuff > is brand new. MapServer won't use it anyway cause at the > moment there is no way to toggle between PNG, JPG or BMP > output with the new version. I imagine you could compile > GD without JPEG support and it would probably work. I'll > try it at home. > I have compiled mapserver 3.3-008 with GD 1.8 successfully. Steve, you are right, GD has to be compiled without jpeg support. Here the steps: o in the Makefile of gd sources: - CFLAGS=-O -DHAVE_XPM -DHAVE_LIBTTF - LIBS=-lm -lgd -lpng -lz -lttf -lXpm -lX11 - VERSION=1.8 # :) o make libgd.a o in the Makefile of mapserver: - As described in the GD Section, add -lpng and -lz to GD_LIB for png-support and set GD=-DUSE_GD_1_6 - modify the path to libgd - #MAKE_GD=gd (to suppress compilation of gd-1.2 packed with the mapserver) o make Thats it and it works fine for me (Since all other libs are available). Regards, Frank -- Frank Koormann http://intevation.net/~frank/ Intevation GmbH http://intevation.net/ FreeGIS Project http://freegis.org Institute of Environmental Systems Research http://www.usf.uos.de/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 236 bytes Desc: not available URL: From david.armstrong at dtn.ntl.com Fri Mar 10 05:49:00 2000 From: david.armstrong at dtn.ntl.com (David Armstrong) Date: Fri, 10 Mar 2000 13:49:00 -0000 Subject: Makefile Request for NT Version Message-ID: <003f01bf8a97$8475f140$0100a8c0@david> could someone please email me the correct makefile's or project file's etc for mapserver 3.3.008 for NT, under visual studio if possible Thanks David david.armstrong at dtn.ntl.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rchavez at perseus.tufts.edu Fri Mar 10 06:38:44 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Fri, 10 Mar 2000 09:38:44 -0500 Subject: imagemaps with mapscript References: <003f01bf8a97$8475f140$0100a8c0@david> Message-ID: <38C908F4.E3F157F1@perseus.tufts.edu> Greetings, I'm using mapscript to draw building polygons on a basemap; users can select building names/types from an interface - mapscript pulls the appropriate polygon data from a Postgres database, creates a shapefile and adds and draws the polygon as a layer to the overall map. What I'd like to do is create a client side image map out of these building polygons. Obviously, the polygon geo-coordinates are easy to access, but is there some way to access the corresponding image coordinates that get created when the polygon layer is rendered by mapscript/mapserver? There's probably an easy way to calculate what the corresponding image coordinates would be, but I'm just not seeing it. Any ideas? Thanks, Rob Chavez rchavez at perseus.tufts.edu From steve.lime at dnr.state.mn.us Fri Mar 10 07:35:22 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 10 Mar 2000 09:35:22 -0600 Subject: imagemaps with mapscript Message-ID: The easiest way would be to add a method to a shapeObj to apply a map to it. That is to clip, thin and transform the coordinates. It's a pretty easy addition. However, I've frozen development until I get the webCVS running with the folks at the UMN. It'll be a couple of weeks before I can make the changes. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Robert Chavez 03/10/00 08:38AM >>> Greetings, I'm using mapscript to draw building polygons on a basemap; users can select building names/types from an interface - mapscript pulls the appropriate polygon data from a Postgres database, creates a shapefile and adds and draws the polygon as a layer to the overall map. What I'd like to do is create a client side image map out of these building polygons. Obviously, the polygon geo-coordinates are easy to access, but is there some way to access the corresponding image coordinates that get created when the polygon layer is rendered by mapscript/mapserver? There's probably an easy way to calculate what the corresponding image coordinates would be, but I'm just not seeing it. Any ideas? Thanks, Rob Chavez rchavez at perseus.tufts.edu From danmo at videotron.ca Fri Mar 10 07:38:43 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Fri, 10 Mar 2000 10:38:43 -0500 Subject: Makefile Request for NT Version References: <003f01bf8a97$8475f140$0100a8c0@david> Message-ID: <38C91703.4BD6DF60@videotron.ca> > David Armstrong wrote: > > could someone please email me the correct makefile's or project file's > etc for mapserver 3.3.008 for NT, under visual studio if possible > > Thanks > David > david.armstrong at dtn.ntl.com In order to build MapServer on NT, you will need makefiles and also the regex package which is not standard in MSVC++. The following ZIP file contains the regex source and the makefiles ready to build MapServer on NT using MSVC++ 6.0: http://www2.dmsolutions.on.ca/mapserver/ms_vc_makefiles.zip Extract the ZIP file on top of your ms_3.3.008 directory and follow the instructions in the README.VC file to compile. These makefiles compile only the basic MapServer without any optional component (i.e. no TIFF, no PROJ.4, no FreeType, etc.). I am planning to start building MapServer with all these optional components as well and will make my other makefiles available when I have them, likely sometimes next week. Also, for those looking only for executables, a version of the 3.3.008 exectuables can also be downloaded from: http://www2.dmsolutions.on.ca/mapserver/ms_3.3.008_win32.zip Once again, these do not include any of the optional components... but I should have a new version with at least TIFF and FreeType soon. Regards, -- ------------------------------------------------------------ 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 Fri Mar 10 16:46:35 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Fri, 10 Mar 2000 18:46:35 -0600 Subject: gd-1.8 References: <20000310125458.A4752@cheops.usf.Uni-Osnabrueck.DE> Message-ID: <38C9976B.83D0CECF@gis.umn.edu> Frank Koormann wrote: > I have compiled mapserver 3.3-008 with GD 1.8 successfully. > Steve, you are right, GD has to be compiled without jpeg support. > Here the steps: > > o in the Makefile of gd sources: > - CFLAGS=-O -DHAVE_XPM -DHAVE_LIBTTF > - LIBS=-lm -lgd -lpng -lz -lttf -lXpm -lX11 > - VERSION=1.8 # :) > > o make libgd.a > > o in the Makefile of mapserver: > - As described in the GD Section, add -lpng and -lz to > GD_LIB for png-support and set GD=-DUSE_GD_1_6 > - modify the path to libgd > - #MAKE_GD=gd > (to suppress compilation of gd-1.2 packed with the > mapserver) > > o make To those who wish to compile MapServer 3.3.008 and GD-1.8 with JPEG support, here are the steps I used. I'm assuming you have the supporting library sources under the ms_3.3.008 directory tree and that you already have libpng and zlib. I'm also assuming your JPEG directory is called "jpeg6b" and your gd-1.8 directory is "gd-1.8". 1. Compile JPEG $ ./configure $ make $ make install 2. Edit GD-1.8 Makefile - Add the JPEG source path to INCLUDEDIRS: INCLUDEDIRS=-I../gd-1.8 -I../jpeg-6b -I/usr/include -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 3. Edit ms_3.3.008 Makefile - Change all gd paths to gd-1.8 - Change GD=-DUSE_GD_1_2 to GD=-DUSE_GD_1_6 - Add "-lpng -lz" to GD_LIB=-L./gd-1.8 -lgd Here's a Makefile snippet: *** GDFONT_OBJ=gd-1.8/gdfontt.o gd-1.8/gdfonts.o gd-1.8/gdfontmb.o gd-1.8/gdfontl.o gd-1.8/gdfontg.o GD_INC=-I./gd-1.8 GD_LIB=-L./gd-1.8 -lgd -lpng -lz GD=-DUSE_GD_1_6 MAKE_GD=gd . . . gd:: cd gd-1.8; make; cd .. *** 4. Edit gdft Makefile to make use of gd-1.8 stuff Here's a snippet of gdft Makefile *** GD_INC=-I../gd-1.8 GD_LIB=-L../gd-1.8 -lgd -lpng -lz GD=-DUSE_GD_1_6 *** 5. Compile MapServer The key step is in configuring the JPEG source. When you run "./configure", it copies jinclude.h from one of the architecture dependent jinclude files (i.e., jinclude.linux, jinclude.sgi). Gd-1.8 looks for this file during compile. Hope this helps. Perry N. From pnaciona at gis.umn.edu Fri Mar 10 16:51:27 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Fri, 10 Mar 2000 18:51:27 -0600 Subject: gd-1.8 References: <20000310125458.A4752@cheops.usf.Uni-Osnabrueck.DE> Message-ID: <38C9988F.F178E590@gis.umn.edu> Frank Koormann wrote: > I have compiled mapserver 3.3-008 with GD 1.8 successfully. > Steve, you are right, GD has to be compiled without jpeg support. > Here the steps: > > o in the Makefile of gd sources: > - CFLAGS=-O -DHAVE_XPM -DHAVE_LIBTTF > - LIBS=-lm -lgd -lpng -lz -lttf -lXpm -lX11 > - VERSION=1.8 # :) > > o make libgd.a > > o in the Makefile of mapserver: > - As described in the GD Section, add -lpng and -lz to > GD_LIB for png-support and set GD=-DUSE_GD_1_6 > - modify the path to libgd > - #MAKE_GD=gd > (to suppress compilation of gd-1.2 packed with the > mapserver) > > o make To those who wish to compile MapServer 3.3.008 and GD-1.8 with JPEG support, here are the steps I used. I'm assuming you have the supporting library sources under the ms_3.3.008 directory tree and that you already have libpng and zlib. I'm also assuming your JPEG directory is called "jpeg6b" and your gd-1.8 directory is "gd-1.8". 1. Compile JPEG $ ./configure $ make $ make install 2. Edit GD-1.8 Makefile - Add the JPEG source path to INCLUDEDIRS: INCLUDEDIRS=-I../gd-1.8 -I../jpeg-6b -I/usr/include -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 3. Edit ms_3.3.008 Makefile - Change all gd paths to gd-1.8 - Change GD=-DUSE_GD_1_2 to GD=-DUSE_GD_1_6 - Add "-lpng -lz" to GD_LIB=-L./gd-1.8 -lgd Here's a Makefile snippet: *** GDFONT_OBJ=gd-1.8/gdfontt.o gd-1.8/gdfonts.o gd-1.8/gdfontmb.o gd-1.8/gdfontl.o gd-1.8/gdfontg.o GD_INC=-I./gd-1.8 GD_LIB=-L./gd-1.8 -lgd -lpng -lz GD=-DUSE_GD_1_6 MAKE_GD=gd . . . gd:: cd gd-1.8; make; cd .. *** 4. Edit gdft Makefile to make use of gd-1.8 stuff Here's a snippet of gdft Makefile *** GD_INC=-I../gd-1.8 GD_LIB=-L../gd-1.8 -lgd -lpng -lz GD=-DUSE_GD_1_6 *** 5. Compile MapServer The key step is in configuring the JPEG source. When you run "./configure", it copies jinclude.h from one of the architecture dependent jinclude files (i.e., jinclude.linux, jinclude.sgi). Gd-1.8 looks for this file during compile. Hope this helps. Perry N. From chetturv at sdhu.moh.gov.on.ca Tue Mar 14 12:02:30 2000 From: chetturv at sdhu.moh.gov.on.ca (Vinod Chettur) Date: Tue, 14 Mar 2000 15:02:30 -0500 Subject: Utilities to convert MapInfo .MIF to ESRI shape files? Message-ID: Hello everyone, I was just wondering what would be the simplest way to convert some of my .MIF files to shape files without having to purchase any of ESRI's tools. Any command line utilities out there? Thanks, Vinod From Banister at BANISTER.COM Tue Mar 14 15:42:36 2000 From: Banister at BANISTER.COM (Trevor Banister) Date: Tue, 14 Mar 2000 16:42:36 -0700 Subject: Weird TrueType labeling issue. Message-ID: <51BFCC79A3CCD311A2DD0800362C8E0301F683@banister4.conen.net> I'm working on street labeling (Auto Position, Auto Angle, etc.) and ran into a weird TrueType labeling issue. When I switch from bitmap to TrueType in 3.3.008 it looks like the label overlay is rotated 90 degrees and mirrored. Any thoughts? Trevor Weird TTF version at: http://216.150.214.7/cgi-bin/mapserver.exe?mode=browse&layer=lakes&layer=str eams&layer=secondary_roads&zoomdir=1&zoomsize=5&imgxy=299.5+299.5&imgext=491 230.829713+4386835.221426+496522.493513+4392126.885251&map=D%3A%5Cinetpub%5C maps%5Cdemo.map&img.x=333&img.y=308 Normal Bitmapped version at: http://216.150.214.7/cgi-bin/mapserver.exe?mode=browse&layer=lakes&layer=str eams&layer=secondary_roads&zoomdir=0&zoomsize=5&imgxy=299.5+299.5&imgext=493 643.439703+4388876.796568+494701.772463+4389935.129333&map=D%3A%5Cinetpub%5C maps%5CdemoB.map&img.x=215&img.y=387 LAYER NAME secondary_roads TYPE LINE STATUS OFF DATA coroadsz13 MAXSCALE 500000000 SYMBOLSCALE 24000 LABELITEM "Fename" CLASS NAME "Secondary Roads" COLOR 212 212 212 SYMBOL 13 SIZE 3 MAXSIZE 4 LABEL BACKGROUNDCOLOR 200 255 255 COLOR 30 94 94 TYPE TRUETYPE ANTIALIAS FONT times POSITION AUTO MINFEATURESIZE AUTO ANGLE AUTO WRAP " " END # Label END END # Layer From marin at here.is Tue Mar 14 16:18:45 2000 From: marin at here.is (Ma) Date: Wed, 15 Mar 2000 00:18:45 +0000 Subject: Utilities to convert MapInfo .MIF to ESRI shape files? References: Message-ID: <38CED6E3.B04BAD9D@here.is> Some MS Windows tools: MIF to Shape Converter - free from ESRI http://www.esri.com/devsupport/mapobjects/files/mofiles.htm Geographic Explorer - free from Blue Marble Geographics http://www.bluemarblegeo.com/products.asp?id=5 -- Ma Vinod Chettur wrote: > Hello everyone, > > I was just wondering what would be the simplest way to convert some of my > .MIF files to shape files without having to purchase any of ESRI's tools. > Any command line utilities out there? > > Thanks, Vinod From steve.lime at dnr.state.mn.us Tue Mar 14 19:27:04 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 14 Mar 2000 21:27:04 -0600 Subject: Weird TrueType labeling issue. Message-ID: This is a GD version mismatch problem. GD 1.3 and higher use a row major (i.e. pixel[y][x]) scheme for storing the images. There is code to handle this if the appropriate preprocessor variables are set. Did you edit Makefiles in both ms_3.3.008 and ms_3.3.00/gdft? Could also be extraneous versions of GD installed on your machine. Steve <<< Trevor Banister 3/14 5:39p >>> I'm working on street labeling (Auto Position, Auto Angle, etc.) and ran into a weird TrueType labeling issue. When I switch from bitmap to TrueType in 3.3.008 it looks like the label overlay is rotated 90 degrees and mirrored. Any thoughts? Trevor Weird TTF version at: http://216.150.214.7/cgi-bin/mapserver.exe?mode=browse&layer=lakes&layer=str eams&layer=secondary_roads&zoomdir=1&zoomsize=5&imgxy=299.5+299.5&imgext=491 230.829713+4386835.221426+496522.493513+4392126.885251&map=D%3A%5Cinetpub%5C maps%5Cdemo.map&img.x=333&img.y=308 Normal Bitmapped version at: http://216.150.214.7/cgi-bin/mapserver.exe?mode=browse&layer=lakes&layer=str eams&layer=secondary_roads&zoomdir=0&zoomsize=5&imgxy=299.5+299.5&imgext=493 643.439703+4388876.796568+494701.772463+4389935.129333&map=D%3A%5Cinetpub%5C maps%5CdemoB.map&img.x=215&img.y=387 LAYER NAME secondary_roads TYPE LINE STATUS OFF DATA coroadsz13 MAXSCALE 500000000 SYMBOLSCALE 24000 LABELITEM "Fename" CLASS NAME "Secondary Roads" COLOR 212 212 212 SYMBOL 13 SIZE 3 MAXSIZE 4 LABEL BACKGROUNDCOLOR 200 255 255 COLOR 30 94 94 TYPE TRUETYPE ANTIALIAS FONT times POSITION AUTO MINFEATURESIZE AUTO ANGLE AUTO WRAP " " END # Label END END # Layer From Banister at BANISTER.COM Tue Mar 14 20:50:40 2000 From: Banister at BANISTER.COM (Trevor Banister) Date: Tue, 14 Mar 2000 21:50:40 -0700 Subject: Weird TrueType labeling issue. Message-ID: <51BFCC79A3CCD311A2DD0800362C8E0301F684@banister4.conen.net> Thanks Steve, that did the trick. I was compiling for NT and didn't have USE_GD_1_2 defined. P.S. Your new tree index function works great! Trevor -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, March 14, 2000 8:27 PM To: Banister at BANISTER.COM; mapserver-users at lists.gis.umn.edu Subject: Re: Weird TrueType labeling issue. This is a GD version mismatch problem. GD 1.3 and higher use a row major (i.e. pixel[y][x]) scheme for storing the images. There is code to handle this if the appropriate preprocessor variables are set. Did you edit Makefiles in both ms_3.3.008 and ms_3.3.00/gdft? Could also be extraneous versions of GD installed on your machine. Steve <<< Trevor Banister 3/14 5:39p >>> I'm working on street labeling (Auto Position, Auto Angle, etc.) and ran into a weird TrueType labeling issue. When I switch from bitmap to TrueType in 3.3.008 it looks like the label overlay is rotated 90 degrees and mirrored. Any thoughts? Trevor Weird TTF version at: http://216.150.214.7/cgi-bin/mapserver.exe?mode=browse&layer=lakes&layer=str eams&layer=secondary_roads&zoomdir=1&zoomsize=5&imgxy=299.5+299.5&imgext=491 230.829713+4386835.221426+496522.493513+4392126.885251&map=D%3A%5Cinetpub%5C maps%5Cdemo.map&img.x=333&img.y=308 Normal Bitmapped version at: http://216.150.214.7/cgi-bin/mapserver.exe?mode=browse&layer=lakes&layer=str eams&layer=secondary_roads&zoomdir=0&zoomsize=5&imgxy=299.5+299.5&imgext=493 643.439703+4388876.796568+494701.772463+4389935.129333&map=D%3A%5Cinetpub%5C maps%5CdemoB.map&img.x=215&img.y=387 LAYER NAME secondary_roads TYPE LINE STATUS OFF DATA coroadsz13 MAXSCALE 500000000 SYMBOLSCALE 24000 LABELITEM "Fename" CLASS NAME "Secondary Roads" COLOR 212 212 212 SYMBOL 13 SIZE 3 MAXSIZE 4 LABEL BACKGROUNDCOLOR 200 255 255 COLOR 30 94 94 TYPE TRUETYPE ANTIALIAS FONT times POSITION AUTO MINFEATURESIZE AUTO ANGLE AUTO WRAP " " END # Label END END # Layer From anguy at geoanalytic.com Wed Mar 15 09:02:43 2000 From: anguy at geoanalytic.com (An Tay Nguy) Date: Wed, 15 Mar 2000 10:02:43 -0700 Subject: Zoom help Message-ID: <000301bf8ea0$4796f410$3a0002c0@dell> Hi everyone, I am a newbie to the world of MapServer. My system is: NT 4.0 using IIS. MapServer 3.3006 In my html code, I have a java applet that set the variable imgxy(mouseclick), imgbox(the area of zoom in pixel) and submit the map request. The applet also set the zoom variable( 3-zoom in| 0-query/pan| -3-for zoom out ). The result of the zoom sometimes works and sometimes I get this error message: "loadForm(): Web application error. Reference map coordinate out of range." Does anyone know what this message means? Furthermore, There seems to be 3 ways to perform zooming: 1) zoomdir/zoomsize 2) zoom ( x > 0 - zoom in | 0 > x - zoom out | x = 0 - pan/query ) 3) imgbox( x1 y1 x2 y2 ) a) Are there more than these three methods? b) If these three methods were being used in the same HTML, which of these have more priority over the other? Thanks in advance for your help. Cheers! From rchavez at perseus.tufts.edu Wed Mar 15 10:05:57 2000 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Wed, 15 Mar 2000 13:05:57 -0500 Subject: imagemaps with mapscript, part 2 Message-ID: <38CFD105.2B1235B1@perseus.tufts.edu> Thanks Steve. I've put together a quick and dirty little Perl routine that does the job too, for what it's worth. Seems to work well so far. I'm getting the coordinates for the shapes I want to render from a Postgres database -- these coordinates are retrieved in another routine and stored in @polygon in the form (point1x, point1y, point2x, point2y, point3x, point3y ...), Rob sub create_imagemap { #Read image width and height from map file $imgwidth = $map->{width}; $imgheight = $map->{height}; #@polygon is a simple list that stores the real world coordinates of the object pulled from the database @vertices = @polygon; #loop through the list grabbing each x and y coordinate and converting the geo-coordinate to image coordinates while (@vertices) { #grab first coordinate, remove any parentheses $xvert = shift(@vertices); $xvert =~ s/[\(\)]//g; #convert x map coordinate to image coordinates $cellsizex = (($map->{extent}->{maxx} - $map->{extent}->{minx})/($imgwidth - 1)); $ximg = (($xvert - $map->{extent}->{minx})/$cellsizex); #add image coord. to the new list push (@imgshape,$ximg); #grab second coordinate, remove any parentheses $yvert = shift(@vertices); $yvert =~ s/[\(\)]//g; #convert y map coordinate to image coordinates $cellsizey = (($map->{extent}->{maxy} - $map->{extent}->{miny})/($imgheight - 1)); $yimg = (($map->{extent}->{maxy} - $yvert)/$cellsizey); #add image coord. to the new list push (@imgshape,$yimg); } #form the tag for html output $coords = join(",", at imgshape); $area = "\\n"; print STDERR "$area"; push (@areas, $area); } Stephen Lime wrote: > The easiest way would be to add a method to a shapeObj to apply a > map to it. That is to clip, thin and transform the coordinates. It's a > pretty easy addition. However, I've frozen development until I get the > webCVS running with the folks at the UMN. It'll be a couple of weeks > before I can make the changes. > > Steve > > Stephen Lime From steve.lime at dnr.state.mn.us Wed Mar 15 12:04:12 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 15 Mar 2000 14:04:12 -0600 Subject: Zoom help Message-ID: The error message is a tad deceiving in that the word "Reference" should not be there. It should read "Image map coordinate...". Any way MapServer defines MAXCLICK and MINCLICK vars to detect potentially bogus input. These values are set to 1000 and -1000 right now. With very large images or simulated pans using imgxy you could find them too small. They can be bumped by editing mapserv.h. Your error means the values for imgxy your sending exceed those limits. Either your using large images or some code is wrong. (Note that were talking about image coordinates, and not map coordinates. They represent a raw mouse click but can be set by an application to achieve pan effects.) As for zooms, let's see: using a user "click" (imgxy/img.x/img.y) you can use - zoom - zoomdir and zoomsize or you can use a user "box" of you can use a user reference map click (ref.x/ref.y), but this is pan only (if you've got map coordinates you can create maps with an extent, a point and a distance, or a point and a scale factor) In terms of precedence: imgbox, then img.x/img.y and finally imgxy. If the imgbox resolves to a point it is not used and another method is found. Note that img.x and img.y are set ONLY if the user clicks in a form element. As for zoom controls pick one and stick with it. There is no precedence so mixing them will yield unpredictable results. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "An Tay Nguy" 03/15/00 11:02AM >>> Hi everyone, I am a newbie to the world of MapServer. My system is: NT 4.0 using IIS. MapServer 3.3006 In my html code, I have a java applet that set the variable imgxy(mouseclick), imgbox(the area of zoom in pixel) and submit the map request. The applet also set the zoom variable( 3-zoom in| 0-query/pan| -3-for zoom out ). The result of the zoom sometimes works and sometimes I get this error message: "loadForm(): Web application error. Reference map coordinate out of range." Does anyone know what this message means? Furthermore, There seems to be 3 ways to perform zooming: 1) zoomdir/zoomsize 2) zoom ( x > 0 - zoom in | 0 > x - zoom out | x = 0 - pan/query ) 3) imgbox( x1 y1 x2 y2 ) a) Are there more than these three methods? b) If these three methods were being used in the same HTML, which of these have more priority over the other? Thanks in advance for your help. Cheers! From anguy at geoanalytic.com Wed Mar 15 13:47:44 2000 From: anguy at geoanalytic.com (An Tay Nguy) Date: Wed, 15 Mar 2000 14:47:44 -0700 Subject: Zoom help In-Reply-To: Message-ID: <000001bf8ec8$189bf2a0$3a0002c0@dell> Thank you Stehpen. My problem was that my image size was 1600x1600. Cheers!!! > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Stephen > Lime > Sent: Wednesday, March 15, 2000 1:04 PM > To: anguy at geoanalytic.com; mapserver-users at lists.gis.umn.edu > Subject: Re: Zoom help > > > The error message is a tad deceiving in that the word "Reference" should > not be there. It should read "Image map coordinate...". > > Any way MapServer defines MAXCLICK and MINCLICK vars to detect > potentially bogus input. These values are set to 1000 and -1000 right now. > With very large images or simulated pans using imgxy you could find them > too small. They can be bumped by editing mapserv.h. Your error means > the values for imgxy your sending exceed those limits. Either > your using large > images or some code is wrong. > > (Note that were talking about image coordinates, and not map coordinates. > They represent a raw mouse click but can be set by an application > to achieve > pan effects.) > > As for zooms, let's see: > > using a user "click" (imgxy/img.x/img.y) you can use > - zoom > - zoomdir and zoomsize > > or you can use a user "box" > > of you can use a user reference map click (ref.x/ref.y), but this > is pan only > > (if you've got map coordinates you can create maps with an > extent, a point and > a distance, or a point and a scale factor) > > In terms of precedence: imgbox, then img.x/img.y and finally > imgxy. If the imgbox > resolves to a point it is not used and another method is found. > Note that img.x and > img.y are set ONLY if the user clicks in a form type="image"...> element. > > As for zoom controls pick one and stick with it. There is no > precedence so mixing > them will yield unpredictable results. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "An Tay Nguy" 03/15/00 11:02AM >>> > Hi everyone, > > I am a newbie to the world of MapServer. > > My system is: > NT 4.0 using IIS. > MapServer 3.3006 > > In my html code, I have a java applet that set the variable > imgxy(mouseclick), imgbox(the area of zoom in pixel) and submit the map > request. > The applet also set the zoom variable( 3-zoom in| 0-query/pan| -3-for zoom > out ). > The result of the zoom sometimes works and sometimes I get this error > message: > > "loadForm(): Web application error. Reference map coordinate out > of range." > > Does anyone know what this message means? > > > Furthermore, There seems to be 3 ways to perform zooming: > > 1) zoomdir/zoomsize > 2) zoom ( x > 0 - zoom in | 0 > x - zoom out | x = 0 - pan/query ) > 3) imgbox( x1 y1 x2 y2 ) > > a) Are there more than these three methods? > b) If these three methods were being used in the same HTML, > which of these have more priority over the other? > > Thanks in advance for your help. > > Cheers! > > From RAldridge at linuxstart.com Wed Mar 15 14:07:55 2000 From: RAldridge at linuxstart.com (RAldridge) Date: Wed, 15 Mar 2000 14:07:55 -0800 Subject: ref.x, ref.y Message-ID: <200003152207.OAA03581@ns1.filetron.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From steve.lime at dnr.state.mn.us Wed Mar 15 14:19:21 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 15 Mar 2000 16:19:21 -0600 Subject: ref.x, ref.y Message-ID: Image coordinates are to be expected. Ref.x and ref.y are the coordinates of the mouse click and are converted to map coordinates on the server. I think the problem is that you haven't specified a size (eg. SIZE 100 125) in the reference object. It could be grabbed from the image itself I suppose (requires opening the file an extra time) but at this point it needs to be hardcoded in the map file. Steve >>> RAldridge 03/15/00 04:07PM >>> I'm trying to use my reference map as an input image that will pan the main map to be centered on the point that is clicked on the reference map. When I click on the reference map, however, the coordinates for ref.x and ref.y appear to be in image coordinates rather than map coordinates. I end up with a blank image for my main map. Below is a snippet from my .map file. Any help is appreciated. Thanks, Robert Aldridge # # Start of map file # NAME DEMO STATUS ON SIZE 350 500 SHADESET ../symbols/shade.sym MARKERSET ../symbols/marker.sym LINESET ../symbols/line.sym EXTENT 254189.000000 1117801.000000 292781.000000 1151833.000000 UNITS FEET SHAPEPATH "data" IMAGECOLOR 255 255 255 # LABELOVERLAP FALSE # # Start of web interface definition # WEB HEADER demo_header.html TEMPLATE demo.html EMPTY "/gspc_demo/empty.html" MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "/www/htdocs/temp/" END # # Start of reference map # REFERENCE IMAGE graphics/reference_base.png EXTENT 254189.000000 1117801.000000 292781.000000 1151833.000000 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND KEYSIZE 20 15 # IMAGECOLOR 196 196 196 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 250 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS MILES INTERVALS 3 STATUS ON END # # Start of layer definitions # LAYER NAME "Base" TYPE POLYGON From c_brunner at gmx.de Wed Mar 15 17:01:03 2000 From: c_brunner at gmx.de (Christian Brunner) Date: Thu, 16 Mar 2000 02:01:03 +0100 Subject: Zoom help References: Message-ID: <38D0324F.715045C4@gmx.de> Hi An, I am also a newbie at UMN MapServer, I did ESRI MOIMS and SDE programming. I am interested in having a look at your Java applet for client side interacting, perhaps some other fellows from newsgroup are also. DO you share your knowledge...thanks in advance! Cheers Christian > >>> "An Tay Nguy" 03/15/00 11:02AM >>> > Hi everyone, > > I am a newbie to the world of MapServer. [snip] > In my html code, I have a java applet that set the variable > imgxy(mouseclick), imgbox(the area of zoom in pixel) and submit the map -- Christian A. Brunner phone: ++49 (0) 69-95403850 From steve.lime at dnr.state.mn.us Thu Mar 16 08:22:20 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 16 Mar 2000 10:22:20 -0600 Subject: 3.3.009 released Message-ID: I've posted 3.3.009 on the MapServer web site. It's mainly a convenience release for users doing work on win32 platforms (thanks Daniel). If your having any trouble with MapScript you should try this one. 3.3.008 contained a naming problem that was not caught by the linker when building MapScript. I will be updating system documentation to relect changes in .008 and higher tonite. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From puchert at gfz-potsdam.de Thu Mar 16 08:33:15 2000 From: puchert at gfz-potsdam.de (Ralf Puchert) Date: Thu, 16 Mar 2000 16:33:15 GMT Subject: mapsize Message-ID: <20000316.16331567@dc27.gfz-potsdam.de> Hello, When we use http://130.11.52.178/cgi-bin/mapserv?mode=map&layer=elevation&mapext= -180+-10+180+90&map=/var/mapserver/global/global.map&mapsize=500+250 the outputmap has the wrong southernmost latitude. It seems to be that something is overdefined. Will the produced map whithin geographic coordinates expanded to the width and height values of the bitmap or will the geographic bounding box be recalculated ? Sincerely Ralf Puchert From steve.lime at dnr.state.mn.us Thu Mar 16 09:19:38 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 16 Mar 2000 11:19:38 -0600 Subject: mapsize Message-ID: Yup, the extent is recaclulated based on the shape of the extent and the window size/shape. You are gauranteed to see the whole extent plus a bit more. The algorithm fits your requested extent in either x or y dimension (whichever fits best) and then pads the other dimension as needed. This has to be done in order to get the right map to image transformation. You wouldn't necessarily have to actually display data outside the actual requested extent but that would result in a great deal of blank space in the resulting image, so the computed extent is used to select/clip data. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Ralf Puchert 03/16/00 10:33AM >>> Hello, When we use http://130.11.52.178/cgi-bin/mapserv?mode=map&layer=elevation&mapext= -180+-10+180+90&map=/var/mapserver/global/global.map&mapsize=500+250 the outputmap has the wrong southernmost latitude. It seems to be that something is overdefined. Will the produced map whithin geographic coordinates expanded to the width and height values of the bitmap or will the geographic bounding box be recalculated ? Sincerely Ralf Puchert From anguy at geoanalytic.com Thu Mar 16 09:49:41 2000 From: anguy at geoanalytic.com (An Tay Nguy) Date: Thu, 16 Mar 2000 10:49:41 -0700 Subject: Zoom help In-Reply-To: <38D0324F.715045C4@gmx.de> Message-ID: <000c01bf8f70$01dea1e0$3a0002c0@dell> Hi Christian, I can't share the java applet with you because I do not own the code. However, I will give you an example of how you would go about doing so. Require knowledge: HTML, javascript, java 1.1(for writing java applet) /////////////////////////////////////////////////////////////////////// In your java applet: /////////////////////////////////////////////////////////////////////// import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.io.*; import java.net.MalformedURLException; import java.net.URL; import java.util.StringTokenizer; import netscape.javascript.JSObject; public class yourmap extends Applet implements MouseListener, MouseMotionListener { int m_nMode = 2; // for zooming ... code skipped public void SetMapMode( int nMode ) { m_nMode = nMode; } public int GetMapMode( ) { return( m_nMode ); } public void mouseClicked(MouseEvent mouseevent) { Point point = mouseevent.getPoint(); int x = point.x; int y = point.y; try { if( m_nMode == 2 ) // Zoom mode { // This is the part that java is controling the html through // the javascript object JSObject jsobject = new JSObject(); jsobject = JSObject.getWindow(this); String s = "document.mapserver.imgxy.value=\""+ x +" "+y+"\";"; jsobject.eval(s); // If you like, this part will submit your form s = "window.Submit();"; jsobject.eval( s ); return; } } catch(Exception _ex) { // Do your error handling return; } } ... code skipped } //////////////////////////////////////////////////////////////////////////// //////////// In your HTML //////////////////////////////////////////////////////////////////////////// //////////// ... code skipped // This is how you would insert your java applet to your HTML // This is how you would setup a CGI request form // Notice the hidden variables "imgxy" that I manipulate in my java code
... code skipped // javascript code inside your HTML pages. ... code skipped I hope this will help you. I am sure there are people in our mailing list who would be happy to share their actual implementation. Cheers!! An Tay Nguy > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Christian > Brunner > Sent: Wednesday, March 15, 2000 6:01 PM > To: anguy at geoanalytic.com; mapserver-users at lists.gis.umn.edu > Subject: Re: Zoom help > > > Hi An, > > I am also a newbie at UMN MapServer, I did ESRI MOIMS and SDE > programming. I am > interested in having a look at your Java applet for client side > interacting, > perhaps > some other fellows from newsgroup are also. > > DO you share your knowledge...thanks in advance! > > Cheers > > Christian > > > >>> "An Tay Nguy" 03/15/00 11:02AM >>> > > Hi everyone, > > > > I am a newbie to the world of MapServer. > [snip] > > In my html code, I have a java applet that set the variable > > imgxy(mouseclick), imgbox(the area of zoom in pixel) and submit the map > > -- > Christian A. Brunner phone: ++49 (0) 69-95403850 > From RAldridge at linuxstart.com Thu Mar 16 11:44:33 2000 From: RAldridge at linuxstart.com (RAldridge) Date: Thu, 16 Mar 2000 11:44:33 -0800 Subject: Inline features Message-ID: <200003161944.LAA09751@ns1.filetron.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From steve.lime at dnr.state.mn.us Thu Mar 16 12:51:00 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 16 Mar 2000 14:51:00 -0600 Subject: Inline features Message-ID: Doing this is a little tricky but not too bad. The input page is straight forward, just a normal MapServer type form. The key is how you process the request. In the mapfile you'll want to set the overall map status to OFF, this just tells the MapServer to process the request but not to actually make the map gif. The map will get created in a second "mode=map" request. You'll also want to create a layer definition for the users point. It should have no DATA element but should set up the correct symbol and fonting you want. It's status should be OFF. Lets assume you call the layer 'user'. Now, normally in a MapServer template file you have a line that looks like: in this case you want to replace [img] with (assuming a layer called user): /cgi-bin/mapserv?map=[map]&mode=map&map_user_feature=new&map_user_feature_points=[mapx]+[mapy] &map_user_feature_text=[label]&layer=users&mapext=[minx]+[miny]+[maxx]+[maxy] The rest of the template is as normal. In this case [mapx] and [mapy] are the coordinates of the users click. [label] takes the value typed in by the user in the previous form assuming the name of that text box was 'label'. The nice thing about this approach is that since no has to be created initially the template loads very quickly, then the browser fetches the map. The DNR Compass uses this technique. (see http://www.dnr.state.mn.us/compass/) Clear as mud? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> RAldridge 03/16/00 01:44PM >>> Could someone provide an example of using inline features with MapServer. I'm having a problem figuring it out. What I'd like to do is have the user input a desired label in a form, click the map, and the map redraw with a marker & label at the clicked point. Any examples out there? Thanks Robert Aldridge ---------------------- Do you do Linux? :) Get your FREE @linuxstart.com email address at: http://www.linuxstart.com From imap at chesapeake.net Thu Mar 16 17:47:34 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Thu, 16 Mar 2000 20:47:34 -0500 Subject: Inline features References: <200003161944.LAA09751@ns1.filetron.com> Message-ID: <38D18EB6.4FE5625@chesapeake.net> Robert, Here is a mapfile with an example of an inline featue that puts SYMBOL 26 (a red star or something) at a given lat/lon. With mapscript, you can add points, etc. Hope that helps. -Chris LAYER NAME properties TYPE ANNOTATION STATUS DEFAULT PROJECTION geographic END CLASS NAME "user-defined properties" TEXT "House" SYMBOL 26 COLOR 0 0 0 LABEL TYPE TRUETYPE ANTIALIAS FONT arial-bold BUFFER 4 SIZE 8 POSITION AUTO COLOR 0 0 0 BACKGROUNDCOLOR 255 255 204 END END FEATURE POINTS -76.61998 38.76016 END END END RAldridge wrote: > > Could someone provide an example of using inline features with MapServer. I'm having a problem figuring it out. What I'd like to do is have the user input a desired label in a form, click the map, and the map redraw with a marker & label at the clicked point. Any examples out there? > > Thanks > > Robert Aldridge > ---------------------- > Do you do Linux? :) > Get your FREE @linuxstart.com email address at: http://www.linuxstart.com -- Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. 410-257-3187 From marco at gfz-potsdam.de Fri Mar 17 07:14:22 2000 From: marco at gfz-potsdam.de (Frank Lochter) Date: Fri, 17 Mar 2000 16:14:22 +0100 Subject: mapsize References: Message-ID: <38D24BCE.E03E54C7@gfz-potsdam.de> Hi Steve, I have a small problem and would like to discuss this here. 1. When I specify a bbox (lat, lon), then the result map should fit exactly within this BBox. 2. When I specify a width and height, the result bitmap should have this width and height. 3. What is when I specify bbox and width and height? Then something is over defined! - I assume, the result should exactly fit in the bbox AND the bitmap should fit exactly in one dimension width or height and the other dimension of the bitmap should be calculated on the fly! - I get something unexpected when the map server extracts the bbox, especially when I like to integrate the bitmap into an other application and assume, that the bitmap has the bbox, that I used to generate it. Is there any way to get what I assume in 3. ! Sincerely Frank Lochter Stephen Lime wrote: > Yup, the extent is recaclulated based on the shape of the extent and the window > size/shape. You are gauranteed to see the whole extent plus a bit more. The > algorithm fits your requested extent in either x or y dimension (whichever fits > best) and then pads the other dimension as needed. This has to be done in > order to get the right map to image transformation. You wouldn't necessarily > have to actually display data outside the actual requested extent but that would > result in a great deal of blank space in the resulting image, so the computed extent > is used to select/clip data. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Ralf Puchert 03/16/00 10:33AM >>> > Hello, > > When we use > > http://130.11.52.178/cgi-bin/mapserv?mode=map&layer=elevation&mapext= > -180+-10+180+90&map=/var/mapserver/global/global.map&mapsize=500+250 > > the outputmap has the wrong southernmost latitude. > It seems to be that something is overdefined. > Will the produced map whithin geographic coordinates expanded > to the width and height values of the bitmap or > will the geographic bounding box be recalculated ? > > Sincerely > > Ralf Puchert -- Dr. Frank Lochter Data Centre GFZ Potsdam Telegrafenberg A3 14473 Potsdam fon. +49-331-288-1701 fax. +49-331-288-1703 url http://www.gfz-potsdam.de/~marco -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at dmsolutions.on.ca Fri Mar 17 12:25:17 2000 From: assefa at dmsolutions.on.ca (Assefa Yewondwossen) Date: Fri, 17 Mar 2000 15:25:17 -0500 Subject: Window version of 3.3.009 Message-ID: <38D294AD.5627C422@dmsolutions.on.ca> Hi There, For those looking only for mapserver executables, a version of the 3.3.009 exectuables can be downloaded from: http://www2.dmsolutions.on.ca/mapserver/ms_3.3.009_win32.zip The executables include the folowing optional components : - TIFF - FreeType I am also looking for sites to get free true type fonts (with open license) ? Is there any source that someone can recommend ? Thanks From kurth at mojavedata.gov Fri Mar 17 13:12:17 2000 From: kurth at mojavedata.gov (Michael Kurth) Date: Fri, 17 Mar 2000 13:12:17 -0800 Subject: Window version of 3.3.009 In-Reply-To: <38D294AD.5627C422@dmsolutions.on.ca> Message-ID: My colleague runs the WebFX mall which has many many free true type fonts: http://www.webfxmall.com/fonts/ He is planning on revamping the site this weekend to eliminate a few fonts that the creators gave away for free at one point but have decided that they want to sell them for $45 now, a year later. Some of the fonts are shareware, just read the license file that comes with them. Michael Kurth -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Assefa Yewondwossen Sent: Friday, March 17, 2000 12:25 PM To: mapserver-users at lists.gis.umn.edu Subject: Window version of 3.3.009 Hi There, For those looking only for mapserver executables, a version of the 3.3.009 exectuables can be downloaded from: http://www2.dmsolutions.on.ca/mapserver/ms_3.3.009_win32.zip The executables include the folowing optional components : - TIFF - FreeType I am also looking for sites to get free true type fonts (with open license) ? Is there any source that someone can recommend ? Thanks From marin at here.is Fri Mar 17 13:32:20 2000 From: marin at here.is (Ma) Date: Fri, 17 Mar 2000 21:32:20 +0000 Subject: Window version of 3.3.009 References: <38D294AD.5627C422@dmsolutions.on.ca> Message-ID: <38D2A462.1BB66F86@here.is> More true type fonts: http://www.mediabuilder.com/fontlibrary.html -- Ma Assefa Yewondwossen wrote: > Hi There, > > For those looking only for mapserver executables, a version of the > 3.3.009 exectuables can be downloaded from: > > http://www2.dmsolutions.on.ca/mapserver/ms_3.3.009_win32.zip > > The executables include the folowing optional components : > - TIFF > - FreeType > > I am also looking for sites to get free true type fonts (with open > license) ? Is there any source that someone can recommend ? > > Thanks From DMcGaughey at mail.ci.lubbock.tx.us Fri Mar 17 15:16:39 2000 From: DMcGaughey at mail.ci.lubbock.tx.us (David McGaughey) Date: Fri, 17 Mar 2000 17:16:39 -0600 Subject: changing class expressions on-the-fly Message-ID: Greetings! I'm very new to mapserver, so please pardon this newbie: I'm trying to modify expressions on the fly. I build my URL the way that I think it should go: http://clic.ci.lubbock.tx.us/cgi-bin/mapserv?map=/home/httpd/clic/gis/pntest.map&map_layer_1_class_expression=173953&name=pn085 But my server tells me: Internal Server Error I'm running Apache 1.3.9 and mapserv 3.3.7 Can anyone help? Greatly appreciated! David McGaughey City of Lubbock, Texas From rob at socialchange.net.au Fri Mar 17 16:12:40 2000 From: rob at socialchange.net.au (Rob Atkinson) Date: Sat, 18 Mar 2000 10:12:40 +1000 Subject: mapsize References: <38D24BCE.E03E54C7@gfz-potsdam.de> Message-ID: <38D2C9F8.7F75A04D@socialchange.net.au> FYI The current behaviour, which is to create the smallest possible extent that includes, and is centred on, the requested extent and conforms to the aspect ratio of the image, is as specified in the OpenGIS Consortium Web Map Server specification. A perl wrapper for mapserv to conform to the OGC specification is under construction. We'll be putting it up on public CVS site as soon as we can. Steve, I have asked this before - is it possible, and can you provide an example, of specifying the projection to be used from the CGI parameters? Future plans include actually parsing the .map file to create the "Capabilities Document" in XML required for OGC conformance. (Its currently hand built) Also, a modified version of the mapimage Applet that uses the OGC protocol to get a base map and allows Javascript control of the extent to fetch will be posted. Just need to check the copyright on the original code to see if this is OK. The community will be free to take these and modify them further. Regards Rob Atkinson Frank Lochter wrote: > Hi Steve, > I have a small problem and would like to discuss this here. > > 1. When I specify a bbox (lat, lon), then the result map should fit > exactly within this BBox. > 2. When I specify a width and height, the result bitmap should have > this width and height. > 3. What is when I specify bbox and width and height? Then something is > over defined! > - I assume, the result should exactly fit in the bbox AND the > bitmap should fit exactly in one > dimension width or height and the other dimension of the bitmap > should be calculated > on the fly! > - I get something unexpected when the map server extracts the bbox, > especially when I > like to integrate the bitmap into an other application and assume, > that the bitmap has the > bbox, that I used to generate it. > > Is there any way to get what I assume in 3. ! > > Sincerely > > Frank Lochter > > Stephen Lime wrote: > >> Yup, the extent is recaclulated based on the shape of the extent and >> the window >> size/shape. You are gauranteed to see the whole extent plus a bit >> more. The >> algorithm fits your requested extent in either x or y dimension >> (whichever fits >> best) and then pads the other dimension as needed. This has to be >> done in >> order to get the right map to image transformation. You wouldn't >> necessarily >> have to actually display data outside the actual requested extent >> but that would >> result in a great deal of blank space in the resulting image, so the >> computed extent >> is used to select/clip data. >> >> Steve >> >> Stephen Lime >> Internet Applications Analyst >> >> Minnesota DNR >> 500 Lafayette Road >> St. Paul, MN 55155 >> 651-297-2937 >> >> >>> Ralf Puchert 03/16/00 10:33AM >>> >> Hello, >> >> When we use >> >> http://130. >> 1.52.178/cgi-bin/mapserv?mode=map&layer=elevation&mapext= >> -180+-10+180+90&map=/var/mapserver/global/global.map&mapsize=500+250 >> >> the outputmap has the wrong southernmost latitude. >> It seems to be that something is overdefined. >> Will the produced map whithin geographic coordinates expanded >> to the width and height values of the bitmap or >> will the geographic bounding box be recalculated ? >> >> Sincerely >> >> Ralf Puchert > > -- > Dr. Frank Lochter > Data Centre > GFZ Potsdam > Telegrafenberg A3 > 14473 Potsdam > fon. +49-331-288-1701 > fax. +49-331-288-1703 > url http://www.gfz-potsdam.de/~marco > -- _______________________________________________________________ Rob Atkinson Email: rob at socialchange.net Director Social Change Online Mob: 0419 202 973 6A Nelson Street Tel: +61 (0) 2 9557 6500 Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 Sydney, Australia WWW: http://online.socialchange.net.au From imap at chesapeake.net Sat Mar 18 21:32:03 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Sun, 19 Mar 2000 00:32:03 -0500 Subject: OpenGIS mapping References: <38D24BCE.E03E54C7@gfz-potsdam.de> <38D2C9F8.7F75A04D@socialchange.net.au> Message-ID: <38D46653.EE8E07C6@chesapeake.net> Rob, Where are the specifications for the OGIS server? Yes, that is a goal we should be working towards... I'd like to at least read up on it and see what kind of problems we can identify. Maybe Doug Nebert, or someone else on the list can give some feedback about the getting mapserver working in with the OGIS Web Mapping testbed apps. On the issue about aspect ratio, most a map server software will adjust to best fit and meet the input bb args. I make the assumption that the algorithms for adjusting the aspect ratio will vary. Is there is a published specification for doing that? Regards, Chris Rob Atkinson wrote: > > FYI > > The current behaviour, which is to create the smallest possible extent > that includes, and is centred on, the requested extent and conforms to > the aspect ratio of the image, is as specified in the OpenGIS Consortium > Web Map Server specification. > > A perl wrapper for mapserv to conform to the OGC specification is under > construction. We'll be putting it up on public CVS site as soon as we > can. > > Steve, I have asked this before - is it possible, and can you provide an > example, of specifying the projection to be used from the CGI > parameters? > > Future plans include actually parsing the .map file to create the > "Capabilities Document" in XML required for OGC conformance. (Its > currently hand built) > > Also, a modified version of the mapimage Applet that uses the OGC > protocol to get a base map and allows Javascript control of the extent > to fetch will be posted. Just need to check the copyright on the > original code to see if this is OK. > > The community will be free to take these and modify them further. > > Regards > > Rob Atkinson > > Frank Lochter wrote: > > > Hi Steve, > > I have a small problem and would like to discuss this here. > > > > 1. When I specify a bbox (lat, lon), then the result map should fit > > exactly within this BBox. > > 2. When I specify a width and height, the result bitmap should have > > this width and height. > > 3. What is when I specify bbox and width and height? Then something is > > over defined! > > - I assume, the result should exactly fit in the bbox AND the > > bitmap should fit exactly in one > > dimension width or height and the other dimension of the bitmap > > should be calculated > > on the fly! > > - I get something unexpected when the map server extracts the bbox, > > especially when I > > like to integrate the bitmap into an other application and assume, > > that the bitmap has the > > bbox, that I used to generate it. > > > > Is there any way to get what I assume in 3. ! > > > > Sincerely > > > > Frank Lochter > > > > Stephen Lime wrote: > > > >> Yup, the extent is recaclulated based on the shape of the extent and > >> the window > >> size/shape. You are gauranteed to see the whole extent plus a bit > >> more. The > >> algorithm fits your requested extent in either x or y dimension > >> (whichever fits > >> best) and then pads the other dimension as needed. This has to be > >> done in > >> order to get the right map to image transformation. You wouldn't > >> necessarily > >> have to actually display data outside the actual requested extent > >> but that would > >> result in a great deal of blank space in the resulting image, so the > >> computed extent > >> is used to select/clip data. > >> > >> Steve > >> > >> Stephen Lime > >> Internet Applications Analyst > >> > >> Minnesota DNR > >> 500 Lafayette Road > >> St. Paul, MN 55155 > >> 651-297-2937 > >> > >> >>> Ralf Puchert 03/16/00 10:33AM >>> > >> Hello, > >> > >> When we use > >> > >> http://130. > >> 1.52.178/cgi-bin/mapserv?mode=map&layer=elevation&mapext= > >> -180+-10+180+90&map=/var/mapserver/global/global.map&mapsize=500+250 > >> > >> the outputmap has the wrong southernmost latitude. > >> It seems to be that something is overdefined. > >> Will the produced map whithin geographic coordinates expanded > >> to the width and height values of the bitmap or > >> will the geographic bounding box be recalculated ? > >> > >> Sincerely > >> > >> Ralf Puchert > > > > -- > > Dr. Frank Lochter > > Data Centre > > GFZ Potsdam > > Telegrafenberg A3 > > 14473 Potsdam > > fon. +49-331-288-1701 > > fax. +49-331-288-1703 > > url http://www.gfz-potsdam.de/~marco > > > > -- > _______________________________________________________________ > Rob Atkinson Email: rob at socialchange.net > Director > Social Change Online Mob: 0419 202 973 > 6A Nelson Street Tel: +61 (0) 2 9557 6500 > Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 > Sydney, Australia WWW: http://online.socialchange.net.au -- Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. 410-257-3187 From danmo at videotron.ca Sun Mar 19 21:16:51 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Mon, 20 Mar 2000 00:16:51 -0500 Subject: Utilities to convert MapInfo .MIF to ESRI shape files? References: Message-ID: <38D5B443.F8867303@videotron.ca> Vinod Chettur wrote: > > Hello everyone, > > I was just wondering what would be the simplest way to convert some of my > .MIF files to shape files without having to purchase any of ESRI's tools. > Any command line utilities out there? > > Thanks, Vinod Vinod, and other MapServer users, I think that the Windows utilities that were posted in reply to your question a couple of days ago are probably the best option if you have access to a Windows system, which is quite likely if you are dealing with MIF files. However, the OpenSource fans around will be happy to hear that there is also an OpenSource/multiplatform solution coming down the pipe. We have at the moment a command-line utility that could be compiled on any OS and could go between MIF, TAB, SHAPE, and a bunch of other formats, but it's not very user-friendly yet, that's why I think the Windows solutions above are still the best (if they really work!). What I'm talking about is the OGR library, it is an OpenSource lib in C++ that implements the OGC simple feature specs (and supports SFCOM) to give generic access to vector formats. The OGR was written by Frank Warmerdam (who also wrote the Shapelib that gives MapServer its shape file access) and at the moment it supports a number of formats including SHAPE, MIF and TAB. One of the OGR test programs is a command-line utility to go from one format to another, I could make a copy available if anyone needs it. Also, one of our plans in the next few months is to implement an optional MapServer module based on OGR that would give transparent access to multiple data formats. This will have to be coordinated with Steve and would not replace the optimized Shapefile access, but for those who are ready to pay a small price in performance, then this will become a very interesting option. For more information, the OGR web page is at: http://gdal.velocet.ca/projects/opengis/index.html The MITAB libary's web page (MIF and TAB read/write): http://pages.infinit.net/danmo/e00/index-mitab.html Best Regards, -- ------------------------------------------------------------ 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 ddnebert at usgs.gov Mon Mar 20 07:53:10 2000 From: ddnebert at usgs.gov (Doug Nebert) Date: Mon, 20 Mar 2000 10:53:10 -0500 Subject: mapsize References: <20000316.16331567@dc27.gfz-potsdam.de> Message-ID: <38D64966.C0270425@usgs.gov> Ralf Puchert wrote: > > Hello, > > When we use > > http://130.11.52.178/cgi-bin/mapserv?mode=map&layer=elevation&mapext= > -180+-10+180+90&map=/var/mapserver/global/global.map&mapsize=500+250 > If you force the mapsize or its aspect ratio to be twice as wide as it is tall (500 x 250) then it will do its best to fit the requested map into that space. if you experiment with always defining regions that are this shape, the request will work fine. The mapserver will never distort the coordinates to display within a specified mapsize, it will align with the smaller extent dimension and show more in the other dimension. > the outputmap has the wrong southernmost latitude. > It seems to be that something is overdefined. > Will the produced map whithin geographic coordinates expanded > to the width and height values of the bitmap or > will the geographic bounding box be recalculated ? > > Sincerely > > Ralf Puchert -- Douglas D. Nebert Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From steve.lime at dnr.state.mn.us Mon Mar 20 08:24:29 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 20 Mar 2000 10:24:29 -0600 Subject: mapsize Message-ID: Hmmm. I wrote a nice detailed response to this on Friday. Looks like it never made it to the list. Probably a DNR problem. Anyway, here's the skinny... First of all I understand the problem. That said everyone must understand that the MapServer was written (initially) to support interactive mapping. That is, interfaces where the user would pan/zoom repeatedly. In that scenario image size needs to be constant. You could change it (i.e. via mapsize=) but once set it was fixed and the extent was massaged to fit the image size perfectly. When acting as an image engine for other apps I can certainly see the value of supporting 1. as defined by Frank below. Trouble is how to do that. An extent is not enough. In addition to the extent you need either: - one image dimension, the other can be calculated - an image resolution, cellsize for which both image dimensions can calculated Me thinks both should/can be supported. For case one I propose adding a new mapfile parameter, something like FIT which would have to possible values- IMAGE and EXTENT with the default being EXTENT. You'd still define a SIZE but only one dimension would be used depending on how things are oriented. This is just like extents are handled now. For case two i'd propose adding a new CGI parameter (cellsize) that would be used with mapext in generating image size. I can make these changes in 3.3.010 if it's seems ok to folks. These changes would have no impact on existing apps. There of course other alternatives: - you can use mapscript to generate image sizes based on extent yourself - the client application can do it It should be noted that the assumtion that 'the result should exactly fit in the bbox' will almost never be true even with the modifications discussed. The is because image sizes are integral and computations often result in fractional (i.e. 525.345) results. However, with the changes suggested about errors will be less than half a pixel which is as good as one could expect unless you do work in the client application to ensure a perfect fit. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Frank Lochter 03/17/00 09:14AM >>> Hi Steve, I have a small problem and would like to discuss this here. 1. When I specify a bbox (lat, lon), then the result map should fit exactly within this BBox. 2. When I specify a width and height, the result bitmap should have this width and height. 3. What is when I specify bbox and width and height? Then something is over defined! - I assume, the result should exactly fit in the bbox AND the bitmap should fit exactly in one dimension width or height and the other dimension of the bitmap should be calculated on the fly! - I get something unexpected when the map server extracts the bbox, especially when I like to integrate the bitmap into an other application and assume, that the bitmap has the bbox, that I used to generate it. Is there any way to get what I assume in 3. ! Sincerely Frank Lochter Stephen Lime wrote: > Yup, the extent is recaclulated based on the shape of the extent and the window > size/shape. You are gauranteed to see the whole extent plus a bit more. The > algorithm fits your requested extent in either x or y dimension (whichever fits > best) and then pads the other dimension as needed. This has to be done in > order to get the right map to image transformation. You wouldn't necessarily > have to actually display data outside the actual requested extent but that would > result in a great deal of blank space in the resulting image, so the computed extent > is used to select/clip data. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Ralf Puchert 03/16/00 10:33AM >>> > Hello, > > When we use > > http://130.11.52.178/cgi-bin/mapserv?mode=map&layer=elevation&mapext= > -180+-10+180+90&map=/var/mapserver/global/global.map&mapsize=500+250 > > the outputmap has the wrong southernmost latitude. > It seems to be that something is overdefined. > Will the produced map whithin geographic coordinates expanded > to the width and height values of the bitmap or > will the geographic bounding box be recalculated ? > > Sincerely > > Ralf Puchert -- Dr. Frank Lochter Data Centre GFZ Potsdam Telegrafenberg A3 14473 Potsdam fon. +49-331-288-1701 fax. +49-331-288-1703 url http://www.gfz-potsdam.de/~marco From steve.lime at dnr.state.mn.us Mon Mar 20 08:38:14 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 20 Mar 2000 10:38:14 -0600 Subject: changing class expressions on-the-fly Message-ID: I *think* I fixed this in 3.3.009. I mean I know I fixed it, but I haven't tested it much. It was originally broken when logical expression support was added. Let me know if you still have problems. It's a powerful feature that needs to be working. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "David McGaughey" 03/17/00 05:16PM >>> Greetings! I'm very new to mapserver, so please pardon this newbie: I'm trying to modify expressions on the fly. I build my URL the way that I think it should go: http://clic.ci.lubbock.tx.us/cgi-bin/mapserv?map=/home/httpd/clic/gis/pntest.map&map_layer_1_class_expression=173953&name=pn085 But my server tells me: Internal Server Error I'm running Apache 1.3.9 and mapserv 3.3.7 Can anyone help? Greatly appreciated! David McGaughey City of Lubbock, Texas From nhv at cape.com Mon Mar 20 13:09:06 2000 From: nhv at cape.com (Norman Vine) Date: Mon, 20 Mar 2000 16:09:06 -0500 Subject: Python In-Reply-To: Message-ID: <000201bf92b0$8fd71480$4a37ba8c@nhv> Hi all Just a quick note to say that mapscript (3.3.009) seems to work fine with Python. If anyone wants I can send them the mapscript_wrap.c and mapscript.py but swig worked on the first try swig -strict 0 -shadow -docstring -dhtml -python -lembed.i -DPYTHON -module mapscript -o ./mapscript_wrap.c ../mapscript.i :) Norman Vine From ple at desolagroup.com Mon Mar 20 13:27:39 2000 From: ple at desolagroup.com (Peter Le) Date: Mon, 20 Mar 2000 16:27:39 -0500 Subject: CGI Variable Message-ID: <1121AFB51B9FD11192B100A0C93313864A60C7@DGMAIL> Hello, I'm using IIS 4.0 and I just downloaded the NT version of MAPSERVER. I keep getting the following error: loadForm(): Web application error. CGI variable "map" is not set. How do I set CGI Variable under IIS? Please provide me with the step-by-step guidance since I never used this product before, thanks. From pnaciona at gis.umn.edu Mon Mar 20 17:54:37 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Mon, 20 Mar 2000 19:54:37 -0600 Subject: CGI Variable References: <1121AFB51B9FD11192B100A0C93313864A60C7@DGMAIL> Message-ID: <00a101bf92d8$69f701d0$9a496580@gis.umn.edu> Peter, That CGI variable error message you encountered refer to the mapserver mapfile. Since you are getting a CGI variable error, you at least have the mapserv.exe in the right place. You don't have to do anything special with it except to start writing an application. I suggest downloading the MapServer demo for NT at http://128.101.73.80/ms_demo/ms_demo.zip and play with it. To see how the demo should look, go to http://128.101.73.80/ms_demo. You can also check the tutorial for MapServer on NT at http://128.101.73.80. These links should get you started. -Perry Nacionales pnaciona at gis.umn.edu ----- Original Message ----- From: "Peter Le" To: Sent: Monday, March 20, 2000 3:27 PM Subject: CGI Variable > Hello, > > I'm using IIS 4.0 and I just downloaded the NT version of MAPSERVER. I keep > getting the following error: > > loadForm(): Web application error. CGI variable "map" is not set. > > How do I set CGI Variable under IIS? > Please provide me with the step-by-step guidance since I never used this > product before, thanks. > > From marco at gfz-potsdam.de Tue Mar 21 05:23:38 2000 From: marco at gfz-potsdam.de (Frank Lochter) Date: Tue, 21 Mar 2000 14:23:38 +0100 Subject: mapsize References: Message-ID: <38D777DA.41550784@gfz-potsdam.de> Hi Steve, thank you very much for your answer. I'd like to include my comments directly into your answers. But first of all, I love your map server and would like to thank you for the very good job you do here! Unfortunately I wasted a lot of time with a GMT wrapper. It's fast, but not flexible enought. Stephen Lime wrote: > Hmmm. I wrote a nice detailed response to this on Friday. Looks like it never made > it to the list. Probably a DNR problem. Anyway, here's the skinny... > > First of all I understand the problem. That said everyone must understand that the > MapServer was written (initially) to support interactive mapping. That is, interfaces > where the user would pan/zoom repeatedly. In that scenario image size needs to > be constant. May be it's enough, that only one dimension has be constant. Our "best practice" is 568 pixel horizontal see: http://dc.gfz-potsdam.de/gis/ . > You could change it (i.e. via mapsize=) but once set it was fixed and > the extent was massaged to fit the image size perfectly. When acting as an image > engine for other apps I can certainly see the value of supporting 1. as defined by > Frank below. Trouble is how to do that. An extent is not enough. In addition to the > extent you need either: > > - one image dimension, the other can be calculated That's what I prefer!!! > > - an image resolution, cellsize for which both image dimensions can calculated > > Me thinks both should/can be supported. For case one I propose adding a new > mapfile parameter, something like FIT which would have to possible values- IMAGE > and EXTENT with the default being EXTENT. You'd still define a SIZE but only one > dimension would be used depending on how things are oriented. This is just like extents > are handled now. Why not only to check, whether there are width and height in the request and when only one dimension is specified you can calculate the second dimension on the fly. > For case two i'd propose adding a new CGI parameter (cellsize) that > would be used with mapext in generating image size. > > I can make these changes in 3.3.010 if it's seems ok to folks. These changes would > have no impact on existing apps. This would be great!!! > > > There of course other alternatives: > > - you can use mapscript to generate image sizes based on extent yourself > - the client application can do it > > It should be noted that the assumtion that 'the result should exactly fit in the bbox' will almost > never be true even with the modifications discussed. The is because image sizes are integral > and computations often result in fractional (i.e. 525.345) results. However, with the changes > suggested about errors will be less than half a pixel which is as good as one could expect unless > you do work in the client application to ensure a perfect fit. I can live with that. But if you use e.g. the OGC (www.opengis.org) specification for map servers, the idea is to use different OGC map servers to generate layers. You should be able to overlay these layers from different map servers into one map. That's why, the BBOX has to be exactly what was specified for the request to the map server. We've a very poor interface to 2 map servers (under construction) following partly the OGC map server specs (http://dc.gfz-potsdam.de/~puchert/metaserver/mapserver_demo.html). The wrapper for your map server (to make it OGC conform) is from Rob Atkinson with some of our own additions. You can use the interface or you can use the URL's directly, that are beneath the "Request" button. > > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Frank Lochter 03/17/00 09:14AM >>> > Hi Steve, > > I have a small problem and would like to discuss this here. > > 1. When I specify a bbox (lat, lon), then the result map should fit exactly within this BBox. > 2. When I specify a width and height, the result bitmap should have this width and height. > 3. What is when I specify bbox and width and height? Then something is over defined! > > - I assume, the result should exactly fit in the bbox AND the bitmap should fit exactly in one > dimension width or height and the other dimension of the bitmap should be calculated on > the fly! > > - I get something unexpected when the map server extracts the bbox, especially when I > like to integrate the bitmap into an other application and assume, that the bitmap has > the bbox, that I used to generate it. > > Is there any way to get what I assume in 3. ! > > Sincerely > > Frank Lochter > > Stephen Lime wrote: > > > Yup, the extent is recaclulated based on the shape of the extent and the window > > size/shape. You are gauranteed to see the whole extent plus a bit more. The > > algorithm fits your requested extent in either x or y dimension (whichever fits > > best) and then pads the other dimension as needed. This has to be done in > > order to get the right map to image transformation. You wouldn't necessarily > > have to actually display data outside the actual requested extent but that would > > result in a great deal of blank space in the resulting image, so the computed extent > > is used to select/clip data. > > > > Steve > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> Ralf Puchert 03/16/00 10:33AM >>> > > Hello, > > > > When we use > > > > http://130.11.52.178/cgi-bin/mapserv?mode=map&layer=elevation&mapext= > > -180+-10+180+90&map=/var/mapserver/global/global.map&mapsize=500+250 > > > > the outputmap has the wrong southernmost latitude. > > It seems to be that something is overdefined. > > Will the produced map whithin geographic coordinates expanded > > to the width and height values of the bitmap or > > will the geographic bounding box be recalculated ? > > > > Sincerely > > > > Ralf Puchert > > -- > Dr. Frank Lochter > Data Centre > GFZ Potsdam > Telegrafenberg A3 > 14473 Potsdam > fon. +49-331-288-1701 > fax. +49-331-288-1703 > url http://www.gfz-potsdam.de/~marco -- Dr. Frank Lochter Data Centre GFZ Potsdam Telegrafenberg A3 14473 Potsdam fon. +49-331-288-1701 fax. +49-331-288-1703 url http://www.gfz-potsdam.de/~marco -------------- next part -------------- An HTML attachment was scrubbed... URL: From ple at desolagroup.com Tue Mar 21 09:34:23 2000 From: ple at desolagroup.com (Peter Le) Date: Tue, 21 Mar 2000 12:34:23 -0500 Subject: CGI Variable Message-ID: <1121AFB51B9FD11192B100A0C93313864A60CB@DGMAIL> Thanks for your feedback, but I still have problem with the below error. The following is the command I used to test: http://dgi/cgi-bin/mapserv.exe?http://dgi/cgi-bin/demo_map.txt Is it possible that my IIS webserver does not have the CGI installation setting? If so, what can I do to enable it? Thanks again for your help, Peter > -----Original Message----- > From: Pericles S. Nacionales [SMTP:pnaciona at gis.umn.edu] > Sent: Monday, March 20, 2000 8:55 PM > To: mapserver-users at lists.gis.umn.edu; Peter Le > Subject: Re: CGI Variable > > Peter, > > That CGI variable error message you encountered refer to the mapserver > mapfile. Since you are getting a CGI variable error, you at least have > the > mapserv.exe in the right place. You don't have to do anything special > with > it except to start writing an application. I suggest downloading the > MapServer demo for NT at http://128.101.73.80/ms_demo/ms_demo.zip and play > with it. To see how the demo should look, go to > http://128.101.73.80/ms_demo. You can also check the tutorial for > MapServer > on NT at http://128.101.73.80. > > These links should get you started. > > -Perry Nacionales > pnaciona at gis.umn.edu > > > ----- Original Message ----- > From: "Peter Le" > To: > Sent: Monday, March 20, 2000 3:27 PM > Subject: CGI Variable > > > > Hello, > > > > I'm using IIS 4.0 and I just downloaded the NT version of MAPSERVER. I > keep > > getting the following error: > > > > loadForm(): Web application error. CGI variable "map" is not set. > > > > How do I set CGI Variable under IIS? > > Please provide me with the step-by-step guidance since I never used this > > product before, thanks. > > > > From Banister at BANISTER.COM Tue Mar 21 09:50:01 2000 From: Banister at BANISTER.COM (Trevor Banister) Date: Tue, 21 Mar 2000 10:50:01 -0700 Subject: CGI Variable Message-ID: <51BFCC79A3CCD311A2DD0800362C8E0301F6BF@banister4.conen.net> You are missing a map tag, and the map value is a path name not a URL. Try something like http://dgi/cgi-bin/mapwerv.exe?map=C:\inetpub\wwwroot\cgi-bin\demo_map.txt You could probably get away without the full path, http://dgi/cgi-bin/mapwerv.exe?map=demo_map.txt Trevor Banister Banister Consulting and Online Services -----Original Message----- From: Peter Le [mailto:ple at desolagroup.com] Sent: Tuesday, March 21, 2000 10:34 AM To: mapserver-users at lists.gis.umn.edu Subject: RE: CGI Variable Thanks for your feedback, but I still have problem with the below error. The following is the command I used to test: http://dgi/cgi-bin/mapserv.exe?http://dgi/cgi-bin/demo_map.txt Is it possible that my IIS webserver does not have the CGI installation setting? If so, what can I do to enable it? Thanks again for your help, Peter > -----Original Message----- > From: Pericles S. Nacionales [SMTP:pnaciona at gis.umn.edu] > Sent: Monday, March 20, 2000 8:55 PM > To: mapserver-users at lists.gis.umn.edu; Peter Le > Subject: Re: CGI Variable > > Peter, > > That CGI variable error message you encountered refer to the mapserver > mapfile. Since you are getting a CGI variable error, you at least have > the > mapserv.exe in the right place. You don't have to do anything special > with > it except to start writing an application. I suggest downloading the > MapServer demo for NT at http://128.101.73.80/ms_demo/ms_demo.zip and play > with it. To see how the demo should look, go to > http://128.101.73.80/ms_demo. You can also check the tutorial for > MapServer > on NT at http://128.101.73.80. > > These links should get you started. > > -Perry Nacionales > pnaciona at gis.umn.edu > > > ----- Original Message ----- > From: "Peter Le" > To: > Sent: Monday, March 20, 2000 3:27 PM > Subject: CGI Variable > > > > Hello, > > > > I'm using IIS 4.0 and I just downloaded the NT version of MAPSERVER. I > keep > > getting the following error: > > > > loadForm(): Web application error. CGI variable "map" is not set. > > > > How do I set CGI Variable under IIS? > > Please provide me with the step-by-step guidance since I never used this > > product before, thanks. > > > > From chetturv at sdhu.moh.gov.on.ca Tue Mar 21 11:00:17 2000 From: chetturv at sdhu.moh.gov.on.ca (Vinod Chettur) Date: Tue, 21 Mar 2000 14:00:17 -0500 Subject: Utilities to convert MapInfo .MIF to ESRI shape files? Message-ID: Thanks to all who responded to my question. The ESRI command line utility worked very well. Had it not been brought to my attention I would have still been searching for it since it does not seem to show up on the ESRI website search engine. Vinod -----Original Message----- From: Daniel Morissette To: mapserver-users at lists.gis.umn.edu Cc: Vinod Chettur; Frank Warmerdam Sent: 3/20/00 12:16 AM Subject: Re: Utilities to convert MapInfo .MIF to ESRI shape files? Vinod Chettur wrote: > > Hello everyone, > > I was just wondering what would be the simplest way to convert some of my > .MIF files to shape files without having to purchase any of ESRI's tools. > Any command line utilities out there? > > Thanks, Vinod Vinod, and other MapServer users, I think that the Windows utilities that were posted in reply to your question a couple of days ago are probably the best option if you have access to a Windows system, which is quite likely if you are dealing with MIF files. However, the OpenSource fans around will be happy to hear that there is also an OpenSource/multiplatform solution coming down the pipe. We have at the moment a command-line utility that could be compiled on any OS and could go between MIF, TAB, SHAPE, and a bunch of other formats, but it's not very user-friendly yet, that's why I think the Windows solutions above are still the best (if they really work!). What I'm talking about is the OGR library, it is an OpenSource lib in C++ that implements the OGC simple feature specs (and supports SFCOM) to give generic access to vector formats. The OGR was written by Frank Warmerdam (who also wrote the Shapelib that gives MapServer its shape file access) and at the moment it supports a number of formats including SHAPE, MIF and TAB. One of the OGR test programs is a command-line utility to go from one format to another, I could make a copy available if anyone needs it. Also, one of our plans in the next few months is to implement an optional MapServer module based on OGR that would give transparent access to multiple data formats. This will have to be coordinated with Steve and would not replace the optimized Shapefile access, but for those who are ready to pay a small price in performance, then this will become a very interesting option. For more information, the OGR web page is at: http://gdal.velocet.ca/projects/opengis/index.html The MITAB libary's web page (MIF and TAB read/write): http://pages.infinit.net/danmo/e00/index-mitab.html Best Regards, -- ------------------------------------------------------------ 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 assefa at dmsolutions.on.ca Tue Mar 21 12:06:20 2000 From: assefa at dmsolutions.on.ca (Assefa Yewondwossen) Date: Tue, 21 Mar 2000 15:06:20 -0500 Subject: GeoTiff files Message-ID: <38D7D63C.D0ED3BA1@dmsolutions.on.ca> Hi, I am trying to use some GeoTiff files that I downloaded from ftp://ftp.remotesensing.org/pub/geotiff/samples. I am having some trouble displaying most of these files. (the files are recongnized as beeing geotiffs files but the reading of the extents seems to be incorrect). I was wondering if some of you used a lot of geotiff files with sucess. Thanks, PS : I am using mapserver 3.3.009 on NT with the TIFF extension that I dowloaded from the http://www.libtiff.org/ site. From ple at desolagroup.com Tue Mar 21 15:23:29 2000 From: ple at desolagroup.com (Peter Le) Date: Tue, 21 Mar 2000 18:23:29 -0500 Subject: Query in Mapserver Message-ID: <1121AFB51B9FD11192B100A0C93313864A60CD@DGMAIL> Hello, For 2 days I've been trying to run the demo query as follows: QUERYITEM usclass QUERY EXPRESSION "421" TEMPLATE lakes.html JOIN "data/lakejoin.dbf" islake "type" END QUERY EXPRESSION "^-" TEMPLATE land.html JOIN "data/lakejoin.dbf" islake "type" END END # Layer For some reasons, I always run into this error: loadJoin(): Unknown identifier. (data/lakejoin.dbf):(119) Could you help me in understanding the syntax for Mapserver query? I really appreciate your help. Peter Le From pnaciona at gis.umn.edu Tue Mar 21 18:50:28 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Tue, 21 Mar 2000 20:50:28 -0600 Subject: Query in Mapserver References: <1121AFB51B9FD11192B100A0C93313864A60CD@DGMAIL> Message-ID: <004901bf93a9$63d9fdd0$9a496580@gis.umn.edu> The problem is you have the wrong syntax for JOIN. JOIN is now used in the same way as other objects in a map file. That is you begin with the keyword JOIN and end with END. Here's how it should look, based on the example you gave: QUERYITEM usclass QUERY EXPRESSION "421" TEMPLATE lakes.html JOIN # start of JOIN object NAME water TABLE "lakejoin.dbf" FROM "islake" TO "type" TYPE single END # end of JOIN object END QUERY EXPRESSION "^-" TEMPLATE land.html JOIN # start of JOIN object NAME notwater TABLE "lakejoin.dbf" FROM "islake" TO "type" END # end of JOIN object END END # layer Have a look at the map file docs (http://mapserver.gis.umn.edu/mapfile.html) for other mapserver objects/keywords. Perry N. ----- Original Message ----- From: "Peter Le" To: Sent: Tuesday, March 21, 2000 5:23 PM Subject: Query in Mapserver > Hello, > > For 2 days I've been trying to run the demo query as follows: > > QUERYITEM usclass > QUERY > EXPRESSION "421" > TEMPLATE lakes.html > JOIN "data/lakejoin.dbf" islake "type" > END > QUERY > EXPRESSION "^-" > TEMPLATE land.html > JOIN "data/lakejoin.dbf" islake "type" > END > END # Layer > > For some reasons, I always run into this error: > loadJoin(): Unknown identifier. (data/lakejoin.dbf):(119) > > Could you help me in understanding the syntax for Mapserver query? I really > appreciate your help. > > Peter Le > From danmo at videotron.ca Tue Mar 21 18:59:20 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Tue, 21 Mar 2000 21:59:20 -0500 Subject: MITAB library References: <38D7F97D.EC1A8929@charta.acme.com> Message-ID: <38D83708.55791DBB@videotron.ca> Carlo Bertelli wrote: > > what about fitting mitab instead of shapelib into MapServer? Could it be > feasible. For Mapinfo users this would be extremely beneficial. What do > you think about this issue? > Carlo, (I'll CC: my response to the MapServer list since other MapInfo users might be interested.) First of all, I would like to say that I can appreciate the fact that MapInfo users would be extremely interested in using MapServer if they could use it to serve their data directly. Adding support for OGR in the MapServer would automatically provide support for MapInfo TAB files. There would be no gain in replacing the shapefile support in MapServer by MITAB only. Mind you, access to MapInfo TAB files would still be quite efficient even going through OGR since MapInfo files are quite well organized for random access. The loss in performance that I talked about was due to the fact that OGR uses a set of generic C++ classes defined to accomodate most formats (while respecting the OGC Simple Feature specs), and as a consequence of that, stuff like creating objects in memory for every feature that you read for instance will never be as efficient as a direct C API optimized for a specific format like shapelib. And since MITAB is built on the OGR object model anyways, accessing it directly will not require less development effort nor provide much better performance than going through OGR and support several other formats by the same way. However, there is one thing that would have to be done in MapServer to make MapInfo users really happy: the way MapServer works today, it could not really take advantage of the symbology stored in a MapInfo file (i.e. colors, line width, patterns, etc.). So something would probably have to be done to allow MapServer to use symbology information attached to the data when it is available. As part of OGR, I have started work on specs for a generic way to carry symbology information between formats. So eventually the optional OGR extension for MapServer could use that information as an alternative to defining CLASSes in the MAP file. How this would work exactly in MapServer is still undefined and would have to be discussed with Steve though. These are all very cool ideas that I would love to pursue but I have only so much time in my hands... so I can tell you today that it is 99% sure that MapServer will support OGR (and thus TAB files) before the end of the summer because we have to do it for one of our clients. On the other hand, other changes in MapServer to take advantage of the symbology coming from formats like MapInfo TAB will probably stay on the ToDo list it becomes a priority for one of our clients... or if I find the time to do it on a rainy weekend. :-) Best Regards, -- ------------------------------------------------------------ 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 bfischer at usgs.gov Wed Mar 22 08:09:58 2000 From: bfischer at usgs.gov (bfischer at usgs.gov) Date: Wed, 22 Mar 2000 10:09:58 -0600 Subject: Changing map file parameters Message-ID: Hello mapserv users, I am trying to change map file parameters on the fly. I understand I have to use form variables, but there is not much documentation on how to use them. Here is what I am trying to do. I have a polygon coverage of watersheds. The user selects a watershed by a mouse click. From this I am able to acess all the attributes from that polygon. Now I want to use this polygon's attributes to form a class expression and query expression on the same polygon shapefile. The output I need is a map with all the polygons highlighted that got selected in the class expression. Here is the HTML code I am using, am I doing something wrong? All it returns is the image from the previous point query. One problem I noticed is the [DOWNSTREAM], [FROM_DON_], and [TO_DON_] get turned into the values of the polygon's attributes that got selected from the mouse click.
Does any onw have any suggestions? Would this also be possible to do with a URL instead of form variables? Thanks, Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 From ple at desolagroup.com Wed Mar 22 09:58:13 2000 From: ple at desolagroup.com (Peter Le) Date: Wed, 22 Mar 2000 12:58:13 -0500 Subject: Query expression and result Message-ID: <1121AFB51B9FD11192B100A0C93313864A60CE@DGMAIL> Thanks to some helps from the members in this list, I am able to load graphic and data from mapserv. The only problem is when I click on the map, the result comes back as : "getNumeric(): Incorrect data type" ...what does this mean? Also, in a query syntax, what does the "^-" indicate? i.e., EXPRESSION "^-" Maybe a book about mapserver is needed :-) Thanks, From steve.lime at dnr.state.mn.us Wed Mar 22 11:47:57 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 22 Mar 2000 13:47:57 -0600 Subject: Query expression and result Message-ID: Its a symbol set issue. I imagine the demo you downloaded was pre-3.3 and has old symbol sets. Replace the file 'line.sym' in the ms_demo/symbols directory with the one attached and give it another try. On the expression front again the 3.2 demo is wrong. ^- is a regular expression that means anything starting with a minus sign. Regular expressions should be enclosed in //'s so change the occurances of "^-" to /^-/. Other expressions are tests for equality and should be fine as is. A new 3.3 only demo is underway. Yes, a book would be nice. Any co-authors? How bout a user group meeting? s. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Peter Le 03/22/00 11:58AM >>> Thanks to some helps from the members in this list, I am able to load graphic and data from mapserv. The only problem is when I click on the map, the result comes back as : "getNumeric(): Incorrect data type" ...what does this mean? Also, in a query syntax, what does the "^-" indicate? i.e., EXPRESSION "^-" Maybe a book about mapserver is needed :-) Thanks, -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: line.sym URL: From danmo at videotron.ca Wed Mar 22 12:05:46 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 22 Mar 2000 15:05:46 -0500 Subject: Query expression and result References: Message-ID: <38D9279A.7CD1277B@videotron.ca> Stephen Lime wrote: > > Yes, a book would be nice. Any co-authors? Perhaps a FAQ could be a good start... -- ------------------------------------------------------------ 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 Wed Mar 22 13:09:57 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 22 Mar 2000 15:09:57 -0600 Subject: Changing map file parameters Message-ID: Interesting problem. If all you want is the image then there is no need to have another form. I assume you want some of the values in the expression filed in and others left alone. (note: you don't have to provide a CLASSITEM with logical expressions, it's ignored) The problem is that MapServer sees the [DOWNSTREAM] and wants to replace it. One workaround might be to escape the []'s. Your page could contain: In theory ;-) this should be the image you describe. It looks ugly but what I did is pretty simple. Spaces and []'s got replaced by their appropriate HTML escape sequences. [TO_DON_] and [FROM_DON_] will be replaced by the MapServer but [DOWNSTREAM] won't since it's not escaped. Note the mode=map at the end. It tells MapServer to only kick out the image and nothing else. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 03/22/00 10:09AM >>> Hello mapserv users, I am trying to change map file parameters on the fly. I understand I have to use form variables, but there is not much documentation on how to use them. Here is what I am trying to do. I have a polygon coverage of watersheds. The user selects a watershed by a mouse click. From this I am able to acess all the attributes from that polygon. Now I want to use this polygon's attributes to form a class expression and query expression on the same polygon shapefile. The output I need is a map with all the polygons highlighted that got selected in the class expression. Here is the HTML code I am using, am I doing something wrong? All it returns is the image from the previous point query. One problem I noticed is the [DOWNSTREAM], [FROM_DON_], and [TO_DON_] get turned into the values of the polygon's attributes that got selected from the mouse click.
Does any onw have any suggestions? Would this also be possible to do with a URL instead of form variables? Thanks, Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 From RAldridge at linuxstart.com Wed Mar 22 13:19:54 2000 From: RAldridge at linuxstart.com (RAldridge) Date: Wed, 22 Mar 2000 13:19:54 -0800 Subject: EMBED parameter Message-ID: <200003222119.NAA03916@ns1.filetron.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From steve.lime at dnr.state.mn.us Wed Mar 22 14:48:06 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 22 Mar 2000 16:48:06 -0600 Subject: EMBED parameter Message-ID: Um, er. Forgot to update the docs for this one. Embeding works for scalebars at this point. The EMBED parameter is not used rather you set the STATUS to EMBED. You MUST have a markerset defined to use embedded scalebars. They are actually added as a symbol and rendered using the noramal marker utilities. Here's a typical definition: SCALEBAR STATUS EMBED LABEL SIZE tiny COLOR 0 0 0 OUTLINECOLOR 255 255 255 END STYLE 0 INTERVALS 3 SIZE 100 3 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 OUTLINECOLOR 0 0 0 UNITS MILES POSITION LR TRANSPARENT TRUE END # Scalebar TRANSPARENT turns the image transparent. POSITION is similar to POSITION for labels. Supported positions are UL,UC,UR,LL,LC,LR. Attached is an example image with an embedded scalebar using the above definition. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> RAldridge 03/22/00 03:19PM >>> Does the EMBED parameter still work for legends and scalebars? I haven't tried it with a legend, but when I add 'EMBED true' to my scalebar parameters in my .map file, I get: loadScalebar(): Unknown identifier. (EMBED):(67) I don't know that I'd use it. Just wanted to see how it looks. Thanks, Robert Aldridge ---------------------- Do you do Linux? :) Get your FREE @linuxstart.com email address at: http://www.linuxstart.com -------------- next part -------------- A non-text attachment was scrubbed... Name: example.gif Type: image/gif Size: 10993 bytes Desc: not available URL: From ddnebert at usgs.gov Wed Mar 22 15:09:58 2000 From: ddnebert at usgs.gov (Doug Nebert) Date: Wed, 22 Mar 2000 18:09:58 -0500 Subject: Map server interface available Message-ID: <38D952C6.933987B4@usgs.gov> The open source map server known as "mapserver" developed by the State of Minnesota in support of, and with support of, NASA and other activities, now has a simple OGC-compatible wrapper and configuration file written in perl. This responds to getCapabilities and getMap functions so far. It is free for general use and we welcome your continued contributions to do more with it! See: http://clearinghouse3.fgdc.gov/wmswrapper.html -- Douglas D. Nebert Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From steve.lime at dnr.state.mn.us Thu Mar 23 07:16:37 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 23 Mar 2000 09:16:37 -0600 Subject: Map server interface available Message-ID: Doug: Cool. It is simple although a bit cryptic. A couple of questions: - got any example urls for calling the ms.pl script? - where/what is the required file dumpvars.pl? Seems the capabilities.xml file would be best built from the mapfile itself. I believe most of the params presented in the the .xml file are accounted for in the mapfile syntax. MapScript would really simplify that process. It could be used to simplify the getMap request by avoiding any CGI altogether. MapScript also supports queries now so a getFeatureInfo request should be easily doable. In addition, you have direct access to the shapefiles in MapScript so dumping vectors as SVG or whatever can be done too. Anyway, nice work Rob/Doug. Looking forward to learning more about this capability. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Doug Nebert 03/22/00 05:09PM >>> The open source map server known as "mapserver" developed by the State of Minnesota in support of, and with support of, NASA and other activities, now has a simple OGC-compatible wrapper and configuration file written in perl. This responds to getCapabilities and getMap functions so far. It is free for general use and we welcome your continued contributions to do more with it! See: http://clearinghouse3.fgdc.gov/wmswrapper.html -- Douglas D. Nebert Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From ddnebert at usgs.gov Thu Mar 23 07:58:28 2000 From: ddnebert at usgs.gov (Doug Nebert) Date: Thu, 23 Mar 2000 10:58:28 -0500 Subject: Map server interface available References: Message-ID: <38DA3F24.947E4FA9@usgs.gov> Stephen Lime wrote: > > Doug: Cool. It is simple although a bit cryptic. A couple of questions: > > - got any example urls for calling the ms.pl script? > - where/what is the required file dumpvars.pl? > I have modified the http://clearinghouse3.fgdc.gov/wmswrapper.html to reflect the necessary files and an example invocation. The dumpvars was a diagnostic include and was commented out, now it is not in the ms.pl file. > Seems the capabilities.xml file would be best built from the mapfile > itself. I believe most of the params presented in the the .xml file > are accounted for in the mapfile syntax. MapScript would really > simplify that process. It could be used to simplify the getMap > request by avoiding any CGI altogether. I like this idea and would encourage any takers to show us how mapscript could really be used to do this. There are a number of useful values (Name, Title, Abstract) for each layer that may not have a counterpart in a map file (only Name) and are really useful for searching and evaluating the available layers in a catalog. Perhaps these could be gleaned from legend-like constructs in a future mapfile? > MapScript also supports queries > now so a getFeatureInfo request should be easily doable. In addition, you have > direct access to the shapefiles in MapScript so dumping vectors as SVG or whatever > can be done too. > I am confident this can be done for both raster and vector targets under mapserver, just not yet implemented. As the XML-encoded vectors stabilize in OGC's GML proposal this would be a very cool output feature to demonstrate among the FGDC and other pilot projects in the coming 6 months. > Anyway, nice work Rob/Doug. Looking forward to learning more about this capability. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Doug Nebert 03/22/00 05:09PM >>> > The open source map server known as "mapserver" developed by > the State of Minnesota in support of, and with support of, NASA and > other activities, now has a simple OGC-compatible wrapper and > configuration file written in perl. This responds to getCapabilities > and getMap functions so far. It is free for general use and we welcome > your continued contributions to do more with it! > > See: http://clearinghouse3.fgdc.gov/wmswrapper.html > > -- > Douglas D. Nebert > Clearinghouse Coordinator > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html -- Douglas D. Nebert Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From steve.lime at dnr.state.mn.us Thu Mar 23 08:01:20 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 23 Mar 2000 10:01:20 -0600 Subject: Powered by MapServer... Message-ID: I'm interested in creating a "powered by" logo for folks to display should they choose (i.e. like Apache). Might as well go to the users for some ideas. Send me your graphics! Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From SLuzny at agr.gov.sk.ca Thu Mar 23 12:31:12 2000 From: SLuzny at agr.gov.sk.ca (Luzny, Stephen) Date: Thu, 23 Mar 2000 14:31:12 -0600 Subject: symbolization based on joined attributes? Message-ID: <5D0EBFB882D1D111A90800A0C99DB2E7069E3FED@SAF1> Hello, I have not looked at Mapserver in depth yet, but need to determine if it will be suitable for the application we have in mind. The application would allow a user to input values at the web page and have those values determine which data to attach to the shapefile. Based on the variables, the appropriate legend, title, etc would be selected/constructed for the map as well. This would allow the creation of a large number of different maps with relatively little work being done. We want to avoid having a seperate file or set of files for each individual map to be produced (that is currently the case with ArcView IMS and likely to be true with ArcIMS as well). Is there a mechanism whereby attribute data residing an a database (eg. MS Access) can be joined to a shapefile, which is then used in the creation of a custom map on the fly? (the legend would apply to the joined attributes) OR Does the data have to be merged with the shapefile .dbf component? (I saw some posts to this effect in the archives from November) I will not be in the office on Friday, so if I do not reply to messages by the end of today I will have to get to them on Monday. ------------------------------------------------------- Stephen Luzny GIS Analyst, Geomatics Unit Saskatchewan Agriculture and Food Ph: 306 787-5167 Fax: 306 787-0276 Email: SLuzny at agr.gov.sk.ca From mdh20 at humboldt.edu Thu Mar 23 15:38:09 2000 From: mdh20 at humboldt.edu (Michael Hass) Date: Thu, 23 Mar 2000 15:38:09 -0800 (PST) Subject: drift and type Message-ID: HI all- Two basic questions: 1) I have continental drift going on in the java version of MS at my site. With every submit the "map" drifts to the lower right, eventually going off the image area. I realize its California, but ... I have tried changing the map extent to no effect. Do I really need to crank down the map extent to acheive the centering I desire or is there another solution? 2) In unix/linux: When I implement freetype, etc as part of MS, do I need to make a library path change so that these will function- they don't now, I get an error if I uncomment them now. Could someone post a sample so that I can try it out if this something that I need to do. Thanks in advance, Mike Hass From Banister at BANISTER.COM Fri Mar 24 12:55:25 2000 From: Banister at BANISTER.COM (Trevor Banister) Date: Fri, 24 Mar 2000 13:55:25 -0700 Subject: drift and type Message-ID: <51BFCC79A3CCD311A2DD0800362C8E0301F6D3@banister4.conen.net> Check your html template to make sure that img.x, and img.y exist and default to the center of your image (1/2 the dimension). I suspect that img.x and img.y are both too big in your template which is causing the drift. Trevor Banister -----Original Message----- From: Michael Hass [mailto:mdh20 at humboldt.edu] Sent: Thursday, March 23, 2000 4:38 PM To: MapServer Users List Subject: drift and type HI all- Two basic questions: 1) I have continental drift going on in the java version of MS at my site. With every submit the "map" drifts to the lower right, eventually going off the image area. I realize its California, but ... I have tried changing the map extent to no effect. Do I really need to crank down the map extent to acheive the centering I desire or is there another solution? 2) In unix/linux: When I implement freetype, etc as part of MS, do I need to make a library path change so that these will function- they don't now, I get an error if I uncomment them now. Could someone post a sample so that I can try it out if this something that I need to do. Thanks in advance, Mike Hass From Banister at BANISTER.COM Fri Mar 24 13:03:35 2000 From: Banister at BANISTER.COM (Trevor Banister) Date: Fri, 24 Mar 2000 14:03:35 -0700 Subject: symbolization based on joined attributes? Message-ID: <51BFCC79A3CCD311A2DD0800362C8E0301F6D4@banister4.conen.net> Mapserver doesn't support Access, but you could dump your access database to .dbf A periodic script could be written to dump your Access database to .dbf Trevor Banister -----Original Message----- From: Luzny, Stephen [mailto:SLuzny at agr.gov.sk.ca] Sent: Thursday, March 23, 2000 1:31 PM To: mapserver-users at lists.gis.umn.edu Subject: symbolization based on joined attributes? Hello, I have not looked at Mapserver in depth yet, but need to determine if it will be suitable for the application we have in mind. The application would allow a user to input values at the web page and have those values determine which data to attach to the shapefile. Based on the variables, the appropriate legend, title, etc would be selected/constructed for the map as well. This would allow the creation of a large number of different maps with relatively little work being done. We want to avoid having a seperate file or set of files for each individual map to be produced (that is currently the case with ArcView IMS and likely to be true with ArcIMS as well). Is there a mechanism whereby attribute data residing an a database (eg. MS Access) can be joined to a shapefile, which is then used in the creation of a custom map on the fly? (the legend would apply to the joined attributes) OR Does the data have to be merged with the shapefile .dbf component? (I saw some posts to this effect in the archives from November) I will not be in the office on Friday, so if I do not reply to messages by the end of today I will have to get to them on Monday. ------------------------------------------------------- Stephen Luzny GIS Analyst, Geomatics Unit Saskatchewan Agriculture and Food Ph: 306 787-5167 Fax: 306 787-0276 Email: SLuzny at agr.gov.sk.ca From steve.lime at dnr.state.mn.us Fri Mar 24 13:04:51 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 24 Mar 2000 15:04:51 -0600 Subject: symbolization based on joined attributes? Message-ID: With the standard package the attributes must be part of the shapefile. You can get around that by using MapScript. and processing shapes in turn within the scripting environment. Hopefully most base layers would not have to handled this way so the performance hit wouldn't be that bad. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Luzny, Stephen" 03/23/00 02:31PM >>> Hello, I have not looked at Mapserver in depth yet, but need to determine if it will be suitable for the application we have in mind. The application would allow a user to input values at the web page and have those values determine which data to attach to the shapefile. Based on the variables, the appropriate legend, title, etc would be selected/constructed for the map as well. This would allow the creation of a large number of different maps with relatively little work being done. We want to avoid having a seperate file or set of files for each individual map to be produced (that is currently the case with ArcView IMS and likely to be true with ArcIMS as well). Is there a mechanism whereby attribute data residing an a database (eg. MS Access) can be joined to a shapefile, which is then used in the creation of a custom map on the fly? (the legend would apply to the joined attributes) OR Does the data have to be merged with the shapefile .dbf component? (I saw some posts to this effect in the archives from November) I will not be in the office on Friday, so if I do not reply to messages by the end of today I will have to get to them on Monday. ------------------------------------------------------- Stephen Luzny GIS Analyst, Geomatics Unit Saskatchewan Agriculture and Food Ph: 306 787-5167 Fax: 306 787-0276 Email: SLuzny at agr.gov.sk.ca From bfischer at usgs.gov Mon Mar 27 08:01:45 2000 From: bfischer at usgs.gov (bfischer at usgs.gov) Date: Mon, 27 Mar 2000 10:01:45 -0600 Subject: How to compile mapserv for NT. Message-ID: Hello everyone, I was wondering if anyone has some detailed instructions on how to compile mapserver for the NT with FreeType and LibTiff. We have Microsoft's Visual C++ compiler. I figured it was about time I learned how to compile mapserver. This is kind of new for me, so any help would be appreciated. Thanks, Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 From bfraser at geoanalytic.com Mon Mar 27 08:49:51 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 27 Mar 2000 09:49:51 -0700 Subject: How to compile mapserv for NT. References: Message-ID: <001f01bf980c$798b8740$390002c0@servo> Brian, Attached is a somewhat dated (and terse) list of instructions for compiling on NT. Hopefully it will get you started. Brent Fraser 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 ----- Original Message ----- From: To: Sent: Monday, March 27, 2000 9:01 AM Subject: How to compile mapserv for NT. > Hello everyone, > > I was wondering if anyone has some detailed instructions on how to compile > mapserver for the NT with FreeType and LibTiff. We have Microsoft's > Visual C++ compiler. I figured it was about time I learned how to compile > mapserver. This is kind of new for me, so any help would be appreciated. > > Thanks, > > Brian Fischer > bfischer at usgs.gov > USGS WRD > 2280 Woodale Dr. > Mounds View, MN > (612) 783-3133 > > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: building.txt URL: From assefa at dmsolutions.on.ca Mon Mar 27 09:59:26 2000 From: assefa at dmsolutions.on.ca (Assefa Yewondwossen) Date: Mon, 27 Mar 2000 12:59:26 -0500 Subject: Compile mapserver on WinNT Message-ID: <38DFA17E.9059B781@dmsolutions.on.ca> Hi, I have placed a zip file with necessary makefile and readme instructions to be able to compile mapserver on WinNT with the tiff and freetype extensions. http://www2.dmsolutions.on.ca/mapserver/ms_vc_makefiles_v3.3.009.zip Please read the file COMPILE_MAPSERVER.vc first so that you can have a general idea of what is needed to do the build. Hope It helps. Please let me know if there are other things. Best Regard. Assefa Y, assefa at dmsolutions.on.ca From mazur at geo.ucalgary.ca Mon Mar 27 03:32:24 2000 From: mazur at geo.ucalgary.ca (Mike Mazur) Date: Mon, 27 Mar 2000 03:32:24 -0800 Subject: msSaveImage error Message-ID: <38DF46C8.FE05D5ED@geo.ucalgary.ca> Hi there, I'm a new user and have just finished installing ms_3.3.009 on my Linux system. The install went off without a hitch but I am having a few problems with the demo file. I was able to fix most of them but I'm now presented with the following error, msSaveImage(): Unable to access file. (DEMO954150496700.gif) when I initialize from the demo_init.html. I've done a search through the archives but found nothing. Could it be that the script is trying to write the above-mentioned gif but having permission problems? Thanks, Mike Mazur From ddnebert at usgs.gov Mon Mar 27 14:50:22 2000 From: ddnebert at usgs.gov (Doug Nebert) Date: Mon, 27 Mar 2000 17:50:22 -0500 Subject: Compile mapserver on WinNT References: <38DFA17E.9059B781@dmsolutions.on.ca> Message-ID: <38DFE5AE.310682E6@usgs.gov> Anyone have a methodology for a compile of mapserv using the Cygnus gcc compiler for win32 or lcc compilers? Both are free C++ environments for the Windows environments... Or do we need to go patronize Redmond? I haven't done much with either of these but have experimented on some light programs using the gcc stuff. It allows ports of many UNIX programs destined for the gcc environment. -- Douglas D. Nebert Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From Banister at BANISTER.COM Mon Mar 27 16:01:51 2000 From: Banister at BANISTER.COM (Trevor Banister) Date: Mon, 27 Mar 2000 17:01:51 -0700 Subject: msSaveImage error Message-ID: <51BFCC79A3CCD311A2DD0800362C8E0301F6EF@banister4.conen.net> This looks like the path for saving images isn't writeable by Apache (usually the nobody account) a quick chown or chmod shoud do the trick Trevor Banister -----Original Message----- From: Mike Mazur [mailto:mazur at geo.ucalgary.ca] Sent: Monday, March 27, 2000 4:32 AM To: mapserver-users at lists.gis.umn.edu Subject: msSaveImage error Hi there, I'm a new user and have just finished installing ms_3.3.009 on my Linux system. The install went off without a hitch but I am having a few problems with the demo file. I was able to fix most of them but I'm now presented with the following error, msSaveImage(): Unable to access file. (DEMO954150496700.gif) when I initialize from the demo_init.html. I've done a search through the archives but found nothing. Could it be that the script is trying to write the above-mentioned gif but having permission problems? Thanks, Mike Mazur From nhv at cape.com Mon Mar 27 16:19:29 2000 From: nhv at cape.com (Norman Vine) Date: Mon, 27 Mar 2000 19:19:29 -0500 Subject: Compile mapserver on WinNT In-Reply-To: <38DFE5AE.310682E6@usgs.gov> Message-ID: <000201bf984b$4e23c740$8f37ba8c@nhv> Doug Nebert writes: > >Anyone have a methodology for a compile of mapserv using >the Cygnus gcc compiler for win32 or lcc compilers? mapserv compiled out of the box for me with Cygnus toolkit updated to use the gcc-2.95.2 compiler and the Dec 15 1999 dll and the /usr/local distribution from http://cygutils.netpedia.net/ I would imagine that the V1.0 cd distribution would work also. FWIW There is a pending release of a new Cygnus distribution that should work as well. I would recomend waiting for it if you do not have an augmented Cygnus system already. I did not try to compile the Perl version of mapscript but I did compile a Python version successfully. I would recommend the Perl distribition also from http://cygutils.netpedia.net/ for those trying to compile a Cygnus Perl mapscript. Norman Vine From Banister at BANISTER.COM Mon Mar 27 21:23:30 2000 From: Banister at BANISTER.COM (Trevor Banister) Date: Mon, 27 Mar 2000 22:23:30 -0700 Subject: Projection + Index bug? Message-ID: <51BFCC79A3CCD311A2DD0800362C8E0301F6F1@banister4.conen.net> I've noticed that if a layer is projected, and there is a .qix file it shows up in the legend, but the vectors don't display at all. Renaming the .qix file to .qixtest or deleting it fixes the issue, but then the application runs slower without the indexing. Anyone else run into this issue? Trevor Banister Banister Consulting From ple at desolagroup.com Tue Mar 28 08:51:10 2000 From: ple at desolagroup.com (Peter Le) Date: Tue, 28 Mar 2000 11:51:10 -0500 Subject: TIFF support Message-ID: <1121AFB51B9FD11192B100A0C93313864A60DE@DGMAIL> How do I enable TIFF support for my browser? i run nmake /f makefile.vc and got some compiler errors. Thanks for your help From assefa at dmsolutions.on.ca Tue Mar 28 10:25:28 2000 From: assefa at dmsolutions.on.ca (Assefa Yewondwossen) Date: Tue, 28 Mar 2000 13:25:28 -0500 Subject: Fwd: TIFF support References: <20000328180854.14929.qmail@web1302.mail.yahoo.com> Message-ID: <38E0F918.1109A73D@dmsolutions.on.ca> Hi there, I am not sure at what stage you are (meanning if you already have your libtiff.lib build already). In any case the best thing I can do is to refer you to the zip files http://www2.dmsolutions.on.ca/mapserver/ms_vc_makefiles_v3.3.009.zip containing the makefiles necessary for mapserver to link properly with Tiff and Freetype librairies. I have added in this zip a file called COMPILE_MAPSERVER.vc with basic instructions on steps to follow. Perhaps a special note for those who do not want the freetype version but the libtiff, you have to edit the makefile.vc (the one in the main mapserver directory) and comment out any referenece to freetype library (all thinks related to TTF and gdft should be removed). If you still have a problem, please let me know what exactly are the errors. I have also put a mapserver.exe binary file with tiff and true type support for those who needs it. http://www2.dmsolutions.on.ca/mapserver/ms_3.3.009_win32.zip Hope it helps, Best Regards. Assefa Y, assefa at dmsolutions.on.ca > ------------------------------------------------------------------------ > > Subject: TIFF support > Date: Tue, 28 Mar 2000 11:51:10 -0500 > From: Peter Le > To: "'mapserver-users at lists.gis.umn.edu'" > > > How do I enable TIFF support for my browser? > i run nmake /f makefile.vc and got some compiler errors. > > Thanks for your help From bfischer at usgs.gov Tue Mar 28 12:27:27 2000 From: bfischer at usgs.gov (bfischer at usgs.gov) Date: Tue, 28 Mar 2000 14:27:27 -0600 Subject: Mapserver compiled with Microsoft Visual C++ Message-ID: I want to thank Brent Fraser and Assefa Yewondwossena for helping me with compiling mapserver for NT with freetype and libtiff. I'm sorry I did not try Brent's instructions, but they look like they would work just fine. I used Assefa's makefiles for Visual C++. For anyone else that is new to using Microsoft Visual C++, like myself. I think it might be important to add this to Assefa's step four: These are insturctions to compile Freetype: - Open Visual C++ - Open Workspace (File Menu) : ./freetype/lib/arc/win32/freetype.dsw. It is a visual project file (containing all the refernece to the source code). - Once it is loaded you go in the menu Build and you should see Build freetype.lib. Select that and it is supposed to build for you the library. I beleive the libaray will be build in the directory ./freetype/lib/arch/win32/debug/freetype.lib. - Once it is build, copy this library in the directory ./freetype/lib; this is because the makefiles from mapserver that I sent expect to find the freetype.lib in that directory. - Last step is to build mapserver using the command nmake /f makefile.vc in the mapserver main directory. There is also a readme.vc file for reference. Thanks again, Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 From devoilp at dpi.qld.gov.au Tue Mar 28 14:49:49 2000 From: devoilp at dpi.qld.gov.au (Peter deVoil) Date: Wed, 29 Mar 2000 08:49:49 +1000 Subject: Projection + Index bug? References: <51BFCC79A3CCD311A2DD0800362C8E0301F6F1@banister4.conen.net> Message-ID: <38E1370D.DF4326BE@dpi.qld.gov.au> Hi, I had similar experiences with 3.3.006 when rendering an image (with no projection) at anything other than full extents. I didn't pursue it much further than deleting the .qix files. I was using a WinNT/mingw32 platform. Yours PdeV. Trevor Banister wrote: > > I've noticed that if a layer is projected, and there is a .qix file it shows > up in the legend, but the vectors don't display at all. Renaming the .qix > file to .qixtest or deleting it fixes the issue, but then the application > runs slower without the indexing. > > Anyone else run into this issue? > > Trevor Banister > Banister Consulting From bfischer at usgs.gov Tue Mar 28 15:18:32 2000 From: bfischer at usgs.gov (bfischer at usgs.gov) Date: Tue, 28 Mar 2000 17:18:32 -0600 Subject: Dynamic Expressions Message-ID: Hi, I am using URL's to change map file parameters on-the-fly, so far it has worked great, but I tried changing the layer data parameter and it does not seem to change it. Does anyone know if this a supported on-the-fly change? Here is part of the URL that changes the mapfile parameter: &map_layer_1_data=39/minor39 Thanks, Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 From carlson14 at llnl.gov Tue Mar 28 20:53:12 2000 From: carlson14 at llnl.gov (John Carlson) Date: Tue, 28 Mar 2000 20:53:12 -0800 Subject: useful script for beginners Message-ID: <4.2.0.58.20000328204710.01179340@popcorn.llnl.gov> I too has the same problem with extents and setting up my first map file. I used dump.pl, but that didn't help enough, so I wrote a perl script: #!/usr/local/bin/perl use mapscript; # replace water with the name of your shape file $file = "water"; $shapefile = new shapefileObj($file, -1) or die "Unable to open shapefile $file"; $ro = new rectObj(); $result = $shapefile->getExtent(-1, $ro); print "$ro->{minx} $ro->{miny} $ro->{maxx} $ro->{maxy}\n"; From fsvpss at eng.chula.ac.th Wed Mar 29 03:43:52 2000 From: fsvpss at eng.chula.ac.th (Phisan Santitamnont) Date: Wed, 29 Mar 2000 18:43:52 +0700 Subject: example for queryResultObj Message-ID: <38E1EC78.E346AE73@eng.chula.ac.th> Dear Steve and co., i am looking for a search example which should include using 'queryResultObj' who can kindly provide me such thing. Regards, -- Phisan Santitamnont, Dr.-Ing. Survey Engineering Department Chulalongkorn University Pathumwan Rd, Bangkok 10330 Tel. +66 (2) 218 66 61 Fax. +66 (2) 218 66 53 mailto:fsvpss at eng.chula.ac.th http://www.sv.eng.chula.ac.th/Staff/Phisan From pnaciona at gis.umn.edu Wed Mar 29 07:41:23 2000 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Wed, 29 Mar 2000 09:41:23 -0600 Subject: mapserver on NT with PNG support Message-ID: I just successfully compiled (and tested, but not extensively) mapserver with gd-1.8 on NT. This one also uses tiff and freetype. The resulting executable is fairly large (1 MB) but if anyone prefers PNG over GIF this is the only option at the moment. If anyone is interested, let me know. Pericles S. Nacionales pnaciona at gis.umn.edu From steve.lime at dnr.state.mn.us Wed Mar 29 12:35:46 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 29 Mar 2000 14:35:46 -0600 Subject: Fwd: arcview color definition Message-ID: An embedded message was scrubbed... From: Markus Spring Subject: arcview color definition Date: Wed, 29 Mar 2000 17:19:52 +0200 Size: 1388 URL: From steve.lime at dnr.state.mn.us Wed Mar 29 12:43:53 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 29 Mar 2000 14:43:53 -0600 Subject: Projection + Index bug? Message-ID: Greetings: I found the bug that was causing this problem. It's fixed in 3.3.010 which should be released shortly. It makes indexes useless when MapServer is compiled with proj.4 enabled. s. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Peter deVoil 03/28/00 04:49PM >>> Hi, I had similar experiences with 3.3.006 when rendering an image (with no projection) at anything other than full extents. I didn't pursue it much further than deleting the .qix files. I was using a WinNT/mingw32 platform. Yours PdeV. Trevor Banister wrote: > > I've noticed that if a layer is projected, and there is a .qix file it shows > up in the legend, but the vectors don't display at all. Renaming the .qix > file to .qixtest or deleting it fixes the issue, but then the application > runs slower without the indexing. > > Anyone else run into this issue? > > Trevor Banister > Banister Consulting From bowenj at peligroso.gaiaenv.com Wed Mar 29 14:58:35 2000 From: bowenj at peligroso.gaiaenv.com (Jim T. Bowen (GAIA Consultants Inc.)) Date: Wed, 29 Mar 2000 15:58:35 -0700 Subject: Fwd: arcview color definition References: Message-ID: <38E28A9B.91598F7A@gaiaenv.com> Hi Markus, Not too clear what you are attempting to do, but here is the essense of extracting RGB values from ODB/AVL storage format, according to our Avenue-guy. I assume you have ArcView (I wasn't sure from your message). Script1 essentially creates an ODB with color values in it and then Script2 extracts them...hope this gets you started. ///////////////////////////////////////////////////////// 'Script Number 1: 'Writes colors out to an ODB. Colors are stored in ODB in hexadecimal format. theODBFN = "$TEMP\colors.odb".AsFilename theODB = ODB.Make(theODBFN) the1stColor = Color.Make the1stColor.SetRGBList({212, 155, 96}) theODB.Add(the1stColor) the2ndColor = Color.Make the2ndColor.SetRGBList({21, 15, 9}) theODB.Add(the2ndColor) theODB.Commit 'Script Number 2: 'Reads colors in from the ODB created in Script Number 1. Displays the RGB values (GetRGBList) in a MsgBox. theODBFN = "$TEMP\colors.odb".AsFilename theODB = ODB.Open(theODBFN) the1stColor = theODB.Get(0) the2ndColor = theODB.Get(1) MsgBox.ListAsString(the1stColor.GetRGBList, "First Color in ODB", "Color") MsgBox.ListAsString(the2ndColor.GetRGBList, "Second Color in ODB", "Color") ///////////////////////////////////////////////////////// Cheers, Jim Stephen Lime wrote: > > Subject: arcview color definition > Date: Wed, 29 Mar 2000 17:19:52 +0200 > From: Markus Spring > Reply-To: Markus.Spring at mindless.com > To: mapserver-info at lists.gis.umn.edu > > I am trying to convert ARCVIEW ODB-Format Color definition like > > Red: 0x8a38 > Green: 0xe385 > Blue: 0x3166 > > to Mapserver-Mapfile format, but without reasonable results. > Any help would be appreciated > > regards - markus spring From steve.lime at dnr.state.mn.us Thu Mar 30 09:24:06 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 30 Mar 2000 11:24:06 -0600 Subject: example for queryResultObj Message-ID: Attached a snippet for a area of interest search. It takes an extent and a layer name and searches that layer. Then, a particular atttibute is pulled into a list using the XBase module. Works great. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Phisan Santitamnont 03/29/00 05:43AM >>> Dear Steve and co., i am looking for a search example which should include using 'queryResultObj' who can kindly provide me such thing. Regards, -- Phisan Santitamnont, Dr.-Ing. Survey Engineering Department Chulalongkorn University Pathumwan Rd, Bangkok 10330 Tel. +66 (2) 218 66 61 Fax. +66 (2) 218 66 53 mailto:fsvpss at eng.chula.ac.th http://www.sv.eng.chula.ac.th/Staff/Phisan -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: snippet.txt URL: From rgu at ems.muenchen.de Fri Mar 31 02:53:10 2000 From: rgu at ems.muenchen.de (Markus Spring) Date: Fri, 31 Mar 2000 12:53:10 +0200 Subject: truetype symbols in legend do not render Message-ID: <38E48396.E9C66661@ems.muenchen.de> Hi I am displaying a point layer with truetype symbols which renders fine as map image. In the legend I only get rendered the class NAME, but the appropriate symbol ist not drawn. Any help would be appreciated. Kind regards - markus From steve.lime at dnr.state.mn.us Fri Mar 31 07:31:04 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 31 Mar 2000 09:31:04 -0600 Subject: truetype symbols in legend do not render Message-ID: This can't be done as the current code sits. The truetype symbols are simply annotation (ie. like a city name) and are not used in legend building. The symbol set would need to be extended to accomodate truetype fonts for this to work at all. It's doable, for markers anyway but just hasn't been done yet. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Markus Spring 03/31/00 04:53AM >>> Hi I am displaying a point layer with truetype symbols which renders fine as map image. In the legend I only get rendered the class NAME, but the appropriate symbol ist not drawn. Any help would be appreciated. Kind regards - markus From SLuzny at agr.gov.sk.ca Fri Mar 31 09:12:54 2000 From: SLuzny at agr.gov.sk.ca (Luzny, Stephen) Date: Fri, 31 Mar 2000 11:12:54 -0600 Subject: Mapscript on NT? Message-ID: <5D0EBFB882D1D111A90800A0C99DB2E7069E3FF2@SAF1> Mapserver users: I am using a pre-compiled version of Mapserver for NT (Thanks to Assefa Yewondwossen and Brent Fraser) and it runs fine. Now I need to get Mapscript working. How do I do this? If I try to compile Mapserver from scratch using CygWin B20 I get the following errors (I did not modify the Makefile in any way): ========================= cd gd-1.2; make; cd .. make[1]: Nothing to be done for `all'. cd gdft; make CC=gcc GD=-DUSE_GD_1_2; cd .. gcc -c -Wall -DUSE_GD_1_2 -I../gd-1.2 -O gdttf.c gdttf.c:14: freetype.h: No such file or directory make[1]: *** [gdttf.o] Error 1 gcc -c -Wall -O -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TTF -DUSE_TIFF -DUSE_GD_1_2 -I./gd-1.2 -I./gdft mapbits.c D_1_2 -I./gd-1.2 -I./gdft mapbits.c In file included from mapbite.c:1: map.h:35: regex.h: No such file or directory make: *** [mapbits.o] Error 1 ========================= Because I have not gotten Mapserver to compile yet, running Makefile.PL gives errors. ------------------------------------------------------- Stephen Luzny GIS Analyst, Geomatics Unit Saskatchewan Agriculture and Food Ph: 306 787-5167 Fax: 306 787-0276 Email: SLuzny at agr.gov.sk.ca From nhv at cape.com Fri Mar 31 12:01:22 2000 From: nhv at cape.com (Norman Vine) Date: Fri, 31 Mar 2000 15:01:22 -0500 Subject: Mapscript on NT? In-Reply-To: <5D0EBFB882D1D111A90800A0C99DB2E7069E3FF2@SAF1> Message-ID: <000401bf9b4b$eaf8f560$1037ba8c@nhv> Stephen Luzny writes: > >If I try to compile Mapserver from scratch using CygWin B20 I get the >following errors (I did not modify the Makefile in any way): > >gdttf.c:14: freetype.h: No such file or directory You need to install the freetype library http://www.freetype.org/ >map.h:35: regex.h: No such file or directory You need to install the regex library get it from any gnu archive http://www.gnu.org Norman From SLuzny at agr.gov.sk.ca Fri Mar 31 14:05:46 2000 From: SLuzny at agr.gov.sk.ca (Luzny, Stephen) Date: Fri, 31 Mar 2000 16:05:46 -0600 Subject: Mapscript on NT - already compiled? Message-ID: <5D0EBFB882D1D111A90800A0C99DB2E7069E3FF3@SAF1> Hi again, Thanks to all who assisted me regarding compiling Mapserver with gcc (Cygwin B20) on Win NT. Unfortunately, I still do not have it working. Most likely the problems are simple, but I have not had much experience with these issues. Has anyone already compiled MapScript for NT? At this stage, I need to determine if Mapserver will be suitable for our purposes. A pre-compiled Mapscript would save me much time. I am using ActivePerl 613 (based on Perl v5.6.0). ------------------------------------------------------- Stephen Luzny GIS Analyst, Geomatics Unit Saskatchewan Agriculture and Food Ph: 306 787-5167 Fax: 306 787-0276 Email: SLuzny at agr.gov.sk.ca