From frank.koormann at intevation.de Thu Mar 1 00:12:12 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Thu, 1 Mar 2001 09:12:12 +0100 Subject: Lurker strikes! Example sites? In-Reply-To: ; from raanders@tincan.org on Mit, Feb 28, 2001 at 09:07:38 -0800 References: Message-ID: <20010301091212.A1229@abnoba.intevation.de> Hi Rod, * Roderick A. Anderson (raanders at tincan.org) [010301 06:29]: > The project is to provide online maps (go figure) of public internet > access locations for Spokane County, Washington, USA. We'll add mass > transit (bus stops) information so those needing access can get their > without owning a motor vehicle. > > If I understand correctly how MapServer works I can use ArcInfo shape > files for the base map; streets etc. Then I need other shape files to be > used as layers (or can they be in the main file) to hold the access > locations and bus stops. The shape format concept is to have one shape for each layer (a shape consists of more than one file 8). So you would need a shape for - streets (lines) - bus stops (points) - locations (points) and probably some more to have "nicer" representation of the maps. Also a georeferenced image might be used for the background. > I'm also a little fuzzy on whether I have to have the same area - the > county - in many different files of if MapServer can use one file and zoom > in to portions of it. With shapes it is possible to have one shape file and display it at different zoom levels. For georeferenced images different files at different scales are useful. > E.g. a map of the United States and zoom to a state > (perhaps showing the location of the state capital) or 49 files one of the > US and one for each of the states. That would imply one shape with the state polygons and one with the capitals. You could at e.g. a shape with all highways or cities with population > 500 000 or so to be display when zooming in. > > Enough rambling. If this makes sense and/or anyone has the time to reply > it will be appreciated. Done. :) Regards, Frank -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ From berend.veldkamp at aris.nl Thu Mar 1 01:49:11 2001 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Thu, 01 Mar 2001 10:49:11 +0100 Subject: dashed symbols in 3.4 Message-ID: <3A9E1B17.BD1F7AB8@aris.nl> Hi, I saw this question before in the list, but found no answer. How to do a dashed line symbol without the STYLED symbol type? Berend -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From raanders at tincan.org Thu Mar 1 08:18:42 2001 From: raanders at tincan.org (Roderick A. Anderson) Date: Thu, 1 Mar 2001 08:18:42 -0800 (PST) Subject: Lurker strikes! Example sites? In-Reply-To: <20010301091212.A1229@abnoba.intevation.de> Message-ID: On Thu, 1 Mar 2001, Frank Koormann wrote: Thanks Frank. This explains alot. I also got a pointer to a tutorial (which I couldn't seem to find from the MapServer web site.) 'http://terrasip.gis.umn.edu/projects/tutorial/' Rod -- From steve.lime at dnr.state.mn.us Thu Mar 1 08:29:49 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 01 Mar 2001 10:29:49 -0600 Subject: dashed symbols in 3.4 Message-ID: Here's an example that allows you to create a scalable dashed line: SYMBOL NAME "dashed-line" TYPE ELLIPSE POINT 1 1 END FILLED STYLE 10 10 END END The STYLE option sets up a dashing pattern and can be applied to just about any symbol used for a line. The "10 10" means 10 pixels on, then 10 off. You can set up some interesting patterns with more complex styles like: STYLE 10 10 2 2 2 2 END Have fun experimenting. Steve >>> Berend Veldkamp 03/01/01 03:49AM >>> Hi, I saw this question before in the list, but found no answer. How to do a dashed line symbol without the STYLED symbol type? Berend -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Mar 1 09:45:55 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 1 Mar 2001 12:45:55 -0500 Subject: dashed symbols in 3.4 Message-ID: <2951561DB3DDD0118FEC00805FFE980504942284@s5-ccr-r1> While on this topic, I'm having a problem with shadesets in a pre-3.4 version. I'm trying to do diagonal lines, but with no success, anytime I get something that isn't vertical or horizontal, it just looks "shaded". I thought: 0 1 1 0 woudl od it, but it doesn't look like it ... To be honest I'm trying to replicate the exact "fills" from MapObjects in order to convert an application to mapserver :) Anybody ? Thanks ! J.F. > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Thursday, March 01, 2001 11:29 AM > To: berend.veldkamp at aris.nl; mapserver-users at lists.gis.umn.edu > Subject: Re: dashed symbols in 3.4 > > Here's an example that allows you to create a scalable dashed line: > > SYMBOL > NAME "dashed-line" > TYPE ELLIPSE > POINT 1 1 END > FILLED > STYLE 10 10 END > END > > The STYLE option sets up a dashing pattern and can be applied to just > about > any symbol used for a line. The "10 10" means 10 pixels on, then 10 off. > You can > set up some interesting patterns with more complex styles like: > > STYLE 10 10 2 2 2 2 END > > Have fun experimenting. > > Steve > > >>> Berend Veldkamp 03/01/01 03:49AM >>> > Hi, > I saw this question before in the list, but found no answer. > How to do a dashed line symbol without the STYLED symbol type? > > Berend > > -- > _________________________________________________ > > ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht > tel. +31 30 2769180 - fax. +31 30 2733578 > URL: http://www.aris.nl/ > _________________________________________________ > > > From steve.lime at dnr.state.mn.us Thu Mar 1 10:15:53 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 01 Mar 2001 12:15:53 -0600 Subject: dashed symbols in 3.4 Message-ID: What SIZE are you using? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 03/01/01 11:45AM >>> While on this topic, I'm having a problem with shadesets in a pre-3.4 version. I'm trying to do diagonal lines, but with no success, anytime I get something that isn't vertical or horizontal, it just looks "shaded". I thought: 0 1 1 0 woudl od it, but it doesn't look like it ... To be honest I'm trying to replicate the exact "fills" from MapObjects in order to convert an application to mapserver :) Anybody ? Thanks ! J.F. > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Thursday, March 01, 2001 11:29 AM > To: berend.veldkamp at aris.nl; mapserver-users at lists.gis.umn.edu > Subject: Re: dashed symbols in 3.4 > > Here's an example that allows you to create a scalable dashed line: > > SYMBOL > NAME "dashed-line" > TYPE ELLIPSE > POINT 1 1 END > FILLED > STYLE 10 10 END > END > > The STYLE option sets up a dashing pattern and can be applied to just > about > any symbol used for a line. The "10 10" means 10 pixels on, then 10 off. > You can > set up some interesting patterns with more complex styles like: > > STYLE 10 10 2 2 2 2 END > > Have fun experimenting. > > Steve > > >>> Berend Veldkamp 03/01/01 03:49AM >>> > Hi, > I saw this question before in the list, but found no answer. > How to do a dashed line symbol without the STYLED symbol type? > > Berend > > -- > _________________________________________________ > > ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht > tel. +31 30 2769180 - fax. +31 30 2733578 > URL: http://www.aris.nl/ > _________________________________________________ > > > From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Mar 1 10:37:53 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 1 Mar 2001 13:37:53 -0500 Subject: dashed symbols in 3.4 Message-ID: <2951561DB3DDD0118FEC00805FFE980504942285@s5-ccr-r1> Doh ! That did it :) I realized it was probably a size issue, but I was trying to fix it by saying: 0 5 5 0 for instance ... Great, thanks a bunch ! J.F. > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Thursday, March 01, 2001 1:15 PM > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; > mapserver-users at lists.gis.umn.edu > Subject: RE: dashed symbols in 3.4 > > What SIZE are you using? > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Doyon, Jean-Francois" 03/01/01 > 11:45AM >>> > While on this topic, I'm having a problem with shadesets in a pre-3.4 > version. > > I'm trying to do diagonal lines, but with no success, anytime I get > something > that isn't vertical or horizontal, it just looks "shaded". > > I thought: > > 0 1 > 1 0 > > woudl od it, but it doesn't look like it ... > > To be honest I'm trying to replicate the exact "fills" from MapObjects in > order to > convert an application to mapserver :) > > Anybody ? > > Thanks ! > J.F. > > > ---------- > > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > > Sent: Thursday, March 01, 2001 11:29 AM > > To: berend.veldkamp at aris.nl; mapserver-users at lists.gis.umn.edu > > Subject: Re: dashed symbols in 3.4 > > > > Here's an example that allows you to create a scalable dashed line: > > > > SYMBOL > > NAME "dashed-line" > > TYPE ELLIPSE > > POINT 1 1 END > > FILLED > > STYLE 10 10 END > > END > > > > The STYLE option sets up a dashing pattern and can be applied to just > > about > > any symbol used for a line. The "10 10" means 10 pixels on, then 10 off. > > You can > > set up some interesting patterns with more complex styles like: > > > > STYLE 10 10 2 2 2 2 END > > > > Have fun experimenting. > > > > Steve > > > > >>> Berend Veldkamp 03/01/01 03:49AM >>> > > Hi, > > I saw this question before in the list, but found no answer. > > How to do a dashed line symbol without the STYLED symbol type? > > > > Berend > > > > -- > > _________________________________________________ > > > > ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht > > tel. +31 30 2769180 - fax. +31 30 2733578 > > URL: http://www.aris.nl/ > > _________________________________________________ > > > > > > > From Michael.Hearne at noaa.gov Fri Mar 2 06:27:55 2001 From: Michael.Hearne at noaa.gov (Michael Hearne) Date: Fri, 02 Mar 2001 09:27:55 -0500 Subject: problems compiling mapscript for perl Message-ID: <3A9FADEB.EB0CCCC4@noaa.gov> In trying to compile mapscript for use with Perl, I get the following error: ld: fatal: too many symbols require `small' PIC references: have 2132, maximum 2048 -- recompile some modules -K PIC. I'm running SunOS 5.7, with gcc version 2.95.2 and mapserver version 3.3.011. Does anyone know what this error means? -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From berend.veldkamp at aris.nl Fri Mar 2 06:29:31 2001 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Fri, 02 Mar 2001 15:29:31 +0100 Subject: Dynamic symbols in php mapscript Message-ID: <3A9FAE4B.FBFEB0D1@aris.nl> Hi, since I can put a reference to an image file in a mapfile (SYMBOL "sym/marker.gif"), can I also do this in mapscript? i.e. $layerclass = $layer->getClass(0); $layerclass->set ("symbol", "sym/marker.gif"); or $layerclass->set ("symbolname", "sym/marker.gif"); When I try this, I don't get an error, but I don't see any symbols either... Berend -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From jrpatton at northcoast.com Fri Mar 2 10:40:13 2001 From: jrpatton at northcoast.com (Jason R. Patton) Date: Fri, 02 Mar 2001 10:40:13 -0800 Subject: humboldt bay onlinegis almost ready Message-ID: <3A9FE90D.ACA512D8@northcoast.com> greetings all, i will be "releasing" the humboldt bay gis web site soon. i do have a few problems i am ironing out: 1. the reference map on the following page does not show a complete rectangle. is there a way to make the line thicker? (i am a very basic user, so i hope thgis is a simple fix) http://humboldtbay.cnrs.humboldt.edu/cgi-bin/mapserv?map=..%2Fhtdocs%2Fhumbay%2Fhumbay.map&imgext=386893.661217+4502069.230769+413932.122755+4531469.230769&layer=marsh93utm&layer=lotide93utm&layer=hitideutm&layer=twenty93utm&layer=chanbasinutm&zoom=10&img.x=319&img.y=281 if this link does not work, try (a) going to http://humboldtbay.cnrs.humboldt.edu (b) clicking on "onlineGIS" on the left (c) selecting "zoom in x times" (d) click on the map (e) notice the box in the reference map 2. i don't think i have any other technical questions at this point. thanks , jay From steve.lime at dnr.state.mn.us Fri Mar 2 11:01:49 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 02 Mar 2001 13:01:49 -0600 Subject: humboldt bay onlinegis almost ready Message-ID: There's no way to make it thicker. The reason it's a partial box is that the "real" reference image is far larger (in netscape right click on it and open the image in another window to see what I mean) and due to resampling to the smaller size you're loosing pixels. The solution is to make your base reference map the size you want for output to start with. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Jason R. Patton" 03/02/01 12:40PM >>> greetings all, i will be "releasing" the humboldt bay gis web site soon. i do have a few problems i am ironing out: 1. the reference map on the following page does not show a complete rectangle. is there a way to make the line thicker? (i am a very basic user, so i hope thgis is a simple fix) http://humboldtbay.cnrs.humboldt.edu/cgi-bin/mapserv?map=..%2Fhtdocs%2Fhumbay%2Fhumbay.map&imgext=386893.661217+4502069.230769+413932.122755+4531469.230769&layer=marsh93utm&layer=lotide93utm&layer=hitideutm&layer=twenty93utm&layer=chanbasinutm&zoom=10&img.x=319&img.y=281 if this link does not work, try (a) going to http://humboldtbay.cnrs.humboldt.edu (b) clicking on "onlineGIS" on the left (c) selecting "zoom in x times" (d) click on the map (e) notice the box in the reference map 2. i don't think i have any other technical questions at this point. thanks , jay From m.meier at spiekermann.de Fri Mar 2 21:39:56 2001 From: m.meier at spiekermann.de (Manfred Meier) Date: Sat, 03 Mar 2001 06:39:56 +0100 Subject: humboldt bay onlinegis almost ready References: Message-ID: <3AA083AB.A7735ED4@spiekermann.de> Hello, I'm a newcomer to mapserver too. So I'm looking continously into this list. The actual problem I do not understand: What rectangle is meant? The black one around the whole reference map which upper left corner is missing, or the little blue one which marks the zoomed part of the map. This blue one is complete on my browser. Thank you Manfred Meier Stephen Lime schrieb: > There's no way to make it thicker. The reason it's a partial box is that the "real" reference image > is far larger (in netscape right click on it and open the image in another window to see what I > mean) and due to resampling to the smaller size you're loosing pixels. The solution is to make > your base reference map the size you want for output to start with. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Jason R. Patton" 03/02/01 12:40PM >>> > greetings all, > > i will be "releasing" the humboldt bay gis web site soon. i do have a > few problems i am ironing out: > > 1. the reference map on the following page does not show a complete > rectangle. is there a way to make the line thicker? (i am a very basic > user, so i hope thgis is a simple fix) > > http://humboldtbay.cnrs.humboldt.edu/cgi-bin/mapserv?map=..%2Fhtdocs%2Fhumbay%2Fhumbay.map&imgext=386893.661217+4502069.230769+413932.122755+4531469.230769&layer=marsh93utm&layer=lotide93utm&layer=hitideutm&layer=twenty93utm&layer=chanbasinutm&zoom= > if this link does not work, try (a) going to > > http://humboldtbay.cnrs.humboldt.edu > > (b) clicking on "onlineGIS" on the left > (c) selecting "zoom in x times" > (d) click on the map > (e) notice the box in the reference map > > 2. i don't think i have any other technical questions at this point. > > thanks , jay From aspaeter at hit.handshake.de Sat Mar 3 03:22:29 2001 From: aspaeter at hit.handshake.de (Achim Spaeter) Date: Sat, 3 Mar 2001 12:22:29 +0100 Subject: subscribe Message-ID: <000001c0a3e1$a9f24590$f1614dc2@achim> subscribe aspaeter at hit.handshake.de From bertha_bonita at yahoo.com Sat Mar 3 11:54:31 2001 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Sat, 3 Mar 2001 11:54:31 -0800 (PST) Subject: One Question About LEGEND Message-ID: <20010303195431.13810.qmail@web4203.mail.yahoo.com> Hi Somebody can explain me what is mean the second line in this legend? LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END Thanks! ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From Milton.E.Hill at DFW.STATE.OR.US Sun Mar 4 01:23:12 2001 From: Milton.E.Hill at DFW.STATE.OR.US (Milton Hill) Date: Sun, 04 Mar 2001 01:23:12 -0800 Subject: How can I check my mapscript.tcl installation? Message-ID: Hi All, I'm trying to set up msworkbench and here's where I'm at: msedit.tcl runs msappwiz.tcl, msexplorer.tcl and msshapex.tcl don't I understand that msedit.tcl doesn't need mapscript so I'm inclined to conclude that my problem lies there... In case anyone is interested here's the error I get: rainbow{milt}12: msappwiz.tcl Error in startup script: couldn't load file "/usr/local/lib/MapscriptTcl1.0/libM apscript.so": ld.so.1: /usr/local/bin/wish: fatal: libttf.so.2: open failed: No such file or directory while executing "load /usr/local/lib/MapscriptTcl1.0/libMapscript.so" ("package ifneeded" script) invoked from within "package require Mapscript" (file "msappwiz.tcl" line 24) rainbow{milt}13: Any assistance or suggestions would be appreciated. I'm pretty new at this... Thanks! Milt From gismalaysia at hotmail.com Sun Mar 4 05:38:32 2001 From: gismalaysia at hotmail.com (GIS Malaysia) Date: Sun, 04 Mar 2001 21:38:32 +0800 Subject: Copyright notice at the lower left of the map image Message-ID: Hi, How does one 'stamp' a Copyright notice at the lower left of the map image such as "Data by XYZ Pte Ltd" ? I could use PHP image manipulation methods but I think it can be done in Mapscript. Thanks Nyon _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From don at dlsilvia.ne.mediaone.net Sun Mar 4 07:09:43 2001 From: don at dlsilvia.ne.mediaone.net (Don Silvia) Date: Sun, 04 Mar 2001 10:09:43 -0500 Subject: Undefined symbol when compiling mapscript for Perl Message-ID: <5.0.0.25.2.20010304093252.00aee318@ratbert> Hi, I'm having a problem compiling mapscript for Perl. I'm seeing the same problem as described by Chris Fuhrman in a previous post: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0003/msg00012.html I've tried this with both versions 3.4 and 3.3.011. I can compile the mapserv CGI and it works fine. I compile mapscript for Perl with no errors, but when I try to run one of the example programs, I get an error about undefined symbol: gdImageCreateFromGif: [don at ratbert progdev]$ dump.pl -file=doq_idx Can't load '/usr/local/lib/perl5/site_perl/5.6.0/i586-linux/auto/mapscript/mapscript.so' for module mapscript: /usr/local/lib/perl5/site_perl/5.6.0/i586-linux/auto/mapscript/mapscript.so: undefined symbol: gdImageCreateFromGif at /usr/local/lib/perl5/5.6.0/i586-linux/DynaLoader.pm line 200. Like Chris, I'm using the GD 1.2 version that comes with mapserver. Unlike him, however, I don't have any NFS mounts involved. I'm building this on Red Hat 6.2. I notice that the Makefile has '-DUSE_GD_1_3' in it, and when compiling the mapserv CGI, I get a warning: mapraster.c:548: warning: implicit declaration of function `gdImageCreateFromGif'. But as I said, the CGI works fine. Thanks, Don Silvia From morgan at hemgroup.com Sun Mar 4 09:32:19 2001 From: morgan at hemgroup.com (Morgan Covill) Date: Sun, 04 Mar 2001 11:32:19 -0600 Subject: 3.4 symbols file Message-ID: <3.0.32.20010304113217.02642d30@bitstream.net> Hi, Could someone please post the symbols.sym file for the ms_demo in the new 3.4 single symbolset format ? I seem to have done something wrong when concatenating. Thanks Morgan From tpoindex at nyx.net Sun Mar 4 10:20:46 2001 From: tpoindex at nyx.net (Tom Poindexter) Date: Sun, 4 Mar 2001 11:20:46 -0700 Subject: How can I check my mapscript.tcl installation? In-Reply-To: ; from Milton Hill on Sun, Mar 04, 2001 at 01:23:12AM -0800 References: Message-ID: <20010304112046.09763@nyx.net> On Sun, Mar 04, 2001 at 01:23:12AM -0800, Milton Hill wrote: > Hi All, > I'm trying to set up msworkbench and here's where I'm at: > msedit.tcl runs > msappwiz.tcl, msexplorer.tcl and msshapex.tcl don't > I understand that msedit.tcl doesn't need mapscript so I'm inclined to conclude that my problem lies there... msedit.tcl only uses mapscript conditionally - when you 'parse' your mapfile with mapscript. Otherwise, mapscript isn't loaded. > In case anyone is interested here's the error I get: > rainbow{milt}12: msappwiz.tcl > Error in startup script: couldn't load file "/usr/local/lib/MapscriptTcl1.0/libM > apscript.so": ld.so.1: /usr/local/bin/wish: fatal: libttf.so.2: open failed: No This problem is related to the libMapscript.so not being able to resolve the path to the libttf library at run time, and is fairly easy to fix. Your options are: 1. copy libtff.so to a 'system' load library, eg. /usr/lib 2. inform the loader where to find libtff.so: export LD_LIBRARY_PATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/libtff.so 3. modify your ld.so configure file to look for libtff.so in its directory. On Linux, this file is /etc/ld.so.conf, then run 'ldconfig' after making changes. Check the other libraries that libMapscript depends, by running ldd /usr/local/lib/MapscriptTcl1.0/libMapscript.* Look for libraries that are not resolved, and do the same. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From Milton.E.Hill at DFW.STATE.OR.US Sun Mar 4 14:32:06 2001 From: Milton.E.Hill at DFW.STATE.OR.US (Milton Hill) Date: Sun, 04 Mar 2001 14:32:06 -0800 Subject: mapsctipt and tcl followup Message-ID: Ack, My www email client died as I was sending this. I don't think the previous attempt posted - my apologies if it did. Tom, Thanks for your quick responses, I really appreciate it! Please bear with me - I know about enought to get into trouble but not enough to get out... In your answer you refer to "libtff" and my error contains "libttf" is that correct or is there a typo? I have nothing libtff*... I'm assuming libttf I had checked /usr/local/lib/MapscriptTcl1.0/libMapscript.* and others with ldd and at least thought I'd fixed those problems by adding /usr/local/lib to my .cshrc. THis at least made ldd report that the libraries are resolved. I'm using Solaris 2.6 on sparc. So, I tried ldd from the "sh" shell and noticed that ldd reported some errors, so I took your first suggestion and copied the libraries not found to /usr/lib. This fixed those problems BUT I still can't run the programs in question. The error looks like this now: rainbow{milt}16: !12 msappwiz.tcl Error in startup script: couldn't load file "/usr/local/lib/MapscriptTcl1.0/libM apscript.so": ld.so.1: /usr/local/bin/wish: fatal: relocation error: file /usr/l ib/libtiff.so: symbol __eprintf: referenced symbol not found while executing "load /usr/local/lib/MapscriptTcl1.0/libMapscript.so" ("package ifneeded" script) invoked from within "package require Mapscript" (file "msappwiz.tcl" line 24) rainbow{milt}17: Any suggestions? Thanks! Milt From ian at koskela.org Sun Mar 4 20:43:32 2001 From: ian at koskela.org (Ian) Date: Sun, 4 Mar 2001 20:43:32 -0800 (PST) Subject: new to mapserver Message-ID: I'm evaluating MapServer for a project to support users of a wireless TCP/IP network (Ricochet, not WAP). I would like to make a simply application where users can post messages to specific areas/points on a map. I use PHP primarily and do some perl as well. My questions are: 1) Is this realistic given your experience w/ MapServer? 2) Are street maps of major cities in the US available or will I have to make my own? Thanks for any opinions. Ian From frank.koormann at intevation.de Sun Mar 4 23:56:40 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Mon, 5 Mar 2001 08:56:40 +0100 Subject: One Question About LEGEND In-Reply-To: =?iso-8859-1?Q?=3C20010303195431=2E13810=2Eqmail=40web4203=2Email=2Eyaho?= =?iso-8859-1?Q?o=2Ecom=3E=3B_from_bertha=5Fbonita=40yahoo=2Ecom_on_Sam?= =?iso-8859-1?Q?=2C_M=E4r_03=2C_2001_at_11:54:31_-0800?= References: <20010303195431.13810.qmail@web4203.mail.yahoo.com> Message-ID: <20010305085640.A470@abnoba.intevation.de> Bertha, List, * bertha amalia serrato de la cruz (bertha_bonita at yahoo.com) [010303 21:29]: > Hi > Somebody can explain me what is mean the second line > in this legend? > > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP [...] I can not determine the version referenced by the Online-MapFile-Description: http://mapserver.gis.umn.edu/mapfile.html but the KEYSIZE keyword has the meaning of the SIZE keyword of the LEGEND object: size [x][y]: Size of symbol key boxes in pixels. Default is 20 by 10 Regards, Frank -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ From paul.jacobs at javel.nl Mon Mar 5 02:07:43 2001 From: paul.jacobs at javel.nl (Paul Jacobs) Date: Mon, 5 Mar 2001 11:07:43 +0100 Subject: 3.4 symbols file In-Reply-To: <3.0.32.20010304113217.02642d30@bitstream.net> References: <3.0.32.20010304113217.02642d30@bitstream.net> Message-ID: <01030511074302.01000@paul> Morgan, you can find the symbolset here http://www2.dmsolutions.ca/mapserver/dl/symbols-for-ms34.sym Paul On Sunday 04 March 2001 18:32, Morgan Covill wrote: > Hi, > Could someone please post the symbols.sym file for the ms_demo in the new > 3.4 single symbolset format ? I seem to have done something wrong when > concatenating. > Thanks > Morgan From Dennis.Hunter at jacobs.com Mon Mar 5 05:12:46 2001 From: Dennis.Hunter at jacobs.com (Hunter, Dennis) Date: Mon, 5 Mar 2001 08:12:46 -0500 Subject: No subject Message-ID: subscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: From aborruso at spaziogis.it Mon Mar 5 07:45:46 2001 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Mon, 5 Mar 2001 16:45:46 +0100 Subject: What's wrong? Message-ID: Dear all, I'm tryng to use PHP/Mapscript. It is astonishing me, but I have some (probably) stupid questions. I would like only to create an arc shapefile; I am able to create .shp file and .shx file, but not dbf. When I try to open this shapefile I have an error messagge. This is my code: $newshapefile=ms_newShapefileObj("try",MS_SHP_ARC); $newline=ms_newLineObj(); $newline->addXY(2420000,4200000); $newline->addXY(2440000,4230000); $newline->addXY(2460000,4245000); $newline->addXY(2480000,4260000); $newshape=ms_newShapeObj(MS_SHP_ARC); $newshape->add($newline); $newshapefile->addShape($newshape); $newshapefile->free(); What's wrong? Thank you very much, Andrea From steve.lime at dnr.state.mn.us Mon Mar 5 07:30:13 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 05 Mar 2001 09:30:13 -0600 Subject: Undefined symbol when compiling mapscript for Perl Message-ID: Many linux boxes come with GD-1.3 installed by default. I know this is the case on RedHat since that's what I develop with at home. I suspect that there are conflicting libraries are you're system. One fix is to move any GD libs in /usr/local/lib or /usr/lib to someplace else (temporarily). Re-run configure and build the mapserver and mapscript. Then replace the moved libs. That should work and fix things. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Don Silvia 03/04/01 09:09AM >>> Hi, I'm having a problem compiling mapscript for Perl. I'm seeing the same problem as described by Chris Fuhrman in a previous post: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0003/msg00012.html I've tried this with both versions 3.4 and 3.3.011. I can compile the mapserv CGI and it works fine. I compile mapscript for Perl with no errors, but when I try to run one of the example programs, I get an error about undefined symbol: gdImageCreateFromGif: [don at ratbert progdev]$ dump.pl -file=doq_idx Can't load '/usr/local/lib/perl5/site_perl/5.6.0/i586-linux/auto/mapscript/mapscript.so' for module mapscript: /usr/local/lib/perl5/site_perl/5.6.0/i586-linux/auto/mapscript/mapscript.so: undefined symbol: gdImageCreateFromGif at /usr/local/lib/perl5/5.6.0/i586-linux/DynaLoader.pm line 200. Like Chris, I'm using the GD 1.2 version that comes with mapserver. Unlike him, however, I don't have any NFS mounts involved. I'm building this on Red Hat 6.2. I notice that the Makefile has '-DUSE_GD_1_3' in it, and when compiling the mapserv CGI, I get a warning: mapraster.c:548: warning: implicit declaration of function `gdImageCreateFromGif'. But as I said, the CGI works fine. Thanks, Don Silvia From steve.lime at dnr.state.mn.us Mon Mar 5 07:36:35 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 05 Mar 2001 09:36:35 -0600 Subject: Copyright notice at the lower left of the map image Message-ID: It can be done at the map file level. Here's an example layer definition: LAYER NAME credits STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 4 396 END TEXT '© 2000 Minnesota DNR' END CLASS LABEL TYPE TRUETYPE FONT myriad_web_bold SIZE 8 ANTIALIAS COLOR 255 255 255 POSITION UR END END END It's done with inline features. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "GIS Malaysia" 03/04/01 07:38AM >>> Hi, How does one 'stamp' a Copyright notice at the lower left of the map image such as "Data by XYZ Pte Ltd" ? I could use PHP image manipulation methods but I think it can be done in Mapscript. Thanks Nyon _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From tpoindex at nyx.net Mon Mar 5 08:28:11 2001 From: tpoindex at nyx.net (Tom Poindexter) Date: Mon, 5 Mar 2001 09:28:11 -0700 Subject: mapsctipt and tcl followup In-Reply-To: ; from Milton Hill on Sun, Mar 04, 2001 at 02:32:06PM -0800 References: Message-ID: <20010305092811.58603@nyx.net> On Sun, Mar 04, 2001 at 02:32:06PM -0800, Milton Hill wrote: > In your answer you refer to "libtff" and my error contains "libttf" is that correct or is there a typo? I have nothing libtff*... I'm assuming libttf Yes, I mistyped 'libttf'. > Error in startup script: couldn't load file "/usr/local/lib/MapscriptTcl1.0/libM > apscript.so": ld.so.1: /usr/local/bin/wish: fatal: relocation error: file /usr/l > ib/libtiff.so: symbol __eprintf: referenced symbol not found > while executing > "load /usr/local/lib/MapscriptTcl1.0/libMapscript.so" This is a problem that sometimes arises when GCC and native compilers are used to compile various libraries, and GCC isn't involved in making the final link. The '__eprintf' is an object that only exists in GCC's gcclib.a. gcc will normally resolve that symbol, using 'ld' may not. Try the suggestion in the Mapscript/Tcl README: COMPILE PROBLEMS Some users have reported link or runtime errors, most notably when mapscript_wrap.c is compiled with gcc, but using ld to link the shared library. If you experience this problem, try re-running the configure script, adding the '--with-linker-cc' option to the configure command line. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From steve.lime at dnr.state.mn.us Mon Mar 5 07:46:59 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 05 Mar 2001 09:46:59 -0600 Subject: humboldt bay onlinegis almost ready Message-ID: Actually, both. Looks like Jason fixed it so the blue one is now fine. The black outline (or lack thereof) is missing in the raw reference map. In general, letting the browser resize meaningful images is a *bad* thing especially with line art due to resampling... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Manfred Meier" 03/02/01 11:39PM >>> Hello, I'm a newcomer to mapserver too. So I'm looking continously into this list. The actual problem I do not understand: What rectangle is meant? The black one around the whole reference map which upper left corner is missing, or the little blue one which marks the zoomed part of the map. This blue one is complete on my browser. Thank you Manfred Meier Stephen Lime schrieb: > There's no way to make it thicker. The reason it's a partial box is that the "real" reference image > is far larger (in netscape right click on it and open the image in another window to see what I > mean) and due to resampling to the smaller size you're loosing pixels. The solution is to make > your base reference map the size you want for output to start with. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Jason R. Patton" 03/02/01 12:40PM >>> > greetings all, > > i will be "releasing" the humboldt bay gis web site soon. i do have a > few problems i am ironing out: > > 1. the reference map on the following page does not show a complete > rectangle. is there a way to make the line thicker? (i am a very basic > user, so i hope thgis is a simple fix) > > http://humboldtbay.cnrs.humboldt.edu/cgi-bin/mapserv?map=..%2Fhtdocs%2Fhumbay%2Fhumbay.map&imgext=386893.661217+4502069.230769+413932.122755+4531469.230769&layer=marsh93utm&layer=lotide93utm&layer=hitideutm&layer=twenty93utm&layer=chanbasinutm&zoom= > if this link does not work, try (a) going to > > http://humboldtbay.cnrs.humboldt.edu > > (b) clicking on "onlineGIS" on the left > (c) selecting "zoom in x times" > (d) click on the map > (e) notice the box in the reference map > > 2. i don't think i have any other technical questions at this point. > > thanks , jay From Milton.E.Hill at DFW.STATE.OR.US Mon Mar 5 09:02:22 2001 From: Milton.E.Hill at DFW.STATE.OR.US (Milton Hill) Date: Mon, 05 Mar 2001 09:02:22 -0800 Subject: mapsctipt and tcl followup Message-ID: Tom, Thanks! That did it. I really appreciate your assistance. Milt Milt Hill GIS Program Coordinator Oregon Department of Fish & Wildlife 2501 SW First Avenue Portland, OR 97207 (503) 872-5255 x5583 fax (503) 872-5269 milton.e.hill at state.or.us >>> Tom Poindexter 03/05/01 08:28AM >>> On Sun, Mar 04, 2001 at 02:32:06PM -0800, Milton Hill wrote: > In your answer you refer to "libtff" and my error contains "libttf" is that correct or is there a typo? I have nothing libtff*... I'm assuming libttf Yes, I mistyped 'libttf'. > Error in startup script: couldn't load file "/usr/local/lib/MapscriptTcl1.0/libM > apscript.so": ld.so.1: /usr/local/bin/wish: fatal: relocation error: file /usr/l > ib/libtiff.so: symbol __eprintf: referenced symbol not found > while executing > "load /usr/local/lib/MapscriptTcl1.0/libMapscript.so" This is a problem that sometimes arises when GCC and native compilers are used to compile various libraries, and GCC isn't involved in making the final link. The '__eprintf' is an object that only exists in GCC's gcclib.a. gcc will normally resolve that symbol, using 'ld' may not. Try the suggestion in the Mapscript/Tcl README: COMPILE PROBLEMS Some users have reported link or runtime errors, most notably when mapscript_wrap.c is compiled with gcc, but using ld to link the shared library. If you experience this problem, try re-running the configure script, adding the '--with-linker-cc' option to the configure command line. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From don at dlsilvia.ne.mediaone.net Mon Mar 5 12:11:13 2001 From: don at dlsilvia.ne.mediaone.net (Don Silvia) Date: Mon, 05 Mar 2001 15:11:13 -0500 Subject: Undefined symbol when compiling mapscript for Perl In-Reply-To: Message-ID: <5.0.0.25.2.20010305151045.00a98990@ratbert> That did the trick! Thanks, Steve. Don Silvia At 09:30 AM Monday 3/5/2001, Stephen Lime wrote: >Many linux boxes come with GD-1.3 installed by default. I know this is the >case on RedHat >since that's what I develop with at home. I suspect that there are >conflicting libraries are >you're system. One fix is to move any GD libs in /usr/local/lib or >/usr/lib to someplace else >(temporarily). Re-run configure and build the mapserver and mapscript. >Then replace the >moved libs. That should work and fix things. > >Steve > >Stephen Lime >Internet Applications Analyst > >Minnesota DNR >500 Lafayette Road >St. Paul, MN 55155 >651-297-2937 > > >>> Don Silvia 03/04/01 09:09AM >>> >Hi, > >I'm having a problem compiling mapscript for Perl. I'm seeing the same >problem as described by Chris Fuhrman in a previous post: > >http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0003/msg00012.html > > >I've tried this with both versions 3.4 and 3.3.011. I can compile the >mapserv CGI and it works fine. I compile mapscript for Perl with no >errors, but when I try to run one of the example programs, I get an error >about undefined symbol: gdImageCreateFromGif: > >[don at ratbert progdev]$ dump.pl -file=doq_idx >Can't load >'/usr/local/lib/perl5/site_perl/5.6.0/i586-linux/auto/mapscript/mapscript.so' >for module mapscript: >/usr/local/lib/perl5/site_perl/5.6.0/i586-linux/auto/mapscript/mapscript.so: >undefined symbol: gdImageCreateFromGif at >/usr/local/lib/perl5/5.6.0/i586-linux/DynaLoader.pm line 200. > >Like Chris, I'm using the GD 1.2 version that comes with mapserver. Unlike >him, however, I don't have any NFS mounts involved. I'm building this on >Red Hat 6.2. > >I notice that the Makefile has '-DUSE_GD_1_3' in it, and when compiling the >mapserv CGI, I get a warning: mapraster.c:548: warning: implicit >declaration of function `gdImageCreateFromGif'. But as I said, the CGI >works fine. > >Thanks, > >Don Silvia From bertha_bonita at yahoo.com Mon Mar 5 16:03:45 2001 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Mon, 5 Mar 2001 16:03:45 -0800 (PST) Subject: Incorrect data type. Message-ID: <20010306000345.4481.qmail@web4207.mail.yahoo.com> Hi i'm modifiying the demo file geos_init.html because i need to have four boxes like " Select layers to display" (i need have the layer to display for category ) then, i copied the html portion who do that and modified it!. But now, don't work..!! When i click on the refresh query button tis error appear: getNumeric(): Incorrect data type. somebody can help me, please? ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From steve.lime at dnr.state.mn.us Tue Mar 6 06:00:24 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 06 Mar 2001 08:00:24 -0600 Subject: Fwd: WorkBrench Message-ID: -------------- next part -------------- An embedded message was scrubbed... From: Eric Tang Subject: WorkBrench Date: Tue, 6 Mar 2001 07:39:14 -0000 Size: 2853 URL: From ricmar at pro.via-rs.com.br Tue Mar 6 08:30:40 2001 From: ricmar at pro.via-rs.com.br (Ricardo Wagner Martins) Date: Tue, 06 Mar 2001 13:30:40 -0300 Subject: Symbol File error Message-ID: <3AA510B0.D739A91B@pro.via-rs.com.br> Dear all, I am using Mapserver 3.4 and PHP4. I altered the demo.map and symbols.sym file of ms_demo example but there are 4 symbols in the layer "roads" that gave me error in the command line SYMBOL: msLoadMap(): General error message Undefined symbol "us_highway_shield" in class 1 of layer roads. Thanks for any help. Here follows a part of my symbols.sym file: Symbol Type ELLIPSE Filled Points 1 1 END END Symbol Name 'interstate_shield' Type PIXMAP Image 'images/interstate.png' Transparent 7 END END Symbol Name 'us_highway_shield' Type PIXMAP Image 'images/ushwy.png' Transparent 1 END END Symbol Name 'state_highway_shield' Type PIXMAP Image 'images/sthwy.png' END END Symbol Name 'county_highway_shield' Type PIXMAP Image 'images/ctyhwy.png' Transparent 0 END END From morissette at dmsolutions.ca Tue Mar 6 11:27:14 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 06 Mar 2001 14:27:14 -0500 Subject: What's wrong? References: Message-ID: <3AA53A12.AF11EA4C@dmsolutions.ca> aborruso at spaziogis.it wrote: > > I am able to create .shp file and .shx file, but not dbf. When I try to > open this shapefile I have an error messagge. > This is my code: > > $newshapefile=ms_newShapefileObj("try",MS_SHP_ARC); > $newline=ms_newLineObj(); > $newline->addXY(2420000,4200000); > $newline->addXY(2440000,4230000); > $newline->addXY(2460000,4245000); > $newline->addXY(2480000,4260000); > $newshape=ms_newShapeObj(MS_SHP_ARC); > $newshape->add($newline); > $newshapefile->addShape($newshape); > $newshapefile->free(); > > What's wrong? > The shapeFileObj takes care only of the .SHP/.SHX files. You are responsible of creating the DBF file and adding the records to it. See mapserver/mapscript/php3/test_writeshape.phtml in the MapServer source distribution for an example. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From klinge at spektra.de Tue Mar 6 14:08:03 2001 From: klinge at spektra.de (Karl-Albrecht Klinge) Date: Tue, 6 Mar 2001 23:08:03 +0100 Subject: Changing size in Java applet Message-ID: <91531C2EF097D94ABD7C10E7E914D3C0020597@victoria.spektra.de> Hi everybody, we are using a java applet. we can change size and we are dynamically zooming with rectangles. (1) How can we get information about the map extent of the returned map e.g. minX, minY, maxX, maxY? (2) We have the cgi-reference. It does not give us any information about what combinations of parameters make up a possible request. (3) How can we use the 'post'-request? The script returns "null The script can only be used to decode form results." what ever this means Thanks in advance, Karl From fuerp at atlas.gis.univie.ac.at Wed Mar 7 01:53:17 2001 From: fuerp at atlas.gis.univie.ac.at (Christian Fuerpasz) Date: Wed, 07 Mar 2001 10:53:17 +0100 Subject: Problems with the Zoom Function of the PHP MapScript Module Message-ID: <3AA6050D.1CD14D3E@atlas.gis.univie.ac.at> Hello everybody! In my Application there appears a problem in the Zoom Function in one special Case, otherwise it works correct. I use the Mapserver 3.3.011, PHP Mapscript from DM Solutions and also the the Rosa Applet. When i use the zoom function it works almost correctly. I can use it by a single click or by drawing a Rectangle. Its not allowed to zoom in more then specified in the .map file. But this works only in the middle of the Map. When you use the Zoom Button and Zoom in with drawing a small rectangle very near the border of the Map i get a map in the bigest scale (which should be correct) but with the Mapextends outside the specified extends. Now i can see the background which should never be seen. When i use now the pan function in this black (from me in the .map file defined) background the map is replaced correctly so that the border of the map is the border of the image. In all other Functions the Zoom Function works correctly. I think the Solution of this ?Problem? can found in the PHP Map Script but I would be happy if you can give me some hints to develop a fast solution. An other Problem with the ROSA Applet is, that if you draw a Rectangle and first Click in the Map than move the mouse outside the Map and than release the Mouse Button you will get a Map which should not been drawn in this way. I tried to correct this, by setting the coordinates of the maxx and maxy to the maxextends of the Map but than I could suddenly zoom in over the given Min Scale which should also not appear. Also in this Point I hope to get some help from you. Thank you for your time. With best regards Christian Fuerpasz -- ________________________________________________________ Institut fuer Geographie der Universitaet Wien Kartografie und Geoinformation Deptartment of Geography and Regional Science University of Vienna Cartography and GIS Tel: (+43 1) 4277 48658 Fax: (+43 1) 4277 48649 E-Mail: mailto:fuerp at atlas.gis.univie.ac.at Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA WWW: http://www.gis.univie.ac.at/karto/ _______________________________________________________ From tomkralidis at hotmail.com Wed Mar 7 06:21:07 2001 From: tomkralidis at hotmail.com (Tom Kralidis) Date: Wed, 07 Mar 2001 09:21:07 -0500 Subject: large scale image tiling Message-ID: Hi, I have some ~40000 images, with corresponding world files. The data totals ~150MB. I would like to make all images served online as a single layer. I have checked ArcView's helpfiles on creating an image catalog, and found their imgcat.ave script. However, this means loading each image into a view, then running the script. Is a data product of this size feasible to create a layer for use in MapServer? Can MapServer take the tile index as an ASCII text file, or only .dbf? If yes, a simple Perl script should do it. Information or examples are appreciated. ..Tom _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Mar 7 06:22:41 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 7 Mar 2001 09:22:41 -0500 Subject: Problems with the Zoom Function of the PHP MapScript Module Message-ID: <2951561DB3DDD0118FEC00805FFE98050494229C@s5-ccr-r1> This sounds like a problem I found a while ago with that version of MapServer, it was giving me head aches at the poles and so on ... I would suggest you download the latest version and give it a try, if the problem is the same , it was fixed soon after 3.3.011 ... J.F. > ---------- > From: Christian Fuerpasz[SMTP:fuerp at atlas.gis.univie.ac.at] > Sent: Wednesday, March 07, 2001 4:53 AM > To: Mapserver > Subject: Problems with the Zoom Function of the PHP MapScript Module > > Hello everybody! > > In my Application there appears a problem in the Zoom Function in one > special Case, otherwise it works correct. > > I use the Mapserver 3.3.011, PHP Mapscript from DM Solutions and also > the the Rosa Applet. > When i use the zoom function it works almost correctly. I can use it by > a single click or by drawing a Rectangle. Its not allowed to zoom in > more then specified in the .map file. But this works only in the middle > of the Map. > > When you use the Zoom Button and Zoom in with drawing a small rectangle > very near the border of the Map i get a map in the bigest scale (which > should be correct) but with the Mapextends outside the specified > extends. > Now i can see the background which should never be seen. When i use now > the pan function in this black (from me in the .map file defined) > background the map is replaced correctly so that the border of the map > is the border of the image. > > In all other Functions the Zoom Function works correctly. > > I think the Solution of this "Problem" can found in the PHP Map Script > but I > would be happy if you can give me some hints to develop a fast solution. > > An other Problem with the ROSA Applet is, that if you draw a Rectangle > and > first Click in the Map than move the mouse outside the Map and than > release > the Mouse Button you will get a Map which should not been drawn in this > way. I > tried to correct this, by setting the coordinates of the maxx and maxy > to the > maxextends of the Map but than I could suddenly zoom in over the given > Min > Scale which should also not appear. > > Also in this Point I hope to get some help from you. > > Thank you for your time. > > With best regards > > Christian Fuerpasz > > -- > ________________________________________________________ > Institut fuer Geographie der Universitaet Wien > Kartografie und Geoinformation > > Deptartment of Geography and Regional Science > University of Vienna > Cartography and GIS > > Tel: (+43 1) 4277 48658 > Fax: (+43 1) 4277 48649 > E-Mail: mailto:fuerp at atlas.gis.univie.ac.at > Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA > > WWW: http://www.gis.univie.ac.at/karto/ > _______________________________________________________ > > From steve.lime at dnr.state.mn.us Wed Mar 7 07:33:42 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 07 Mar 2001 09:33:42 -0600 Subject: large scale image tiling Message-ID: That's a bunch of images. Biggest I've used is 1200 images that total around 22Gb. What you want to do is feasible, no comment on performance though. Depends on how many images, what type etc you'd see at once. Any apps I've worked on seem to slow down too much if more than nine (i.e. one tile plus surround 8) are in view. MapServer tile indexes are themselves shapefiles. You can use MapScript to build that index. From within perl/python or whatever you'd: 1) create a polygon shapefile 2) create a corresponding dbf file with at least one item to hold image path and name 3) for each world file - create a polygon object from the world file coordinates - write the polygon to the shapefile - write the location information to the dbf file 4) close the files That should do it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Tom Kralidis" 03/07/01 08:21AM >>> Hi, I have some ~40000 images, with corresponding world files. The data totals ~150MB. I would like to make all images served online as a single layer. I have checked ArcView's helpfiles on creating an image catalog, and found their imgcat.ave script. However, this means loading each image into a view, then running the script. Is a data product of this size feasible to create a layer for use in MapServer? Can MapServer take the tile index as an ASCII text file, or only .dbf? If yes, a simple Perl script should do it. Information or examples are appreciated. ..Tom _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From teb at mallit.fr.umn.edu Wed Mar 7 10:01:09 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 7 Mar 2001 12:01:09 -0600 (CST) Subject: 3.3.3.011 upgrade to 3.4 (fwd) Message-ID: <200103071801.MAA07503@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: Eric Tang To: "'mapserver-info at lists.gis.umn.edu'" Subject: 3.3.3.011 upgrade to 3.4 Date: Wed, 7 Mar 2001 04:30:19 -0000 Mime-Version: 1.0 Hi, I ready done of the ms_demo.tar.gz, it ready run from my local server. Also I ready install WorkBench for create easy map file, in which it need mapserver version 3.4 at least. So I had download ms32gif from Windows Binary Download, and I just overwrite the existing exe file from the cgi-bin box; Eventually I restart the system and run again the ms_demo. It can't run, it show "msLoadMap(): Unknown identifier. (SHADESET):(6)". What's the problem occur? How I can upgrade to version 3.4? Cheers, Eric ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From teb at mallit.fr.umn.edu Wed Mar 7 10:09:15 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 7 Mar 2001 12:09:15 -0600 (CST) Subject: Demo Problem (fwd) Message-ID: <200103071809.MAA07519@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Patrik Simonsson" To: Subject: Demo Problem Date: Wed, 7 Mar 2001 16:35:56 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Disposition-Notification-To: "Patrik Simonsson" Hi I have some problem with the MapServer Demo installation. I have managed to get it running on our NT web server but the main map, overview map and legend are not showing. Mapserv.exe generates the GIF files to the tmp directory correctly. When I look at the source code(right click) in the my browser the path for the GIF files are: SRC="/tmp/DEMOsb9839779071928.gif" SRC="/tmp/DEMOleg9839779071928.gif" SRC="/tmp/DEMOref9839779071928.gif" If I delete the first slash sign (/) in the path and saves the code as html file the GIF files shows correctly when I open it(the new html file) in my browser. How do I solve this problem ? Must I investigate the mapserv source code and compile a own version of maserv.exe ? I hope someone have time to help me. Thanks, Patrik Email: patrik.simonsson at aerotechtelub.se ------------- End Forwarded Message ------------- From hermi at citybeat.de Wed Mar 7 10:28:39 2001 From: hermi at citybeat.de (Hermann-Marcus Behrens) Date: Wed, 7 Mar 2001 19:28:39 +0100 Subject: How to get the x,y values(in pixel) via mapscript? In-Reply-To: Message-ID: I'm using mapscript(with perl) to create maps on the fly. I add points "by hand" ($point->draw). Now i would like to enhance this application with overlib.js, so a user might move his mouse-cursor over a point(drawed "by hand" ;)) and an image would be displayed. For this feature i need the exact points in pixel, where these points are on the final map. Any suggestions, how to solve this problem? Here you can see, how the application works: http://www.citybeat.de/bremen/alles?adatum=2001-03-09&graum=bremen If you are curious: citybeat is a town-portal for Bremen and Hamburg in germany. The map is from official sites completly in TIFF. If you zoom in or out, it will change (zooming out) to Vector-Data. If a mouse-cursor is over a red dot, i would like to show a picture. I only need the coordinates, the displaying is no problem. Thank, Hermi From doug at starss.net Wed Mar 7 10:59:06 2001 From: doug at starss.net (Doug Bryant) Date: Wed, 7 Mar 2001 13:59:06 -0500 Subject: Also having problem with Rosa Applet and PHP4 Message-ID: <01030713590600.02216@cartman.netinlet.com> Hello, I am also having problems with the Rosa applet and PHP4. I am using PHP version 4.0.4pl1 and Mapserver version 3.4. I will list compile options below. The problems I am having is different than the ones that Christian was having. I believe the problem is in the Rosa Applet. When the applet is turned on, using the gmap75 example, if it zoom in with a bounding box, from say Whitehorse down to Victoria and east to Winnipeg, the resulting map that is drawn is a very Zoomed in view of the border between the US and Canada just below Regina. This happens when I try to zoom in on any larger area. When I am zoomed in very tightly to an area, it seems to work properly, but that area is very small. If I turn the applet off, it seems to work properly and zoom in gradually, but the bounding box is not available. Any help or pointers is appreciated. Thanks, Doug. Here is my setup. Redhat 6.2. Apache 1.3.14 PHP is compiled with these options: ./configure --with-interbase=/usr/local/interbase --with-config-file-path=/etc/httpd --with-apxs=/usr/sbin/apxs --enable-safe-mode --with-regex=system --with-zlib --with-gdbm --enable-debugger --enable-magic-quotes' --enable-track-vars --enable-sysvsem --enable-sysvshm --with-xml' --with-ftp --enable-dbase --with-pgsql=/usr/lib/pgsql Mapserver was compiled with these options. ./configure --with-php=/usr/local/src/php-4.0.4pl1 --with-apxs=/usr/sbin/apxs --with-gd --with-jpeg --with-proj=/usr/local --with-ttf=/usr/local --with-tiff From tomkralidis at hotmail.com Wed Mar 7 11:08:23 2001 From: tomkralidis at hotmail.com (Tom Kralidis) Date: Wed, 07 Mar 2001 14:08:23 -0500 Subject: How to get the x,y values(in pixel) via mapscript? Message-ID: I second this question. Can this also be done without mapscript, ie the mapserv app itself? It would be great to be able to create events based on mouseovers, ie imagemaps created inline, etc. ..Tom >I'm using mapscript(with perl) to create maps on the fly. I add points "by >hand" ($point->draw). Now i would like to enhance this application with >overlib.js, so a user might move his mouse-cursor over a point(drawed "by >hand" ;)) and an image would be displayed. For this feature i need the >exact >points in pixel, where these points are on the final map. Any suggestions, >how to solve this problem? > >Here you can see, how the application works: >http://www.citybeat.de/bremen/alles?adatum=2001-03-09&graum=bremen >If you are curious: citybeat is a town-portal for Bremen and Hamburg in >germany. The map is from official sites completly in TIFF. If you zoom in >or >out, it will change (zooming out) to Vector-Data. If a mouse-cursor is over >a red dot, i would like to show a picture. I only need the coordinates, the >displaying is no problem. > > >Thank, > Hermi > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From assefa at dmsolutions.ca Wed Mar 7 11:13:14 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Wed, 07 Mar 2001 14:13:14 -0500 Subject: Problems with the Zoom Function of the PHP MapScript Module References: <3AA6050D.1CD14D3E@atlas.gis.univie.ac.at> Message-ID: <3AA6884A.B9ADEBB6@dmsolutions.ca> Hi There, I added a new optional parameter for the zoomrectangle function so you can specify the maximum extents allowed when you are zooming : eg : $oGeorefMaxExt->setextent($dfMaxExtMinX, $dfMaxExtMinY, $dfMaxExtMaxX, $dfMaxExtMaxY); $gpoMap->zoomrectangle($oPixelRect, $dfWidthPix, $dfHeightPix, $oGeorefExt, $oGeorefMaxExt); So you could set this parameter equal to your map extents so you would not zoom pass that extent. This fix is in the CVS version and would be available for version 3.5. Meanwhile if you are on a windows and want a dll with these modifications (and compatible with Mapserver 3.3.011), please let me know off the list I could get it to you. Best Regards, Christian Fuerpasz wrote: > Hello everybody! > > In my Application there appears a problem in the Zoom Function in one > special Case, otherwise it works correct. > > I use the Mapserver 3.3.011, PHP Mapscript from DM Solutions and also > the the Rosa Applet. > When i use the zoom function it works almost correctly. I can use it by > a single click or by drawing a Rectangle. Its not allowed to zoom in > more then specified in the .map file. But this works only in the middle > of the Map. > > When you use the Zoom Button and Zoom in with drawing a small rectangle > very near the border of the Map i get a map in the bigest scale (which > should be correct) but with the Mapextends outside the specified > extends. > Now i can see the background which should never be seen. When i use now > the pan function in this black (from me in the .map file defined) > background the map is replaced correctly so that the border of the map > is the border of the image. > > In all other Functions the Zoom Function works correctly. > > I think the Solution of this ?Problem? can found in the PHP Map Script > but I > would be happy if you can give me some hints to develop a fast solution. > > An other Problem with the ROSA Applet is, that if you draw a Rectangle > and > first Click in the Map than move the mouse outside the Map and than > release > the Mouse Button you will get a Map which should not been drawn in this > way. I > tried to correct this, by setting the coordinates of the maxx and maxy > to the > maxextends of the Map but than I could suddenly zoom in over the given > Min > Scale which should also not appear. > > Also in this Point I hope to get some help from you. > > Thank you for your time. > > With best regards > > Christian Fuerpasz > > -- > ________________________________________________________ > Institut fuer Geographie der Universitaet Wien > Kartografie und Geoinformation > > Deptartment of Geography and Regional Science > University of Vienna > Cartography and GIS > > Tel: (+43 1) 4277 48658 > Fax: (+43 1) 4277 48649 > E-Mail: mailto:fuerp at atlas.gis.univie.ac.at > Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA > > WWW: http://www.gis.univie.ac.at/karto/ > _______________________________________________________ -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From fuerp at atlas.gis.univie.ac.at Wed Mar 7 11:32:06 2001 From: fuerp at atlas.gis.univie.ac.at (Christian Fuerpasz) Date: Wed, 07 Mar 2001 20:32:06 +0100 Subject: Problems with the Zoom Function of the PHP MapScript Module References: <3AA6050D.1CD14D3E@atlas.gis.univie.ac.at> <3AA6884A.B9ADEBB6@dmsolutions.ca> Message-ID: <3AA68CB5.CB216C3E@atlas.gis.univie.ac.at> Hello! Thanks for the answers. > This fix is in the CVS version and would be available for version 3.5. > > Meanwhile if you are on a windows and want a dll with these modifications > (and compatible with Mapserver 3.3.011), please let me know off the list I > could get it to you. > Tomorrow i will try to install the Mapserver 3.4 Version and look if the error also appears. My system is running on Linux so i think i will need a Linux version of the PHP Mapscript. I will try it out, and if it don?t work, i will contact you again. By the way, what are the mayor Changes of 3.4 to version 3.3.011 ? Thanks for the help Christian -- __________________________________________________________ INSTITUT fuer GEOGRAFIE der UNIVERSITAET WIEN Kartografie und Geoinformation Tel: (+43 1) 4277 48658 E-Mail: mailto:fuerp at atlas.gis.univie.ac.at Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA WWW: http://www.gis.univie.ac.at/karto/ __________________________________________________________ From bertha_bonita at yahoo.com Wed Mar 7 11:48:34 2001 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Wed, 7 Mar 2001 11:48:34 -0800 (PST) Subject: advantaje using Expressiones Message-ID: <20010307194834.17862.qmail@web4207.mail.yahoo.com> hello i have a problem when i want to use an expreesiones like a EXPRESSION ('[PERIODO]' eq '^Paleogeno$') Don't Work EXPRESSION ('[PERIODO]' eq 'Paleogeno') work but no correctly because give me Paleogeno and all the word ending wtih "geno" EXPRESSION ('^Paleogeno$') don't work i don't know how can i resolve this problem, i'm getting worried about it. Which are the advantages using expressions???? ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From chads at adci.com Wed Mar 7 13:07:49 2001 From: chads at adci.com (Chad Streck) Date: Wed, 07 Mar 2001 15:07:49 -0600 Subject: Copyright notice at the lower left of the map image Message-ID: <3AA6A325.8030001@adci.com> New to Mapserver, but enjoying every bit! Started late last week. I saw the short thread on copyrights on an image and saw the mapfile layer definition that added the copyright, but I was wondering if there is a way of doing the same/similar thing in mapscript. I have been using PHP/Mapscript and a part of the app I'm writing includes changing the size of the map window, so I don't have static values to put the copyright in the lower right corner. I need to be able to move it to the extent of my map window. I tried using PHP to create something similar to the map file definition, but am unable to get anything to show, or add the text to a shapeobj. Here is what I have so far... // add copyright function copyright($mapobj, $author, $txtwidth=50, $txtheight=10) { $layer = ms_newlayerobj($mapobj); // add copyright function copyright($mapobj, $author, $txtwidth=50, $txtheight=10) { $layer = ms_newlayerobj($mapobj); // base properties $layer->set('name', 'credits'); $layer->set('status', 'default'); $layer->set('transform', 'false'); $layer->set('type', 'annotation'); $layer->set('labe', 'annotation'); // point feature with text for location $point = ms_newpointobj(); $point->setXY($mapobj->width - $txtwidth, $mapobj->height - $txtheight); $line = ms_newlineobj(); $line->add($point); $shape = ms_newshapeobj($layer); $shape->add($line); // make year computed //$shape->set('text', "© 2001 $author"); //int draw(mapObj map, layerObj layer, imageObj img, // string class_name, string text) $layer->addfeature($shape); // class for display //$layer->set('',); //LAYER // NAME "credits" // STATUS DEFAULT // TRANSFORM FALSE // TYPE ANNOTATION // FEATURE // POINTS 4 369 END // TEXT '© 2001 ADCi' // END // CLASS // LABEL // TYPE TRUETYPE // FONT helv // SIZE 8 // ANTIALIAS // COLOR 0 0 255 // OUTLINECOLOR 255 255 255 // POSITION UR // END // END //END } This does have extraneous comments while I am trying to get it to work, and I do know it doesn't work for me, so any help would be appreciated. Thanks, Chad From steve.lime at dnr.state.mn.us Wed Mar 7 13:16:32 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 07 Mar 2001 15:16:32 -0600 Subject: How to get the x,y values(in pixel) via mapscript? Message-ID: The mapserv app can't do much for you here. What you want to do is *really* browser specific. If I understand it write you want the image to act as an image map AND as a form input. For example, in Netscape (pre-6.0 anyway) form image elements are not scriptable. In MSIE everything is scriptable and you can use the onMouseOver event to nab the xy and do the imagemap computation yourself. You could use the DNR mapplet applet to do this as well. There is a mouse over javascript function that is called from the applet. It's intended use is to put map coordinates in the status bar but it could be used for mouse overs. You'd need to do the detection of collisions yourself. MapScript or Javascript can be used to compute the pixel values of your hand placed points. The equation is: cellsize = (extent.maxx - extent.minx)/(width-1) px = round((mx - extent.minx)/cellsize); py = round((extent.maxy - my)/cellsize); where Cellsize is size of pixels in map units, mapserver will supply the exent for square pixels so using the x dimension or y dimension should give the same result. Width is the map image width in pixels. Mx and my are the coordinates in map units and px and py are the pixel values. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Tom Kralidis" 03/07/01 01:08PM >>> I second this question. Can this also be done without mapscript, ie the mapserv app itself? It would be great to be able to create events based on mouseovers, ie imagemaps created inline, etc. ..Tom >I'm using mapscript(with perl) to create maps on the fly. I add points "by >hand" ($point->draw). Now i would like to enhance this application with >overlib.js, so a user might move his mouse-cursor over a point(drawed "by >hand" ;)) and an image would be displayed. For this feature i need the >exact >points in pixel, where these points are on the final map. Any suggestions, >how to solve this problem? > >Here you can see, how the application works: >http://www.citybeat.de/bremen/alles?adatum=2001-03-09&graum=bremen >If you are curious: citybeat is a town-portal for Bremen and Hamburg in >germany. The map is from official sites completly in TIFF. If you zoom in >or >out, it will change (zooming out) to Vector-Data. If a mouse-cursor is over >a red dot, i would like to show a picture. I only need the coordinates, the >displaying is no problem. > > >Thank, > Hermi > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From steve.lime at dnr.state.mn.us Wed Mar 7 13:50:32 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 07 Mar 2001 15:50:32 -0600 Subject: advantaje using Expressiones Message-ID: Examples 1 and 3 have the wrong syntax. You can do regex expresions like: CLASSITEM PERIODO CLASS EXPRESSION /^Paleogeno$/ ... END You can also do regex in a logical expression like: CLASS EXPRESSION ('PERIODO]' =~ /^Paleogeno$/ ... END Note there is no CLASSITEM. You could even just do a string comparison: CLASSITEM PERIODO CLASS EXPRESSION "Paleogeno" ... END Example 2 should work just like the one immediately above, but is less efficient. It uses a straight strcmp so it doesn't seem possible that it also matches strings ending in 'geno'. Are you sure about that behavior? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> bertha amalia serrato de la cruz 03/07/01 01:48PM >>> hello i have a problem when i want to use an expreesiones like a EXPRESSION ('[PERIODO]' eq '^Paleogeno$') Don't Work EXPRESSION ('[PERIODO]' eq 'Paleogeno') work but no correctly because give me Paleogeno and all the word ending wtih "geno" EXPRESSION ('^Paleogeno$') don't work i don't know how can i resolve this problem, i'm getting worried about it. Which are the advantages using expressions???? ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From neelsmith at yahoo.com Wed Mar 7 14:11:15 2001 From: neelsmith at yahoo.com (Neel Smith) Date: Wed, 7 Mar 2001 14:11:15 -0800 (PST) Subject: Scalebar, legend, ref. map from mapscript Message-ID: <20010307221115.60879.qmail@web10908.mail.yahoo.com> I've written a simple application using perl mapscript. I would like to decide whether to render scalebar, legend and reference map based on whether they appear in the user-selected map file. I had hope that something like if (defined($map->{scalebar})) ... would work, but it seems as though defaults for these get added to the map object when it is created, whether or not they are in the map file. Is there any reasonable way to identify from perl whether or not the map file contains a definition for these components, or should I just burden the user with an additional cgi parameter to turn them on/off? Neel Smith neelsmith at yahoo.com __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From assefa at dmsolutions.ca Wed Mar 7 14:44:49 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Wed, 07 Mar 2001 17:44:49 -0500 Subject: Also having problem with Rosa Applet and PHP4 References: <01030713590600.02216@cartman.netinlet.com> Message-ID: <3AA6B9E1.2A30397F@dmsolutions.ca> Hi There, I have fixed the problem and it is commited in the CVS and will be available for the next version of mapserver (3.5). Later, Doug Bryant wrote: > Hello, > > I am also having problems with the Rosa applet and PHP4. I am using PHP > version 4.0.4pl1 and Mapserver version 3.4. I will list compile options > below. > > The problems I am having is different than the ones that Christian was > having. I believe the problem is in the Rosa Applet. When the applet is > turned on, using the gmap75 example, if it zoom in with a bounding box, from > say Whitehorse down to Victoria and east to Winnipeg, the resulting map that > is drawn is a very Zoomed in view of the border between the US and Canada > just below Regina. > > This happens when I try to zoom in on any larger area. When I am zoomed in > very tightly to an area, it seems to work properly, but that area is very > small. > > If I turn the applet off, it seems to work properly and zoom in gradually, > but the bounding box is not available. > > Any help or pointers is appreciated. > > Thanks, Doug. > > Here is my setup. > > Redhat 6.2. Apache 1.3.14 > > PHP is compiled with these options: > ./configure --with-interbase=/usr/local/interbase > --with-config-file-path=/etc/httpd > --with-apxs=/usr/sbin/apxs --enable-safe-mode > --with-regex=system --with-zlib --with-gdbm > --enable-debugger --enable-magic-quotes' > --enable-track-vars --enable-sysvsem --enable-sysvshm > --with-xml' --with-ftp --enable-dbase > --with-pgsql=/usr/lib/pgsql > > Mapserver was compiled with these options. > ./configure --with-php=/usr/local/src/php-4.0.4pl1 --with-apxs=/usr/sbin/apxs > --with-gd --with-jpeg --with-proj=/usr/local --with-ttf=/usr/local --with-tiff -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From morissette at dmsolutions.ca Wed Mar 7 14:52:18 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 07 Mar 2001 17:52:18 -0500 Subject: Copyright notice at the lower left of the map image References: <3AA6A325.8030001@adci.com> Message-ID: <3AA6BBA2.CB25693C@dmsolutions.ca> Chad Streck wrote: > > I saw the short thread on copyrights on an image and saw the mapfile > layer definition that added the copyright, but I was wondering if there > is a way of doing the same/similar thing in mapscript. Yes, it is possible to do the same with MapScript... at least part of the reason why you're getting nothing is that you're setting some parameter values in your layer as strings, but you should actually be using constants: // base properties $layer->set('name', 'credits'); $layer->set('status', MS_DEFAULT); $layer->set('transform', MS_FALSE); $layer->set('type', MS_ANNOTATION); It would be much simpler if you defined your layer in the .map file, and just altered the location of the copyright notice using MapScript. Assuming that you include the credits layer defn in your .map file, then your function should be something like: // add copyright function copyright($mapobj, $imgObj, $author, $txtwidth=50, $txtheight=10) { $layer = $map->getLayerByName("credits"); // point feature with text for location $point = ms_newpointobj(); $point->setXY($mapobj->width - $txtwidth, $mapobj->height - $txtheight); $point->draw($mapObj, $layer, $imgObj, "credits", "© 2001 $author"); } For this to work, you'll have to add a name to your class in the .map file... the above example assumes the class name is "credits". Finally, the $imgObj parameter should have been obtained from a previous call to $mapObj->draw() in your script. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From matt at aruke.com Wed Mar 7 19:30:34 2001 From: matt at aruke.com (matt) Date: Thu, 8 Mar 2001 12:30:34 +0900 Subject: double-byte charachter label output Message-ID: <001101c0a780$23ad8240$0400a8c0@matt> hi, i am using version ms_3.3.011 of mapserver on redhat linux 6.2 with freetype 1.3.1 and libtiff 3.5.6 beta. my regular single byte true type fonts are working ok, but when i try to output kanji with ttf's that support double-byte charachters i get a bunch of garbage. has anyone else had success in using kanji or any double-byte chars in thier map labels? if not, can anyone tell me where to start on solving this problem? does anyone know if freetype supports double-byte chars? thanks in advance, matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From kafka at email.cz Thu Mar 8 02:34:11 2001 From: kafka at email.cz (Stepan Kafka) Date: Thu, 8 Mar 2001 11:34:11 +0100 Subject: Changing size in Java applet In-Reply-To: <91531C2EF097D94ABD7C10E7E914D3C0020597@victoria.spektra.de> Message-ID: <002701c0a7bb$509467c0$fb01a8c0@gis2.oku-kh.cz> Use these parameters for the applet Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele > Karl-Albrecht Klinge > Odesl?no: 6. b?ezna 2001 23:08 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: Changing size in Java applet > > > > Hi everybody, > > we are using a java applet. > > we can change size and we are dynamically zooming with rectangles. > > (1) How can we get information about the map extent of the returned map > e.g. minX, minY, maxX, maxY? > > (2) We have the cgi-reference. > It does not give us any information about what combinations of > parameters make up a possible request. > > (3) How can we use the 'post'-request? > The script returns "null The script can only be used to decode form > results." > what ever this means > > Thanks in advance, > > Karl > From fuerp at atlas.gis.univie.ac.at Thu Mar 8 04:08:29 2001 From: fuerp at atlas.gis.univie.ac.at (Christian Fuerpasz) Date: Thu, 08 Mar 2001 13:08:29 +0100 Subject: Problems with the Zoom Function of the PHP MapScript Module References: <3AA6050D.1CD14D3E@atlas.gis.univie.ac.at> <3AA6884A.B9ADEBB6@dmsolutions.ca> Message-ID: <3AA7763D.FC798A87@atlas.gis.univie.ac.at> Hi! Assefa Yewondwossen wrote: > I added a new optional parameter for the zoomrectangle function so you can > specify the maximum extents allowed when you are zooming : > > eg : > $oGeorefMaxExt->setextent($dfMaxExtMinX, $dfMaxExtMinY, > $dfMaxExtMaxX, $dfMaxExtMaxY); > > $gpoMap->zoomrectangle($oPixelRect, $dfWidthPix, $dfHeightPix, > $oGeorefExt, $oGeorefMaxExt); > I have installed the nightly build and saw in the source code the changed parts. Thank you. But i have a Problem in running the Map File. I get an Error code at Loadlayer() QUERYITEM definition. Have there been changes in the Map File definition sine 3.3.011? Thanks Christian -- ________________________________________________________ Institut fuer Geographie der Universitaet Wien Kartografie und Geoinformation Deptartment of Geography and Regional Science University of Vienna Cartography and GIS Tel: (+43 1) 4277 48658 Fax: (+43 1) 4277 48649 E-Mail: mailto:fuerp at atlas.gis.univie.ac.at Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA WWW: http://www.gis.univie.ac.at/karto/ _______________________________________________________ From assefa at dmsolutions.ca Thu Mar 8 07:28:33 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Thu, 08 Mar 2001 10:28:33 -0500 Subject: Problems with the Zoom Function of the PHP MapScript Module References: <3AA6050D.1CD14D3E@atlas.gis.univie.ac.at> <3AA6884A.B9ADEBB6@dmsolutions.ca> <3AA7763D.FC798A87@atlas.gis.univie.ac.at> Message-ID: <3AA7A520.753332A8@dmsolutions.ca> Hi There, What I would suggest is to upgrade to 3.4 which is the current stable version of mapserver. You could then patch the modifications done for the zooming in the 3.4 version. Fonctions affected are in php_mapscript.c: - DLEXPORT void php3_ms_map_zoomRectangle(INTERNAL_FUNCTION_PARAMETERS) - DLEXPORT void php3_ms_map_zoomPoint(INTERNAL_FUNCTION_PARAMETERS) In fact you can take the whole fonction and replace it and it should work. As for the changes from 3.3.011 to 3.5, I am not aware of all the changes but there are a lot of modifications happening (like integration of GDAL/OGR to support diffrent vector and raster formats, queries...). That's why I think you should go with 3.4. Later, Christian Fuerpasz wrote: > Hi! > > Assefa Yewondwossen wrote: > > > I added a new optional parameter for the zoomrectangle function so you can > > specify the maximum extents allowed when you are zooming : > > > > eg : > > $oGeorefMaxExt->setextent($dfMaxExtMinX, $dfMaxExtMinY, > > $dfMaxExtMaxX, $dfMaxExtMaxY); > > > > $gpoMap->zoomrectangle($oPixelRect, $dfWidthPix, $dfHeightPix, > > $oGeorefExt, $oGeorefMaxExt); > > > > I have installed the nightly build and saw in the source code the changed parts. > Thank you. > But i have a Problem in running the Map File. I get an Error code at Loadlayer() > QUERYITEM definition. > > Have there been changes in the Map File definition sine 3.3.011? > > Thanks > Christian > -- > ________________________________________________________ > Institut fuer Geographie der Universitaet Wien > Kartografie und Geoinformation > > Deptartment of Geography and Regional Science > University of Vienna > Cartography and GIS > > Tel: (+43 1) 4277 48658 > Fax: (+43 1) 4277 48649 > E-Mail: mailto:fuerp at atlas.gis.univie.ac.at > Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA > > WWW: http://www.gis.univie.ac.at/karto/ > _______________________________________________________ -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From blackmail at snafu.de Thu Mar 8 07:36:09 2001 From: blackmail at snafu.de (Peter Brack) Date: Thu, 08 Mar 2001 16:36:09 +0100 Subject: compile error: include-file 'gd.h' cannot be opened Message-ID: <3AA7A6E9.A653C083@snafu.de> Hi Listers, I'm completely new to VC++. Maybe that's why I have problems compiling the mapserv.c I get the following (compiler-) error code: mapserv.c c:\1171\mapserver\quellen\mapserver\mapsymbol.h(4) : fatal error C1083: Include-file cannot be opened : 'gd.h': the file gd.h is originally in the gd-1.2. I copie this file to the same directory where mapserv.c is - nothing changed. I added 'gd.h' to the visualc++ working sheet - nothing changed. Does anybody out there know what's the problem? Thanks a lot Peter From steve.lime at dnr.state.mn.us Thu Mar 8 07:57:37 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 08 Mar 2001 09:57:37 -0600 Subject: Problems with the Zoom Function of the PHP MapScript Module Message-ID: The nightly builds are 3.5 alpha which has some major changes in place. Not what you want to be using at this point. The error you get is related to generic query support across data sources (shapefile, SDE, OGR). QUERY objects (hence QUERYITEM) are gone, moved into CLASS objects. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Christian Fuerpasz 03/08/01 06:08AM >>> Hi! Assefa Yewondwossen wrote: > I added a new optional parameter for the zoomrectangle function so you can > specify the maximum extents allowed when you are zooming : > > eg : > $oGeorefMaxExt->setextent($dfMaxExtMinX, $dfMaxExtMinY, > $dfMaxExtMaxX, $dfMaxExtMaxY); > > $gpoMap->zoomrectangle($oPixelRect, $dfWidthPix, $dfHeightPix, > $oGeorefExt, $oGeorefMaxExt); > I have installed the nightly build and saw in the source code the changed parts. Thank you. But i have a Problem in running the Map File. I get an Error code at Loadlayer() QUERYITEM definition. Have there been changes in the Map File definition sine 3.3.011? Thanks Christian -- ________________________________________________________ Institut fuer Geographie der Universitaet Wien Kartografie und Geoinformation Deptartment of Geography and Regional Science University of Vienna Cartography and GIS Tel: (+43 1) 4277 48658 Fax: (+43 1) 4277 48649 E-Mail: mailto:fuerp at atlas.gis.univie.ac.at Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA WWW: http://www.gis.univie.ac.at/karto/ _______________________________________________________ From Michael.Hearne at noaa.gov Thu Mar 8 08:49:11 2001 From: Michael.Hearne at noaa.gov (Michael Hearne) Date: Thu, 08 Mar 2001 11:49:11 -0500 Subject: problems compiling mapscript for perl References: <3AA6050D.1CD14D3E@atlas.gis.univie.ac.at> <3AA6884A.B9ADEBB6@dmsolutions.ca> <3AA7763D.FC798A87@atlas.gis.univie.ac.at> <3AA7A520.753332A8@dmsolutions.ca> Message-ID: <3AA7B807.F4017E27@noaa.gov> Last week I sent out the message below to the group. I have yet to get a response, so I'll cast it out there again, and also ask if anyone has a mapscript pre-compiled for SunOS 5.7? I have heard this from someone I work with: "PIC is position independent code. Its what you need for shared libraries or DLLs." Is this the same thing? Anyone? Thanks, Mike >In trying to compile mapscript for use with Perl, I get the following >error: > >ld: fatal: too many symbols require `small' PIC references: > have 2132, maximum 2048 -- recompile some modules -K PIC. > >I'm running SunOS 5.7, with gcc version 2.95.2 and mapserver version >3.3.011. -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From yecarrillo at hotmail.com Thu Mar 8 09:17:37 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Thu, 08 Mar 2001 12:17:37 -0500 Subject: Mapfiles editor Message-ID: What text editor are used by map-users in the list to create map files? I will recommend Ultraedit (http://www.ultraedit.com). I've created the definition file to use UEdit as mapfiles and symbol files editor. You can see a snapshoot at: http://www.scoutsace.f2s.com/paginas/yecarrillo/uedit32.gif And download definition file from: http://ww.scoutsace.f2s.com/paginas/yecarrillo/Mapserver-Ultraedit1.01.zip Check readme file for further information. ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From aelwardani at lizardtech.com Thu Mar 8 10:30:57 2001 From: aelwardani at lizardtech.com (Alexia Elwardani) Date: Thu, 8 Mar 2001 10:30:57 -0800 Subject: unsubscribe Message-ID: <874D0CB6A1C2AF4CAD96E24974764987F74B55@cayman.lizardtech.com> unsubscribe From tpoindex at nyx.net Thu Mar 8 10:35:43 2001 From: tpoindex at nyx.net (Tom Poindexter) Date: Thu, 8 Mar 2001 11:35:43 -0700 Subject: Mapfiles editor In-Reply-To: ; from Eduin Yesid Carrillo on Thu, Mar 08, 2001 at 12:17:37PM -0500 References: Message-ID: <20010308113543.43373@nyx.net> On Thu, Mar 08, 2001 at 12:17:37PM -0500, Eduin Yesid Carrillo wrote: > What text editor are used by map-users in the list to create map files? MapServer Workbench's msedit.tcl ;-) -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From Michael.Hearne at noaa.gov Thu Mar 8 11:06:17 2001 From: Michael.Hearne at noaa.gov (Michael Hearne) Date: Thu, 08 Mar 2001 14:06:17 -0500 Subject: Mapfiles editor References: Message-ID: <3AA7D829.A45EF6D2@noaa.gov> I use Emacs for almost everything, including mapfiles. Has anyone made an mapfiles mode for Emacs? I'd love to steal it. If I bothered to use Emacs Lisp, I'd do it myself... -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From sell at spektra.de Thu Mar 8 12:24:05 2001 From: sell at spektra.de (Burkhard Sell) Date: Thu, 8 Mar 2001 21:24:05 +0100 Subject: Calculating correct map extent/image Message-ID: <91531C2EF097D94ABD7C10E7E914D3C0015FD5@victoria.spektra.de> hello, we are using a java applet to communicate with the mapserver. for example if we zoom, we send the new map extent to the map server, and get a image back. but problem is, that the extent of the image is not the same as the requested extent, because the server fits it to the screen ratio. what must we do to calculate/set the correct extent of the returned image? is there any way to get the data calculated by the server back to the client? we hope anybody can help :-)) Burkhard Sell ____________________________________________ Burkhard Sell Spektra Informationssysteme GmbH Lenestrasse 3a 39112 Magdeburg phone: +49 (0)391/6115121 mail: sell at spektra.de web: www.spektra.de From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Mar 8 12:47:24 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 8 Mar 2001 15:47:24 -0500 Subject: Legend & TrueType Message-ID: <2951561DB3DDD0118FEC00805FFE9805049422B2@s5-ccr-r1> Hello, I'm having a bit of a problem, when I try to generate a legend, my mapserver dumps core ! the "legend" executable also does ... Anybody know what's going on ? Also, I read in the archives that the Legend wouldn't show TrueType symbology ... Is this still the case ? Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division, Canadian Centre for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From steve.lime at dnr.state.mn.us Thu Mar 8 13:03:42 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 08 Mar 2001 15:03:42 -0600 Subject: Legend & TrueType Message-ID: What version? Pre-3.4 had a legending bug that cause some array overruns. I believe that was fixed though. TrueType is available with legends but not with scalebars. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 03/08/01 02:47PM >>> Hello, I'm having a bit of a problem, when I try to generate a legend, my mapserver dumps core ! the "legend" executable also does ... Anybody know what's going on ? Also, I read in the archives that the Legend wouldn't show TrueType symbology ... Is this still the case ? Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division, Canadian Centre for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Mar 8 13:08:02 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 8 Mar 2001 16:08:02 -0500 Subject: Legend & TrueType Message-ID: <2951561DB3DDD0118FEC00805FFE9805049422B4@s5-ccr-r1> This is indeed a Pre-3.4 version ... I'd love to migrate to 3.4 but I'm still not sure how the new symbology works (STYLED is gone ?)... Mind you I haven't really tried ... I'll get 3.4 and give it a go ... I have more and more stuff running on mapserver , so migration becomes more and more of a pain :) Thanks, J.F. > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Thursday, March 08, 2001 4:03 PM > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; > 'mapserver-users at lists.gis.umn.edu' > Subject: Re: Legend & TrueType > > What version? Pre-3.4 had a legending bug that cause some array overruns. > I believe > that was fixed though. TrueType is available with legends but not with > scalebars. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Doyon, Jean-Francois" 03/08/01 > 02:47PM >>> > Hello, > > I'm having a bit of a problem, when I try to generate a legend, my > mapserver > dumps core ! > > the "legend" executable also does ... > > Anybody know what's going on ? > > Also, I read in the archives that the Legend wouldn't show TrueType > symbology ... Is this > still the case ? > > Thanks, > > Jean-Fran?ois Doyon > Internet Service Development and Systems Support > GeoAccess Division, Canadian Centre for Remote Sensing > Natural Resources Canada > http://atlas.gc.ca > Phone: (613) 992-4902 > Fax: (613) 947-2410 > > From steve.lime at dnr.state.mn.us Thu Mar 8 13:14:44 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 08 Mar 2001 15:14:44 -0600 Subject: Legend & TrueType Message-ID: Symbols are better in 3.4 and the good news is that symbols won't change at all in 3.5 (ttf arrows might actually work). That said moving to 3.4 isn't really worth it unless you need the msworkbench stuff. You might try just nabbing the 3.4 maplegend.c code and replacing it in your 3.3.x stuff, the changes where fairly minor, and recompiling. Save your upgrade efforts (and anger) for 3.5... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 03/08/01 03:08PM >>> This is indeed a Pre-3.4 version ... I'd love to migrate to 3.4 but I'm still not sure how the new symbology works (STYLED is gone ?)... Mind you I haven't really tried ... I'll get 3.4 and give it a go ... I have more and more stuff running on mapserver , so migration becomes more and more of a pain :) Thanks, J.F. > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Thursday, March 08, 2001 4:03 PM > To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; > 'mapserver-users at lists.gis.umn.edu' > Subject: Re: Legend & TrueType > > What version? Pre-3.4 had a legending bug that cause some array overruns. > I believe > that was fixed though. TrueType is available with legends but not with > scalebars. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Doyon, Jean-Francois" 03/08/01 > 02:47PM >>> > Hello, > > I'm having a bit of a problem, when I try to generate a legend, my > mapserver > dumps core ! > > the "legend" executable also does ... > > Anybody know what's going on ? > > Also, I read in the archives that the Legend wouldn't show TrueType > symbology ... Is this > still the case ? > > Thanks, > > Jean-Fran?ois Doyon > Internet Service Development and Systems Support > GeoAccess Division, Canadian Centre for Remote Sensing > Natural Resources Canada > http://atlas.gc.ca > Phone: (613) 992-4902 > Fax: (613) 947-2410 > > From ROSENBALM.DAN at co.polk.or.us Thu Mar 8 13:57:18 2001 From: ROSENBALM.DAN at co.polk.or.us (DAN ROSENBALM) Date: Thu, 08 Mar 2001 13:57:18 -0800 Subject: unsubscribe Message-ID: unsubscribe -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: TEXT.htm URL: From frank.koormann at intevation.de Fri Mar 9 00:01:53 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Fri, 9 Mar 2001 09:01:53 +0100 Subject: Symbol File error In-Reply-To: =?iso-8859-1?Q?=3C3AA510B0=2ED739A91B=40pro=2Evia-rs=2Ecom=2Ebr=3E=3B_fr?= =?iso-8859-1?Q?om_ricmar=40pro=2Evia-rs=2Ecom=2Ebr_on_Die=2C_M=E4r_06=2C?= =?iso-8859-1?Q?_2001_at_01:30:40_-0300?= References: <3AA510B0.D739A91B@pro.via-rs.com.br> Message-ID: <20010309090153.A8399@abnoba.intevation.de> Ricardo, I am not sure if you already solved your problem, however : * Ricardo Wagner Martins (ricmar at pro.via-rs.com.br) [010306 18:05]: > Dear all, > > I am using Mapserver 3.4 and PHP4. I altered the demo.map and > symbols.sym file of ms_demo example but there are 4 symbols in the layer > "roads" that gave me error in the command line SYMBOL: > > msLoadMap(): General error message > Undefined symbol "us_highway_shield" in class 1 of > layer roads. > Please check your demo.map file. Either you should have a line like SYMBOLSET symbols/marker.sym in your file, to define the markers, or you insert the contents of symbols/marker.sym in the SymbolSet file named in your map-file. Regards, Frank -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ From mark.wilson at rohoel.at Fri Mar 9 00:11:13 2001 From: mark.wilson at rohoel.at (mark.wilson at rohoel.at) Date: Fri, 9 Mar 2001 09:11:13 +0100 Subject: How to get the x,y values(in pixel) via mapscript? Message-ID: Here are my perl subroutines to calculate the map extents and generate image map html for each point. They come with the usual caveats and warnings. They may not be the most elegant piece of coding, and there may be redundant calculations, but they work fine for me. (At least they did before I cleaned them up by deleting all my commented out code!! Watch out for line wraps. Bear in mind that I have three maps, one large image map, one small mapserver map, with an identically sized keymap showing coverage. The small mapserver map is what is used for navigation. It is exactly the same image but with reduced dimensions. Since I don't use lines very heavily, this isn't a real problem. The large map is for exploring the data. Hope this is of use, Mark Here are the subroutines I use: -------------------------------------------- # Set initial values $newminx = -180; $newmaxx = 180; $newminy = -90; $newmaxy = 90; sub set_extent() { my ($zoom, @imgext); my ($x, $y); my ($cellsizex, $cellsizey); if($cgi->param('imgext')) { # if an interactive interface then calculate a new extent @imgext = split(' ', $cgi->param('imgext')); $x = $cgi->param('img.x'); $y = $cgi->param('img.y'); # adjust x,y for small navigation map size $x = ($x * 100)/15; $y = ($y * 100)/15; $zoom_size = $cgi->param('zoomsize'); $zoom_direction = $cgi->param('zoomdir'); if($zoom_direction == 0) { # pan $zoom = 1; } else { # in or out $zoom = $zoom_size*$zoom_direction; $zoom = 1.0/abs($zoom) if $zoom < 0; } $cx = ($imgext[2]-$imgext[0])/($map->{width}-1); # calculate cellsize in x and y $cy = ($imgext[3]-$imgext[1])/($map->{height}-1); $x = $imgext[0] + $cx*$x; # change x,y from image to map coordinates, offset from UL corner of previous image $y = $imgext[3] - $cy*$y; $newminx = $x - .5*(($imgext[2] - $imgext[0])/$zoom); # calculate new extent $newminy = $y - .5*(($imgext[3] - $imgext[1])/$zoom); $newmaxx = $x + .5*(($imgext[2] - $imgext[0])/$zoom); $newmaxy = $y + .5*(($imgext[3] - $imgext[1])/$zoom); # ensure map limits are never inside the image boundaries, resulting in background showing if($newminx < -180) { $newmaxx = $newmaxx - (180 + $newminx); $newminx = -180; } if($newminx < -180) { $newmaxx = $newmaxx - (180 + $newminx); $newminx = -180; } if($newmaxx > 180) { $newminx = $newminx - ($newmaxx - 180); $newmaxx = 180; } if($newminy < -90) { $newmaxy = $newmaxy - (90 + $newminy); $newminy = -90; } if($newmaxy > 90) { $newminy = $newminy - ($newmaxy - 90); $newmaxy = 90; } if($newminx < -180) { # if this is true, we have zoomed out too far, reset extents $newmaxx = 180; $newminx = -180; $newmaxy = 90; $newminy = -90; } $map->{extent}->{minx} = $newminx; # set new extent $map->{extent}->{miny} = $newminy; $map->{extent}->{maxx} = $newmaxx; $map->{extent}->{maxy} = $newmaxy; } } sub round { my $number = shift; # return int($number + .5); return int($number + .5 * ($number <=> 0)); } # here is the bit that creates the image map "records" in HTML for use with OverLib sub create_imagemap { my $xvert; my $yvert; #Read image width and height from map file $imgwidth = $map->{width}; $imgheight = $map->{height}; #loop through the list grabbing each x and y coordinate and # converting # the geo-coordinate to image coordinates foreach $loop (1..$maxcount) { $id=$record_array[$loop][0]; $xvert=$record_array[$loop][8]; $yvert=$record_array[$loop][9]; $country=$record_array[$loop][5]; $location=$record_array[$loop][7]; $title=$record_array[$loop][4]; #convert x map coordinate to image coordinates $cellsizex = (($map->{extent}->{maxx} - $map->{extent}->{minx})/($imgwidth - 1)); $ximg = (($xvert - $map->{extent}->{minx})/$cellsizex); $ximg = round($ximg); #convert y map coordinate to image coordinates $cellsizey = (($map->{extent}->{maxy} - $map->{extent}->{miny})/($imgheight - 1)); $yimg = (($map->{extent}->{maxy} - $yvert)/$cellsizey); $yimg = round($yimg); #add image coord. to the new list print "\more . . . ',STICKY,HAUTO,VAUTO,CAPTION,'$location, $country');\" onMouseout=\"nd();\" \>\n"; } } # ------------------------------ end of code snippet "Hermann-Marcus Behrens" on 08.03.2001 10:14:42 To: Mark H Wilson/RAG/AT at RAG cc: Subject: AW: How to get the x,y values(in pixel) via mapscript? Hello Mark, Thanks for your reply. >Unfortunately you have to do the calulations for the image map within perl, but >all the required input is available. This is exactly, what i want to do. How to get the "required input"? Since i set the map->extents in my perl-script, i dont know, where to get the extents, mapserv calculates to display the correct map. The problem seems to be, that i set different map->extents(minx, miny, maxx, maxy for all the points, i add by hand). mapserv computes different extents, because the map would be streched otherwise. ciao, Hermi From jga at scot.cnes.fr Fri Mar 9 01:16:42 2001 From: jga at scot.cnes.fr (jga at scot.cnes.fr) Date: Fri, 9 Mar 2001 10:16:42 +0100 (CET) Subject: Calculating correct map extent/image In-Reply-To: <91531C2EF097D94ABD7C10E7E914D3C0015FD5@victoria.spektra.de> Message-ID: <200103090826.JAA20047@cnes.fr> On 8 Mar, Burkhard Sell wrote: > hello, > we are using a java applet to communicate with the mapserver. > > for example if we zoom, we send the new map extent to the map server, > and > get a image back. > > but problem is, that the extent of the image is not the same as the > requested > extent, because the server fits it to the screen ratio. > what must we do to calculate/set the correct extent of the returned > image? > > is there any way to get the data calculated by the server back to the > client? > > we hope anybody can help :-)) > > Burkhard Sell Hi, I wrote this method to calculate the correct extent. It's derived from the mapserver source code (i didn't remember which .c file :) /** * * This method calculate the correct extent from a box extent. * Assume x1Extent, y1Extent, x2Extent, y2Extent the requested extent * x1Coord, y1Coord, x2Coord, y2Coord are the corrected coordinate * */ public void setAdjustedCoordinates() { float cellsize, ox, oy; cellsize = (float) (Math.max((x2Extent - x1Extent) / (screenSize.width - 1), (y2Extent - y1Extent) / (screenSize.height - 1))); if(cellsize <= 0) { System.out.println(" Error : Invalid coordinates adjustment!"); System.exit(0); } ox = ms_NINT( (float) (Math.max(((screenSize.width - 1) - (x2Extent - x1Extent) / cellsize) / 2, 0.0))); oy = ms_NINT( (float) (Math.max(((screenSize.height - 1) - (y2Extent - y1Extent) / cellsize) / 2, 0.0))); x1Coord = x1Extent - ox * cellsize; y1Coord = y1Extent - oy * cellsize; x2Coord = x2Extent + ox * cellsize; y2Coord = y2Extent + oy * cellsize; } /** * * See MS_MINT definition in map.h (cf:mapserver source code) * */ private float ms_NINT(float x) { if (x >= 0) return (float) (x + 0.5); else return (float) (x - 0.5); } Regards J -- "Luck doesn't exist. It's just a lack of unluck" http://j3rome.org From rfriedman at saucontech.com Fri Mar 9 06:21:56 2001 From: rfriedman at saucontech.com (rfriedman at saucontech.com) Date: Fri, 9 Mar 2001 09:21:56 -0500 Subject: tutorial Message-ID: <85256A0A.004F1A1A.00@saucon_tech_1.saucontech.com> I am new to the field of map rendering and would like to know how I can learn more about the 'big picture.' For instance, what is a shapefile and how do I create one? What are mapfiles, views, templates, etc.? I know there is a tutorial off the mapserver homepage, but it is very bare-bones and seems to assume a degree of familiarity with basic map generation concepts that I don't have yet. Any ideas on where I can go to learn about this topic? From andreag at crs4.it Fri Mar 9 07:50:13 2001 From: andreag at crs4.it (A. Giacomelli) Date: Fri, 09 Mar 2001 16:50:13 +0100 Subject: PHP/mapscript: verifying syntax on point->draw Message-ID: <3AA8FBB5.D2044D71@crs4.it> Hello, i would like to plot a series of points whose coordinates are stored in a database using php/mapscript this is what I am using now: $mys = "select x,y,attr from mytable order by attr"; $myres = odbc_exec($myconn,$mys); while(odbc_fetch_row($myres)) { $x = odbc_result($myres,"x"); $y = odbc_result($myres,"y"); $att = odbc_result($myres,"att") $mypoint = ms_newpointobj(); $mypoint->setXY($x,$y); $mypoint->draw($gpoMap,$mylayer,$img,"percorso",$att); $mypoint->free(); } $img = $myMap->draw(); url = $img->saveWebImage(0, 0); ..... this is the layer definition for "mylayer" ============== .... LAYER NAME x TYPE POINT STATUS on DATA rice #....this is CLASS COLOR 30 30 30 NAME "path" SYMBOL 6 SIZE 10 END END .... ================= results: 1- an apparently random number of points gets drawn from my recordset each time I access the page 2- I don't see $att drawn as annotation (something missing in the LAYER definition ?) What am I getting wrong ? Could the same be achieved by adding FEATUREs dynamically to the layer ? TIA for any assistance! -- ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia Environment Group http://www.crs4.it/~andreag ========================================= From sell at spektra.de Fri Mar 9 08:26:06 2001 From: sell at spektra.de (Burkhard Sell) Date: Fri, 9 Mar 2001 17:26:06 +0100 Subject: tutorial Message-ID: <91531C2EF097D94ABD7C10E7E914D3C08A1A@victoria.spektra.de> -----Original Message----- From: rfriedman at saucontech.com [mailto:rfriedman at saucontech.com] Sent: Friday, March 09, 2001 3:22 PM To: mapserver-users at lists.gis.umn.edu Subject: tutorial I am new to the field of map rendering and would like to know how I can learn more about the 'big picture.' For instance, what is a shapefile and how do I create one? What are mapfiles, views, templates, etc.? I know there is a tutorial off the mapserver homepage, but it is very bare-bones and seems to assume a degree of familiarity with basic map generation concepts that I don't have yet. Any ideas on where I can go to learn about this topic? From sell at spektra.de Fri Mar 9 08:37:48 2001 From: sell at spektra.de (Burkhard Sell) Date: Fri, 9 Mar 2001 17:37:48 +0100 Subject: tutorial Message-ID: <91531C2EF097D94ABD7C10E7E914D3C08A1B@victoria.spektra.de> i can't help you at all, but: the shapefile format is a new working and interchange format promulagated by ESRI (http://www.esri.com/) for simple vector data with attributes. it is apparently the only file format that can be edited in ARCView, and can also be exported and imported in Arc/Info. an excellent white paper on the shapefile format is available from ESRI, (.pdf format) cool sites to start if you are interested in GIS are http://www.geo.ed.ac.uk/home/giswww.html http://freegis.org/ http://gis.co.hunterdon.nj.us/ burkhard sell -----Original Message----- From: rfriedman at saucontech.com [mailto:rfriedman at saucontech.com] Sent: Friday, March 09, 2001 3:22 PM To: mapserver-users at lists.gis.umn.edu Subject: tutorial I am new to the field of map rendering and would like to know how I can learn more about the 'big picture.' For instance, what is a shapefile and how do I create one? What are mapfiles, views, templates, etc.? I know there is a tutorial off the mapserver homepage, but it is very bare-bones and seems to assume a degree of familiarity with basic map generation concepts that I don't have yet. Any ideas on where I can go to learn about this topic? From yecarrillo at hotmail.com Fri Mar 9 10:30:37 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Fri, 09 Mar 2001 13:30:37 -0500 Subject: Mapfiles editor Message-ID: I apologize for inconvenience. I'm having trouble with zip files in my site. Try this link: http://www.scoutsace.f2s.com/paginas/yecarrillo/Mapserver-Ultraedit1.01.exe Please email me any suggestions and corrections. ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 >From: Musella Pietro >To: "'yecarrillo at condorito.uis.edu.co'" >Subject: R: Mapfiles editor >Date: Thu, 8 Mar 2001 20:26:43 +0100 > > >I use Ultraedit too. >I cannot download your definition file from >http://www.scoutsace.f2s.com/paginas/yecarrillo/Mapserver-Ultraedit1.01. >zip >why? >Can you send me the file? >Thanks >Bye Bye > Pietro Musella > Padova - Italy > pietro.musella at informsrl.it _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From Matt.Wilkie at gov.yk.ca Fri Mar 9 10:50:14 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Fri, 9 Mar 2001 10:50:14 -0800 Subject: tutorial Message-ID: <6DD7370C9452D31192A10008C75D07530909E3CE@raptor.gov.yk.ca> > more about the 'big picture.' For instance, what is a > shapefile and how do I create one? Shapefiles are the file format created by ESRI for use by their desktop GIS product ArcView. Since they decided to publish the specifications of the file format a number of third party programs and utilities (like Mapserver) have sprung up which are able to read the files directly. In a more general sense, a shapefile is a collection of a particular datatype or theme, roads, buildings and rivers for example. Multiple themes (shapefiles) are displayed on top of each like layers of transparencies. To create shapefiles you will probably need a commercial program like ArcView or MapInfo. Mapserver is focussed on the internet delivery of pre-existing datasets and doesn't have much for tools to build those datasets in the first place. I'm sure there are programs besides ArcView and MapInfo I'm not aware of which an inexperienced person can use to generate data. A good place to start looking is http://freegis.org/ and http://directory.google.com/Top/Science/Social_Sciences/Geography/Geographic _Information_Systems/Software/ > What are mapfiles, views, templates, etc.? I > know there is a tutorial off the mapserver homepage, but > it is very bare-bones and seems to assume a degree of > familiarity with basic map generation concepts that I > don't have yet. > > Any ideas on where I can go to learn about this topic? A good starting point is http://gis.about.com/. cheers, -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- From chads at adci.com Fri Mar 9 11:32:25 2001 From: chads at adci.com (Chad Streck) Date: Fri, 09 Mar 2001 13:32:25 -0600 Subject: dbase-php Random corruption Message-ID: <3AA92FC9.30007@adci.com> I am now starting to work with queries, but it seems that for the attribute data from the dbf, I'm getting random information. I can click on the same object in my map, and get completely different results from the dbf, while the shape object has the same information. So I know that the click and the query are working, but not the dbf. Any help would be appreciated. tia, chad Sample Code: =========== for($loop = 0; $loop < $query->numresults; $loop++) { $shape = $query->next(); // open db if not opened if(($db == 0) || ($oldlayer != $shape->layer)) { @dbase_close($db); $layer = $mapobj->getlayer($shape->layer); //print "$mapobj->shapepath/$layer->data.dbf"; $db = dbase_open($mapobj->shapepath."/".$layer->data.".dbf", 0); } $index = $shape->shape + 1; // PHP dies when I try to execute dbase_get_record_with_names // $rec = dbase_get_record_with_names($db, $shape->shape + 1); $rec = dbase_get_record($db, $shape->shape + 1); foreach($rec as $value) { print "
$value"; } $oldlayer = $shape->layer; } @dbase_close($db); Map Layer Definition: ================= class color 225 225 225 name "Counties" outlinecolor 150 150 150 label antialias buffer 3 color 255 32 255 font "helv" mindistance 100 minfeaturesize 90 position cc size 10 type TRUETYPE end end queryitem "polygon_nm" tolerance 0 query expression /./ template "" end end System: ====== Linux Mandrake 7.2 PHP 4.04pl1 - ./configure --with-apxs=/usr/sbin/apxs --without-mysql --with-system-regex --with-dbase Mapserver 3.4 - ./configure --with-apxs=/usr/sbin/apxs --with-php=../../php-4.0.4pl1 --with-freetype --with-proj From bjohnson at jecinc.on.ca Fri Mar 9 12:38:45 2001 From: bjohnson at jecinc.on.ca (Brian Johnson) Date: Fri, 9 Mar 2001 15:38:45 -0500 Subject: tutorial In-Reply-To: <6DD7370C9452D31192A10008C75D07530909E3CE@raptor.gov.yk.ca> Message-ID: <000601c0a8d8$f04aa540$1d00a8c0@jecinc.on.ca> Another program to create shapefiles is AutoCad Map Not the most powerful GIS tool available but we already had it and were able to use drafting software we were already familiar with. You can then assign database entries to entities and export the layers as Arcview style shp files. There are free GIS software packages available but I'm not familiar with them. One I've heard is pretty good is GRASS but I don't know what operating system it can be used on or how easy it is to use. The links listed in other messages should get you something usable (I think) -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Matt.Wilkie Sent: Friday, March 09, 2001 1:50 PM To: Burkhard Sell Cc: mapserver-users at lists.gis.umn.edu Subject: RE: tutorial > more about the 'big picture.' For instance, what is a > shapefile and how do I create one? Shapefiles are the file format created by ESRI for use by their desktop GIS product ArcView. Since they decided to publish the specifications of the file format a number of third party programs and utilities (like Mapserver) have sprung up which are able to read the files directly. In a more general sense, a shapefile is a collection of a particular datatype or theme, roads, buildings and rivers for example. Multiple themes (shapefiles) are displayed on top of each like layers of transparencies. To create shapefiles you will probably need a commercial program like ArcView or MapInfo. Mapserver is focussed on the internet delivery of pre-existing datasets and doesn't have much for tools to build those datasets in the first place. I'm sure there are programs besides ArcView and MapInfo I'm not aware of which an inexperienced person can use to generate data. A good place to start looking is http://freegis.org/ and http://directory.google.com/Top/Science/Social_Sciences/Geography/Geographic _Information_Systems/Software/ > What are mapfiles, views, templates, etc.? I > know there is a tutorial off the mapserver homepage, but > it is very bare-bones and seems to assume a degree of > familiarity with basic map generation concepts that I > don't have yet. > > Any ideas on where I can go to learn about this topic? A good starting point is http://gis.about.com/. cheers, -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- From abernatj at yahoo.com Sat Mar 10 05:49:50 2001 From: abernatj at yahoo.com (Andy Bernat) Date: Sat, 10 Mar 2001 08:49:50 -0500 Subject: trouble getting started Message-ID: <3AAA30FE.B061E9B2@yahoo.com> Dear Mapserver experts, I have been unable to get mapserver up and running. After successfully compiling (version 3.3.011), I copied the mapserv executable to /usr/local/httpd/cgi-bin and changed the reference in the demo_init.html (from the mapserv demo) to point there. When I hit the initialize button all I get is a screen of gibberish like the following: ----- snip ------------- ELFx.so.28:4v41I?rR_New_Instanceet_CharMap_CountTIFFReadEncodedStripsigsetjmptc?T7}`????%8 hH`????%x h?`????%? hH`????%? h?`????%8 hH`????%x h?`????%? hH`????%? h?U??h -h ----- snip ------------- I'm running SuSE 7.0, Apache 1.3.12. I suspected that maybe apache doesn't recognize mapserv as an executable so I changed what looked like the right option in http.conf to treat everything in the cgi-bin subdirectory as executable but that didn't work. At least that's what I thought I was doing but I'm very much the novice. Any suggestions? Thanks in advance. Regards, Andy Bernat _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From bertha_bonita at yahoo.com Mon Mar 12 18:07:12 2001 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Mon, 12 Mar 2001 18:07:12 -0800 (PST) Subject: Error with demo_footer.html Message-ID: <20010313020712.6291.qmail@web4201.mail.yahoo.com> hi list. I'm working with ms.33010 and download the latest demo interface, but i have a problem when the results of query display, because one of the image doesnt' display from the demo_footer.html the error is: msLoadQuery(): Unable to access file. (/httpd/html/geoejercicios/Demo33011/ms_demo/tmp/DEMO9844485751171.qy) the files .gif work fine but all the files .qy generated are empty i don't know what should have it! any suggestion? ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ From geosys at iafrica.com Tue Mar 13 08:12:36 2001 From: geosys at iafrica.com (Robert Stanton) Date: Tue, 13 Mar 2001 18:12:36 +0200 Subject: Zoom to full extent Message-ID: <000c01c0abd9$27e89220$0101a8c0@scgs500> I have been trying to create a radio button, along with my zoom and pan buttons, that would expand a map to its original full extent, using [mapxy] and [scale], to no avail. I would be grateful if someone could tell me if I'm on the right idea, and if so what the exact syntax of the radio input would be. Thanks in advance Robert Stanton From berend.veldkamp at aris.nl Tue Mar 13 09:29:14 2001 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Tue, 13 Mar 2001 18:29:14 +0100 Subject: php link Message-ID: <3AAE58EA.A8ABDFDB@aris.nl> Hi list, I'm trying to install mapscript/php on our ISP's machine. When php_mapscript.so is loaded, I get this message: Unable to load dynamic library '/path/to/extension/php_mapscript.so' - /path/to/extension/php_mapscript.so: symbol calloc, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (no version symbols) Does this seem familiar to anyone? Berend -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From Michael.Hearne at noaa.gov Tue Mar 13 10:05:35 2001 From: Michael.Hearne at noaa.gov (Michael Hearne) Date: Tue, 13 Mar 2001 13:05:35 -0500 Subject: Zoom to full extent References: <000c01c0abd9$27e89220$0101a8c0@scgs500> Message-ID: <3AAE616F.E659B613@noaa.gov> Robert - The only way I figured out how to do it was with some Javascript: function goGlobal() { //set image extent to the extent value in your map file document.mapserv.imgext.value = "390000 4830000 733800 5055500"; document.mapserv.imgbox.value = "-1 -1 -1 -1"; //used with the mapplet //set center pixel coordinates - my image size is 400 by 250 document.mapserv.imgxy.value = "200.0 125.0"; //remember the old zoomdir document.mapserv.old_zoom.value = document.mapserv.zoomdir.value; //select the Pan option so we won't zoom in when clicking "full extent" document.mapserv.zoomdir.value = 0; document.mapserv.submit(); } You'd then need a script to run when your page loads that sets the zoomdir back: function update_form{ document.mapserv.zoomdir.value = document.mapserv.old_zoom.value; } <-- body tag--> <-- button to do the full extent --> There may be some easier way to do it using some property of the CGI script that I didn't pay attention to... Robert Stanton wrote: > > I have been trying to create a radio button, along with my zoom and pan > buttons, that would expand a map to its original full extent, using [mapxy] > and [scale], to no avail. I would be grateful if someone could tell me if > I'm on the right idea, and if so what the exact syntax of the radio input > would be. > > Thanks in advance > > Robert Stanton -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From morissette at dmsolutions.ca Tue Mar 13 17:02:51 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 13 Mar 2001 20:02:51 -0500 Subject: gmap demo : Fatal error: Object expected as argument. in /home/ii/mapserver/gmap/htdocs/gmap75.php3 on line 696 References: <3A94B01F.110001FC@3wsi.com> Message-ID: <3AAEC33B.A0552703@dmsolutions.ca> This is a follow-up on a bug with MapScript with PHP4.0.4 that was posted a few weeks ago: Angus D Madden wrote: > > When I first load gmap75.phtml, everything runs > fine, the images are created, and the applet loads. However, as soon as > I click on anything, I get the following error: > > Fatal error: Object expected as argument. in > /home/ii/mapserver/gmap/htdocs/gmap75.php3 on line 696 > There was indeed a bug that will cause random instability in MapScript v3.4 compiled with PHP 4 ... the fix will be part of the next 3.5 release, but I have seen a few messages on the list about odd behaviors with PHP4 MapScript and while I'm not 100% sure I suspect that some of them may be related to this. So if you are running PHP4/MapScript with v3.4 and noticed intermittent crashes or the above error message, then it might be a good idea to patch your php_mapscript.so. (Note that this bug was for PHP4 only... PHP3 is fine) The fix is to add a ZVAL_ADDREF() call at the end of the PHP4 version of _phpms_add_property_object() in php_mapscript_util.c, around line 545: *(*phandle) = *pObjToAdd; ZVAL_ADDREF(*phandle); return 0; -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From sylvain.speh at CLERMONT.cemagref.fr Wed Mar 14 00:03:16 2001 From: sylvain.speh at CLERMONT.cemagref.fr (Speh Sylvain) Date: Wed, 14 Mar 2001 09:03:16 +0100 Subject: for a beginner : How tu use mapServer with .shp/dbf, Java and 8i Message-ID: Hi everybody. I am a student who just came in the list and tries to cope with GIS and mapServer. I am looking for * "how to use mapServer", but quite explicatively, more than the mapServer tutorial indeed * Java code for helping me in such a way ( the other languages are not welcome ) * informations about mapServer and the Oracle 8i Spatial Cartridge ( a look at the forum wasn't enough ) ms33011g.zip and shapelib_1_2_8 have been downloaded, but only the demo has been implemented yet. So, may I have some help or some information for : * giving me, or telling me where to find more code, * using Access and/or Oracle ( with or without SC ), * using .shp and .dbf files ( I only have the files w/o ESRI products ) that would be great Thanks! From mschulz at webgis.de Wed Mar 14 00:39:44 2001 From: mschulz at webgis.de (Michael Schulz) Date: Wed, 14 Mar 2001 09:39:44 +0100 Subject: Zoom to full extent References: <000c01c0abd9$27e89220$0101a8c0@scgs500> Message-ID: <3AAF2E50.15866A2D@webgis.de> Hi, a simple solution to zoom to full extent could also be, instead of a radio button a simple image link in your html-template with something behind it like: You would have to hardcode the full extent to the mapextent parameter separated by + (URL spaces). Cheers, Michael Robert Stanton schrieb: > I have been trying to create a radio button, along with my zoom and pan > buttons, that would expand a map to its original full extent, using [mapxy] > and [scale], to no avail. I would be grateful if someone could tell me if > I'm on the right idea, and if so what the exact syntax of the radio input > would be. > > Thanks in advance > > Robert Stanton -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From armin.burger at territoriumonline.com Wed Mar 14 02:07:58 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Wed, 14 Mar 2001 11:07:58 +0100 Subject: Query map without zoom in Message-ID: <200103141010.LAA06894@efferd.nettz.com> Is there a possibility using a query map (style highlite) but without causing the map to zoom in to the selected feature(s)? Im using a query map defined equally to the 'normal' map, i.e. the header and footer defined under WEB object are producing a replica of the original html document. My intention is just to have an identify function for features on the map (with the attributes of selected features below) but without always opening respectively changing to another browser window. I don't know if there are any other solutions for this. Armin -- Armin Burger Territorium Online Siemensstrasse/Via Siemens 19 - I-39100 Bozen/Bolzano - Italia tel: +39-0471-568185 / fax: -- 568078 _ From mschulz at webgis.de Wed Mar 14 06:33:08 2001 From: mschulz at webgis.de (Michael Schulz - GIS Bearbeiter) Date: Wed, 14 Mar 2001 15:33:08 +0100 Subject: Bivariate legend Message-ID: <3AAF8124.FC6F6BFD@webgis.de> Hi MapServers! I was wondering if anyone has tried to implement in a mapserver application a layer with a bivariate classification, i.e. a classification where a class is defined by a combination of two attribute items? One way would be obviously to create a new field in the dbf attribute table, that combines the two items in one unique value. Are there other ways? TIA, Michael -------------------------------------------------------- Michael Schulz in medias res GmbH www.webgis.de From steve.lime at dnr.state.mn.us Wed Mar 14 07:59:51 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 14 Mar 2001 09:59:51 -0600 Subject: Bivariate legend Message-ID: Best performance would be seen with a single item classification. You can certainly use logical expressions to do the same thing at runtime. for example ([ITEM1] eq 5 and [ITEM2] > 14.9) Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Michael Schulz - GIS Bearbeiter 03/14/01 08:33AM >>> Hi MapServers! I was wondering if anyone has tried to implement in a mapserver application a layer with a bivariate classification, i.e. a classification where a class is defined by a combination of two attribute items? One way would be obviously to create a new field in the dbf attribute table, that combines the two items in one unique value. Are there other ways? TIA, Michael -------------------------------------------------------- Michael Schulz in medias res GmbH www.webgis.de From steve.lime at dnr.state.mn.us Wed Mar 14 08:02:10 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 14 Mar 2001 10:02:10 -0600 Subject: Query map without zoom in Message-ID: Yup, don't use the mapext=shapes option. In that case it should default to the extent of the previous map (i.e. the one the selection was done in). You may have to explicitly set any zoom parameters (i.e. zoom or zoomdir) to a values consistant with panning when the query is submitted. Steve >>> Armin Burger 03/14/01 04:07AM >>> Is there a possibility using a query map (style highlite) but without causing the map to zoom in to the selected feature(s)? Im using a query map defined equally to the 'normal' map, i.e. the header and footer defined under WEB object are producing a replica of the original html document. My intention is just to have an identify function for features on the map (with the attributes of selected features below) but without always opening respectively changing to another browser window. I don't know if there are any other solutions for this. Armin -- Armin Burger Territorium Online Siemensstrasse/Via Siemens 19 - I-39100 Bozen/Bolzano - Italia tel: +39-0471-568185 / fax: -- 568078 _ From steve.lime at dnr.state.mn.us Wed Mar 14 08:08:32 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 14 Mar 2001 10:08:32 -0600 Subject: Zoom to full extent Message-ID: The way I've done that is to store the default extent IN the EXTENT parameter. The MapServer will fall back to that value if no other extent is given which saves screwing around with other parameters. Then I create a javascript function that detects when the right radio button is checked, like: function zoomfull() { for(var i=0; i>> Robert Stanton 03/13/01 10:12AM >>> I have been trying to create a radio button, along with my zoom and pan buttons, that would expand a map to its original full extent, using [mapxy] and [scale], to no avail. I would be grateful if someone could tell me if I'm on the right idea, and if so what the exact syntax of the radio input would be. Thanks in advance Robert Stanton From frank.koormann at intevation.de Wed Mar 14 23:37:45 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Thu, 15 Mar 2001 08:37:45 +0100 Subject: Error with demo_footer.html In-Reply-To: =?iso-8859-1?Q?=3C20010313020712=2E6291=2Eqmail=40web4201=2Email=2Eyahoo?= =?iso-8859-1?Q?=2Ecom=3E=3B_from_bertha=5Fbonita=40yahoo=2Ecom_on_Mon=2C?= =?iso-8859-1?Q?_M=E4r_12=2C_2001_at_06:07:12_-0800?= References: <20010313020712.6291.qmail@web4201.mail.yahoo.com> Message-ID: <20010315083745.A13613@abnoba.intevation.de> Hi Bertha, * bertha amalia serrato de la cruz (bertha_bonita at yahoo.com) [010313 03:50]: > hi list. > > I'm working with ms.33010 > and download the latest demo interface, but i have a > problem when the results of query display, because one > of the image doesnt' display from the demo_footer.html > As far as I know some features in the newest demo are not provided by MapServer version 3.3.010. Namely the query map. Under what OS are you running MapServer? For Linux I can suggest you the FreeGIS projects package of map server located under: ftp://ftp.linux-magazin.de/pub/GIS/mapserver-3.3.011-1.i586.rpm Altough a bit outdated it is a good starting point, running out of the box. Regards, Frank -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ From EricSteele at psu.edu Thu Mar 15 07:37:24 2001 From: EricSteele at psu.edu (Eric Steele) Date: Thu, 15 Mar 2001 10:37:24 -0500 Subject: Queryfile crashes MapServer? Message-ID: Hi all, I've been working on getting the saveQuery/queryFile functionality going in my application (with lots of help from Steve). It's currently saving the .qy file, but when I try to use the queryfile option, it's crashing MapServer. I found a few related messages in the archives which noted that not having the queryitem or query tags in the layer may cause it to crash, but it doesn't look like that's my problem. Any ideas? Thanks, Eric Eric M. Steele Senior Research Technologist Land Analysis Laboratory, Penn State University EricSteele at psu.edu 814-863-8717 From ksibson at matrix.net Thu Mar 15 12:14:33 2001 From: ksibson at matrix.net (Keith Sibson) Date: Thu, 15 Mar 2001 14:14:33 -0600 (CST) Subject: mapserv bug Message-ID: V3.4 goes into an infinite resource aquiring loop when it encounters NaN in dbf or shp files. Needless to say that this is a serious issue for the web server. NaN is probably illegal in the shapefile format, but it may be worth at least having a compile option to trap this in mapserv for debugging purposes. If you can't reproduce this I can provide more details. Keith. From Robin.Ellis at dnr.qld.gov.au Thu Mar 15 18:42:58 2001 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Fri, 16 Mar 2001 12:42:58 +1000 Subject: HTML vs Applets Message-ID: G'day list. I'm pleased to be able to present our new Burnett Catchment Land Resource Info System. From the following URL you'll find links to the Java system that has been in operation for a while now. The new system, however, can be found from the small link reading 'Simple HTML Based System' near the bottom of the intro page. This new system utilises frames and javascript, meaning that for the few GIS function we provide to users we can do away with having to use a Java applet. Why would we do this? We've found that some of our closest colleagues in similar Govt Departments can't get applets through their Firewalls. We think they may be the tip of the iceberg, and so developed the HTML/javascript system. This HTML system mimicks all of the functionality provided by the old Java system we had implemented - dragging boxes for zooms and queries etc. The visual drawing of drab boxes is acheived with some DHTML and layers. The amazing thing about all this is that to the best of my knowledge this HTML/javascript system is more cross-browser compatible than our old Java stuff. It even works on NS6. Please have a look sometime and if you have any comments, pass them on. I'm particularly interested to see how it all works on platforms other than my PC (Maybe a Mac user would be kind enough to have a look). It's all still pretty rough at this time, and the javascript can be made more efficient as we get more development time. http://www.dnr.qld.gov.au/resourcenet/land/lris/webgis/burnett/ Thanks for any comments Rob PS you might also find links off to the Sugar Soils Info System. This is employing the same technology, but is not operational at the moment. Hopefully the appropriate files will be copied in to production in the next couple of days. Robin Ellis Land Resources Officer Department of Natural Resources Burnett District ph: 07 4131 5771 fax: 07 4131 5823 Robin.Ellis at dnr.qld.gov.au ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From gasser at rockriverstar.com Thu Mar 15 21:10:52 2001 From: gasser at rockriverstar.com (Nathan Gasser) Date: Fri, 16 Mar 2001 00:10:52 -0500 Subject: Mapserver + Flash? Message-ID: <20010316001052.C16489@rockriverstar.com> Hi all, Has anyone tried a Flash interface to MapServer? It seems like you could do great things on the client side with rollovers and smooth animated scrolling and so forth. I know there's a Perl::Flash module, and combined with MapScript, maybe something could be done? Just curious, From Robin.Ellis at dnr.qld.gov.au Thu Mar 15 21:26:35 2001 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Fri, 16 Mar 2001 15:26:35 +1000 Subject: HTML vs Applets Message-ID: Thanks John. It's amazing how quickly something can go wrong. In the time it took for me to send out the previous email an error has occured on our production server, resulting in an essential file going missing. I'll try and trck down the problem, but probably won't have a solution for 2 days, as it is getting late on Frday afternoon here. Rob -----Original Message----- From: John Carlson [mailto:carlson14 at llnl.gov] Sent: Friday, 16 March 2001 15:17 To: Robin.Ellis at dnr.qld.gov.au Subject: Re: HTML vs Applets msLoadMap(): Unable to access file. (/web/insite/htdocs/resourcenet/land/lris/webgis/burnett/maps/lsys.map) on windows NT. John Carlson At 12:42 PM 3/16/01 +1000, you wrote: >G'day list. > I'm pleased to be able to present our new Burnett Catchment Land >Resource Info System. From the following URL you'll find links to the Java >system that has been in operation for a while now. The new system, however, >can be found from the small link reading 'Simple HTML Based System' near the >bottom of the intro page. > >This new system utilises frames and javascript, meaning that for the few GIS >function we provide to users we can do away with having to use a Java >applet. Why would we do this? We've found that some of our closest >colleagues in similar Govt Departments can't get applets through their >Firewalls. We think they may be the tip of the iceberg, and so developed the >HTML/javascript system. > >This HTML system mimicks all of the functionality provided by the old Java >system we had implemented - dragging boxes for zooms and queries etc. The >visual drawing of drab boxes is acheived with some DHTML and layers. The >amazing thing about all this is that to the best of my knowledge this >HTML/javascript system is more cross-browser compatible than our old Java >stuff. It even works on NS6. > >Please have a look sometime and if you have any comments, pass them on. I'm >particularly interested to see how it all works on platforms other than my >PC (Maybe a Mac user would be kind enough to have a look). It's all still >pretty rough at this time, and the javascript can be made more efficient as >we get more development time. > >http://www.dnr.qld.gov.au/resourcenet/land/lris/webgis/burnett/ > >Thanks for any comments > >Rob > >PS you might also find links off to the Sugar Soils Info System. This is >employing the same technology, but is not operational at the moment. >Hopefully the appropriate files will be copied in to production in the next >couple of days. > > >Robin Ellis >Land Resources Officer >Department of Natural Resources >Burnett District >ph: 07 4131 5771 >fax: 07 4131 5823 >Robin.Ellis at dnr.qld.gov.au > > > >************************************************************************ >The information in this e-mail together with any attachments is >intended only for the person or entity to which it is addressed >and may contain confidential and/or privileged material. > >Any form of review, disclosure, modification, distribution >and/or publication of this e-mail message is prohibited. > >If you have received this message in error, you are asked to >inform the sender as quickly as possible and delete this message >and any copies of this message from your computer and/or your >computer system network. >************************************************************************ ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From ycnyon at dacafe.com Thu Mar 15 22:07:27 2001 From: ycnyon at dacafe.com (ycnyon at dacafe.com) Date: Thu, 15 Mar 2001 22:07:27 -0800 Subject: Point symbol using a GIF image Message-ID: <984722847.mailspinnerdV3.2.5.3@smtp.dacafe.com> Hi, I am trying to put a gif image as the symbol in a point shape file. However, it didn't work although i specified in the LAYER object as 'type point' and made sure I have a gif file specfied at MARKERSET "f:\Map\marker.sym". Thanks. _____________________________________________________________ Tired of limited space on Yahoo and Hotmail? Free 100 Meg email account available at http://www.dacafe.com From gruecker at zebris-geoconsult.de Fri Mar 16 03:23:45 2001 From: gruecker at zebris-geoconsult.de (=?iso-8859-1?Q?Gernot_R=FCcker?=) Date: Fri, 16 Mar 2001 12:23:45 +0100 Subject: HTML vs Applets References: Message-ID: <006501c0ae0b$9045a310$0301a8c0@testrechner> Hi Robin, The HTML doesn't work on my system (IE 5.0, NT 4.0 SP 6). I get this error: msLoadMap(): Unable to access file. (/web/insite/htdocs/resourcenet/land/lris/webgis/burnett/maps/lsys.map) What's wrong? Gernot ----- Original Message ----- From: To: Sent: Friday, March 16, 2001 3:42 AM Subject: HTML vs Applets > G'day list. > I'm pleased to be able to present our new Burnett Catchment Land > Resource Info System. From the following URL you'll find links to the Java > system that has been in operation for a while now. The new system, however, > can be found from the small link reading 'Simple HTML Based System' near the > bottom of the intro page. > > This new system utilises frames and javascript, meaning that for the few GIS > function we provide to users we can do away with having to use a Java > applet. Why would we do this? We've found that some of our closest > colleagues in similar Govt Departments can't get applets through their > Firewalls. We think they may be the tip of the iceberg, and so developed the > HTML/javascript system. > > This HTML system mimicks all of the functionality provided by the old Java > system we had implemented - dragging boxes for zooms and queries etc. The > visual drawing of drab boxes is acheived with some DHTML and layers. The > amazing thing about all this is that to the best of my knowledge this > HTML/javascript system is more cross-browser compatible than our old Java > stuff. It even works on NS6. > > Please have a look sometime and if you have any comments, pass them on. I'm > particularly interested to see how it all works on platforms other than my > PC (Maybe a Mac user would be kind enough to have a look). It's all still > pretty rough at this time, and the javascript can be made more efficient as > we get more development time. > > http://www.dnr.qld.gov.au/resourcenet/land/lris/webgis/burnett/ > > Thanks for any comments > > Rob > > PS you might also find links off to the Sugar Soils Info System. This is > employing the same technology, but is not operational at the moment. > Hopefully the appropriate files will be copied in to production in the next > couple of days. > > > Robin Ellis > Land Resources Officer > Department of Natural Resources > Burnett District > ph: 07 4131 5771 > fax: 07 4131 5823 > Robin.Ellis at dnr.qld.gov.au > > > > ************************************************************************ > The information in this e-mail together with any attachments is > intended only for the person or entity to which it is addressed > and may contain confidential and/or privileged material. > > Any form of review, disclosure, modification, distribution > and/or publication of this e-mail message is prohibited. > > If you have received this message in error, you are asked to > inform the sender as quickly as possible and delete this message > and any copies of this message from your computer and/or your > computer system network. > ************************************************************************ > From sell at spektra.de Fri Mar 16 06:03:53 2001 From: sell at spektra.de (Burkhard Sell) Date: Fri, 16 Mar 2001 15:03:53 +0100 Subject: HTML vs Applets Message-ID: <91531C2EF097D94ABD7C10E7E914D3C08A4E@victoria.spektra.de> i believe this is the unix syntax for the file url, for NT you must have something like: c:\web\insite\htdocs\resourcenet\land\lris\webgis\burnett\maps\lsys.map tell me if it was correct or not burkhard sell -----Original Message----- From: Gernot R?cker [mailto:gruecker at zebris-geoconsult.de] Sent: Friday, March 16, 2001 12:24 PM To: Robin.Ellis at dnr.qld.gov.au; Mapserver Userlist Subject: Re: HTML vs Applets Hi Robin, The HTML doesn't work on my system (IE 5.0, NT 4.0 SP 6). I get this error: msLoadMap(): Unable to access file. (/web/insite/htdocs/resourcenet/land/lris/webgis/burnett/maps/lsys.map) What's wrong? Gernot ----- Original Message ----- From: To: Sent: Friday, March 16, 2001 3:42 AM Subject: HTML vs Applets > G'day list. > I'm pleased to be able to present our new Burnett Catchment Land > Resource Info System. From the following URL you'll find links to the Java > system that has been in operation for a while now. The new system, however, > can be found from the small link reading 'Simple HTML Based System' near the > bottom of the intro page. > > This new system utilises frames and javascript, meaning that for the few GIS > function we provide to users we can do away with having to use a Java > applet. Why would we do this? We've found that some of our closest > colleagues in similar Govt Departments can't get applets through their > Firewalls. We think they may be the tip of the iceberg, and so developed the > HTML/javascript system. > > This HTML system mimicks all of the functionality provided by the old Java > system we had implemented - dragging boxes for zooms and queries etc. The > visual drawing of drab boxes is acheived with some DHTML and layers. The > amazing thing about all this is that to the best of my knowledge this > HTML/javascript system is more cross-browser compatible than our old Java > stuff. It even works on NS6. > > Please have a look sometime and if you have any comments, pass them on. I'm > particularly interested to see how it all works on platforms other than my > PC (Maybe a Mac user would be kind enough to have a look). It's all still > pretty rough at this time, and the javascript can be made more efficient as > we get more development time. > > http://www.dnr.qld.gov.au/resourcenet/land/lris/webgis/burnett/ > > Thanks for any comments > > Rob > > PS you might also find links off to the Sugar Soils Info System. This is > employing the same technology, but is not operational at the moment. > Hopefully the appropriate files will be copied in to production in the next > couple of days. > > > Robin Ellis > Land Resources Officer > Department of Natural Resources > Burnett District > ph: 07 4131 5771 > fax: 07 4131 5823 > Robin.Ellis at dnr.qld.gov.au > > > > ************************************************************************ > The information in this e-mail together with any attachments is > intended only for the person or entity to which it is addressed > and may contain confidential and/or privileged material. > > Any form of review, disclosure, modification, distribution > and/or publication of this e-mail message is prohibited. > > If you have received this message in error, you are asked to > inform the sender as quickly as possible and delete this message > and any copies of this message from your computer and/or your > computer system network. > ************************************************************************ > From polt at snaptek.com Fri Mar 16 08:25:43 2001 From: polt at snaptek.com (Jason Poulter) Date: Fri, 16 Mar 2001 09:25:43 -0700 Subject: Maps? Message-ID: <3AB23E87.6F5F8C34@snaptek.com> So where do I go about getting maps to put on my mapserver that I got up and running? Can I use the Tiger maps? Is there a way to convert them? Any help for a new MapServer person greatly appreciated. Thanks Jason From steve.lime at dnr.state.mn.us Fri Mar 16 08:26:43 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 16 Mar 2001 10:26:43 -0600 Subject: Mapserver + Flash? Message-ID: I've used flash buttons to control things but never wrapped everything. Because flash has excellent javascript integration I would think you could take the client-side mapserver javascript library I've already written and call it from flash. You can see that in action with a java frontend at maps.dnr.state.mn.us/landview. All that would really have to be new in flash besides buttons and such is the rubber-band box drawing. I don't think you'd even need mapscript although you could use custom backends to produce images or queries. Neat idea anyway. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Nathan Gasser 03/15/01 11:10PM >>> Hi all, Has anyone tried a Flash interface to MapServer? It seems like you could do great things on the client side with rollovers and smooth animated scrolling and so forth. I know there's a Perl::Flash module, and combined with MapScript, maybe something could be done? Just curious, From thfischer at mapmedia.de Fri Mar 16 08:58:26 2001 From: thfischer at mapmedia.de (Thorsten Fischer) Date: Fri, 16 Mar 2001 17:58:26 +0100 Subject: HTML template naming Message-ID: <01031618051600.02164@grobi> Dear list, I noticed that HTML templates in the WEB section have to be named with a .html suffix. That means, WEB TEMPLATE template.html [ ... stuff .. ] END will be accepted my mapserver, but WEB TEMPLATE template.phtml [ ... stuff .. ] END will throw the following error: Content-type: text/html returnHTML(): Web application error. Malformed template name. My question is: is this a desired behaviour? Some webservers are configured to let php code be executed from .phtml and/or .php files only. What am I to do if there is code that must be executed in my .phtml templates? I did not check if the same restrictions apply to the header and footer directives as well, but I guess that they use the same template name parsing. Thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From steve.lime at dnr.state.mn.us Fri Mar 16 09:29:11 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 16 Mar 2001 11:29:11 -0600 Subject: HTML template naming Message-ID: We just need to expand the regular expression that governs template extensions. Find the line in map.h and change: #define MS_TEMPLATE_EXPR "\\.(wm|htm)l?$" to #define MS_TEMPLATE_EXPR "\\.(wm|htm|phtm)l?$" Just for clarification, I haven't used PHP much, but I didn't think it was possible for mapserver output (i.e. parsed templates) to be parsed again by php or anything else before the client recieves it. That's why .wml, .html, and .htm where the only allowed template types. There was an Apache module to allow SSI in CGI output but I never tried it. I could be way off base though, could somebody confirm that? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Thorsten Fischer 03/16/01 10:58AM >>> Dear list, I noticed that HTML templates in the WEB section have to be named with a .html suffix. That means, WEB TEMPLATE template.html [ ... stuff .. ] END will be accepted my mapserver, but WEB TEMPLATE template.phtml [ ... stuff .. ] END will throw the following error: Content-type: text/html returnHTML(): Web application error. Malformed template name. My question is: is this a desired behaviour? Some webservers are configured to let php code be executed from .phtml and/or .php files only. What am I to do if there is code that must be executed in my .phtml templates? I did not check if the same restrictions apply to the header and footer directives as well, but I guess that they use the same template name parsing. Thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From teb at mallit.fr.umn.edu Fri Mar 16 09:48:55 2001 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 16 Mar 2001 11:48:55 -0600 (CST) Subject: truetype symbols (FWD) Message-ID: <200103161748.LAA13311@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Thu, 15 Mar 2001 16:35:11 -0500 From: fred warnock X-Accept-Language: en MIME-Version: 1.0 To: mapserver-info at lists.gis.umn.edu Subject: truetype symbols Content-Transfer-Encoding: 7bit The documentation is not clear on this. I want to use a character from the wingding.ttf font as a symbol on the map. in my fontset file, I have listed a few fonts including wingding. I tried to define it in my symbol file, but I think I'm missing something. Symbol Type truetype Font wingding Character 'S' Antialias END has anyone sucessfully used a font character as a symbol on a map? -- Fred Warnock Web, Graphic & Cartographic Design DM Solutions Group Inc. web : http://www.dmsolutions.ca eMail : fredrock at magma.ca 116 Lisgar Street, Suite 400 Ottawa, Ontario, Canada, K2P 0C2 tel: (613) 565-5056 fax: (707) 222-1943 ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Fri Mar 16 09:52:14 2001 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 16 Mar 2001 11:52:14 -0600 (CST) Subject: CGI problem (FWD) Message-ID: <200103161752.LAA13315@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: Eric Tang To: "'mapserver-info at lists.gis.umn.edu'" Subject: CGI problem Date: Fri, 16 Mar 2001 07:47:47 -0000 Mime-Version: 1.0 Hi! I had set up few example at my d:\mapserver\ drive. At first I only have the demo.map in the d:\mapserver\, so it can run smoothly. Now I had an another example, store in the d:\mapserver\examples\ folder. I made a index file in d:\mapserver\ for link up to another examples. That means the anothers data folder & the header\ footer.html is located in the d:\mapserver\examples\usa\data\. I hope you understand me. And the USA.map had moved to d:\mapserver\ and change the syntax inside. Mainly I had only change the path of the header/ footer & data link. As the result, I open the localhost. It show the new index.html, and I made a button to link the new example. Yeah! It can run at behind, I can't see the image correctly. But I checked the tmt folder in d:\mapserver\examples\use\tmt, it had created the all components of *.gif(legend, reference pic, map pci...) after I hit the map window. How It can run muilt map in the one server? Cheers, Eric ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Fri Mar 16 10:15:24 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Fri, 16 Mar 2001 13:15:24 -0500 Subject: HTML template naming Message-ID: <2951561DB3DDD0118FEC00805FFE9805049422CB@s5-ccr-r1> This I beleive is a restriction of CGI Behavior. The output from a CGI program is sent straight out to the client, and usually isn't interpreted anywhere else. Because you use the CGI Version of mapserver, the templates HAVE to be static. At least, so far as I know. If someone knows how to do what is suggested here, I'd LOVE to hear about it ! J.F. > ---------- > From: Thorsten Fischer[SMTP:thfischer at mapmedia.de] > Sent: Friday, March 16, 2001 11:58 AM > To: mapserver-users at lists.gis.umn.edu > Subject: HTML template naming > > > Dear list, > > > I noticed that HTML templates in the WEB section have to be named with a > .html > suffix. That means, > > WEB > TEMPLATE template.html > [ ... stuff .. ] > END > > will be accepted my mapserver, but > > WEB > TEMPLATE template.phtml > [ ... stuff .. ] > END > > will throw the following error: > > Content-type: text/html returnHTML(): Web application error. Malformed > template > name. > > My question is: is this a desired behaviour? Some webservers are > configured to > let php code be executed from .phtml and/or .php files only. What am I to > do > if there is code that must be executed in my .phtml templates? > > I did not check if the same restrictions apply to the header and footer > directives as well, but I guess that they use the same template name > parsing. > > > Thorsten > > -- > > Thorsten Fischer thfischer at mapmedia.de > > --------------------------------------------------------- > MapMedia - Kartographie und raumbezogene Informationssysteme > Am Borsigturm 42 > 13507 Berlin > Deutschland > http://www.mapmedia.de tel: +49 (0)30 43032102 > --------------------------------------------------------- > > From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Fri Mar 16 10:19:47 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Fri, 16 Mar 2001 13:19:47 -0500 Subject: Mapserver + Flash? Message-ID: <2951561DB3DDD0118FEC00805FFE9805049422CC@s5-ccr-r1> I don't know about integrating MapServer with Flash directly, but I've seen a spanish company that had developped web mapping tools using flash, you can find the stuff at www.imapper.com. This is precisely the kind of functionality that would be possible with a plug-in type output architecture. The output of the Mapserver would go either through GD for raster, or some other plug-in for various vector output formats, such as Flash or SVG. J.F. > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Friday, March 16, 2001 11:26 AM > To: mapserver-users at lists.gis.umn.edu; gasser at rockriverstar.com > Subject: Re: Mapserver + Flash? > > I've used flash buttons to control things but never wrapped everything. > Because flash has > excellent javascript integration I would think you could take the > client-side mapserver javascript > library I've already written and call it from flash. You can see that in > action with a java frontend > at maps.dnr.state.mn.us/landview. All that would really have to be new in > flash besides buttons > and such is the rubber-band box drawing. I don't think you'd even need > mapscript although you > could use custom backends to produce images or queries. Neat idea anyway. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Nathan Gasser 03/15/01 11:10PM >>> > > Hi all, > > Has anyone tried a Flash interface to MapServer? It seems > like you could do great things on the client side with > rollovers and smooth animated scrolling and so forth. > > I know there's a Perl::Flash module, and combined > with MapScript, maybe something could be done? > > Just curious, > From bowenj at peligroso.gaiaenv.com Fri Mar 16 10:23:41 2001 From: bowenj at peligroso.gaiaenv.com (Jim T. Bowen) Date: Fri, 16 Mar 2001 11:23:41 -0700 Subject: HTML template naming In-Reply-To: <01031618051600.02164@grobi> Message-ID: <002b01c0ae46$3b05bf30$0400a8c0@toro.gaiaenv.com> Poor man's patch: Use a httpd redirect to the PHP page... (e.g., ) -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Thorsten Fischer Sent: Friday, March 16, 2001 9:58 AM To: mapserver-users at lists.gis.umn.edu Subject: HTML template naming Dear list, I noticed that HTML templates in the WEB section have to be named with a .html suffix. That means, WEB TEMPLATE template.html [ ... stuff .. ] END will be accepted my mapserver, but WEB TEMPLATE template.phtml [ ... stuff .. ] END will throw the following error: Content-type: text/html returnHTML(): Web application error. Malformed template name. My question is: is this a desired behaviour? Some webservers are configured to let php code be executed from .phtml and/or .php files only. What am I to do if there is code that must be executed in my .phtml templates? I did not check if the same restrictions apply to the header and footer directives as well, but I guess that they use the same template name parsing. Thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From kames at keyspanenergy.com Fri Mar 16 12:07:47 2001 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Fri, 16 Mar 2001 15:07:47 -0500 Subject: Querying capabilities Message-ID: <3AB27293.CE9349D8@keyspanenergy.com> Hello list. I'd like to ask a question about querying. Does Mapserver support this...? I have several layers rendered via the map file: Points, lines, polygons, more lines, more points, etc. I only have one of them defined as being queried. Can I define several (with different query templates) and let the user select which he/she wants to view details on? If so, any examples out there? Thanks for all your help. Kieran From steve.lime at dnr.state.mn.us Fri Mar 16 12:14:48 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 16 Mar 2001 14:14:48 -0600 Subject: Querying capabilities Message-ID: Sure, you can restrict queries to a single layer using the form parameter "qlayer". You'd do this with a radio button so only a single layer would be active at any one time. I believe the Burnett Catchment system demonstates this. http://www.dnr.qld.gov.au/resourcenet/land/lris/webgis/burnett/ Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Kieran J. Ames" 03/16/01 02:07PM >>> Hello list. I'd like to ask a question about querying. Does Mapserver support this...? I have several layers rendered via the map file: Points, lines, polygons, more lines, more points, etc. I only have one of them defined as being queried. Can I define several (with different query templates) and let the user select which he/she wants to view details on? If so, any examples out there? Thanks for all your help. Kieran From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Fri Mar 16 13:03:23 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Fri, 16 Mar 2001 16:03:23 -0500 Subject: Querying capabilities Message-ID: <2951561DB3DDD0118FEC00805FFE9805049422D2@s5-ccr-r1> Yes, you can, Although I don't have examples. Your web interface will simply provide a list of layers available to be queried, such that the user can click a check box for instance. The "NAME" for this parameter will be "qlayers" (Layers to be queried). And yes you can specify a template for each, and then use the head and footer to surround the whole thing (I.e. the HTML/BODY tags for example). Hope this helps, J.F. > ---------- > From: Kieran J. Ames[SMTP:kames at keyspanenergy.com] > Sent: Friday, March 16, 2001 3:07 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Querying capabilities > > Hello list. I'd like to ask a question about querying. > > Does Mapserver support this...? > I have several layers rendered via the map file: Points, lines, > polygons, more lines, more points, etc. I only have one of them defined > as being queried. > Can I define several (with different query templates) and let the user > select which he/she wants to view details on? If so, any examples out > there? > Thanks for all your help. > Kieran > > From kames at keyspanenergy.com Fri Mar 16 13:31:09 2001 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Fri, 16 Mar 2001 16:31:09 -0500 Subject: Querying capabilities References: Message-ID: <3AB2861D.C9BCFE68@keyspanenergy.com> Thanks! The Burnett site is very nice... well thought out (with the exception of the "Simple HTML Based System" experiencing some problems). Is the Java interface available? Is it documented? Anyway, thanks for the guidance. Kieran Stephen Lime wrote: > Sure, you can restrict queries to a single layer using the form parameter "qlayer". You'd > do this with a radio button so only a single layer would be active at any one time. I > believe the Burnett Catchment system demonstates this. > > http://www.dnr.qld.gov.au/resourcenet/land/lris/webgis/burnett/ > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Kieran J. Ames" 03/16/01 02:07PM >>> > Hello list. I'd like to ask a question about querying. > > Does Mapserver support this...? > I have several layers rendered via the map file: Points, lines, > polygons, more lines, more points, etc. I only have one of them defined > as being queried. > Can I define several (with different query templates) and let the user > select which he/she wants to view details on? If so, any examples out > there? > Thanks for all your help. > Kieran From M.Spring at gmx.de Sun Mar 18 13:03:16 2001 From: M.Spring at gmx.de (Markus W. Spring) Date: 18 Mar 2001 22:03:16 +0100 Subject: truetype symbols (FWD) In-Reply-To: <200103161748.LAA13311@mallit.fr.umn.edu> References: <200103161748.LAA13311@mallit.fr.umn.edu> Message-ID: Yes, I have done this: Beginning of my marker.sym: FONTSET /data/mapserver/etc/symbols/fonts/fonts.list # Truetype Symbol from Font ESRI Geometric Symbols SYMBOL NAME 'esrigs35' TYPE TRUETYPE FONT "ESRI_Geometric_Symbols" CHARACTER "#" END Relevant part of my fonts.list: ESRI_Geometric_Symbols esri_3.ttf Hope this helps. Markus From mark.wilson at rohoel.at Mon Mar 19 00:21:03 2001 From: mark.wilson at rohoel.at (mark.wilson at rohoel.at) Date: Mon, 19 Mar 2001 09:21:03 +0100 Subject: Maps? Message-ID: There are many places to get map data. But whether you can use it will depend upon your geographic area of interest, what you want to display, whether your use is non-commercial or not, etc. You may find resources available from ESRI's Geography Network ( http://www.geographynetwork.com/data/index.html ), but these generally come with some sort licence restrictions (check for yourself). Also try some of the sites listed at http://www.freegis.org Personally, I have taken my worldwide country data from the offering from Blue Marble Geographics ( http://www.bluemarblegeo.com ). mark W. Jason Poulter on 16/03/2001 17:25:43 To: mapserver-users at lists.gis.umn.edu cc: (bcc: Mark H Wilson/RAG/AT) Subject: Maps? So where do I go about getting maps to put on my mapserver that I got up and running? Can I use the Tiger maps? Is there a way to convert them? Any help for a new MapServer person greatly appreciated. Thanks Jason From jsmedsmo at gis.umn.edu Mon Mar 19 09:28:58 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Mon, 19 Mar 2001 11:28:58 -0600 Subject: [Fwd: ok!] Message-ID: <3AB641DA.A17267C6@gis.umn.edu> Robert Schmitz-H?bsch wrote: > Right now, I compiled and installed the MapServer on Sun Solaris 8, > SPARC-20-architecture.As I run the "demo_init.html"-file, I get the > error-messagemsLoadMap(): Premature End-of-File. Undefined symbolas > described in your troubleshooting-section.I counted over the > "END"-directives, but somehow, I think they are in the right place and > enough of them as well as not too many of them.I sent you the > config-file, so if you have the time you might be able to go over it > and tell me what I did wrong.You would make me very happy :-))Thank > you in advance,Robert Schmitz-H?bsch > > Vahrenwalder Str. 171 > 30165 Hannover > Germany > > Tel. +49-(0)511-3502011 > e-mail huebschy at gmx.de > > ICQ: 84013702 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Schach.gif Type: image/gif Size: 2947 bytes Desc: not available URL: From ycnyon at pd.jaring.my Mon Mar 19 08:22:40 2001 From: ycnyon at pd.jaring.my (Nyon) Date: Tue, 20 Mar 2001 00:22:40 +0800 Subject: Text-based scale (ie. 1: XXXX) Message-ID: <200103192339.f2JNdY417322@smtp2.jaring.my> Hi, In order to set the MAXSCALE and MINSCALE, I need to know the current scale of the map in text form, like 1: 130033. I have seen some applications having it. Can anyone pass the template or map file (or snippets will do) doing this. Thanks Nyon From abernatj at yahoo.com Mon Mar 19 18:54:44 2001 From: abernatj at yahoo.com (Andy Bernat) Date: Mon, 19 Mar 2001 18:54:44 -0800 (PST) Subject: basic problem Message-ID: <20010320025444.25639.qmail@web3704.mail.yahoo.com> Greetings all, I'm sure I'm doing something pretty basic wrong but I can't see what it is. I've gottent the demo maps to display but I can't seem to get any other shape files to display. One of the maps I tried to display is Minnesota census tracts from the ESRI CD that comes with Arcview. The .map file I used was the one from the demo with almost everything but the map taken out. It works with the county shape file that comes with the demo but when change the DATA and the Name to reflect the census tract shape file, the map is blank (frame, titles, everything else is there). The error log indicates that Mapserver thinks everything is fine: no errors. The only thing I can think of is that mapserver requires that the shape file be in a certain projection but then the documentation doesn't say anything about that so maybe that's not it. Any hints would be greatly appreciated. Regards, Andy Bernat. # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 SHADESET symbols/shade.sym MARKERSET symbols/marker.sym LINESET symbols/line.sym EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 SHAPEPATH "data" #IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB HEADER demo_header.html TEMPLATE demo2.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 155000000 IMAGEPATH "/usr/local/httpd/htdocs/tmp/" IMAGEURL "/tmp/" LOG "demo.log" END # # Start of layer definitions # LAYER NAME tracts TYPE POLYGON STATUS DEFAULT DATA mntrct CLASS COLOR 128 225 185 END END END # Map File __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From kafka at email.cz Mon Mar 19 23:01:04 2001 From: kafka at email.cz (Stepan Kafka) Date: Tue, 20 Mar 2001 08:01:04 +0100 Subject: Text-based scale (ie. 1: XXXX) In-Reply-To: <200103192339.f2JNdY417322@smtp2.jaring.my> Message-ID: <000a01c0b10b$87f3eac0$fb01a8c0@gis2.oku-kh.cz> Use [scale] keyword in the template file. You can also round the scale with javascript code: Stepan > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Nyon > Odesl?no: 19. b?ezna 2001 17:23 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: Text-based scale (ie. 1: XXXX) > > > Hi, > > In order to set the MAXSCALE and MINSCALE, I need to know the > current scale > > of the map in text form, like 1: 130033. I have seen some applications > having it. > Can anyone pass the template or map file (or snippets will do) doing this. > > Thanks > Nyon > From frank.koormann at intevation.de Tue Mar 20 00:08:48 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Tue, 20 Mar 2001 09:08:48 +0100 Subject: basic problem In-Reply-To: =?iso-8859-1?Q?=3C20010320025444=2E25639=2Eqmail=40web3704=2Email=2Eyaho?= =?iso-8859-1?Q?o=2Ecom=3E=3B_from_abernatj=40yahoo=2Ecom_on_Mon=2C_M=E4r?= =?iso-8859-1?Q?_19=2C_2001_at_06:54:44_-0800?= References: <20010320025444.25639.qmail@web3704.mail.yahoo.com> Message-ID: <20010320090848.A23581@abnoba.intevation.de> Hi Andy, Listers, * Andy Bernat (abernatj at yahoo.com) [010320 04:36]: > Greetings all, > I'm sure I'm doing something pretty basic wrong but I can't see what it > is. I've gottent the demo maps to display but I can't seem to get any > other shape files to display. One of the maps I tried to display is > Minnesota census tracts from the ESRI CD that comes with Arcview. The > .map file I used was the one from the demo with almost everything but > the map taken out. It works with the county shape file that comes with > the demo but when change the DATA and the Name to reflect the census > tract shape file, the map is blank (frame, titles, everything else is > there). The error log indicates that Mapserver thinks everything is > fine: no errors. > > The only thing I can think of is that mapserver requires that the shape > file be in a certain projection but then the documentation doesn't say > anything about that so maybe that's not it. > Not the projection but some information related are sometimes the pitfall: First you should drop the MIN/MAXSCALE from the web interface definition. Since you use the EXTENT settings of a different shape file (although of the same region) and there seems to be no UNITS information in your map file (eg. below the EXTENT: UNITS METERS) some stragnge behavior may be the result. You should check the extend and unit of your shape files and insert the right values. Regards, Frank -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ From berend.veldkamp at aris.nl Tue Mar 20 00:11:47 2001 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Tue, 20 Mar 2001 09:11:47 +0100 Subject: Text-based scale (ie. 1: XXXX) References: <200103192339.f2JNdY417322@smtp2.jaring.my> Message-ID: <3AB710C3.948BF410@aris.nl> Just add 'Scale: 1:[scale]' to your HTML template; Mapserver replaces [scale] by the current scale. Or, if your'using PHP you can do 'Scale: 1:scale; ?>'. Berend Nyon wrote: > > Hi, > > In order to set the MAXSCALE and MINSCALE, I need to know the current scale > > of the map in text form, like 1: 130033. I have seen some applications > having it. > Can anyone pass the template or map file (or snippets will do) doing this. > > Thanks > Nyon -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From ycnyon at pd.jaring.my Tue Mar 20 06:46:56 2001 From: ycnyon at pd.jaring.my (Nyon) Date: Tue, 20 Mar 2001 22:46:56 +0800 Subject: Graphic card in rendering maps Message-ID: <200103201445.f2KEjHU01236@smtp3.jaring.my> Hi, I am purchasing a server and was wondering if a good graphic card makes any difference to the quality and speed of the rendered maps. As you all know, servers normally come with the low cost graphic card. Regards Nyon From LindaU at gis.nl Tue Mar 20 07:20:02 2001 From: LindaU at gis.nl (Linda Ursem) Date: Tue, 20 Mar 2001 16:20:02 +0100 Subject: Rosa applet Message-ID: <01C0B159.9E9626A0.LindaU@gis.nl> Dear J.Root, I am trying to make a GIS application with Mapserver. I am working with the Rosa applet but I don't know what I have to write beside the IMG_URL. I have written: and the [img] refers to the map in the map file. Now the application zooms in only in one area. When I set the query button, the program says that there are no query results. I'll give you a part of my code, I hope you can help me fast. Thanks, Greetings Linda Ursem Lindau at gis.nl A part of my code:
From mschulz at webgis.de Tue Mar 20 07:33:07 2001 From: mschulz at webgis.de (Michael Schulz) Date: Tue, 20 Mar 2001 16:33:07 +0100 Subject: Rotating labels Message-ID: <3AB77833.A9588547@webgis.de> Dear List, i am drawing an annotation that is rotated according to a field in the dbf-file (with LABELANGLEITEM). It seems these rotation-values have been computed for a rotation in a counter clockwise sense, but Mapserver rotates it in the opposite direction. Is there a possibilty to recalculate this angle value on-the-fly or with an expression in the map-file (e.g. (360 - [ANGLE_ITEM]), or would i have to change something in the source code (if so, Steve, could you tell me where and what to look for?) ? Thanks, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Tue Mar 20 07:54:31 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 20 Mar 2001 10:54:31 -0500 Subject: Graphic card in rendering maps Message-ID: <2951561DB3DDD0118FEC00805FFE9805049422DC@s5-ccr-r1> Nope, makes no difference at all .... J.F. > ---------- > From: Nyon[SMTP:ycnyon at pd.jaring.my] > Sent: Tuesday, March 20, 2001 9:46 AM > To: mapserver-users at lists.gis.umn.edu > Subject: Graphic card in rendering maps > > Hi, > > I am purchasing a server and was wondering if a good graphic card makes > any difference to the quality and speed of the rendered maps. As you all > know, > servers normally come with the low cost graphic card. > > Regards > Nyon > From morissette at dmsolutions.ca Tue Mar 20 08:09:18 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 20 Mar 2001 11:09:18 -0500 Subject: Rosa applet References: <01C0B159.9E9626A0.LindaU@gis.nl> Message-ID: <3AB780AE.4B24F058@dmsolutions.ca> Linda Ursem wrote: > > Dear J.Root, > > I am trying to make a GIS application with Mapserver. I am working with the > Rosa applet but I don't know what I have to write beside the IMG_URL. I > have written: and the [img] refers to > the map in the map file. Now the application zooms in only in one area. > When I set the query button, the program says that there are no query > results. I'll give you a part of my code, I hope you can help me fast. Linda, The ROSA applet won't work directly with the MAPSERV.EXE CGI program. A patch needs to be applied to your MAPSERV.EXE for it to work... I never used that myself, but you can find all the info, including the source code for the changes to mapserv.c in the following message from the archive: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0011/msg00077.html Good Luck! -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From fuerp at atlas.gis.univie.ac.at Tue Mar 20 08:16:45 2001 From: fuerp at atlas.gis.univie.ac.at (Christian Fuerpasz) Date: Tue, 20 Mar 2001 17:16:45 +0100 Subject: Double Labels after PHP Function drawquerymap Message-ID: <3AB7826D.1891EEA3@atlas.gis.univie.ac.at> Hi! I am working with the PHPMapscript and Mapserver 3.4 on a Linux System. I am using the drawquerymap Function to show the result of a query highlight. But there appears something strange: I have made a screenshot, in which you can see the fault: http://apollo.gis.univie.ac.at/images/example.gif When i get the highlighted result there appears to be some of the labels twice there. If i make a redraw al labels are there once, as before the query. I have no idea how this comes. If somebody has noticed such a thing before, please inform me how you solved this. Thanks in advice Best greetings Christian Fuerpasz -- ________________________________________________________ Institut fuer Geographie der Universitaet Wien Kartographie und Geoinformation Deptartment of Geography and Regional Science University of Vienna Cartography and GIS Tel: (+43 1) 4277 48658 Fax: (+43 1) 4277 48649 E-Mail: mailto:fuerp at atlas.gis.univie.ac.at Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA WWW: http://www.gis.univie.ac.at/karto/ _______________________________________________________ From steve.lime at dnr.state.mn.us Tue Mar 20 08:23:31 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 20 Mar 2001 10:23:31 -0600 Subject: Fwd: Pre-compiled Execute File for Linux Server Message-ID: An embedded message was scrubbed... From: Eric Tang Subject: Pre-compiled Execute File for Linux Server Date: Tue, 20 Mar 2001 08:59:56 -0000 Size: 2587 URL: From steve.lime at dnr.state.mn.us Tue Mar 20 08:26:19 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 20 Mar 2001 10:26:19 -0600 Subject: Rotating labels Message-ID: You'll have to modify the source for now. Edit the msAddLabel function in maplabel.c to change the angle as it's put in the cache. Should be an easy hack. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Michael Schulz 03/20/01 09:33AM >>> Dear List, i am drawing an annotation that is rotated according to a field in the dbf-file (with LABELANGLEITEM). It seems these rotation-values have been computed for a rotation in a counter clockwise sense, but Mapserver rotates it in the opposite direction. Is there a possibilty to recalculate this angle value on-the-fly or with an expression in the map-file (e.g. (360 - [ANGLE_ITEM]), or would i have to change something in the source code (if so, Steve, could you tell me where and what to look for?) ? Thanks, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From steve.lime at dnr.state.mn.us Tue Mar 20 08:36:41 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 20 Mar 2001 10:36:41 -0600 Subject: Double Labels after PHP Function drawquerymap Message-ID: One workaround would be to set the label parameter MINDISTANCE to something like 50 for that layer. MISDISTANCE defines the minimum distance between duplicate labels. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Christian Fuerpasz 03/20/01 10:16AM >>> Hi! I am working with the PHPMapscript and Mapserver 3.4 on a Linux System. I am using the drawquerymap Function to show the result of a query highlight. But there appears something strange: I have made a screenshot, in which you can see the fault: http://apollo.gis.univie.ac.at/images/example.gif When i get the highlighted result there appears to be some of the labels twice there. If i make a redraw al labels are there once, as before the query. I have no idea how this comes. If somebody has noticed such a thing before, please inform me how you solved this. Thanks in advice Best greetings Christian Fuerpasz -- ________________________________________________________ Institut fuer Geographie der Universitaet Wien Kartographie und Geoinformation Deptartment of Geography and Regional Science University of Vienna Cartography and GIS Tel: (+43 1) 4277 48658 Fax: (+43 1) 4277 48649 E-Mail: mailto:fuerp at atlas.gis.univie.ac.at Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA WWW: http://www.gis.univie.ac.at/karto/ _______________________________________________________ From ycnyon at pd.jaring.my Tue Mar 20 16:21:14 2001 From: ycnyon at pd.jaring.my (Nyon) Date: Wed, 21 Mar 2001 08:21:14 +0800 Subject: Zooom/Pan interface using gif images rather than radio buttons Message-ID: <200103210020.f2L0Jx402414@smtp2.jaring.my> Hi, I was wondering if anyone can share how to navigate a map using gif images for the zoom/pan/search/recenter interface rather than using radio buttons and drop-down list box. Already check out some examples, either they are using java applets or the javascript is working in IE. Thanks Nyon From bitner at gyttja.org Wed Mar 21 06:18:10 2001 From: bitner at gyttja.org (David W Bitner) Date: Wed, 21 Mar 2001 08:18:10 -0600 Subject: Zooom/Pan interface using gif images rather than radio buttons Message-ID: <002c01c0b211$c623d880$6f6c2ec0@yardarm.nohrsc.nws.gov> You can use JavaScript and along with the images set onclick routines that call scripts that change the different form elements. If you view the source html from http://www.nohrsc.nws.gov/mapserv/ms_refmp you can see the approach that I took to solve this issue. I use Steve's applet to control a zoom box, but the controls are all done through javascript. There are no .js files so all the javascript should be at the top of the html source. If you have any questions about what any of the scripts are doing, I would be happy to answer. ********************************************************************* David William Bitner -- GIS/ Remote Sensing Specialist National Operational Hydrologic Remote Sensing Center National Weather Service, Chanhassen, MN 55317 work: bitner at nws.gov, http://www.nohrsc.nws.gov 952-361-6610 x231, fax: 952-361-6634 personal: bitner at gyttja.org, http://www.gyttja.org 651-335-5232 ********************************************************************* -----Original Message----- From: Nyon To: mapserver-users at lists.gis.umn.edu Date: Tuesday, March 20, 2001 8:37 PM Subject: Zooom/Pan interface using gif images rather than radio buttons >Hi, > >I was wondering if anyone can share how to navigate a map using gif images >for the zoom/pan/search/recenter interface rather than using radio buttons >and drop-down list box. >Already check out some examples, either they are using java applets or the >javascript >is working in IE. > >Thanks >Nyon > From kafka at email.cz Wed Mar 21 06:55:18 2001 From: kafka at email.cz (Stepan Kafka) Date: Wed, 21 Mar 2001 15:55:18 +0100 Subject: Zooom/Pan interface using gif images rather than radio buttons In-Reply-To: <200103210020.f2L0Jx402414@smtp2.jaring.my> Message-ID: <002501c0b216$f1c83b70$fb01a8c0@gis2.oku-kh.cz> Hi Nyon, there are many exmples in the gallery - using javascript interface. Our one is at http://www.oku-kh.cz/gis. You can use this. Stepan > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Nyon > Odesl?no: 21. b?ezna 2001 1:21 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: Zooom/Pan interface using gif images rather than radio buttons > > > Hi, > > I was wondering if anyone can share how to navigate a map using gif images > for the zoom/pan/search/recenter interface rather than using radio buttons > and drop-down list box. > Already check out some examples, either they are using java applets or the > javascript > is working in IE. > > Thanks > Nyon > From ycnyon at pd.jaring.my Wed Mar 21 07:05:55 2001 From: ycnyon at pd.jaring.my (Nyon) Date: Wed, 21 Mar 2001 23:05:55 +0800 Subject: Benefits of using Tile for Geotiff files Message-ID: <200103211504.f2LF4tV25376@smtp3.jaring.my> Hi, Here's my scenario. I got a bunch of tiff files (about 60) with corresponding world files. Is there any benefit of using a tile file to manage all this files. What are the benefits other than being more manageable and exist as a single layer in a map file ? Like any performance increase, etc ? Thanks Nyon From steve.lime at dnr.state.mn.us Wed Mar 21 08:10:19 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 21 Mar 2001 10:10:19 -0600 Subject: Benefits of using Tile for Geotiff files Message-ID: The performance increase is negligible, but the ease of management alone is worth it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Nyon" 03/21/01 09:05AM >>> Hi, Here's my scenario. I got a bunch of tiff files (about 60) with corresponding world files. Is there any benefit of using a tile file to manage all this files. What are the benefits other than being more manageable and exist as a single layer in a map file ? Like any performance increase, etc ? Thanks Nyon From a9502604 at unet.univie.ac.at Wed Mar 21 07:11:50 2001 From: a9502604 at unet.univie.ac.at (Christian Fuerpasz) Date: Wed, 21 Mar 2001 16:11:50 +0100 (MEZ) Subject: Double Labels after PHP Function drawquerymap In-Reply-To: Message-ID: Hi! Your solution is working correctly with MINDISTANCE 50. But i dont know what this is doing exactly? Thank you very much for your help Christian Fuerpasz On Tue, 20 Mar 2001, Stephen Lime wrote: > One workaround would be to set the label parameter MINDISTANCE to something > like 50 for that layer. MISDISTANCE defines the minimum distance between duplicate > labels. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Christian Fuerpasz 03/20/01 10:16AM >>> > Hi! > I am working with the PHPMapscript and Mapserver 3.4 on a Linux System. > I am using the drawquerymap Function to show the result of a query > highlight. But there appears something strange: > I have made a screenshot, in which you can see the fault: > http://apollo.gis.univie.ac.at/images/example.gif > > When i get the highlighted result there appears to be some of the labels > twice there. If i make a redraw al labels are there once, as before the > query. > > I have no idea how this comes. > > If somebody has noticed such a thing before, please inform me how you > solved this. > > Thanks in advice > > Best greetings > Christian Fuerpasz > > > -- > ________________________________________________________ > Institut fuer Geographie der Universitaet Wien > Kartographie und Geoinformation > > Deptartment of Geography and Regional Science > University of Vienna > Cartography and GIS > > Tel: (+43 1) 4277 48658 > Fax: (+43 1) 4277 48649 > E-Mail: mailto:fuerp at atlas.gis.univie.ac.at > Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA > > WWW: http://www.gis.univie.ac.at/karto/ > _______________________________________________________ > > > > From Matthew.Wakely at dsto.defence.gov.au Wed Mar 21 13:43:58 2001 From: Matthew.Wakely at dsto.defence.gov.au (Wakely, Matthew) Date: Thu, 22 Mar 2001 08:43:58 +1100 Subject: Using mapserv as a dynamic link library from a servlet Message-ID: <378C31E229CFD411B48B009027EE73C00DD0F8@fhpex002.dsto.defence.gov.au> Has anyone tried to convert mapserv to a .dll file and then call it using a java Servlet and Java Native Interface. My problem is that the mapserv program only seems to run once. Usually this would be ok because CGI programs run once then die. However I cant do that from a servlet. Basicly all i did was convert the main() function in mapserv.c to a function "callMapserv()" i could call from Java. The problem is that the program seems to crash when it tries to parse using maplexxer.c and mapparser.c. Has anyone encountered these problems before or could someone perhaps offer some advice. I suspect its because of all the global variables flying around within mapserv. From jean at square1.nl Wed Mar 21 12:31:25 2001 From: jean at square1.nl (Jean Haney) Date: Wed, 21 Mar 2001 21:31:25 +0100 Subject: subscribe Message-ID: <00df01c0b246$30272320$f7688418@a2000.nl> -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Wed Mar 21 14:24:47 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 21 Mar 2001 16:24:47 -0600 Subject: Using mapserv as a dynamic link library from a servlet Message-ID: Mapserv itself is built for CGI-only. You'd have better luck trying to develop java version of MapScript and then build servlets from that. I think I'd need to add a method to make a copy of a loaded mapObj that could be used with each request and then destroyed. Swig 1.3a will kick out JNI code and I've gone so far as to get the shared library compiled. I ran into problems compiling the class specific (i.e. layerObj, classObj) code into class files. I just screwed around for an hour or so and didn't work at it much. I'd love to see this work and will gladly try to accomodate code changes necessary to make it happen. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Wakely, Matthew" 03/21/01 03:43PM >>> Has anyone tried to convert mapserv to a .dll file and then call it using a java Servlet and Java Native Interface. My problem is that the mapserv program only seems to run once. Usually this would be ok because CGI programs run once then die. However I cant do that from a servlet. Basicly all i did was convert the main() function in mapserv.c to a function "callMapserv()" i could call from Java. The problem is that the program seems to crash when it tries to parse using maplexxer.c and mapparser.c. Has anyone encountered these problems before or could someone perhaps offer some advice. I suspect its because of all the global variables flying around within mapserv. From frank.koormann at intevation.de Thu Mar 22 00:13:20 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Thu, 22 Mar 2001 09:13:20 +0100 Subject: Zooom/Pan interface using gif images rather than radio buttons In-Reply-To: =?iso-8859-1?Q?=3C200103210020=2Ef2L0Jx402414=40smtp2=2Ejaring=2Emy=3E?= =?iso-8859-1?Q?=3B_from_ycnyon=40pd=2Ejaring=2Emy_on_Mit=2C_M=E4r_21=2C_?= =?iso-8859-1?Q?2001_at_08:21:14_+0800?= References: <200103210020.f2L0Jx402414@smtp2.jaring.my> Message-ID: <20010322091320.A13958@abnoba.intevation.de> Nyon, Listers, * Nyon (ycnyon at pd.jaring.my) [010321 01:59]: > Hi, > > I was wondering if anyone can share how to navigate a map using gif > images for the zoom/pan/search/recenter interface rather than using > radio buttons and drop-down list box. Already check out some > examples, either they are using java applets or the javascript is > working in IE. > If you want to avoid java/javascript I think the only further option is to use mapscript: The mapserver cgi (and i think this is ok) is bound to the concept illustrated by the demo. Using mapscript you could use a) a couple of forms with b) prepare full url strings for each image (like >> Armin Burger 03/22/01 09:00AM >>> I would like to retrieve the map image from a ms server only via its URL using a program like wget or curl. When I'm using the normal parameter like in the URL line of the browser I get the html document back. Can I define the URL request this way that I will get back the gif image of the main map with certain layers and a certain extend etc.? Armin -- Armin Burger Territorium Online Siemensstrasse/Via Siemens 19 - I-39100 Bozen/Bolzano - Italia tel: +39-0471-568185 / fax: -- 568078 _ From marin at here.is Thu Mar 22 09:28:19 2001 From: marin at here.is (Ma) Date: Thu, 22 Mar 2001 17:28:19 +0000 Subject: Retrieving map image via URL References: Message-ID: <3ABA3633.D6823139@here.is> one wget example how to get the gif file via URL ? -- Ma Stephen Lime wrote: > Sure. All you need to do is change the mapserver "mode" by adding &mode=map to the > URL. Remember the default mode is "browse" which returns HTML/URL (redirect). > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Armin Burger 03/22/01 09:00AM >>> > I would like to retrieve the map image from a ms server only via its URL > using a program like wget or curl. When I'm using the normal parameter like > in the URL line of the browser I get the html document back. Can I define > the URL request this way that I will get back the gif image of the main map > with certain layers and a certain extend etc.? > > Armin > > -- > Armin Burger > Territorium Online > Siemensstrasse/Via Siemens 19 - I-39100 Bozen/Bolzano - Italia > tel: +39-0471-568185 / fax: -- 568078 > _ From JBarot at digmap.com Thu Mar 22 11:39:16 2001 From: JBarot at digmap.com (Jaynika Barot) Date: Thu, 22 Mar 2001 11:39:16 -0800 Subject: Retrieving map image via URL Message-ID: <31284D87E5C7D411984300E0296E654102125C@DMPSERVER> http://localhost/mapserver/bin/mapserv.exe?mode=map&layer=layer1&imgext=3641 07.000000+3773595.000000+365719.000000+3774689.000000&map=c%3A%5CInetpub%5Cw wwroot%5Cms_demo%5Cdmpdemo.map -jaynika -----Original Message----- From: Ma [mailto:marin at here.is] Sent: Thursday, March 22, 2001 9:28 AM To: mapserver-users at lists.gis.umn.edu Subject: Re: Retrieving map image via URL one wget example how to get the gif file via URL ? -- Ma Stephen Lime wrote: > Sure. All you need to do is change the mapserver "mode" by adding &mode=map to the > URL. Remember the default mode is "browse" which returns HTML/URL (redirect). > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Armin Burger 03/22/01 09:00AM >>> > I would like to retrieve the map image from a ms server only via its URL > using a program like wget or curl. When I'm using the normal parameter like > in the URL line of the browser I get the html document back. Can I define > the URL request this way that I will get back the gif image of the main map > with certain layers and a certain extend etc.? > > Armin > > -- > Armin Burger > Territorium Online > Siemensstrasse/Via Siemens 19 - I-39100 Bozen/Bolzano - Italia > tel: +39-0471-568185 / fax: -- 568078 > _ From marin at here.is Thu Mar 22 15:08:28 2001 From: marin at here.is (Ma) Date: Thu, 22 Mar 2001 23:08:28 +0000 Subject: Retrieving map image via URL References: <31284D87E5C7D411984300E0296E654102125C@DMPSERVER> Message-ID: <3ABA85EB.21C9B30B@here.is> and where in this example is the gif file and how to get it with wget? :> another one? -- Ma Jaynika Barot wrote: > http://localhost/mapserver/bin/mapserv.exe?mode=map&layer=layer1&imgext=3641 > 07.000000+3773595.000000+365719.000000+3774689.000000&map=c%3A%5CInetpub%5Cw > wwroot%5Cms_demo%5Cdmpdemo.map > > -jaynika > -----Original Message----- > From: Ma [mailto:marin at here.is] > Sent: Thursday, March 22, 2001 9:28 AM > To: mapserver-users at lists.gis.umn.edu > Subject: Re: Retrieving map image via URL > > one wget example how to get the gif file via URL ? > > -- > Ma > > Stephen Lime wrote: > > > Sure. All you need to do is change the mapserver "mode" by adding > &mode=map to the > > URL. Remember the default mode is "browse" which returns HTML/URL > (redirect). > > > > Steve > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> Armin Burger 03/22/01 09:00AM >>> > > I would like to retrieve the map image from a ms server only via its URL > > using a program like wget or curl. When I'm using the normal parameter > like > > in the URL line of the browser I get the html document back. Can I define > > the URL request this way that I will get back the gif image of the main > map > > with certain layers and a certain extend etc.? > > > > Armin > > > > -- > > Armin Burger > > Territorium Online > > Siemensstrasse/Via Siemens 19 - I-39100 Bozen/Bolzano - Italia > > tel: +39-0471-568185 / fax: -- 568078 > > _ From ycnyon at pd.jaring.my Thu Mar 22 16:20:08 2001 From: ycnyon at pd.jaring.my (Nyon) Date: Fri, 23 Mar 2001 08:20:08 +0800 Subject: Working in Windows 2000 ? Message-ID: <200103230017.f2N0HXp04754@smtp2.jaring.my> Hi, I was wondering whether anyone got MapServer is working in Windows 2000 ? I need to decide whether to stick back to Windows NT or migrate to 2000. Any experience or advice would be welcomed. Nyon From yecarrillo at hotmail.com Thu Mar 22 20:09:07 2001 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Thu, 22 Mar 2001 23:09:07 -0500 Subject: Working in Windows 2000 ? Message-ID: Yes. I use a dual booting system win98/Win2k working with the same mapfiles and it's OK, using Apache as web server in both OS's. I have trouble getting read shape files from the win network(Netbios). My layers data seems like: DATA '\\MYDATASERVER\shareddir\theshapefile' Latest version of apache win32 (working as NT service) needs to be started with some domain user that has permissions to access the 'shareddir' directory in the 'dataserver'. This is set in the apache service settings. I post this question before in the list, with no answer. I resolved it by myself. I hope it will be useful. ---------------------------- Eduin Yesid Carrillo Ingeniero Civil CIUDAD DIGITAL Central de Informaci?n Regional Georefenciada Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 >From: "Nyon" >To: >Subject: Working in Windows 2000 ? >Date: Fri, 23 Mar 2001 08:20:08 +0800 > >Hi, > >I was wondering whether anyone got MapServer is working in Windows 2000 ? I >need to decide whether to stick back to Windows NT or migrate to 2000. Any >experience or advice would be welcomed. > >Nyon _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From riovescu at unidec.ro Fri Mar 23 23:21:58 2001 From: riovescu at unidec.ro (Radu Iovescu) Date: Sat, 24 Mar 2001 09:21:58 +0200 Subject: No subject Message-ID: <24496005.20010324092158@unidec.ro> auth e398cbf1 subscribe mapserver-users riovescu at unidec.ro From frank.koormann at intevation.de Fri Mar 23 00:21:21 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Fri, 23 Mar 2001 09:21:21 +0100 Subject: Retrieving map image via URL In-Reply-To: =?iso-8859-1?Q?=3C3ABA85EB=2E21C9B30B=40here=2Eis=3E=3B_from_marin=40her?= =?iso-8859-1?Q?e=2Eis_on_Don=2C_M=E4r_22=2C_2001_at_11:08:28_+0000?= References: <31284D87E5C7D411984300E0296E654102125C@DMPSERVER> <3ABA85EB.21C9B30B@here.is> Message-ID: <20010323092121.A20686@abnoba.intevation.de> hi, * Ma (marin at here.is) [010323 00:34]: > and where in this example is the gif file and how to get it with wget? > :> > another one? ??? > > Jaynika Barot wrote: > > > http://localhost/mapserver/bin/mapserv.exe?mode=map&layer=layer1&imgext=3641 > > 07.000000+3773595.000000+365719.000000+3774689.000000&map=c%3A%5CInetpub%5Cw > > wwroot%5Cms_demo%5Cdmpdemo.map > > > > -jaynika The URL given by Jaynika is a valid example (at least if you adjjust the path settings for your needs): It invokes the MapServer CGI to return a map (gif or png depending on your compilation) as specified by the CGI parameters (delimited by "&"). Issuing wget "http://localhost/mapserver/bin/mapserv.exe?mode=map&layer=layer1&imgext=364107.000000+3773595.000000+365719.000000+3774689.000000&map=c%3A%5CInetpub%5Cwwwroot%5Cms_demo%5Cdmpdemo.map" would save the image to your file system (with a lengthy file name, but thats up to wget). Cheers, Frank -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ From armin.burger at territoriumonline.com Fri Mar 23 00:18:17 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Fri, 23 Mar 2001 09:18:17 +0100 Subject: Retrieving map image via URL Message-ID: <200103230818.JAA20146@efferd.nettz.com> After some trials I found the working call for wget: wget -O d:\tmp\myimage.gif "http://..." Important were the double quotes around the URL. With the 'mode=map' there seems to be a direct access to the produced map image. Armin > and where in this example is the gif file and how to get it with wget? > :> > another one? > -- > Ma > Jaynika Barot wrote: >> http://localhost/mapserver/bin/mapserv.exe?mode=map&layer=layer1&imgext=3641 >> 07.000000+3773595.000000+365719.000000+3774689.000000&map=c%3A%5CInetpub%5Cw >> wwroot%5Cms_demo%5Cdmpdemo.map >> >> -jaynika >> -----Original Message----- >> From: Ma [mailto:marin at here.is] >> Sent: Thursday, March 22, 2001 9:28 AM >> To: mapserver-users at lists.gis.umn.edu >> Subject: Re: Retrieving map image via URL >> >> one wget example how to get the gif file via URL ? >> >> -- >> Ma >> >> Stephen Lime wrote: >> >> > Sure. All you need to do is change the mapserver "mode" by adding >> &mode=map to the >> > URL. Remember the default mode is "browse" which returns HTML/URL >> (redirect). >> > >> > Steve >> > >> > Stephen Lime >> > Internet Applications Analyst -- Armin Burger Territorium Online Siemensstrasse/Via Siemens 19 - Bozen/Bolzano - Italia email: armin.burger at territoriumonline.com http://www.territoriumonline.com tel: +39-0471-568185 / fax -- 568078 From bertha_bonita at yahoo.com Fri Mar 23 15:43:34 2001 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Fri, 23 Mar 2001 15:43:34 -0800 (PST) Subject: automatilcally do pan Message-ID: <20010323234334.24168.qmail@web4207.mail.yahoo.com> Hello list.. I have a problem when i choose a layer and press the bottom Refresh/Query show the layer choosen and automatically do pan ...each time press Refresh/Query do pan.. In the next result, i didn't press the radio button pan only i wanted view the layer http://pc-simac.cicese.mx/cgi-bin/mapserv?mode=browse&zoomdir=0&zoomsize=2&layer=basaltos&imgxy=299.5+299.5&imgext=-657555.174556+-601360.777736+753555.174556+633360.777736&map=%2Fhome%2Fhttpd%2Fhtml%2Fgeoejercicios%2Finter02%2Finter02.map&savequery=true&mapext=shapes i don't kown why take &zoomdir=0&zoomsize=2 how can i resolve the problem? ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From jonathancandy at hotmail.com Fri Mar 23 16:03:42 2001 From: jonathancandy at hotmail.com (Jonathan Candy) Date: Fri, 23 Mar 2001 16:03:42 -0800 Subject: : Re: Zooom/Pan interface using gif images rather than radio buttons Message-ID: So you do not want to use Javascript or Java, but want to avoid checkboxes or radio buttons ? If you are a Windows user with IIS, you can use ASP VBScript to determine which GIF was clicked and then execute a mapserv command. For example, if your HTML form has 2 gifs named zoomin and zoomout, your asp code has: zoominpick = Request("zoomin.x") 'zoom in zoomoutpick = Request("zoomout.x") ' zoom out if (zoominpick > 0 ) then draw = "ZOOM_IN" end if if (zoomoutpick > 0 ) then draw = "ZOOM_OUT" end if You cannot create a zoom box, but your program can handle pans, zooms, and any other requests. You can do a 'mini-mapscript' type of program with VBScript and all the mapserv cgi variables + your own set of hidden variables. You will calculate a new map extent and other values before executing a mapserver URL. http://www.georanger.com is an example where I wanted to use mapserver with PDAs web browsers that have no java or javascript support. regards, Jonathan Candy _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From tbauerulem at gmx.de Sat Mar 24 03:48:52 2001 From: tbauerulem at gmx.de (Thomas Bauer) Date: Sat, 24 Mar 2001 12:48:52 +0100 Subject: Test Message-ID: <01C0B460.C88826C0@pD903E4F8.dip0.t-ipconnect.de> Test From tbauerulem at gmx.de Sat Mar 24 04:01:22 2001 From: tbauerulem at gmx.de (Thomas Bauer) Date: Sat, 24 Mar 2001 13:01:22 +0100 Subject: test Message-ID: <01C0B462.87358440@pD903E4F8.dip0.t-ipconnect.de> subscribe mapserver-users test END From sebastien.cazajous at eiKONEX.net Sun Mar 25 08:07:30 2001 From: sebastien.cazajous at eiKONEX.net (Sebastien 'Tito' Cazajous) Date: Sun, 25 Mar 2001 18:07:30 +0200 Subject: Some help about MapScript Message-ID: <3ABE17C2.68AF301C@eiKONEX.net> Hi, i am trying to install the MapServer demo, i haven't got trouble to compile the cgi prog and install it but once this works i try to make the MapServer demo working, i get the demo_readme.html file to get into the MapServer world i make the modification on my Debian Box but after all this manipulation i run the demo in my browser and i get an unreferenced error: "msLoadMap(): Unknown identifier.(SHADESET):(6)" I suppose that is an initialization problem but i am not able to find it is someone able to give me a little help. Moreover i try to compile the MapScript Php module, i compile php-4.0.4pl1 right and get a DSO for Apache, then i put the current path of my php compilation source files and i try to run the configure MapServer Script it find the correct information but it doesn t generate the MapScript/PHP Makefile " creating Makefile sed: file conftest.s1 line 74: Unterminated `s' command creating gdft/Makefile sed: file conftest.s1 line 74: Unterminated `s' command creating mapscript/php3/Makefile sed: file conftest.s1 line 74: Unterminated `s' command " But any makefile is generated... Do you have same thing trying to do this... Best Rgds, Tito -- +--- \\\// ------------ # Sebastien 'Tito' Cazajous # ---------+ | (0 -) # sebastien.cazajous at eiKonex.net - www.eiKonex.net # | +-oOO--(_)--OOo-----f0ll0W thE wHitE pEngUin-thE LinuX has U-----+ From morissette at dmsolutions.ca Sun Mar 25 18:01:14 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Sun, 25 Mar 2001 21:01:14 -0500 Subject: Some help about MapScript References: <3ABE17C2.68AF301C@eiKONEX.net> Message-ID: <3ABEA2EA.74F0716F@dmsolutions.ca> Sebastien, The SHADESET problem must be because you have the demo for version 3.3.011 but you try to use it with a version 3.4 executable, see the following message from the archive about the symbol changes between version 3.3.011 and 3.4: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0102/msg00179.html and about the PHP MapScript configure problem, see: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0102/msg00134.html Daniel Sebastien 'Tito' Cazajous wrote: > > Hi, > > i am trying to install the MapServer demo, i haven't got trouble to > compile > the cgi prog and install it but once this works i try to make the > MapServer > demo working, i get the demo_readme.html file to get into the MapServer > world > i make the modification on my Debian Box but after all this manipulation > i run the demo in my browser and i get an unreferenced error: > "msLoadMap(): Unknown identifier.(SHADESET):(6)" > > I suppose that is an initialization problem but i am not able to find it > is someone able to give me a little help. > > Moreover i try to compile the MapScript Php module, i compile > php-4.0.4pl1 right and > get a DSO for Apache, then i put the current path of my php compilation > source > files and i try to run the configure MapServer Script it find the > correct > information but it doesn t generate the MapScript/PHP Makefile > > " > creating Makefile > sed: file conftest.s1 line 74: Unterminated `s' command > creating gdft/Makefile > sed: file conftest.s1 line 74: Unterminated `s' command > creating mapscript/php3/Makefile > sed: file conftest.s1 line 74: Unterminated `s' command > " > > But any makefile is generated... > Do you have same thing trying to do this... > > Best Rgds, Tito > -- > +--- \\\// ------------ # Sebastien 'Tito' Cazajous # ---------+ > | (0 -) # sebastien.cazajous at eiKonex.net - www.eiKonex.net # | > +-oOO--(_)--OOo-----f0ll0W thE wHitE pEngUin-thE LinuX has U-----+ -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From frank.koormann at intevation.de Sun Mar 25 23:16:20 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Mon, 26 Mar 2001 09:16:20 +0200 Subject: automatilcally do pan In-Reply-To: =?iso-8859-1?Q?=3C20010323234334=2E24168=2Eqmail=40web4207=2Email=2Eyaho?= =?iso-8859-1?Q?o=2Ecom=3E=3B_from_bertha=5Fbonita=40yahoo=2Ecom_on_Fre?= =?iso-8859-1?Q?=2C_M=E4r_23=2C_2001_at_03:43:34_-0800?= References: <20010323234334.24168.qmail@web4207.mail.yahoo.com> Message-ID: <20010326091620.A32644@abnoba.intevation.de> Hi Bertha, Hi Listers, * bertha amalia serrato de la cruz (bertha_bonita at yahoo.com) [010324 00:31]: > Hello list.. > > I have a problem when i choose a layer and press the > bottom Refresh/Query show the layer choosen and > automatically do pan ...each time press Refresh/Query > do pan.. > > In the next result, i didn't press the radio button > pan > only i wanted view the layer > > http://pc-simac.cicese.mx/cgi-bin/mapserv?mode=browse&zoomdir=0&zoomsize=2&layer=basaltos&imgxy=299.5+299.5&imgext=-657555.174556+-601360.777736+753555.174556+633360.777736&map=%2Fhome%2Fhttpd%2Fhtml%2Fgeoejercicios%2Finter02%2Finter02.map&savequery=true&mapext=shapes > > i don't kown why take &zoomdir=0&zoomsize=2 > > how can i resolve the problem? > For some reason I get no response from your web server. However, one of the first pitfalls in setting up a new mapserver application is to miss some geometry/resolution settings to be adjusted to your needs: I your case potentially some information on the image size. If these are not correct, the center of the image will be calculated wrong everytime you generate a new image. From your URL example I read that your image should have a size of 6000x600 pixel. If this is not the case, you should adjust your settings (in the map-file and the templates). Regards, Frank -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ From abernatj at yahoo.com Mon Mar 26 08:05:06 2001 From: abernatj at yahoo.com (Andy Bernat) Date: Mon, 26 Mar 2001 08:05:06 -0800 (PST) Subject: automatilcally do pan In-Reply-To: <20010326091620.A32644@abnoba.intevation.de> Message-ID: <20010326160506.21110.qmail@web3701.mail.yahoo.com> Frank, Would you be so kind as to explain how you figured out the image size from the information in the url? I've been having some problems getting my map to display the way I want and I'm sure it's because I don't have a good grasp of what some of these parameters are and how they are used by mapserve. Thanks in advance, Regards, Andy Bernat --- Frank Koormann wrote: > Hi Bertha, Hi Listers, > > * bertha amalia serrato de la cruz (bertha_bonita at yahoo.com) [010324 > 00:31]: > > Hello list.. > > > > I have a problem when i choose a layer and press the > > bottom Refresh/Query show the layer choosen and > > automatically do pan ...each time press Refresh/Query > > do pan.. > > > > In the next result, i didn't press the radio button > > pan > > only i wanted view the layer > > > > > http://pc-simac.cicese.mx/cgi-bin/mapserv?mode=browse&zoomdir=0&zoomsize=2&layer=basaltos&imgxy=299.5+299.5&imgext=-657555.174556+-601360.777736+753555.174556+633360.777736&map=%2Fhome%2Fhttpd%2Fhtml%2Fgeoejercicios%2Finter02%2Finter02.map&savequery=true&mapext=shapes > > > > i don't kown why take &zoomdir=0&zoomsize=2 > > > > how can i resolve the problem? > > > > For some reason I get no response from your web server. However, one > of the > first pitfalls in setting up a new mapserver application is to miss > some > geometry/resolution settings to be adjusted to your needs: I your > case > potentially some information on the image size. If these are not > correct, the center of the image will be calculated wrong everytime > you > generate a new image. From your URL example I read that your image > should have a size of 6000x600 pixel. If this is not the case, you > should adjust your settings (in the map-file and the templates). > > Regards, > > Frank > > -- > Frank Koormann > http://intevation.net/~frank/ > Professional Service around Free Software > http://intevation.net/ > FreeGIS Project http://freegis.org/ __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From tbauerulem at gmx.de Mon Mar 26 08:49:19 2001 From: tbauerulem at gmx.de (Thomas Bauer) Date: Mon, 26 Mar 2001 18:49:19 +0200 Subject: vector data Message-ID: <01C0B625.78110380@pD903E4D0.dip0.t-ipconnect.de> Hi, can MAPSERVER create vector data (DXF, SVG, ... ) from a *.map file? Thomas From steve.lime at dnr.state.mn.us Mon Mar 26 09:27:44 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 26 Mar 2001 11:27:44 -0600 Subject: Fwd: MapServer Logos------- Message-ID: I'm glad to see this topic re-introduced. Have look and/or submit your own... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: "Ballard,Lowell" Subject: MapServer Logos------- Date: Mon, 26 Mar 2001 11:56:24 -0500 Size: 1599 URL: From frost at cnsnet.com Mon Mar 26 11:15:59 2001 From: frost at cnsnet.com (Eric Frost) Date: Mon, 26 Mar 2001 13:15:59 -0600 Subject: Fw: ALERT - A DANGEROUS NEW WORM IS SPREADING ON THE INTERNET Message-ID: <030901c0b629$33151d30$0d85e5d8@DELL600301> Mapserver Users: I would imagine there are quite a few people on this list with Linux boxes on the Internet... please take care to patch or upgrade BIND on All servers.. this is a serious vulnerability that was announced in January and I think this is the first major exploit to take advantage of it. Eric ----- Original Message ----- From: "The SANS Institute" To: "Eric Frost (SD526653)" Sent: Friday, March 23, 2001 11:00 AM Subject: ALERT - A DANGEROUS NEW WORM IS SPREADING ON THE INTERNET > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > ALERT! A DANGEROUS NEW WORM IS SPREADING ON THE INTERNET > > March 23, 2001 7:00 AM > > Late last night, the SANS Institute (through its Global Incident > Analysis Center) uncovered a dangerous new worm that appears to be > spreading rapidly across the Internet. It scans the Internet looking > for Linux computers with a known vulnerability. It infects the > vulnerable machines, steals the password file (sending it to a > China.com site), installs other hacking tools, and forces the newly > infected machine to begin scanning the Internet looking for other > victims. > > Several experts from the security community worked through the night to > decompose the worm's code and engineer a utility to help you discover > if the Lion worm has affected your organization. > > Updates to this announcement will be posted at the SANS web site, > http://www.sans.org > > > DESCRIPTION > > The Lion worm is similar to the Ramen worm. However, this worm is > significantly more dangerous and should be taken very seriously. It > infects Linux machines running the BIND DNS server. It is known to > infect bind version(s) 8.2, 8.2-P1, 8.2.1, 8.2.2-Px, and all > 8.2.3-betas. The specific vulnerability used by the worm to exploit > machines is the TSIG vulnerability that was reported on January 29, > 2001. > > The Lion worm spreads via an application called "randb". Randb scans > random class B networks probing TCP port 53. Once it hits a system, it > checks to see if it is vulnerable. If so, Lion exploits the system using > an exploit called "name". It then installs the t0rn rootkit. > > Once Lion has compromised a system, it: > > - - Sends the contents of /etc/passwd, /etc/shadow, as well as some > network settings to an address in the china.com domain. > - - Deletes /etc/hosts.deny, eliminating the host-based perimeter > protection afforded by tcp wrappers. > - - Installs backdoor root shells on ports 60008/tcp and 33567/tcp (via > inetd, see /etc/inetd.conf) > - - Installs a trojaned version of ssh that listens on 33568/tcp > - - Kills Syslogd , so the logging on the system can't be trusted > - - Installs a trojaned version of login > - - Looks for a hashed password in /etc/ttyhash > - - /usr/sbin/nscd (the optional Name Service Caching daemon) is > overwritten with a trojaned version of ssh. > > The t0rn rootkit replaces several binaries on the system in order to > stealth itself. Here are the binaries that it replaces: > > du, find, ifconfig, in.telnetd, in.fingerd, login, ls, mjy, netstat, > ps, pstree, top > > - - "Mjy" is a utility for cleaning out log entries, and is placed in /bin > and /usr/man/man1/man1/lib/.lib/. > - - in.telnetd is also placed in these directories; its use is not known > at this time. > - - A setuid shell is placed in /usr/man/man1/man1/lib/.lib/.x > > DETECTION AND REMOVAL > > We have developed a utility called Lionfind that will detect the Lion > files on an infected system. Simply download it, uncompress it, and > run lionfind. This utility will list which of the suspect files is on > the system. > > At this time, Lionfind is not able to remove the virus from the system. > If and when an updated version becomes available (and we expect to > provide one), an announcement will be made at this site. > > Download Lionfind at http://www.sans.org/y2k/lionfind-0.1.tar.gz > > > REFERENCES > > Further information can be found at: > > http://www.sans.org/current.htm > http://www.cert.org/advisories/CA-2001-02.html, CERT Advisory CA-2001-02, > Multiple Vulnerabilities in BIND > http://www.kb.cert.org/vuls/id/196945 ISC BIND 8 contains buffer overflow > in transaction signature (TSIG) handling code > http://www.sans.org/y2k/t0rn.htm Information about the t0rn rootkit. > The following vendor update pages may help you in fixing the original BIND > vulnerability: > > Redhat Linux RHSA-2001:007-03 - Bind remote exploit > http://www.redhat.com/support/errata/RHSA-2001-007.html > Debian GNU/Linux DSA-026-1 BIND > http://www.debian.org/security/2001/dsa-026 > SuSE Linux SuSE-SA:2001:03 - Bind 8 remote root compromise. > http://www.suse.com/de/support/security/2001_003_bind8_ txt.txt > Caldera Linux CSSA-2001-008.0 Bind buffer overflow > http://www.caldera.com/support/security/advisories/CSSA-2001-008.0.txt > http://www.caldera.com/support/security/advisories/CSSA-2001-008.1.txt > > This security advisory was prepared by Matt Fearnow of the SANS > Institute and William Stearns of the Dartmouth Institute for Security > Technology Studies. > > The Lionfind utility was written by William Stearns. William is an > Open-Source developer, enthusiast, and advocate from Vermont, USA. His > day job at the Institute for Security Technology Studies at Dartmouth > College pays him to work on network security and Linux projects. > > Also contributing efforts go to Dave Dittrich from the University of > Washington, and Greg Shipley of Neohapsis > > Matt Fearnow > SANS GIAC Incident Handler > > If you have additional data on this worm or a critical quetsion please > email lionworm at sans.org > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.4 (BSD/OS) > Comment: For info see http://www.gnupg.org > > iD8DBQE6u17n+LUG5KFpTkYRAgn9AJ0ffubakBA47teAe9lF92lrS2H+TwCgh3T/ > ek+YCliAS832nnMIzP28ezM= > =E1SG > -----END PGP SIGNATURE----- > From graham.sims at pavtech.co.nz Mon Mar 26 12:43:10 2001 From: graham.sims at pavtech.co.nz (Graham Sims) Date: Tue, 27 Mar 2001 08:43:10 +1200 Subject: Using mapserv as a dynamic link library from a servlet Message-ID: <9A289C0BFA5DD2119E9D00805F77454AC92A91@CSE> G'day all, I've also built an JNI dll from the mapscript source. I used swig 1.3a, which sort of worked, and hacked the ouput around a bit to get it all to compile. I've also started writing a java class library (package) which sits on top of the JNI dll and rewraps the objects back up. My objective with this, was not to produce servlets so much as to have a class library which could be used by JSP's. The dll and java classes can be downloaded from http://urewera.boarsnest.net/MapScript/ Be warned though its all fairly untested and the java classes are not complete. I've only been working on this as I've has spare time. The source for the java classes are included in the jar file and i'd welcome any effort to complete them and test them. cheers, -- Graham Sims Analyst/Software Developer PavTech NZ LTD > -----Original Message----- > From: Stephen Lime [SMTP:steve.lime at dnr.state.mn.us] > Sent: Thursday, March 22, 2001 10:25 AM > To: Matthew.Wakely at dsto.defence.gov.au; > mapserver-users at lists.gis.umn.edu > Subject: Re: Using mapserv as a dynamic link library from a servlet > > Mapserv itself is built for CGI-only. You'd have better luck trying to > develop java version > of MapScript and then build servlets from that. I think I'd need to add a > method to make > a copy of a loaded mapObj that could be used with each request and then > destroyed. > > Swig 1.3a will kick out JNI code and I've gone so far as to get the shared > library compiled. > I ran into problems compiling the class specific (i.e. layerObj, classObj) > code into class > files. I just screwed around for an hour or so and didn't work at it much. > > I'd love to see this work and will gladly try to accomodate code changes > necessary to > make it happen. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Wakely, Matthew" 03/21/01 > 03:43PM >>> > Has anyone tried to convert mapserv to a .dll file and then call it using > a > java Servlet and Java Native Interface. > > My problem is that the mapserv program only seems to run once. Usually > this > would be ok because CGI programs run once then die. However I cant do that > from a servlet. > Basicly all i did was convert the main() function in mapserv.c to a > function > "callMapserv()" i could call from Java. The problem is that the program > seems to crash when it tries to parse using maplexxer.c and mapparser.c. > > Has anyone encountered these problems before or could someone perhaps > offer > some advice. I suspect its because of all the global variables flying > around > within mapserv. > > > NOTICE: The information contained in this electronic mail message and any attachments is confidential to Pavilion Technologies, Inc. or one of its subsidiaries and may contain proprietary information or be legally privileged. This message and any attachments are intended only for the personal and confidential use of the designated recipient(s). If you are not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have recieved this message in error, and that any review, dissemination, distribution or copying of this message and any attachments is unauthorized and strictly prohibited. If you have received this message in error, please notify me immediately by telephone and electronic mail, and delete this message, any attachments, and all copies thereof. Thank you very much From Robin.Ellis at dnr.qld.gov.au Mon Mar 26 15:06:31 2001 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Tue, 27 Mar 2001 09:06:31 +1000 Subject: the Burnett Catchment tries again... Message-ID: Hello Mapservers, Many apologies about the problems experienced with the Burnett catchment site about a wek ago. The structure of our Department forces us to develop on one server, have some IT people move appropriate files to another internal production server, and then rely on some automatic processes to get the external files copied to the external server, which of course has a slightly different directory structure. Anyway, the Burnett catchment site's HTML version is now operable (I'm leaving myself open for more embarassment, aren't I?). From the URL below, find the 'Simple HTML Based System' link and follow it. Ross Searle feels that this title is misleading, as the whole javascript/layers/frames combination means that the system is not as 'simple' as it would appear, but I really cn't be bothered getting my files updated through our system for such a minor change at this time. http://www.dnr.qld.gov.au/resourcenet/land/lris/webgis/burnett/ As also mentioned in my last email, we are also using Mapserver for a Sugar Soils Information System. It uses the HTML/javscript/frames combo again. >From this URL, go to Interactive Soils maps, and then click on the Queensland State of Australia (That's north-eastern section). We will be getting data from other State's in the future.... http://www.dnr.qld.gov.au/resourcenet/land/lris/webgis/sugarsoils/ One last point. I'm happy to throw a logo on to these systems. Of those sent around by Lowell/Steve earlier, I quite like the 'Static # 3'. Rob Robin Ellis Land Resources Officer Department of Natural Resources Burnett District ph: 07 4131 5771 fax: 07 4131 5823 Robin.Ellis at dnr.qld.gov.au ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From EricFrost at HRandAssociates.com Mon Mar 26 21:04:39 2001 From: EricFrost at HRandAssociates.com (Eric Frost - HRA) Date: Mon, 26 Mar 2001 23:04:39 -0600 Subject: lion Message-ID: <02a001c0b67b$6d9221e0$c13bf6d1@gateway> Mapserver Listers: I apologize for this repeat post, but just in case my earlier warning was ignored as a typical forward hoax, you'd do well to heed this one.. http://www.zdnet.com/eweek/stories/general/0,11011,2700665,00.html All old Linux installations (read older than 3 months) are probably vulnerable to this, and as of this date there's still nothing to clean it, so take the precautions! best, Eric From frosch at cs.tu-berlin.de Tue Mar 27 01:34:47 2001 From: frosch at cs.tu-berlin.de (Thorsten Fischer) Date: Tue, 27 Mar 2001 11:34:47 +0200 (MET DST) Subject: Class Expressions & Class Items Message-ID: Ladies & gentlemen, I am using php MapScript to display data from shapefiles. The .dbf data files have been imported into an Oracle database for performance and maintenance reasons. I want to 'highlight' one or more shapes in a layer by filling them with a different color. Using a map file, I would do the following: [ BLA BLA LAYER DEFINITION ] CLASSITEM "name" CLASS EXPRESSION // COLOR END CLASS EXPRESSION /./ COLOR END [ REST OF BLA BLA ] Coding in php MapScript, I would now get the first class with getClass (), set a new expression, redraw the map, and that's it. Unfortunately, the CLASSITEM stuff is retrieved from the .dbf file of course, which does not exist for me anymore. Any suggestions? Thorsten Fischer From frosch at cs.tu-berlin.de Tue Mar 27 03:20:45 2001 From: frosch at cs.tu-berlin.de (Thorsten Fischer) Date: Tue, 27 Mar 2001 13:20:45 +0200 (MET DST) Subject: Test for .dbf files Message-ID: Hello list. I discovered that the .dbf files are in any circumstances neccesary for the mapserver to draw a layer. There seems to be a test if a .dbf file exists, even for drawing plain polygon data. I understand that it might be neccessary for drawing annotations, though it seems to prevent me from getting annotation data from a database. If the .dbf file is missing, plain polygon layers are not drawn. It is possible to create a 0 byte name.dbf file for a name.shp file. Drawing works fine then. Is this a shapelib matter or a mapserver internal? Is this even desired behaviour? Thorsten Fischer From cameron at socialchange.net.au Tue Mar 27 03:36:00 2001 From: cameron at socialchange.net.au (Cameron Shorter) Date: Tue, 27 Mar 2001 21:36:00 +1000 Subject: Mac Java Interface Error Accessing MapServer CGI References: <1e.11bbf6da.27c9107a@aol.com> <3A9A250E.7CF8F18E@jrc.it> Message-ID: <3AC07B20.CC95CFF4@socialchange.net.au> Yes, we found this error too, and did a little research. This is what we found: ======= Looks like you are right, some mac clients cannot have java talk to javascript - but there is a workaround (although it it a hack). Java in one window talks to javascript in another window, which talks to javascript in original window. http://www.dannyg.com/update4.html LiveConnect and Navigator 4.6 Navigator 4.6 shipped with a bug that prevents applets from communicating with the document. The indicated error faults the JSObject.class. Unfortunately there is no known workaround for this bug. As far as I can tell, JavaScript-to-applet communication is not bothered by this bug. --- http://www.rgagnon.com/ce/java-js.html Interaction without LiveConnect Java-Javascript interaction is not possible on many browsers or platforms. On Mac, for example, the LiveConnect package is not available, even with the latest Netscape version. On IE3, the interaction is very limited too. Java to Javascript One way to pass information from Java to Javascript, without LiveConnect or scripting support, is to have an hidden frame acting as a bridge. >From Java you do a showDocument() with a particuliar page passing the message as parameter to the hidden frame, something like showDocument("mypage.html?HelloJavascriptFromJava", "hiddenframe"). The mypage.html page contains a javascript script to extract the parameter received in the URL (using the document.search property). And then the parameter extracted is send to another javascript function in the visible frame. ... (example) Javascript to Java The idea here is to have an invisible Applet in an invisible frame that will receive a message (from Javascript in the visible frame) through the search part of its URL. Then via a static pointer to the visible Applet, the invisible Applet pass the message to the visible Applet by calling the appropriate function. ... (example) Michael Kleih wrote: > > Alexspringer at aol.com wrote: > > > A Mac user attempting to access our Mapserver CGI with Java interface, which > > works fine with IE5 on Windows, fails to connect and gets this error ... > > anyone know the solution? > > > > Incurred while using Internet Explorer 4.5 for Mac using OS 9.1. > > > > Java Exception: java.lang.ClassNotFoundException - > > netscape.javascript.JSObject > > Stack Trace: > > java.lang.ClassNotFoundException: netscape.javascript.JSObject > > at > > com.apple.mrj.JManager.JMAppletClassLoader_IMPL.loadClass(JMAppletClassLoaderO > > > > It seems you are using LiveConnect (connection between JAVA > and JavaScript), which obviously is not installed on the computer > of your user. (the class netscape.javascript.JSObject is missing) > You could give to this user your classfile, your browser is using. > > Michael -- Cameron Shorter Web Mapping Manager Social Change Online 248 Johnson St Tel: +61 (0) 2 9692 5115 Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 Sydney, Australia http://webmap.socialchange.net.au From mschulz at webgis.de Tue Mar 27 08:16:14 2001 From: mschulz at webgis.de (Michael Schulz) Date: Tue, 27 Mar 2001 18:16:14 +0200 Subject: mapxy=shapes and scale/buffer Message-ID: <3AC0BCCE.FCA9060F@webgis.de> Hi List, Hi Steve! In the archive I found an answer to the question concerning the use of mapxy=shapes and scale/buffer to create a new mapextent when doing an itemquery (http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0102/msg00055.html). I am having the same problem and was wondering if this problem is already solved. I am using mapserv 3.4. When I do a query and call mapserv with mapext=shapes and either scale or buffer the mapserv process hangs. The next request for mapserv would generate another mapserv process. Thanks, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From frank.koormann at intevation.de Tue Mar 27 11:06:43 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Tue, 27 Mar 2001 21:06:43 +0200 Subject: automatilcally do pan In-Reply-To: <20010326160506.21110.qmail@web3701.mail.yahoo.com>; from abernatj@yahoo.com on Mon, Mar 26, 2001 at 08:05:06AM -0800 References: <20010326091620.A32644@abnoba.intevation.de> <20010326160506.21110.qmail@web3701.mail.yahoo.com> Message-ID: <20010327210643.B21367@abnoba.intevation.de> * Andy Bernat (abernatj at yahoo.com) [010326 18:40]: > Frank, > Would you be so kind as to explain how you figured out the image size > from the information in the url? I've been having some problems > getting my map to display the way I want and I'm sure it's because I > don't have a good grasp of what some of these parameters are and how > they are used by mapserve. I read from the URL how the size of the image should be: The default for the CGI-parameter imgxy has to be the center of the map. Since this is 299.5, 299.5 in the example below the image size should be 600x600 to avoid unintended pan: Usually using a refresh or change visual layers mapserver generates the new image in pan-mode. If in such cases the imgxy is not the center of the image, panning occurs as a side effect. > http://pc-simac.cicese.mx/cgi-bin/mapserv?mode=browse&zoomdir=0&zoomsize=2&layer=basaltos&imgxy=299.5+299.5&imgext=-657555.174556+-601360.777736+753555.174556+633360.777736&map=%2Fhome%2Fhttpd%2Fhtml%2Fgeoejercicios%2Finter02%2Finter02.map&savequery=true&mapext=shapes > > > Regards, Frank -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ From LBallard at YesVirginia.org Tue Mar 27 11:48:11 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Tue, 27 Mar 2001 14:48:11 -0500 Subject: Internal Server Errors when choosing more than 3 layers Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16C7EE@communications> http://gis.vedp.org/vedp_maps/index.html If you go here....and click the submit button the map should render fine (some items and their labels will not show until zoomed in pretty far). If you try to add the "buildings layer" at the full-extent...it will bomb. If you zoom in until you can see the 3 default layers (i.e., Roads, Sites and Counties) and their respective labels.....then add the Buildings layer...it works. I don't think I'm exceeding the CGI # of character limits. I get nothing from the Apache logs but Premature end of script errors. I'm using the latest stable (not beta) ver. of MS. Thanks, Lowell Ballard Unix Administrator/DBA http://gis.vedp.org P.O. Box 798 901 E. Byrd St. W-19 Richmond, Va. 23218-0798 From paul at tei.or.th Tue Mar 27 12:43:16 2001 From: paul at tei.or.th (Paul Hastings) Date: Wed, 28 Mar 2001 03:43:16 +0700 Subject: FONTSET Message-ID: <003701c0b6fe$8dab5c20$0a729acb@tei.or.th> reviewed the archives but still stumped. i keep getting font not found when i try to use TYPE truetype with the fonts that come with w2k (winnt\fonts\). below is the details FONTSET fonts.list fonts.list arial_black c:\winnt\fonts\ariblk.ttf comic_sans c:\winnt\fonts\comic.ttf comic_sans-bold c:\winnt\fonts\comicbd.ttf angsuna c:\winnt\fonts\ANGSAU.TTF any suggestions welcome.... From rchavez at perseus.tufts.edu Tue Mar 27 17:47:15 2001 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Tue, 27 Mar 2001 20:47:15 -0500 (EST) Subject: GD 2.0 on the horizon In-Reply-To: Message-ID: Maybe this is old news, but I thought I had better post it anyway. Those of use who are using tiff images with mapserver are drooling right now. Rob Chavez Programmer, GIS Specialist Perseus Project >From the GD web site: gd 2.0 is coming! Expect a beta release of gd 2.0 around March 20th, 2001. gd 2.0 features extensive support for true color images ("millions of colors"), which allows the reading and writing of truecolor PNG and JPEG images with drastically better results. Alpha channel blending is also supported, both within the gd drawing engine itself and in the final output image. Also, gd 2.0 is built as a shared library. Final fixes and documentation changes will be made next week after I return from vacation. -Tom Boutell From joela at joelhq.com Tue Mar 27 19:03:41 2001 From: joela at joelhq.com (root) Date: Tue, 27 Mar 2001 21:03:41 -0600 Subject: GD 2.0 on the horizon References: Message-ID: <3AC1548D.5F9FC0CC@joelhq.com> I don't know about y'all, but this is going to make mapserver a 'killer app' for my applications (like it wasn't already!). Joel Robert Chavez wrote: > Maybe this is old news, but I thought I had better post it anyway. Those > of use who are using tiff images with mapserver are drooling right now. > > Rob Chavez > Programmer, GIS Specialist > Perseus Project > > From the GD web site: > > gd 2.0 is coming! Expect a beta release of gd 2.0 around March 20th, 2001. > gd 2.0 features extensive support for true color images ("millions of > colors"), which allows the reading and writing of truecolor PNG and JPEG > images with drastically better results. Alpha channel blending is also > supported, both within the gd drawing engine itself and in the final > output image. Also, gd 2.0 is built as a shared library. Final > fixes and documentation changes will be made next week after I return from > vacation. -Tom Boutell From winter at freytagberndt.at Tue Mar 27 22:42:57 2001 From: winter at freytagberndt.at (=?iso-8859-1?Q?andr=E9as?= m. winter) Date: Wed, 28 Mar 2001 08:42:57 +0200 Subject: vector data References: <01C0B625.78110380@pD903E4D0.dip0.t-ipconnect.de> Message-ID: <3AC187F1.BA1D682A@freytagberndt.at> just new to the list and not running mapserver yet, THIS is one of the most inmportant questions to be answered. i would ask more precisely: is there any output of the server imaginable that takes place BEFORE rastering and that could be used instead of the raster? or the other way round: does the clipping take place before or after teh merging of layers inside mapserver? thanks for any hints, andr? -- ________________________________________________ andr?as m. winter - freytag & berndt content management - new media & internet austria a1230 wien brunner str 69 tel +43.1.869.90.90.38 fax +43.1.869.90.90.62 mailto:winter at freytagberndt.at Thomas Bauer wrote: > Hi, > can MAPSERVER create vector data (DXF, SVG, ... ) from a *.map file? > > Thomas From michael.kleih at jrc.it Wed Mar 28 01:04:03 2001 From: michael.kleih at jrc.it (Michael Kleih) Date: Wed, 28 Mar 2001 11:04:03 +0200 Subject: GD 2.0 on the horizon References: Message-ID: <3AC1A903.D3DB3B34@jrc.it> Robert Chavez wrote: > > > gd 2.0 is coming! Expect a beta release of gd 2.0 around March 20th, 2001. > gd 2.0 features extensive support for true color images ("millions of > colors"), which allows the reading and writing of truecolor PNG and JPEG > images with drastically better results. Alpha channel blending is also > supported, both within the gd drawing engine itself and in the final > output image. Also, gd 2.0 is built as a shared library. Final > fixes and documentation changes will be made next week after I return from > vacation. -Tom Boutell Only, what is really a pitty, it continues not to support any more GIF, the most common image format on the Internet... Michael From mochaexpress at yahoo.com Wed Mar 28 06:45:06 2001 From: mochaexpress at yahoo.com (Caffeinate The World) Date: Wed, 28 Mar 2001 06:45:06 -0800 (PST) Subject: GD 2.0 on the horizon In-Reply-To: <3AC1A903.D3DB3B34@jrc.it> Message-ID: <20010328144506.12485.qmail@web2304.mail.yahoo.com> --- Michael Kleih wrote: > > gd 2.0 is coming! Expect a beta release of gd 2.0 around March ... > Only, what is really a pitty, it continues not to support any more > GIF, > the most common image format on the Internet... part of GIF's algorithm is patented. Unless Thomas wants to pay royalty fees for each copy that we download for free, you won't see GIF support BACK in gd again. If you need GIF support, find an old copy of gd, or send Thomas a few billion dollars so he can send th Unisys or who ever is holding the patents right now for the compression of GIF's algor. :-) __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text From hdhaan at Delft.nl Wed Mar 28 06:59:11 2001 From: hdhaan at Delft.nl (Herman Tjesse de Haan) Date: Wed, 28 Mar 2001 16:59:11 +0200 Subject: displaying rasterdata Message-ID: <0D7CF4BC9122D4119E0C0008C78492E501D2194E@cs03-e.gemeente.delft.nl> Hi, I have a set of arial photo's which sould be displayed with mapserver. They are tif-files with tfw-files. One tif file is around 12 MB. Is it possible to display these tif files quickly on the intranet? What requirements should the server have if quick display of these tif-files should be possible? Thanks in advance! Herman de Haan From steve.lime at dnr.state.mn.us Wed Mar 28 07:01:21 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 28 Mar 2001 09:01:21 -0600 Subject: GD 2.0 on the horizon Message-ID: There is site in Australia that is distributing a patched version of GD 1.8.4 that does support GIF (and PNG and JPEG and WBMP) and I presume he will also support GD 2.0. This and GD support for Freetype 2 has prompted the switch from distributing gd-1.2 to supporting the new versions of GD w or w/o GIF. That is, MapServer 3.5 will no longer be distributed with GD nor it's own Freetype interface. This is a good thing. Those that want GIF can build a patched version of GD to get it. I'll post the address when we get closer to launch. GD 2.0 looks promising but is still missing a number of features (like antialiasing) that will make for incredibly nice maps. 2.0 will not be supported until 3.5 is initially released. Enough changes. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Caffeinate The World 03/28/01 08:45AM >>> --- Michael Kleih wrote: > > gd 2.0 is coming! Expect a beta release of gd 2.0 around March ... > Only, what is really a pitty, it continues not to support any more > GIF, > the most common image format on the Internet... part of GIF's algorithm is patented. Unless Thomas wants to pay royalty fees for each copy that we download for free, you won't see GIF support BACK in gd again. If you need GIF support, find an old copy of gd, or send Thomas a few billion dollars so he can send th Unisys or who ever is holding the patents right now for the compression of GIF's algor. :-) __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text From ocz at ifak.fhg.de Wed Mar 28 07:20:19 2001 From: ocz at ifak.fhg.de (Olaf Czogalla) Date: Wed, 28 Mar 2001 17:20:19 +0200 Subject: UNSUBSCRIBE Message-ID: <01C0B7AB.5DCBC5A0.ocz@ifak.fhg.de> UNSUBSCRIBE From steve.lime at dnr.state.mn.us Wed Mar 28 07:57:30 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 28 Mar 2001 09:57:30 -0600 Subject: vector data Message-ID: Yes. Drawing is essentially just extra work after doing a spatial query. So queries give you access to the raw shapes. You could optionally clip and convert them to image coordinates. Note this level of access would have to involve MapScript. Currently, MapScript supports shapefile output but with access to the raw vector data just about anything goes. We are currently working to add GML output as well. Clipping uses an algorithm suitable for scanline conversion (i.e. drawing) and is done just before a shape is drawn. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "andr?as m. winter" 03/28/01 12:42AM >>> just new to the list and not running mapserver yet, THIS is one of the most inmportant questions to be answered. i would ask more precisely: is there any output of the server imaginable that takes place BEFORE rastering and that could be used instead of the raster? or the other way round: does the clipping take place before or after teh merging of layers inside mapserver? thanks for any hints, andr? -- ________________________________________________ andr?as m. winter - freytag & berndt content management - new media & internet austria a1230 wien brunner str 69 tel +43.1.869.90.90.38 fax +43.1.869.90.90.62 mailto:winter at freytagberndt.at Thomas Bauer wrote: > Hi, > can MAPSERVER create vector data (DXF, SVG, ... ) from a *.map file? > > Thomas From benlewis1 at hotmail.com Wed Mar 28 15:59:42 2001 From: benlewis1 at hotmail.com (Ben Lewis) Date: Wed, 28 Mar 2001 15:59:42 Subject: Open Source GIS Index Message-ID: MapServer users, Since getting bitten by the open source bug a couple years ago i've been building a list of URLs to such GIS software efforts. I have found this list handy and finally organized it and put it out there: http://opensourcegis.org I believe a number of you run projects mentioned here. If you see good ones missing or would like your project to read differently please email me. I tried to take descriptive text from the projects themselves. Didn't always know the license tho... - Ben Ben Lewis Advanced Technology Solutions, Inc. Lancaster, Pennsylvania Phone:(717)399-7007 http://www.atsincorp.com _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From steve.lime at dnr.state.mn.us Wed Mar 28 08:47:54 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 28 Mar 2001 10:47:54 -0600 Subject: Class Expressions & Class Items Message-ID: At the moment you're out of luck. There are no provisions for shapefiles with disjoint attribute data. Not real standard. I'm looking to add ODBC based joins soon but that will be a resource hog and you'll lose whatever performance gains you got from Oracle in the first place. That said you could simply loop thorough the features yourself assigning class membership in PHP and using the shape draw method. In 3.5 the draw method for a shape assumes that a shape has already been classified so that's how you'll have to do this in the next release. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Thorsten Fischer 03/27/01 03:34AM >>> Ladies & gentlemen, I am using php MapScript to display data from shapefiles. The .dbf data files have been imported into an Oracle database for performance and maintenance reasons. I want to 'highlight' one or more shapes in a layer by filling them with a different color. Using a map file, I would do the following: [ BLA BLA LAYER DEFINITION ] CLASSITEM "name" CLASS EXPRESSION // COLOR END CLASS EXPRESSION /./ COLOR END [ REST OF BLA BLA ] Coding in php MapScript, I would now get the first class with getClass (), set a new expression, redraw the map, and that's it. Unfortunately, the CLASSITEM stuff is retrieved from the .dbf file of course, which does not exist for me anymore. Any suggestions? Thorsten Fischer From steve.lime at dnr.state.mn.us Wed Mar 28 08:59:15 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 28 Mar 2001 10:59:15 -0600 Subject: displaying rasterdata Message-ID: It's possible, I'm using far larger datasets here. Server size is a matter more of the anticipated use as well as the size of the datasets. One hit a day doesn't require much of a server but 1000's a day obviously would. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Herman Tjesse de Haan 03/28/01 08:59AM >>> Hi, I have a set of arial photo's which sould be displayed with mapserver. They are tif-files with tfw-files. One tif file is around 12 MB. Is it possible to display these tif files quickly on the intranet? What requirements should the server have if quick display of these tif-files should be possible? Thanks in advance! Herman de Haan From chads at adci.com Wed Mar 28 09:13:16 2001 From: chads at adci.com (Chad Streck) Date: Wed, 28 Mar 2001 11:13:16 -0600 Subject: AZ-C SPCS definition Message-ID: <3AC21BAC.1020507@adci.com> I'm working on a application that will display points on top of imagery. The imagery and the base data are in state plane AZ-C NAD83 FT, but the points I have are all lat long. I defined the projection for the point file as geographic, and I'm trying to define the AZ-C SPCS for the main projection, but I don't seem to get the proper parameters. I know that my low understanding of projections is probably at fault, but could someone please help in defining the AZ-C projection, or point me to a good reference or cheat-sheet on it? I haven't been able to find a good one so far. I know I could just use ArcView to translate the point file to state plane, but the future of the project will be using lat/long for the points from an SQL database, so I need to get this projection working sometime, and now would be a good time. Thanks, Chad From Matt.Wilkie at gov.yk.ca Wed Mar 28 09:33:34 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Wed, 28 Mar 2001 09:33:34 -0800 Subject: Open Source GIS Index Message-ID: <6DD7370C9452D31192A10008C75D07530957CF62@raptor.gov.yk.ca> > Since getting bitten by the open source bug a couple years > ago i've been building a list of URLs to such GIS software > efforts. I have found this list handy and finally organized > it and put it out there: http://opensourcegis.org Thanks Ben, I hadn't discovered this one yet. Is there something you do, or plan to, which is appreciably different from FreeGIS.org? Just wondering if I should of this as a mirror of sorts or a project which only looks that way because it is still embryonic. > I believe a number of you run projects mentioned here. If you > see good ones missing or would like your project to read > differently please email me. I tried to take descriptive text > from the projects themselves. Didn't always know the license tho... -BLM GIS Utilities is public domain -dbf2info is public domain. -FIASCO is no more. :( "3/5/2001: Since my Ph.D. supervisor claims copyright of some parts of the FIASCO source code, I removed all sources and binaries. The sources are not under the GPL anymore, until the situation is clear. Moreover, do not use the already distributed code. Thanks for you co-operation. " -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- From chads at adci.com Wed Mar 28 09:54:06 2001 From: chads at adci.com (Chad Streck) Date: Wed, 28 Mar 2001 11:54:06 -0600 Subject: AZ-C update... Message-ID: <3AC2253E.3050803@adci.com> Here is what I have so far, and customer points not showing...... When I run proj from the command line, I get this..... [cas at saratoga cas]$ /usr/local/bin/proj +proj=tmerc -v +ellps=WGS84 +units=ft +lon_0=111w55 +lat_0=31w +x_0=699998.60 +y_0=0 +no_defs #Transverse Mercator # Cyl, Sph&Ell # +proj=tmerc +ellps=WGS84 +units=ft +lon_0=111w55 +lat_0=31w +x_0=699998.60 # +y_0=0 +no_defs The values I got using Mentor software. My mapfile has these values.... projection "proj=tmerc" "ellps=WGS84" "units=ft" "lon_0=111w55" "lat_0=31w" "x_0=699998.60" "y_0=0" "no_defs" end ...and for the customer layer.... layer classitem "status" # maxscale 1000000 # minscale 0 name "ace" data "procon/ace-cust" status default type point projection geographic end class color 0 64 128 expression /A/ name "Existing Customers" size 8 symbol "hospital" end class color 128 64 0 expression /B/ name "New Prospects" size 8 symbol "hospital" end class color 64 128 0 expression /C/ name "New Customers" size 8 symbol "hospital" end queryitem "ddlong" tolerance 5 query expression /./ template "" end end Hope this gives you an idea of where I'm at. Thanks, Chad From chads at adci.com Wed Mar 28 12:11:05 2001 From: chads at adci.com (Chad Streck) Date: Wed, 28 Mar 2001 14:11:05 -0600 Subject: AZ-C SPCS definition References: <3AC21BAC.1020507@adci.com> <3AC23A0A.5240FD71@pobox.com> Message-ID: <3AC24559.2070509@adci.com> Thanks Frank. I used your values and changed units to ft and converted the x_0 to feet by multiplying 3.28084, and my points landed about 200 miles east of where they should be. So I figured it was a +/- issue, so I put a - in front of the x_0 and that shifted it about 500 miles west. So for giggles, I used you meters calculation and the points land where they are supposed to be, so I'm very confused at this time. Here is what I have for the map file projection.... projection "proj=tmerc" "ellps=GRS80" "units=ft" "lon_0=-111.916666667" "lat_0=31.000000000" #"x_0=699999.9999972" "x_0=213360.000" "y_0=0.000000" "k=0.999900" "no_defs" end ... and for the layer that is in lat/long.... layer classitem "status" # maxscale 1000000 # minscale 0 name "ace" data "procon/ace-cust" status default type point projection geographic end class color 0 64 128 expression /A/ name "Existing Customers" size 8 symbol "hospital" end class color 128 64 0 expression /B/ name "New Prospects" size 8 symbol "hospital" end class color 64 128 0 expression /C/ name "New Customers" size 8 symbol "hospital" end queryitem "ddlong" tolerance 5 query expression /./ template "" end end I have some imagery that is in AZ-C NAD83 FT that I will now place on the vector data to see how far off I am. Chad Frank Warmerdam wrote: > Chad Streck wrote: > >> I'm working on a application that will display points on top of >> imagery. The imagery and the base data are in state plane AZ-C NAD83 >> FT, but the points I have are all lat long. I defined the projection >> for the point file as geographic, and I'm trying to define the AZ-C SPCS >> for the main projection, but I don't seem to get the proper parameters. >> I know that my low understanding of projections is probably at fault, >> but could someone please help in defining the AZ-C projection, or point >> me to a good reference or cheat-sheet on it? I haven't been able to >> find a good one so far. >> >> I know I could just use ArcView to translate the point file to state >> plane, but the future of the project will be using lat/long for the >> points from an SQL database, so I need to get this projection working >> sometime, and now would be a good time. > > > Chad, > > I have this definition for Arizona Central, NAD83: > > +proj=tmerc +lat_0=31.000000000 +lon_0=-111.916666667 +k=0.999900 +x_0=213360.000 +y_0=0.000 +ellps=GRS80 +units=m no_defs > > Since you are using feet, you will need to translate the x_0 value to feet > and change +units=m to +units=ft. > > Let me know if this works. > > Good luck, > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > From benlewis1 at hotmail.com Wed Mar 28 21:50:24 2001 From: benlewis1 at hotmail.com (Ben Lewis) Date: Wed, 28 Mar 2001 21:50:24 Subject: Open Source GIS Index Message-ID: Thanks Matt, I will make those changes. The site is embryonic - one thing this will be eventually is a very comprehensive index which didn't seem to be out there. Freegis.org is a great site, but didn't meet my personal needs. As a consultant trying to make the case for open source GIS tools to people who only know ESRI or Erdas or Intergraph or AutoCAD, I wanted a site that is a bit gonzo in completeness and casts the net broadly in terms of what constitutes relevant software, focuses on software, and is easy to look stuff up on. At least that's the idea... - Ben >From: "Matt.Wilkie" >To: mapserver-users at lists.gis.umn.edu >Subject: RE: Open Source GIS Index >Date: Wed, 28 Mar 2001 09:33:34 -0800 > > > Since getting bitten by the open source bug a couple years > > ago i've been building a list of URLs to such GIS software > > efforts. I have found this list handy and finally organized > > it and put it out there: http://opensourcegis.org > >Thanks Ben, I hadn't discovered this one yet. Is there something >you do, or plan to, which is appreciably different from FreeGIS.org? >Just wondering if I should of this as a mirror of sorts or a >project which only looks that way because it is still embryonic. > > > I believe a number of you run projects mentioned here. If you > > see good ones missing or would like your project to read > > differently please email me. I tried to take descriptive text > > from the projects themselves. Didn't always know the license tho... > >-BLM GIS Utilities is public domain >-dbf2info is public domain. > >-FIASCO is no more. :( >"3/5/2001: Since my Ph.D. supervisor claims copyright of some parts of the >FIASCO source code, I removed all sources and binaries. The sources are not >under the GPL anymore, until the situation is clear. Moreover, do not use >the already distributed code. Thanks for you co-operation. " > > >-matt > >----------------------------------------------------------------- >Matt Wilkie * Yukon Renewable Resources GIS >http://renres.gov.yk.ca/pubs/rrgis/ >----------------------------------------------------------------- _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From bamarob55 at yahoo.com Thu Mar 29 05:44:07 2001 From: bamarob55 at yahoo.com (Robert Aldridge) Date: Thu, 29 Mar 2001 05:44:07 -0800 (PST) Subject: MapScript & Python Message-ID: <20010329134407.84143.qmail@web10308.mail.yahoo.com> Is anyone using MapScript with Python? If so, could you point me to some documentation and/or examples? Thanks, Robert Aldridge __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text From michalak at hwr.arizona.edu Thu Mar 29 10:49:50 2001 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Thu, 29 Mar 2001 11:49:50 -0700 (MST) Subject: limit on number of classes in layer? Message-ID: Is there a limit on the number of classes you can put in a layer? Seems that we are running into this as we have a shape file of Africa with a different class for each country. We got to the S's (countries with names starting with S) and it bottomed out. Does mapserver store the classes in an array or something? Mapserver is written in C, right? Just wanted to make sure this is the problem and not something else. Thanks- Zolla From ocz at ifak.fhg.de Fri Mar 30 07:57:57 2001 From: ocz at ifak.fhg.de (Olaf Czogalla) Date: Fri, 30 Mar 2001 17:57:57 +0200 Subject: MapScript/ActivePerl/NT Message-ID: <01C0B942.F48DFCE0.ocz@ifak.fhg.de> I'm trying to install Mapscript for Perl under Windows98/NT with Apache. The Mapserver runs fine under Apache as it does ActivePerl. It is possible to run *.pl Scripts as CGI from the Document-Root. When I try to use MapScript; and do some testing I get the following error messages: C:\Download Stuff\MapServer\ms_demo>perl -w ms.pl Can't locate loadable object for module mapscript in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at C:/Perl/site/lib/mapscript.pm line 7 Compilation failed in require at ms.pl line 4. The mapscript.pm I took from source distribution "as is". Where I can get now the missing loadable objects, or do I need a mapscript.dll for Perl, is any available out there? I noticed from mailing archives that this issue has been discussed earlier, but found no hint later, so I'm actually stucked at this point. I've also considered to turn to PHP but is there also anything like XBase since I need dbf-support for dynamic database access? Any suggestions would be highly appreciated. Olaf Olaf Czogalla IFAK/ITS Dept IFAK Magdeburg Steinfeldst 3 D-39179 BARLEBEN Germany From morissette at dmsolutions.ca Fri Mar 30 10:23:37 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 30 Mar 2001 13:23:37 -0500 Subject: MapScript/ActivePerl/NT References: <01C0B942.F48DFCE0.ocz@ifak.fhg.de> Message-ID: <3AC4CF29.5C5739CA@dmsolutions.ca> Olaf Czogalla wrote: > > I've also considered to turn to PHP but is there also anything like XBase > since I need > dbf-support for dynamic database access? > I can't be of much help for the Perl module, but to answer your question about the PHP Dbase module, see: http://www.php.net/manual/en/ref.dbase.php -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Fri Mar 30 11:57:11 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 30 Mar 2001 13:57:11 -0600 Subject: Test for .dbf files Message-ID: By definition shapefiles consist of 3 files. Will ArcView work without the .dbf file? This is a mapserver matter, not shapelib as all components of a shapefile are processed at one time. We could make not finding a dbf file a non-fatal error pretty easily though although I'm not sure it's worth the effort and potential errors if items are referenced. BTW ArcView pukes if no .dbf file is found... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Thorsten Fischer 03/27/01 05:20AM >>> Hello list. I discovered that the .dbf files are in any circumstances neccesary for the mapserver to draw a layer. There seems to be a test if a .dbf file exists, even for drawing plain polygon data. I understand that it might be neccessary for drawing annotations, though it seems to prevent me from getting annotation data from a database. If the .dbf file is missing, plain polygon layers are not drawn. It is possible to create a 0 byte name.dbf file for a name.shp file. Drawing works fine then. Is this a shapelib matter or a mapserver internal? Is this even desired behaviour? Thorsten Fischer From edathome at nbnet.nb.ca Fri Mar 30 14:48:10 2001 From: edathome at nbnet.nb.ca (Eddie Oldfield) Date: Fri, 30 Mar 2001 17:48:10 -0500 Subject: unsubscribe Message-ID: <001201c0b96b$7f847400$6c54fea9@Default> Unsubscribe me please. Eddie Oldfield Director, New Brunswick Climate Change Hub New Brunswick Lung Association Associate Member, Partners for Climate Protection, Federation of Canadian Municipalities Office: (506) 462-0930 Fax: (506) 462-0939 Email: eddie.oldfield at nb.lung.ca 65 Brunswick St., Fredericton, NB E3B 1G5 _________________ Coordinator, Ontario Chapter, Sustainable Development Association Member of Millennium Eco-Communities, Environment Canada Home: (506) 453-0887 Email: edathome at nbnet.nb.ca 312-A Northumberland Fredericton, NB E3B 3J9 -------------- next part -------------- An HTML attachment was scrubbed... URL: