From gispmpf at zipmail.com.br Sat Dec 1 09:26:55 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Sat, 1 Dec 2001 15:26:55 -0200 Subject: [mapserver-users] =?iso-8859-1?Q?two=20problems?= Message-ID: <3BFBD46D0001880F@www.zipmail.com.br> Hello , I'm having two problems with the following script: CONNECTIONTYPE postgis NAME ruas CONNECTION "user=postgres dbname=cadastro" DATA "pontos from roads" FILTER "cod_road <6" STATUS ON TYPE LINE LABELITEM "desc_item" CLASS NAME "Roads" EXPRESSION ([tipo]=1) COLOR 0 0 89 SYMBOL 'line' SIZE 10 MINSIZE 3 MAXSIZE 15 OVERLAYCOLOR 255 0 0 OVERLAYSYMBOL 0 OVERLAYSIZE 3 OVERLAYMINSIZE 1 OVERLAYMAXSIZE 2 SIZE 15 LABEL TYPE truetype FONT arial-bold SIZE 14 ANTIALIAS COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS OFF END QUERY teste.html END END 1)loadlabel(): Unknown identifier. Keyword FONT is not valid without TrueType font supportLAYER and i already have compiled mapserver with the --with--ttf option but the error remains... 2)loadLayer(): Unknown identifier. (QUERY):(122) How can i declared this query? Could you help me? Thanks Jo?o. ------------------------------------------ Use o melhor sistema de busca da Internet Radar UOL - http://www.radaruol.com.br From teb at mallit.fr.umn.edu Sun Dec 2 06:04:41 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Sun, 2 Dec 2001 08:04:41 -0600 (CST) Subject: [mapserver-users] Access file error on demo (fwd) Message-ID: <200112021404.IAA14743@mallit.fr.umn.edu> From teb at mallit.fr.umn.edu Sun Dec 2 06:06:27 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Sun, 2 Dec 2001 08:06:27 -0600 (CST) Subject: [mapserver-users] zoom to fixed scale (fwd) Message-ID: <200112021406.IAA14758@mallit.fr.umn.edu> From nhv at cape.com Sun Dec 2 06:25:20 2001 From: nhv at cape.com (Norman Vine) Date: Sun, 2 Dec 2001 09:25:20 -0500 Subject: [mapserver-users] MapServer and PostGIS compile In-Reply-To: Message-ID: <005401c17b3d$2d129aa0$a300a8c0@nhv> Pericles S. Nacionales writes: > >Hi there! While compiling MapServer with PostGIS support on >Cygwin, I ran >into this error message: >mappostgis.c:112: `LITTLE_ENDIAN' undeclared (first use in >this function) #ifdef __CYGWIN__ #include #endif // This line is already in the postGIS 'C" source files don't know about other systems as this #define is not included in the 'C' standard Cheers Norman From marin at here.is Sun Dec 2 06:53:16 2001 From: marin at here.is (Ma) Date: Sun, 02 Dec 2001 14:53:16 +0000 Subject: [mapserver-users] MapServer and Cygwin. msLoadMap(): Regular expression error. (\.map$) Message-ID: <3C0A405C.CD4D5F6D@here.is> hi there, I just compiled MapServer (nightly - btw is this v3.5?) using Cygwin on Win2k SP2 without errors and when I check it out with Apache I got: " No query information to decode. QUERY_STRING is set, but empty". I thought it was ok, but it was not. The problem is that when I try to use it with mapfile, etc. I got an error: msLoadMap(): Regular expression error. (\.map$) and the same error for the other .exe files. What is the problem and how to fix it? Thanks. -- Ma From nhv at cape.com Sun Dec 2 07:48:03 2001 From: nhv at cape.com (Norman Vine) Date: Sun, 2 Dec 2001 10:48:03 -0500 Subject: [mapserver-users] MapServer and Cygwin. msLoadMap(): Regular expression error. (\.map$) In-Reply-To: <3C0A405C.CD4D5F6D@here.is> Message-ID: <005901c17b48$bb329280$a300a8c0@nhv> Ma writes: > >I just compiled MapServer (nightly - btw is this v3.5?) using Cygwin on >Win2k SP2 without errors and when I check it out with Apache I got: >" No query information to decode. QUERY_STRING is set, but empty". >I thought it was ok, but it was not. >The problem is that when I try to use it with mapfile, etc. I got an >error: > >msLoadMap(): Regular expression error. (\.map$) The linker is probably picking up the Cygwin regex package so it is not complaining You need to get and compile the gnu regex package ftp://ftp.gnu.org/pub/gnu/regex/regex-0.12.tar.gz and change the Makefile variables REGEX_OBJ = REGEX_INC = to point to where you have installed regex Cheers Norman From paul at tei.or.th Sun Dec 2 09:06:46 2001 From: paul at tei.or.th (Paul Hastings) Date: Mon, 3 Dec 2001 00:06:46 +0700 Subject: [mapserver-users] GIS World's Web Mapping Guide References: Message-ID: <000f01c17b53$ba535510$0a729acb@ramindra> > Nice to see our little OpenSource product so prominently discussed- *sheesh*. Wonder who's butt you gotta kiss to make their article. more like ad revenues. were there any opensource/free map servers discussed? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.303 / Virus Database: 164 - Release Date: 11/24/2001 From Tom.Kralidis at ccrs.nrcan.gc.ca Sun Dec 2 10:02:13 2001 From: Tom.Kralidis at ccrs.nrcan.gc.ca (Kralidis, Tom) Date: Sun, 2 Dec 2001 13:02:13 -0500 Subject: [mapserver-users] zoom to fixed scale (fwd) Message-ID: <7CDD7B94357FD5119E800002A537C46E226442@s5-ccr-r1.ccrs.nrcan.gc.ca> Hi, What sort of problems are you running into? A couple of potential problems I see: - one of your scale option tags is closed by a script tag - document.mapserv.scale should be document.mapserv.scale.value Note that the scale variable should be used with the mapxy variable. ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.ccrs.nrcan.gc.ca/ ================================= i'm trying to have a "Zoom to Fixed Scale" on my webpage, but am unsure about my javascript. the pulldown in my html looks like: Zoom to Fixed Scale: and my javascript is: function fixedScale() { document.mapserv.imgbox.value = 0 + " " + 0 + " " + [mapwidth] + " " + [mapheight]; document.mapserv.imgxy.value = ([mapwidth]-1)/2.0 + " " + ([mapheight]-1)/2.0; document.mapserv.scale = document.mapserv.fixscale.options[document.mapserv.fixscale.selectedIndex].v alue; document.mapserv.submit(); } looks okay to me, i can't figure out what the problem is. any help? thanks. Amy L. Stender Remote Sensing/GIS Center Cold Regions Research and Engineering Laboratory United States Army Corps of Engineers 72 Lyme Road, Hanover, NH 03755-1290 Tel: (603) 646-4733 Fax: (603) 646-4730 astender at crrel.usace.army.mil From gispmpf at zipmail.com.br Sun Dec 2 11:01:01 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Sun, 2 Dec 2001 17:01:01 -0200 Subject: [mapserver-users] =?iso-8859-1?Q?pdf=20library?= Message-ID: <3BFBD46D0001A5AB@www.zipmail.com.br> Hi There is any example of the use of mapserver with pdf library? Thanks Jo?o ------------------------------------------ Use o melhor sistema de busca da Internet Radar UOL - http://www.radaruol.com.br From pushkar at ERC.MsState.Edu Sun Dec 2 11:52:51 2001 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Sun, 2 Dec 2001 13:52:51 -0600 (CST) Subject: [mapserver-users] Access file error on demo (fwd) In-Reply-To: <200112021404.IAA14743@mallit.fr.umn.edu> Message-ID: Rob, If you have already created the directory tmp, then you need to give the public read and execute access to it. If you haven't created this directory you need to create it manually. I think this is most likely your problem. > >From talos at wdn.com Sun Dec 2 03:12:05 2001 > Received: from lists.gis.umn.edu (lists.gis.umn.edu [128.101.73.109]) > by mallit.fr.umn.edu (8.9.3+Sun/8.9.3) with ESMTP id DAA14634 > for ; Sun, 2 Dec 2001 03:12:05 -0600 (CST) > Received: from mail.wdn.net (mail.wdn.com [216.250.230.62]) > by lists.gis.umn.edu (8.9.3+Sun/8.9.1) with ESMTP id DAA27012 > for ; Sun, 2 Dec 2001 03:15:20 -0600 (CST) > Received: (from nobody at localhost) > by mail.wdn.net (8.9.1/8.9.1) id MAA07196; > Fri, 30 Nov 2001 12:22:14 -0500 > Date: Fri, 30 Nov 2001 12:22:14 -0500 > Message-Id: <200111301722.MAA07196 at mail.wdn.net> > X-Authentication-Warning: mail.wdn.net: nobody set sender to talos at wdn.com using -f > From: rsmith at talos.com > To: mapserver-info at lists.gis.umn.edu > Reply-To: rsmith at talos.com > MIME-Version: 1.0 > Content-Type: text/plain > Content-Transfer-Encoding: 8bit > User-Agent: IMP/PHP3 Imap webMail Program 2.0.11 > Sender: talos at wdn.com > Subject: Access file error on demo > Content-Length: 309 > > I just installed the version 3.3 mapserv for the first > time. > > I followed the instlattion instructions closely, but > can't seem to > get around the error below. Has anyone come across > this? > > > msSaveImage(): Unable to access file. > (C:\Inetpub\wwwroot\tmp\DEMO10071408313056.gif) > > Thanks > Rob > rsmith at talos.com > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Master's Candidate in ELECTRICAL ENGINEERING, MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From Andreas.Maul at bgr.de Mon Dec 3 02:07:17 2001 From: Andreas.Maul at bgr.de (Maul, Andreas-Alexander) Date: Mon, 3 Dec 2001 11:07:17 +0100 Subject: [mapserver-users] New window for query results Message-ID: Hi, is there an easy way to open a new window for showing query results whereas the map and navigation window remains visible? I tried to use the javascript window.open method in the query template file (which itself redirects the call via the "refresh" meta tag to a php script file for a database query) and in the file with the php query. However every time the results popped up in the same window. Or must I do the window handling in the map template file? Thanks in advance, Andreas From joao at pmpf.rs.gov.br Mon Dec 3 05:03:10 2001 From: joao at pmpf.rs.gov.br (joao at pmpf.rs.gov.br) Date: Mon, 3 Dec 2001 13:03:10 -0000 Subject: [mapserver-users] TrueType font support Message-ID: <20011203130310.AD37F46EFA@mail.passofundo.rs.gov.br> Hi I'm having a problem with this script: LAYER CONNECTIONTYPE postgis NAME ruas CONNECTION "user=postgres dbname=cadastro" DATA "pontos from rua" FILTER "cod_rua < 6" STATUS ON TYPE LINE LABELITEM "road_name" CLASS NAME "Road" EXPRESSION ([road]=2) COLOR 85 85 85 SYMBOL 'line' SIZE 10 MINSIZE 3 MAXSIZE 15 OVERLAYCOLOR 168 168 0 OVERLAYSYMBOL 0 OVERLAYSIZE 3 OVERLAYMINSIZE 1 OVERLAYMAXSIZE 2 SIZE 15 LABEL TYPE truetype FONT arial-bold SIZE 14 ANTIALIAS COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS OFF END loadlabel(): Unknown identifier. Keyword FONT is not valid without TrueType font support. and i had compiled mapserver with this options: /configure --with-postgis=/var/lib/pgsql/bin/pg_config --with- gd=/home/httpd/cgi-bin/mapserver/gd-1.2/ --with- freetype=/usr/include/freetype2/ There is anything missing to load TrueType support? Thanks Jo?o. -- www.pmpf.rs.gov.br From Andreas.Maul at bgr.de Mon Dec 3 05:56:30 2001 From: Andreas.Maul at bgr.de (Maul, Andreas-Alexander) Date: Mon, 3 Dec 2001 14:56:30 +0100 Subject: [mapserver-users] AW: new window query with mapserver Message-ID: Dave, after replacing some german sentences with english phrases, I attach here some code snippets. I hope the problem will be more clear with it. Regards, Andreas 1) map file snippet MAP ... # part of the layer section in my map file # LAYER NAME "Bohrungen" # wells DATA bohrung TYPE POINT STATUS OFF TOLERANCE 7 TOLERANCEUNITS PIXELS SYMBOLSCALE 3000000 PROJECTION "proj=latlong" "ellps=bessel" END CLASS NAME "Bohrungen" COLOR 255 204 0 # yellow SYMBOL 1 MINSIZE 3 MAXSIZE 6 TEMPLATE "tbohrung.html" END END # layer Bohrungen # ... END # MAP 2) Content of the template file "tbohrung.html" (the window.open command doesn't work if I comment out the refresh command. The refresh command alone does its job; but only in the same window.): Redirection You will be redirected to another address. If your browser doesn't support redirection please follow this link. 3) First lines of the database query in file "bohrung.html":

Wells Query Result:

-----Urspr?ngliche Nachricht----- Von: David Armstrong [mailto:david.armstrong at ntlworld.com] Gesendet am: Montag, 3. Dezember 2001 13:58 An: Andreas.Maul at bgr.de Betreff: new window query with mapserver Andreas, can you send me the code you are working with etc php & javascript and i can have a look and see what can be done. i have been looking for the same idea too Regards Dave From stepan.kafka at centrum.cz Mon Dec 3 06:06:13 2001 From: stepan.kafka at centrum.cz (stepan.kafka at centrum.cz) Date: Mon, 03 Dec 2001 15:06:13 +0100 Subject: [mapserver-users] New window for query results Message-ID: <20011203140625Z327689-20002+551@mail.centrum.cz> There are several ways to get it via javascript code. Try for instance: ... newWin =window.open("", "resultsWin", ""); document.mapserv.target = "resultsWin"; document.mapserv.submit() ... or ... myURL = ; newWin =window.open(myURL, "resultsWin", ""); Stepan Kafka ______________________________________________________________ > Od: "Maul, Andreas-Alexander" > Komu: "'mapserver-users at lists.gis.umn.edu'" > CC: > Datum: Mon, 3 Dec 2001 11:07:17 +0100 > P?edm?t: [mapserver-users] New window for query results > > Hi, > is there an easy way to open a new window for showing query results whereas > the map and navigation window remains visible? I tried to use the javascript > window.open method in the query template file (which itself redirects the > call via the "refresh" meta tag to a php script file for a database query) > and in the file with the php query. However every time the results popped up > in the same window. Or must I do the window handling in the map template > file? > Thanks in advance, > Andreas > ----- Informace bez ?ek?n? jen na Va?e zavol?n?. Nov? slu?ba ?esk? po?ty: 0800/10 44 10; info at info.cpost.cz http://user.centrum.cz/redir.php?url=http://www.cpost.cz/Aktuality/Default.htm From Andreas.Maul at bgr.de Mon Dec 3 07:20:55 2001 From: Andreas.Maul at bgr.de (Maul, Andreas-Alexander) Date: Mon, 3 Dec 2001 16:20:55 +0100 Subject: [mapserver-users] Query results in new window Message-ID: ok, I got it. Here is my simple template file. Thanks, Andreas Redirection From morissette at dmsolutions.ca Mon Dec 3 08:11:56 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 03 Dec 2001 11:11:56 -0500 Subject: [mapserver-users] TrueType font support References: <20011203130310.AD37F46EFA@mail.passofundo.rs.gov.br> Message-ID: <3C0BA44C.369D1F8F@dmsolutions.ca> joao at pmpf.rs.gov.br wrote: > > loadlabel(): Unknown identifier. Keyword FONT is not valid without TrueType > font support. > and i had compiled mapserver with this options: > /configure --with-postgis=/var/lib/pgsql/bin/pg_config --with- > gd=/home/httpd/cgi-bin/mapserver/gd-1.2/ --with- > freetype=/usr/include/freetype2/ > > There is anything missing to load TrueType support? > Starting with MapServer 3.5, you have to compile with a GD that was compiled with freetype. The --with-freetype configure switch is only there to tell configure where to find the freetype library that was used to compile GD in case it is not in one the default locations. In most cases you don't need it and configure will automatically detect that your GD has freetype support built-in. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pnaciona at gis.umn.edu Mon Dec 3 08:48:25 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Mon, 3 Dec 2001 10:48:25 -0600 Subject: [mapserver-users] MapServer and Cygwin. msLoadMap(): Regular expression error. (\.map$) In-Reply-To: <005901c17b48$bb329280$a300a8c0@nhv> Message-ID: Ma and others, I've written a HOWTO for MapServer and Cygwin. It should be available on the MapServer web site. -Perry N. pnaciona at gis.umn.edu > -----Original Message----- > From: owner-mapserver-users at lists [mailto:owner-mapserver-users at lists]On > Behalf Of Norman Vine > Sent: Sunday, December 02, 2001 9:48 AM > To: 'Ma'; mapserver-users at lists > Subject: RE: [mapserver-users] MapServer and Cygwin. msLoadMap(): > Regular expression error. (\.map$) > > > Ma writes: > > > >I just compiled MapServer (nightly - btw is this v3.5?) using Cygwin on > >Win2k SP2 without errors and when I check it out with Apache I got: > >" No query information to decode. QUERY_STRING is set, but empty". > >I thought it was ok, but it was not. > >The problem is that when I try to use it with mapfile, etc. I got an > >error: > > > >msLoadMap(): Regular expression error. (\.map$) > > The linker is probably picking up the Cygwin regex package > so it is not complaining > > You need to get and compile the gnu regex package > ftp://ftp.gnu.org/pub/gnu/regex/regex-0.12.tar.gz > > and change the Makefile variables > REGEX_OBJ = > REGEX_INC = > to point to where you have installed regex > > Cheers > > Norman > From steve.lime at dnr.state.mn.us Mon Dec 3 11:03:14 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 03 Dec 2001 13:03:14 -0600 Subject: [mapserver-users] GIS World's Web Mapping Guide Message-ID: Not that I could see. Lot's of no-name commercial ones with no user base though... Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Paul Hastings 12/02/01 11:06AM >>> > Nice to see our little OpenSource product so prominently discussed- *sheesh*. Wonder who's butt you gotta kiss to make their article. more like ad revenues. were there any opensource/free map servers discussed? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.303 / Virus Database: 164 - Release Date: 11/24/2001 From paul at tei.or.th Mon Dec 3 11:16:19 2001 From: paul at tei.or.th (Paul Hastings) Date: Tue, 4 Dec 2001 02:16:19 +0700 Subject: [mapserver-users] GIS World's Web Mapping Guide References: Message-ID: <00ca01c17c2e$fda19710$0a729acb@ramindra> ad revenues then though i can't remember reading gis world in years anyway, cost me an arm & leg over here for all that glossy paper w/marketing hype passed off as technical content, geez (hows that for sour grapes ;-) ----- Original Message ----- From: "Stephen Lime" To: Cc: Sent: Tuesday, December 04, 2001 2:03 AM Subject: Re: [mapserver-users] GIS World's Web Mapping Guide Not that I could see. Lot's of no-name commercial ones with no user base though... --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.303 / Virus Database: 164 - Release Date: 11/24/2001 From sutton_t at giug.net Mon Dec 3 11:12:20 2001 From: sutton_t at giug.net (Tim Sutton) Date: Mon, 3 Dec 2001 19:12:20 +0000 (GMT) Subject: [mapserver-users] Truetype symbols Message-ID: Hi Can anyone post me a small sample that shows how to create a symbol using a truetype font? I have tried following the symbol set references but cant really make head or tail of the truetype bit??? Many thanks Tim -- ----------------------------------------------------- Tim Sutton WRc plc Consultant, GIS Solutions Group Frankland Road Direct line: +44 (0) 1793 865056 Blagrove Switchboard: +44 (0) 1793 865000 Swindon Fax: +44 (0) 1793 865001 Wiltshire SN5 8YF United Kingdom WRc - Solutions for Water, Waste and the Environment ----------------------------------------------------- From steve.lime at dnr.state.mn.us Mon Dec 3 14:55:32 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 03 Dec 2001 16:55:32 -0600 Subject: [mapserver-users] label lines along path Message-ID: I've not asked. It's a GD thing not a FreeType thing (unless FT2 supports rendering of fonts more completely that FT1). Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stephen Woodbridge 11/29/01 07:41AM >>> Alexander, The maporama site I don't think is using MapServer. Ideally it would be preferable if GD lib or TTF lib libraries support labeling along a spline or a path. Steve Lime - have you asked them about support for such a feature? -Steve Woodbridge Alexander Pucher wrote: > > Hi, > > after solving some problems with labeling lines using a hierachy based on importance (e.g. city streets), I have yet another question left. > > Is there a way to label lines not only horizontal or by a given angle, but along a path. In a PostScript book I have, they call this method "placing text along an arbitrary path". > > Consider labeling roads or even rivers that curve a lot. This might be not so important when I think of city street systems in the US, but it is when mapping cities in Europe, like Vienna,Austria, in my case. > > Stephen Woodbridge sent a link to http://maporama.com/share yesterday, where you can clearly see that the street labels sometimes follow a path. > Is this a MapServer app, and if so, how is the labeling done? > > mfg > ALEX > -- > ________________________________________________________ > > Institut fuer Geographie und Regionalforschung > Universit?t Wien > Kartografie und Geoinformation > > Departement of Geography and Regional Research > University of Vienna > Cartographie and GIS > > Universitaetstr. 7, A-1010 Wien, AUSTRIA > > Tel: (+43 1) 4277 48644 > Fax: (+43 1) 4277 48649 > E-mail: pucher at atlas.gis.univie.ac.at > > FTP: ftp://ftp.gis.univie.ac.at > WWW: http://www.gis.univie.ac.at/karto > ________________________________________________________ > > "He that will not apply new remedies must expect new evils; for time is the greatest innovator"--Francis Bacon > > From mapserver at readytohost.com Mon Dec 3 16:35:59 2001 From: mapserver at readytohost.com (Mapserver) Date: Tue, 04 Dec 2001 00:35:59 GMT Subject: [mapserver-users] Mapserver 3.5 on Rh 7.2 + Amd Athlon (cc: cannot specify -o with -c or -S and multiple compilations) In-Reply-To: <00ca01c17c2e$fda19710$0a729acb@ramindra> References: <00ca01c17c2e$fda19710$0a729acb@ramindra> Message-ID: <20011204003559.17446.qmail@mail.readytohost.com> Hello, I wonder if anyone gets any error message while compiling Mapserver 3.5 on any Amd Athlon cpu`s? I can compile Mapserver 3.5 on Rh 7.2+intel processors but when I try to install on my Amd processor I get this error message. I use exactly same files on both platforms and this error message occurs while make trying to compile mapscript (not mapserver) cc cc -I. -I.. -fpic -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG -I/usr/local/src/mapserver -I/usr/local/include -I/usr/local/src/mapserver/../php-4.0.6/ -I/usr/local/src/mapserver/../php-4.0.6//dl -I/usr/local/src/mapserver/../php-4.0.6//main -I/usr/local/src/mapserver/../php-4.0.6//Zend -I/usr/local/src/mapserver/../php-4.0.6//include -I/usr/local/src/mapserver/../php-4.0.6//TSRM -c -o php_mapscript_util.o php_mapscript_util.c cc: cannot specify -o with -c or -S and multiple compilations make: *** [php_mapscript_util.o] Error 1 I really appreciate anyone who knows solution to this weird error message or can say same thing about Amd processors. From sivib at virgilio.it Tue Dec 4 00:42:24 2001 From: sivib at virgilio.it (=?iso-8859-1?Q?Silvia=20Berti?=) Date: Tue, 4 Dec 2001 08:42:24 +0000 Subject: No subject Message-ID: <3BFBB0410001089C@ims1a.cp.tin.it> I use mapserver 3.4 and i try to use a logical expressions of class obiect. This is my map file's fragment: layer classitem "Code" data "d:/data/maps/mapdata/shape/hydro34_polyline_clip.shp" header "rivers_header.html" maxscale 1000000 minscale 150000 name "Rivers" status on type line # 1 query #none query template "rivers_query.html" end # 2 class Rivers class color 0 255 255 expression "([Code] > 1)" name "Rivers" end end I don't receive any error message but i don't display anything in the map. Excuse me for my english. Thank you From morissette at dmsolutions.ca Tue Dec 4 04:02:57 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 04 Dec 2001 07:02:57 -0500 Subject: [mapserver-users] Mapserver 3.5 on Rh 7.2 + Amd Athlon (cc: cannot specify -o with -c or -S and multiple compilations) References: <00ca01c17c2e$fda19710$0a729acb@ramindra> <20011204003559.17446.qmail@mail.readytohost.com> Message-ID: <3C0CBB71.FBCF32D8@dmsolutions.ca> Mapserver wrote: > > > cc cc -I. -I.. -fpic -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_EPPL -DUSE_TIFF > -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG > -I/usr/local/src/mapserver -I/usr/local/include > -I/usr/local/src/mapserver/../php-4.0.6/ > -I/usr/local/src/mapserver/../php-4.0.6//dl > -I/usr/local/src/mapserver/../php-4.0.6//main > -I/usr/local/src/mapserver/../php-4.0.6//Zend > -I/usr/local/src/mapserver/../php-4.0.6//include > -I/usr/local/src/mapserver/../php-4.0.6//TSRM -c -o php_mapscript_util.o > php_mapscript_util.c > cc: cannot specify -o with -c or -S and multiple compilations > make: *** [php_mapscript_util.o] Error 1 > Look at the CFLAGS value in the mapserver/mapscript/php3/Makefile and take the "cc" out of it... it's a problem that happens sometimes on some platforms. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Tue Dec 4 04:09:07 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 04 Dec 2001 07:09:07 -0500 Subject: [mapserver-users] Re: Logical expression References: <3BFBB0410001089C@ims1a.cp.tin.it> Message-ID: <3C0CBCE3.2F8A053E@dmsolutions.ca> Silvia Berti wrote: > > I use mapserver 3.4 and i try to use a logical expressions of class obiect. > This is my map file's fragment: > ... > class > color 0 255 255 > expression "([Code] > 1)" > name "Rivers" > end Try removing the double quotes around the expression. The way your expression is setup now (enclosed in double quotes), MapServer thinks that it is a constant value. The following should work: expression ([Code] > 1) -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From wasserburger at plan.at Tue Dec 4 03:52:15 2001 From: wasserburger at plan.at (Wolfgang W. Wasserburger) Date: Tue, 4 Dec 2001 12:52:15 +0100 Subject: [mapserver-users] Yet another interesting web map site In-Reply-To: Message-ID: Steve, where to find the shp2pdf tool? Is it part of Mapserver? I'd be interested in that part. Greetings from Vienna, Austria Wolfgang W. Wasserburger > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Stephen > Lime > Sent: Wednesday, November 28, 2001 9:29 PM > To: mapserver-users at lists.gis.umn.edu; woodbri at swoodbridge.com > Subject: Re: [mapserver-users] Yet another interesting web map site > > > Very cool, flash on the fly. We have PDF on the fly (check out > the shp2pdf program) so based on that flash output shouldn't be > that hard. Ok, who wants a shot at it... > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Stephen Woodbridge 11/28/01 01:41PM >>> > Yet another interesting web map site > > http://maporama.com/share/ > > It has an interactive map mode that appears to download an image and > then let you pan and zoom it within the client. Cute idea, YMMV. > > -Steve > From GrantM at ATSER.com Tue Dec 4 09:36:58 2001 From: GrantM at ATSER.com (Grant Marblestone) Date: Tue, 4 Dec 2001 11:36:58 -0600 Subject: [mapserver-users] dumb newbie question ----- follows.... many opinions requested Message-ID: <001301c17cea$47700640$7201010a@grantlaptop> Howdy, I need some help with this gis business. I am a newbie programmer in a small company assigned to do a projet map. basically it should be able to plot a city and all our projects' locations in that city. The "dots" denoting the projects should be dynamically looked up in a database and they should also be "clickable". IS this possible with mapServer and how long will it take an idiot, guesstimation. Finally, are there any better online tools or offline tools for learning how to make mapServer work. I think the more i play the more i will learn, however i was just wondering. Long live open source, Grant From John.Arthur at voicestream.com Tue Dec 4 10:39:55 2001 From: John.Arthur at voicestream.com (Arthur, John) Date: Tue, 4 Dec 2001 10:39:55 -0800 Subject: [mapserver-users] Species at risk mapping in Canada gets title of Cool WebMapping Site of The Week Message-ID: <987E5CD7052ED51198F400508BA25279089F74@vamerrifms01.mail.voicestream.com> FYI Species at risk mapping in Canada, powered by MapServer, gets the title of "Cool WebMapping Site of The Week" from the GeoCommunity (www.geocomm.com). -----Original Message----- From: Wolfgang W. Wasserburger [mailto:wasserburger at plan.at] Sent: Tuesday, December 04, 2001 6:52 AM To: Stephen Lime; mapserver-users at lists.gis.umn.edu; woodbri at swoodbridge.com Subject: RE: [mapserver-users] Yet another interesting web map site Steve, where to find the shp2pdf tool? Is it part of Mapserver? I'd be interested in that part. Greetings from Vienna, Austria Wolfgang W. Wasserburger > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Stephen > Lime > Sent: Wednesday, November 28, 2001 9:29 PM > To: mapserver-users at lists.gis.umn.edu; woodbri at swoodbridge.com > Subject: Re: [mapserver-users] Yet another interesting web map site > > > Very cool, flash on the fly. We have PDF on the fly (check out > the shp2pdf program) so based on that flash output shouldn't be > that hard. Ok, who wants a shot at it... > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Stephen Woodbridge 11/28/01 01:41PM >>> > Yet another interesting web map site > > http://maporama.com/share/ > > It has an interactive map mode that appears to download an image and > then let you pan and zoom it within the client. Cute idea, YMMV. > > -Steve > From woodbri at swoodbridge.com Tue Dec 4 14:32:33 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 04 Dec 2001 17:32:33 -0500 Subject: [mapserver-users] Species at risk mapping in Canada gets title ofCool WebMapping Site of The Week References: <987E5CD7052ED51198F400508BA25279089F74@vamerrifms01.mail.voicestream.com> Message-ID: <3C0D4F01.778D8C63@swoodbridge.com> So John, do you want to post the url to the list so we can check it out? I could find a link off of www.geocomm.com. -Steve "Arthur, John" wrote: > > FYI > Species at risk mapping in Canada, powered by MapServer, gets the title of > "Cool WebMapping Site of The Week" from the GeoCommunity (www.geocomm.com). > > -----Original Message----- > From: Wolfgang W. Wasserburger [mailto:wasserburger at plan.at] > Sent: Tuesday, December 04, 2001 6:52 AM > To: Stephen Lime; mapserver-users at lists.gis.umn.edu; > woodbri at swoodbridge.com > Subject: RE: [mapserver-users] Yet another interesting web map site > > Steve, > > where to find the shp2pdf tool? Is it part of Mapserver? I'd be interested > in that part. > > Greetings from Vienna, Austria > > Wolfgang W. Wasserburger > > > -----Original Message----- > > From: owner-mapserver-users at lists.gis.umn.edu > > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Stephen > > Lime > > Sent: Wednesday, November 28, 2001 9:29 PM > > To: mapserver-users at lists.gis.umn.edu; woodbri at swoodbridge.com > > Subject: Re: [mapserver-users] Yet another interesting web map site > > > > > > Very cool, flash on the fly. We have PDF on the fly (check out > > the shp2pdf program) so based on that flash output shouldn't be > > that hard. Ok, who wants a shot at it... > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> Stephen Woodbridge 11/28/01 01:41PM >>> > > Yet another interesting web map site > > > > http://maporama.com/share/ > > > > It has an interactive map mode that appears to download an image and > > then let you pan and zoom it within the client. Cute idea, YMMV. > > > > -Steve > > From John.Arthur at voicestream.com Tue Dec 4 14:42:55 2001 From: John.Arthur at voicestream.com (Arthur, John) Date: Tue, 4 Dec 2001 14:42:55 -0800 Subject: [mapserver-users] Species at risk mapping in Canada gets titl e ofCool WebMapping Site of The Week Message-ID: <987E5CD7052ED51198F400508BA25279089F76@vamerrifms01.mail.voicestream.com> Sorry: www.sis.ec.gc.ca -John -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Tuesday, December 04, 2001 5:33 PM To: Arthur, John; MapServer List Subject: Re: [mapserver-users] Species at risk mapping in Canada gets title ofCool WebMapping Site of The Week So John, do you want to post the url to the list so we can check it out? I could find a link off of www.geocomm.com. -Steve "Arthur, John" wrote: > > FYI > Species at risk mapping in Canada, powered by MapServer, gets the title of > "Cool WebMapping Site of The Week" from the GeoCommunity (www.geocomm.com). > > -----Original Message----- > From: Wolfgang W. Wasserburger [mailto:wasserburger at plan.at] > Sent: Tuesday, December 04, 2001 6:52 AM > To: Stephen Lime; mapserver-users at lists.gis.umn.edu; > woodbri at swoodbridge.com > Subject: RE: [mapserver-users] Yet another interesting web map site > > Steve, > > where to find the shp2pdf tool? Is it part of Mapserver? I'd be interested > in that part. > > Greetings from Vienna, Austria > > Wolfgang W. Wasserburger > > > -----Original Message----- > > From: owner-mapserver-users at lists.gis.umn.edu > > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Stephen > > Lime > > Sent: Wednesday, November 28, 2001 9:29 PM > > To: mapserver-users at lists.gis.umn.edu; woodbri at swoodbridge.com > > Subject: Re: [mapserver-users] Yet another interesting web map site > > > > > > Very cool, flash on the fly. We have PDF on the fly (check out > > the shp2pdf program) so based on that flash output shouldn't be > > that hard. Ok, who wants a shot at it... > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> Stephen Woodbridge 11/28/01 01:41PM >>> > > Yet another interesting web map site > > > > http://maporama.com/share/ > > > > It has an interactive map mode that appears to download an image and > > then let you pan and zoom it within the client. Cute idea, YMMV. > > > > -Steve > > From steve at sitesusa.com Tue Dec 4 16:39:27 2001 From: steve at sitesusa.com (Steve Simpson) Date: Tue, 4 Dec 2001 17:39:27 -0700 Subject: [mapserver-users] MapServer, ArcIMS, or SVG?? Message-ID: <200112041939247.SM00293@g100d> Hello listers, This mailing list seems to be great and MapServer looks like a great technology. I hope you can help me. Here's my situation: I just started a job working for a mapping demographics company and I am in charge of putting a complex app written in MapBasic online. I don't have any previous gis experience but have lots of enterprise java and some Microsoft experience. I've had to quickly become familiar with the multiude of technologies in gis. The natural fit for our solution is MapXtreme, but it's to expensive. There seems to me to be three options: --ArcIMS --MapServer --SVG I know that you all will say, use MapServer, but try to be objective. We want to do this QUICKLY, even if it means doing it in a quick and dirty way. The only two development choices are Java and Microsoft. Sorry, based on the experience of the others who will be working on it and the speed we want to get this done, that is what we're looking at. And, I'm leaning towards Microsoft being the better option. (I am very experienced in Java, but Microsoft is all the others know.) Some questions: --Can MapServer be used with Java or Microsoft (Active Server Pages)? --Would ArcIMS be more of a natural fit for Java or Microsoft? --SVG seems to be a cool technology. However, on some websites, it mentions how with it, you can take the maps created in MapInfo or ESRI's desktop products and put them online to make them interactive. But, we need more than that. I need SVG to be able to actually do the part that the desktop product does of creating the map. Pardon my ignorance, but I assume SVG can't do that? Well, that's about it. I would really appreciate any tips here. I have scoured this and the MapInfo mailing list, but am still not certain what direction to take. Regards, Steve Simpson steve at sitesusa.com From steve at sitesusa.com Tue Dec 4 16:42:41 2001 From: steve at sitesusa.com (Steve Simpson) Date: Tue, 4 Dec 2001 17:42:41 -0700 Subject: [mapserver-users] FWD: MapServer, ArcIMS, or SVG?? Message-ID: <20011204194233.SM00293@g100d> I forgot to add that development and deployment will have to be on Windows NT/2000. Thanks. Steve ---------- Forwarded Message ---------- FROM: Steve Simpson TO: mapserver-users at lists.gis.umn.edu DATE: Tue, 4 Dec 2001 17:39:27 -0700 RE: MapServer, ArcIMS, or SVG?? Hello listers, This mailing list seems to be great and MapServer looks like a great technology. I hope you can help me. Here's my situation: I just started a job working for a mapping demographics company and I am in charge of putting a complex app written in MapBasic online. I don't have any previous gis experience but have lots of enterprise java and some Microsoft experience. I've had to quickly become familiar with the multiude of technologies in gis. The natural fit for our solution is MapXtreme, but it's to expensive. There seems to me to be three options: --ArcIMS --MapServer --SVG I know that you all will say, use MapServer, but try to be objective. We want to do this QUICKLY, even if it means doing it in a quick and dirty way. The only two development choices are Java and Microsoft. Sorry, based on the experience of the others who will be working on it and the speed we want to get this done, that is what we're looking at. And, I'm leaning towards Microsoft being the better option. (I am very experienced in Java, but Microsoft is all the others know.) Some questions: --Can MapServer be used with Java or Microsoft (Active Server Pages)? --Would ArcIMS be more of a natural fit for Java or Microsoft? --SVG seems to be a cool technology. However, on some websites, it mentions how with it, you can take the maps created in MapInfo or ESRI's desktop products and put them online to make them interactive. But, we need more than that. I need SVG to be able to actually do the part that the desktop product does of creating the map. Pardon my ignorance, but I assume SVG can't do that? Well, that's about it. I would really appreciate any tips here. I have scoured this and the MapInfo mailing list, but am still not certain what direction to take. Regards, Steve Simpson steve at sitesusa.com From steve.lime at dnr.state.mn.us Tue Dec 4 22:11:28 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 05 Dec 2001 00:11:28 -0600 Subject: [mapserver-users] MapScript and SWIG 1.3.9 Message-ID: Greetings: Has anyone tried to build mapscript (any language) with the most recent releases of Swig? Things build fine but that's where it stops, at least with perl. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From DebasishS at riskinc.com Tue Dec 4 22:56:36 2001 From: DebasishS at riskinc.com (DebasishS at riskinc.com) Date: Wed, 5 Dec 2001 12:26:36 +0530 Subject: [mapserver-users] java MapScript Message-ID: Hi, Has anbody complied latest version of MapScript into Java . thanks Debasish. From nhv at cape.com Wed Dec 5 05:55:36 2001 From: nhv at cape.com (Norman Vine) Date: Wed, 5 Dec 2001 08:55:36 -0500 Subject: [mapserver-users] MapScript and SWIG 1.3.9 In-Reply-To: Message-ID: <007d01c17d94$84a62f80$a300a8c0@nhv> Stephen Lime writes: > >Greetings: Has anyone tried to build mapscript (any language) >with the most recent releases of Swig? > >Things build fine but that's where it stops, at least with perl. > Python mapscript builds OK but I haven't done any testing $ swig -version SWIG Version 1.3.9u-20011005-1230 Copyright (c) 1995-1998 University of Utah and the Regents of the University of California Copyright (c) 1998-2001 University of Chicago Compiled with CC $ python Python 2.1.1 (#28, Nov 24 2001, 16:44:44) [GCC 2.95.3-5 (cygwin special)] on cygwin Type "copyright", "credits" or "license" for more information. >>> import mapscript >>> mapscript.msGetVersion() 'MapServer version 3.5 (beta) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE' >>> Cheers Norman From dgraham at i3.com Wed Dec 5 08:17:42 2001 From: dgraham at i3.com (David Graham) Date: Wed, 05 Dec 2001 09:17:42 -0700 Subject: [mapserver-users] FWD: MapServer, ArcIMS, or SVG?? References: <20011204194233.SM00293@g100d> Message-ID: <3C0E48A6.2080402@i3.com> Steve Simpson wrote: >I forgot to add that development and deployment will have to be on Windows NT/2000. Thanks. > Not a problem for MapServer. Does give you some advantages if you are doing raster data in MapServer (allows for ECW and a better ESRI Binary Grid acess) if you have the appropriate libraries. > > >Steve > >---------- Forwarded Message ---------- > >FROM: Steve Simpson >TO: mapserver-users at lists.gis.umn.edu >DATE: Tue, 4 Dec 2001 17:39:27 -0700 > >RE: MapServer, ArcIMS, or SVG?? > >Hello listers, > >This mailing list seems to be great and MapServer looks like a great >technology. I hope you can help me. Here's my situation: > >I just started a job working for a mapping demographics company and >I am in charge of putting a complex app written in MapBasic online. I don't >have any previous gis experience but have lots of enterprise java and some >Microsoft experience. I've had to quickly become familiar with the multiude >of technologies in gis. The natural fit for our solution is MapXtreme, but it's >to expensive. There seems to me to be three options: >--ArcIMS >--MapServer >--SVG >I know that you all will say, use MapServer, but try to be objective. We want >to do this QUICKLY, even if it means doing it in a quick and dirty way. > Both ArcIMS and Mapserver have a good bit of learning curve. Unfortunately MapServer has a big problem with documentation. Although it is getting better in recent months. It would help if someone would decide to roll MapServer 3.5 as a release and we could move onto 3.6. Then maybe we could all pitch in on some good quality release documents. Basically everyone who is doing anything interesting is using MapServer 3.5. It seems to have most of the features that people are looking for (PostGIS, GDAL, TrueType, etc...). Unfortunatly the code changes day to day. Check the bug list and see if there is anything you can't live with. Then grab the latest. > The only two >development choices are Java and Microsoft. Sorry, based on the experience of the >others who will be working on it and the speed we want to get this done, that is what we're >looking at. And, I'm leaning towards Microsoft being the better option. (I am very experienced >in Java, but Microsoft is all the others know.) Some questions: >--Can MapServer be used with Java or Microsoft (Active Server Pages)? > My quick and dirty solution to using MapServer with Java Servlets has been to run the CGI as an external process using java.lang.Runtime.exec(). You can pass it all kinds of parameters in HTTP GET format. You can either make a MapServer template file in the java.util.Properties format and read it back in on java.lang.Process.getInputStream() or you can specify mode=map on your query to the CGI and then read the actual map image back in on the input stream. I have done both and they work fine. > >--Would ArcIMS be more of a natural fit for Java or Microsoft? > ArcIMS runs in a Servlet engine under IIS as one of the default configurations. Presumably you could use the same servlet engine to build your own Java backend. ArcIMS also lets you control access through JDBC connection to a database system. We have both ArcIMS and MapServer here. We use them with different clients. Mapserver is faster (at least for our applications). No dought about it. It is a lean mean little piece of C code. Not sure how much of ArcIMS is happening within Java and how much is native code. ArcIMS is very flexable, but MapServer gets more and more fexible every day. > >--SVG seems to be a cool technology. However, on some websites, it mentions >how with it, you can take the maps created in MapInfo or ESRI's desktop products >and put them online to make them interactive. But, we need more than that. I need >SVG to be able to actually do the part that the desktop product does of creating the map. >Pardon my ignorance, but I assume SVG can't do that? > No experience with SVG > >Well, that's about it. I would really appreciate any tips here. I have scoured this and the MapInfo >mailing list, but am still not certain what direction to take. > >Regards, >Steve Simpson >steve at sitesusa.com > > From ed at topozone.com Wed Dec 5 06:57:22 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 5 Dec 2001 09:57:22 -0500 Subject: [mapserver-users] MapServer, ArcIMS, or SVG?? Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7933@mercator.topozone.com> Steve - Here are a few thoughts, and I'm sure you'll get more responses. First, you say that it has to be done QUICKLY, but yet you also say MapXtreme is too expensive. So speed isn't the only concern, and cost is a factor, too. It's very hard to give you detailed guidance without knowing a lot about your MapBasic application. Can MapServer be used with Java or ASP? Yes. I have developed an application for a customer that uses a lot of both. I also posted a note on the list a while ago about some techniques for using MapServer effectively in an ASP environment. I'm not sure what defines a "more natural fit" for ArcIMS, but you cannot run ArcIMS without a Java servlet engine, which is not a standard part of the Windows server environment. There are certainly servlet engines available, but you should realize that you're going to need to add one more product to the mix to make things work. SVG is an apples-and-oranges comparison. The description you mention gets at the core of the distinction - SVG is not a GIS or map-making technology. It's an information storage, delivery, and display technology. It's a little like asking if you should use GIF for your solution - perhaps you should, but you still haven't figured out how to MAKE the GIFs. MapServer has the obvious advantage of being customizable, so you can bend it to fit your application. There is certainly a bit of a learning curve before you dare fiddle with anything, but I have found it very easy to tweak and change. I do all my MapServer development on Windows 2000. The best way for us to help with your evaluation is to have you describe your application in as much detail as you can. There may be things in that application that are especially hard or easy for MapServer to do. For starters, what file formats are your GIS data layers in? Are they vector or raster layers? How many are there and how big are they? etc., etc.. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Steve Simpson [mailto:steve at sitesusa.com] Sent: Tuesday, December 04, 2001 7:39 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] MapServer, ArcIMS, or SVG?? Hello listers, This mailing list seems to be great and MapServer looks like a great technology. I hope you can help me. Here's my situation: I just started a job working for a mapping demographics company and I am in charge of putting a complex app written in MapBasic online. I don't have any previous gis experience but have lots of enterprise java and some Microsoft experience. I've had to quickly become familiar with the multiude of technologies in gis. The natural fit for our solution is MapXtreme, but it's to expensive. There seems to me to be three options: --ArcIMS --MapServer --SVG I know that you all will say, use MapServer, but try to be objective. We want to do this QUICKLY, even if it means doing it in a quick and dirty way. The only two development choices are Java and Microsoft. Sorry, based on the experience of the others who will be working on it and the speed we want to get this done, that is what we're looking at. And, I'm leaning towards Microsoft being the better option. (I am very experienced in Java, but Microsoft is all the others know.) Some questions: --Can MapServer be used with Java or Microsoft (Active Server Pages)? --Would ArcIMS be more of a natural fit for Java or Microsoft? --SVG seems to be a cool technology. However, on some websites, it mentions how with it, you can take the maps created in MapInfo or ESRI's desktop products and put them online to make them interactive. But, we need more than that. I need SVG to be able to actually do the part that the desktop product does of creating the map. Pardon my ignorance, but I assume SVG can't do that? Well, that's about it. I would really appreciate any tips here. I have scoured this and the MapInfo mailing list, but am still not certain what direction to take. Regards, Steve Simpson steve at sitesusa.com From sshealy at e811.com Wed Dec 5 07:41:55 2001 From: sshealy at e811.com (Scott Shealy) Date: Wed, 5 Dec 2001 10:41:55 -0500 Subject: [mapserver-users] java MapScript In-Reply-To: References: Message-ID: I have gotten it to compile... I had to rip out the SWIG generated exception handeling code and rename all method that genrated the stub getClass(conflicts with java.lang.Object.getClass) to getClass_. That did the trick. I think the SWIG genrated error code only handle C runtime exceptions so it is not that big a deal. I have been meaning to go back and see why it will not compile but I have not had a chance yet.. As I remember it was complaining about some jClass object(a JNI object) in the error handling code that look perfectly fine to me... Make sure when you compile it that you use all the same compiler flags that you compile the mapserver(libmap.a) with or you will have all kinds of fun runtime errors(related to memory errors) Scott Shealy From Frederic.CATHIGNOL at astrium-space.com Wed Dec 5 02:09:57 2001 From: Frederic.CATHIGNOL at astrium-space.com (CATHIGNOL, Frederic) Date: Wed, 5 Dec 2001 11:09:57 +0100 Subject: [mapserver-users] problem with highlight during a query by feature Message-ID: Hello from France; I already sent this problem, without any answer... So I reformulate it with a draw, because a draw is often better than a long message ! You will found here attached the explanation with a draw of the problem. I really need it, if you have a solution... Thanks Guys for your help to a french developper ! (frederic.cathignol at bigfoot.com) F.CATHIGNOL attached : "A draw is better than a long message.doc" <> -------------- next part -------------- A non-text attachment was scrubbed... Name: A draw is better than a long message.doc Type: application/msword Size: 31232 bytes Desc: not available URL: From DebasishS at riskinc.com Wed Dec 5 02:39:21 2001 From: DebasishS at riskinc.com (DebasishS at riskinc.com) Date: Wed, 5 Dec 2001 16:09:21 +0530 Subject: [mapserver-users] Calculate extents from Tif World File .tfw Message-ID: Hi, Can anybody tell me how to calculate map extents from a Image world file. Debasish From sjohnston at satshot.com Wed Dec 5 01:38:19 2001 From: sjohnston at satshot.com (Shawn L Johnston) Date: Wed, 5 Dec 2001 09:38:19 +0000 (GMT) Subject: [mapserver-users] MapServer, ArcIMS, or SVG?? In-Reply-To: <200112041939247.SM00293@g100d> Message-ID: On Tue, 4 Dec 2001, Steve Simpson wrote: > Hello listers, > > This mailing list seems to be great and MapServer looks like a great > technology. I hope you can help me. Here's my situation: > > I just started a job working for a mapping demographics company and > I am in charge of putting a complex app written in MapBasic online. I don't > have any previous gis experience but have lots of enterprise java and some > Microsoft experience. I've had to quickly become familiar with the multiude > of technologies in gis. The natural fit for our solution is MapXtreme, but it's > to expensive. There seems to me to be three options: > --ArcIMS > --MapServer > --SVG > I know that you all will say, use MapServer, but try to be objective. Ok, use mapserver. ;) I think its probably hard to give a recommendation on which route to go without knowing a bit more of the project goals/requirements. It would help if you can share a few more details of what your trying to place online. My guess is that if you need to put this up quickly and your developers are mostly asp folk you probably wan't to drop the SVG for now and look at mapserver and ims more closely. If your looking for performance and don't need a full featured gis I'd say go with mapserver. If you need more gis features and performance can take a back seat (and cost for ims is not out of question) then you might want to think a bit more about ims. > Some questions: > --Can MapServer be used with Java or Microsoft (Active Server Pages)? Mapserver will run on NT with IMS, though its been a while since I've tried that. You can use java with mapserver. Check out the gallery and the docs page on the ms homepage. I don't think anyone has made mapscript for asp, but depending on what you need to do you might create wrappers in asp that feed variables into mapserver. > --Would ArcIMS be more of a natural fit for Java or Microsoft? > --SVG seems to be a cool technology. I'll have to defer these too someone else. ;) From pcarrasco at iver.es Wed Dec 5 08:46:32 2001 From: pcarrasco at iver.es (Pedro A. Carrasco) Date: Wed, 5 Dec 2001 17:46:32 +0100 Subject: [mapserver-users] Stand alone application Message-ID: Hi all, I'm developing a Delphi 6 CLX Control to work with MapServ. Currently I can do FullExtent, ZoomIn, ZoomOut, Pan and Identify. My problem is that I want to know the extent of the map. The mode=map only returns the image correspondig to the map, and when I want to make the zoom operations or pan, I must give the new extent to the map. I listen anything that someone have source code in Java/Javascript to made this calculations, can someone help me. Have anyone examples of how to made this. Thanks in advance. Regards. --------------------------------------------------------------------- Pedro --------------------------------------------------------------------- From dgraham at i3.com Wed Dec 5 08:57:04 2001 From: dgraham at i3.com (David Graham) Date: Wed, 05 Dec 2001 09:57:04 -0700 Subject: [mapserver-users] FGDC-STD-001 Metadata server Message-ID: <3C0E51E0.2030504@i3.com> Hello, Has anyone out there built a FGDC-STD-001 Metadata server on opensource tools? Have you tied it into MapServer query? Dave Graham information integration and imaging, LLC dgraham at i3.com http://www.i3.com From ed at topozone.com Wed Dec 5 09:15:10 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 5 Dec 2001 12:15:10 -0500 Subject: [mapserver-users] Calculate extents from Tif World File .tfw Message-ID: <13858AA1A74F30419F319ACB66A9D1220E793B@mercator.topozone.com> Debasish - You can't - it's not enough information. You don't know the size of the TIF image in pixels. There are many image libraries and tools you can use to get that information, and you can then multiply the width and height of the image in pixels by the numbers in the first and fourth lines of the TFW file, respectively, and you'll get the extents of the TIF image in the coordinate system used in the world file. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: DebasishS at riskinc.com [mailto:DebasishS at riskinc.com] Sent: Wednesday, December 05, 2001 5:39 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Calculate extents from Tif World File .tfw Hi, Can anybody tell me how to calculate map extents from a Image world file. Debasish From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Wed Dec 5 10:02:03 2001 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Wed, 5 Dec 2001 13:02:03 -0500 Subject: [mapserver-users] FGDC-STD-001 Metadata server Message-ID: <7CDD7B94357FD5119E800002A537C46E22FD72@s5-ccr-r1.ccrs.nrcan.gc.ca> I haven't, but I'll go along, I'd love to see that! On a related note, a canadian company called Intelec (www.intelec.ca) provides M3Cat, a Metadata cataloguing tool, free of charge. It runs on windows technologies however, but since it's open, you might be able to replicate it using PHP/PostgreSQL for instance ... I'm not sure what the licensing is either, might prevent you from doing that. As for integration directly with MapServer, that'd be great, I've wondered about adding a DB interface to MapServer, either for "mapfile storage" (i.e. the configuration data lives in a relational database), or for attribute data. It'd be great if you could say do a JOIN with a table in an RDBMS. A universal interface could be implemented using things like the unixODBC project maybe? Do the MapServer internals provide a generic DB interface? There's allready PgSQL and Oracle in there ... Anyways, I'm blabbing :) Cheers, J.F. -----Original Message----- From: David Graham [mailto:dgraham at i3.com] Sent: Wednesday, December 05, 2001 11:57 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] FGDC-STD-001 Metadata server Hello, Has anyone out there built a FGDC-STD-001 Metadata server on opensource tools? Have you tied it into MapServer query? Dave Graham information integration and imaging, LLC dgraham at i3.com http://www.i3.com From GrantM at ATSER.com Wed Dec 5 12:08:07 2001 From: GrantM at ATSER.com (Grant Marblestone) Date: Wed, 5 Dec 2001 14:08:07 -0600 Subject: [mapserver-users] very frusterated newbie! heh Message-ID: <001d01c17dc8$97fdfa20$7201010a@grantlaptop> Sorry to flood this, but i cant even get an easy one to show. I now figured out that i have to have a link like the example that does something like http://localhost/scripts/mapserv.exe?map=c:\inetpub\wwwroot\msTest1\test1.ma p But i get this lovely error msLoadMap(): Unknown identifier. (LABELOVERLAP):(6) Any clues.... Also i would love some information on what the following are I got some files from a web site just as test files... the files included are .shp .dbf .shx .sbx .sbn Anyone have any clues as to each one and its purpose.. i think the shp file is like the vector graphic image? right? thanks agian, Grant From klehr1 at tampabay.rr.com Wed Dec 5 12:32:17 2001 From: klehr1 at tampabay.rr.com (klehr1 at tampabay.rr.com) Date: Wed, 5 Dec 2001 15:32:17 -0500 Subject: [mapserver-users] Convert a line type file into polygon Message-ID: <01fc01c17dcb$ef099420$0300a8c0@tampabay.rr.com> I've got a line layer in .dxf file and would like to convert it to a polygon layer. Tools available: Mapserver ArcView 3.2a i.e. is there a way to generate polygons out of the intersecting points. I'd like to have polygons, because I have point data too, that I'd like to merge to the polygons. Thanks for your suggestions. Steve Lehr -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Wed Dec 5 12:23:02 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 05 Dec 2001 14:23:02 -0600 Subject: [mapserver-users] problem with highlight during a query by feature Message-ID: QueryByFeature is a 2 stage query. Have you tried using a query only layer for the first stage? This would mean adding a second layer definition for your river layer with "TYPE QUERY" set. Query only layers can't be drawn so it won't show up in the resulting query map. This is the simplest fix I know of but there are others (such as not using a querymap at all but setting class values for a selected buildings layer to isolate just those that match). Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "CATHIGNOL, Frederic" 12/05/01 04:09AM >>> Hello from France; I already sent this problem, without any answer... So I reformulate it with a draw, because a draw is often better than a long message ! You will found here attached the explanation with a draw of the problem. I really need it, if you have a solution... Thanks Guys for your help to a french developper ! (frederic.cathignol at bigfoot.com) F.CATHIGNOL attached : "A draw is better than a long message.doc" <> From steve.lime at dnr.state.mn.us Wed Dec 5 12:27:22 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 05 Dec 2001 14:27:22 -0600 Subject: [mapserver-users] very frusterated newbie! heh Message-ID: Wow, your working with some real old mapfiles and I'm assuming a new version of the software. The LABELOVERLAP parameter hasn't been supported in years. Were'd you get the test data and application? First thing to do is get you a current version of the source/binaries and whatever demo you're trying. As for shapefiles, you must keep the shp, shx and dbf files. The others are spatial index files that the MapServer can't use. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Grant Marblestone 12/05/01 02:08PM >>> Sorry to flood this, but i cant even get an easy one to show. I now figured out that i have to have a link like the example that does something like http://localhost/scripts/mapserv.exe?map=c:\inetpub\wwwroot\msTest1\test1.ma p But i get this lovely error msLoadMap(): Unknown identifier. (LABELOVERLAP):(6) Any clues.... Also i would love some information on what the following are I got some files from a web site just as test files... the files included are .shp .dbf .shx .sbx .sbn Anyone have any clues as to each one and its purpose.. i think the shp file is like the vector graphic image? right? thanks agian, Grant From steve.lime at dnr.state.mn.us Wed Dec 5 13:17:24 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 05 Dec 2001 15:17:24 -0600 Subject: [mapserver-users] Stand alone application Message-ID: The code at http://maps.dnr.state.mn.us/javascript/mapserv.js may be of interest. It's for 3.4 and would require only minimal updates for 3.5 since there was a slight change in how extents are calculated so as to better match the OGC WMT specs. I use that to do all client-side coordinate management for the LandView interface... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Pedro A. Carrasco" 12/05/01 10:46AM >>> Hi all, I'm developing a Delphi 6 CLX Control to work with MapServ. Currently I can do FullExtent, ZoomIn, ZoomOut, Pan and Identify. My problem is that I want to know the extent of the map. The mode=map only returns the image correspondig to the map, and when I want to make the zoom operations or pan, I must give the new extent to the map. I listen anything that someone have source code in Java/Javascript to made this calculations, can someone help me. Have anyone examples of how to made this. Thanks in advance. Regards. --------------------------------------------------------------------- Pedro --------------------------------------------------------------------- From GrantM at ATSER.com Wed Dec 5 13:28:50 2001 From: GrantM at ATSER.com (Grant Marblestone) Date: Wed, 5 Dec 2001 15:28:50 -0600 Subject: [mapserver-users] very frusterated newbie! heh References: Message-ID: <001501c17dd3$de97db30$7201010a@grantlaptop> So you suggest i assume that my mapserv 3.3 is too old and goto 3.4 right? Thats all i can figure out, because the .shp files should be fine correct? Thanks again@@@@! Grant ----- Original Message ----- From: "Stephen Lime" To: ; Sent: Wednesday, December 05, 2001 2:27 PM Subject: Re: [mapserver-users] very frusterated newbie! heh Wow, your working with some real old mapfiles and I'm assuming a new version of the software. The LABELOVERLAP parameter hasn't been supported in years. Were'd you get the test data and application? First thing to do is get you a current version of the source/binaries and whatever demo you're trying. As for shapefiles, you must keep the shp, shx and dbf files. The others are spatial index files that the MapServer can't use. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From pnaciona at gis.umn.edu Wed Dec 5 13:56:51 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Wed, 5 Dec 2001 15:56:51 -0600 Subject: [mapserver-users] very frusterated newbie! heh In-Reply-To: <001501c17dd3$de97db30$7201010a@grantlaptop> Message-ID: Dude! No need to be rude. If you don't want the hassle of upgrading to 3.5, just remove the LABELOVERLAP parameter on your map file. If you are using MapServer 3.3, the map file reference is still available at http://mapserver.gis.umn.edu/mapfile.html. I would say that you really ought to consider upgrading as most users in this listserv won't be able to help you with the older stuff. Good luck! Perry N. > -----Original Message----- > From: owner-mapserver-users at lists [mailto:owner-mapserver-users at lists]On > Behalf Of Grant Marblestone > Sent: Wednesday, December 05, 2001 3:29 PM > To: Grant Marblestone; mapserver-users at lists > Subject: Re: [mapserver-users] very frusterated newbie! heh > > > So you suggest i assume that my mapserv 3.3 is too old and goto 3.4 right? > > Thats all i can figure out, because the .shp files should be fine correct? > > Thanks again@@@@! > > Grant > > ----- Original Message ----- > From: "Stephen Lime" > To: ; > Sent: Wednesday, December 05, 2001 2:27 PM > Subject: Re: [mapserver-users] very frusterated newbie! heh > > > Wow, your working with some real old mapfiles and I'm assuming a > new version > of the software. The LABELOVERLAP parameter hasn't been supported > in years. > Were'd you get the test data and application? > > First thing to do is get you a current version of the source/binaries and > whatever demo you're trying. > > As for shapefiles, you must keep the shp, shx and dbf files. The > others are > spatial index files that the MapServer can't use. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > From GrantM at ATSER.com Wed Dec 5 14:06:24 2001 From: GrantM at ATSER.com (Grant Marblestone) Date: Wed, 5 Dec 2001 16:06:24 -0600 Subject: [mapserver-users] ALRIGHT@@@ Message-ID: <001a01c17dd9$1e1ff2b0$7201010a@grantlaptop> I got a map to show... it might be small and unreadable, but i got somethign! onward and upward!, Grant From DebasishS at riskinc.com Wed Dec 5 20:38:22 2001 From: DebasishS at riskinc.com (DebasishS at riskinc.com) Date: Thu, 6 Dec 2001 10:08:22 +0530 Subject: [mapserver-users] java MapScript Message-ID: Hi Scott, Thanks for the response . I did try out compling it but was unsuccessful . Could you please let me know the steps as to how youdid it. thanks and regards Debasish Sahu. Senior Software Engineer RMS India. A-7,Sector-16 Noida-201301. Uttar Pradesh.India. Phone : +91-118-4511102 Fax : +91-118-4511109 Website : http://www.rmsinet.com Scott Shealy owner-mapserver-users at lists.gis.umn.edu cc: 12/05/01 Subject: Re: [mapserver-users] java MapScript 09:11 PM I have gotten it to compile... I had to rip out the SWIG generated exception handeling code and rename all method that genrated the stub getClass(conflicts with java.lang.Object.getClass) to getClass_. That did the trick. I think the SWIG genrated error code only handle C runtime exceptions so it is not that big a deal. I have been meaning to go back and see why it will not compile but I have not had a chance yet.. As I remember it was complaining about some jClass object(a JNI object) in the error handling code that look perfectly fine to me... Make sure when you compile it that you use all the same compiler flags that you compile the mapserver(libmap.a) with or you will have all kinds of fun runtime errors(related to memory errors) Scott Shealy From woodbri at swoodbridge.com Wed Dec 5 21:02:05 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 06 Dec 2001 00:02:05 -0500 Subject: [mapserver-users] 3.5 build problem Message-ID: <3C0EFBCD.411D89F3@swoodbridge.com> I ran into a problem with the 12/4 nightly build. This problem occured when I added --with-wmsclient to ./configure Any ideas? -Steve ./configure --with-proj --with-ogr --with-gdal --with-wmsclient make ... gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapwmslayer.c -o mapwmslayer.o In file included from /usr/local/include/w3c-libwww/wwwsys.h:1051, from /usr/local/include/w3c-libwww/WWWLib.h:50, from mapwmslayer.c:100: /usr/local/include/rxposix.h:122: warning: `REG_NOTEOL' redefined /usr/include/regex.h:278: warning: this is the location of the previous definition In file included from /usr/local/include/w3c-libwww/WWWXML.h:57, from /usr/local/include/w3c-libwww/HTInit.h:144, from /usr/local/include/w3c-libwww/WWWInit.h:51, from mapwmslayer.c:102: /usr/local/include/w3c-libwww/HTXML.h:104: warning: `/*' within comment In file included from /usr/local/include/w3c-libwww/wwwsys.h:1051, from /usr/local/include/w3c-libwww/WWWLib.h:50, from mapwmslayer.c:100: /usr/local/include/rxposix.h:39: conflicting types for `regex_t' /usr/include/regex.h:391: previous declaration of `regex_t' /usr/local/include/rxposix.h:42: warning: redefinition of `regoff_t' /usr/include/regex.h:394: warning: `regoff_t' previously declared here /usr/local/include/rxposix.h:49: conflicting types for `regmatch_t' /usr/include/regex.h:422: previous declaration of `regmatch_t' /usr/local/include/rxposix.h:132: conflicting types for `regcomp' /usr/include/regex.h:518: previous declaration of `regcomp' /usr/local/include/rxposix.h:135: conflicting types for `regerror' /usr/include/regex.h:525: previous declaration of `regerror' /usr/local/include/rxposix.h:143: conflicting types for `regexec' /usr/include/regex.h:522: previous declaration of `regexec' /usr/local/include/rxposix.h:144: conflicting types for `regfree' /usr/include/regex.h:527: previous declaration of `regfree' make: *** [mapwmslayer.o] Error 1 From pcarrasco at iver.es Thu Dec 6 03:44:03 2001 From: pcarrasco at iver.es (Pedro Carrasco) Date: Thu, 6 Dec 2001 12:44:03 +0100 Subject: [mapserver-users] Stand alone application References: Message-ID: <001101c17e4b$4deed7f0$c0062a3e@pedro> Thank you very munch. I think it will help me in the CLX control. Thanks a lot. Pedro From jhart at frw.uva.nl Thu Dec 6 05:52:17 2001 From: jhart at frw.uva.nl (Jan Hartmann) Date: Thu, 06 Dec 2001 14:52:17 +0100 Subject: [mapserver-users] MapServer, ArcIMS, or SVG?? In-Reply-To: <13858AA1A74F30419F319ACB66A9D1220E7933@mercator.topozone.c om> Message-ID: <5.1.0.14.0.20011206144628.00ab4b18@pop.frw.uva.nl> At 09:57 AM 12/5/2001 -0500, Ed McNiemey wrote: >Can MapServer be used with Java or ASP? Yes. I have developed an >application for a customer that uses a lot of both. I also posted a >note on the list a while ago about some techniques for using MapServer >effectively in an ASP environment. I searched the mailing list on ASP and Active Server Pages, but found nothing but the entries for the last few days. Could you give some details on using MapServer with ASP? Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl From ed at topozone.com Thu Dec 6 05:57:39 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 6 Dec 2001 08:57:39 -0500 Subject: [mapserver-users] ASP Implementation Notes (re-post from 10/23) Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7946@mercator.topozone.com> Folks - The current thread about ASP implementation issues with MapServer prompts me to provide a few ideas for folks struggling in that direction. One of the great benefits of MapServer is its ability to provide a LOT of power and capability to users who are NOT using a scripting environment such as PHP or ASP or whatever. The ability to echo state information into form variables gives you lots of flexibility. On the other hand, if you ARE using a scripting environment, this capability will get in your way. You don't hear problems from people using PHP asking how to make MapServer generate PHP output. Why? Because they don't think of the problem that way. They use MapScript to control the operation of MapServer externally (not the mapserv binary exactly, but you get the point). There are some pretty simple things you can do to make life easier in the ASP environment. It would be great to have an ASP-style MapScript someday, but there's a lot you can do right now. First, make sure your ASP environment is "on top". That is, you're going to use an ASP page to direct MapServer, not use MapServer to generate ASP. Second, don't use MapServer to do things you can do yourself in ASP. A lot of what MapServer does with template files is help to preserve state information. An HTML form can be pre-filled with lots of settings that simply reflect the current mapping state, so it's easy to let the user make a few modifications and make a new map (i.e. resubmit the form). But you don't need that in an ASP environment! You can remember what your parameters were, no? Here's a very simple example that might help ASP developers think differently (with apologies to Apple). Let's start with getting a layer name from my ASP parameters. The URL being processed here is: http://myserver.com/iwanttouse.asp?mybaselayer=BASEMAP Here's how to start: <% layername = Request.QueryString ("mybaselayer") %> I can pull off any other useful parameters from my ASP querystring that I like. They don't have to be MapServer parameters - I just get enough info to describe the map I want in any format that's convenient and appropriate for the application. I can then generate the MapServer querystring myself. Although there are several ways to do the next step, I then use a nice little component called ASPHTTP (www.serverobjects.com) that lets you submit HTTP requests and get the results back in a string variable. So to submit a request to MapServer and get the results back in a VBScript string, you can do this: <% ' ' mapServerURL has been set to the complete MapServer querystring, adding the ' layername I extracted from the ASP page parameters: ' mapServerURL = "http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&layer=" & layername ' ' Issue that HTTP GET request and retrieve the HTML MapServer returns into a string variable ' Set httpObj = Server.CreateObject("AspHTTP.Conn") ' Create the object HTTPObj.Url = mapServerURL ' Set the URL mapServerHTML = HTTPObj.GetURL ' Issue HTTP GET and store output in mapServerHTML Set httpObj = Nothing %> Now the string mapServerHTML has the complete HTML generated by MapServer from your TEMPLATE file. That's nice, you say, but what do I do with that big HTML file now? You do very little, because you don't have a big HTML file. Your HTML file, generated by MapServer, and now resident inside the string mapServerHTML, looks like this: /tmp/Map123.jpg|/tmp/MapSB123.jpg What's that? It's the output you get when your TEMPLATE file looks like this: [img]|[scalebar] That's all. You don't need to make MapServer generate a whole HTML page for you - you've got your ASP page to do that. Once you get MapServer to generate this little HTML tidbit for you, parse it out into two ASP string variables, one with the URL of the map image file, one with the URL of the scalebar image file (note the lack of error checking): <% commentPos = InStr (mapServerHTML, ">") ' Strip out MapServer header comment delimiterPos = InStr (mapServerHTML, "|") ' Find field separator imgURL = Mid (mapServerHTML, commentPos + 1, delimiterPos - commentPos - 1) scalebarURL = Mid (mapServerHTML, delimiterPos + 1) %> Now I'm ready to generate my output HTML page. I've taken my ASP parameters, generated a MapServer request, directed MapServer to generate the map image and a scalebar image, and I've put the URLs of those images into the variables imgURL and scalebarURL. The rest of my ASP page will generate my HTML (all the stuff that's NOT in the TEMPLATE file). At strategic points I will do things like:

or other such thing. I get to develop my pages in ASP and make MapServer do all the work! - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Jan Hartmann [mailto:jhart at frw.uva.nl] Sent: Thursday, December 06, 2001 8:52 AM To: Ed McNierney; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] MapServer, ArcIMS, or SVG?? At 09:57 AM 12/5/2001 -0500, Ed McNiemey wrote: >Can MapServer be used with Java or ASP? Yes. I have developed an >application for a customer that uses a lot of both. I also posted a >note on the list a while ago about some techniques for using MapServer >effectively in an ASP environment. I searched the mailing list on ASP and Active Server Pages, but found nothing but the entries for the last few days. Could you give some details on using MapServer with ASP? Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl From sshealy at e811.com Thu Dec 6 06:55:23 2001 From: sshealy at e811.com (Scott Shealy) Date: Thu, 6 Dec 2001 09:55:23 -0500 Subject: Fwd: Re: [mapserver-users] java MapScript Message-ID: Hey guys this below is the email I sent to Stephen Lime when he asked me for more details about what I did. It is sore of a hack and got me going... I think Stephen(correct me if I am wrong) is looking at intergrating these changes into the sourcecode and build process. Ultimately though I think we need to figure out(It is on my list of things to do right now but not at the top) why the code that I ripped out is not compiling.. Hope this helps... Scott Shealy ---------- Forwarded Message ---------- Subject: Re: [mapserver-users] java MapScript Date: Wed, 5 Dec 2001 16:53:04 -0500 From: Scott Shealy To: "Stephen Lime" I ripped out the following from the wrap file ---> Begin Code static void _SWIG_exception(JNIEnv *jenv, int code, const char *msg) { char exception_path[512]; const char *classname; const char *class_package = "java/lang"; switch(code) { case SWIG_MemoryError: classname = "OutOfMemoryError"; break; case SWIG_IOError: classname = "IOException"; class_package = "java/io"; break; case SWIG_SystemError: case SWIG_RuntimeError: classname = "RuntimeException"; break; case SWIG_OverflowError: case SWIG_IndexError: classname = "IndexOutOfBoundsException"; break; case SWIG_DivisionByZero: classname = "ArithmeticException"; break; case SWIG_SyntaxError: case SWIG_ValueError: case SWIG_TypeError: classname = "IllegalArgumentException"; break; case SWIG_UnknownError: default: classname = "UnknownError"; break; } sprintf(exception_path, "%s/%s", class_package, classname); jclass excep; jenv->ExceptionClear(); excep = jenv->FindClass(exception_path); if (excep) { jenv->ThrowNew(excep, msg); } } #define SWIG_exception(a,b) { _SWIG_exception(jenv, a,b); } ---->End Code with things the way they are right now in the mapscript.i file SWIG_exception is never called so removing this code removes no current functionality that I am aware of. It would be nice to have exceptions thrown into java for a mapscript error though....(right now you can check return codes) Actually if someone ever has time it would be nice to have a mapscipt.i file that was a little more geared to java... I found that stroing some of the object reference as longs in java was a little awarkward but did fine by me... Also if you generate shadow classes you will have to go into them and rename any methods getClass(...) to getClass_( or the java shadow classes will not compile. If you compile without ripping that function out you will get .... mapscript_wrap.c: In function `_SWIG_exception': mapscript_wrap.c:77: parse error before `excep' mapscript_wrap.c:78: request for member `ExceptionClear' in something not a structure or union mapscript_wrap.c:79: `excep' undeclared (first use in this function) mapscript_wrap.c:79: (Each undeclared identifier is reported only once mapscript_wrap.c:79: for each function it appears in.) mapscript_wrap.c:79: request for member `FindClass' in something not a structure or union mapscript_wrap.c:82: request for member `ThrowNew' in something not a structure or union gcc: mapscript_wrap.o: No such file or directory It is complaining about the jclass excep line.... which on the surface looks fine to me.... when time permits I am going to look at that closer... I use this comand to swig swig -java -shadow -package mapscript mapscript.i I use the following script to compile my library #!/bin/sh FLAGS="-DUSE_PROJ -DUSE_PROJ_API_H -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_WMS -DUSE_TIFF -DUSE_JPEG -DUSE_EPPL -DUSE_GDAL" gcc -fpic -c $FLAGS -I/usr/java/jdk1.3.1_01/include -I/usr/java/jdk1.3.1_01/include/linux mapscript_wrap.c gcc -fpic -shared -o libmapscript.so -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -L/usr/local/lib -lgdal.1.1 -lproj mapscript_wrap.o ../../libmap.a mkdir javascript mv *.java mapscript javac -classpath ./ ./mapscript/* Obviously the flags depends on how you compiled you mapserver and should be picked up from the mapserver make file.... Finally you need to take your libmapscript.so and put it somewhere where you jdk will pick it up when you do a loadLibrary... I know this is pretty crude but it got me going and that is all the boss cares about right now.... Hope this helps... and thanks so much for being such an intergral part of a wonderful program... Scott Shealy On Wednesday 05 December 2001 03:29 pm, Stephen Lime wrote: > Can you descript the ripping out process a bit more. I'd like to make this > more automated. Also. any sample scripts? Thanks. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Scott Shealy 12/05/01 09:41AM >>> > > I have gotten it to compile... I had to rip out the SWIG generated > exception handeling code and rename all method that genrated the stub > getClass(conflicts with java.lang.Object.getClass) to getClass_. That did > the trick. I think the SWIG genrated error code only handle C runtime > exceptions so it is not that big a deal. I have been meaning to go back and > see why it will not compile but I have not had a chance yet.. As I remember > it was complaining about some jClass object(a JNI object) in the error > handling code that look perfectly fine to me... > > Make sure when you compile it that you use all the same compiler flags that > you compile the mapserver(libmap.a) with or you will have all kinds of fun > runtime errors(related to memory errors) > > Scott Shealy ------------------------------------------------------- From bfischer at mpls.houstoneng.com Wed Dec 5 15:08:17 2001 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Wed, 5 Dec 2001 17:08:17 -0600 Subject: [mapserver-users] Railroad Symbol Message-ID: <8879CCE0F0187742B7302A93A8B87B0902988D@mpls.houstoneng.com> I am trying to create a railroad symbol to use with Mapserver 3.5. I am using a binary compiled Oct. 15 with PHP support. I was wondering if anyone else has been able to create one. Is it possible to create one with just one symbol definition or will I have to use an OVERLAYSYMBOL? I was thinking if I can get a symbol that is a vertical line spaced every 5 pixels. I could overlay that symbol on top of a simple line. But I am unable to create that symbol either. I played around with it for a while, but I guess when it comes down to it I don't understand how the Points section of a symbol definition work. Any help would be greatly appreciated. Thanks, Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Thu Dec 6 07:09:00 2001 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Thu, 6 Dec 2001 10:09:00 -0500 Subject: [mapserver-users] Mouse Overs on a Map? Message-ID: <7CDD7B94357FD5119E800002A537C46E22FD78@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I know it's doable, but I'm wondering exactly how hard, or if there are any examples out there? I think it's got something to do with using MapScript in order to generate the ISMAP files, somehting to do with the labelling buffer I beleive? Ideally I'd like to use something like overlib in combination with a mapping tool, but right now I'm just curious about how hard it is and how long it would take before I commit to providing this feature! Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From woodbri at swoodbridge.com Thu Dec 6 07:24:29 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 06 Dec 2001 10:24:29 -0500 Subject: [mapserver-users] 3.5 Demo File Changes Message-ID: <3C0F8DAD.BEB0D4F7@swoodbridge.com> Hi all, I just downloaded 3.5 and built it, but could find a working demo file so here are the changes I had to make to 3.3.11 demo download to get it to work with 3.5. I hope this helps others trying to get started. Is there someone that would be interested in taking these changes and updating the MapServer site with a working 3.5 demo download? Please contact me. ALSO: What changes do I need to make to get the QUERY stuff to work again? -Steve [woodbri at linus ms_demo]$ diff demo.map /home/httpd/html/web2/ms_demo_3.5/ 7,9c7,10 < SHADESET symbols/shade.sym < MARKERSET symbols/marker.sym < LINESET symbols/line.sym --- > ####SHADESET symbols/shade.sym > ####MARKERSET symbols/marker.sym > ####LINESET symbols/line.sym > SYMBOLSET symbols/symbol.sym 18,24c19,25 < #PROJECTION < # "proj=utm" < # "ellps=GRS80" < # "zone=15" < # "north" < # "no_defs" < #END --- > PROJECTION > "proj=utm" > "ellps=GRS80" > "zone=15" > "north" > "no_defs" > END 35,36c36,37 < IMAGEPATH "/usr/local/apache/htdocs/tmp/" < IMAGEURL "/tmp/" --- > IMAGEPATH "/home/httpd/html/web2/tmp/" > IMAGEURL "/web2/tmp/" 51c52,53 < IMAGE graphics/reference.gif --- > # IMAGE graphics/reference.gif > IMAGE graphics/reference.png 76c78 < IMAGECOLOR 255 255 255 --- > IMAGECOLOR 0 0 0 87c89 < STATUS TRUE --- > STATUS ON 128c130 < TYPE POLYLINE --- > TYPE POLYGON 135c137 < COLOR 181 181 145 --- > OUTLINECOLOR 181 181 145 152,154c154,156 < QUERY < TEMPLATE "lakespy2.html" < END --- > ### QUERY > ### TEMPLATE "lakespy2.html" > ### END 172,174c174,176 < QUERY < TEMPLATE "dlgstln2.html" < END --- > ### QUERY > ### TEMPLATE "dlgstln2.html" > ### END And here is the symbol.sym file [woodbri at linus ms_demo_3.5]$ cat symbols/symbol.sym Symbol Name 'tent' Type VECTOR Filled TRUE Points 0 1 .5 0 1 1 .75 1 .5 .5 .25 1 0 1 END END Symbol Name 'star' Type VECTOR Filled TRUE Points 0 .375 .35 .375 .5 0 .65 .375 1 .375 .75 .625 .875 1 .5 .75 .125 1 .25 .625 END END Symbol Name 'triangle' Type VECTOR Filled TRUE Points 0 1 .5 0 1 1 0 1 END END Symbol Name 'square' Type VECTOR Filled TRUE Points 0 1 0 0 1 0 1 1 0 1 END END Symbol Name 'plus' Type VECTOR Points .5 0 .5 1 -99 -99 0 .5 1 .5 END END Symbol Name 'cross' Type VECTOR Points 0 0 1 1 -99 -99 0 1 1 0 END END Symbol Name 'circle' Type ELLIPSE Filled TRUE Points 1 1 END END Symbol Type VECTOR TRANSPARENT 0 Points 0 1 1 1 END END Symbol Type VECTOR TRANSPARENT 0 Points 1 0 1 1 END END Symbol Type VECTOR TRANSPARENT 0 Points 0 0 1 1 END END Symbol Type VECTOR TRANSPARENT 0 Points 0 1 1 0 END END Symbol Type VECTOR Points 0 1 1 0 -99 -99 0 0 1 1 END END Symbol Type ELLIPSE Filled TRUE Points 1 1 END END Symbol Name 'interstate_shield' Type PIXMAP # Image 'images/interstate.gif' Image 'images/interstate.png' Transparent 7 END Symbol Name 'us_highway_shield' Type PIXMAP # Image 'images/ushwy.gif' Image 'images/ushwy.png' Transparent 1 END Symbol Name 'state_highway_shield' Type PIXMAP # Image 'images/sthwy.gif' Image 'images/sthwy.png' END Symbol Name 'county_highway_shield' Type PIXMAP # Image 'images/ctyhwy.gif' Image 'images/ctyhwy.png' Transparent 0 END From morissette at dmsolutions.ca Thu Dec 6 08:28:25 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 06 Dec 2001 11:28:25 -0500 Subject: [mapserver-users] 3.5 build problem References: <3C0EFBCD.411D89F3@swoodbridge.com> Message-ID: <3C0F9CA9.AF622123@dmsolutions.ca> Stephen, It seems that you have 2 versions of regex installed on your system: the default system regex in /usr/lib, and rxposix in /usr/local/... The problem is that MapServer only cares about the system regex (and regex.h), but libwww which is used by the --with-wmsclient does detect your rxposix.h and use it in priority over regex.h if it's found... and then you end up with conflicting declarations. I don't think there is a nice and easy fix... here are some options: 1- Remove rxposix from your system and recompile libwww and the conflict will go away. 2- Make MapServer aware of rxposix... we may do that down the road, but I suspect that this will have implications with PHP as well, so I won't do that now. I filed a bug about this and might make that change eventually: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=82 3- Try playing with libwww's --with-regex configure option to try to force it to use the system regex in priority. If that doesn't work then edit libwww's configure.in to remove rxposix.h in the line that reads: AC_CHECK_HEADERS(rxposix.h regex.h) ... then run autoconf and reconfigure. I hope that helps, Daniel Stephen Woodbridge wrote: > > I ran into a problem with the 12/4 nightly build. This problem occured > when I added --with-wmsclient to ./configure > > Any ideas? > -Steve > > ./configure --with-proj --with-ogr --with-gdal --with-wmsclient > > make > > ... > > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG > -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF > -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -I/usr/include > -I/usr/local/include -I/usr/local/include -I/usr/local/include > -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapwmslayer.c -o > mapwmslayer.o > In file included from /usr/local/include/w3c-libwww/wwwsys.h:1051, > from /usr/local/include/w3c-libwww/WWWLib.h:50, > from mapwmslayer.c:100: > /usr/local/include/rxposix.h:122: warning: `REG_NOTEOL' redefined > /usr/include/regex.h:278: warning: this is the location of the previous > definition > In file included from /usr/local/include/w3c-libwww/WWWXML.h:57, > from /usr/local/include/w3c-libwww/HTInit.h:144, > from /usr/local/include/w3c-libwww/WWWInit.h:51, > from mapwmslayer.c:102: > /usr/local/include/w3c-libwww/HTXML.h:104: warning: `/*' within comment > In file included from /usr/local/include/w3c-libwww/wwwsys.h:1051, > from /usr/local/include/w3c-libwww/WWWLib.h:50, > from mapwmslayer.c:100: > /usr/local/include/rxposix.h:39: conflicting types for `regex_t' > /usr/include/regex.h:391: previous declaration of `regex_t' > /usr/local/include/rxposix.h:42: warning: redefinition of `regoff_t' > /usr/include/regex.h:394: warning: `regoff_t' previously declared here > /usr/local/include/rxposix.h:49: conflicting types for `regmatch_t' > /usr/include/regex.h:422: previous declaration of `regmatch_t' > /usr/local/include/rxposix.h:132: conflicting types for `regcomp' > /usr/include/regex.h:518: previous declaration of `regcomp' > /usr/local/include/rxposix.h:135: conflicting types for `regerror' > /usr/include/regex.h:525: previous declaration of `regerror' > /usr/local/include/rxposix.h:143: conflicting types for `regexec' > /usr/include/regex.h:522: previous declaration of `regexec' > /usr/local/include/rxposix.h:144: conflicting types for `regfree' > /usr/include/regex.h:527: previous declaration of `regfree' > make: *** [mapwmslayer.o] Error 1 From steve.lime at dnr.state.mn.us Thu Dec 6 09:13:29 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 06 Dec 2001 11:13:29 -0600 Subject: [mapserver-users] Mouse Overs on a Map? Message-ID: Can an form image also be used as an image map? I didn't think so. That makes it hard to combine a normal pan/zoom interface with an image map. (Please correct me if I'm wrong.) My work around was to build that sort of functionality in to the mapplet java piece I've got. I use mapscript to loop through the label cache and produce essentially an image map (stored in XML). Some examples are: http://www.dnr.state.mn.us/cgi-bin/mapdoqs.pl Zoom in close to see the DOQs and move your mouse over the little red pixels to see data in a small popup. Another fancy example is at: http://www.dnr.state.mn.us/weather/map.html although there seems to be a problem with the data at the moment. At any rate dumping the label cache is not difficult, the problem is how to implement best on the client-side. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 12/06/01 09:09AM >>> Hello, I know it's doable, but I'm wondering exactly how hard, or if there are any examples out there? I think it's got something to do with using MapScript in order to generate the ISMAP files, somehting to do with the labelling buffer I beleive? Ideally I'd like to use something like overlib in combination with a mapping tool, but right now I'm just curious about how hard it is and how long it would take before I commit to providing this feature! Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center 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 Dec 6 09:22:59 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 06 Dec 2001 11:22:59 -0600 Subject: [mapserver-users] 3.5 Demo File Changes Message-ID: There is a working 3.5 demo at http://maps.dnr.state.mn.us/mapserver_demos/itasca.tar.gz Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stephen Woodbridge 12/06/01 09:24AM >>> Hi all, I just downloaded 3.5 and built it, but could find a working demo file so here are the changes I had to make to 3.3.11 demo download to get it to work with 3.5. I hope this helps others trying to get started. Is there someone that would be interested in taking these changes and updating the MapServer site with a working 3.5 demo download? Please contact me. ALSO: What changes do I need to make to get the QUERY stuff to work again? -Steve [woodbri at linus ms_demo]$ diff demo.map /home/httpd/html/web2/ms_demo_3.5/ 7,9c7,10 < SHADESET symbols/shade.sym < MARKERSET symbols/marker.sym < LINESET symbols/line.sym --- > ####SHADESET symbols/shade.sym > ####MARKERSET symbols/marker.sym > ####LINESET symbols/line.sym > SYMBOLSET symbols/symbol.sym 18,24c19,25 < #PROJECTION < # "proj=utm" < # "ellps=GRS80" < # "zone=15" < # "north" < # "no_defs" < #END --- > PROJECTION > "proj=utm" > "ellps=GRS80" > "zone=15" > "north" > "no_defs" > END 35,36c36,37 < IMAGEPATH "/usr/local/apache/htdocs/tmp/" < IMAGEURL "/tmp/" --- > IMAGEPATH "/home/httpd/html/web2/tmp/" > IMAGEURL "/web2/tmp/" 51c52,53 < IMAGE graphics/reference.gif --- > # IMAGE graphics/reference.gif > IMAGE graphics/reference.png 76c78 < IMAGECOLOR 255 255 255 --- > IMAGECOLOR 0 0 0 87c89 < STATUS TRUE --- > STATUS ON 128c130 < TYPE POLYLINE --- > TYPE POLYGON 135c137 < COLOR 181 181 145 --- > OUTLINECOLOR 181 181 145 152,154c154,156 < QUERY < TEMPLATE "lakespy2.html" < END --- > ### QUERY > ### TEMPLATE "lakespy2.html" > ### END 172,174c174,176 < QUERY < TEMPLATE "dlgstln2.html" < END --- > ### QUERY > ### TEMPLATE "dlgstln2.html" > ### END And here is the symbol.sym file [woodbri at linus ms_demo_3.5]$ cat symbols/symbol.sym Symbol Name 'tent' Type VECTOR Filled TRUE Points 0 1 .5 0 1 1 .75 1 .5 .5 .25 1 0 1 END END Symbol Name 'star' Type VECTOR Filled TRUE Points 0 .375 .35 .375 .5 0 .65 .375 1 .375 .75 .625 .875 1 .5 .75 .125 1 .25 .625 END END Symbol Name 'triangle' Type VECTOR Filled TRUE Points 0 1 .5 0 1 1 0 1 END END Symbol Name 'square' Type VECTOR Filled TRUE Points 0 1 0 0 1 0 1 1 0 1 END END Symbol Name 'plus' Type VECTOR Points .5 0 .5 1 -99 -99 0 .5 1 .5 END END Symbol Name 'cross' Type VECTOR Points 0 0 1 1 -99 -99 0 1 1 0 END END Symbol Name 'circle' Type ELLIPSE Filled TRUE Points 1 1 END END Symbol Type VECTOR TRANSPARENT 0 Points 0 1 1 1 END END Symbol Type VECTOR TRANSPARENT 0 Points 1 0 1 1 END END Symbol Type VECTOR TRANSPARENT 0 Points 0 0 1 1 END END Symbol Type VECTOR TRANSPARENT 0 Points 0 1 1 0 END END Symbol Type VECTOR Points 0 1 1 0 -99 -99 0 0 1 1 END END Symbol Type ELLIPSE Filled TRUE Points 1 1 END END Symbol Name 'interstate_shield' Type PIXMAP # Image 'images/interstate.gif' Image 'images/interstate.png' Transparent 7 END Symbol Name 'us_highway_shield' Type PIXMAP # Image 'images/ushwy.gif' Image 'images/ushwy.png' Transparent 1 END Symbol Name 'state_highway_shield' Type PIXMAP # Image 'images/sthwy.gif' Image 'images/sthwy.png' END Symbol Name 'county_highway_shield' Type PIXMAP # Image 'images/ctyhwy.gif' Image 'images/ctyhwy.png' Transparent 0 END From John.Arthur at voicestream.com Thu Dec 6 10:24:25 2001 From: John.Arthur at voicestream.com (Arthur, John) Date: Thu, 6 Dec 2001 10:24:25 -0800 Subject: [mapserver-users] Mouse Overs on a Map? Message-ID: <987E5CD7052ED51198F400508BA25279089F84@vamerrifms01.mail.voicestream.com> I also would be interested to know John Arthur RF Technician Office: (757) 490-7221 Cellular: (757) 692-1515 Email: john.arthur at voicestream.com _~-^-~_ VoiceStream W I R E L E S S -----Original Message----- From: Doyon, Jean-Francois [mailto:Jean-Francois.Doyon at ccrs.nrcan.gc.ca] Sent: Thursday, December 06, 2001 10:09 AM To: 'mapserver-users at lists.gis.umn.edu' Subject: [mapserver-users] Mouse Overs on a Map? Hello, I know it's doable, but I'm wondering exactly how hard, or if there are any examples out there? I think it's got something to do with using MapScript in order to generate the ISMAP files, somehting to do with the labelling buffer I beleive? Ideally I'd like to use something like overlib in combination with a mapping tool, but right now I'm just curious about how hard it is and how long it would take before I commit to providing this feature! Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From Rich at GreenwoodMap.com Thu Dec 6 10:30:15 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Thu, 06 Dec 2001 11:30:15 -0700 Subject: [mapserver-users] ASP Implementation Notes (re-post from 10/23) In-Reply-To: <13858AA1A74F30419F319ACB66A9D1220E7946@mercator.topozone.c om> Message-ID: <5.1.0.14.0.20011206111433.02c20168@mail.GreenwoodMap.com> Ed, Thanks for sharing you ASP knowledge and for providing such a detailed example. Another way to do pretty much the same thing is: mapserver.exe QUERY_STRING=xxxxxxxxxxxx This allows you to run mapserver from the command prompt without calling it from a httpd, although I don't know if it is considered a supported interface (Steve?). Basic ASP doesn't let you execute external commands but www.serverobjects.com has a free tool that provides that ability. Another very general comment on using ASP and MapServer together - there's nothing wrong with mixing ASP and CGI pages on the same site. e.g. I have a series of reports that are generated by user queries against a SQL Server database and displayed in ASP pages. The user can click a line in the report which calls MapServer with appropriate parameters to map the record the user clicked. Rich At 08:57 AM 12/6/2001 -0500, you wrote: >Folks - > >The current thread about ASP implementation issues with MapServer >prompts me to provide a few ideas for folks struggling in that >direction. > >One of the great benefits of MapServer is its ability to provide a LOT >of power and capability to users who are NOT using a scripting >environment such as PHP or ASP or whatever. The ability to echo state >information into form variables gives you lots of flexibility. > >On the other hand, if you ARE using a scripting environment, this >capability will get in your way. You don't hear problems from people >using PHP asking how to make MapServer generate PHP output. Why? >Because they don't think of the problem that way. They use MapScript to >control the operation of MapServer externally (not the mapserv binary >exactly, but you get the point). > >There are some pretty simple things you can do to make life easier in >the ASP environment. It would be great to have an ASP-style MapScript >someday, but there's a lot you can do right now. > >First, make sure your ASP environment is "on top". That is, you're >going to use an ASP page to direct MapServer, not use MapServer to >generate ASP. > >Second, don't use MapServer to do things you can do yourself in ASP. A >lot of what MapServer does with template files is help to preserve state >information. An HTML form can be pre-filled with lots of settings that >simply reflect the current mapping state, so it's easy to let the user >make a few modifications and make a new map (i.e. resubmit the form). >But you don't need that in an ASP environment! You can remember what >your parameters were, no? > >Here's a very simple example that might help ASP developers think >differently (with apologies to Apple). Let's start with getting a layer >name from my ASP parameters. The URL being processed here is: > >http://myserver.com/iwanttouse.asp?mybaselayer=BASEMAP > >Here's how to start: > ><% > layername = Request.QueryString ("mybaselayer") >%> > >I can pull off any other useful parameters from my ASP querystring that >I like. They don't have to be MapServer parameters - I just get enough >info to describe the map I want in any format that's convenient and >appropriate for the application. I can then generate the MapServer >querystring myself. > >Although there are several ways to do the next step, I then use a nice >little component called ASPHTTP (www.serverobjects.com) that lets you >submit HTTP requests and get the results back in a string variable. So >to submit a request to MapServer and get the results back in a VBScript >string, you can do this: > ><% >' >' mapServerURL has been set to the complete MapServer querystring, >adding the >' layername I extracted from the ASP page parameters: >' > mapServerURL = >"http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&layer=" & >layername >' >' Issue that HTTP GET request and retrieve the HTML MapServer >returns into a string variable >' > Set httpObj = Server.CreateObject("AspHTTP.Conn") ' Create >the object > HTTPObj.Url = mapServerURL >' Set the URL > mapServerHTML = HTTPObj.GetURL ' Issue >HTTP GET and store output in mapServerHTML > Set httpObj = Nothing >%> > >Now the string mapServerHTML has the complete HTML generated by >MapServer from your TEMPLATE file. That's nice, you say, but what do I >do with that big HTML file now? You do very little, because you don't >have a big HTML file. Your HTML file, generated by MapServer, and now >resident inside the string mapServerHTML, looks like this: > > >/tmp/Map123.jpg|/tmp/MapSB123.jpg > >What's that? It's the output you get when your TEMPLATE file looks like >this: > >[img]|[scalebar] > >That's all. You don't need to make MapServer generate a whole HTML page >for you - you've got your ASP page to do that. Once you get MapServer >to generate this little HTML tidbit for you, parse it out into two ASP >string variables, one with the URL of the map image file, one with the >URL of the scalebar image file (note the lack of error checking): > ><% > commentPos = InStr (mapServerHTML, ">") ' Strip out >MapServer header comment > delimiterPos = InStr (mapServerHTML, "|") ' Find >field separator > imgURL = Mid (mapServerHTML, commentPos + 1, delimiterPos - >commentPos - 1) > scalebarURL = Mid (mapServerHTML, delimiterPos + 1) >%> > >Now I'm ready to generate my output HTML page. I've taken my ASP >parameters, generated a MapServer request, directed MapServer to >generate the map image and a scalebar image, and I've put the URLs of >those images into the variables imgURL and scalebarURL. > >The rest of my ASP page will generate my HTML (all the stuff that's NOT >in the TEMPLATE file). At strategic points I will do things like: > > > > > >
>
> >
> >or other such thing. I get to develop my pages in ASP and make >MapServer do all the work! > > - Ed > >Ed McNierney >Chief Mapmaker >TopoZone.com >ed at topozone.com >(978) 251-4242 > > >-----Original Message----- >From: Jan Hartmann [mailto:jhart at frw.uva.nl] >Sent: Thursday, December 06, 2001 8:52 AM >To: Ed McNierney; mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] MapServer, ArcIMS, or SVG?? > > >At 09:57 AM 12/5/2001 -0500, Ed McNiemey wrote: > > > >Can MapServer be used with Java or ASP? Yes. I have developed an > >application for a customer that uses a lot of both. I also posted a > >note on the list a while ago about some techniques for using MapServer > >effectively in an ASP environment. > > >I searched the mailing list on ASP and Active Server Pages, but found >nothing but the entries for the last few days. Could you give some >details >on using MapServer with ASP? > >Jan Hartmann >Department of Geography >University of Amsterdam >jhart at frw.uva.nl Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From GrantM at ATSER.com Thu Dec 6 10:57:58 2001 From: GrantM at ATSER.com (Grant Marblestone) Date: Thu, 6 Dec 2001 12:57:58 -0600 Subject: [mapserver-users] 3.5 Demo File Changes References: <3C0F8DAD.BEB0D4F7@swoodbridge.com> Message-ID: <000a01c17e87$f57d0320$7201010a@grantlaptop> I would love to contribe to this, and want to put out a more step by step demo for less experienced people, like myself. I think a strong suggestion would be to get new users to use msWorkbench as it will get any file up and running fast. I really appreciate all the help i have been getting. Grant From ed at topozone.com Thu Dec 6 11:50:32 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 6 Dec 2001 14:50:32 -0500 Subject: [mapserver-users] ASP Implementation Notes (re-post from 10/23) Message-ID: <13858AA1A74F30419F319ACB66A9D1220E794E@mercator.topozone.com> Rich - Yes, I use ASPExec (the ServerObjects tool) as well. The chief limitation of that approach is that you must be executing the application on the same machine as the IIS Web server that's running the ASP page. In my case, the MapServer system is usually NOT on the local machine, and is better suited for the HTTP interface. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Richard Greenwood [mailto:Rich at GreenwoodMap.com] Sent: Thursday, December 06, 2001 1:30 PM To: Ed McNierney Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] ASP Implementation Notes (re-post from 10/23) Ed, Thanks for sharing you ASP knowledge and for providing such a detailed example. Another way to do pretty much the same thing is: mapserver.exe QUERY_STRING=xxxxxxxxxxxx This allows you to run mapserver from the command prompt without calling it from a httpd, although I don't know if it is considered a supported interface (Steve?). Basic ASP doesn't let you execute external commands but www.serverobjects.com has a free tool that provides that ability. Another very general comment on using ASP and MapServer together - there's nothing wrong with mixing ASP and CGI pages on the same site. e.g. I have a series of reports that are generated by user queries against a SQL Server database and displayed in ASP pages. The user can click a line in the report which calls MapServer with appropriate parameters to map the record the user clicked. Rich At 08:57 AM 12/6/2001 -0500, you wrote: >Folks - > >The current thread about ASP implementation issues with MapServer >prompts me to provide a few ideas for folks struggling in that >direction. > >One of the great benefits of MapServer is its ability to provide a LOT >of power and capability to users who are NOT using a scripting >environment such as PHP or ASP or whatever. The ability to echo state >information into form variables gives you lots of flexibility. > >On the other hand, if you ARE using a scripting environment, this >capability will get in your way. You don't hear problems from people >using PHP asking how to make MapServer generate PHP output. Why? >Because they don't think of the problem that way. They use MapScript to >control the operation of MapServer externally (not the mapserv binary >exactly, but you get the point). > >There are some pretty simple things you can do to make life easier in >the ASP environment. It would be great to have an ASP-style MapScript >someday, but there's a lot you can do right now. > >First, make sure your ASP environment is "on top". That is, you're >going to use an ASP page to direct MapServer, not use MapServer to >generate ASP. > >Second, don't use MapServer to do things you can do yourself in ASP. A >lot of what MapServer does with template files is help to preserve state >information. An HTML form can be pre-filled with lots of settings that >simply reflect the current mapping state, so it's easy to let the user >make a few modifications and make a new map (i.e. resubmit the form). >But you don't need that in an ASP environment! You can remember what >your parameters were, no? > >Here's a very simple example that might help ASP developers think >differently (with apologies to Apple). Let's start with getting a layer >name from my ASP parameters. The URL being processed here is: > >http://myserver.com/iwanttouse.asp?mybaselayer=BASEMAP > >Here's how to start: > ><% > layername = Request.QueryString ("mybaselayer") >%> > >I can pull off any other useful parameters from my ASP querystring that >I like. They don't have to be MapServer parameters - I just get enough >info to describe the map I want in any format that's convenient and >appropriate for the application. I can then generate the MapServer >querystring myself. > >Although there are several ways to do the next step, I then use a nice >little component called ASPHTTP (www.serverobjects.com) that lets you >submit HTTP requests and get the results back in a string variable. So >to submit a request to MapServer and get the results back in a VBScript >string, you can do this: > ><% >' >' mapServerURL has been set to the complete MapServer querystring, >adding the >' layername I extracted from the ASP page parameters: >' > mapServerURL = >"http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&layer=" & >layername >' >' Issue that HTTP GET request and retrieve the HTML MapServer >returns into a string variable >' > Set httpObj = Server.CreateObject("AspHTTP.Conn") ' Create >the object > HTTPObj.Url = mapServerURL >' Set the URL > mapServerHTML = HTTPObj.GetURL ' Issue >HTTP GET and store output in mapServerHTML > Set httpObj = Nothing >%> > >Now the string mapServerHTML has the complete HTML generated by >MapServer from your TEMPLATE file. That's nice, you say, but what do I >do with that big HTML file now? You do very little, because you don't >have a big HTML file. Your HTML file, generated by MapServer, and now >resident inside the string mapServerHTML, looks like this: > > >/tmp/Map123.jpg|/tmp/MapSB123.jpg > >What's that? It's the output you get when your TEMPLATE file looks like >this: > >[img]|[scalebar] > >That's all. You don't need to make MapServer generate a whole HTML page >for you - you've got your ASP page to do that. Once you get MapServer >to generate this little HTML tidbit for you, parse it out into two ASP >string variables, one with the URL of the map image file, one with the >URL of the scalebar image file (note the lack of error checking): > ><% > commentPos = InStr (mapServerHTML, ">") ' Strip out >MapServer header comment > delimiterPos = InStr (mapServerHTML, "|") ' Find >field separator > imgURL = Mid (mapServerHTML, commentPos + 1, delimiterPos - >commentPos - 1) > scalebarURL = Mid (mapServerHTML, delimiterPos + 1) >%> > >Now I'm ready to generate my output HTML page. I've taken my ASP >parameters, generated a MapServer request, directed MapServer to >generate the map image and a scalebar image, and I've put the URLs of >those images into the variables imgURL and scalebarURL. > >The rest of my ASP page will generate my HTML (all the stuff that's NOT >in the TEMPLATE file). At strategic points I will do things like: > > > > > >
>
> >
> >or other such thing. I get to develop my pages in ASP and make >MapServer do all the work! > > - Ed > >Ed McNierney >Chief Mapmaker >TopoZone.com >ed at topozone.com >(978) 251-4242 > > >-----Original Message----- >From: Jan Hartmann [mailto:jhart at frw.uva.nl] >Sent: Thursday, December 06, 2001 8:52 AM >To: Ed McNierney; mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] MapServer, ArcIMS, or SVG?? > > >At 09:57 AM 12/5/2001 -0500, Ed McNiemey wrote: > > > >Can MapServer be used with Java or ASP? Yes. I have developed an > >application for a customer that uses a lot of both. I also posted a > >note on the list a while ago about some techniques for using MapServer > >effectively in an ASP environment. > > >I searched the mailing list on ASP and Active Server Pages, but found >nothing but the entries for the last few days. Could you give some >details >on using MapServer with ASP? > >Jan Hartmann >Department of Geography >University of Amsterdam >jhart at frw.uva.nl Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From pushkar at ERC.MsState.Edu Thu Dec 6 21:29:09 2001 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Thu, 6 Dec 2001 23:29:09 -0600 (CST) Subject: [mapserver-users] perl scripts in mapserver Message-ID: Hi All, I am using mapserver 3.3.011, I am changing the demo app. and displaying data from Mississippi. I am having little trouble doing the query stuff. Can anyone please tell me the use of the foll. files makeref.pl (perl dir.) showextent.pl (data dir.) createquery.pl (data dir.) Thanks, ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Master's Candidate in ELECTRICAL ENGINEERING, MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From LLO at carlbro.dk Fri Dec 7 01:55:51 2001 From: LLO at carlbro.dk (Lars Holm Loldrup) Date: Fri, 7 Dec 2001 10:55:51 +0100 Subject: [mapserver-users] Mapserver binary with ECW support for Windows platforms ? Message-ID: <01Dec7.105621cet.119080@gateway1.carlbro.dk> Does anyone got a binary release of mapsever WITH ECW (via GDAL). I understand that it could be build on the MS platform, but it would be nice to avoid this troublesome process. Lars Holm Loldrup Carl Bro as Granskoven 8, DK 2600 Glostrup Tel (dir): 4348 6466 mailto:llo at carlbro.dk http://www.carlbro.dk From frank.koormann at intevation.de Fri Dec 7 03:43:53 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Fri, 7 Dec 2001 12:43:53 +0100 Subject: [mapserver-users] 3.5 Demo File Changes In-Reply-To: <3C0F8DAD.BEB0D4F7@swoodbridge.com> References: <3C0F8DAD.BEB0D4F7@swoodbridge.com> Message-ID: <20011207124353.C31290@intevation.de> Stephen, * Stephen Woodbridge (woodbri at swoodbridge.com) [011206 19:38]: > > ALSO: What changes do I need to make to get the QUERY stuff to work > again? > The TEMPLATE now is part of the class object. (http://mapserver.gis.umn.edu/doc/mapfile-reference.html#class) Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From twan at twansoft.com Fri Dec 7 04:53:20 2001 From: twan at twansoft.com (Twan Kogels) Date: Fri, 07 Dec 2001 13:53:20 +0100 Subject: [mapserver-users] METADATA part with postgis? Message-ID: <5.0.0.25.2.20011207134111.029c6c28@pop3.wish.nl> Goodmorning, This morning i converted the popplace.shp shapefile from the gmap demo to postgresql with the shp2pgsql program. I needed to manual delete 2 columns named UNIQUE_KEY from the popplace.dbf file, otherwise shp2pgsql could not create the table and insert the data. After this i changed the .map file and added a postgis layer: ================================== LAYER CONNECTIONTYPE postgis NAME "popplace" METADATA "DESCRIPTION" "Cities" "RESULT_FIELDS" "NAME" END # Connect to a remote spatial database CONNECTION "user=postgres dbname=testdb host=10.0.0.2" # Get the lines from the 'geom' column of the 'roads' table DATA "the_geom from popplace_table" STATUS ON TYPE POINT LabelItem "Name" CLASSITEM "Capital" CLASS EXPRESSION "1" TEMPLATE "ttt_query.html" SYMBOL 2 SIZE 8 ... ================================== It all works very well ! The points that represent the cities appear on the map, but when i try to query a city, i don't see any data. I suspect that the METATAG part in the .map file are wrong: ================================== METADATA "DESCRIPTION" "Cities" "RESULT_FIELDS" "NAME" END ================================== I searched the mapserver archive online and the postgis (yahoo) archive, but could not find anything that explains (even mention) the METADATA format that is needed for a postgis layer. Has anybody got a idea what the correct format of the METADATA part is? Best regards, - twan -- http://www.twansoft.com From twan at twansoft.com Fri Dec 7 05:12:42 2001 From: twan at twansoft.com (Twan Kogels) Date: Fri, 07 Dec 2001 14:12:42 +0100 Subject: [mapserver-users] RE: METADATA part with postgis? (solution) Message-ID: <5.0.0.25.2.20011207140740.030b1190@pop3.wish.nl> Goodmorning, Just after sending the previous email to this mailinglist i discovered that you need to create a "index" on the column from which you want the METADATA. After creating a index of the column the query function worked again! Sorry for the 2 emails ;-) Twan -- http://www.twansoft.com From simon.mercier at fadq.qc.ca Fri Dec 7 06:56:13 2001 From: simon.mercier at fadq.qc.ca (simon mercier) Date: Fri, 07 Dec 2001 09:56:13 -0500 Subject: [mapserver-users] performance problem with PostGIS layer Message-ID: <3C10D88D.EBF0FA4D@fadq.qc.ca> hi, I have performance problem with my PostGIS layer in mapserver.. It's slow... vvvery slow, when zoom in, zoom out and pan. I'am new with PostgreSQL, PostGIS, MapServer and realy don't know where to look for this problem! I have a table of 392000 row of polygon with oid and GiST index . I have a debian server with a 933 CPU and 128 of RAM... --I have good result when retrieving data with spatial SQL query : explain select count(*) from pclp_s where the_geom && GeometryFromText('BOX3D(-72.15 46.43, -72.13 46.45)'::BOX3D,-1) Aggregate (cost=8.94..8.94 rows=1 width=0) -> Index Scan using idx_geom_pclp_s on pclp_s (cost=0.00..8.93 rows=2 width=0) --With the same box, (i.e. EXTENT -72.15 46.43 -72.13 46.45 in map file) it take 80 sec for display image in IE with MapServer... --A look on status server indicate postmaster take all CPU: 14:51:39 up 1 day, 23:31, 5 users, load average: 0.69, 0.29, 0.10 60 processes: 56 sleeping, 4 running, 0 zombie, 0 stopped CPU states: 49.1% user, 44.7% system, 0.0% nice, 6.2% idle Mem: 126060K total, 122584K used, 3476K free, 1380K buffers Swap: 248968K total, 19516K used, 229452K free, 71440K cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 7255 postgres 18 0 3920 3920 3236 R 85.6 3.1 0:13 postmaster 7254 www-data 9 0 3080 3080 1876 S 0.0 2.4 0:00 mapserv 7253 root 11 0 992 992 776 R 0.3 0.7 0:00 top It is a server harware problem or a soft setup problem? There is someting to do? regard -- Simon Mercier Technicien en G?omatique Direction des technologies de l'information La Financi?re agricole du Quebec 5825, rue Saint-Georges L?vis, Qu?bec,Canada G6V 4L2 http://www.fadq.qc.ca/ From GrantM at ATSER.com Fri Dec 7 07:11:30 2001 From: GrantM at ATSER.com (Grant Marblestone) Date: Fri, 7 Dec 2001 09:11:30 -0600 Subject: [mapserver-users] HOw to create shp, etc files Message-ID: <001901c17f31$7cf2da60$7201010a@grantlaptop> Howdy all again, I am going to ask a basic question right now and I hope not to be too ridiculed! How does one create a shp file and the files that accompany it. I basically need to make a map of gps positioned dots containg a field of 10 chars in length. Thanks so much for the advice, Grant From ed at topozone.com Fri Dec 7 07:53:40 2001 From: ed at topozone.com (Ed McNierney) Date: Fri, 7 Dec 2001 10:53:40 -0500 Subject: [mapserver-users] HOw to create shp, etc files Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7957@mercator.topozone.com> Grant - Are you collecting those dots with a GPS? I'm sure there are other products, too, but OziExplorer (www.oziexplorer.com) is a nice Windows mapping application that lets you download waypoints and tracks from a GPS unit and export them as ESRI shapefiles. It's only USD$75 to register a copy. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Grant Marblestone [mailto:GrantM at ATSER.com] Sent: Friday, December 07, 2001 10:12 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] HOw to create shp, etc files Howdy all again, I am going to ask a basic question right now and I hope not to be too ridiculed! How does one create a shp file and the files that accompany it. I basically need to make a map of gps positioned dots containg a field of 10 chars in length. Thanks so much for the advice, Grant From pnaciona at gis.umn.edu Fri Dec 7 07:59:50 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Fri, 7 Dec 2001 09:59:50 -0600 Subject: [mapserver-users] performance problem with PostGIS layer In-Reply-To: <3C10D88D.EBF0FA4D@fadq.qc.ca> Message-ID: Simon, I was just playing with PostGIS and MapServer, using Steve Lime's demo data (I converted using the shp2pgsql utility), and didn't notice too much of a performance difference. I'm using RedHat 7.2 and AMD K6-2 500Mhz cpu with 384Mb RAM... Perhaps your database is substantially bigger than mine. Or, perhaps you ought to add a bit more RAM on your machine? There are other database admin stuff that can help you speed things up a bit but increasing the physical memory will make those things help you even more. Check PostgreSQL's web site for the administrator's guide. Try my demo at http://128.101.73.155/ms_demo/demo_init.html. It looks just like the "normal" demo except the data is stored as PostGIS data. (It's a little sluggish right now as I'm doing some "real" work over the net. :) -Perry N. > -----Original Message----- > From: owner-mapserver-users at lists [mailto:owner-mapserver-users at lists]On > Behalf Of simon mercier > Sent: Friday, December 07, 2001 8:56 AM > To: mapserver > Subject: [mapserver-users] performance problem with PostGIS layer > > > hi, > I have performance problem with my PostGIS layer in mapserver.. It's > slow... vvvery slow, when zoom in, zoom out and pan. I'am new with > PostgreSQL, PostGIS, MapServer and realy don't know where to look for > this problem! I have a table of 392000 row of polygon with oid and GiST > index . I have a debian server with a 933 CPU and 128 of RAM... > > --I have good result when retrieving data with spatial SQL query : > explain select count(*) from pclp_s where the_geom && > GeometryFromText('BOX3D(-72.15 46.43, -72.13 46.45)'::BOX3D,-1) > Aggregate (cost=8.94..8.94 rows=1 width=0) > -> Index Scan using idx_geom_pclp_s on pclp_s (cost=0.00..8.93 > rows=2 width=0) > > --With the same box, (i.e. EXTENT -72.15 46.43 -72.13 46.45 in map > file) it take 80 sec for display image in IE with MapServer... > > --A look on status server indicate postmaster take all CPU: > 14:51:39 up 1 day, 23:31, 5 users, load average: 0.69, 0.29, 0.10 > 60 processes: 56 sleeping, 4 running, 0 zombie, 0 stopped > CPU states: 49.1% user, 44.7% system, 0.0% nice, 6.2% idle > Mem: 126060K total, 122584K used, 3476K free, 1380K buffers > > Swap: 248968K total, 19516K used, 229452K free, 71440K cached > > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND > 7255 postgres 18 0 3920 3920 3236 R 85.6 3.1 0:13 postmaster > > 7254 www-data 9 0 3080 3080 1876 S 0.0 2.4 0:00 mapserv > 7253 root 11 0 992 992 776 R 0.3 0.7 0:00 top > > It is a server harware problem or a soft setup problem? There is > someting to do? > > regard > > -- > Simon Mercier > Technicien en G?omatique > Direction des technologies de l'information > La Financi?re agricole du Quebec > 5825, rue Saint-Georges > L?vis, Qu?bec,Canada G6V 4L2 > http://www.fadq.qc.ca/ > > > From pramsey at refractions.net Fri Dec 7 09:21:01 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Fri, 07 Dec 2001 09:21:01 -0800 Subject: [mapserver-users] performance problem with PostGIS layer References: <3C10D88D.EBF0FA4D@fadq.qc.ca> Message-ID: <3C10FA7D.9481548C@refractions.net> You have done the right things, in terms of testing the query at the commandline, building indexes, etc. Do remember to 'vacuum' your database after bulk-loading and building an index. Do you have anything special in your map definition, like a filter or something? simon mercier wrote: > > hi, > I have performance problem with my PostGIS layer in mapserver.. It's > slow... vvvery slow, when zoom in, zoom out and pan. I'am new with > PostgreSQL, PostGIS, MapServer and realy don't know where to look for > this problem! I have a table of 392000 row of polygon with oid and GiST > index . I have a debian server with a 933 CPU and 128 of RAM... > > --I have good result when retrieving data with spatial SQL query : > explain select count(*) from pclp_s where the_geom && > GeometryFromText('BOX3D(-72.15 46.43, -72.13 46.45)'::BOX3D,-1) > Aggregate (cost=8.94..8.94 rows=1 width=0) > -> Index Scan using idx_geom_pclp_s on pclp_s (cost=0.00..8.93 > rows=2 width=0) > > --With the same box, (i.e. EXTENT -72.15 46.43 -72.13 46.45 in map > file) it take 80 sec for display image in IE with MapServer... > > --A look on status server indicate postmaster take all CPU: > 14:51:39 up 1 day, 23:31, 5 users, load average: 0.69, 0.29, 0.10 > 60 processes: 56 sleeping, 4 running, 0 zombie, 0 stopped > CPU states: 49.1% user, 44.7% system, 0.0% nice, 6.2% idle > Mem: 126060K total, 122584K used, 3476K free, 1380K buffers > > Swap: 248968K total, 19516K used, 229452K free, 71440K cached > > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND > 7255 postgres 18 0 3920 3920 3236 R 85.6 3.1 0:13 postmaster > > 7254 www-data 9 0 3080 3080 1876 S 0.0 2.4 0:00 mapserv > 7253 root 11 0 992 992 776 R 0.3 0.7 0:00 top > > It is a server harware problem or a soft setup problem? There is > someting to do? > > regard > > -- > Simon Mercier > Technicien en G?omatique > Direction des technologies de l'information > La Financi?re agricole du Quebec > 5825, rue Saint-Georges > L?vis, Qu?bec,Canada G6V 4L2 > http://www.fadq.qc.ca/ From dblasby at refractions.net Fri Dec 7 09:30:08 2001 From: dblasby at refractions.net (Dave Blasby) Date: Fri, 07 Dec 2001 09:30:08 -0800 Subject: [mapserver-users] performance problem with PostGIS layer References: <3C10D88D.EBF0FA4D@fadq.qc.ca> Message-ID: <3C10FCA0.3E93F6C@refractions.net> simon mercier wrote: > --I have good result when retrieving data with spatial SQL query : > explain select count(*) from pclp_s where the_geom && > GeometryFromText('BOX3D(-72.15 46.43, -72.13 46.45)'::BOX3D,-1) > Aggregate (cost=8.94..8.94 rows=1 width=0) > -> Index Scan using idx_geom_pclp_s on pclp_s (cost=0.00..8.93 > rows=2 width=0) I dont know why you'd be having performance problems. The query that mapserver sends to postgresql/PostGIS should take about the same amount of time as the one you have above. How long does the above query actually take to perform (and how many rows are actually selected)? There was a minor problem with WKB and polygons a while ago - make sure you have the latest CVS version of PostGIS and Mapserver. Do the individual polygons have a *HUGE* number of points in them? Another strategy would be to create a new table ("pclp_s_small") with just the results of the above query in it. Ie. CREATE TABLE pclp_s_small AS SELECT * FROM pclp_s WHERE the_geom && ... Then use this table with mapserver and see if you get better performance. If you do, then the performance problem has something to do with the GiST indexing on pclp_s. If the performance still stinks, it has something to do with the communication between mapserver and postgresql/PostGIS. dave From marin at here.is Fri Dec 7 10:15:32 2001 From: marin at here.is (Ma) Date: Fri, 07 Dec 2001 18:15:32 +0000 Subject: [mapserver-users] HOw to create shp, etc files References: <001901c17f31$7cf2da60$7201010a@grantlaptop> Message-ID: <3C110744.21B1FAB7@here.is> Grant, use FShape. great, free software part of JShape WWW GIS. http://www.jshape.com/index0.html http://www.jshape.com/2xdownload/fshape.2x.zip here is the fshape.txt -- Ma ------------------------------------------------------------------------------ FShape 2.19, Copyright 2000 from JShape Software ------------------------------------------------------------------------------ FShape is an utility to allow users to manipulate their shapefiles in the several ways. FShape is a Java application (not an applet), so users need to have the Java JDK 1.1+ (free from SUN, http://java.sun.com) installed to run it. The shapefile system from ESRI basicly contains three parts : shape.shp : file contains feature records shape.shx : file contains feature indexes shape.dbf : file contains attribute records JShape (Java Shapefile browser) only requires ".shp" file to display GIS information, but ArcView needs at least the above three files to function properly. FShape can display, scale, offset, fuzzy, compress, grid and encrypt the information of a shapefile. To run FShape, users need to have the Java Interpreter (from Sun Java JDK or equivalents) available. The basic syntax of FShape program likes the following : java fshape [shapefile] [command] [key:encryption-key] FShape currently supports the following commands : (1) scale:value -> scale X, Y dimensions by [value] For Example : java fshape myshapefile.shp scale:1000 (2) xscale:value -> scale X dimension by [value] For Example : java fshape myshapefile.shp xscale:0.025 (3) yscale:value -> scale Y dimension by [value] For Example : java fshape myshapefile.shp yscale:25 (4) xoff:value -> offset X dimension by [value] For Example : java fshape myshapefile.shp xoff:25 (5) yoff:value -> offset Y dimension by [value] For Example : java fshape myshapefile.shp yoff:-25 (6) fuzzy:value -> fuzzy the shapefile by factor [value] The fuzzy value is (feature removed size)/(feature extent size). The valid fuzzy value is between 1 and 0. For Example : java fshape myshapefile.shp fuzzy:0.01 The above command removes the feature segments which sizes are less than 1/100 of the feature extent size. (7) index -> create a shape index file (.shx) For Example : java fshape myshapefile.shp index The above command will create a shape index file myshapefile.shx. (8) compress -> create a compressed shapefile (.csp) For Example : java fshape myshapefile.shp compress The above command will create a compressed shapefile myshapefile.csp. (9) compress key:encryption-key -> create an encrypted compressed shapefile (.ecp) For Example : java fshape myshapefile.shp compress key:http://shiuhlin.ml.org The above command will create an encrypted compressed shapefile myshapefile.ecp, and this file is useful only from "http://shiuhlin.ml.org" web site. (A) grid:M:N:AIF -> create grid shapefiles M : number of grids in X dimension (1 .. 100) N : number of grids in Y dimension (1 .. 100) AIF : (optional) Attribute Information File For Examples : (1) java fshape myshapefile.shp grid:3:2 The above command will create the following files : myshapefile.grd : grid control file which used by JShape myshapefile.0000.gsp : grid cell [0,0] shapefile myshapefile.0001.gsp : grid cell [0,1] shapefile myshapefile.0100.gsp : grid cell [1,0] shapefile myshapefile.0101.gsp : grid cell [1,1] shapefile myshapefile.0200.gsp : grid cell [2,0] shapefile myshapefile.0201.gsp : grid cell [2,1] shapefile (2) java fshape myshapefile.shp grid:3:2:myinfofile.txt The above command will create the following files : myshapefile.grd : grid control file which used by JShape myshapefile.0000.gsp : grid cell [0,0] shapefile myshapefile.0000.aif : grid cell [0,0] attribute information file myshapefile.0001.gsp : grid cell [0,1] shapefile myshapefile.0001.aif : grid cell [0,1] attribute information file myshapefile.0100.gsp : grid cell [1,0] shapefile myshapefile.0100.aif : grid cell [1,0] attribute information file myshapefile.0101.gsp : grid cell [1,1] shapefile myshapefile.0101.aif : grid cell [1,1] attribute information file myshapefile.0200.gsp : grid cell [2,0] shapefile myshapefile.0200.aif : grid cell [2,0] attribute information file myshapefile.0201.gsp : grid cell [2,1] shapefile myshapefile.0201.aif : grid cell [2,1] attribute information file (B) grid:M:N:AIF key:encryption-key -> create encrypted grid shapefiles M : number of grids in X dimension (1 .. 100) N : number of grids in Y dimension (1 .. 100) AIF : (optional) Attribute Information File (must be a text delimitered file) For Examples : (1) java fshape myshapefile.shp grid:3:2 key:http://shiuhlin.ml.org The above command will create the following files : myshapefile.egd : encrypted grid control file which used by JShape myshapefile.0000.egp : grid cell [0,0] encrypted shapefile myshapefile.0001.egp : grid cell [0,1] encrypted shapefile myshapefile.0100.egp : grid cell [1,0] encrypted shapefile myshapefile.0101.egp : grid cell [1,1] encrypted shapefile myshapefile.0200.egp : grid cell [2,0] encrypted shapefile myshapefile.0201.egp : grid cell [2,1] encrypted shapefile (2) java fshape myshapefile.shp grid:3:2:myinfofile.txt The above command will create the following files : myshapefile.grd : grid control file which used by JShape myshapefile.0000.egp : grid cell [0,0] encrypted shapefile myshapefile.0000.aif : grid cell [0,0] attribute information file myshapefile.0001.egp : grid cell [0,1] encrypted shapefile myshapefile.0001.aif : grid cell [0,1] attribute information file myshapefile.0100.egp : grid cell [1,0] encrypted shapefile myshapefile.0100.aif : grid cell [1,0] attribute information file myshapefile.0101.egp : grid cell [1,1] encrypted shapefile myshapefile.0101.aif : grid cell [1,1] attribute information file myshapefile.0200.egp : grid cell [2,0] encrypted shapefile myshapefile.0200.aif : grid cell [2,0] attribute information file myshapefile.0201.egp : grid cell [2,1] encrypted shapefile myshapefile.0201.aif : grid cell [2,1] attribute information file (C) agrid:AIF:Field -> create attribute grid shapefiles AIF : Attribute Information File (must be a text delimitered file) Field : Attribute Field Number For Examples : There are two fields (NAME and POPULATION) in myshapefile.txt. Using the following line to create the Attribute Grid for the NAME field. (1) java fshape myshapefile.shp agrid:myshapefile.txt:1 Using the following line to create the Attribute Grid for the POPULATION field. (2) java fshape myshapefile.shp agrid:myshapefile.txt:2 (D) kvm:scale -> create kvm integer scaled shapefiles Scale values : (1) If the source shapefile is in the Lat-Long (small extent) projection, the desired scale value should be 1000+. (2) If the source shapefile is in the UTM or Albers (large extent) projections, the desired scale value should be 1. (E) If there is no command specified, FShape will display the detailed information of the shapefile, compressed shapefile, grid shapefile and shape index file. ------------------------------------------------------------------------------ Encrypted Compressed/Grid Shapefile ------------------------------------------------------------------------------ Encrypted Compressed Shapefile (.ecs) and Encrypted Grid Shapefile (.egd/.egs) are used to protect important JShape GIS datasets not copied or downloaded by remote users for other purposes. For example, if you want to publish an important GIS data file "value.shp" to internet, but you don't want the remote users to get a copy of it. Here is the solution for this problem : 1. Execute the following commands to generate Encrypted Compressed Shapefile or Encrypted Grid Shapefile : (a) fshape value1.shp compress key:http://www.my.com to generate value1.ecp, which is encrypted with the key "http://www.my.com". (b) fshape value2.shp grid:10:10 key:http://www.my.com to generate value2.egd and a set of .egp files, which are encrypted with the key "http://www.my.com". 2. In JShape applet HTML file, specify the following information : Since the encrypted shaprefiles are specified, JShape client will use the current HTTP URL as the key to decrypt the input files value1.ecp and value2.egd. If the current HTTP URL is other than http://www.my.com, JShape client can not process the input encrypted shapefiles. Notes : 1. All encryption key are case sensitive. 2. JShape supports the smart URL matching. For Examples : (a) If you create a encrypted compressed shapefile value.ecp with the key "http://www.my.com", then JShape has no problem to access it from "http://www.my.com/gis/value.ecp" or "http://www.my.com/cad/value.ecp". (b) If you create a encrypted compressed shapefile value.ecp with the key "http://www.my.com/gis", then JShape has no problem to access it from "http://www.my.com/gis/value.ecp", but JShape can not access it from "http://www.my.com/cad/value.ecp". ------------------------------------------------------------------------------ dBase Files ------------------------------------------------------------------------------ FShape contains functions to process dBase (.dbf) attribute files. The syntax of dBase file functions is : java fshape dBaseFile [export | list] [field filter] [delimiter] Here are some examples : (1) java fshape myfile.dbf >>> Display the field definitions of myfile.dbf to screen (2) java fshape myfile.dbf list >>> Display the all contents of myfile.dbf to screen (3) java fshape myfile.dbf export >>> Export all the fileds of myfile.dbf to a delimitered text (myfile.txt) file. >>> The default delimiter "@" is used. (4) java fshape myfile.dbf export 1:3:5 >>> Export the fields 1, 3 and 5 of myfile.dbf to a delimiter text (myfile.txt) file. >>> The default delimiter "@" is used. (5) java fshape myfile.dbf export 1:3:5 $ >>> Export the fields 1, 3 and 5 of myfile.dbf to a delimiter text (myfile.txt) file. >>> The specified delimiter "$" is used. (6) java fshape myfile.dbf export % >>> Export all the fileds of myfile.dbf to a delimitered text (myfile.txt) file. >>> "%" is the wildcard character used in FShape. >>> The default delimiter "@" is used. (7) java fshape myfile.dbf export % $ >>> Export all the fileds of myfile.dbf to a delimitered text (myfile.txt) file. >>> "%" is the wildcard character used in FShape. >>> The specified delimiter "$" is used. Note: "*" character sometimes has problems used in Windows/DOS environments. ------------------------------------------------------------------------------ Export Shapefiles (.shp) to Text Input Files (.inp) ------------------------------------------------------------------------------ FShape provides the function to export shapefiless (.shp) to text input files (.inp). The syntax of this export function is : java fshape shapefile export ------------------------------------------------------------------------------ AGrid Text Database Table (.txt) ------------------------------------------------------------------------------ FShape provides the function to convert a text database table (.txt) into the attribute grid database table which can be easily accessed through JShape Table extension. The syntax of this function is : java fshape agrid:[TableFile]:[TableField] For example: java fshape fshape agrid:MyTable.txt:1 ------------------------------------------------------------------------------ Important Notes ------------------------------------------------------------------------------ (1) Before you "FShape" your shapefiles, backup your original shapefiles first. (2) FShape provides five primary functions : (a) rubber-band your shapefiles (b) fuzzy your shapefiles (cut down the shapefile size) (c) create the shape index file (d) create the compress shapefile (e) grid the shapefiles (divide a large shapefile into a set of small grid cell shapefiles) (f) create the shapefiles from the text input (.inp) files (there are three text input files (point.inp, arc.inp and polygon.inp) included in FSHAPE.ZIP. To convert them to shapefiles, just execute : fshape point.inp fshape arc.inp fshape polygon.inp (g) encrypt your shapefiles (h) process dBase (.dbf) files (3) JShape (Java Shapefile browser) does not require the shape index (.shx) files, but ArcView does require the shape index (.shx) files. If you rubber-band/fuzzy a shapefile and want it to be displayed in ArcView, you need to re-create a shape index (.shx) file with FShape. ------------------------------------------------------------------------------ Grant Marblestone wrote: > Howdy all again, > > I am going to ask a basic question right now and I hope not to be too > ridiculed! > > How does one create a shp file and the files that accompany it. > > I basically need to make a map of gps positioned dots containg a field of 10 > chars in length. > > Thanks so much for the advice, > > Grant From steve.lime at dnr.state.mn.us Fri Dec 7 10:54:44 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 07 Dec 2001 12:54:44 -0600 Subject: [mapserver-users] perl scripts in mapserver Message-ID: Those are just maintenance scripts I use with the demo. They serve no general purpose other than maybe as a example. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Pushkar Pradhan 12/06/01 11:29PM >>> Hi All, I am using mapserver 3.3.011, I am changing the demo app. and displaying data from Mississippi. I am having little trouble doing the query stuff. Can anyone please tell me the use of the foll. files makeref.pl (perl dir.) showextent.pl (data dir.) createquery.pl (data dir.) Thanks, ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Master's Candidate in ELECTRICAL ENGINEERING, MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From woodbri at swoodbridge.com Fri Dec 7 11:27:21 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 07 Dec 2001 14:27:21 -0500 Subject: [mapserver-users] MAP File Question Message-ID: <3C111819.301D3B8F@swoodbridge.com> I have a question on how CLASSs work in the MAP file. Specifically in the following example does the CLASS section work like a switch statement int C with a break at each END? Such that if NAME = /^State Hwy / then does it skip the rest of the CLASSs. Or such that I could put a CLASS at the bottom with no EXPRESSION that could be used as a default CLASS if non above were executed? I hope this makes sense to you. -Steve LAYER NAME highways MAXSCALE 600000 STATUS ON DATA majroads TYPE ANNOTATION LABELITEM "RTE_NUM" CLASSITEM "NAME" CLASS EXPRESSION /^State Hwy / COLOR 0 0 0 # dummy color SYMBOL 'state_highway_shield' LABEL MINFEATURESIZE 25 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION /^US Hwy / COLOR 0 0 0 # dummy color SYMBOL 'us_highway_shield' LABEL MINFEATURESIZE 25 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION /^I-/ COLOR 0 0 0 # dummy color SYMBOL 'interstate_shield' LABEL MINFEATURESIZE 25 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 255 255 255 END END END # highway annotation From morissette at dmsolutions.ca Fri Dec 7 12:35:01 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 07 Dec 2001 15:35:01 -0500 Subject: [mapserver-users] MAP File Question References: <3C111819.301D3B8F@swoodbridge.com> Message-ID: <3C1127F5.46241E84@dmsolutions.ca> Stephen Woodbridge wrote: > > I have a question on how CLASSs work in the MAP file. Specifically in > the following example does the CLASS section work like a switch > statement int C with a break at each END? Such that if NAME = /^State > Hwy / then does it skip the rest of the CLASSs. Or such that I could put > a CLASS at the bottom with no EXPRESSION that could be used as a default > CLASS if non above were executed? > Yes, you can put a class with no expression at the end to catch any shape that didn't match any of the previous classes. If I remember well, this works only with MapServer 3.5 ... older versions of MapServer didn't like us doing that (it would crash on the null expression). -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From david.armstrong at ntlworld.com Fri Dec 7 12:48:29 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Fri, 7 Dec 2001 20:48:29 -0000 Subject: [mapserver-users] distance measuring & street highlight Message-ID: <008401c17f60$86bfa8a0$9200a8c0@davidpc> I would like to know if anyone has been able to do distance calculation , and street highlighting with mapserver my question is this i would wish to select 2 points on the map then calculate the shortest route between these points and then highlight the streets along the path showing the direction etc any ideas ! Regards Dave From woodbri at swoodbridge.com Fri Dec 7 15:17:10 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 07 Dec 2001 18:17:10 -0500 Subject: [mapserver-users] distance measuring & street highlight References: <008401c17f60$86bfa8a0$9200a8c0@davidpc> Message-ID: <3C114DF6.5F1E993A@swoodbridge.com> David, While the problem is straight forward in its definition it is not a trivial problem to do the routing. I have played with this a little and if time permits I plan to do a full implementation is the future. At any rate here is basically what you have to do: You need your data organized differently than you typically do for display a map. You need a topological network ie: What you need is a list of every point in the database and a list of other points each is connected to. Then you grab a starting point and get the list of points it connects to, then foreach point you check to see if it is the end point if not then you recusively call yourself with the new point. There are few more details here but I think this is enough to get the idea. This routine basically does a recusive search of the network seeking the endpoint. Once you have a complete path it should be easy to put it in a temporary shape file and ask mapserver to display it as a highlight. A straight forward recusive routine would get overloaded with number of points in something like the Tiger/Line dataset, so you would have to come up with a strategy for pruning options or directing the path or or filtering choices by road class. Some other optiona are to build a variation on this that does hiarchitical routing at a macro level, like what are the counties a travel thought, than does the street level routing to get you from county to county. Have n small tasks is much more efficent than one task n times as large, best the the problem size is at least an n-square problem. Also Tiger data does NOT have info on street directionality, so route might send you the wrong way down a one-way street or tell you to get on a highway going the wrong direction, etc. There might be some other ways to do this, I would be interested in anyone thoughts and ideas on it. I have already spent a significant amount of time researching this problem and building simple prototypes that work with very simple data sets. -Steve David Armstrong wrote: > > I would like to know if anyone has been able to do distance calculation , > and street highlighting with mapserver > > my question is this > i would wish to select 2 points on the map then calculate the shortest route > between these points and then highlight the streets along the path showing > the direction etc > > any ideas ! > > Regards > Dave From woodbri at swoodbridge.com Fri Dec 7 16:51:45 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 07 Dec 2001 19:51:45 -0500 Subject: [mapserver-users] Another 3.5 Map File Question Message-ID: <3C116421.E1C8130F@swoodbridge.com> Hi again, Can a layer have more than one DATA statement or do I need to create a LAYER section for each one? I know I can give multiple LAYER sections the same NAME value and turn them on/off as a group, but I have a bunch of misc. files that would be nice to group together in a singe layer definition to cut down on the number of layers that need to be defined. Anyone know? Thanks, -Steve From sshealy at e811.com Fri Dec 7 11:47:25 2001 From: sshealy at e811.com (Scott Shealy) Date: Fri, 7 Dec 2001 14:47:25 -0500 Subject: [mapserver-users] HELP-Bug or Stupid Error on my part in MAPSERVER C API Message-ID: Hey guys I have got a problem that I have been trying to figure out for over 3 days now and was wondering if anyone else has any clues. I am using the following Map File .... ---> begin Map file NAME test EXTENT -97.000 25.76 -88.049 31.00 SIZE 800 400 SHAPEPATH "/test_maps/base_cov" IMAGECOLOR 0 0 204 SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 1 1 END END LAYER NAME "query_wells" DATA "all_wells" STATUS ON TYPE POINT CLASS EXPRESSION ([api] EQ 42704400350000 OR [api] EQ 17101200790000) SYMBOL "circle" COLOR 0 0 0 SIZE 5 END TOLERANCEUNITS pixels TOLERANCE 20 END END <--- End Map file I am using the following C program to demonstrate my problem ---> Begin c program #include #include "../../map.h" int main(int argc,char *argv[]) { mapObj *m; layerObj *l; int i,j,layernum,return_code,layer_num; gdImagePtr img; for(i=0; i<10;i++) { printf("starting iteration %ld\n",i); m=msLoadMap("./test.map"); if(m==NULL) { printf("error loading map on %ld iteration",i); exit(-1); } printf("Number of layers is %ld\n",m->numlayers); for( j=0;jnumlayers;j++) { printf("%s\n",m->layers[j].name); } img = msDrawMap(m); msSaveImage(img,"/tmp/xxx.png",m->imagetype,m->transparent, m->interlace,m->imagequality); msFreeImage(img); msFreeMap(m); } } <--- End C test program When I run this program the first iteration of the main loop is ok and the genrated map image is correct... But the second iteration of the main loop fails at loading the map. I stuck this thing in the debugger and when I enter msLoadMap on the second iteration everything is fine. It appears to successfully open the map and then proceeds to parse the map file. When the parser goes to get the first token it returns nothing and the msLoadMap function bails with an an error. That definitely doesn't seem right but I can't figure out why it is bailing. I can modify my setup two ways to make this problem go away but neither are acceptable but may provide some clues as to what is going on. 1) In my map file I can remove the EXPRESSION from the CLASS and everything runs fine... It goes through each iteration just fine and draws the map. 2)If I move the msLoadmap and msFreeMap() outside the main loop(ie only load the map once) everything works fine... even with the EXPRESSION Object in the map file. (But this won't work for me) If I am using the mapserver C API correctly (thats a big if...please let me know if I am not) this sort of suggests to me that there might be a bug in the cleaning up of resources associated with EXPRESSION Objects. Other pertinant details include (using mapserver nightly build from 2 days ago(also used one from about a month ago with the same results)). used this configure command configure --with-proj --with-gdal compile my test program with the following script #!/bin/sh FLAGS="-DUSE_PROJ -DUSE_PROJ_API_H -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_TIFF -DUSE_JPEG -DUSE_EPPL -DUSE_GDAL -DUSE_WMS -DIGNORE_MISSING_DATA" gcc test2.c $FLAGS -g -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -L/usr/local/lib -lproj -lgdal.1.1 ../../libmap.a Any suggestion is greatly appreciated... meanwhile I will keep working on it... Thanks, Scott Shealy From woodbri at swoodbridge.com Fri Dec 7 18:33:55 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 07 Dec 2001 21:33:55 -0500 Subject: [mapserver-users] More questions Message-ID: <3C117C13.81690D18@swoodbridge.com> Sorry to be a pest, but enquiring minds want to know! 1) On the demo (3.5) the Zoom size does not seem to work at 1.5, Does it only work at integer values? How can I do this? 2) How to get the layer name at the object of query is on? For example in the demo *_header.html the first line is: Layer: [CL]

I would like to get [CL] (or whatever) to replace with the Current Layer. The doc seems to imply that this is posible, but I can't get it to work. Thanks again, -Steve From woodbri at swoodbridge.com Sun Dec 9 09:13:08 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 09 Dec 2001 12:13:08 -0500 Subject: [mapserver-users] Railroad Symbol References: <8879CCE0F0187742B7302A93A8B87B0902988D@mpls.houstoneng.com> Message-ID: <3C139BA4.EC22AACC@swoodbridge.com> Brian, Did you get any responses to to your query? I would like this capability also, but have not been able to figure it out. Thanks, -Steve From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Sun Dec 9 12:49:20 2001 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Sun, 9 Dec 2001 15:49:20 -0500 Subject: [mapserver-users] [mapsize] abnormal behavior? Message-ID: <7CDD7B94357FD5119E800002A537C46E22FD8A@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I just noticed something weird ... When I specify a a mapsize via the URL, mapserver seems to change the extent! Here's what's happening: I have a mapfile that defines a MAPSIZE 375 343 ... and all is well ... The hwole country (Canada in my case) is displayed in a gif that's 375x343 ... No when I add ?mapsize=100+89 to the URL, instead of seeing a small map at the same extent as the previous one (the whole country), I just see a part of the country, as if I'm zoomed in or something ... It looks like it centered on the middle of the map and drew a 100x89 gif from that, using the original mapsize ... am I making sense here? Has there been a change in the behavior of this parameter lately? Is this a bug? Help! Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From Rich at GreenwoodMap.com Sun Dec 9 15:40:39 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Sun, 09 Dec 2001 16:40:39 -0700 Subject: [mapserver-users] [mapsize] abnormal behavior? In-Reply-To: <7CDD7B94357FD5119E800002A537C46E22FD8A@s5-ccr-r1.ccrs.nrca n.gc.ca> Message-ID: <5.1.0.14.0.20011209163900.00acdea0@mail.GreenwoodMap.com> You might want to check your imgxy and be sure that it is half of your [mapwidth] and [mapheight] Rich At 03:49 PM 12/9/2001 -0500, you wrote: >Hello, > >I just noticed something weird ... When I specify a a mapsize via the URL, >mapserver seems to change the extent! > >Here's what's happening: > >I have a mapfile that defines a MAPSIZE 375 343 ... and all is well ... The >hwole country (Canada in my case) is displayed in a gif that's 375x343 ... > >No when I add ?mapsize=100+89 to the URL, instead of seeing a small map at >the same extent as the previous one (the whole country), I just see a part >of the country, as if I'm zoomed in or something ... It looks like it >centered on the middle of the map and drew a 100x89 gif from that, using the >original mapsize ... am I making sense here? > >Has there been a change in the behavior of this parameter lately? Is this a >bug? > >Help! > >Thanks, > >Jean-Fran?ois Doyon >Internet Service Development and Systems Support >GeoAccess Division >Canadian Center for Remote Sensing >Natural Resources Canada >http://atlas.gc.ca >Phone: (613) 992-4902 >Fax: (613) 947-2410 Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Sun Dec 9 15:49:28 2001 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Sun, 9 Dec 2001 18:49:28 -0500 Subject: [mapserver-users] [mapsize] abnormal behavior? Message-ID: <7CDD7B94357FD5119E800002A537C46E22FD8E@s5-ccr-r1.ccrs.nrcan.gc.ca> Richard, Oh it's not even set, don't have to set it, imgxy isn't used for resizing the map. It should only use the extent requested or the default one, and output the image in the requested size ... Even if I did set imgxy I would get the same result since the default IS the middle of the map. I've done this before many times without trouble, but on older versions of MapServer ... It seems to me it's drawing the image as a subset of the default settings. Imagine the default is 400 360 ... draw that at full extent, now go to the middle of the map and draw a gif that's 100 89 ... and you'll get what I'm getting, the resulting image looks as if I'd just zoomed in ... it's the right size mind you! :P Just not showing the proper default extent ... I even tried specifying it through the URL, and it STILL looked wrong! Thanks, J.F. -----Original Message----- From: Richard Greenwood [mailto:Rich at GreenwoodMap.com] Sent: Sunday, December 09, 2001 6:41 PM To: Doyon, Jean-Francois Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] [mapsize] abnormal behavior? You might want to check your imgxy and be sure that it is half of your [mapwidth] and [mapheight] Rich At 03:49 PM 12/9/2001 -0500, you wrote: >Hello, > >I just noticed something weird ... When I specify a a mapsize via the URL, >mapserver seems to change the extent! > >Here's what's happening: > >I have a mapfile that defines a MAPSIZE 375 343 ... and all is well ... The >hwole country (Canada in my case) is displayed in a gif that's 375x343 ... > >No when I add ?mapsize=100+89 to the URL, instead of seeing a small map at >the same extent as the previous one (the whole country), I just see a part >of the country, as if I'm zoomed in or something ... It looks like it >centered on the middle of the map and drew a 100x89 gif from that, using the >original mapsize ... am I making sense here? > >Has there been a change in the behavior of this parameter lately? Is this a >bug? > >Help! > >Thanks, > >Jean-Fran?ois Doyon >Internet Service Development and Systems Support >GeoAccess Division >Canadian Center for Remote Sensing >Natural Resources Canada >http://atlas.gc.ca >Phone: (613) 992-4902 >Fax: (613) 947-2410 Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From steve.lime at dnr.state.mn.us Sun Dec 9 20:05:35 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Sun, 09 Dec 2001 22:05:35 -0600 Subject: [mapserver-users] Fwd: Newbiew: Win98 + Apache configuration difficulties Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: "Mick Wilson" Subject: Newbiew: Win98 + Apache configuration difficulties Date: Sat, 8 Dec 2001 16:27:43 +0300 Size: 3288 URL: From info at pescatoreluca.com Mon Dec 10 03:28:51 2001 From: info at pescatoreluca.com (Luca Pescatore) Date: Mon, 10 Dec 2001 12:28:51 +0100 Subject: [mapserver-users] [mapsize] abnormal behavior? In-Reply-To: <5.1.0.14.0.20011209163900.00acdea0@mail.GreenwoodMap.com> References: <7CDD7B94357FD5119E800002A537C46E22FD8A@s5-ccr-r1.ccrs.nrca n.gc.ca> Message-ID: <5.1.0.14.0.20011210122716.02751610@www.pescatoreluca.com> Hi, 'm a newbie about MapServer, i have installed a 3.5 with Apache and PHP. At this moment 'm tring to use demo map, but it doesnt work... How can i get a working demo ? Best Regards, Luca From woodbri at swoodbridge.com Mon Dec 10 05:40:21 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 10 Dec 2001 08:40:21 -0500 Subject: [mapserver-users] [mapsize] abnormal behavior? References: <7CDD7B94357FD5119E800002A537C46E22FD8A@s5-ccr-r1.ccrs.nrca n.gc.ca> <5.1.0.14.0.20011210122716.02751610@www.pescatoreluca.com> Message-ID: <3C14BB45.21A51FB@swoodbridge.com> There is a working 3.5 demo at http://maps.dnr.state.mn.us/mapserver_demos/itasca.tar.gz Luca Pescatore wrote: > > Hi, > 'm a newbie about MapServer, i have installed a 3.5 with Apache and PHP. > At this moment 'm tring to use demo map, but it doesnt work... How can i > get a working demo ? > > Best Regards, > Luca From ccleveland at dieselpoint.com Mon Dec 10 09:08:18 2001 From: ccleveland at dieselpoint.com (Chris Cleveland) Date: Mon, 10 Dec 2001 11:08:18 -0600 Subject: [mapserver-users] Labels for streets Message-ID: <200112101710.LAA12778@lists.gis.umn.edu> How do you 1) get street labels to match the angle of the street (implement rotated fonts), and 2) suppress duplicate labels for every street segment? There is some hint of this in the docs (LABELANGLEITEM) but I can't seem to find an explicit answer. While we're at it, is there a way to make the border of a polygon more than one pixel thick? -- Chris Cleveland Dieselpoint, Inc. 2000 North Racine Avenue, Suite 4100 Chicago, Illinois 60614 773.528.1700 x116 voice, 773.528.8862 fax http://dieselpoint.com ccleveland at dieselpoint.com From steve.lime at dnr.state.mn.us Mon Dec 10 10:06:31 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 10 Dec 2001 12:06:31 -0600 Subject: [mapserver-users] Another 3.5 Map File Question Message-ID: One DATA element per layer. NAMEs really should be unique. Use the GROUP parameter instead. If the files should be drawn the same then consider actually concatenating them (or using tiling). Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stephen Woodbridge 12/07/01 06:51PM >>> Hi again, Can a layer have more than one DATA statement or do I need to create a LAYER section for each one? I know I can give multiple LAYER sections the same NAME value and turn them on/off as a group, but I have a bunch of misc. files that would be nice to group together in a singe layer definition to cut down on the number of layers that need to be defined. Anyone know? Thanks, -Steve From steve.lime at dnr.state.mn.us Mon Dec 10 10:25:35 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 10 Dec 2001 12:25:35 -0600 Subject: [mapserver-users] Labels for streets Message-ID: 1) use truetype fonts and "ANGLE AUTO" 2) set MINDISTANCE in the label item (this is the minimum distance between same labels) 3) yes, using recent code use something like: COLOR 255 0 0 OVERLAYSYMBOL 'circle' OVERLAYOUTLINECOLOR 0 0 0 OVERLAYSIZE 3 This get's you red solid polygons with a black 3 pixel outline... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Chris Cleveland 12/10/01 11:08AM >>> How do you 1) get street labels to match the angle of the street (implement rotated fonts), and 2) suppress duplicate labels for every street segment? There is some hint of this in the docs (LABELANGLEITEM) but I can't seem to find an explicit answer. While we're at it, is there a way to make the border of a polygon more than one pixel thick? -- Chris Cleveland Dieselpoint, Inc. 2000 North Racine Avenue, Suite 4100 Chicago, Illinois 60614 773.528.1700 x116 voice, 773.528.8862 fax http://dieselpoint.com ccleveland at dieselpoint.com From Chip.Hankley at GASAI.Com Mon Dec 10 10:46:40 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 10 Dec 2001 12:46:40 -0600 Subject: [mapserver-users] Labels for streets Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010AB7C0@postoffice.GASAI.Com> > How do you > 1) get street labels to match the angle of the street > (implement rotated fonts) In the MapServer TestSuite, there is a great example of labeling contours. This process works well with streets too. http://maps.dnr.state.mn.us/cgi-bin/mapserv?map=/usr/local/www/docs/mapserve r_demos/tests/auto_rotate/contours/test.map Basically, you are going to specify ANGLE AUTO in the label definition. >, and 2) suppress duplicate labels for every street segment? I would do some work on the source data... essentially, the labeling is going to try to label every INDIVIDUAL feature. I don't know that there is a way to supress duplicates. The easiest way would be to make sure that all of your line segments that are the same name are "dissolved" into one line. > While we're at it, is there a way to make the border of a polygon more than one pixel thick? Sure, you need to specify a symbol definition, either in a symbol file that you point to in the header, or in the SYMBOL section of the mapfile. Here's is a simple symbol definition for a line, we'll make it thick in the layer definition by using the SIZE feature: SYMBOL NAME 'polygon_outline' TYPE ELLIPSE POINTS 1 1 END FILLED END ....(some more map file) LAYER NAME "My_Polygon_Shapefile" STATUS DEFAULT DATA \My_Polygon_Shapefile CLASSITEM CODE TYPE POLYLINE CLASS Name 'SomeClassName' TEMPLATE "ttt" EXPRESSION '' SYMBOL 'polygon_outline' SIZE 3 COLOR 255 0 0 END # CLASS END # LAYER Cheers! Chip From armin.burger at territoriumonline.com Mon Dec 10 14:34:06 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Mon, 10 Dec 2001 23:34:06 +0100 Subject: [mapserver-users] compile error with wms and php support Message-ID: <200112102236.QAA15698@lists.gis.umn.edu> Hi all, I tried to compile mapserver under Linux (Mandrake 8.1) and got the following errors: with wms support enabled: ./libmap.a(mapwms.o): In function `msWMSFeatureInfo': mapwms.o(.text+0x2894): undefined reference to `msGMLStart' mapwms.o(.text+0x297e): undefined reference to `msGMLWriteShape' mapwms.o(.text+0x2a36): undefined reference to `msGMLFinish' collect2: ld returned 1 exit status make: *** [mapserv] Error 1 compiling with the option '--without-wms' was possible also the option '--with-php' caused the following errors: make[1]: Entering directory `/usr/home/install/mapserver/mapscript/php3' cc cc -I. -I.. -fpic -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_TIFF -DUSE_PDF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG -I/home/install/mapserver -I/usr/local/include/ -I/usr/include/php/ -I/usr/include/php//dl -I/usr/include/php//main -I/usr/include/php//Zend -I/usr/include/php//include -I/usr/include/php//TSRM -I/usr/include/apache -c -o php_mapscript_util.o php_mapscript_util.c cc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [php_mapscript_util.o] Error 1 Without these two options mapserver compiled well and runs fine. I used the nightly builds from 8 and 10 December. Any ideas? I was also curious what the shp2pdf would do but the compiled binary crashed with 'segmentation fault (core dumped)'. Did somebody succeed and could run this program? What is the output - a pixel image embedded in a pdf document? Thanks for any help Armin -- Armin Burger Territorium Online Bolzano, Italy From jsmedsmo at gis.umn.edu Mon Dec 10 15:07:57 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Mon, 10 Dec 2001 17:07:57 -0600 Subject: [mapserver-users] Documentation Volunteers Needed Message-ID: <3C15404D.8080701@gis.umn.edu> Hello All, This is your chance to contribute to the MapServer community. We need a couple of volunteers to get the basic documentation for 3.5 in place. The documents needed are mapscript, cgi, and template references. I translated the old (3.3) references into Docbook format, so you would just need to update the XML files. Let me know if you're interested and I'll send you the files. Thanks, Jamie Smedsmo Department of Forest Resources University of Minnesota From Mark.Wilson at rohoel.at Tue Dec 11 00:02:04 2001 From: Mark.Wilson at rohoel.at (Mark.Wilson at rohoel.at) Date: Tue, 11 Dec 2001 09:02:04 +0100 Subject: [mapserver-users] Mouse Overs on a Map? Message-ID: I have used Overlib with Mapserver. I got around the image map / form problem by having the main map as the image map, responding to mouseover events. Mouseclicks in overlib popups caused a link to be followed. For the navigation side, I simply had a normal reference map, and underneath it, another small version of the main map labelled "navigation", where the user could click to pan or zoom, depending upon the value of the radio buttons, as per a normal interface. It is a compromise. It worked for me because I was displaying only filled country outlines with point data. Some maps may look pretty ugly compressed to such small sizes, depending upon the data being displayed. Unfortunately, I've screwed up my mapscript installation, so I can't point you to a working example at the moment. Hope that helps, Mark W. "Stephen Lime" @lists.gis.umn.edu on 06/12/2001 18:13:29 Sent by: owner-mapserver-users at lists.gis.umn.edu To: , cc: Subject: Re: [mapserver-users] Mouse Overs on a Map? Can an form image also be used as an image map? I didn't think so. That makes it hard to combine a normal pan/zoom interface with an image map. (Please correct me if I'm wrong.) My work around was to build that sort of functionality in to the mapplet java piece I've got. I use mapscript to loop through the label cache and produce essentially an image map (stored in XML). Some examples are: http://www.dnr.state.mn.us/cgi-bin/mapdoqs.pl Zoom in close to see the DOQs and move your mouse over the little red pixels to see data in a small popup. Another fancy example is at: http://www.dnr.state.mn.us/weather/map.html although there seems to be a problem with the data at the moment. At any rate dumping the label cache is not difficult, the problem is how to implement best on the client-side. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 12/06/01 09:09AM >>> Hello, I know it's doable, but I'm wondering exactly how hard, or if there are any examples out there? I think it's got something to do with using MapScript in order to generate the ISMAP files, somehting to do with the labelling buffer I beleive? Ideally I'd like to use something like overlib in combination with a mapping tool, but right now I'm just curious about how hard it is and how long it would take before I commit to providing this feature! Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From david.armstrong at ntlworld.com Tue Dec 11 03:42:22 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Tue, 11 Dec 2001 11:42:22 -0000 Subject: [mapserver-users] mapsurfer project sourceforge Message-ID: <000d01c18238$e5f71800$de00a8c0@davidpc> has anyone updated this project to mapserver 3.5 ? http://sourceforge.net/projects/mapsurfer Regards Dave From twan at twansoft.com Tue Dec 11 05:00:29 2001 From: twan at twansoft.com (Twan Kogels) Date: Tue, 11 Dec 2001 14:00:29 +0100 Subject: [mapserver-users] php/sql quote problem Message-ID: <5.0.0.25.2.20011211135223.00b0f448@pop3.wish.nl> I'm try to add a point to the postgresql database, with php4. The following code is used: ==================== $conn = pg_pconnect ("host=10.0.0.2 port=5432 dbname=testdb user=postgres password=postgres"); $sql="insert into popplace_table (name, the_geom) values ('$stadnaam', 'GeometryFromText('POINT($geox $geoy)', 312)')"; print "\n\n"; $result = pg_Exec ($conn, $sql); ==================== But when i try to execute the query i get an error: ==================== <-- insert into popplace_table (name, the_geom) values ('twans stad', 'GeometryFromText('POINT(-518308.59661667 1867193.233333)', 312)') --> Warning: PostgreSQL query failed: ERROR: parser: parse error at or near "point" in /usr/local/apache/htdocs/mymap/mymap.phtml on line 165 ==================== I suspect there is a problem with the quotes around "geometryfromtext". I tryed to escape them: $sql="insert into popplace_table (name, the_geom) values ('$stadnaam', 'GeometryFromText(\'POINT($geox $geoy)\', 312)')"; $sql="insert into popplace_table (name, the_geom) values ('$stadnaam', 'GeometryFromText(''POINT($geox $geoy)'', 312)')"; $sql="insert into popplace_table (name, the_geom) values ('$stadnaam', 'GeometryFromText(/'POINT($geox $geoy)/', 312)')"; But none of these work :( Has anybody got a idea what i'm doing wrong? Thanks, - twan -- http://www.twansoft.com From twan at twansoft.com Tue Dec 11 06:00:39 2001 From: twan at twansoft.com (Twan Kogels) Date: Tue, 11 Dec 2001 15:00:39 +0100 Subject: [mapserver-users] RE: php/sql quote problem (solution) Message-ID: <5.0.0.25.2.20011211145700.00b16208@pop3.wish.nl> I'm feeling a bit stupid, most of the time i submit a question to this mailing list and later on i find the answer myself :-) With a lot of trying i have found the error, the correct sql query is: $sql="insert into popplace_table (name, the_geom) values ('$stadnaam', GeometryFromText('MULTIPOINT($geox $geoy)', -1))"; It is working perfect! - Twan -- http://www.twansoft.com From wasserburger at plan.at Tue Dec 11 06:50:56 2001 From: wasserburger at plan.at (Wolfgang W. Wasserburger) Date: Tue, 11 Dec 2001 15:50:56 +0100 Subject: [mapserver-users] 3.5 Win / tileindex / expression Message-ID: Hi all thereout, we use 3.5 (11. Dec.) and tried now to change our simple shapefiles to tileindexed shapefiles. But it seems, that there is a bug: a) we can get the tileindex to run as long as we donnot use expressions b) we can get the expressions to run as long as we donnot use tileindex It seems, that these two donnot work together in 3.5. They did in 3.4, but we liked to use the overlay functions, which didn't work in 3.4 properly. Has anyone any suggestions? Thx in advance Greetings from Vienna, Austria Wolfgang W. Wasserburger From woodbri at swoodbridge.com Tue Dec 11 07:37:31 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 11 Dec 2001 10:37:31 -0500 Subject: [mapserver-users] mapsurfer project sourceforge References: <000d01c18238$e5f71800$de00a8c0@davidpc> Message-ID: <3C16283B.E3CBA85A@swoodbridge.com> Dave, http://sourceforge.net/projects/mapsurfer is not Mapserver It looks to be some that USGS has thrown in the the public domain. I grabbed a copy of it and it is nothing more than some html, images and a shapefile. I'm not sure what it is :) -Steve W. David Armstrong wrote: > > has anyone updated this project to mapserver 3.5 ? > > http://sourceforge.net/projects/mapsurfer > > Regards > Dave From armin.burger at territoriumonline.com Tue Dec 11 08:27:45 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Tue, 11 Dec 2001 17:27:45 +0100 Subject: [mapserver-users] mapsurfer project sourceforge Message-ID: <200112111729.SAA25096@efferd.nettz.com> Steve, Mapsurfer was a very nice MapServer-based application on http://tailings.gps.caltech.edu/mapsurfer/, that is unfortunately not available any more. It offers a very functional zoom/pan interface based on DHTML but working perfectly on both IE and Netscape 4/6. I only find it a bit difficult to go through all the JavaScript without any documentation, probably because my JS/DHTML knowledge is too limited. I think this (abandoned?) project could be an interesting base for mapserver applications, similar to the Java mapplet. Armin > Dave, > http://sourceforge.net/projects/mapsurfer is not Mapserver > It looks to be some that USGS has thrown in the the public domain. I > grabbed a copy of it and it is nothing more than some html, images and a > shapefile. I'm not sure what it is :) > -Steve W. > David Armstrong wrote: >> >> has anyone updated this project to mapserver 3.5 ? >> >> http://sourceforge.net/projects/mapsurfer >> >> Regards >> Dave From sutton_t at giug.net Tue Dec 11 08:36:47 2001 From: sutton_t at giug.net (Tim Sutton) Date: Tue, 11 Dec 2001 16:36:47 +0000 (GMT) Subject: [mapserver-users] php/sql quote problem In-Reply-To: <5.0.0.25.2.20011211135223.00b0f448@pop3.wish.nl> Message-ID: Hi I am not sure about newer versions of postgres, but this may apply to them too: Postgres is quite picky about how you name your fields. It is prefereable to use all lower case and separate with underscores e.g. GeometryFromText would be better written as geometry_from_text. You _can_ still use mixed case, but then postgres expects all mixed case field names to be quoted so "GeometryFromText" would be acceptable. Doing it that way can be a real pain because it means you have to escape out every quote e.g. $sql="insert into popplace_table (name, the_geom) values ('$stadnaam', '\"GeometryFromText\"(''POINT($geox $geoy)'', 312)')"; Hope that helps regards -- ----------------------------------------------------- Tim Sutton WRc plc Consultant, GIS Solutions Group Frankland Road Direct line: +44 (0) 1793 865056 Blagrove Switchboard: +44 (0) 1793 865000 Swindon Fax: +44 (0) 1793 865001 Wiltshire SN5 8YF United Kingdom WRc - Solutions for Water, Waste and the Environment ----------------------------------------------------- From s.d.king at abdn.ac.uk Tue Dec 11 09:12:53 2001 From: s.d.king at abdn.ac.uk (Stephen D. King) Date: Tue, 11 Dec 2001 17:12:53 +0000 Subject: [mapserver-users] MapServer Demo Problems Message-ID: <5.1.0.14.0.20011211171058.0202a550@mailms.abdn.ac.uk> Hello Steve, I have a query about the installation of the MapServer demo - I wondered if anyone can help? I have installed the software onto a Windows NT server into a folder called mapserver, and followed all the instructions. When I click on the Initialize button I get the following message in the browser window: The system cannot find the file specified. And the following URL: http://myhost/cgi-bin/mapserv.exe?map=c%3A%5CInetpub%5Cwwwroot%5Cmapserver%5Cms_demo%5Cdemo.map&layer=lakes&layer=streams&zoomsize=2 I'm not sure what file it is referring to. I do have the mapserv.exe in the cgi-bin, and the path is correct. In the demo_footer.html file I have the following path set: img border="2" src="/cgi-bin/mapserv.exe?map=[map] &queryfile=C:\Inetpub\wwwroot\tmp\DEMO[id].qy[get_layers] &mode=map&size=200+200" -------------------------------------------- in the demo_init.html file the form action is set to: /cgi-bin/mapserv.exe and the hidden value to: c:\Inetpub\wwwroot\mapserver\ms_demo\demo.map -------------------------------------------- in the demo.html file I have the form action set to: /cgi-bin/mapserv.exe ---------------------------------------------- in the demo.map file I have set the paths to: IMAGEPATH "C:\Inetpub\wwwroot\tmp\ IMAGEURL "/tmp/ I have created the tmp folder and set the permissions on it to write. Hope you can help, Thanks, Stephen From woodbri at swoodbridge.com Tue Dec 11 09:37:55 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 11 Dec 2001 12:37:55 -0500 Subject: [mapserver-users] Tileindex question Message-ID: <3C164473.F0C5952D@swoodbridge.com> Hi all, Running ms 3.5 I have an 8 cols x 4 rows image set that I have put into a tileindex which works great. Since the image is wrapped around the globe (ie: as you move from col 8 to 8+1 you should wrap to col 1) only it displays just like a flat piece of paper. I could obviously fake entries in the tileindex to make it appear wider than it is, BUT I was wondering if there is a way to get mapserver to be smart about degrees and recognize that a tile at -190 == 170 and a tile at 190 == -170, etc. Did I miss something on this when reading the docs? Thank, -Steve From steve.lime at dnr.state.mn.us Tue Dec 11 09:46:12 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 11 Dec 2001 11:46:12 -0600 Subject: [mapserver-users] 3.5 Win / tileindex / expression Message-ID: Can anyone using tiles on other platforms verify these issues. One thing to check is that tiles are indeed identical. I have run into situations where folks had tiles that had different attributes or attributes in a different order. Since expressions are based on using a template tile to figure out what items need to be used you'd definitely run into problems with expressions in this case since the wrong data could be being evaluated. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Wolfgang W. Wasserburger" 12/11/01 08:50AM >>> Hi all thereout, we use 3.5 (11. Dec.) and tried now to change our simple shapefiles to tileindexed shapefiles. But it seems, that there is a bug: a) we can get the tileindex to run as long as we donnot use expressions b) we can get the expressions to run as long as we donnot use tileindex It seems, that these two donnot work together in 3.5. They did in 3.4, but we liked to use the overlay functions, which didn't work in 3.4 properly. Has anyone any suggestions? Thx in advance Greetings from Vienna, Austria Wolfgang W. Wasserburger From woodbri at swoodbridge.com Tue Dec 11 12:29:01 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 11 Dec 2001 15:29:01 -0500 Subject: [mapserver-users] MapServer Demo Problems References: <5.1.0.14.0.20011211171058.0202a550@mailms.abdn.ac.uk> Message-ID: <3C166C8D.D8FD33E9@swoodbridge.com> Stephen, A couple things: 1) Hit the url http://myhost/cgi-bin/mapserv.exe and you should get back "No query information to decode. QUERY_STRING is set, but empty." which will tell if you have cgi scripts run on the server and mapserv instaled correctly. 2) Somebody else jump in here, but I think you want all your paths to contain '/' chars and not '\' chars - but I could be wrong on this. At least check the documentation. HTH, -Steve "Stephen D. King" wrote: > > Hello Steve, > > I have a query about the installation of the MapServer demo - I wondered if > anyone can help? > > I have installed the software onto a Windows NT server into a folder called > mapserver, and followed all the instructions. When I click on the > Initialize button I get the following message in the browser window: > > The system cannot find the file specified. > > And the following URL: > > http://myhost/cgi-bin/mapserv.exe?map=c%3A%5CInetpub%5Cwwwroot%5Cmapserver%5Cms_demo%5Cdemo.map&layer=lakes&layer=streams&zoomsize=2 > > I'm not sure what file it is referring to. I do have the mapserv.exe in the > cgi-bin, and the path is correct. > > In the demo_footer.html file I have the following path set: > > img border="2" src="/cgi-bin/mapserv.exe?map=[map] > &queryfile=C:\Inetpub\wwwroot\tmp\DEMO[id].qy[get_layers] > &mode=map&size=200+200" > > -------------------------------------------- > > in the demo_init.html file the form action is set to: > > /cgi-bin/mapserv.exe > > and the hidden value to: > > c:\Inetpub\wwwroot\mapserver\ms_demo\demo.map > > -------------------------------------------- > > in the demo.html file I have the form action set to: > > /cgi-bin/mapserv.exe > > ---------------------------------------------- > > in the demo.map file I have set the paths to: > > IMAGEPATH "C:\Inetpub\wwwroot\tmp\ > IMAGEURL "/tmp/ > > I have created the tmp folder and set the permissions on it to write. > > Hope you can help, > > Thanks, > > Stephen From Rich at GreenwoodMap.com Tue Dec 11 12:45:27 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Tue, 11 Dec 2001 13:45:27 -0700 Subject: [mapserver-users] 3.5, freetype, and Makefile.vc Message-ID: <5.1.0.14.0.20011211125447.02c98690@mail.GreenwoodMap.com> Mapserver wizards - I have found compiling 3.5 with freetype under windows to be a struggle. Daniel Morissette posted a message last week that stated "Starting with MapServer 3.5, you have to compile with a GD that was compiled with freetype." So I removed all references to gdft in my Makefile.vc and now it compiles quite smoothly. Thanks, Daniel! So why does the Makefile.vc on cvs and in the nightly still reference gdft? The Makefile.in does not refer to gdft. If the gdft references could be eliminated from Makefile.vc (and maybe the gdft directory?) it could save some confusion for newbies, and easily confused individuals such as myself. Best regards, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From Chip.Hankley at GASAI.Com Tue Dec 11 13:16:27 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Tue, 11 Dec 2001 15:16:27 -0600 Subject: [mapserver-users] PHP MapScript -> IDE Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010AB7C9@postoffice.GASAI.Com> Sorry this is slightly off topic. Has anyone tried to use the Zend IDE Beta 2.0 with their PHP MapScript apps? I've been playing around with it today... it offers some *very* cool features... but seems to choke on the MapScript. For example, "ms_newMapObj();" generates a fatal error in the debugger. Curious if somebody knows a way around this. Cheers! Chip Hankley From teb at mallit.fr.umn.edu Tue Dec 11 15:07:12 2001 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 11 Dec 2001 17:07:12 -0600 (CST) Subject: [mapserver-users] Rendering Tiff images with MapServer (FWD) Message-ID: <200112112307.RAA20493@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Donald J. Sewell" To: mapserver-info at lists.gis.umn.edu Subject: Rendering Tiff images with MapServer Date: Tue, 11 Dec 2001 16:47:47 -0500 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mallit.fr.umn.edu id PAA20436 I'm a newbie so forgive the naivet?, but I am having problems rendering tiff images with MapServer. I am following the "HOWTO for Rasters in MapServer" directions but am getting nowhere. I am having no problems with shape files but get just a blank with tiffs. Thanks, Don Sewell Loyola Enterprises ------------- End Forwarded Message ------------- From woodbri at swoodbridge.com Tue Dec 11 17:12:56 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 11 Dec 2001 20:12:56 -0500 Subject: [mapserver-users] Rendering Tiff images with MapServer (FWD) References: <200112112307.RAA20493@mallit.fr.umn.edu> Message-ID: <3C16AF18.F64B58A7@swoodbridge.com> Don, You need to give us more info on what you are doing, like are you using 3.5, are you making changes to the demo, are you using a tileindex, etc. Show us part of the .map file that defines the tiff layer. I just went thru this exercise taking the 3.5 demo and making changes to that. Does your tiff have a .wld file? Did you modify demo.html to add the new layer and turn it on in the user interface? I forgot to do this and it took me a while to figure it out. If you have other layers turn them off to make sure they are not covering up your image. Without more specific data, I hope these ideas help. -Steve > From: "Donald J. Sewell" > To: mapserver-info at lists.gis.umn.edu > Subject: Rendering Tiff images with MapServer > Date: Tue, 11 Dec 2001 16:47:47 -0500 > MIME-Version: 1.0 > Content-Transfer-Encoding: 8bit > X-MIME-Autoconverted: from quoted-printable to 8bit by mallit.fr.umn.edu id > PAA20436 > > I'm a newbie so forgive the naivet?, but I am having problems rendering tiff > images with MapServer. I am following the "HOWTO for Rasters in MapServer" > directions but am getting nowhere. I am having no problems with shape files > but get just a blank with tiffs. > > Thanks, > > Don Sewell > Loyola Enterprises From shpr at libero.it Wed Dec 12 02:49:10 2001 From: shpr at libero.it (Stefano Bonnin) Date: Wed, 12 Dec 2001 11:49:10 +0100 Subject: [mapserver-users] CRYPT ERROR Message-ID: <005d01c182fa$a15f5960$0601a8c0@comai.loc> Hi, I installed Postgresql 7.1.3, PostGis 0.6.2 and now I have compiled (CVS)MapServer with --with-postgis option but the system has showed me the following error (and warnigs): cmaplexer.c:3112: warning: `yyunput' defined but not used mapprimitive.c:771: warning: `get_centroid' defined but not used mapresample.c:419: warning: `msInitApproxTransformer' defined but not used mapresample.c:436: warning: `msFreeApproxTransformer' defined but not used mapresample.c:447: warning: `msApproxTransformer' defined but not used mapresample.c:551: warning: `msTransformMapToSource' defined but not used mapprojhack.c:71: warning: `ConvertProjUnitStringToMS' defined but not used /usr/lib/libpq.a(fe-connect.o): In function `connectDBStart': fe-connect.o(.text+0xa62): undefined reference to `SSL_load_error_strings' fe-connect.o(.text+0xa67): undefined reference to `SSL_library_init' fe-connect.o(.text+0xa6f): undefined reference to `SSLv23_method' fe-connect.o(.text+0xa77): undefined reference to `SSL_CTX_new' fe-connect.o(.text+0xa8c): undefined reference to `ERR_get_error' fe-connect.o(.text+0xa94): undefined reference to `ERR_reason_error_string' fe-connect.o(.text+0xab2): undefined reference to `SSL_new' fe-connect.o(.text+0xad5): undefined reference to `SSL_set_fd' fe-connect.o(.text+0xaee): undefined reference to `SSL_connect' fe-connect.o(.text+0xafd): undefined reference to `ERR_get_error' fe-connect.o(.text+0xb05): undefined reference to `ERR_reason_error_string' /usr/lib/libpq.a(fe-connect.o): In function `freePGconn': fe-connect.o(.text+0x1686): undefined reference to `SSL_free' /usr/lib/libpq.a(fe-misc.o): In function `pqReadData': fe-misc.o(.text+0x883): undefined reference to `SSL_read' fe-misc.o(.text+0x99e): undefined reference to `SSL_read' /usr/lib/libpq.a(fe-misc.o): In function `pqFlush': fe-misc.o(.text+0xb1f): undefined reference to `SSL_write' /usr/lib/libpq.a(fe-auth.o): In function `pg_krb5_init': fe-auth.o(.text+0x7c): undefined reference to `krb5_init_context' fe-auth.o(.text+0x8c): undefined reference to `error_message' fe-auth.o(.text+0xc2): undefined reference to `krb5_cc_default' fe-auth.o(.text+0xd2): undefined reference to `error_message' fe-auth.o(.text+0x13e): undefined reference to `error_message' fe-auth.o(.text+0x1a9): undefined reference to `krb5_unparse_name' fe-auth.o(.text+0x1b9): undefined reference to `error_message' fe-auth.o(.text+0x1e4): undefined reference to `krb5_free_principal' fe-auth.o(.text+0x211): undefined reference to `krb5_free_context' /usr/lib/libpq.a(fe-auth.o): In function `pg_krb5_sendauth': fe-auth.o(.text+0x2e7): undefined reference to `krb5_sname_to_principal' fe-auth.o(.text+0x2f7): undefined reference to `error_message' fe-auth.o(.text+0x38a): undefined reference to `krb5_free_principal' fe-auth.o(.text+0x3d2): undefined reference to `krb5_sendauth' fe-auth.o(.text+0x415): undefined reference to `error_message' fe-auth.o(.text+0x448): undefined reference to `krb5_free_error' fe-auth.o(.text+0x463): undefined reference to `krb5_free_principal' /usr/lib/libpq.a(fe-auth.o): In function `pg_password_sendauth': fe-auth.o(.text+0x4ec): undefined reference to `crypt' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 Why? In a very old newsgroup message (1998) I read about a NEED_CRYPT=-lcrypt option that unable the 'crypt errors', but, now, in the Makefile I doesn't find nothing about this. Thaks in advance. Stefano --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.306 / Virus Database: 166 - Release Date: 04/12/01 From woodbri at swoodbridge.com Wed Dec 12 08:29:24 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 12 Dec 2001 11:29:24 -0500 Subject: [mapserver-users] Tileindex question Message-ID: <3C1785E4.975B0851@swoodbridge.com> Can mapserver deal with tileindex entries that point to tileindex entries and if so is there any special that needs to be done to get it to work? like: world-tile.shp na-tile.shp cdn-*.shp mex-*.shp states-tile.shp {ss}{ccc}/*.shp sa-tile.shp {counties}.shp europe-tile.shp {counties}.shp etc. Or should this be done by feed all the *.shp in the directory tree into shptree file? or is there a better way that I have missed? Thanks again for the help, -Steve From ed at topozone.com Wed Dec 12 09:19:29 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 12 Dec 2001 12:19:29 -0500 Subject: [mapserver-users] Tileindex question Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7983@mercator.topozone.com> Steve - No, MapServer currently supports only one level of tile indexing - it expects the pointer in the LOCATION field to be the data. I'm not sure that multiple levels of indirection would be a good idea from a performance standpoint, although it certainly has some benefit from a data management perspective. I have created some pretty big tileindex files by feeding a whole directory tree into them. Be sure to remember to use shptree to create a spatial index on the tileindex file. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Wednesday, December 12, 2001 11:29 AM To: MapServer List Subject: [mapserver-users] Tileindex question Can mapserver deal with tileindex entries that point to tileindex entries and if so is there any special that needs to be done to get it to work? like: world-tile.shp na-tile.shp cdn-*.shp mex-*.shp states-tile.shp {ss}{ccc}/*.shp sa-tile.shp {counties}.shp europe-tile.shp {counties}.shp etc. Or should this be done by feed all the *.shp in the directory tree into shptree file? or is there a better way that I have missed? Thanks again for the help, -Steve From morissette at dmsolutions.ca Wed Dec 12 10:27:31 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 12 Dec 2001 13:27:31 -0500 Subject: [mapserver-users] Re: mapscripts References: <4D25CDA67110D3119FFB0008C707D7A7051E85@deathstar> Message-ID: <3C17A193.A4DEDA46@dmsolutions.ca> Hussain, There are some examples in direectory mapserver/mapscript/perl/examples in ms_3.3.011.tar.gz which you can download from MapServer's download page (http://mapserver.gis.umn.edu/dload.html). However, I don't think there is any example of creating a shapefile in Perl. I'll CC: this to the mapserver-users list where someone else may have some scripts to send you. Daniel Shaik Anwar Hussain wrote: > > Hi Daniel, > > My name is Hussain, its nice to meet u, > > i am working on mapserver 3.3, can u help me where i can get the sample > mapscripts in perl to generate shapefiles. please send me the url. > > Thanks for ur time, > Hussain From bbaily at CEMML.ColoState.EDU Wed Dec 12 10:24:10 2001 From: bbaily at CEMML.ColoState.EDU (Beth Baily) Date: Wed, 12 Dec 2001 11:24:10 -0700 Subject: [mapserver-users] Checkboxes Message-ID: <3C17A0CA.F4A31B8F@CEMML.ColoState.EDU> MapServer Users, I'm trying to follow the demo example 4. How do you get the checkboxes to stay checked when the layers are visible? I'm loading my page with the layers like this: http://hostname/cgi-bin/mapserv.exe?map=E:\MapServer\Fort_Jackson\jackson_test2.map&layers=Roads+Ranges+TAs but the layers are not checked as they are in the example. What am I doing wrong? Beth Baily -- ------------------------------------- Beth Baily Center for Environmental Management of Military Lands Colorado State University Fort Collins, CO 80523 Ph#:970/491-3814 FAX#:970/491-2713 E-mail: bbaily at cemml.colostate.edu ------------------------------------- From pnaciona at gis.umn.edu Wed Dec 12 11:46:47 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Wed, 12 Dec 2001 13:46:47 -0600 Subject: [mapserver-users] Checkboxes In-Reply-To: <3C17A0CA.F4A31B8F@CEMML.ColoState.EDU> Message-ID: Beth, Make sure you have something like this on your check box tag: "[value_check]". MapServer replaces this with "checked" if you turned the layer on, or nothing if it's not checked. Also, make sure the "value" is the same as the LAYER NAME you specified in your map file. Anyway, your check boxes should like something like this: Lakes & Rivers
Good luck! Perry N. pnaciona at gis.umn.edu PS: THe MapServer tutorial needs revision. It was created for MapServer 3.3 and a lot have changed since. Please refer to the MapServer 3.5 Documentation (Map file reference) if you are using the latest version. > -----Original Message----- > From: owner-mapserver-users at lists [mailto:owner-mapserver-users at lists]On > Behalf Of Beth Baily > Sent: Wednesday, December 12, 2001 12:24 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Checkboxes > > > MapServer Users, > > I'm trying to follow the demo example 4. How do you get the checkboxes > to stay checked when the layers are visible? I'm loading my page with > the layers like this: > > http://hostname/cgi-bin/mapserv.exe?map=E:\MapServer\Fort_Jackson\ jackson_test2.map&layers=Roads+Ranges+TAs but the layers are not checked as they are in the example. What am I doing wrong? Beth Baily -- ------------------------------------- Beth Baily Center for Environmental Management of Military Lands Colorado State University Fort Collins, CO 80523 Ph#:970/491-3814 FAX#:970/491-2713 E-mail: bbaily at cemml.colostate.edu ------------------------------------- From simon.mercier at fadq.qc.ca Wed Dec 12 13:28:07 2001 From: simon.mercier at fadq.qc.ca (simon mercier) Date: Wed, 12 Dec 2001 16:28:07 -0500 Subject: [mapserver-users] performance problem with PostGIS layer References: <3C10D88D.EBF0FA4D@fadq.qc.ca> <3C10FCA0.3E93F6C@refractions.net> Message-ID: <3C17CBE7.75F98D07@fadq.qc.ca> Paul, Dave ... thank's for your help After lots test.... I find something.... By tracing on PostgreSQL, I find that my mapserver execute this query: SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),oid::text from pclp_s WHERE the_geom && setSRID('BOX3D(-71.593372 46.788388,-71.545372 46.836388)'::BOX3D,find_srid('','pclp_s','the_geom')) THIS query don't use my GiST index????? (EXPLAIN = Seq Scan on pclp_s (cost=0.00..46282.50 rows=2 width=16)) But, if I try this one use it... SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),oid::text from pclp_s WHERE the_geom && GeometryFromText('BOX3D(-71.593372 46.788388,-71.545372 46.836388)'::BOX3D,find_srid('','pclp_s','the_geom')) (EXPLAIN = Index Scan using idx_geom_pclp_s on pclp_s (cost=0.00..8.93 rows=2 width=16) ) And now... why setSRID function (the one use by MapServer) don't use my GiST index and GeometryFromText use it? I find that GeometryFromText use ISCACHABLE and setSRID dont'use it... It is the problem? Dave Blasby a ?crit : > simon mercier wrote: > > --I have good result when retrieving data with spatial SQL query : > > explain select count(*) from pclp_s where the_geom && > > GeometryFromText('BOX3D(-72.15 46.43, -72.13 46.45)'::BOX3D,-1) > > Aggregate (cost=8.94..8.94 rows=1 width=0) > > -> Index Scan using idx_geom_pclp_s on pclp_s (cost=0.00..8.93 > > rows=2 width=0) > > I dont know why you'd be having performance problems. The query that > mapserver sends to postgresql/PostGIS should take about the same amount > of time as the one you have above. How long does the above query > actually take to perform (and how many rows are actually selected)? > > There was a minor problem with WKB and polygons a while ago - make sure > you have the latest CVS version of PostGIS and Mapserver. > > Do the individual polygons have a *HUGE* number of points in them? > > Another strategy would be to create a new table ("pclp_s_small") with > just the results of the above query in it. Ie. > CREATE TABLE pclp_s_small AS SELECT * FROM pclp_s WHERE the_geom && ... > Then use this table with mapserver and see if you get better > performance. > If you do, then the performance problem has something to do with the > GiST indexing on pclp_s. If the performance still stinks, it has > something to do with the communication between mapserver and > postgresql/PostGIS. > > dave -- Simon Mercier Technicien en G?omatique Direction des technologies de l'information La Financi?re agricole du Quebec 5825, rue Saint-Georges L?vis, Qu?bec,Canada G6V 4L2 http://www.fadq.qc.ca/ From woodbri at swoodbridge.com Wed Dec 12 13:24:27 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 12 Dec 2001 16:24:27 -0500 Subject: [mapserver-users] Checkboxes References: <3C17A0CA.F4A31B8F@CEMML.ColoState.EDU> Message-ID: <3C17CB0B.D1F2B5BA@swoodbridge.com> Beth, Try this: http://hostname/cgi-bin/mapserv.exe?map=E:\MapServer\Fort_Jackson\jackson_test2.map&layer=Roads&layer=Ranges&layer=TAs which assumes you have in your map file: LAYER NAME Roads ... END LAYER NAME Ranges ... END etc Here is a url to my work in progress (ie: under construction): http://swoodbridge.com/web2/ms_test you can turn layers on/off and see what happens on the url. -Steve Beth Baily wrote: > > MapServer Users, > > I'm trying to follow the demo example 4. How do you get the checkboxes > to stay checked when the layers are visible? I'm loading my page with > the layers like this: > > http://hostname/cgi-bin/mapserv.exe?map=E:\MapServer\Fort_Jackson\jackson_test2.map&layers=Roads+Ranges+TAs > > but the layers are not checked as they are in the example. What am I > doing wrong? > > Beth Baily > -- > ------------------------------------- > Beth Baily > Center for Environmental Management of Military Lands > Colorado State University > Fort Collins, CO 80523 > Ph#:970/491-3814 > FAX#:970/491-2713 > E-mail: bbaily at cemml.colostate.edu > ------------------------------------- From bbaily at CEMML.ColoState.EDU Wed Dec 12 13:33:15 2001 From: bbaily at CEMML.ColoState.EDU (Beth Baily) Date: Wed, 12 Dec 2001 14:33:15 -0700 Subject: [mapserver-users] Checkboxes References: <3C17A0CA.F4A31B8F@CEMML.ColoState.EDU> <3C17CB0B.D1F2B5BA@swoodbridge.com> Message-ID: <3C17CD1B.CEF2C1BC@CEMML.ColoState.EDU> Steve, The problem was that in my checkbox lines, the variables were lower case ([roads_check]) while the layer names in the map file were upper case (Roads). Once I changed the names to match in case ([Roads_check]), the problem was solved. Thanks for your suggestion. Beth Stephen Woodbridge wrote: > > Beth, > > Try this: > > http://hostname/cgi-bin/mapserv.exe?map=E:\MapServer\Fort_Jackson\jackson_test2.map&layer=Roads&layer=Ranges&layer=TAs > > which assumes you have in your map file: > > LAYER > NAME Roads > ... > END > > LAYER > NAME Ranges > ... > END > > etc > > Here is a url to my work in progress (ie: under construction): > http://swoodbridge.com/web2/ms_test > you can turn layers on/off and see what happens on the url. > > -Steve > > Beth Baily wrote: > > > > MapServer Users, > > > > I'm trying to follow the demo example 4. How do you get the checkboxes > > to stay checked when the layers are visible? I'm loading my page with > > the layers like this: > > > > http://hostname/cgi-bin/mapserv.exe?map=E:\MapServer\Fort_Jackson\jackson_test2.map&layers=Roads+Ranges+TAs > > > > but the layers are not checked as they are in the example. What am I > > doing wrong? > > > > Beth Baily > > -- > > ------------------------------------- > > Beth Baily > > Center for Environmental Management of Military Lands > > Colorado State University > > Fort Collins, CO 80523 > > Ph#:970/491-3814 > > FAX#:970/491-2713 > > E-mail: bbaily at cemml.colostate.edu > > ------------------------------------- From pramsey at refractions.net Wed Dec 12 14:30:32 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 12 Dec 2001 14:30:32 -0800 Subject: [mapserver-users] Inevitable PHP Question Message-ID: <3C17DA88.2EEFBB95@refractions.net> When will php_mapscript.so compile/work with PHP 4.1.0 ? :) -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From morissette at dmsolutions.ca Wed Dec 12 14:48:14 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 12 Dec 2001 17:48:14 -0500 Subject: [mapserver-users] Inevitable PHP Question References: <3C17DA88.2EEFBB95@refractions.net> Message-ID: <3C17DEAE.C02B1A36@dmsolutions.ca> Paul Ramsey wrote: > > When will php_mapscript.so compile/work with PHP 4.1.0 ? :) > Did you try it yet? What kind of errors do you get? I saw that PHP 4.1.0 was released earlier this week but haven't been able to try it yet. Hopefully there won't be too much work involved to supporting 4.1.0, otherwise it may not be available before Christmas. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pramsey at refractions.net Wed Dec 12 14:45:58 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 12 Dec 2001 14:45:58 -0800 Subject: [mapserver-users] Inevitable PHP Question References: <3C17DA88.2EEFBB95@refractions.net> <3C17DEAE.C02B1A36@dmsolutions.ca> Message-ID: <3C17DE26.1B972FC0@refractions.net> This kind... php_mapscript.c:434: warning: initialization makes integer from pointer without a cast php_mapscript.c:434: initializer element is not computable at load time php_mapscript.c:434: (near initialization for `php3_ms_module_entry.size') php_mapscript.c:434: warning: initialization makes integer from pointer without a cast php_mapscript.c:434: warning: initialization makes integer from pointer without a cast php_mapscript.c:434: initializer element is not computable at load time php_mapscript.c:434: (near initialization for `php3_ms_module_entry.zend_debug') php_mapscript.c:434: warning: initialization makes integer from pointer without a cast php_mapscript.c:434: initializer element is not computable at load time php_mapscript.c:434: (near initialization for `php3_ms_module_entry.zts') php_mapscript.c:437: warning: initialization from incompatible pointer type php_mapscript.c: In function `php3_ms_img_saveImage': php_mapscript.c:3917: warning: implicit declaration of function `php_header' make[1]: *** [php_mapscript.o] Error 1 make[1]: Leaving directory `/raid/home/root/mapserver/mapscript/php3' Daniel Morissette wrote: > > Paul Ramsey wrote: > > > > When will php_mapscript.so compile/work with PHP 4.1.0 ? :) > > > > Did you try it yet? What kind of errors do you get? > I saw that PHP 4.1.0 was released earlier this week but haven't been > able to try it yet. Hopefully there won't be too much work involved to > supporting 4.1.0, otherwise it may not be available before Christmas. > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From JohnHockaday at auslig.gov.au Wed Dec 12 19:42:24 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Thu, 13 Dec 2001 14:42:24 +1100 Subject: [mapserver-users] Railroad and dual carriage way styles Message-ID: <53273E187450D311ACF6009027927B1202C7AF49@smtpgate.auslig.gov.au> Hi, I noticed a while ago in the archives that some one wanted to know how to make a railroad line in Mapserver 3.5 map files. I couldn't find any answers to that question so I am asking this one. In Mapserver 3.4 one could generate a dual carriageway by way of offsets. eg STYLE -1 0 0 1 0 0 END but in Mapserver 3.5 it seems that the STYLE doesn't have offsets. How do I generate a railway "---|---" and how do I generate a dual carriageway "==="? Thanks in advance. John From info at pescatoreluca.com Thu Dec 13 04:15:17 2001 From: info at pescatoreluca.com (Luca Pescatore) Date: Thu, 13 Dec 2001 13:15:17 +0100 Subject: [mapserver-users] .shp ArcViewFormat In-Reply-To: <53273E187450D311ACF6009027927B1202C7AF49@smtpgate.auslig.g ov.au> Message-ID: <5.1.0.14.0.20011213130851.02b85aa0@www.pescatoreluca.com> Hi, after a small test with php and demo map i'm trying to read some arcview files. It doesn't work, i have changed only sourcetype. From "DATA twprgpy3" to "DATA Entertn" I'm using Unix Server with Apache and PHP 4.0.6. What's wrong ? Another little question, how can i create or modify my .shp files ? Best Regards, Luca Pescatore ------------- # # Start of map file # NAME DEMO STATUS ON SIZE 400 300 #EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" #END # # Start of web interface definition # WEB HEADER map_header.html TEMPLATE map.html FOOTER map_footer.html MINSCALE 1000 MAXSCALE 15500 IMAGEPATH "/usr/local/apache/htdocs/tmp/" IMAGEURL "/tmp/" # LOG "demo.log" END QUERYMAP SIZE 300 300 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of reference map # REFERENCE IMAGE graphics/reference.gif EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 SIZE 120 120 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 75 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END # # Start of layer definitions # LAYER NAME county TYPE POLYGON STATUS DEFAULT DATA ctybdpy2 CLASSITEM 'cty_name' CLASS EXPRESSION 'Itasca' OUTLINECOLOR 128 128 128 COLOR 225 225 185 END CLASS # every other county in the state EXPRESSION /./ OUTLINECOLOR 128 128 128 COLOR 255 255 255 END END LAYER NAME cities TYPE POLYGON DATA mcd90py2 STATUS ON CLASSITEM city_name CLASS NAME "Cities & Towns" EXPRESSION /./ COLOR 255 225 90 END END # Griglie delle Province LAYER NAME townships TYPE POLYGON DATA twprgpy3 STATUS ON CLASS SYMBOL 'circle' SIZE 2 NAME 'Townships' OUTLINECOLOR 181 181 145 END END LAYER NAME lakes TYPE POLYGON STATUS ON DATA lakespy2 CLASS NAME 'Lakes & Rivers' TEMPLATE "lakespy2.html" COLOR 49 117 185 END HEADER "lakespy2_header.html" FOOTER "lakespy2_footer.html" TOLERANCE 3 END # lakes LAYER NAME streams TYPE LINE STATUS ON DATA dlgstln2 CLASS NAME "Streams" TEMPLATE "dlgstln2.html" COLOR 49 117 185 END HEADER "dlgstln2_header.html" FOOTER "dlgstln2_footer.html" TOLERANCE 5 END LAYER NAME roads MAXSCALE 300000 STATUS ON DATA ctyrdln3 TYPE LINE CLASS COLOR 0 0 0 END END LAYER NAME roads MAXSCALE 300000 STATUS ON DATA ctyrdln3 TYPE ANNOTATION LABELITEM "road_name" CLASS COLOR 255 255 255 #SYMBOL 'ctyhwy.gif' LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END # county road annotation LAYER NAME roads MAXSCALE 600000 STATUS ON DATA majrdln3 TYPE LINE CLASS NAME "Roads" COLOR 0 0 0 END END # highways LAYER NAME roads MAXSCALE 600000 STATUS ON DATA majrdln3 TYPE ANNOTATION LABELITEM "road_num" CLASSITEM "road_class" CLASS EXPRESSION "3" COLOR 0 0 0 # dummy color #SYMBOL 'sthwy.gif' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "2" COLOR 0 0 0 # dummy color #SYMBOL 'ushwy.gif' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "1" COLOR 0 0 0 # dummy color #SYMBOL 'interstate.gif' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 255 255 255 END END END # highway annotation LAYER NAME cities TYPE ANNOTATION DATA mcd90py2 STATUS ON LABELITEM "city_name" CLASSITEM "city_name" LABELMAXSCALE 500000 CLASS EXPRESSION /./ COLOR -1 -1 -1 LABEL COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE BITMAP SIZE MEDIUM POSITION CC PARTIALS FALSE BUFFER 2 END END END END # Map File From info at pescatoreluca.com Thu Dec 13 04:51:03 2001 From: info at pescatoreluca.com (Luca Pescatore) Date: Thu, 13 Dec 2001 13:51:03 +0100 Subject: [mapserver-users] .shp ArcViewFormat (attach) Message-ID: <5.1.0.14.0.20011213135007.0297b4a0@www.pescatoreluca.com> opps... attach.. of files.. Best Regards, Luca -------------- next part -------------- A non-text attachment was scrubbed... Name: Entertn.dbf Type: application/octet-stream Size: 1164 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Entertn.shp Type: application/octet-stream Size: 161 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Entertn.shx Type: application/octet-stream Size: 120 bytes Desc: not available URL: From woodbri at swoodbridge.com Thu Dec 13 05:15:35 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 13 Dec 2001 08:15:35 -0500 Subject: [mapserver-users] Railroad and dual carriage way styles References: <53273E187450D311ACF6009027927B1202C7AF49@smtpgate.auslig.gov.au> Message-ID: <3C18A9F6.837C42BD@swoodbridge.com> John, I have had no answer to my query on railway symbols, but did come up with a idea for a good looking alternative based on a dual carriageway in 3.5. dual carriageway: SYMBOL 'circle' COLOR 0 0 0 SIZE 5 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 255 0 0 OVERLAYSIZE 3 railway: SYMBOL 'circle' COLOR 0 0 0 SIZE 5 OVERLAYSYMBOL 'dcircle' OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 where 'dcircle' is defined as: SYMBOL NAME 'dcircle' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END STYLE 5 5 END END The other idea I had was to do an overlay to generate --0--0--0--0-- where the circles are filled, you could use "STYLE 1 5 END" above instead. I hope this helps, -Steve "Hockaday, John" wrote: > > Hi, > > I noticed a while ago in the archives that some one wanted to know how to > make a railroad line in Mapserver 3.5 map files. I couldn't find any > answers to that question so I am asking this one. > > In Mapserver 3.4 one could generate a dual carriageway by way of offsets. > eg > > STYLE > -1 0 0 > 1 0 0 > END > > but in Mapserver 3.5 it seems that the STYLE doesn't have offsets. > > How do I generate a railway "---|---" and how do I generate a dual > carriageway "==="? > > Thanks in advance. > > John From warmerdam at pobox.com Thu Dec 13 06:07:20 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 13 Dec 2001 09:07:20 -0500 Subject: [mapserver-users] .shp ArcViewFormat References: <5.1.0.14.0.20011213130851.02b85aa0@www.pescatoreluca.com> Message-ID: <3C18B618.9000803@pobox.com> Luca Pescatore wrote: > Hi, > after a small test with php and demo map i'm trying to read some > arcview files. > > It doesn't work, i have changed only sourcetype. > > From "DATA twprgpy3" to "DATA Entertn" > > I'm using Unix Server with Apache and PHP 4.0.6. > > What's wrong ? Luca, The Entertn.shp/shx files seem to be corrupt. The file length section contains 0x00000000 (24 bytes into the file) which results in an internal calculation of there being -12 records. How were your shapefiles prepared? > > Another little question, how can i create or modify my .shp files ? There are a number of ways. You can do it from within PHP, or write a C program against my Shapelib, use a GIS package like ArcView, etc. 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 armin.burger at territoriumonline.com Thu Dec 13 07:28:19 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Thu, 13 Dec 2001 16:28:19 +0100 Subject: [mapserver-users] Shape ID in FILTER/CLASS EXPRESSION? Message-ID: <200112131629.RAA28121@efferd.nettz.com> Hello everybody, with the template tag [shpidx] I can retrieve the feature ID for a selected feature of a shapefile in the query template. Is there anything similar for the FILTERITEM or CLASSITEM definition of the map file, like CLASSITEM "shpidx"? Armin -- Armin Burger Territorium Online Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia From woodbri at swoodbridge.com Thu Dec 13 09:31:57 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 13 Dec 2001 12:31:57 -0500 Subject: [mapserver-users] Shape ID in FILTER/CLASS EXPRESSION? References: <200112131629.RAA28121@efferd.nettz.com> Message-ID: <3C18E60D.7BA4241D@swoodbridge.com> Armin, Yes, you can set CLASS membership via CLASSITEM and EXPRESSIONs as below. The MAPFILE Reference doc has more information on this. This is an extract from my 3.5 map file which filters on CFCC codes: LAYER NAME landpt TYPE POINT MAXSCALE 100000 DATA us/25017/landpt STATUS ON CLASSITEM "CFCC" CLASS # schools EXPRESSION /D43/ OUTLINECOLOR 0 0 0 COLOR 220 220 5 SYMBOL 'square' SIZE 7 END CLASS # government buildings, Armory, Fire Station, PO, etc EXPRESSION /D65/ COLOR 200 75 200 SYMBOL 'circle' SIZE 7 END CLASS # Cemetery EXPRESSION /D82/ COLOR 255 0 0 SYMBOL 'cemetery' SIZE 7 END END -Steve Armin Burger wrote: > > Hello everybody, > > with the template tag [shpidx] I can retrieve the feature ID for a selected > feature of a shapefile in the query template. Is there anything similar for > the FILTERITEM or CLASSITEM definition of the map file, like CLASSITEM > "shpidx"? > > Armin > -- > Armin Burger > Territorium Online > Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia From armin.burger at territoriumonline.com Thu Dec 13 10:02:26 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Thu, 13 Dec 2001 19:02:26 +0100 Subject: [mapserver-users] Shape ID in FILTER/CLASS EXPRESSION? Message-ID: <200112131904.UAA00822@efferd.nettz.com> Steve, my question was, if there's an expression for the *internal* ID of a shapefile that I can use for the class/filteritem, just like the [shpidx] for templates. I.e., an item that is no standard visible field of the attribute table. [shpidx] does just that, but it is the expression for the templates, and will not work as class/filteritem. Thanks Armin > Armin, > Yes, you can set CLASS membership via CLASSITEM and EXPRESSIONs as > below. The MAPFILE Reference doc has more information on this. This is > an extract from my 3.5 map file which filters on CFCC codes: > LAYER > NAME landpt > TYPE POINT > MAXSCALE 100000 > DATA us/25017/landpt > STATUS ON > CLASSITEM "CFCC" > CLASS # schools > EXPRESSION /D43/ > OUTLINECOLOR 0 0 0 > COLOR 220 220 5 > SYMBOL 'square' > SIZE 7 > END > CLASS # government buildings, Armory, Fire Station, PO, etc > EXPRESSION /D65/ > COLOR 200 75 200 > SYMBOL 'circle' > SIZE 7 > END > CLASS # Cemetery > EXPRESSION /D82/ > COLOR 255 0 0 > SYMBOL 'cemetery' > SIZE 7 > END > END > -Steve > Armin Burger wrote: >> >> Hello everybody, >> >> with the template tag [shpidx] I can retrieve the feature ID for a selected >> feature of a shapefile in the query template. Is there anything similar for >> the FILTERITEM or CLASSITEM definition of the map file, like CLASSITEM >> "shpidx"? >> >> Armin >> -- >> Armin Burger >> Territorium Online >> Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia From chuynh at ideorlando.org Thu Dec 13 11:29:40 2001 From: chuynh at ideorlando.org (Chan B. Huynh) Date: Thu, 13 Dec 2001 14:29:40 -0500 Subject: [mapserver-users] Unsubscribe Message-ID: From s.d.king at abdn.ac.uk Thu Dec 13 13:09:51 2001 From: s.d.king at abdn.ac.uk (Stephen D. King) Date: Thu, 13 Dec 2001 21:09:51 +0000 Subject: [mapserver-users] MS Access Databases Message-ID: <5.1.0.14.0.20011213210747.009eb570@mailms.abdn.ac.uk> Hi everyone, I have just started with the demo of MapServer and haven't done a lot with it yet. I wondered if it possible to query an MS Access database and plot the results to a map? Say if you have x,y coordinates, can you plot that point and query its attributes? Many thanks, Stephen From phercad at terra.es Thu Dec 13 14:32:30 2001 From: phercad at terra.es (Juan Marin Otero) Date: Thu, 13 Dec 2001 23:32:30 +0100 Subject: [mapserver-users] Unsubscribe Message-ID: From david.armstrong at ntlworld.com Thu Dec 13 15:13:07 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Thu, 13 Dec 2001 23:13:07 -0000 Subject: [mapserver-users] mouse over How is it done on dnr mn weather map Message-ID: <00b501c1842b$b9781780$de00a8c0@davidpc> Could someone on the list please explain how the mouse over works on this app and possibley any code http://www.dnr.state.mn.us/weather/map.html Regards Dave From woodbri at swoodbridge.com Thu Dec 13 17:23:57 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 13 Dec 2001 20:23:57 -0500 Subject: [mapserver-users] MS Access Databases References: <5.1.0.14.0.20011213210747.009eb570@mailms.abdn.ac.uk> Message-ID: <3C1954AC.1BE10C4@swoodbridge.com> I haven't done that yet, but I believe it is possible with mapscript. You can use the scripting language to query and ODBC connection to the access database then use mapscript to a points and annotation to a layer and then pass the generated map back to the user. On a query, you retrieve the coordinate the user clicked on, map that back to some lat/long value and perform a SQL query to see what items in the database are close to the query point, then display back the results of the SQL query. Currently I think mapscript is only working for PHP, Perl, and Python. Read up on mapscript, and check out the list archives. -Steve "Stephen D. King" wrote: > > Hi everyone, > > I have just started with the demo of MapServer and haven't done a lot with > it yet. I wondered if it possible to query an MS Access database and plot > the results to a map? Say if you have x,y coordinates, can you plot that > point and query its attributes? > > Many thanks, > > Stephen From steve.lime at dnr.state.mn.us Thu Dec 13 17:38:00 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 13 Dec 2001 19:38:00 -0600 Subject: [mapserver-users] Fwd: mapscript 34 php4.0.4p11 Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: Shaik Anwar Hussain Subject: mapscript 34 php4.0.4p11 Date: Thu, 13 Dec 2001 11:46:52 -0500 Size: 3986 URL: From morissette at dmsolutions.ca Thu Dec 13 18:04:06 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 13 Dec 2001 21:04:06 -0500 Subject: [mapserver-users] Fwd: mapscript 34 php4.0.4p11 References: Message-ID: <3C195E16.5404061D@dmsolutions.ca> Shaik Anwar Hussain wrote: > > The erros i am getting > > Warning: Function registration failed - duplicate name - ms_newmapobj in > c:\program files\apache group\apache\htdocs\php\test.php on line 7 > You get this because you're attempting to load php_mapscript.dll for the second time. It is quite possibly that you had included a line with extension=php_mapscript.dll in your php.ini which automatically preloads php_mapscript.dll, and then when you call dl("php_mapscript.dll") again in your script you end up with symbol collisions. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From JohnHockaday at auslig.gov.au Thu Dec 13 19:29:58 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Fri, 14 Dec 2001 14:29:58 +1100 Subject: [mapserver-users] Railroad and dual carriage way styles Message-ID: <53273E187450D311ACF6009027927B1202C7AF4E@smtpgate.auslig.gov.au> Steve, This was a big help. I managed to get some lines that look similar to the original formats. I feel that the Mapserver 3.4 offset capability of the STYLE tag was much easier to use, understand and looked better. Developers, Are there any intentions to reintroduce the offset capability to the STYLE tag? Please, please, please say yes!!! It's much easier to use!!! ;--) Thanks again to this list for a quick and accurate response. John > -----Original Message----- > From: Stephen Woodbridge [SMTP:woodbri at swoodbridge.com] > Sent: Friday, December 14, 2001 12:16 AM > To: Hockaday, John > Cc: 'mapserver-users at lists.gis.umn.edu' > Subject: Re: [mapserver-users] Railroad and dual carriage way styles > > > John, > > I have had no answer to my query on railway symbols, but did come up > with a idea for a good looking alternative based on a dual carriageway > in 3.5. > > dual carriageway: > > SYMBOL 'circle' > COLOR 0 0 0 > SIZE 5 > OVERLAYSYMBOL 'circle' > OVERLAYCOLOR 255 0 0 > OVERLAYSIZE 3 > > railway: > > SYMBOL 'circle' > COLOR 0 0 0 > SIZE 5 > OVERLAYSYMBOL 'dcircle' > OVERLAYCOLOR 255 255 255 > OVERLAYSIZE 3 > > where 'dcircle' is defined as: > > SYMBOL > NAME 'dcircle' > TYPE ELLIPSE > FILLED TRUE > POINTS 1 1 END > STYLE 5 5 END > END > > The other idea I had was to do an overlay to generate --0--0--0--0-- > where the circles are filled, you could use "STYLE 1 5 END" above > instead. > > I hope this helps, > -Steve > > "Hockaday, John" wrote: > > > > Hi, > > > > I noticed a while ago in the archives that some one wanted to know how > to > > make a railroad line in Mapserver 3.5 map files. I couldn't find any > > answers to that question so I am asking this one. > > > > In Mapserver 3.4 one could generate a dual carriageway by way of > offsets. > > eg > > > > STYLE > > -1 0 0 > > 1 0 0 > > END > > > > but in Mapserver 3.5 it seems that the STYLE doesn't have offsets. > > > > How do I generate a railway "---|---" and how do I generate a dual > > carriageway "==="? > > > > Thanks in advance. > > > > John From steve.lime at dnr.state.mn.us Thu Dec 13 20:47:37 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 13 Dec 2001 22:47:37 -0600 Subject: [mapserver-users] Railroad and dual carriage way styles Message-ID: The problem with the old format was that the offset piece was just an approximation and fell apart in certain instances (like hairpin corners). Some simple rules were used to calculate the offset and this resulted in things like railroad tracks in which tracks were not perpendicular to the rail. In experimentation before I made the switch I found that I could create most every symbol with the new system that the old one supported. The only major deficiency was that truely hollow lines couldn't be supported. You can make parallel lines with space between them but you can't see stuff underlying the space. The new system allows for a wide variety of new symbols with more flexible color schemes that really does boost performance. For example, it used to be that to create a red centerline with a black outline took 2 layer defs (and 2 passes over the data). Now that is done in one pass. In addition you get things like fat polygon outlines. I'll try and post some samples over the weekend. If we find a particular deficiency I would propose adding a couple of new line symbol types specifically to address them. I don't want to go back to offsets though. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Hockaday, John" 12/13/01 21:34 PM >>> Steve, This was a big help. I managed to get some lines that look similar to the original formats. I feel that the Mapserver 3.4 offset capability of the STYLE tag was much easier to use, understand and looked better. Developers, Are there any intentions to reintroduce the offset capability to the STYLE tag? Please, please, please say yes!!! It's much easier to use!!! ;--) Thanks again to this list for a quick and accurate response. John > -----Original Message----- > From: Stephen Woodbridge [SMTP:woodbri at swoodbridge.com] > Sent: Friday, December 14, 2001 12:16 AM > To: Hockaday, John > Cc: 'mapserver-users at lists.gis.umn.edu' > Subject: Re: [mapserver-users] Railroad and dual carriage way styles > > > John, > > I have had no answer to my query on railway symbols, but did come up > with a idea for a good looking alternative based on a dual carriageway > in 3.5. > > dual carriageway: > > SYMBOL 'circle' > COLOR 0 0 0 > SIZE 5 > OVERLAYSYMBOL 'circle' > OVERLAYCOLOR 255 0 0 > OVERLAYSIZE 3 > > railway: > > SYMBOL 'circle' > COLOR 0 0 0 > SIZE 5 > OVERLAYSYMBOL 'dcircle' > OVERLAYCOLOR 255 255 255 > OVERLAYSIZE 3 > > where 'dcircle' is defined as: > > SYMBOL > NAME 'dcircle' > TYPE ELLIPSE > FILLED TRUE > POINTS 1 1 END > STYLE 5 5 END > END > > The other idea I had was to do an overlay to generate --0--0--0--0-- > where the circles are filled, you could use "STYLE 1 5 END" above > instead. > > I hope this helps, > -Steve > > "Hockaday, John" wrote: > > > > Hi, > > > > I noticed a while ago in the archives that some one wanted to know how > to > > make a railroad line in Mapserver 3.5 map files. I couldn't find any > > answers to that question so I am asking this one. > > > > In Mapserver 3.4 one could generate a dual carriageway by way of > offsets. > > eg > > > > STYLE > > -1 0 0 > > 1 0 0 > > END > > > > but in Mapserver 3.5 it seems that the STYLE doesn't have offsets. > > > > How do I generate a railway "---|---" and how do I generate a dual > > carriageway "==="? > > > > Thanks in advance. > > > > John From steve.lime at dnr.state.mn.us Thu Dec 13 20:56:38 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 13 Dec 2001 22:56:38 -0600 Subject: [mapserver-users] mouse over How is it done on dnr mn weather map Message-ID: David: It's an applet based on an extension of the mapplet applet. You can see it at: http://maps.dnr.state.mn.us/java/mapplet_xml Basically you define a standard image map, store is as an XML file and use it for mouse overs in the applet. The weather applet actually used 2 XML files, 1 for county forecasts and one for city conditions. In any case I use mapscript to produce the XML file and the base weather map. Let me know if you have other questions. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "David Armstrong" 12/13/01 17:17 PM >>> Could someone on the list please explain how the mouse over works on this app and possibley any code http://www.dnr.state.mn.us/weather/map.html Regards Dave From JohnHockaday at auslig.gov.au Thu Dec 13 21:47:22 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Fri, 14 Dec 2001 16:47:22 +1100 Subject: [mapserver-users] Railroad and dual carriage way styles Message-ID: <53273E187450D311ACF6009027927B1202C7AF4F@smtpgate.auslig.gov.au> Steve, Thanks for this detailed information. Is seems that all possibilities are allowed for by the new method. The problem is trying to find examples of how to use them. Is it possible, once you have developed some examples on the weekend, that we can have a simple mapserver in the tutorials showing the symbol set, the map file and lots of examples using those symbols showing common cartographic examples? EG. Dual carriageways, airports, railways, capital cities, local towns, rivers, etc. etc. Could it also show a GROUP example? EG. Roads as single lines on a national basis but as one zooms it the dual carriageways show up. I know that this is asking a fair bit but the documentation doesn't quite explain things using examples. A picture, using examples, can say a thousand words and I know that user documentation is the last thing on a developers mind. ;--) Thanks for all your help. John > -----Original Message----- > From: Stephen Lime [SMTP:steve.lime at dnr.state.mn.us] > Sent: Friday, December 14, 2001 3:48 PM > To: JohnHockaday at auslig.gov.au > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Railroad and dual carriage way styles > > The problem with the old format was that the offset piece was just an > approximation and fell apart in certain instances (like hairpin corners). > Some simple rules were used to calculate the offset and this resulted in > things like railroad tracks in which tracks were not perpendicular to the > rail. In experimentation before I made the switch I found that I could > create most every symbol with the new system that the old one supported. > The only major deficiency was that truely hollow lines couldn't be > supported. You can make parallel lines with space between them but you > can't see stuff underlying the space. The new system allows for a wide > variety of new symbols with more flexible color schemes that really does > boost performance. For example, it used to be that to create a red > centerline with a black outline took 2 layer defs (and 2 passes over the > data). Now that is done in one pass. In addition you get things like fat > polygon outlines. I'll try and post some samples over the weekend. > > If we find a particular deficiency I would propose adding a couple of new > line symbol types specifically to address them. I don't want to go back to > offsets though. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > >>> "Hockaday, John" 12/13/01 21:34 PM >>> > Steve, > > This was a big help. I managed to get some lines that look similar to the > original formats. > > I feel that the Mapserver 3.4 offset capability of the STYLE tag was much > easier to use, understand and looked better. > > Developers, > > Are there any intentions to reintroduce the offset capability to the STYLE > tag? Please, please, please say yes!!! It's much easier to use!!! > ;--) > > Thanks again to this list for a quick and accurate response. > > John > > > -----Original Message----- > > From: Stephen Woodbridge [SMTP:woodbri at swoodbridge.com] > > Sent: Friday, December 14, 2001 12:16 AM > > To: Hockaday, John > > Cc: 'mapserver-users at lists.gis.umn.edu' > > Subject: Re: [mapserver-users] Railroad and dual carriage way styles > > > > > > John, > > > > I have had no answer to my query on railway symbols, but did come up > > with a idea for a good looking alternative based on a dual carriageway > > in 3.5. > > > > dual carriageway: > > > > SYMBOL 'circle' > > COLOR 0 0 0 > > SIZE 5 > > OVERLAYSYMBOL 'circle' > > OVERLAYCOLOR 255 0 0 > > OVERLAYSIZE 3 > > > > railway: > > > > SYMBOL 'circle' > > COLOR 0 0 0 > > SIZE 5 > > OVERLAYSYMBOL 'dcircle' > > OVERLAYCOLOR 255 255 255 > > OVERLAYSIZE 3 > > > > where 'dcircle' is defined as: > > > > SYMBOL > > NAME 'dcircle' > > TYPE ELLIPSE > > FILLED TRUE > > POINTS 1 1 END > > STYLE 5 5 END > > END > > > > The other idea I had was to do an overlay to generate --0--0--0--0-- > > where the circles are filled, you could use "STYLE 1 5 END" above > > instead. > > > > I hope this helps, > > -Steve > > > > "Hockaday, John" wrote: > > > > > > Hi, > > > > > > I noticed a while ago in the archives that some one wanted to know how > > to > > > make a railroad line in Mapserver 3.5 map files. I couldn't find any > > > answers to that question so I am asking this one. > > > > > > In Mapserver 3.4 one could generate a dual carriageway by way of > > offsets. > > > eg > > > > > > STYLE > > > -1 0 0 > > > 1 0 0 > > > END > > > > > > but in Mapserver 3.5 it seems that the STYLE doesn't have offsets. > > > > > > How do I generate a railway "---|---" and how do I generate a dual > > > carriageway "==="? > > > > > > Thanks in advance. > > > > > > John From twan at twansoft.com Fri Dec 14 01:03:57 2001 From: twan at twansoft.com (Twan Kogels) Date: Fri, 14 Dec 2001 10:03:57 +0100 Subject: [mapserver-users] raster performance/cache gateway/minscale Message-ID: <5.0.0.25.2.20011214093959.031df460@pop3.wish.nl> Hello, Yesterday i managed to get a raster map working with mapserver. I downloaded the gdal library to use gdaltindex program to make a .shp file of my tiff files. It worked and now is mapserver showing a raster map. I now use 2 tiff files which are 2 MB each. Should i split the map files to smaller tiles to get better performance? I'm planning to implement a cache gateway with php: The visitor clicks on a map, the click is catched by my gateway. The gateway then checks if there is already .png file available on harddisk. When it is available, it shows the cached .png, when not, the "click request" from the visitor is redirected to mapserver. Does anybody have tips or hints on this subject? In a .map file there are MINSCALE and MAXSCALE properties, that allow me to hide or show a specific layer at a specif zoom level. I understand that, but i don't understand the numbers behind those properties. I now just gues and try a number and look how it works, but i suspect there is some logic behind those numbers? Thanks, - Twan -- http://www.twansoft.com From woodbri at swoodbridge.com Fri Dec 14 06:26:35 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 14 Dec 2001 09:26:35 -0500 Subject: [mapserver-users] Micro-HowTo Display SCALE References: <5.0.0.25.2.20011214093959.031df460@pop3.wish.nl> Message-ID: <3C1A0C1B.E33C975F@swoodbridge.com> Hi all, Twan Kogels asked about the values on the MINSCALE and MAXSCALE and how they relate to a given map. Go to your demo.html file and search for "scalebar" then replace that line with the following: 1:[scale]   Now just to the left of your scale bar you will have 1:ssssss.ssss where ssssss.ssss is the scale of the map at whatever zoom you are at. This is in the same units as the valuse on MINSCALE/MAXSCALE PLEASE, add this to the appropriate documentation as and example. Hope this helps, -Steve From jsmedsmo at gis.umn.edu Fri Dec 14 09:56:05 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Fri, 14 Dec 2001 11:56:05 -0600 Subject: [mapserver-users] [Fwd: mapserver how come it works as i didn't expected] Message-ID: <3C1A3D35.4030809@gis.umn.edu> -------- Original Message -------- Subject: mapserver how come it works as i didn't expected Date: Fri, 14 Dec 2001 17:08:06 +0100 From: Eric Chou To: projects at lists hi I'm a new fellow of mapserver my application seems to work unless I don't understand why when I click on the map its automaticaly redrawn also can you give me a clue why my legend doesn't appear ? and about zooming do I have imperatively to use javascript I'm less than a beginner in these javascripts ? thanks for , if you can help me ... today was it snowing in south of france (montpellier), sincerly eric joined my listings -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: admin.map URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From teb at mallit.fr.umn.edu Fri Dec 14 11:15:13 2001 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 14 Dec 2001 13:15:13 -0600 (CST) Subject: [mapserver-users] Mapplet under 3.5 (FWD) Message-ID: <200112141915.NAA22353@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: Stuart.Row at brs.gov.au To: mapserver-info at lists.gis.umn.edu Subject: Mapplet under 3.5 Date: Fri, 14 Dec 2001 11:51:01 +1100 MIME-Version: 1.0 I have just upgraded an application using the Mapplet applet from 3.3 to 3.5. Everything appears to be working except the map image does not display. I have checked the output PNG file (as listed in the source HTML code) and it is fine. For some reason my application just won't dipslay it. Are there any issues with running the Mapplet applet under 3.5 that I need to allow for? Thanks in advance Stuart Row Bureau of Rural Sciences PO Box E11 Kingston ACT Ph: +61 6272 4640 Fax: +61 6272 4687 Email: stuart.row at brs.gov.au ------------- End Forwarded Message ------------- From steve.lime at dnr.state.mn.us Fri Dec 14 12:13:09 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 14 Dec 2001 14:13:09 -0600 Subject: [mapserver-users] Shape ID in FILTER/CLASS EXPRESSION? Message-ID: No there isn't, but there could be I think. Could you add that to bugzilla on the main site as a feature request. Note that there IS a special query mode for retrieving shapes by index. Let me know if you want details... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Armin Burger 12/13/01 12:02PM >>> Steve, my question was, if there's an expression for the *internal* ID of a shapefile that I can use for the class/filteritem, just like the [shpidx] for templates. I.e., an item that is no standard visible field of the attribute table. [shpidx] does just that, but it is the expression for the templates, and will not work as class/filteritem. Thanks Armin > Armin, > Yes, you can set CLASS membership via CLASSITEM and EXPRESSIONs as > below. The MAPFILE Reference doc has more information on this. This is > an extract from my 3.5 map file which filters on CFCC codes: > LAYER > NAME landpt > TYPE POINT > MAXSCALE 100000 > DATA us/25017/landpt > STATUS ON > CLASSITEM "CFCC" > CLASS # schools > EXPRESSION /D43/ > OUTLINECOLOR 0 0 0 > COLOR 220 220 5 > SYMBOL 'square' > SIZE 7 > END > CLASS # government buildings, Armory, Fire Station, PO, etc > EXPRESSION /D65/ > COLOR 200 75 200 > SYMBOL 'circle' > SIZE 7 > END > CLASS # Cemetery > EXPRESSION /D82/ > COLOR 255 0 0 > SYMBOL 'cemetery' > SIZE 7 > END > END > -Steve > Armin Burger wrote: >> >> Hello everybody, >> >> with the template tag [shpidx] I can retrieve the feature ID for a selected >> feature of a shapefile in the query template. Is there anything similar for >> the FILTERITEM or CLASSITEM definition of the map file, like CLASSITEM >> "shpidx"? >> >> Armin >> -- >> Armin Burger >> Territorium Online >> Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia From brian at stallingscrop.com Fri Dec 14 12:47:13 2001 From: brian at stallingscrop.com (Brian McKenzie) Date: Fri, 14 Dec 2001 15:47:13 -0500 Subject: [mapserver-users] Blank image generated from oracle spatial l ayer. Message-ID: Hello I seem to be experiancing the same problems. I know this is not a Mapserver issue, now. But since the thread was started here I thought maybe I could get some further insight. I upload my data to Oracle with MapInfo Easy loader. And everything seems fine with Mapinfo, It shows up in Spatial advisor alright. My Stuff: Map Info Easy Loader 6.7 Oracle 8.1.7.0.1 Mapserver3.5 # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 # EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.3061389 EXTENT -180 -90 180 90 UNITS METERS IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "/uO1/Apache/Apache/htdocs/tmp/" IMAGEURL "/tmp/" LOG "demo.log" END # # Start of layer definitions # LAYER NAME "SGIS" TYPE POLYGON STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "mdsys/mdsys at lakeland.scicl.net" DATA "GEOLOC from cnybndpl" END END END #Map File <------------------> I get this in mapserver3.5 <------------------> msOracleSpatialLayerWhichShapes(): OracleSpatial error. ORA-29902: error in executing ODCIIndexStart() routine ORA-13208: internal error while evaluating [window SRID does not match layer SRID] operator ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 84 ORA-06512: at line 1 . SQL statement: SELECT rownum, GEOLOC FROM cnybndpl WHERE SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-180.3 ,-179.7,179.7,180.3) ),'querytype=window') = 'TRUE' <-------------------> If I run the same query in SQL*PLUS i get the same error messages. From all I heve read this would indicate some type of index problem. But ORA-13208 error seems to indicate an SRID problem. If someone could shed some light on this for me & point me in the direction I sure would appreciate it. I have been head bashing for 2 days now ;( Thanks Again Brian McKenzie Stallings Crop Insurance Corp. brian at stallingscrop.com From steve.lime at dnr.state.mn.us Fri Dec 14 13:04:44 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 14 Dec 2001 15:04:44 -0600 Subject: [mapserver-users] Fwd: Generate shape files Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: Shaik Anwar Hussain Subject: Generate shape files Date: Fri, 14 Dec 2001 12:32:33 -0500 Size: 1334 URL: From steve.lime at dnr.state.mn.us Fri Dec 14 13:16:51 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 14 Dec 2001 15:16:51 -0600 Subject: [mapserver-users] [Fwd: mapserver how come it works as i didn't expected] Message-ID: You don't have any class NAMEs defined so there is nothing for the legend builder to do. In order to show up a class must have a NAME parameter defined. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Jamie Smedsmo 12/14/01 11:56AM >>> -------- Original Message -------- Subject: mapserver how come it works as i didn't expected Date: Fri, 14 Dec 2001 17:08:06 +0100 From: Eric Chou To: projects at lists hi I'm a new fellow of mapserver my application seems to work unless I don't understand why when I click on the map its automaticaly redrawn also can you give me a clue why my legend doesn't appear ? and about zooming do I have imperatively to use javascript I'm less than a beginner in these javascripts ? thanks for , if you can help me ... today was it snowing in south of france (montpellier), sincerly eric joined my listings From shussain at atsincorp.com Fri Dec 14 13:54:16 2001 From: shussain at atsincorp.com (Shaik Anwar Hussain) Date: Fri, 14 Dec 2001 16:54:16 -0500 Subject: [mapserver-users] generate shape file Message-ID: <4D25CDA67110D3119FFB0008C707D7A7051E9D@deathstar> Hi List, Does any one know whats the wrong in this code, this code generating the shape file but when i open the shape file in arcview i am not getting the lines. addXY($x, $y); $oShp->add( $oLine ); $shpFile->addShape($oShp); dbase_add_record($dbfFile, array($programId)); } $shpFname = 'C:\Program Files\Apache Group\Apache\htdocs\php\test5'; $shpFile = ms_newShapeFileObj( $shpFname, MS_SHP_ARC); $dbfFile = dbase_create($shpFname.".dbf", array(array("PROG_ID","N",5,0))); createshape( 12, 34, 111); createshape( 22, 14, 222); createshape( 10, 20, 333); echo "Shapes Created.
"; $shpFile->free(); echo "Shape File ($shpFname) closed.
"; dbase_close($dbfFile); echo "Dbase file closed.
"; ?> i am using php 4.0/mapscript 3.4 module. Please try to look this problem. Thanks for ur time, Hussain From woodbri at swoodbridge.com Fri Dec 14 14:37:15 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 14 Dec 2001 17:37:15 -0500 Subject: [mapserver-users] Micro-HowTo Display SCALE References: <5.0.0.25.2.20011214093959.031df460@pop3.wish.nl> <3C1A0C1B.E33C975F@swoodbridge.com> <000f01c184ee$df4f8ce0$0300a8c0@tampabay.rr.com> Message-ID: <3C1A7F1B.CB9D042@swoodbridge.com> Steve, I've posted this back to the list, maybe one of the developers can help with this. I thought the number of decimal places was a bit excessive myself :) The only way to trim this up in html would be to write some javascript :( We seem to have a lot of Steves posting to this list! -The other Steve! klehr1 at tampabay.rr.com wrote: > > Thanks for the tip. > > I just tried it out and I got Scale: 1:21600.000000 > > Is there away to tone down the decimals (%.2f) ? > > Not sure if you can do this with Mapserver directly, but maybe you can > format the output in a later release. > > Thanks > Steve Lehr > > ----- Original Message ----- > From: Stephen Woodbridge > To: Twan Kogels > Cc: > Sent: Friday, December 14, 2001 9:26 AM > Subject: [mapserver-users] Micro-HowTo Display SCALE > > > Hi all, > > > > Twan Kogels asked about the values on the MINSCALE and MAXSCALE and how > > they relate to a given map. > > > > Go to your demo.html file and search for "scalebar" then replace that > > line with the following: > > > > > face="arial,helvetica" color="#FFFFFF">1:[scale]   > src="[scalebar]"> > > > > Now just to the left of your scale bar you will have 1:ssssss.ssss where > > ssssss.ssss is the scale of the map at whatever zoom you are at. This is > > in the same units as the valuse on MINSCALE/MAXSCALE > > > > PLEASE, add this to the appropriate documentation as and example. > > > > Hope this helps, > > -Steve From armin.burger at territoriumonline.com Fri Dec 14 15:14:43 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Sat, 15 Dec 2001 00:14:43 +0100 Subject: [mapserver-users] Shape ID in FILTER/CLASS EXPRESSION? Message-ID: <200112142316.RAA25620@lists.gis.umn.edu> Steve, what would be the mode definition for the 'shape by index'? Maybe I can make use of it. My intention is to query the attribute data of a layer and show the found features first in an html table. In one column every found feature has a link with a javascript behind. Clicking on that link the map should be zoomed to the extent of this feature and the feature should be somehow highlighted. But I would like to have this highlight persistant during zooms etc. until I switch it off. With the normal querymap this does not work. So I used your suggestion with an additional query-highlight-layer whose filter/class expressions are set via the url to show only the requested records. For the zoom/highlight to a single feature an internal ID I can pass to the javascript would be optimal. Otherwise I had to create a unique ID in the data or use a field that could serve as that. At the moment I'm highlighting all found features simultaneously and the link does only the zooming to the feature extent. I added this 'Shape ID' feature request to the bugzilla. Armin > No there isn't, but there could be I think. Could you add that to bugzilla > on the main site as a feature request. Note that there IS a special query > mode for retrieving shapes by index. Let me know if you want details... > Steve > Stephen Lime > Data & Applications Manager > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 >>>> Armin Burger 12/13/01 12:02PM >>> > Steve, > my question was, if there's an expression for the *internal* ID of a > shapefile that I can use for the class/filteritem, just like the [shpidx] > for templates. I.e., an item that is no standard visible field of the > attribute table. [shpidx] does just that, but it is the expression for the > templates, and will not work as class/filteritem. > Thanks > Armin From armin.burger at territoriumonline.com Fri Dec 14 15:20:42 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Sat, 15 Dec 2001 00:20:42 +0100 Subject: [mapserver-users] Mapplet under 3.5 (FWD) Message-ID: <200112142322.RAA25652@lists.gis.umn.edu> Stuart, It should have to do with the PNG output. I think that only Netscape 6 (using the 1.3 java plugin) will show png files in a java applet. So you'll have to use mapserver with GIF output. That should work fine then. Armin > ------------- Begin Forwarded Message ------------- > From: Stuart.Row at brs.gov.au > To: mapserver-info at lists.gis.umn.edu > Subject: Mapplet under 3.5 > Date: Fri, 14 Dec 2001 11:51:01 +1100 > MIME-Version: 1.0 > I have just upgraded an application using the Mapplet applet from > 3.3 to 3.5. Everything appears to be working except the map image > does not display. I have checked the output PNG file (as listed > in the source HTML code) and it is fine. For some reason my > application just won't dipslay it. Are there any issues with > running the Mapplet applet under 3.5 that I need to allow for? > Thanks in advance > Stuart Row > Bureau of Rural Sciences > PO Box E11 > Kingston ACT > Ph: +61 6272 4640 Fax: +61 6272 4687 > Email: stuart.row at brs.gov.au > ------------- End Forwarded Message ------------- From ed at topozone.com Fri Dec 14 15:40:44 2001 From: ed at topozone.com (Ed McNierney) Date: Fri, 14 Dec 2001 18:40:44 -0500 Subject: [mapserver-users] Mapplet under 3.5 (FWD) Message-ID: <13858AA1A74F30419F319ACB66A9D1220E79BB@mercator.topozone.com> Armin - Actually, any browser that can run Java 2 (a/k/a JRE 1.3 or greater) will provide PNG support to applets. You don't need to go to Netscape 6 to do that, but the applet, of course, has to take advantage of that support. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Armin Burger [mailto:armin.burger at territoriumonline.com] Sent: Friday, December 14, 2001 6:21 PM To: mapserver-users at lists.gis.umn.edu; Stuart.Row at brs.gov.au Subject: Re: [mapserver-users] Mapplet under 3.5 (FWD) Stuart, It should have to do with the PNG output. I think that only Netscape 6 (using the 1.3 java plugin) will show png files in a java applet. So you'll have to use mapserver with GIF output. That should work fine then. Armin > ------------- Begin Forwarded Message ------------- > From: Stuart.Row at brs.gov.au > To: mapserver-info at lists.gis.umn.edu > Subject: Mapplet under 3.5 > Date: Fri, 14 Dec 2001 11:51:01 +1100 > MIME-Version: 1.0 > I have just upgraded an application using the Mapplet applet from > 3.3 to 3.5. Everything appears to be working except the map image > does not display. I have checked the output PNG file (as listed > in the source HTML code) and it is fine. For some reason my > application just won't dipslay it. Are there any issues with > running the Mapplet applet under 3.5 that I need to allow for? > Thanks in advance > Stuart Row > Bureau of Rural Sciences > PO Box E11 > Kingston ACT > Ph: +61 6272 4640 Fax: +61 6272 4687 > Email: stuart.row at brs.gov.au > ------------- End Forwarded Message ------------- From andrew.luger at daterra.ab.ca Fri Dec 14 20:36:12 2001 From: andrew.luger at daterra.ab.ca (Andrew Luger) Date: Fri, 14 Dec 2001 21:36:12 -0700 Subject: [mapserver-users] Unsubscribe Message-ID: <000501c18522$06557290$fc004f18@stn1> -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Sat Dec 15 10:26:09 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Sat, 15 Dec 2001 13:26:09 -0500 Subject: [mapserver-users] generate shape file References: <4D25CDA67110D3119FFB0008C707D7A7051E9D@deathstar> Message-ID: <3C1B95C1.CD1E4932@dmsolutions.ca> Hussain, Your code attempts to write lines/polylines (MS_SHP_ARC), but you set only one point (x,y pair) per line... that may well be the source of your problems... you need at least two points to define a line or a polyline. Daniel Shaik Anwar Hussain wrote: > > Hi List, > > Does any one know whats the wrong in this code, > > this code generating the shape file but when i open the shape > file in arcview i am not getting the lines. > > > dl("php_mapscript.dll"); > dl("php_dbase.dll"); > > function createshape( $x, $y, $programId ) > { > GLOBAL $shpFile,$dbfFile; > $oShp = ms_newShapeObj(MS_SHP_ARC); > $oLine = ms_newLineObj(); > $oLine->addXY($x, $y); > $oShp->add( $oLine ); > $shpFile->addShape($oShp); > dbase_add_record($dbfFile, array($programId)); > } > > $shpFname = 'C:\Program Files\Apache Group\Apache\htdocs\php\test5'; > $shpFile = ms_newShapeFileObj( $shpFname, MS_SHP_ARC); > $dbfFile = dbase_create($shpFname.".dbf", array(array("PROG_ID","N",5,0))); > > createshape( 12, 34, 111); > createshape( 22, 14, 222); > createshape( 10, 20, 333); > > echo "Shapes Created.
"; > > $shpFile->free(); > echo "Shape File ($shpFname) closed.
"; > > dbase_close($dbfFile); > echo "Dbase file closed.
"; > > ?> > > i am using php 4.0/mapscript 3.4 module. > > Please try to look this problem. > > Thanks for ur time, > Hussain From cabral at yadata.net Sat Dec 15 16:00:04 2001 From: cabral at yadata.net (Rodrigo Cabral) Date: Sat, 15 Dec 2001 22:00:04 -0200 Subject: [mapserver-users] Blank image generated from oracle spatial layer References: Message-ID: <001001c185c4$9e916ee0$0207a8c0@naumaki> Hey there, Actually, I just noticed where the problem is. Let's examine this excerpt from the error message: [window SRID does not match layer SRID] As you mentioned Brian, it's an SRID problem, not an indexation problem. It occurs due to this function call (SDO_FILTER): SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-180.3 ,-179.7,179.7,180.3) ),'querytype=window') = 'TRUE' which passes three arguments: geom1=GEOLOC; geom2=SDO_GEOMETRY constructor; and a third non-relevant argument. geom1 has a defined SRID, while geom2 doesn't. So we get a SRID mismatch error. I've never tried working Spatial with defined SRIDs, so I never got this error. I'll try to solve it soon, but meanwhile try using this as your DATA statement in your mapfile: DATA "GEOLOC from cnybndpl" changes to DATA "GEOLOC from (SELECT GEOLOC FROM cnybndpl)" This will remove the SDO_FILTER call from the query, hence eliminating the error. Using SELECT statement instead of a tablename makes impossible for me to apply a "windowed" query. I reached this conclusion because when I attempted to do so, Oracle gave me an error as I cannot use SDO_FILTER with a geometry (the query result) that has not an index defined for it. Consequently, MapServer will get all elements from the table, and not only those who are within the current extent "view". This should slow the performance a bit, but I dont think it's something you need to worry about. Debasish, this "workaround" should make your problem go away too, in case you decide to try working with Oracle Spatial again. Cheers, Rod. ----- Original Message ----- From: "Brian McKenzie" To: Sent: Friday, December 14, 2001 6:57 PM Subject: Re: [mapserver-users] Blank image generated from oracle spatial layer Hello I seem to be experiancing the some problems. I know this is not a Mapserver issue, now. But since the thread was started here I thought maybe I could get some further insight. I upload my data to Oracle with MapInfo Easy loader. And everything seems fine with Mapinfo, It shows up in Spatial advisor alright. My Stuff: Map Info Easy Loader 6.7 Oracle 8.1.7.0.1 Mapserver3.5 # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 # EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.3061389 EXTENT -180 -90 180 90 UNITS METERS IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "/uO1/Apache/Apache/htdocs/tmp/" IMAGEURL "/tmp/" LOG "demo.log" END # # Start of layer definitions # LAYER NAME "SGIS" TYPE POLYGON STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "mdsys/mdsys at lakeland.scicl.net" DATA "GEOLOC from cnybndpl" END END END #Map File <------------------> I get this in mapserver3.5 <------------------> msOracleSpatialLayerWhichShapes(): OracleSpatial error. ORA-29902: error in executing ODCIIndexStart() routine ORA-13208: internal error while evaluating [window SRID does not match layer SRID] operator ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 84 ORA-06512: at line 1 . SQL statement: SELECT rownum, GEOLOC FROM cnybndpl WHERE SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-180.3 ,-179.7,179.7,180.3) ),'querytype=window') = 'TRUE' <-------------------> If I run the same query in SQL*PLUS i get the same error messages. From all I heve read this would indicate some type of index problem. But ORA-13208 error seems to indicate an SRID problem. If someone could shed some light on this for me & point me in the direction I sure would appreciate it. I have been head bashing for 2 days now ;( Thanks Again Brian McKenzie Stallings Crop Insurance Corp. brian at stallingscrop.com From steve.lime at dnr.state.mn.us Sun Dec 16 19:59:38 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Sun, 16 Dec 2001 21:59:38 -0600 Subject: [mapserver-users] Fwd: MapServer 3.5 Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: "Van Ulden, Joost" Subject: MapServer 3.5 Date: Fri, 14 Dec 2001 20:50:27 -0500 Size: 1466 URL: From trem at socialchange.net.au Sun Dec 16 21:46:10 2001 From: trem at socialchange.net.au (Trem Stamp) Date: Mon, 17 Dec 2001 16:46:10 +1100 Subject: [mapserver-users] Legend symbol rquest using WMS syntax Message-ID: <023501c186be$21dd1610$74010a0a@socialchange.net.au> Hi all, In mapserv 3.5 is there a way of retrieving the symbol for a map layer using WMS syntax? I found an example of a wms request at Cubewerx, which shows an example of the syntax used. http://usl.cubewerx.com/cubestor/cubeserv/cubeserv.cgi?WMTVER=1.0.1&REQUEST=legendicon&LAYER=COASTL_1M:Foundation&SPATIAL_TYPE=LINE&STYLE=0X101040&FORMAT=GIF If anyone has an example url, could they sent me it so I can see the syntax. If this is not available currently, does anyone have any idea if/when it will be? Cheers, Trem -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Maul at bgr.de Mon Dec 17 01:38:05 2001 From: Andreas.Maul at bgr.de (Maul, Andreas-Alexander) Date: Mon, 17 Dec 2001 10:38:05 +0100 Subject: AW: [mapserver-users] Micro-HowTo Display SCALE Message-ID: Hi Steves, it is easy to cut off the scale decimals with some javascripting in the template file, eg.: MapServer HTML Template ... ... Regards, Andreas Maul -----Urspr?ngliche Nachricht----- Von: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Gesendet am: Freitag, 14. Dezember 2001 23:37 An: klehr1 at tampabay.rr.com; MapServer List Betreff: Re: [mapserver-users] Micro-HowTo Display SCALE Steve, I've posted this back to the list, maybe one of the developers can help with this. I thought the number of decimal places was a bit excessive myself :) The only way to trim this up in html would be to write some javascript :( We seem to have a lot of Steves posting to this list! -The other Steve! klehr1 at tampabay.rr.com wrote: > > Thanks for the tip. > > I just tried it out and I got Scale: 1:21600.000000 > > Is there away to tone down the decimals (%.2f) ? > > Not sure if you can do this with Mapserver directly, but maybe you can > format the output in a later release. > > Thanks > Steve Lehr > > ----- Original Message ----- > From: Stephen Woodbridge > To: Twan Kogels > Cc: > Sent: Friday, December 14, 2001 9:26 AM > Subject: [mapserver-users] Micro-HowTo Display SCALE > > > Hi all, > > > > Twan Kogels asked about the values on the MINSCALE and MAXSCALE and how > > they relate to a given map. > > > > Go to your demo.html file and search for "scalebar" then replace that > > line with the following: > > > > > face="arial,helvetica" color="#FFFFFF">1:[scale]   > src="[scalebar]"> > > > > Now just to the left of your scale bar you will have 1:ssssss.ssss where > > ssssss.ssss is the scale of the map at whatever zoom you are at. This is > > in the same units as the valuse on MINSCALE/MAXSCALE > > > > PLEASE, add this to the appropriate documentation as and example. > > > > Hope this helps, > > -Steve From thfischer at mapmedia.de Mon Dec 17 07:40:29 2001 From: thfischer at mapmedia.de (thorsten fischer) Date: 17 Dec 2001 16:40:29 +0100 Subject: [mapserver-users] Fonts with fixed size Message-ID: <1008603634.873.3.camel@grobi> Ladies and gentlemen, Is there a facility in mapserver that allows me to display a font in a fixed size of units, like meters? That means, a label like 'Berlin' has always to be, say, 450m high. This can result in the font covering the whole image if you zoom in too far. thanks for any pointers, 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 morissette at dmsolutions.ca Mon Dec 17 07:10:32 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 17 Dec 2001 10:10:32 -0500 Subject: [mapserver-users] Legend symbol rquest using WMS syntax References: <023501c186be$21dd1610$74010a0a@socialchange.net.au> Message-ID: <3C1E0AE8.38ACA10F@dmsolutions.ca> Hi Trem, No, in the current WMS implementation in MapServer there is nothing to generate legend images... you may want to file this in the MapServer bugzilla as an enhancement request. Maybe you could use the traditional mapserv interface to retrieve a legend for that single layer, but I don't think that you could retrieve legend icons directly. Daniel > Trem Stamp wrote: > > Hi all, > > In mapserv 3.5 is there a way of retrieving the symbol for a map layer > using WMS syntax? I found an example of a wms request at Cubewerx, > which shows an example of the syntax used. > > http://usl.cubewerx.com/cubestor/cubeserv/cubeserv.cgi?WMTVER=1.0.1&REQUEST=legendicon&LAYER=COASTL_1M:Foundation&SPATIAL_TYPE=LINE&STYLE=0X101040&FORMAT=GIF > > If anyone has an example url, could they sent me it so I can see the > syntax. > If this is not available currently, does anyone have any idea if/when > it will be? > > Cheers, > > Trem From morissette at dmsolutions.ca Mon Dec 17 07:18:34 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 17 Dec 2001 10:18:34 -0500 Subject: [mapserver-users] Fonts with fixed size References: <1008603634.873.3.camel@grobi> Message-ID: <3C1E0CCA.CDE5E489@dmsolutions.ca> thorsten fischer wrote: > > Is there a facility in mapserver that allows me to display a font in a > fixed size of units, like meters? That means, a label like 'Berlin' has > always to be, say, 450m high. This can result in the font covering the > whole image if you zoom in too far. > You could do this using SYMBOLSCALE. SYMBOLSCALE is the scale at which your labels appear full size (i.e. using the SIZE setting) and they are resized proportionally to the scale the rest of the time, giving the impression that the label has a fixed size on the ground. You can also use LABELMINSCALE and LABELMAXSCALE to control at which scale your labels start and stop being drawn. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Mon Dec 17 07:45:39 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 17 Dec 2001 09:45:39 -0600 Subject: [mapserver-users] Shape ID in FILTER/CLASS EXPRESSION? Message-ID: 3.5 introduces 2 index query modes (INDEXQUERY and INDEXQUERYMAP). You use the cgi parameters shapeindex and tileindex to identify the feature of interest. Tileindex is use when accessing tiled data. You must also define a qlayer. This feature was added specifically to support instances like you describe, the staged presentation of information. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Armin Burger 12/14/01 17:21 PM >>> Steve, what would be the mode definition for the 'shape by index'? Maybe I can make use of it. My intention is to query the attribute data of a layer and show the found features first in an html table. In one column every found feature has a link with a javascript behind. Clicking on that link the map should be zoomed to the extent of this feature and the feature should be somehow highlighted. But I would like to have this highlight persistant during zooms etc. until I switch it off. With the normal querymap this does not work. So I used your suggestion with an additional query-highlight-layer whose filter/class expressions are set via the url to show only the requested records. For the zoom/highlight to a single feature an internal ID I can pass to the javascript would be optimal. Otherwise I had to create a unique ID in the data or use a field that could serve as that. At the moment I'm highlighting all found features simultaneously and the link does only the zooming to the feature extent. I added this 'Shape ID' feature request to the bugzilla. Armin > No there isn't, but there could be I think. Could you add that to bugzilla > on the main site as a feature request. Note that there IS a special query > mode for retrieving shapes by index. Let me know if you want details... > Steve > Stephen Lime > Data & Applications Manager > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 >>>> Armin Burger 12/13/01 12:02PM >>> > Steve, > my question was, if there's an expression for the *internal* ID of a > shapefile that I can use for the class/filteritem, just like the [shpidx] > for templates. I.e., an item that is no standard visible field of the > attribute table. [shpidx] does just that, but it is the expression for the > templates, and will not work as class/filteritem. > Thanks > Armin From teb at mallit.fr.umn.edu Mon Dec 17 09:08:18 2001 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 17 Dec 2001 11:08:18 -0600 (CST) Subject: [mapserver-users] Map application with 4.0.6 ?? (fwd) Message-ID: <200112171708.LAA23386@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Mon, 17 Dec 2001 17:56:57 +0100 From: Kerstin de Vries User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-DE; rv:0.9.2) Gecko/20010726 Netscape6/6.1 X-Accept-Language: de-DE MIME-Version: 1.0 To: mapserver-info at lists.gis.umn.edu Subject: Map application with 4.0.6 ?? Content-Transfer-Encoding: 8bit Hi! We are absolute beginners in working with the MapServer (3.5 in our case). We are trying to figure out how to use php 4.0.6 as map script. We looked through the archives but weren?t succesful in finding anything helpful. Has anybody already worked with it and has a hint for us or a kind of manual ? We would be thankful for any help. Grit Schuster & Kerstin de Vries kerstin.devries at uni-vechta.de Vechta, Germany ------------- End Forwarded Message ------------- From shussain at atsincorp.com Mon Dec 17 09:30:23 2001 From: shussain at atsincorp.com (Shaik Anwar Hussain) Date: Mon, 17 Dec 2001 12:30:23 -0500 Subject: [mapserver-users] points projection Message-ID: <4D25CDA67110D3119FFB0008C707D7A7051EA1@deathstar> Hi All, Does any one can help me how to do the points projection in to polygonic NAD 83 using php4 mapscript module. Thanks, Hussain From sivib at virgilio.it Mon Dec 17 10:34:00 2001 From: sivib at virgilio.it (=?iso-8859-1?Q?Silvia=20Berti?=) Date: Mon, 17 Dec 2001 18:34:00 +0000 Subject: [mapserver-users] =?iso-8859-1?Q?Interactive=20legend?= Message-ID: <3C15B170000085D3@ims1a.cp.tin.it> I use mapserver 3.4 and I try to do good interface for client with a javascript and i think to create an "interactive legend", where also to see the symbol, i can active layers without another menu; if someone can help me i thank very much!! From thfischer at mapmedia.de Mon Dec 17 11:36:04 2001 From: thfischer at mapmedia.de (thorsten fischer) Date: 17 Dec 2001 20:36:04 +0100 Subject: [mapserver-users] truetype weirdness In-Reply-To: References: Message-ID: <1008617765.1919.9.camel@grobi> You probably received a part of this email twice before I completed it because of my complete unability to use my mail program. I am sorry for any inconvinience caused. Come to think of it, I also feel very sorry for not being able to spell words correctly. Ladies and gentlemen, thanks for your quick answers to my last question, and I will give the suggestions a try. But here I have another thing, and it is about to make me mad by now. I am trying to do the following in an annotation layer: CLASS EXPRESSION /./ LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE # TYPE BITMAP FONT arial SIZE 12 # SIZE SMALL POSITION CR PARTIALS TRUE BUFFER 1 END END The WMS enabled box only returns the following message: msGetLabelSize(): TrueType Font error. Could not find/open font Fontpath is set, the directory exist and is readable. The 'fontlist' file contains valid entries, the .ttf files exist, they are readable as well and are valid truetype font files. clases, labelitems and classitems are properly set up; uncommenting the bitmap font parts above delivers valid results. # mapserv -v MapServer version 3.5 (beta) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Any suggestions? tia, 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 twan at twansoft.com Mon Dec 17 11:50:24 2001 From: twan at twansoft.com (Twan Kogels) Date: Mon, 17 Dec 2001 20:50:24 +0100 Subject: [mapserver-users] Map application with 4.0.6 ?? (fwd) In-Reply-To: <200112171708.LAA23386@mallit.fr.umn.edu> Message-ID: <5.0.0.25.2.20011217204810.03147020@pop3.wish.nl> Teb, Take a look at: http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.html On that page there is a example on how to use mapscript. - Twan At 11:08 17-12-2001 -0600, you wrote: >------------- Begin Forwarded Message ------------- > >Date: Mon, 17 Dec 2001 17:56:57 +0100 >From: Kerstin de Vries >User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-DE; rv:0.9.2) >Gecko/20010726 >Netscape6/6.1 >X-Accept-Language: de-DE >MIME-Version: 1.0 >To: mapserver-info at lists.gis.umn.edu >Subject: Map application with 4.0.6 ?? >Content-Transfer-Encoding: 8bit > >Hi! > >We are absolute beginners in working with the MapServer (3.5 in our case). >We are trying to figure out how to use php 4.0.6 as map script. >We looked through the archives but weren?t succesful in finding anything >helpful. >Has anybody already worked with it and has a hint for us or a kind of >manual ? > >We would be thankful for any help. > >Grit Schuster & Kerstin de Vries > >kerstin.devries at uni-vechta.de >Vechta, Germany > > > >------------- End Forwarded Message ------------- -- http://www.twansoft.com From pkishor at GeoAnalytics.com Mon Dec 17 11:50:02 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 17 Dec 2001 13:50:02 -0600 Subject: [mapserver-users] slightly offtopic -- mapserver forums Message-ID: Stephen, Daniel, others... I have suggested this once before, but here it is again. Would all please consider converting the Mapserver list to a web-based discussion. I love the list, and learn so much from it, however, at times I would like to subscribe to specific threads and read the traffic only on those threads. I would like to search the archives using sql or text search queries, and be able to access all of this from anywhere, not just my computer. Besides the ability to subscribe to specific threads only, the next greatest advantage would be to be able to attach files, such as scripts, code frags, map files, even screenshots, and not have the attachments travel to each and every member of the list. Please, please, please consider this. And if the general consensus is yes, I can do a little bit of scouting to see what freebie software is out there... I know there are Perl-based forums, and there is also Phorum which is PHP based. Thanks, pk/ From adoyle at intl-interfaces.com Mon Dec 17 13:18:07 2001 From: adoyle at intl-interfaces.com (Allan Doyle) Date: Mon, 17 Dec 2001 16:18:07 -0500 Subject: [mapserver-users] slightly offtopic -- mapserver forums References: Message-ID: <3C1E610F.1C764012@intl-interfaces.com> I'll weigh in and support the current setup. I find email delivery integrates far better with how I work than having to look at web based fora. To address a couple of your wishes: you can search the archives for this list at http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users and you'll find the archives there as well. You can browse by date or by thread, in one-month chunks. Allan Puneet Kishor wrote: > > Stephen, Daniel, others... > > I have suggested this once before, but here it is again. Would all please > consider converting the Mapserver list to a web-based discussion. I love the > list, and learn so much from it, however, at times I would like to subscribe > to specific threads and read the traffic only on those threads. I would like > to search the archives using sql or text search queries, and be able to > access all of this from anywhere, not just my computer. Besides the ability > to subscribe to specific threads only, the next greatest advantage would be > to be able to attach files, such as scripts, code frags, map files, even > screenshots, and not have the attachments travel to each and every member of > the list. > > Please, please, please consider this. And if the general consensus is yes, I > can do a little bit of scouting to see what freebie software is out there... > I know there are Perl-based forums, and there is also Phorum which is PHP > based. > > Thanks, > > pk/ -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Allan Doyle http://www.intl-interfaces.com adoyle at intl-interfaces.com From pkishor at GeoAnalytics.com Mon Dec 17 13:31:15 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 17 Dec 2001 15:31:15 -0600 Subject: [mapserver-users] slightly offtopic -- mapserver forums Message-ID: Hmmmm... I knew there would be detractors, but I didn't expect the voice of dissent so soon. :-) Well, here's some responses Allan -- > > Allan > > I'll weigh in and support the current setup. I find email delivery > integrates far better with how I work than having to look at web based > fora. fine then... subcribe to the threads and have the discussion software send you an email. > > To address a couple of your wishes: you can search the > archives for this > list at http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users and > you'll find the archives there as well. You can browse by date or by > thread, in one-month chunks. I know. I've done that. And it sucks. That said, how do I do the following with the current setup -- 1. Get emails only on a particular thread (most impt) ? 2. If I am following the thread by searching the archives (as suggested above), then how do I post to the thread -- I can't post unless I am subscribed, and as soon as I subscribe I am back to problem #1 above. 3. How do I access my emails when I am away from my computer (I am assuming not everyone has IMAP)? 4. And (2nd most impt. after #1 above) how do I send an attachment for a few folks to view without having it broadcast to all 4 million (last count) Mapserver users :-)? I understand not everyone is gonna like the web way of doing forums. I do think it has some major advantages over the old listserv way. Let's all weigh in (or forever hold your piece, etc.) Cheers, pk/ > Puneet Kishor wrote: > > > > Stephen, Daniel, others... > > > > I have suggested this once before, but here it is again. > Would all please > > consider converting the Mapserver list to a web-based > discussion. I love the > > list, and learn so much from it, however, at times I would > like to subscribe > > to specific threads and read the traffic only on those > threads. I would like > > to search the archives using sql or text search queries, > and be able to > > access all of this from anywhere, not just my computer. > Besides the ability > > to subscribe to specific threads only, the next greatest > advantage would be > > to be able to attach files, such as scripts, code frags, > map files, even > > screenshots, and not have the attachments travel to each > and every member of > > the list. > > > > Please, please, please consider this. And if the general > consensus is yes, I > > can do a little bit of scouting to see what freebie > software is out there... > > I know there are Perl-based forums, and there is also > Phorum which is PHP > > based. > > > > Thanks, > > > > pk/ > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Allan Doyle http://www.intl-interfaces.com > adoyle at intl-interfaces.com > From morissette at dmsolutions.ca Mon Dec 17 14:12:49 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 17 Dec 2001 17:12:49 -0500 Subject: [mapserver-users] slightly offtopic -- mapserver forums References: Message-ID: <3C1E6DE1.5FDFD7DE@dmsolutions.ca> Puneet Kishor wrote: > > Hmmmm... I knew there would be detractors, but I didn't expect the voice of > dissent so soon. :-) > I was waiting quietly in the hope that there would be more supporters of the web option to consider their arguments... but since you ask... ;) ... I vote for keeping an Email-based list (just like I did last time this question came up)... I *never* have time to browse the web for interesting threads to read... so if it doesn't fall in my Inbox then I'll never know that an issue came up. This being said, if you want to mirror the list on the web somewhere with a better archive then I'm with you on that, but the basic concept has to remain IMHO: there has to be a 100% Email service for those who prefer that. > > > > To address a couple of your wishes: you can search the > > archives for this > > list at http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users and > > you'll find the archives there as well. You can browse by date or by > > thread, in one-month chunks. > > I know. I've done that. And it sucks. > I agree with the need for a better archive and search engine. But that can be done without changing the current Email-based system and could address most of the needs that you expressed. You could even host this secondary archive yourself without even telling UMN if you wanted. > That said, how do I do the following with the current setup -- > > 1. Get emails only on a particular thread (most impt) ? But how do you learn about that thread in the first place? Most threads on the MapServer list are 2 or 3 messages long at max, so by the time you subscribe then it's over. > 2. If I am following the thread by searching the archives (as suggested > above), then how do I post to the thread -- I can't post unless I am > subscribed, and as soon as I subscribe I am back to problem #1 above. The requirement to subscribe in order to be allowed to post was added in order to limit SPAM AFAIK. If you switch to a system where you can post by Email in a specific thread (you suggested that in your reply to Allan) then you're back with the SPAM problem. More limited maybe, but the potential for SPAM comes back. > 3. How do I access my emails when I am away from my computer (I am assuming > not everyone has IMAP)? You can always browse the web archives... > 4. And (2nd most impt. after #1 above) how do I send an attachment for a few > folks to view without having it broadcast to all 4 million (last count) > Mapserver users :-)? > How about sending a personal Email to those individuals with just the attachment in parallel to the list message? > I understand not everyone is gonna like the web way of doing forums. I do > think it has some major advantages over the old listserv way. > I guess I'm old then... and probably getting stubborn too! ;) -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Regina.Obe.PFD at ci.boston.ma.us Mon Dec 17 14:13:52 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Mon, 17 Dec 2001 17:13:52 -0500 Subject: [mapserver-users] Is there a limitation on the mapsize in mapserv 3.5 Message-ID: If I try to specify a mapsize that is greater than 1000 pixels x 1000 pixels, mapserv comes back with an error that the image size is too big. I was wondering if this was a limitation in the operating system or a limitation enforced within the mapserv code. From pkishor at GeoAnalytics.com Mon Dec 17 14:22:57 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 17 Dec 2001 16:22:57 -0600 Subject: [mapserver-users] slightly offtopic -- mapserver forums Message-ID: man... so this is it... Puneet versus the rest of the world :-). Ok, here goes -- > -----Original Message----- > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > > > ... I vote for keeping an Email-based list (just like I did last time > this question came up)... I *never* have time to browse the web for > interesting threads to read... so if it doesn't fall in my Inbox then > I'll never know that an issue came up. > The fact that I get a slew of emails from the Mapserver list make my life more chaotic than if I were to make a conscious decision to go to the website and read the messages. A web-based forum would be even more crucial for someone pressed for time. Specifically, wrt "so if it doesn't fall in my Inbox then I'll never know that an issue came up" -- just set aside some time to periodically scan different threads. Alternatively, (and additionally), flag the threads that you want to follow and have the web server automatically email you the new messages. That way you can choose to read them in your email box without ever having to go to the web. > This being said, if you want to mirror the list on the web somewhere > with a better archive then I'm with you on that, but the basic concept > has to remain IMHO: there has to be a 100% Email service for those who > prefer that. Sure thing. As I fully expect, not everyone will want a specific way. Having a choice would accommodate everyone. > > > That said, how do I do the following with the current setup -- > > > > 1. Get emails only on a particular thread (most impt) ? > > But how do you learn about that thread in the first place? > Most threads > on the MapServer list are 2 or 3 messages long at max, so by the time > you subscribe then it's over. Except, most threads on the Mapserver list are repeats ad infitum. There are about a thousand threads everyday asking how to turn the legend on/off, or how to include the PHPlib, or how to create a symbol, et al. In any case, as I mentioned above (at least this is what I do), set aside a little time, get a cup of your favorite blend, and scan through the recent messages everyday. Find a thread interesting? -- pitch in, or flag it for emails. > > > 2. If I am following the thread by searching the archives > (as suggested > > above), then how do I post to the thread -- I can't post unless I am > > subscribed, and as soon as I subscribe I am back to problem > #1 above. > > The requirement to subscribe in order to be allowed to post > was added in > order to limit SPAM AFAIK. If you switch to a system where > you can post > by Email in a specific thread (you suggested that in your reply to > Allan) then you're back with the SPAM problem. More limited > maybe, but > the potential for SPAM comes back. nope... the forum would require a login as well. Spammers get a hefty Doc Martens in their arse, while us nice guys continue monitoring and yakking to our heart's content. > > > 4. And (2nd most impt. after #1 above) how do I send an > attachment for a few > > folks to view without having it broadcast to all 4 million > (last count) > > Mapserver users :-)? > > > > How about sending a personal Email to those individuals with just the > attachment in parallel to the list message? well said, except folks don't usually follow this... I have a few word documents in my Mapserver emails that I simply didn't care to open. Keeping them on the server insures no one gets it unless they want it. The choice is back in the hands of the proletariat. > > > I understand not everyone is gonna like the web way of > doing forums. I do > > think it has some major advantages over the old listserv way. > > > > I guess I'm old then... and probably getting stubborn too! ;) > Shucks, Daniel. That is not what Darwin had in mind. Here I am rapidly growing younger and even getting into AOL IM with a little help from my 13 yr old daughter. All it takes is a phone call and an open mind (to misquote Sister Cleo). I hope others weigh in too. Otherwise methinks my voice is gonna get drowned here rapidly. web forum is already trailing email list 2-1. pk/ From nhv at cape.com Mon Dec 17 14:52:00 2001 From: nhv at cape.com (Norman Vine) Date: Mon, 17 Dec 2001 17:52:00 -0500 Subject: [mapserver-users] slightly offtopic -- mapserver forums In-Reply-To: <3C1E6DE1.5FDFD7DE@dmsolutions.ca> Message-ID: <002501c1874d$71258380$a300a8c0@nhv> Daniel Morissette writes: > >Puneet Kishor wrote: >> >> Hmmmm... I knew there would be detractors, but I didn't >> expect the voice of dissent so soon. :-) >> > >I was waiting quietly in the hope that there would be more >supporters of >the web option to consider their arguments... but since you ask... ;) > >... I vote for keeping an Email-based list (just like I did last time >this question came up)... I *never* have time to browse the web for >interesting threads to read... so if it doesn't fall in my Inbox then >I'll never know that an issue came up. > >This being said, if you want to mirror the list on the web somewhere >with a better archive then I'm with you on that, but the basic concept >has to remain IMHO: there has to be a 100% Email service for those who >prefer that. Hear Hear !! My sentiments exactly !!!! Cheers Norman From JohnHockaday at auslig.gov.au Mon Dec 17 15:02:22 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Tue, 18 Dec 2001 10:02:22 +1100 Subject: [mapserver-users] slightly offtopic -- mapserver forums Message-ID: <53273E187450D311ACF6009027927B1202C7AF5E@smtpgate.auslig.gov.au> I agree with Daniel. I wouldn't look at the web pages but I do look at emails. Please keep the email list. John > -----Original Message----- > From: Daniel Morissette [SMTP:morissette at dmsolutions.ca] > Sent: Tuesday, December 18, 2001 9:13 AM > To: Puneet Kishor > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] slightly offtopic -- mapserver forums > > Puneet Kishor wrote: > > > > Hmmmm... I knew there would be detractors, but I didn't expect the voice > of > > dissent so soon. :-) > > > > I was waiting quietly in the hope that there would be more supporters of > the web option to consider their arguments... but since you ask... ;) > > ... I vote for keeping an Email-based list (just like I did last time > this question came up)... I *never* have time to browse the web for > interesting threads to read... so if it doesn't fall in my Inbox then > I'll never know that an issue came up. > > This being said, if you want to mirror the list on the web somewhere > with a better archive then I'm with you on that, but the basic concept > has to remain IMHO: there has to be a 100% Email service for those who > prefer that. > > > > > > > > To address a couple of your wishes: you can search the > > > archives for this > > > list at http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users and > > > you'll find the archives there as well. You can browse by date or by > > > thread, in one-month chunks. > > > > I know. I've done that. And it sucks. > > > > I agree with the need for a better archive and search engine. But that > can be done without changing the current Email-based system and could > address most of the needs that you expressed. You could even host this > secondary archive yourself without even telling UMN if you wanted. > > > > That said, how do I do the following with the current setup -- > > > > 1. Get emails only on a particular thread (most impt) ? > > But how do you learn about that thread in the first place? Most threads > on the MapServer list are 2 or 3 messages long at max, so by the time > you subscribe then it's over. > > > 2. If I am following the thread by searching the archives (as suggested > > above), then how do I post to the thread -- I can't post unless I am > > subscribed, and as soon as I subscribe I am back to problem #1 above. > > The requirement to subscribe in order to be allowed to post was added in > order to limit SPAM AFAIK. If you switch to a system where you can post > by Email in a specific thread (you suggested that in your reply to > Allan) then you're back with the SPAM problem. More limited maybe, but > the potential for SPAM comes back. > > > 3. How do I access my emails when I am away from my computer (I am > assuming > > not everyone has IMAP)? > > You can always browse the web archives... > > > 4. And (2nd most impt. after #1 above) how do I send an attachment for a > few > > folks to view without having it broadcast to all 4 million (last count) > > Mapserver users :-)? > > > > How about sending a personal Email to those individuals with just the > attachment in parallel to the list message? > > > I understand not everyone is gonna like the web way of doing forums. I > do > > think it has some major advantages over the old listserv way. > > > > I guess I'm old then... and probably getting stubborn too! ;) > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Mon Dec 17 14:55:35 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 17 Dec 2001 16:55:35 -0600 Subject: [mapserver-users] Is there a limitation on the mapsize in mapserv 3.5 Message-ID: It's in the code (has been for many a version). It's to keep folks from requesting huge images and hanging a server. What would be a better limit? Current is 1K... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Obe, Regina DND\MIS" 12/17/01 16:18 PM >>> If I try to specify a mapsize that is greater than 1000 pixels x 1000 pixels, mapserv comes back with an error that the image size is too big. I was wondering if this was a limitation in the operating system or a limitation enforced within the mapserv code. From steve.lime at dnr.state.mn.us Mon Dec 17 14:52:19 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 17 Dec 2001 16:52:19 -0600 Subject: [mapserver-users] slightly offtopic -- mapserver forums Message-ID: If I had to vote for one I'd stick with the mailing list if for no other reason that it keeps me involved. Because I rely on email so much the mailing list allows for fairly quick responses to questions. That would certainly suffer without the list. The web client sucks, I agree. There have got to be better implementations out there. Perhaps a hosted list that provided a better web client... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Puneet Kishor 12/17/01 16:32 PM >>> man... so this is it... Puneet versus the rest of the world :-). Ok, here goes -- > -----Original Message----- > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > > > ... I vote for keeping an Email-based list (just like I did last time > this question came up)... I *never* have time to browse the web for > interesting threads to read... so if it doesn't fall in my Inbox then > I'll never know that an issue came up. > The fact that I get a slew of emails from the Mapserver list make my life more chaotic than if I were to make a conscious decision to go to the website and read the messages. A web-based forum would be even more crucial for someone pressed for time. Specifically, wrt "so if it doesn't fall in my Inbox then I'll never know that an issue came up" -- just set aside some time to periodically scan different threads. Alternatively, (and additionally), flag the threads that you want to follow and have the web server automatically email you the new messages. That way you can choose to read them in your email box without ever having to go to the web. > This being said, if you want to mirror the list on the web somewhere > with a better archive then I'm with you on that, but the basic concept > has to remain IMHO: there has to be a 100% Email service for those who > prefer that. Sure thing. As I fully expect, not everyone will want a specific way. Having a choice would accommodate everyone. > > > That said, how do I do the following with the current setup -- > > > > 1. Get emails only on a particular thread (most impt) ? > > But how do you learn about that thread in the first place? > Most threads > on the MapServer list are 2 or 3 messages long at max, so by the time > you subscribe then it's over. Except, most threads on the Mapserver list are repeats ad infitum. There are about a thousand threads everyday asking how to turn the legend on/off, or how to include the PHPlib, or how to create a symbol, et al. In any case, as I mentioned above (at least this is what I do), set aside a little time, get a cup of your favorite blend, and scan through the recent messages everyday. Find a thread interesting? -- pitch in, or flag it for emails. > > > 2. If I am following the thread by searching the archives > (as suggested > > above), then how do I post to the thread -- I can't post unless I am > > subscribed, and as soon as I subscribe I am back to problem > #1 above. > > The requirement to subscribe in order to be allowed to post > was added in > order to limit SPAM AFAIK. If you switch to a system where > you can post > by Email in a specific thread (you suggested that in your reply to > Allan) then you're back with the SPAM problem. More limited > maybe, but > the potential for SPAM comes back. nope... the forum would require a login as well. Spammers get a hefty Doc Martens in their arse, while us nice guys continue monitoring and yakking to our heart's content. > > > 4. And (2nd most impt. after #1 above) how do I send an > attachment for a few > > folks to view without having it broadcast to all 4 million > (last count) > > Mapserver users :-)? > > > > How about sending a personal Email to those individuals with just the > attachment in parallel to the list message? well said, except folks don't usually follow this... I have a few word documents in my Mapserver emails that I simply didn't care to open. Keeping them on the server insures no one gets it unless they want it. The choice is back in the hands of the proletariat. > > > I understand not everyone is gonna like the web way of > doing forums. I do > > think it has some major advantages over the old listserv way. > > > > I guess I'm old then... and probably getting stubborn too! ;) > Shucks, Daniel. That is not what Darwin had in mind. Here I am rapidly growing younger and even getting into AOL IM with a little help from my 13 yr old daughter. All it takes is a phone call and an open mind (to misquote Sister Cleo). I hope others weigh in too. Otherwise methinks my voice is gonna get drowned here rapidly. web forum is already trailing email list 2-1. pk/ From nhv at cape.com Mon Dec 17 15:23:53 2001 From: nhv at cape.com (Norman Vine) Date: Mon, 17 Dec 2001 18:23:53 -0500 Subject: [mapserver-users] slightly offtopic -- mapserver forums In-Reply-To: Message-ID: <002601c18751$e549bc00$a300a8c0@nhv> Puneet Kishor writes: > >man... so this is it... Puneet versus the rest of the world >:-). Ok, here >goes -- No need to feel like 'Don Quijote' :-) We all want better tools ! I just haven't seen a web based conferencing system that IMHO is any where as responsive as good old email FWIW google a mapserver query and add 'site:gis.umn.edu' with out the quotes for example http://www.google.com/search?hl=en&q=%27bout+mapserver%27s+future+site%3Agis .umn.edu Cheers Norman From morissette at dmsolutions.ca Mon Dec 17 15:30:59 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 17 Dec 2001 18:30:59 -0500 Subject: [mapserver-users] slightly offtopic -- mapserver forums References: Message-ID: <3C1E8033.50667309@dmsolutions.ca> Puneet Kishor wrote: > > man... so this is it... Puneet versus the rest of the world :-). Ok, here > goes -- As I'm writing this it's already 5-1 for the Email list... but it's not all lost since everyone also agrees with getting a better web-based archive and search engine... I know all about the "coolness-factor" associated with web-based tools and you wouldn't believe how many web-based tools we use (and even developed in-house) at DM Solutions... and I'm the first one to push them, *except* when it comes to discussion forums where Email is waayyyyyy more efficient in my opinion... it takes only a fraction of a second to delete unwanted Emails... but at least 10 seconds to get to a message on the web (click-click-click, wait 3-5 seconds per page, that's 12 seconds already!) However, I can appreciate the fact that there is quite a bit of traffic on the mapserver-users list and this can be a problem for someone who is only interested by specific issues. Daily digests are great for that... unfortunately this list doesn't offer that service (or didn't last time I checked)... Could someone at UMN please add daily digests on our Christmas list? -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From woodbri at swoodbridge.com Mon Dec 17 15:49:34 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 17 Dec 2001 18:49:34 -0500 Subject: [mapserver-users] slightly offtopic -- mapserver forums References: <3C1E6DE1.5FDFD7DE@dmsolutions.ca> Message-ID: <3C1E848E.760F59C0@swoodbridge.com> I'll way in with Dan. Keep the email, if it is possible to enhance the archive so it is like a web based system then that OK with me. BTW, you don't have to "search" the archive you can also browse it by threads. Part of the restrictions on posting is to keep the spam down, I am assuming that that is handled as well on the web based systems? Also, does this majordomo have a mode like "no-mail" where you are subscribed but don't get any mail? If it does then you can be sub'd and not get mail, browse the archives, and still post email to the list. I know it is not what you want Puneet, but it might be better than what you have today. - Just a thought. -Steve Daniel Morissette wrote: > > Puneet Kishor wrote: > > > > Hmmmm... I knew there would be detractors, but I didn't expect the voice of > > dissent so soon. :-) > > > > I was waiting quietly in the hope that there would be more supporters of > the web option to consider their arguments... but since you ask... ;) > > ... I vote for keeping an Email-based list (just like I did last time > this question came up)... I *never* have time to browse the web for > interesting threads to read... so if it doesn't fall in my Inbox then > I'll never know that an issue came up. > > This being said, if you want to mirror the list on the web somewhere > with a better archive then I'm with you on that, but the basic concept > has to remain IMHO: there has to be a 100% Email service for those who > prefer that. > > > > > > > To address a couple of your wishes: you can search the > > > archives for this > > > list at http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users and > > > you'll find the archives there as well. You can browse by date or by > > > thread, in one-month chunks. > > > > I know. I've done that. And it sucks. > > > > I agree with the need for a better archive and search engine. But that > can be done without changing the current Email-based system and could > address most of the needs that you expressed. You could even host this > secondary archive yourself without even telling UMN if you wanted. > > > That said, how do I do the following with the current setup -- > > > > 1. Get emails only on a particular thread (most impt) ? > > But how do you learn about that thread in the first place? Most threads > on the MapServer list are 2 or 3 messages long at max, so by the time > you subscribe then it's over. > > > 2. If I am following the thread by searching the archives (as suggested > > above), then how do I post to the thread -- I can't post unless I am > > subscribed, and as soon as I subscribe I am back to problem #1 above. > > The requirement to subscribe in order to be allowed to post was added in > order to limit SPAM AFAIK. If you switch to a system where you can post > by Email in a specific thread (you suggested that in your reply to > Allan) then you're back with the SPAM problem. More limited maybe, but > the potential for SPAM comes back. > > > 3. How do I access my emails when I am away from my computer (I am assuming > > not everyone has IMAP)? > > You can always browse the web archives... > > > 4. And (2nd most impt. after #1 above) how do I send an attachment for a few > > folks to view without having it broadcast to all 4 million (last count) > > Mapserver users :-)? > > > > How about sending a personal Email to those individuals with just the > attachment in parallel to the list message? > > > I understand not everyone is gonna like the web way of doing forums. I do > > think it has some major advantages over the old listserv way. > > > > I guess I'm old then... and probably getting stubborn too! ;) > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Mon Dec 17 16:06:16 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 17 Dec 2001 19:06:16 -0500 Subject: [mapserver-users] truetype weirdness References: <1008617765.1919.9.camel@grobi> Message-ID: <3C1E8878.4A67F810@dmsolutions.ca> thorsten fischer wrote: > > The WMS enabled box only returns the following message: > > > msGetLabelSize(): TrueType Font error. Could not find/open font > > > Fontpath is set, the directory exist and is readable. The 'fontlist' > file contains valid entries, the .ttf files exist, they are readable as > well and are valid truetype font files. clases, labelitems and > classitems are properly set up; uncommenting the bitmap font parts above > delivers valid results. > > # mapserv -v > MapServer version 3.5 (beta) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 > INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Any suggestions? > Did you recompile your own GD on a system that already came with GD preloaded in the system libs by any chance? One possible explanation for this problem could be that your MapServer was compiled and linked with a copy of GD, but at runtime it's another copy that gets picked, the two copies of GD having been compiled with different versions of freetype. You might want to use 'ldd mapserv' to double-check that the right copy of gd and of the supporting freetype get picked. That's the best I can think of... this really looks like a system configuration issue. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pkishor at GeoAnalytics.com Mon Dec 17 15:59:55 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 17 Dec 2001 17:59:55 -0600 Subject: [mapserver-users] slightly offtopic -- mapserver forums Message-ID: ok... no need for any more votes. I admit defeat. Now, I go back to my previously televised web program. pk/ > -----Original Message----- > From: Hockaday, John [mailto:JohnHockaday at auslig.gov.au] > Sent: Monday, December 17, 2001 5:02 PM > To: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] slightly offtopic -- mapserver forums > > > I agree with Daniel. I wouldn't look at the web pages but I > do look at > emails. > > Please keep the email list. > > John > > > -----Original Message----- > > From: Daniel Morissette [SMTP:morissette at dmsolutions.ca] > > Sent: Tuesday, December 18, 2001 9:13 AM > > To: Puneet Kishor > > Cc: mapserver-users at lists.gis.umn.edu > > Subject: Re: [mapserver-users] slightly offtopic -- > mapserver forums > > > > Puneet Kishor wrote: > > > > > > Hmmmm... I knew there would be detractors, but I didn't > expect the voice > > of > > > dissent so soon. :-) > > > > > > > I was waiting quietly in the hope that there would be more > supporters of > > the web option to consider their arguments... but since you > ask... ;) > > > > ... I vote for keeping an Email-based list (just like I did > last time > > this question came up)... I *never* have time to browse the web for > > interesting threads to read... so if it doesn't fall in my > Inbox then > > I'll never know that an issue came up. > > > > This being said, if you want to mirror the list on the web somewhere > > with a better archive then I'm with you on that, but the > basic concept > > has to remain IMHO: there has to be a 100% Email service > for those who > > prefer that. > > > > > > > > > > > > To address a couple of your wishes: you can search the > > > > archives for this > > > > list at > http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users and > > > > you'll find the archives there as well. You can browse > by date or by > > > > thread, in one-month chunks. > > > > > > I know. I've done that. And it sucks. > > > > > > > I agree with the need for a better archive and search > engine. But that > > can be done without changing the current Email-based system > and could > > address most of the needs that you expressed. You could > even host this > > secondary archive yourself without even telling UMN if you wanted. > > > > > > > That said, how do I do the following with the current setup -- > > > > > > 1. Get emails only on a particular thread (most impt) ? > > > > But how do you learn about that thread in the first place? > Most threads > > on the MapServer list are 2 or 3 messages long at max, so > by the time > > you subscribe then it's over. > > > > > 2. If I am following the thread by searching the archives > (as suggested > > > above), then how do I post to the thread -- I can't post > unless I am > > > subscribed, and as soon as I subscribe I am back to > problem #1 above. > > > > The requirement to subscribe in order to be allowed to post > was added in > > order to limit SPAM AFAIK. If you switch to a system where > you can post > > by Email in a specific thread (you suggested that in your reply to > > Allan) then you're back with the SPAM problem. More > limited maybe, but > > the potential for SPAM comes back. > > > > > 3. How do I access my emails when I am away from my computer (I am > > assuming > > > not everyone has IMAP)? > > > > You can always browse the web archives... > > > > > 4. And (2nd most impt. after #1 above) how do I send an > attachment for a > > few > > > folks to view without having it broadcast to all 4 > million (last count) > > > Mapserver users :-)? > > > > > > > How about sending a personal Email to those individuals > with just the > > attachment in parallel to the list message? > > > > > I understand not everyone is gonna like the web way of > doing forums. I > > do > > > think it has some major advantages over the old listserv way. > > > > > > > I guess I'm old then... and probably getting stubborn too! ;) > > > > -- > > ------------------------------------------------------------ > > Daniel Morissette morissette at dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > > ------------------------------------------------------------ > > Don't put for tomorrow what you can do today, because if > > you enjoy it today you can do it again tomorrow. > From mi.ro at iol.it Mon Dec 17 15:58:09 2001 From: mi.ro at iol.it (Roberto Micarelli) Date: Tue, 18 Dec 2001 00:58:09 +0100 Subject: [mapserver-users] thread safe Message-ID: <01121800580900.00241@imobile> Hi all, does anybody had the needle of calling ms C API from a multithreaded application? Is libmap.a at least in part thread safe? Maybe accepting not to use the map file parser? Regards. Roberto From ehillmuth at digitalmeridian.net Mon Dec 17 16:21:56 2001 From: ehillmuth at digitalmeridian.net (Eric Hillmuth) Date: Mon, 17 Dec 2001 17:21:56 -0700 Subject: [mapserver-users] slightly offtopic -- mapserver forums Message-ID: <3C1E8C24.5010304@digitalmeridian.net> A few of the mailing lists I follow have moved onto Yahoo Groups. One can access the discussions from either the web or email and upload files, images etc. The downside of such a setup of course is that folks are dependent on an internet startup as our only means of community / tech support for a particular piece of software. -- Eric Hillmuth Principal Digital Meridian http://www.digitalmeridian.net Phone: 303-809-8972 Fax: 303-443-9427 Hockaday, John wrote: >I agree with Daniel. I wouldn't look at the web pages but I do look at >emails. > >Please keep the email list. > >John > >>-----Original Message----- >>From: Daniel Morissette [SMTP:morissette at dmsolutions.ca] >>Sent: Tuesday, December 18, 2001 9:13 AM >>To: Puneet Kishor >>Cc: mapserver-users at lists.gis.umn.edu >>Subject: Re: [mapserver-users] slightly offtopic -- mapserver forums >> >>Puneet Kishor wrote: >> >>>Hmmmm... I knew there would be detractors, but I didn't expect the voice >>> >>of >> >>>dissent so soon. :-) >>> >>I was waiting quietly in the hope that there would be more supporters of >>the web option to consider their arguments... but since you ask... ;) >> >>... I vote for keeping an Email-based list (just like I did last time >>this question came up)... I *never* have time to browse the web for >>interesting threads to read... so if it doesn't fall in my Inbox then >>I'll never know that an issue came up. >> >>This being said, if you want to mirror the list on the web somewhere >>with a better archive then I'm with you on that, but the basic concept >>has to remain IMHO: there has to be a 100% Email service for those who >>prefer that. >> >> >>>>To address a couple of your wishes: you can search the >>>>archives for this >>>>list at http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users and >>>>you'll find the archives there as well. You can browse by date or by >>>>thread, in one-month chunks. >>>> >>>I know. I've done that. And it sucks. >>> >>I agree with the need for a better archive and search engine. But that >>can be done without changing the current Email-based system and could >>address most of the needs that you expressed. You could even host this >>secondary archive yourself without even telling UMN if you wanted. >> >> >>>That said, how do I do the following with the current setup -- >>> >>>1. Get emails only on a particular thread (most impt) ? >>> >>But how do you learn about that thread in the first place? Most threads >>on the MapServer list are 2 or 3 messages long at max, so by the time >>you subscribe then it's over. >> >>>2. If I am following the thread by searching the archives (as suggested >>>above), then how do I post to the thread -- I can't post unless I am >>>subscribed, and as soon as I subscribe I am back to problem #1 above. >>> >>The requirement to subscribe in order to be allowed to post was added in >>order to limit SPAM AFAIK. If you switch to a system where you can post >>by Email in a specific thread (you suggested that in your reply to >>Allan) then you're back with the SPAM problem. More limited maybe, but >>the potential for SPAM comes back. >> >>>3. How do I access my emails when I am away from my computer (I am >>> >>assuming >> >>>not everyone has IMAP)? >>> >>You can always browse the web archives... >> >>>4. And (2nd most impt. after #1 above) how do I send an attachment for a >>> >>few >> >>>folks to view without having it broadcast to all 4 million (last count) >>>Mapserver users :-)? >>> >>How about sending a personal Email to those individuals with just the >>attachment in parallel to the list message? >> >>>I understand not everyone is gonna like the web way of doing forums. I >>> >>do >> >>>think it has some major advantages over the old listserv way. >>> >>I guess I'm old then... and probably getting stubborn too! ;) >> >>-- >>------------------------------------------------------------ >> Daniel Morissette morissette at dmsolutions.ca >> DM Solutions Group http://www.dmsolutions.ca/ >>------------------------------------------------------------ >> Don't put for tomorrow what you can do today, because if >> you enjoy it today you can do it again tomorrow. >> > From pkishor at GeoAnalytics.com Mon Dec 17 16:44:06 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 17 Dec 2001 18:44:06 -0600 Subject: [mapserver-users] slightly offtopic -- mapserver forums Message-ID: sorry... one last bit, and then I will shut up. For those suspicious or not convinced about web-based forums -- while I understand that there might be really sucky web-based forums (and there are really sucky email listserv archives as well ;-) ), I recommend the following two that I really enjoy and benefit from -- forums.allaire.com (for Macromedia's Cold Fusion -- based on CF) discussions.info.apple.com (based on WebCrossing's WebX) try them if you are CF or MacOS X inclined. You might see some benefit. Thanks all. pk/ > -----Original Message----- > From: Puneet Kishor > Sent: Monday, December 17, 2001 6:00 PM > To: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] slightly offtopic -- mapserver forums > > > ok... no need for any more votes. I admit defeat. Now, I go > back to my previously televised web program. > > pk/ > > > > -----Original Message----- > > From: Hockaday, John [mailto:JohnHockaday at auslig.gov.au] > > Sent: Monday, December 17, 2001 5:02 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: RE: [mapserver-users] slightly offtopic -- mapserver forums > > > > > > I agree with Daniel. I wouldn't look at the web pages but I > > do look at > > emails. > > > > Please keep the email list. > > > > John > > > > > -----Original Message----- > > > From: Daniel Morissette [SMTP:morissette at dmsolutions.ca] > > > Sent: Tuesday, December 18, 2001 9:13 AM > > > To: Puneet Kishor > > > Cc: mapserver-users at lists.gis.umn.edu > > > Subject: Re: [mapserver-users] slightly offtopic -- > > mapserver forums > > > > > > Puneet Kishor wrote: > > > > > > > > Hmmmm... I knew there would be detractors, but I didn't > > expect the voice > > > of > > > > dissent so soon. :-) > > > > > > > > > > I was waiting quietly in the hope that there would be more > > supporters of > > > the web option to consider their arguments... but since you > > ask... ;) > > > > > > ... I vote for keeping an Email-based list (just like I did > > last time > > > this question came up)... I *never* have time to browse > the web for > > > interesting threads to read... so if it doesn't fall in my > > Inbox then > > > I'll never know that an issue came up. > > > > > > This being said, if you want to mirror the list on the > web somewhere > > > with a better archive then I'm with you on that, but the > > basic concept > > > has to remain IMHO: there has to be a 100% Email service > > for those who > > > prefer that. > > > > > > > > > > > > > > > > To address a couple of your wishes: you can search the > > > > > archives for this > > > > > list at > > http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users and > > > > > you'll find the archives there as well. You can browse > > by date or by > > > > > thread, in one-month chunks. > > > > > > > > I know. I've done that. And it sucks. > > > > > > > > > > I agree with the need for a better archive and search > > engine. But that > > > can be done without changing the current Email-based system > > and could > > > address most of the needs that you expressed. You could > > even host this > > > secondary archive yourself without even telling UMN if you wanted. > > > > > > > > > > That said, how do I do the following with the current setup -- > > > > > > > > 1. Get emails only on a particular thread (most impt) ? > > > > > > But how do you learn about that thread in the first place? > > Most threads > > > on the MapServer list are 2 or 3 messages long at max, so > > by the time > > > you subscribe then it's over. > > > > > > > 2. If I am following the thread by searching the archives > > (as suggested > > > > above), then how do I post to the thread -- I can't post > > unless I am > > > > subscribed, and as soon as I subscribe I am back to > > problem #1 above. > > > > > > The requirement to subscribe in order to be allowed to post > > was added in > > > order to limit SPAM AFAIK. If you switch to a system where > > you can post > > > by Email in a specific thread (you suggested that in your reply to > > > Allan) then you're back with the SPAM problem. More > > limited maybe, but > > > the potential for SPAM comes back. > > > > > > > 3. How do I access my emails when I am away from my > computer (I am > > > assuming > > > > not everyone has IMAP)? > > > > > > You can always browse the web archives... > > > > > > > 4. And (2nd most impt. after #1 above) how do I send an > > attachment for a > > > few > > > > folks to view without having it broadcast to all 4 > > million (last count) > > > > Mapserver users :-)? > > > > > > > > > > How about sending a personal Email to those individuals > > with just the > > > attachment in parallel to the list message? > > > > > > > I understand not everyone is gonna like the web way of > > doing forums. I > > > do > > > > think it has some major advantages over the old listserv way. > > > > > > > > > > I guess I'm old then... and probably getting stubborn too! ;) > > > > > > -- > > > ------------------------------------------------------------ > > > Daniel Morissette morissette at dmsolutions.ca > > > DM Solutions Group http://www.dmsolutions.ca/ > > > ------------------------------------------------------------ > > > Don't put for tomorrow what you can do today, because if > > > you enjoy it today you can do it again tomorrow. > > > From ed at topozone.com Mon Dec 17 17:16:30 2001 From: ed at topozone.com (Ed McNierney) Date: Mon, 17 Dec 2001 20:16:30 -0500 Subject: [mapserver-users] Is there a limitation on the mapsize in mapserv 3.5 Message-ID: <13858AA1A74F30419F319ACB66A9D1220E79D4@mercator.topozone.com> Regina - Look at the value MAXIMGSIZE that's defined right at the top of mapserv.h - you can change it to whatever maximum you want and recompile. Remember that you might run into file format size limitations. Because I have other ways to restrict image size, and because I sometimes use MapServer to generate very large images, I use a value of 16383 for MAXIMGSIZE. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Obe, Regina DND\MIS [mailto:Regina.Obe.PFD at ci.boston.ma.us] Sent: Monday, December 17, 2001 5:14 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Is there a limitation on the mapsize in mapserv 3.5 If I try to specify a mapsize that is greater than 1000 pixels x 1000 pixels, mapserv comes back with an error that the image size is too big. I was wondering if this was a limitation in the operating system or a limitation enforced within the mapserv code. From marin at here.is Mon Dec 17 17:19:18 2001 From: marin at here.is (Ma) Date: Tue, 18 Dec 2001 01:19:18 +0000 Subject: [mapserver-users] Rectification of an image in MapServer Message-ID: <3C1E9996.DA9F2B3@here.is> Dear All, Is it possible in MapServer to rectify an image on-the -fly? And please keep the e-mail list!! -- Ma From morissette at dmsolutions.ca Mon Dec 17 17:28:47 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 17 Dec 2001 20:28:47 -0500 Subject: [mapserver-users] slightly offtopic -- mapserver forums References: <3C1E8C24.5010304@digitalmeridian.net> Message-ID: <3C1E9BCF.50EB6861@dmsolutions.ca> Eric Hillmuth wrote: > > A few of the mailing lists I follow have moved onto Yahoo Groups. One > can access the discussions from either the web or email and upload > files, images etc. The downside of such a setup of course is that folks > are dependent on an internet startup as our only means of community / > tech support for a particular piece of software. > I was actually going to suggest that we use the Yahoo Groups service to mirror (or host) the list in my previous postings (as an alternative to setting up our own web-based list server) but I gave up since my replies were already getting long enough. I have been member and have hosted some lists for at least 2 years on Yahoo Groups (formerly eGroups) and I don't remember having any problems with them... one thing I noticed is that messages are delivered really quick (within a few minutes for a 150 members list, or maybe I've just been lucky?). They also have a web interface, search engine, etc... (Well, ehh... I find the web interface slow to use, but we covered that already! ;) ... and best of all you are not tied to the web interface: you can do everything via Email. With respect to "depend(ing) on an internet startup", one can always setup an alias to archive all the list messages locally, so if yahoogroups ever goes down then you simply move your archive somewhere else. So if the question had been "should we switch to Yahoo Groups?" then my vote would have been different. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From David at baker.pc.my Mon Dec 17 17:26:54 2001 From: David at baker.pc.my (David Baker) Date: Tue, 18 Dec 2001 09:26:54 +0800 Subject: [mapserver-users] slightly offtopic -- mapserver forums In-Reply-To: Message-ID: <18be48230029@baker.pc.my> On 17 Dec 2001 at 13:50, Puneet Kishor wrote: > I have suggested this once before, but here it is again. Would all please > consider converting the Mapserver list to a web-based discussion. I'll weigh in - please don't. A lot of people over here in Asia barely have expensive 56k dial-up, and searching & reading online is a huge waste of our valuable resources. I've looked in the archives & the search function seems good enough for me. Having said that, there are groups like yahoogroups that allow reading on the web or delivery by email. Not sure if the search engines are good or not. I read all of them by email, and wouldn't subscribe to any of them if I had to get on the web each time. Dave From morissette at dmsolutions.ca Mon Dec 17 18:18:58 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 17 Dec 2001 21:18:58 -0500 Subject: [mapserver-users] Yahoo Groups Archive (was: slightly offtopic -- mapserver forums) References: <3C1E8C24.5010304@digitalmeridian.net> <3C1E9BCF.50EB6861@dmsolutions.ca> Message-ID: <3C1EA792.F97F67DA@dmsolutions.ca> Hi, One more message in this thread... hopefully the last one... I have found that Yahoo Groups now has a very interesting feature called "Remote Archive"... which can be used to mirror a list archive... exactly what we need! :) I have created a mapserver-users archive using this on Yahoo Groups. At the moment, it has closed membership, so you cannot subscribe to the list via Yahoo Groups... you are redirected to the MapServer website, so it doesn't affect the main mapserver-users list at all... it just provides a mirror of the list archives. The URL is: http://groups.yahoo.com/group/mapserver-users/ -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Mon Dec 17 19:26:32 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 17 Dec 2001 21:26:32 -0600 Subject: [mapserver-users] Is there a limitation on the mapsize in mapserv 3.5 Message-ID: Note that the location of that constant (actually now MS_MAXIMGSIZE) is moved to map.h in the official 3.5 release so that it can be used in filtering map_size URL input as well. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ed McNierney" 12/17/01 19:20 PM >>> Regina - Look at the value MAXIMGSIZE that's defined right at the top of mapserv.h - you can change it to whatever maximum you want and recompile. Remember that you might run into file format size limitations. Because I have other ways to restrict image size, and because I sometimes use MapServer to generate very large images, I use a value of 16383 for MAXIMGSIZE. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Obe, Regina DND\MIS [mailto:Regina.Obe.PFD at ci.boston.ma.us] Sent: Monday, December 17, 2001 5:14 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Is there a limitation on the mapsize in mapserv 3.5 If I try to specify a mapsize that is greater than 1000 pixels x 1000 pixels, mapserv comes back with an error that the image size is too big. I was wondering if this was a limitation in the operating system or a limitation enforced within the mapserv code. From frank.koormann at intevation.de Tue Dec 18 00:13:51 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Tue, 18 Dec 2001 09:13:51 +0100 Subject: [mapserver-users] Micro-HowTo Display SCALE In-Reply-To: <3C1A7F1B.CB9D042@swoodbridge.com> References: <5.0.0.25.2.20011214093959.031df460@pop3.wish.nl> <3C1A0C1B.E33C975F@swoodbridge.com> <000f01c184ee$df4f8ce0$0300a8c0@tampabay.rr.com> <3C1A7F1B.CB9D042@swoodbridge.com> Message-ID: <20011218091350.D26847@intevation.de> Dear all, * Stephen Woodbridge (woodbri at swoodbridge.com) [011215 01:38]: > Steve, > > I've posted this back to the list, maybe one of the developers can help > with this. I thought the number of decimal places was a bit excessive > myself :) > > The only way to trim this up in html would be to write some javascript > :( There is another solution, if you are running apache: The DREAM-Projekt has used a mod_perl based rewrite of the scale (and some other stuff) have a look at: http://dream.lrrl.arch.tu-muenchen.de/a_katalog/info/linuxmag/geodaten_frei_en.xml?portal=cap2000 Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From bart at atsence.nl Tue Dec 18 01:11:26 2001 From: bart at atsence.nl (Bart van Heijningen) Date: Tue, 18 Dec 2001 10:11:26 +0100 Subject: [mapserver-users] Another Rosa applet question In-Reply-To: <28DE833A781BD511839600D0B772248F4F54CA@agsomail1.agso.gov.au> Message-ID: Hi, This message is actually meant for Tim Mackey but anyone else is welcomed to answer of course. I used Tim's mapserv.c patch for version 3.4 to compile the mapserver CGI for use with the rosa applet. I give you a rough idea about the compilation problems I encountered: mapsymbol.c and maplabel.c complain about unused variables like the "Unused variable bbox, font and rect" mapraster.c complains bout drawGEN which is defined bun not used and some other errors which are most likely the result of these first few messages. Any ideas? I use Mapserver 3.4 on Linux RedHat7.0 Apache 1.3.19, php 3.0.18 gd1.2 proj 4.4.3 Thanx, Bart -----Oorspronkelijk bericht----- Van: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]Namens Timothy.Mackey at agso.gov.au Verzonden: maandag 5 november 2001 1:09 Aan: perik at azimuth.nl; mapserver-users at lists.gis.umn.edu Onderwerp: RE: [mapserver-users] Anyone used the Rosa applet Hi, We (Geoscience Australia) use the Rosa applet with mapserver CGI. http://www.agso.gov.au/map click on the "java" button. I have previously posted the source patch for 3.3.011 which allows the applet to talk to the CGI version of mapserv. Tim Mackey Internet Applications Manager AGSO - Geoscience Australia e-mail: timothy.mackey at agso.gov.au phone: (02) 6249 9813 fax: (02) 6249 9984 http://www.agso.gov.au/ ABN: 80 091 799 039 -----Original Message----- From: Azimuth, Erwin Perik [mailto:perik at azimuth.nl] Sent: Tuesday, 30 October 2001 6:30 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Anyone used the Rosa applet Hello all, i was wondering if there are any other examples of the Rosa applet besides GMAP from the mapserver gallery. Or have i been looking at the wrong example and is there an even more interesting applet out there. Searching the web on Rosa gives very little results. Geotools is a nice alternative, but i prefer the interface of the Rosa over the one from Geotools. Thanks, Erwin From perik at azimuth.nl Tue Dec 18 01:47:49 2001 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Tue, 18 Dec 2001 10:47:49 +0100 Subject: [mapserver-users] ---> Creating a new map-extent of a queried point fails <--- In-Reply-To: Message-ID: <5.1.0.14.2.20011218095503.00a09ec0@localhost> Hi All, I seem to have a problem zooming to a queryd point. Getting the object is not a problem, but cannot create a new map-extent so the object is zoomed in. Getting the extents of the queryd object (point) produces 2 identical coords. I create a box around that point and set the extents to that 'box'. Queryd Layer is OFF by default, but switching that ON later. Not the problem. Any one a idea? Totally stuck. Have used it before on a polygon-shape without any problems, but doing this for a point is not working. It produces a circle (from class) in the center of the new created map. Below i have a description of how i have it set up. I use MS3.5 and PHP (Win98). Thanks in advance, Erwin ******************************** MAIN ROUTINE (snippit): ******************************** GLOBAL $gpoMap; GLOBAL $value; // Search for shapeobject, using a distance of eg. 50 to create a box around the found extent // As the object is a point the extent consists of 2 identical coordinates. // That's why i make a box around the 'point' using: BoxAroundPoint("C:\phpdev\www\aweb\imagemap\data\city", $value -1, 50); $img = $gpoMap->Draw(); $url = $img->saveWebImage($img, 0, 0, -1); echo""; // Create new extent using givven distance function BoxAroundPoint($shpFileName, $shpIndex, $distance ) { global $gpoMap; $shapeFileObj = ms_newShapeFileObj($shpFileName, -1 ); // ** getting extent $shapeExtObj = $shapeFileObj->getExtent( $shpIndex ); // ** new extent using 'distance' $minx = ( $shapeExtObj->minx ) - $distance; $miny = ( $shapeExtObj->miny ) - $distance; $maxx = ( $shapeExtObj->maxx ) + $distance; $maxy = ( $shapeExtObj->maxy ) + $distance; // ** seting the new extents of the map object $gpoMap->SetExtent( $minx, $miny, $maxx, $maxy ); } ******************************** MAP-LAYER: ******************************** LAYER NAME 'city-search' # for searching city TYPE POINT DATA city STATUS OFF CLASS NAME 'mykey' SYMBOL "circle" SIZE 12 END CLASSITEM "mykey" # Namas item from dbase file END From frank.koormann at intevation.de Tue Dec 18 02:08:16 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Tue, 18 Dec 2001 11:08:16 +0100 Subject: [mapserver-users] Fwd: MapServer 3.5 In-Reply-To: References: Message-ID: <20011218110816.B28081@intevation.de> Joost, > From: "Van Ulden, Joost" > To: "'mapserver-info at lists.gis.umn.edu'" > Subject: MapServer 3.5 > > We have been unable to get v3.5GIF to work. We have tried the 3.5 version > of the demo with no luck. > > The following is the error that we get when clicking on the Initialize > button: > loadSymbol(): Unknown identifier. (TRUE):(95) The message says that an error occured while loading the symbol file (probably symbols/symbol.sym or so within your installation, details can be found in the map file): In line 95 the keyword "TRUE" seems to be unexpected. Please mail your symbol file. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From perik at azimuth.nl Tue Dec 18 02:35:35 2001 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Tue, 18 Dec 2001 11:35:35 +0100 Subject: [mapserver-users] ---> zooming (rectangular) on an image with USEMAP references <--- Message-ID: <5.1.0.14.2.20011218111451.00a04510@localhost> Hi All, Created an image using a USEMAP like following: MAP NAME="points"> info about the point .....repeated for every POINT in a shape //creating image: echo"width HEIGHT=$gpoMap->height NAME=clickmap"; USEMAP=#points --> creates circle-references for every point. Circle (50 radius) around the coordinates of the point. When hovering over the created circle-reference info is displayed (ALT). 'Normal' image would look something like: echo""; Difference between 'normal' and the one with the USEMAP is that it's not How can i zoom rectangular on the created circle-reference-map? Thanks, Erwin From david.armstrong at ntlworld.com Tue Dec 18 03:29:50 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Tue, 18 Dec 2001 11:29:50 -0000 Subject: [mapserver-users] projection info request Nad83 & wgs84 Message-ID: <006d01c187b7$4e6dace0$de00a8c0@davidpc> Could someone on the list please help with the correct projection info , i need to setup mapserver with the following projection , to help another lister with a project but as i am located in the UK i am not familar with nad83 , although it looks as if i am learning !! the principal maps are in nad83 ( not sure of the zone yet !) i need to set up the output projection to nad83 ( i think ) then set the map layers to nad83 also required is to set one layer to WGS84 ( gps layer ) and hope it all fits ! anyone have a similar projection requirement that can give me the correct projection info for the map file any advice is appriciated Kind Regards Dave From Regina.Obe.PFD at ci.boston.ma.us Tue Dec 18 05:34:10 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Tue, 18 Dec 2001 08:34:10 -0500 Subject: [mapserver-users] Is there a limitation on the mapsize in map serv 3.5 Message-ID: I think the 1K limit fits most purposes. For intranet apps here though - people want to print out their maps on 11X17 paper and on the plotter so that was the reason I asked. But I'll try and change the code to do that. Thanks for all the prompt help. I really appreciate it. -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Monday, December 17, 2001 5:56 PM To: Regina.Obe.PFD at ci.boston.ma.us Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Is there a limitation on the mapsize in mapserv 3.5 It's in the code (has been for many a version). It's to keep folks from requesting huge images and hanging a server. What would be a better limit? Current is 1K... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Obe, Regina DND\MIS" 12/17/01 16:18 PM >>> If I try to specify a mapsize that is greater than 1000 pixels x 1000 pixels, mapserv comes back with an error that the image size is too big. I was wondering if this was a limitation in the operating system or a limitation enforced within the mapserv code. From brian at stallingscrop.com Mon Dec 17 10:58:57 2001 From: brian at stallingscrop.com (Brian McKenzie) Date: Mon, 17 Dec 2001 13:58:57 -0500 Subject: [mapserver-users] Blank image generated from oracle spatial l ayer Message-ID: Thanks for all the help that did the trick and I have loaded upto 6 layers with no problems whatsoever. Thanks Rod this is great! Brian -----Original Message----- From: Rodrigo Cabral [mailto:cabral at yadata.net] Sent: Saturday, December 15, 2001 7:00 PM To: Brian McKenzie; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Blank image generated from oracle spatial layer Hey there, Actually, I just noticed where the problem is. Let's examine this excerpt from the error message: [window SRID does not match layer SRID] As you mentioned Brian, it's an SRID problem, not an indexation problem. It occurs due to this function call (SDO_FILTER): SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-180.3 ,-179.7,179.7,180.3) ),'querytype=window') = 'TRUE' which passes three arguments: geom1=GEOLOC; geom2=SDO_GEOMETRY constructor; and a third non-relevant argument. geom1 has a defined SRID, while geom2 doesn't. So we get a SRID mismatch error. I've never tried working Spatial with defined SRIDs, so I never got this error. I'll try to solve it soon, but meanwhile try using this as your DATA statement in your mapfile: DATA "GEOLOC from cnybndpl" changes to DATA "GEOLOC from (SELECT GEOLOC FROM cnybndpl)" This will remove the SDO_FILTER call from the query, hence eliminating the error. Using SELECT statement instead of a tablename makes impossible for me to apply a "windowed" query. I reached this conclusion because when I attempted to do so, Oracle gave me an error as I cannot use SDO_FILTER with a geometry (the query result) that has not an index defined for it. Consequently, MapServer will get all elements from the table, and not only those who are within the current extent "view". This should slow the performance a bit, but I dont think it's something you need to worry about. Debasish, this "workaround" should make your problem go away too, in case you decide to try working with Oracle Spatial again. Cheers, Rod. ----- Original Message ----- From: "Brian McKenzie" To: Sent: Friday, December 14, 2001 6:57 PM Subject: Re: [mapserver-users] Blank image generated from oracle spatial layer Hello I seem to be experiancing the some problems. I know this is not a Mapserver issue, now. But since the thread was started here I thought maybe I could get some further insight. I upload my data to Oracle with MapInfo Easy loader. And everything seems fine with Mapinfo, It shows up in Spatial advisor alright. My Stuff: Map Info Easy Loader 6.7 Oracle 8.1.7.0.1 Mapserver3.5 # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 # EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.3061389 EXTENT -180 -90 180 90 UNITS METERS IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "/uO1/Apache/Apache/htdocs/tmp/" IMAGEURL "/tmp/" LOG "demo.log" END # # Start of layer definitions # LAYER NAME "SGIS" TYPE POLYGON STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "mdsys/mdsys at lakeland.scicl.net" DATA "GEOLOC from cnybndpl" END END END #Map File <------------------> I get this in mapserver3.5 <------------------> msOracleSpatialLayerWhichShapes(): OracleSpatial error. ORA-29902: error in executing ODCIIndexStart() routine ORA-13208: internal error while evaluating [window SRID does not match layer SRID] operator ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 84 ORA-06512: at line 1 . SQL statement: SELECT rownum, GEOLOC FROM cnybndpl WHERE SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-180.3 ,-179.7,179.7,180.3) ),'querytype=window') = 'TRUE' <-------------------> If I run the same query in SQL*PLUS i get the same error messages. From all I heve read this would indicate some type of index problem. But ORA-13208 error seems to indicate an SRID problem. If someone could shed some light on this for me & point me in the direction I sure would appreciate it. I have been head bashing for 2 days now ;( Thanks Again Brian McKenzie Stallings Crop Insurance Corp. brian at stallingscrop.com From XSun at odu.edu Tue Dec 18 07:54:56 2001 From: XSun at odu.edu (XSun at odu.edu) Date: Tue, 18 Dec 2001 10:54:56 -0500 Subject: [mapserver-users] is there Binaries code for Unix Solaris? Thanks. Message-ID: Hello lists, is there Binaries code for Unix Solaris? I do not have root rights to build mapserver in my Solaris Unix workstation. So I am wondering if there is any binaries code for Unix Solaris for me to install directly? Thanks for your help. XSun From frank.koormann at intevation.de Tue Dec 18 08:09:28 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Tue, 18 Dec 2001 17:09:28 +0100 Subject: [mapserver-users] Another Rosa applet question In-Reply-To: References: <28DE833A781BD511839600D0B772248F4F54CA@agsomail1.agso.gov.au> Message-ID: <20011218170928.A31440@intevation.de> Bart, * Bart van Heijningen (bart at atsence.nl) [011218 12:28]: > Hi, > This message is actually meant for Tim Mackey but anyone else is welcomed to > answer of course. > > I used Tim's mapserv.c patch for version 3.4 to compile the mapserver CGI > for use with the rosa applet. > > I give you a rough idea about the compilation problems I encountered: > > mapsymbol.c and maplabel.c complain about unused variables like the "Unused > variable bbox, font and rect" > > mapraster.c complains bout drawGEN which is defined bun not used > So far this should only be warnings. All of them have nothing to do with Tim's patch. I have set up a patch for MapServer 3.4 based on Tim's work. It can be found at: http://www2.dmsolutions.ca/webtools/rosa/mapserver-rosa-patch.tar or http://www2.dmsolutions.ca/webtools/rosa/mapserver-rosa-patch.zip > and some other errors which are most likely the result of these first few > messages. Does occur real errors during compilation? Can't you execute the comiled binary? Please post more details. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From jsmedsmo at gis.umn.edu Tue Dec 18 11:09:58 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Tue, 18 Dec 2001 13:09:58 -0600 Subject: [mapserver-users] Yahoo Groups Archive (was: slightly offtopic -- mapserver forums) References: <3C1E8C24.5010304@digitalmeridian.net> <3C1E9BCF.50EB6861@dmsolutions.ca> <3C1EA792.F97F67DA@dmsolutions.ca> Message-ID: <3C1F9486.2060302@gis.umn.edu> I'm sure that there will be many opinions on this, but... does this take care of the problem? Jamie Smedsmo University of Minnesota Daniel Morissette wrote: >Hi, > >One more message in this thread... hopefully the last one... > >I have found that Yahoo Groups now has a very interesting feature called >"Remote Archive"... which can be used to mirror a list archive... >exactly what we need! :) > >I have created a mapserver-users archive using this on Yahoo Groups. At >the moment, it has closed membership, so you cannot subscribe to the >list via Yahoo Groups... you are redirected to the MapServer website, so >it doesn't affect the main mapserver-users list at all... it just >provides a mirror of the list archives. > >The URL is: http://groups.yahoo.com/group/mapserver-users/ > From david.armstrong at ntlworld.com Tue Dec 18 11:15:54 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Tue, 18 Dec 2001 19:15:54 -0000 Subject: [mapserver-users] scalable gif as Icon's / symbols Message-ID: <008801c187f8$90f4dc50$de00a8c0@davidpc> has anybody an idea as to how to scale gif's used as icon's / symbols on the map my thought are that as you zoom in to more detail then the icon's / symbols should become smaller to keep the same ratio Regards Dave From woodbri at swoodbridge.com Tue Dec 18 12:03:38 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 18 Dec 2001 15:03:38 -0500 Subject: [mapserver-users] is there Binaries code for Unix Solaris? Thanks. References: Message-ID: <3C1FA11A.A034289F@swoodbridge.com> I haven't build anything on a Sun box in a few years, but I was not aware that you needed root rights to build mapserver. You should be able to download the source and build as a user and get the same executables as if you downloaded a binary distribution. In eiter case, you will need root rights to install the executable in the cgi-bin directory unless your server allows user cgi-bin files. -Steve XSun at odu.edu wrote: > > Hello lists, > > is there Binaries code for Unix Solaris? > I do not have root rights to build mapserver in my Solaris Unix > workstation. > So I am wondering if there is any binaries code for Unix Solaris for me to > install > directly? > > Thanks for your help. > > XSun From ed at topozone.com Tue Dec 18 12:36:10 2001 From: ed at topozone.com (Ed McNierney) Date: Tue, 18 Dec 2001 15:36:10 -0500 Subject: [mapserver-users] projection info request Nad83 & wgs84 Message-ID: <13858AA1A74F30419F319ACB66A9D122019281@mercator.topozone.com> Dave - NAD83 and WGS84 are datums, not projections. That means you need a bit more information. You mention zones, which indicates the projection is probably UTM, using NAD83 or WGS84 as the datum (UTM can be cast upon a variety of datums). Presumably the maps are all located in North America, since that's where the NAD83 datum is used. In North America, the difference between the NAD83 and the WGS84 datums is so very small that virtually all applications treat them as identical. The difference is often a matter of millimeters. Unless you are mapping very high-accuracy points on a very large-scale map, you should completely ignore the difference and treat all the data as the same datum. It's extremely likely that the errors/uncertainty in your data are FAR larger than the difference in the datums. Roughly speaking, you would need to zoom in until a typical full-screen map showed a square about 50 centimeters on a side (that is, around 20 inches by 20 inches of the Earth) before the difference in the two datums would cause the location of a mapped point to move by a single pixel. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: David Armstrong [mailto:david.armstrong at ntlworld.com] Sent: Tuesday, December 18, 2001 6:30 AM To: mapserver list Subject: [mapserver-users] projection info request Nad83 & wgs84 Could someone on the list please help with the correct projection info , i need to setup mapserver with the following projection , to help another lister with a project but as i am located in the UK i am not familar with nad83 , although it looks as if i am learning !! the principal maps are in nad83 ( not sure of the zone yet !) i need to set up the output projection to nad83 ( i think ) then set the map layers to nad83 also required is to set one layer to WGS84 ( gps layer ) and hope it all fits ! anyone have a similar projection requirement that can give me the correct projection info for the map file any advice is appriciated Kind Regards Dave From steve.lime at dnr.state.mn.us Tue Dec 18 12:23:15 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 18 Dec 2001 14:23:15 -0600 Subject: [mapserver-users] scalable gif as Icon's / symbols Message-ID: Raster markers currently are not scalable. I was never happy with the output results so never bothered to support it. TrueType and vector markers are scalable. If you'd like, add this as a feature request via bugzilla. I think it may be easy to support by simply adding a flag to a symbol definition (e.g. SCALABLE TRUE). Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "David Armstrong" 12/18/01 01:15PM >>> has anybody an idea as to how to scale gif's used as icon's / symbols on the map my thought are that as you zoom in to more detail then the icon's / symbols should become smaller to keep the same ratio Regards Dave From jsmedsmo at gis.umn.edu Tue Dec 18 13:40:45 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Tue, 18 Dec 2001 15:40:45 -0600 Subject: [mapserver-users] [Fwd: Security] Message-ID: <3C1FB7DD.7090302@gis.umn.edu> -------- Original Message -------- Subject: Security Date: Tue, 18 Dec 2001 13:22:17 -0800 From: "Diaz, William" To: "'mdp at lists.gis.umn.edu'" Tell me please using the tmp directory (with mapserver) can produce some risk to our servers and networks? William William Diaz S. email: w.diaz at cgiar.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at topozone.com Tue Dec 18 14:09:58 2001 From: ed at topozone.com (Ed McNierney) Date: Tue, 18 Dec 2001 17:09:58 -0500 Subject: [mapserver-users] [Fwd: Security] Message-ID: <13858AA1A74F30419F319ACB66A9D1220E79E5@mercator.topozone.com> Mr. Diaz - No. You should configure a new temporary map file directory on your server that has nothing in it but MapServer output files. The server process (i.e. the mapserv CGI program) needs to have write access to that directory, but if the only thing in it is MapServer-generated map files, that should not pose a risk to any other files on your server. You should always review your server configuration carefully to make sure you have not set more generous permissions than you intended. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Jamie Smedsmo [mailto:jsmedsmo at gis.umn.edu] Sent: Tuesday, December 18, 2001 4:41 PM To: mapserver-users Cc: Diaz, William Subject: [mapserver-users] [Fwd: Security] -------- Original Message -------- Subject: Security Date: Tue, 18 Dec 2001 13:22:17 -0800 From: "Diaz, William" To: "'mdp at lists.gis.umn.edu'" Tell me please using the tmp directory (with mapserver) can produce some risk to our servers and networks? William William Diaz S. email: w.diaz at cgiar.org From raanders at tincan.org Tue Dec 18 14:44:16 2001 From: raanders at tincan.org (Roderick A. Anderson) Date: Tue, 18 Dec 2001 14:44:16 -0800 (PST) Subject: [mapserver-users] topo.com (National Geographic Maps) Message-ID: While looking a a friends site/project I noticed he has some very nice maps that came from topo.com. After looking at the site I couldn't decide if it had been mentioned on the list plus a search turned up zero. My take is that they mostly off maps that have been pre-generated or scanned in. They do look nice. Shaded relief and the contour lines make them pleasant to look at and usable. So where am I dragging this? Well has anyone done similar look-and-feel stuff with mapserver? Is it possible? I realize much of it would be CPU and time intensive and therefore not very responsive in the web-world. Cheers, Rod -- Let Accuracy Triumph Over Victory Zetetic Institute "David's Sling" Marc Stiegler From steve.lime at dnr.state.mn.us Tue Dec 18 14:41:40 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 18 Dec 2001 16:41:40 -0600 Subject: [mapserver-users] topo.com (National Geographic Maps) Message-ID: It's all possible, you just need great data- that's where the time and effort is. Fast apps can be developed with good data as easily as with bad. Nice thing is that good data makes it look harder than it is. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Roderick A. Anderson" 12/18/01 04:44PM >>> While looking a a friends site/project I noticed he has some very nice maps that came from topo.com. After looking at the site I couldn't decide if it had been mentioned on the list plus a search turned up zero. My take is that they mostly off maps that have been pre-generated or scanned in. They do look nice. Shaded relief and the contour lines make them pleasant to look at and usable. So where am I dragging this? Well has anyone done similar look-and-feel stuff with mapserver? Is it possible? I realize much of it would be CPU and time intensive and therefore not very responsive in the web-world. Cheers, Rod -- Let Accuracy Triumph Over Victory Zetetic Institute "David's Sling" Marc Stiegler From pnaciona at gis.umn.edu Tue Dec 18 15:22:36 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Tue, 18 Dec 2001 17:22:36 -0600 Subject: [mapserver-users] RE: being prompted to download mapserv file (no .exe) when trying to initialize In-Reply-To: <200112182115.PAA24497@mallit.fr.umn.edu> Message-ID: I haven't used IIS in quite sometime due to security issues. One of the things Microsoft probably did to fix these issues is to not allow .EXE files to execute from cgi-bin (or scripts) directory. Try replacing the extension from .exe to .cgi and call "cgi-bin/mapserv.cgi" instead of "/cgi-bin/mapserv.exe". I'm sure you can configure your web server to override this setting... As an alternative web server, I would recommend Apache. Unless, of course, you have contents that depend on IIS stuff. Good luck! Perry Nacionales pnaciona at gis.umn.edu > -----Original Message----- > From: teb [mailto:teb at mallit.fr.umn.edu] > Sent: Tuesday, December 18, 2001 3:15 PM > To: pnaciona > Subject: being prompted to download mapserv file (no .exe) when trying > to initialize > > > > ------------- Begin Forwarded Message ------------- > > From: Mode Matteo > To: "'mapserver-info at lists.gis.umn.edu'" > > Subject: being prompted to download mapserv file (no .exe) when > trying to > initialize > Date: Tue, 18 Dec 2001 16:48:51 -0000 > MIME-Version: 1.0 > > Hello, > > I am currently setting up Mapserver3.4 on Windows2000 IIS 5.0. > My problem is the following: when I click on Initialize - > htpp://host/ms_demo/demo_init.html - I am prompted to save and > download the > mapserv file (without extension). > As suggested in the existing mailing list documentation, I checked that I > add the extension ".exe" where needed, but no success. > Any ideas? > Any help will be appreciated, > Happy Christmas > > Matteo Mode' > > ------------- End Forwarded Message ------------- > > From Timothy.Mackey at ga.gov.au Tue Dec 18 15:42:30 2001 From: Timothy.Mackey at ga.gov.au (Timothy.Mackey at ga.gov.au) Date: Wed, 19 Dec 2001 10:42:30 +1100 Subject: [mapserver-users] RE: Another Rosa applet question Message-ID: <28DE833A781BD511839600D0B772248F4F5720@agsomail1.agso.gov.au> Hi, The patched mapserv.c is actually for 3.3.011, I'm not surprised that it won't compile with 3.4. However, the errors you have listed have nothing to do with the patch, as far as I can tell. Did the source compile with the distribution version of mapserv.c? Tim -----Original Message----- From: Bart van Heijningen [mailto:bart at atsence.nl] Sent: Tuesday, 18 December 2001 8:11 PM To: Timothy.Mackey at agso.gov.au; perik at azimuth.nl; mapserver-users at lists.gis.umn.edu Subject: Another Rosa applet question Hi, This message is actually meant for Tim Mackey but anyone else is welcomed to answer of course. I used Tim's mapserv.c patch for version 3.4 to compile the mapserver CGI for use with the rosa applet. I give you a rough idea about the compilation problems I encountered: mapsymbol.c and maplabel.c complain about unused variables like the "Unused variable bbox, font and rect" mapraster.c complains bout drawGEN which is defined bun not used and some other errors which are most likely the result of these first few messages. Any ideas? I use Mapserver 3.4 on Linux RedHat7.0 Apache 1.3.19, php 3.0.18 gd1.2 proj 4.4.3 Thanx, Bart -----Oorspronkelijk bericht----- Van: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]Namens Timothy.Mackey at agso.gov.au Verzonden: maandag 5 november 2001 1:09 Aan: perik at azimuth.nl; mapserver-users at lists.gis.umn.edu Onderwerp: RE: [mapserver-users] Anyone used the Rosa applet Hi, We (Geoscience Australia) use the Rosa applet with mapserver CGI. http://www.agso.gov.au/map click on the "java" button. I have previously posted the source patch for 3.3.011 which allows the applet to talk to the CGI version of mapserv. Tim Mackey Internet Applications Manager AGSO - Geoscience Australia e-mail: timothy.mackey at agso.gov.au phone: (02) 6249 9813 fax: (02) 6249 9984 http://www.agso.gov.au/ ABN: 80 091 799 039 -----Original Message----- From: Azimuth, Erwin Perik [mailto:perik at azimuth.nl] Sent: Tuesday, 30 October 2001 6:30 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Anyone used the Rosa applet Hello all, i was wondering if there are any other examples of the Rosa applet besides GMAP from the mapserver gallery. Or have i been looking at the wrong example and is there an even more interesting applet out there. Searching the web on Rosa gives very little results. Geotools is a nice alternative, but i prefer the interface of the Rosa over the one from Geotools. Thanks, Erwin From JohnHockaday at auslig.gov.au Tue Dec 18 16:15:33 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Wed, 19 Dec 2001 11:15:33 +1100 Subject: [mapserver-users] [Fwd: Security] Message-ID: <53273E187450D311ACF6009027927B1202C7AF64@smtpgate.auslig.gov.au> I might also add that the temporary directory that you create should be in an area that is readable by the web server. That way the resulting images can be referenced in HTML pages as "img" HTML elements. John > -----Original Message----- > From: Ed McNierney [SMTP:ed at topozone.com] > Sent: Wednesday, December 19, 2001 9:10 AM > To: Jamie Smedsmo; mapserver-users > Cc: Diaz, William > Subject: RE: [mapserver-users] [Fwd: Security] > > Mr. Diaz - > > No. You should configure a new temporary map file directory on your > server that has nothing in it but MapServer output files. The server > process (i.e. the mapserv CGI program) needs to have write access to > that directory, but if the only thing in it is MapServer-generated map > files, that should not pose a risk to any other files on your server. > You should always review your server configuration carefully to make > sure you have not set more generous permissions than you intended. > > - Ed > > > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Jamie Smedsmo [mailto:jsmedsmo at gis.umn.edu] > Sent: Tuesday, December 18, 2001 4:41 PM > To: mapserver-users > Cc: Diaz, William > Subject: [mapserver-users] [Fwd: Security] > > > > > -------- Original Message -------- > Subject: Security > Date: Tue, 18 Dec 2001 13:22:17 -0800 > From: "Diaz, William" > > To: "'mdp at lists.gis.umn.edu'" > > > > Tell me please > > > > using the tmp directory (with mapserver) can produce some risk to our > > servers and networks? > > > > William > > > > > > William Diaz S. email: w.diaz at cgiar.org > > > > > > > > From ed at topozone.com Tue Dec 18 16:31:55 2001 From: ed at topozone.com (Ed McNierney) Date: Tue, 18 Dec 2001 19:31:55 -0500 Subject: [mapserver-users] RE: being prompted to download mapserv file (no .exe) when trying to initialize Message-ID: <13858AA1A74F30419F319ACB66A9D122019282@mercator.topozone.com> Perry et al. - I don't think that's likely to be the problem, and might make things worse. The symptom seems as if the /cgi-bin directory has (as a security precaution ) Execute permission disabled by default. In other words, users can only Read documents there, not Execute them, and since the user is trying to Read a document that can't be rendered by the browser (an .EXE file, that is) the client tries to download it. In the Internet Services Manager, right-click on the cgi-bin virtual directory folder, and select Properties. Make sure the Execute Permissions drop-down (near the bottom on the Virtual Directory tab) reads "Scripts and Executables". Also, from the Windows Explorer, check the Security tab on that folder and make sure the IUSR_ anonymous user account has "Read and Execute" permission. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Pericles S. Nacionales [mailto:pnaciona at gis.umn.edu] Sent: Tuesday, December 18, 2001 6:23 PM To: Mode Matteo Cc: Mapserver-Users at Lists Subject: [mapserver-users] RE: being prompted to download mapserv file (no .exe) when trying to initialize I haven't used IIS in quite sometime due to security issues. One of the things Microsoft probably did to fix these issues is to not allow .EXE files to execute from cgi-bin (or scripts) directory. Try replacing the extension from .exe to .cgi and call "cgi-bin/mapserv.cgi" instead of "/cgi-bin/mapserv.exe". I'm sure you can configure your web server to override this setting... As an alternative web server, I would recommend Apache. Unless, of course, you have contents that depend on IIS stuff. Good luck! Perry Nacionales pnaciona at gis.umn.edu > -----Original Message----- > From: teb [mailto:teb at mallit.fr.umn.edu] > Sent: Tuesday, December 18, 2001 3:15 PM > To: pnaciona > Subject: being prompted to download mapserv file (no .exe) when trying > to initialize > > > > ------------- Begin Forwarded Message ------------- > > From: Mode Matteo > To: "'mapserver-info at lists.gis.umn.edu'" > > Subject: being prompted to download mapserv file (no .exe) when > trying to > initialize > Date: Tue, 18 Dec 2001 16:48:51 -0000 > MIME-Version: 1.0 > > Hello, > > I am currently setting up Mapserver3.4 on Windows2000 IIS 5.0. > My problem is the following: when I click on Initialize - > htpp://host/ms_demo/demo_init.html - I am prompted to save and > download the > mapserv file (without extension). > As suggested in the existing mailing list documentation, I checked that I > add the extension ".exe" where needed, but no success. > Any ideas? > Any help will be appreciated, > Happy Christmas > > Matteo Mode' > > ------------- End Forwarded Message ------------- > > From trem at socialchange.net.au Tue Dec 18 16:52:08 2001 From: trem at socialchange.net.au (Trem Stamp) Date: Wed, 19 Dec 2001 11:52:08 +1100 Subject: [mapserver-users] Legend CGI request Message-ID: <05b701c18827$62d17200$74010a0a@socialchange.net.au> All, In the old mapserv versions, it was possible to use the native mapserv cgi syntax to retrieve a legend symbol. I this also the case with mapserv 3.5? The url below is in WMS, but when I chaange it to make a request in the old format for a legend symbol, the it doesn't work. http://nccmap-dev.socialchange.net.au/cgi-bin/mapserv?map=mapfiles/ncc.map&WMTVER=1.0.0&SRS=EPSG%3A4202&REQUEST=map&FORMAT=GIF&TRANSPARENT=true&EXCEPTIONS=INIMAGE&BBOX=150.65,-33.95714285714286,151.477,-33.943285714285715&WIDTH=400&HEIGHT=400&LAYERS=bush_rem&STYLES= When I change syntax to request a legend symbol, then I get an error: http://nccmap-dev.socialchange.net.au/cgi-bin/mapserv?map=mapfiles/ncc.map&mapext=140.638000+-37.842000+153.962000+-27.857000&mode=legend&&mapsize=400+300&layer=bush_rem Can someone tell me if this should work, and if not then what the syntax would be? Cheers, Trem -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at topozone.com Tue Dec 18 16:54:09 2001 From: ed at topozone.com (Ed McNierney) Date: Tue, 18 Dec 2001 19:54:09 -0500 Subject: [mapserver-users] topo.com (National Geographic Maps) Message-ID: <13858AA1A74F30419F319ACB66A9D122019283@mercator.topozone.com> Rod - The Topo!/National Geographic maps are very attractive products, but they have nothing to do with serving maps on the Web. The Topo! products are CD-ROM raster map products with viewing software. As far as I know, Topo! (when they were Wildflower Productions) were the first vendors to produce topographic maps on CD-ROM for viewing. They purchased printed USGS maps and scanned them themselves. As I recall, they added the hillshading (shaded relief) later on. The resulting images are very nice, but they're really just static images. From a map viewing and serving perspective, there's no "server" or on-the-fly rendering involved. They just show you portions of a very big pre-generated picture. The Topo! maps are not viewable on the Web in any way, shape or form (although it wouldn't be hard to do so). They only have a few sample images up on their Web site. The ability to add shaded relief to MapServer maps is something I've been working on as a back-burner project for a while. There are a few different ways to attack the problem, but several routes require MapServer to support 24-bit color images (at least while rendering - they can be downsampled before being sent to the client). As has been discussed in other threads, there is a good bit of interest in 24-bit MapServer rendering but a number of technical hurdles that will make sure it doesn't happen excessively soon (at least not in a general way). - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com -----Original Message----- From: Roderick A. Anderson [mailto:raanders at tincan.org] Sent: Tuesday, December 18, 2001 5:44 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] topo.com (National Geographic Maps) While looking a a friends site/project I noticed he has some very nice maps that came from topo.com. After looking at the site I couldn't decide if it had been mentioned on the list plus a search turned up zero. My take is that they mostly off maps that have been pre-generated or scanned in. They do look nice. Shaded relief and the contour lines make them pleasant to look at and usable. So where am I dragging this? Well has anyone done similar look-and-feel stuff with mapserver? Is it possible? I realize much of it would be CPU and time intensive and therefore not very responsive in the web-world. Cheers, Rod -- Let Accuracy Triumph Over Victory Zetetic Institute "David's Sling" Marc Stiegler From pnaciona at gis.umn.edu Tue Dec 18 17:30:26 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Tue, 18 Dec 2001 19:30:26 -0600 Subject: [mapserver-users] RE: being prompted to download mapserv file (no .exe) when trying to initialize Message-ID: Ed, Well, I promised myself not to touch IIS again but you got me curious and sure enough, there's that setting (which I've forgotten about but was alluding to in the post). So, I stand corrected. Thanks. -Perry > -----Original Message----- > From: Ed McNierney [mailto:ed at topozone.com] > Sent: Tuesday, December 18, 2001 6:32 PM > To: Pericles S. Nacionales; Mode Matteo > Cc: Mapserver-Users at Lists > Subject: RE: [mapserver-users] RE: being prompted to download mapserv > file (no .exe) when trying to initialize > > > Perry et al. - > > I don't think that's likely to be the problem, and might make things > worse. The symptom seems as if the /cgi-bin directory has (as a > security precaution ) Execute permission disabled by default. In > other words, users can only Read documents there, not Execute them, and > since the user is trying to Read a document that can't be rendered by > the browser (an .EXE file, that is) the client tries to download it. > > In the Internet Services Manager, right-click on the cgi-bin virtual > directory folder, and select Properties. Make sure the Execute > Permissions drop-down (near the bottom on the Virtual Directory tab) > reads "Scripts and Executables". Also, from the Windows Explorer, check > the Security tab on that folder and make sure the IUSR_ > anonymous user account has "Read and Execute" permission. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > > > -----Original Message----- > From: Pericles S. Nacionales [mailto:pnaciona at gis.umn.edu] > Sent: Tuesday, December 18, 2001 6:23 PM > To: Mode Matteo > Cc: Mapserver-Users at Lists > Subject: [mapserver-users] RE: being prompted to download mapserv file > (no .exe) when trying to initialize > > > > I haven't used IIS in quite sometime due to security issues. One of the > things Microsoft probably did to fix these issues is to not allow .EXE > files > to execute from cgi-bin (or scripts) directory. Try replacing the > extension > from .exe to .cgi and call "cgi-bin/mapserv.cgi" instead of > "/cgi-bin/mapserv.exe". > > I'm sure you can configure your web server to override this setting... > As > an alternative web server, I would recommend Apache. Unless, of course, > you > have contents that depend on IIS stuff. > > Good luck! > > Perry Nacionales > pnaciona at gis.umn.edu > > > > > > -----Original Message----- > > From: teb [mailto:teb at mallit.fr.umn.edu] > > Sent: Tuesday, December 18, 2001 3:15 PM > > To: pnaciona > > Subject: being prompted to download mapserv file (no .exe) when trying > > to initialize > > > > > > > > ------------- Begin Forwarded Message ------------- > > > > From: Mode Matteo > > To: "'mapserver-info at lists.gis.umn.edu'" > > > > Subject: being prompted to download mapserv file (no .exe) when > > trying to > > initialize > > Date: Tue, 18 Dec 2001 16:48:51 -0000 > > MIME-Version: 1.0 > > > > Hello, > > > > I am currently setting up Mapserver3.4 on Windows2000 IIS 5.0. > > My problem is the following: when I click on Initialize - > > htpp://host/ms_demo/demo_init.html - I am prompted to save and > > download the > > mapserv file (without extension). > > As suggested in the existing mailing list documentation, I checked > that I > > add the extension ".exe" where needed, but no success. > > Any ideas? > > Any help will be appreciated, > > Happy Christmas > > > > Matteo Mode' > > > > ------------- End Forwarded Message ------------- > > > > > From pnaciona at gis.umn.edu Tue Dec 18 17:31:07 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Tue, 18 Dec 2001 19:31:07 -0600 Subject: [mapserver-users] Legend CGI request Message-ID: Trem, Replace the ampersand characters "&" with normal ampersand "&"--I tried it on your link and it worked. http://nccmap-dev.socialchange.net.au/cgi-bin/mapserv?map=mapfiles/ncc.map&m apext=140.638000+-37.842000+153.962000+-27.857000&mode=legend&mapsize=400+30 0&layer=bush_rem -Perry -----Original Message----- From: owner-mapserver-users at lists [mailto:owner-mapserver-users at lists]On Behalf Of Trem Stamp Sent: Tuesday, December 18, 2001 6:52 PM To: Mapserv Users List Subject: [mapserver-users] Legend CGI request All, In the old mapserv versions, it was possible to use the native mapserv cgi syntax to retrieve a legend symbol. I this also the case with mapserv 3.5? The url below is in WMS, but when I chaange it to make a request in the old format for a legend symbol, the it doesn't work. http://nccmap-dev.socialchange.net.au/cgi-bin/mapserv?map=mapfiles/ncc.map&W MTVER=1.0.0&SRS=EPSG%3A4202&REQUEST=map&FORMAT=GIF&TRANSPARENT=true&EXCEPTIO NS=INIMAGE&BBOX=150.65,-33.95714285714286,151.477,-33.943285714285715&WIDTH= 400&HEIGHT=400&LAYERS=bush_rem&STYLES= When I change syntax to request a legend symbol, then I get an error: http://nccmap-dev.socialchange.net.au/cgi-bin/mapserv?map=mapfiles/ncc.map&m apext=140.638000+-37.842000+153.962000+-27.857000&mode=legend&&m apsize=400+300&layer=bush_rem Can someone tell me if this should work, and if not then what the syntax would be? Cheers, Trem From sdlime at infinetivity.com Tue Dec 18 20:21:21 2001 From: sdlime at infinetivity.com (Stephen Lime) Date: Tue, 18 Dec 2001 22:21:21 -0600 Subject: [mapserver-users] MapServer 3.5 Officially Released Message-ID: <3C2015C1.65DCC1B8@infinetivity.com> Greetings: I'm pleased (and relieved) to announce that MapServer version 3.5 is ready for public consumption. It took about a year (9 months from the 3.4 release), but I think in the end it was worth the wait. Many users have been working with the development version for sometime now, but if you've not taken the plunge, now's the time. There are some very nice new features including: - a reworked layer handling system that supports rendering/query across data sources - ESRI SDE support (native) - Oracle Spatial support (native) - Postgres PostGIS support (native) - MapInfo files using OGR (see http://gdal.velocet.ca/projects/opengis/) - raster projection using GDAL (see http://www.remotesensing.org/gdal/) - OpenGIS WMS Server Support - OpenGIS WMS Client Layers - PDF creation from mapfiles - GML output via WMS getFeatureInfo requests - reworked attribute query support and ton's of other enhancements and bug fixes. Is it perfect? No, the system is complex and there are undoubtedly bugs and we know that a few features are not quite complete. However, these issues are relatively minor and will be resolved soon. We expect maintainance releases monthly and as always you have access to the development tree. Are we finished? Heck no! Among the next set of development objectives are improved line rendering (both in cartographic quality and speed), making MapServer thread safe and a Java MapScript distribution. As always we need user input in order to guide development and also to help document the system. The MapServer Documentation Project is always looking for volunteers, visit mapserver.gis.umn.edu/mdp to learn how you can help support MapServer! Documentation for the new release is in good shape, but we need help with the last couple of pieces. Finally, we should all thank the developers who made this recent version a reality (believe me, a ton of new code was written). First, the folks at DMSolutions- Dan, Frank, Assefa and Jeff. Not only do they maintain and support the PHP/MapScript code- they added OGR/GDAL support, WMS client support and were largely responsible for WMS Server support (amongst other things). Thanks guys. Dave Blasby and the folks at Refractions Research contributed PostGIS layer support. Oracle Spatial support was recently added by Rodrigo Cabral of CTTMAR/UNIVALI, Brazil. PDF creation code was added by Jeff Spielberg and Jamie Wall of Market Insite Group, Inc. Tom Poindexter put together the very cool MapServer WorkBench that was released against version 3.4 and hopefully will become compatible with 3.5 soon. A number of users took the time not only to report bugs, but to track down bugs and in many cases to send us patches. Your efforts are invaluable to developing quality software- thanks! Enough mushy stuff. Enjoy the new release and report bugs at mapserver.gis.umn.edu/bugs. Steve From raanders at tincan.org Tue Dec 18 21:44:41 2001 From: raanders at tincan.org (Roderick A. Anderson) Date: Tue, 18 Dec 2001 21:44:41 -0800 (PST) Subject: [mapserver-users] topo.com (National Geographic Maps) In-Reply-To: <13858AA1A74F30419F319ACB66A9D122019283@mercator.topozone.com> Message-ID: On Tue, 18 Dec 2001, Ed McNierney wrote: > Rod - > > The Topo!/National Geographic maps are very attractive products, but > they have nothing to do with serving maps on the Web. Well it was a web site I first saw them on. A question about where they came from referred me to the Topo site. They have some kind of cross advertising agreement with the Topo people is my understanding. I thought they were generating them online and pulling them back to their web site. (Some times too much knowledge is a bad thing!) > The Topo! products are CD-ROM raster map products with viewing software. Found that out when I looked at the site. > The ability to add shaded relief to MapServer maps is something I've > been working on as a back-burner project for a while. Got a few of those my self. Some are so far back the stove is in another city. ;-) > There are a few different ways to attack the problem, but several > routes require MapServer to support 24-bit color images (at least > while rendering - they can be downsampled before being sent to the > client). As has been discussed in other threads, there is a good > bit of interest in 24-bit MapServer rendering but a number of > technical hurdles that will make sure it doesn't happen excessively > soon (at least not in a general way). Thanks Ed. With Steve's announcement of the Version 3.5 release I guess I better get my project going again. Maybe a little tinkering will get me straight about all the stuff Mapserver already does. (Then I can whine a snivel about what it doesn't do :-) Best, Rod -- Let Accuracy Triumph Over Victory Zetetic Institute "David's Sling" Marc Stiegler From sutton_t at giug.net Wed Dec 19 05:37:50 2001 From: sutton_t at giug.net (Tim Sutton) Date: Wed, 19 Dec 2001 13:37:50 +0000 (GMT) Subject: [mapserver-users] getSymbol(): (BUFFER):395 error Message-ID: Hi I have just upgraded my cvs to get up to date with 3.5 stable. My last build was made about 1.5 months back. I am using phpmapscript with php as a CGI. When I use the version built from todays cvs update, I get an error reading my map file: Warning: MapServer Error in getSymbol(): (BUFFER):(395) It is the same mapfile I was using successfully with the previous cvs build. Can anyone tell me what is going on? The map file is included in full below. Thanks Tim -- ----------------------------------------------------- Tim Sutton WRc plc Consultant, GIS Solutions Group Frankland Road Direct line: +44 (0) 1793 865056 Blagrove Switchboard: +44 (0) 1793 865000 Swindon Fax: +44 (0) 1793 865001 Wiltshire SN5 8YF United Kingdom WRc - Solutions for Water, Waste and the Environment ----------------------------------------------------- # # Start of map file # NAME europe.map SIZE 550 370 EXTENT -11.576 36.060 29.804 69.777 #File Bounds: ( -11.576, 36.060,0,0) # to ( 29.804, 69.777,0,0) SYMBOLSET symbols/symbols.sym IMAGEQUALITY 86 IMAGECOLOR 172 202 236 # IMAGECOLOR 207 232 249 UNITS dd FONTSET 'fonts/ms_fontset' SHAPEPATH '/shape/' # # Start of web interface definition # WEB TEMPLATE 'mapdisplay.html' IMAGEPATH '/tmp/ms_tmp/' IMAGEURL '/ms_tmp/' END #WEB # # Start of reference map # REFERENCE SIZE 150 160 IMAGE /ms_europe/ref_map.jpg EXTENT 217356.950 465307.700 252617.812 504843.660 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END #REFERENCE # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 172 202 238 POSITION UR END STATUS ON END #LEGEND # # Start of scalebar # SCALEBAR IMAGECOLOR 172 202 236 LABEL COLOR 0 0 0 SIZE SMALL END #LABEL SIZE 350 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 INTERVALS 10 STYLE 1 STATUS ON END #SCALEBAR QUERYMAP STYLE HILITE COLOR 0 128 128 END # # Start of layer definitions # #Layers draw in the order listed ie. last listed layers are on top #-------------------------------------------------------- #shpdump EEA_region.shp |head #Shapefile Type: Polygon # of Shapes: 51 #File Bounds: ( -180.000, 27.637,0,0) # to ( 180.000, 81.852,0,0) #shpdump NONEEA_region.shp |head #Shapefile Type: Polygon # of Shapes: 8 #File Bounds: ( -73.054, 3.493,0,0) # to ( 134.774, 83.624,0,0) #shpdump STATION_point.shp |head #Shapefile Type: Point # of Shapes: 154 #File Bounds: ( -9.020, 37.370,0,0) # to ( 28.780, 68.900,0,0) #shpdump WPEU3M_polyline.shp |head #Shapefile Type: Arc # of Shapes: 6158 #File Bounds: ( -22.979, 36.279,0,0) # to ( 66.209, 72.031,0,0) #shpdump EEA_region_Clip.shp |head #Shapefile Type: Polygon # of Shapes: 376 #File Bounds: ( -10.475, 36.065,0,0) # to ( 29.804, 69.753,0,0) #shpdump NONEEA_region_Clip.shp |head #Shapefile Type: Polygon # of Shapes: 9 #File Bounds: ( 0.157, 36.069,0,0) # to ( 29.804, 42.110,0,0) #shpdump WPEU3M_polyline_Clip.shp |head #Shapefile Type: Arc # of Shapes: 4933 #File Bounds: ( -10.158, 36.279,0,0) # to ( 29.804, 69.751,0,0) #-------------------------------------------------------- #BOD5-broken LAYER NAME bod_idw TYPE raster STATUS off OFFSITE 0 #palette entry no to be considered transparent DATA bod_idw.tif END # LAYER #-------------------------------------------------------- #Phosphorous - works LAYER NAME phosphorus_idw TYPE raster STATUS off OFFSITE 0 #palette entry no to be considered transparent DATA Phosphorus_idw.tif END # LAYER #-------------------------------------------------------- #Nitrate image - works LAYER NAME nitrate_idw TYPE raster STATUS off OFFSITE 0 #palette entry no to be considered transparent DATA nitrate_idw.tif END # LAYER #-------------------------------------------------------- #PH image - works LAYER NAME ph_idw TYPE raster STATUS on OFFSITE 0 #palette entry no to be considered transparent DATA PH_IDW8bit2.tif END # LAYER #-------------------------------------------------------- #shpdump SEA_rectangle.shp |head #Shapefile Type: Polygon # of Shapes: 1 #File Bounds: ( -11.576, 36.060,0,0) # to ( 29.804, 69.777,0,0) LAYER NAME Sea TYPE Polygon STATUS off DATA SEA_rectangle #MAXSCALE 5000 CLASS Name 'Sea' COLOR 172 202 238 OUTLINECOLOR -1 -1 -1 END # CLASS END # LAYER #-------------------------------------------------------- #shpdump EEA_region_Clip.shp |head #Shapefile Type: Polygon # of Shapes: 376 #File Bounds: ( -10.475, 36.065,0,0) # to ( 29.804, 69.753,0,0) # This is to make a double layer for the country boundaries #------------------------------------------------------- LAYER NAME EEARegions TYPE Polygon STATUS on DATA EEA_region_Clip #MINSCALE 5000 #MAXSCALE 75000 CLASS Name 'EEA Region' COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 SIZE 5 SYMBOL 0 END # CLASS END # LAYER #-------------------------------------------------------- #shpdump NONEEA_region_Clip.shp |head #Shapefile Type: Polygon # of Shapes: 9 #File Bounds: ( 0.157, 36.069,0,0) # to ( 29.804, 42.110,0,0) LAYER NAME NONEEARegion TYPE Polygon STATUS on DATA NONEEA_region_Clip CLASS Name 'Non EEA Region' #COLOR 255 0 0 OUTLINECOLOR 216 0 0 #SYMBOL 'dashed-line' SIZE 4 END # CLASS END # LAYER #-------------------------------------------------------- #shpdump WPEU3M_polyline_Clip.shp |head #Shapefile Type: Arc # of Shapes: 4933 #File Bounds: ( -10.158, 36.279,0,0) # to ( 29.804, 69.751,0,0) LAYER NAME Rivers TYPE Line STATUS on #MINSCALE 1000000 DATA WPEU3M_polyline_Clip HEADER 'rivers_header.html' METADATA "DESCRIPTION" "Rivers" "RESULT_FIELDS" "WPCDCN1 WPCDCN2" END #LABELITEM 'WPCDCN1' CLASS Name 'Rivers' COLOR 0 0 255 OUTLINECOLOR 0 0 0 TEMPLATE "river_query_query.html" # LABEL # ANGLE AUTO # SIZE 8 # MINSIZE 8 # MAXSIZE 16 # COLOR 0 0 0 # #WRAP ' ' #character to wrap lines with # #OUTLINECOLOR 255 0 0 #for 'glow' labels # TYPE TRUETYPE # FONT arial # ANTIALIAS # BUFFER 4 # END END # CLASS END # LAYER #-------------------------------------------------------- #shpdump Europe_Towns.shp |head #Shapefile Type: Point # of Shapes: 21731 #File Bounds: ( -9.700, 35.010,0,0) # to ( 30.930, 68.650,0,0) #NAME TOWN_CLASS POPN_BAND_ COUNTRY 1ST_ORDER_ 2ND_ORDER_ EASTING NORTHING POPN_000S popbnd LAYER NAME Towns TYPE POINT #MAXSCALE 10000 STATUS on DATA Europe_Towns TEMPLATE 'towns_header.html' POSTLABELCACHE true #render this layer after all others #LABELCACHE on METADATA "DESCRIPTION" "Population Centers" "RESULT_FIELDS" "NAME COUNTRY POPN_000S" END CLASSITEM 'TOWN_CLASS' CLASS NAME 'NationalCapital' EXPRESSION 'NATIONAL CAPITAL 1 MILLION TO 2 MILL' SYMBOL 2 SIZE 9 COLOR 255 0 0 END # CLASS CLASS NAME 'NationalCapital' EXPRESSION 'NATIONAL CAPITAL 2 MILLION TO 3 MILL' SIZE 9 SYMBOL 2 COLOR 255 0 0 END # CLASS CLASS NAME 'NationalCapital' EXPRESSION 'NATIONAL CAPITAL 3 MILLION TO 4 MILL' SIZE 9 SYMBOL 2 COLOR 255 0 0 END # CLASS CLASS NAME 'NationalCapital' EXPRESSION 'NATIONAL CAPITAL OVER 5 MILLION' #TEXT '*' SIZE 10 SYMBOL 2 COLOR 255 0 0 END # CLASS CLASS NAME 'NationalCapital' EXPRESSION 'NATIONAL CAPITAL 500,000 TO 1 MILLIO' SIZE 8 SYMBOL 2 COLOR 255 0 0 END # CLASS CLASS NAME 'NationalCapital' EXPRESSION 'NATIONAL CAPITAL 250,000 TO 500,000' SIZE 7 SYMBOL 2 COLOR 255 0 0 END # CLASS CLASS NAME 'NationalCapital' EXPRESSION 'NATIONAL CAPITAL 50,000 TO 100,000' SIZE 6 SYMBOL 2 COLOR 255 0 0 END # CLASS END # LAYER #-------------------------------------------------------- # This is a layer for smaller towns #-------------------------------------------------------- #shpdump Europe_Towns.shp |head #Shapefile Type: Point # of Shapes: 21731 #File Bounds: ( -9.700, 35.010,0,0) # to ( 30.930, 68.650,0,0) #NAME TOWN_CLASS POPN_BAND_ COUNTRY 1ST_ORDER_ 2ND_ORDER_ EASTING NORTHING POPN_000S popbnd LAYER NAME Towns TYPE POINT #MAXSCALE 10000 STATUS on DATA Europe_Towns TEMPLATE 'towns_header.html' CLASSITEM 'TOWN_CLASS' CLASS EXPRESSION ('[popbnd]' gt 200000) NAME 'OTHER' SIZE 2 SYMBOL 3 COLOR 255 0 0 END # CLASS END # LAYER #-------------------------------------------------------- #shpdump Europe_Towns.shp |head #Shapefile Type: Point # of Shapes: 21731 #File Bounds: ( -9.700, 35.010,0,0) # to ( 30.930, 68.650,0,0) #NAME TOWN_CLASS POPN_BAND_ COUNTRY 1ST_ORDER_ 2ND_ORDER_ EASTING NORTHING POPN_000S popbnd # # THIS IS AN ANNOTATION LAYER FOR TOWNS #-------------------------------------------------------- LAYER NAME TownLabels TYPE ANNOTATION #MAXSCALE 10000 STATUS on DATA Europe_Towns TEMPLATE 'towns_header.html' POSTLABELCACHE true #render this layer after all others #LABELCACHE on LABELITEM 'NAME' CLASSITEM 'TOWN_CLASS' CLASS NAME 'NationalCapital' EXPRESSION 'NATIONAL CAPITAL OVER 5 MILLION' LABEL SIZE 13 FONT arialbold TYPE TRUETYPE POSITION uc COLOR 0 0 0 OUTLINECOLOR 255 255 255 #for 'glow' labels ANTIALIAS BUFFER 4 END END # CLASS CLASS NAME 'NationalCapital' EXPRESSION 'NATIONAL CAPITAL 3 MILLION TO 4 MILL' LABEL SIZE 12 FONT arialbold TYPE TRUETYPE POSITION uc COLOR 0 0 0 OUTLINECOLOR 255 255 255 #for 'glow' labels ANTIALIAS BUFFER 4 END END # CLASS CLASS NAME 'NationalCapital' EXPRESSION 'NATIONAL CAPITAL 2 MILLION TO 3 MILL' LABEL SIZE 11 FONT arialbold TYPE TRUETYPE COLOR 0 0 0 POSITION uc OUTLINECOLOR 255 255 255 #for 'glow' labels ANTIALIAS BUFFER 2 END END # CLASS CLASS NAME 'NationalCapital' EXPRESSION 'NATIONAL CAPITAL 1 MILLION TO 2 MILL' LABEL SIZE 10 FONT arialbold TYPE TRUETYPE POSITION uc COLOR 0 0 0 OUTLINECOLOR 255 255 255 #for 'glow' labels ANTIALIAS BUFFER 2 END END # CLASS CLASS NAME 'NationalCapital' EXPRESSION 'NATIONAL CAPITAL 500,000 TO 1 MILLIO' LABEL SIZE 10 FONT arialbold TYPE TRUETYPE POSITION uc COLOR 255 0 0 OUTLINECOLOR 255 255 255 #for 'glow' labels ANTIALIAS BUFFER 2 END END # CLASS CLASS NAME 'NationalCapital' EXPRESSION 'NATIONAL CAPITAL 250,000 TO 500,000' LABEL SIZE 7 FONT arialbold TYPE TRUETYPE COLOR 0 0 0 POSITION uc OUTLINECOLOR 255 255 255 #for 'glow' labels ANTIALIAS BUFFER 2 END END # CLASS CLASS NAME 'NationalCapital' EXPRESSION 'NATIONAL CAPITAL 50,000 TO 100,000' LABEL SIZE 6 FONT arialbold TYPE TRUETYPE COLOR 255 0 0 POSITION uc OUTLINECOLOR 255 255 255 #for 'glow' labels ANTIALIAS BUFFER 2 END END # CLASS END # LAYER #-------------------------------------------------------- #shpdump STATION_point.shp |head #Shapefile Type: Point # of Shapes: 154 #File Bounds: ( -9.020, 37.370,0,0) # to ( 28.780, 68.900,0,0) # Fields in dbf: # CO STNR QUALIFIER LOCATION R_NAME EEASTNR LAT LONG OLD_ID FLOW PH CONDUCTIVI # CHLORIDES DO BOD5 COD AMMONIUM NITRATE PHOSPHORUS IAMMONIUM INITRATE IPHOSPHORU LAYER NAME Stations TYPE POINT #MAXSCALE 10000 STATUS on DATA STATION_point TEMPLATE 'stations_header.html' HEADER 'stations_header.html' METADATA "DESCRIPTION" "Sampling Stations" "RESULT_FIELDS" "STNR R_NAME FLOW" END #QUERY #TEMPLATE os labels_query.html #END # QUERY #CLASSITEM 'LOCATION' CLASS Name 'Stations' TEXT 'x' COLOR 153 153 153 LABEL SIZE 8 MINSIZE 6 MAXSIZE 16 FONT tomahabold COLOR 0 0 0 #WRAP ' ' #character to wrap lines with OUTLINECOLOR 255 255 255 #for 'glow' labels TYPE TRUETYPE ANTIALIAS END END # CLASS END # LAYER #-------------------------------------------------------- END # MAPFILE From pha at plan.at Wed Dec 19 06:30:36 2001 From: pha at plan.at (Peter Haussl) Date: Wed, 19 Dec 2001 15:30:36 +0100 Subject: [mapserver-users] Problems with PHP MapScript and Tiles unde WinNT 4.0 Message-ID: Hi Steve! I'm using PHP MapScript 3.5 (php_mapscript_35.dll date 2001-10-15). If I use the following Layer in my Mapfile (which works using the CGI) LAYER NAME Rivers TYPE Line STATUS default DATA l_wl TILEINDEX tiles # MINSCALE 1000 # MAXSCALE 150000 CLASSITEM 'layer' LABELITEM 'name' LABELMAXSCALE 25000 CLASS EXPRESSION /^q$|^qm$|^qo$|^qw$|^Q$|^QM$|^QO$|^QW$/ SYMBOL 'circle' # MINSIZE 1 # MAXSIZE 5 SIZE 4 COLOR 100 100 255 END END The php_mapscript_35.dll produces a Dr. Watson error message. The same layer without Tileindex seems to work! Is there a special Version working together with tile or is there a Bug? Many thx Peter Greetings from Austria / Europe From morissette at dmsolutions.ca Wed Dec 19 06:40:40 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 19 Dec 2001 09:40:40 -0500 Subject: [mapserver-users] getSymbol(): (BUFFER):395 error References: Message-ID: <3C20A6E8.D13C4093@dmsolutions.ca> Tim Sutton wrote: > > Hi > > I have just upgraded my cvs to get up to date with 3.5 stable. My last > build was made about 1.5 months back. I am using phpmapscript with php > as a CGI. When I use the version built from todays cvs update, I get > an error reading my map file: > > Warning: MapServer Error in getSymbol(): (BUFFER):(395) > The line that comes before line 395 in your mapfile contains the "ANTIALIAS" keyword whose syntax has changed a few weeks ago. Now the ANTIALIAS takes a boolean parameter, so the following should work: ANTIALIAS TRUE BUFFER 4 Note that the same change also happened with keyword "FILLED" in symbol files. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Wed Dec 19 07:05:32 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 19 Dec 2001 10:05:32 -0500 Subject: [mapserver-users] Problems with PHP MapScript and Tiles unde WinNT 4.0 References: Message-ID: <3C20ACBC.97C37A3E@dmsolutions.ca> Peter, A few notes: 1- Do all the shapefiles in your tiled layer share the exact same set of attributes? This is very important. All the files in a tiled layer must have the same attributes and in the same order. 2- You should try this again with the 3.5 release DLL once one becomes available. If this problem still happens after this, then if possible send us a copy of the data and PHP script and exact steps to reproduce and we'll have a look. Daniel Peter Haussl wrote: > > Hi Steve! > > I'm using PHP MapScript 3.5 (php_mapscript_35.dll date 2001-10-15). > If I use the following Layer in my Mapfile (which works using the CGI) > > LAYER > NAME Rivers > TYPE Line > STATUS default > DATA l_wl > TILEINDEX tiles > # MINSCALE 1000 > # MAXSCALE 150000 > CLASSITEM 'layer' > LABELITEM 'name' > LABELMAXSCALE 25000 > CLASS > EXPRESSION /^q$|^qm$|^qo$|^qw$|^Q$|^QM$|^QO$|^QW$/ > SYMBOL 'circle' > # MINSIZE 1 > # MAXSIZE 5 > SIZE 4 > COLOR 100 100 255 > END > END > > The php_mapscript_35.dll produces a Dr. Watson error message. > The same layer without Tileindex seems to work! > > Is there a special Version working together with tile or is there a Bug? > > Many thx > > Peter > > Greetings from Austria / Europe From woodbri at swoodbridge.com Wed Dec 19 07:17:32 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 19 Dec 2001 10:17:32 -0500 Subject: [mapserver-users] Question generated by the Topo thread Message-ID: <3C20AF8C.97B5A1BD@swoodbridge.com> Ed, Steve, et al, The topo thread got me to wondering if mapserver handles shape files with the polygon net with Z-values or measurement values? And if so how does it render them. You could define a sun location in the config file then take the angle between the sun and the facet normal as the intensity of the facet and generate shaded backgrounds very effiently (ie not much math involved). This would generate very nice looking 3D effects. If would be more compute intensive to generate topo elevation lines on the fly, but these could be pre-computed ans saved into shape files, based on the polygon net files. The same thing could be done for native DEM support. This has probably already been discussed, I should probably check the archives. -Steve From sutton_t at giug.net Wed Dec 19 07:20:04 2001 From: sutton_t at giug.net (Tim Sutton) Date: Wed, 19 Dec 2001 15:20:04 +0000 (GMT) Subject: [mapserver-users] getSymbol(): (BUFFER):395 error In-Reply-To: <3C20A6E8.D13C4093@dmsolutions.ca> Message-ID: HI Many thanks for your help. That sorted out that problem. Now my page comes up with the following error: msGetLabelSize(): libgd was not built with FreeType font support. The same version on gd ftype etc and same font defs were used in my project with an earlier version of mapserver and worked fine. I will try recompiling gd to sort this one out..... Cheers Tim On Wed, 19 Dec 2001, Daniel Morissette wrote: > Tim Sutton wrote: > > > > Hi > > > > I have just upgraded my cvs to get up to date with 3.5 stable. My last > > build was made about 1.5 months back. I am using phpmapscript with php > > as a CGI. When I use the version built from todays cvs update, I get > > an error reading my map file: > > > > Warning: MapServer Error in getSymbol(): (BUFFER):(395) > > > > The line that comes before line 395 in your mapfile contains the > "ANTIALIAS" keyword whose syntax has changed a few weeks ago. Now the > ANTIALIAS takes a boolean parameter, so the following should work: > > ANTIALIAS TRUE > BUFFER 4 > > Note that the same change also happened with keyword "FILLED" in symbol > files. > -- ----------------------------------------------------- Tim Sutton WRc plc Consultant, GIS Solutions Group Frankland Road Direct line: +44 (0) 1793 865056 Blagrove Switchboard: +44 (0) 1793 865000 Swindon Fax: +44 (0) 1793 865001 Wiltshire SN5 8YF United Kingdom WRc - Solutions for Water, Waste and the Environment ----------------------------------------------------- From teb at mallit.fr.umn.edu Wed Dec 19 07:34:24 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 19 Dec 2001 09:34:24 -0600 (CST) Subject: [mapserver-users] Query of Inline Feature Layer (FWD) Message-ID: <200112191534.JAA24991@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Rob Smith" To: Subject: Query of Inline Feature Layer Date: Tue, 18 Dec 2001 18:39:27 -0500 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mimeole: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Greetings fellow developers, I'm struggling with the correct approach to query a layer containing only inline features. Mapserv does not return a response when I use the URL and layer specs as shown below. Any ideas? Thanks. http :/myserver/log1/map/map.asp?mode=query&layer=statesp020&layer=test&zoomdir=0 &zoomsize=2&map=c%3A%5CBizTIME%5Ctmpmap%5Cdemo.map&imgxy=299.5+299.5&imgext= -123.668488+22.076244+-61.668488+55.804842&mapext=shapes&img.x=272&img.y=132 layer info from demo.map: ------------------------ LAYER NAME "test" STATUS DEFAULT TRANSFORM TRUE TYPE POLYGON FEATURE POINTS -86.75 42.1 -96.75 35.1 -96.75 42.1 -86.75 42.1 END TEXT 'Test Triangle' END CLASS COLOR 100 100 100 END TOLERANCE 8 QUERY TEMPLATE "my_template.html" END END ------------------------ Thanks in advance, Rob ------------- End Forwarded Message ------------- From Chip.Hankley at GASAI.Com Wed Dec 19 08:25:37 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 19 Dec 2001 10:25:37 -0600 Subject: [mapserver-users] Problems with PHP MapScript and Tiles unde WinNT 4.0 Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010AB7EC@postoffice.GASAI.Com> Peter, I was having a similar problem... have you, by chance, created a spatial index on the layer using SHPTREE? This was the case for me. If I deleted the *.qix file, it worked; with it there, Doc Watson. I believe that the guys at DMSolutions found a bug related to this and fixed it (this was after your 10-15-2000 *.dll). So, you'll either have to re-compile or wait for a new dll. Cheers! Chip Hankley -----Original Message----- From: Peter Haussl [mailto:pha at plan.at] Sent: Wednesday, December 19, 2001 8:31 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Problems with PHP MapScript and Tiles unde WinNT 4.0 Hi Steve! I'm using PHP MapScript 3.5 (php_mapscript_35.dll date 2001-10-15). If I use the following Layer in my Mapfile (which works using the CGI) LAYER NAME Rivers TYPE Line STATUS default DATA l_wl TILEINDEX tiles # MINSCALE 1000 # MAXSCALE 150000 CLASSITEM 'layer' LABELITEM 'name' LABELMAXSCALE 25000 CLASS EXPRESSION /^q$|^qm$|^qo$|^qw$|^Q$|^QM$|^QO$|^QW$/ SYMBOL 'circle' # MINSIZE 1 # MAXSIZE 5 SIZE 4 COLOR 100 100 255 END END The php_mapscript_35.dll produces a Dr. Watson error message. The same layer without Tileindex seems to work! Is there a special Version working together with tile or is there a Bug? Many thx Peter Greetings from Austria / Europe From bart at atsence.nl Wed Dec 19 09:03:58 2001 From: bart at atsence.nl (Bart van Heijningen) Date: Wed, 19 Dec 2001 18:03:58 +0100 Subject: [mapserver-users] Another Rosa applet question with CGI In-Reply-To: <20011218170928.A31440@intevation.de> Message-ID: Hi all, You were right about the errors. The fact that I got the warnings/errors was that I changed my configuration and compiled with the original configure. For RH however one needs the ms34_configure-RH7-20010219_tar.gz configure patch. After using this one all compiles fine. I can run the compiled CGI but now I (still) do not succeed in passing parameters from the rosa applet to the CGI, I cannot find any code examples other than the ones which were posted earlier, they do not however list the template file variables and use specific functions. I cannot find examples for the ROSA which can be generally applied, as is the case with the Mapplet which allows you to have a working setup fromwhich you can work. I would like to know what variables in the template file I should use to pass to the CGI and a simple submit function. I figure that if I can get a one (zoom) button to work the others will follow.... I hope.. Regards, Bart -----Oorspronkelijk bericht----- Van: frank at intevation.de [mailto:frank at intevation.de]Namens Frank Koormann Verzonden: dinsdag 18 december 2001 17:09 Aan: Bart van Heijningen CC: Timothy.Mackey at agso.gov.au; perik at azimuth.nl; mapserver-users at lists.gis.umn.edu Onderwerp: Re: [mapserver-users] Another Rosa applet question Bart, * Bart van Heijningen (bart at atsence.nl) [011218 12:28]: > Hi, > This message is actually meant for Tim Mackey but anyone else is welcomed to > answer of course. > > I used Tim's mapserv.c patch for version 3.4 to compile the mapserver CGI > for use with the rosa applet. > > I give you a rough idea about the compilation problems I encountered: > > mapsymbol.c and maplabel.c complain about unused variables like the "Unused > variable bbox, font and rect" > > mapraster.c complains bout drawGEN which is defined bun not used > So far this should only be warnings. All of them have nothing to do with Tim's patch. I have set up a patch for MapServer 3.4 based on Tim's work. It can be found at: http://www2.dmsolutions.ca/webtools/rosa/mapserver-rosa-patch.tar or http://www2.dmsolutions.ca/webtools/rosa/mapserver-rosa-patch.zip > and some other errors which are most likely the result of these first few > messages. Does occur real errors during compilation? Can't you execute the comiled binary? Please post more details. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From SDunning at nephrology.org Wed Dec 19 12:14:57 2001 From: SDunning at nephrology.org (Stephan Dunning) Date: Wed, 19 Dec 2001 14:14:57 -0600 Subject: [mapserver-users] New site using MapServer Message-ID: I wanted to tell you all about the application I've been working on. It was released to the Web this morning. It's called RenDER (stands for Renal Data Extraction and Referencing). The system allows users to query a database to get information regarding Chronic Kidney Failure patients in the U.S. and look at the data in a table or an interactive map with some customization capabilities. The mapping application was born from DM Solutions Gmap demo, uses PHP & PHP/Mapscript to dynamically create the pages, and the ROSA Applet for navigation/map query. I plan on adding more statistical computations in the future as only patient counts and percents are currently available. Please take a look. http://www.usrds.org/odr/render_home.asp From info at pescatoreluca.com Wed Dec 19 12:17:41 2001 From: info at pescatoreluca.com (Luca Pescatore) Date: Wed, 19 Dec 2001 21:17:41 +0100 Subject: [mapserver-users] Setting Up Color in ms_newpointobj Object In-Reply-To: References: <20011218170928.A31440@intevation.de> Message-ID: <5.1.0.14.0.20011219211014.034bd010@www.pescatoreluca.com> How can i set color in a ms_newpointobj object ? $map Map Object $oLayer Layer Object $img Img Object $oPixelPos = ms_newpointobj(); $oPixelPos->setXY($geoX, $geoY); $valore = $oPixelPos->draw($map, $oLayer, $img, 0, "123"); ColorObj Class may help because Instances of ColorObj are always embedded inside other classes, but if i try to use setRGB(int red, int green, int blue) like $oPixelPos->setRGB($red, $green, $blue); i get this error : Call to undefined function: setrgb... E.g. $oPixelPos = ms_newpointobj(); $oPixelPos->setRGB(0, 0, 0); $oPixelPos->setXY($geoX, $geoY); $valore = $oPixelPos->draw($map, $oLayer, $img, 0, "123"); Best Regards, Luca From steve.lime at dnr.state.mn.us Wed Dec 19 14:20:41 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 19 Dec 2001 16:20:41 -0600 Subject: [mapserver-users] Fwd: excuse me may someone help me? Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: Eric Chou Subject: excuse me may someone help me? Date: Wed, 19 Dec 2001 16:58:41 +0100 Size: 1936 URL: From steve.lime at dnr.state.mn.us Wed Dec 19 14:30:21 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 19 Dec 2001 16:30:21 -0600 Subject: [mapserver-users] Fwd: Problems with Mapserver Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: "Fabrice da Palma e Brito" Subject: Problems with Mapserver Date: Wed, 19 Dec 2001 10:52:57 -0000 Size: 3195 URL: From pkishor at GeoAnalytics.com Wed Dec 19 14:34:27 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 19 Dec 2001 16:34:27 -0600 Subject: [mapserver-users] mapscript docs Message-ID: ok gentlefolks, I am completely lost now. Having been following the list in a cursory fashion (you know how bad I am with email lists) I realized today that 3.5 has been officially released. I jumped up and down with joy. Downloaded, installed, checked with the demo app... all copacetic. Then... I can't find any docs for mapscript... it says teasingly that its "coming soon..." I went and dutifully searched the list archives. drew a blank there. I also searched my own Access db of the list (yup, I have all the messages since 7/17/2001 archived in Access)... nothing on Perl/Mapscript. What did I miss? I had created a nice application using ms3.4 and PHP/Mapscript on a Linux box, but I discovered soon that it won't work on my Windoze 2k box running Apache... I learned PHP dll won't work with "a multithreaded webserver" unless I run PHP in CGI mode. Shucks, because I ain't gonna mess with my PHP. So, I'm gonna rewrite my app in Perl. But I need the Perl/Mapscript docs. Hence this email. Tia, pk/ From jsmedsmo at gis.umn.edu Wed Dec 19 15:22:59 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Wed, 19 Dec 2001 17:22:59 -0600 Subject: [mapserver-users] mapscript docs References: Message-ID: <3C212153.6030004@gis.umn.edu> Hi Puneet, My fault. I forgot to put a link on the new documentation page to the old one. There is now a link under "Other Topics". You can find it at http://mapserver.gis.umn.edu/3.3/doc.html. Let me know if you find any broken links. Jamie Smedsmo University of Minnesota Puneet Kishor wrote: >ok gentlefolks, > >I am completely lost now. Having been following the list in a cursory >fashion (you know how bad I am with email lists) I realized today that 3.5 >has been officially released. I jumped up and down with joy. Downloaded, >installed, checked with the demo app... all copacetic. Then... > >I can't find any docs for mapscript... it says teasingly that its "coming >soon..." > >I went and dutifully searched the list archives. drew a blank there. I also >searched my own Access db of the list (yup, I have all the messages since >7/17/2001 archived in Access)... nothing on Perl/Mapscript. > >What did I miss? > >I had created a nice application using ms3.4 and PHP/Mapscript on a Linux >box, but I discovered soon that it won't work on my Windoze 2k box running >Apache... I learned PHP dll won't work with "a multithreaded webserver" >unless I run PHP in CGI mode. Shucks, because I ain't gonna mess with my >PHP. > >So, I'm gonna rewrite my app in Perl. But I need the Perl/Mapscript docs. >Hence this email. > >Tia, > >pk/ > > From pkishor at GeoAnalytics.com Wed Dec 19 15:16:27 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 19 Dec 2001 17:16:27 -0600 Subject: [mapserver-users] mapscript docs Message-ID: Thanks Jamie, for the quick reply. Looking at your link... I am assuming Mapscript itself has not changed since 3.3, no? Hence the old docs are still valid? pk/ > -----Original Message----- > From: Jamie Smedsmo [mailto:jsmedsmo at gis.umn.edu] > Sent: Wednesday, December 19, 2001 5:23 PM > To: Puneet Kishor > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] mapscript docs > > > Hi Puneet, > > My fault. I forgot to put a link on the new documentation > page to the > old one. There is now a link under "Other Topics". You can > find it at > http://mapserver.gis.umn.edu/3.3/doc.html. > > Let me know if you find any broken links. > Jamie Smedsmo > University of Minnesota > > Puneet Kishor wrote: > > >ok gentlefolks, > > > >I am completely lost now. Having been following the list in a cursory > >fashion (you know how bad I am with email lists) I realized > today that 3.5 > >has been officially released. I jumped up and down with joy. > Downloaded, > >installed, checked with the demo app... all copacetic. Then... > > > >I can't find any docs for mapscript... it says teasingly > that its "coming > >soon..." > > > >I went and dutifully searched the list archives. drew a > blank there. I also > >searched my own Access db of the list (yup, I have all the > messages since > >7/17/2001 archived in Access)... nothing on Perl/Mapscript. > > > >What did I miss? > > > >I had created a nice application using ms3.4 and > PHP/Mapscript on a Linux > >box, but I discovered soon that it won't work on my Windoze > 2k box running > >Apache... I learned PHP dll won't work with "a multithreaded > webserver" > >unless I run PHP in CGI mode. Shucks, because I ain't gonna > mess with my > >PHP. > > > >So, I'm gonna rewrite my app in Perl. But I need the > Perl/Mapscript docs. > >Hence this email. > > > >Tia, > > > >pk/ > > > > > > From andy at metacarta.com Wed Dec 19 15:27:59 2001 From: andy at metacarta.com (Andy Latto) Date: Wed, 19 Dec 2001 18:27:59 -0500 Subject: [mapserver-users] Where has the documentation gone? Message-ID: I started using mapserver on Monday. The documentation page at http://mapserver.gis.umn.edu/doc.html included a CGI reference, and documentation for the template file format. Today the CGI reference is not there, and what used to be a link to it is labelled "coming soon", and the link to the template file doc is gone completely. I'm guessing that this is because a new version, 3.5, has come out, but I still find this somewhat distressing. Even if the documentation is out of date, it's still better than nothing. I would be happy to continue using 3.3 or 3.4, if documentation for 3.5 isn't yet available, but now I don't have the documentation for the old version, either. Would it be possible to put a link to the old documentation back up, even if it is only accurate for the old version? I'd also like to suggest that the documentation files for a version be included in the downloadable tar file for that version. If this had been done, the disappearance of the documentation from the web site wouldn't have left me suddenly dead in the water. Andy Latto From pnaciona at gis.umn.edu Wed Dec 19 15:52:59 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Wed, 19 Dec 2001 17:52:59 -0600 Subject: [mapserver-users] MapServer Docs Message-ID: Folks, The old docs are there. Jamie just forgot to add the link to it. So, be happy, be joyful, and celebrate your favorite holiday! Happy, happy! Joy, joy! -Perry N From AWOOLEY at mountainland.org Wed Dec 19 16:04:28 2001 From: AWOOLEY at mountainland.org (ANDREW WOOLEY) Date: Wed, 19 Dec 2001 17:04:28 -0700 Subject: [mapserver-users] 3.5 compile problems Message-ID: Folks, I have really been looking forward to and am excited about the PDF support in mapserver. Thanks very much for doing it. However, I cannot get it to compile. I downloaded and installed pdflib with c++ support (which may or may not be the problem) and I am pretty sure it was done properly. When I attempt to compile mapserver with PDF, it chokes and looks like this: mappdf.c: In function `msDrawMarkerSymbolPDF': mappdf.c:325: warning: implicit declaration of function `gdFree' ar rc libmap.a mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o maptree. o mapsearch.o mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o mapquer y.o maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mapp ostgis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o maporaclespatial.o mapgml.o map projhack.o epplib.o mappdf.o ranlib libmap.a gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WM S -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_PD F -I/usr/include shp2img.c -o shp2img.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_PDF -I/usr/include shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreet ype -lpng -lz -lpdf -ltiff -ljpeg -lfreetype -lpng -lz -lproj -ljpeg -lm -o sh p2img gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WM S -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_PD F -I/usr/include shp2pdf.c -o shp2pdf.o shp2pdf.c: In function `main': shp2pdf.c:51: warning: unused variable `FontHash' shp2pdf.c:50: warning: unused variable `MapPixelSize' shp2pdf.c:49: warning: unused variable `MapScaleFactor' shp2pdf.c:37: warning: unused variable `img' gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_PDF -I/usr/include shp2pdf.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreet ype -lpng -lz -lpdf -ltiff -ljpeg -lfreetype -lpng -lz -lproj -ljpeg -lm -o sh p2pdf ./libmap.a(mappdf.o): In function `msDrawMarkerSymbolPDF': mappdf.o(.text+0xc5c): undefined reference to `gdFree' collect2: ld returned 1 exit status make: *** [shp2pdf] Error 1 It compiles fine when I set the --without-pdf flag. Oh yeah, when I run the configure script, it checks for pdf libs and seems to find them OK. Any ideas or assistance would be much appreciated. Thanks Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From philip_mccarthy at hotmail.com Wed Dec 19 15:02:20 2001 From: philip_mccarthy at hotmail.com (Philip McCarthy) Date: Wed, 19 Dec 2001 23:02:20 -0000 Subject: [mapserver-users] Can anyone help? References: Message-ID: Hi I'm new to MapServer. I'm running version 3.3 on Win2k. I have the demo working but I need so help on how to get my own shape files working etc. I have a shape file created in Arcview 3.1 and a couple of dbf files. I have tried changing the demo files and making my own map file but i'm not having any luck. I understand the basics of the map files from what I have read on the site, but i'm not so clear on the templates. I need to know what to do, and what files are required to create my own map page (application). Is there anymore documentation available for the system? tutorials, how to's etc Can anyone help? Thanks from Phil From mschulz at webgis.de Thu Dec 20 03:09:24 2001 From: mschulz at webgis.de (Michael Schulz - GIS Bearbeiter) Date: Thu, 20 Dec 2001 12:09:24 +0100 Subject: [mapserver-users] One MapServer-Site more... Message-ID: <3C21C6E4.E7C7B1A1@webgis.de> Dear MapServers, i justed wanted to inform the list, that we have released a Mapserver-Site that is accessible to the public. The maps shown on this site are the product of a three year long project called "INTERREG II". This project was funded by the EU and its objective was to create a groundwater and soil information database for the region of the high Rhin River between Basle (Switzerland) and the Lake Constance. The online application (which uses the mapserver-cgi and some javascript) shows divided in the two subjects hydrogeology and soils several themes and layers, eg. hydraulic head, aquifer thickness, geology, groundwater protection areas and others. The subject soils will be accessible in the next two weeks and also topographic raster data will be accessible soon. We also want to say thank you for the help and information we got from the list. Not to forget: the url: http://www.grundwasserleiter-hochrhein.de/ir_init.html Cheers and Happy Christmas to all, 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 joao at pmpf.rs.gov.br Thu Dec 20 03:44:10 2001 From: joao at pmpf.rs.gov.br (joao at pmpf.rs.gov.br) Date: Thu, 20 Dec 2001 11:44:10 -0000 Subject: [mapserver-users] lib6.so error Message-ID: <20011220114410.8FCA846EF6@mail.passofundo.rs.gov.br> Hello all I had istaled mapserver 3.5 but its is returning the following error: mapserv: error in loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory anybody could help me? Thanks Jo?o -- www.pmpf.rs.gov.br From morissette at dmsolutions.ca Thu Dec 20 05:17:20 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 20 Dec 2001 08:17:20 -0500 Subject: [mapserver-users] mapscript docs References: Message-ID: <3C21E4E0.B73271E8@dmsolutions.ca> Puneet Kishor wrote: > > I had created a nice application using ms3.4 and PHP/Mapscript on a Linux > box, but I discovered soon that it won't work on my Windoze 2k box running > Apache... I learned PHP dll won't work with "a multithreaded webserver" > unless I run PHP in CGI mode. Shucks, because I ain't gonna mess with my > PHP. > > So, I'm gonna rewrite my app in Perl. But I need the Perl/Mapscript docs. Puneet, I can't answer about the status of Perl MapScript 3.5 docs, but I know that Perl MapScript has changed since 3.3 so the old 3.3 docs won't be complete enough for sure. About your app, I think reconfiguring your PHP as a CGI is still the best route (it's not that big a change, all your stuff should still work after). First because you won't have to rewrite your app, but mostly because we're still waiting to hear from someone that has succesfully used Perl MapScript on Windoze... a few users have managed to compile it, but they all ran into problems when they tried using it AFAIK. Maybe someone has had more success recently, but I don't remember hearing anything about that. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From armin.burger at territoriumonline.com Thu Dec 20 05:22:04 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Thu, 20 Dec 2001 14:22:04 +0100 Subject: [mapserver-users] lib6.so error Message-ID: <200112201423.PAA12796@efferd.nettz.com> Jo?o, you can try it with adding the line /usr/local/lib (where libfreetype.so.6 probably resides) to the file /etc/ld.so.conf and then run 'ldconfig'. This worked for we with other libraries. You could also use setenv LD_LIBRARY_PATH /usr/lib;/usr/local/lib to add the library path. Or something similar with export for bash. Armin > Hello all > I had istaled mapserver 3.5 but its is returning the following error: > mapserv: error in loading shared libraries: libfreetype.so.6: cannot open > shared object file: No such file or directory > anybody could help me? > Thanks > Jo?o > -- > www.pmpf.rs.gov.br From gk1611 at ship.edu Thu Dec 20 06:14:34 2001 From: gk1611 at ship.edu (G Kelley) Date: Thu, 20 Dec 2001 09:14:34 -0500 (EST) Subject: [mapserver-users] problem with scalebar and legend images Message-ID: Hi, any advice anyone can give me would be greatly appreciated. My mapserver is not generating scalebar images at all (the file is not present in my output directory), and even though it does generate a legend image, the image is blank. The map image is being displayed fine, and otherwise, the interface seems to be working fine (panning, zooming, etc.). I checked the source of the HTML from a browser, and it seems to be generating the scalebar's filename correctly, however the scalebar file/image is never generated and placed on the server. Any ideas on why the scalebar file/image isn't being generated? Any ideas on why the legend is blank? Thanks, Gregg From Chip.Hankley at GASAI.Com Thu Dec 20 06:22:38 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 20 Dec 2001 08:22:38 -0600 Subject: [mapserver-users] FW: [ESRI-L] PHP and ArcIMS: beta connector Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010AB7F3@postoffice.GASAI.Com> FYI... Off topic, but thought this would be of some interest to many on the list. Plus it's licensed under GNU! Cheers! Chip -----Original Message----- From: Christoph Spoerri [mailto:spoerri at DUKE.EDU] Sent: Wednesday, December 19, 2001 1:48 PM To: ESRI-L at ESRI.COM Subject: [ESRI-L] PHP and ArcIMS: beta connector Hi, Early this summer I started working on a ArcIMS prototype for a website that uses PHP as scripting language. Since we didn't have ColdFusion and were using an apache server on a UNIX box, we couldn't use ASP either. And at last, the HTML viewer didn't do it either, since we tap into databases pretty heavily. So, I set out and created a basic php connector for ArcIMS. After a couple months of work, I had a working prototype as well as code I would like to share with other ArcIMS/PHP developers. I know there's some small demand for this, since I saw requests on ESRI's user forums. Now, I want to warn you. The work I have done is only based on my setup, experience and needs. What that means is: there are still bugs and missing functionality. But this is also an opportunity, since you can help figure out any problems, suggest new features and improvements, or even better, help me with the development work. What do you think? The existing work can be found at: http://phparcims.sourceforge.net Note: most of the work was done on my free time (what is not much), so things are pretty bare bone. This also means that I'm more than happy for any help, is it coding, testing or designing a nicer web page. So, please let me know what you think. thanks, Christoph ----------------------------------------- Christoph Spoerri email: spoerri at duke.edu From pkishor at GeoAnalytics.com Thu Dec 20 06:32:47 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 20 Dec 2001 08:32:47 -0600 Subject: [mapserver-users] MacOS X once again Message-ID: All right you brainiacs, Last night I got Mapserver to compile on MacOS X 10.1.1. Couldn't get gd12 to compile but did get gd184 to compile with jpeg and libpng. Then Mapserver compiled too, although it did puke out a thousand abuses at me. Then I ran Mapserver from the command line and it gave me the reassuring... [darwin/~pkishor]% ./mapserv This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. [darwin/~pkishor]% ahhhhhh... paydirt, you say. Not so quick, I say. First, I really need to compile it with gd12, because, while png is nice'n'all, my browsers don't do png. Second, I think those vituperations Mapserver hurled at me during compilation tell me something's wrong. When I tried to test with the itasca demo I got a bunch of binary crap in my browser... usually when the browser encounters a png file it simply pops up a box saying it doesn't know how to handle it. Not this time. This time it was a load of binary... the kind of comic characters you see the vikings speak in "Asterix in Scandinavia". I am going to do the whole thing again today, and try to capture the buffer from the terminal. I will also enlist the help of a colleague who knows a malloc from a mallet. My hope is once I get this running, I will package it up as an OS X binary package using packagemaker. Over and out. pk/ From pkishor at GeoAnalytics.com Thu Dec 20 06:36:19 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 20 Dec 2001 08:36:19 -0600 Subject: [mapserver-users] mapscript docs Message-ID: Hi Daniel, Thanks for the advice. > -----Original Message----- > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > Sent: Thursday, December 20, 2001 7:17 AM > To: Puneet Kishor > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] mapscript docs > > > Puneet Kishor wrote: > > > > I had created a nice application using ms3.4 and > PHP/Mapscript on a Linux > > box, but I discovered soon that it won't work on my Windoze > 2k box running > > Apache... I learned PHP dll won't work with "a > multithreaded webserver" > > unless I run PHP in CGI mode. Shucks, because I ain't gonna > mess with my > > PHP. > > > > So, I'm gonna rewrite my app in Perl. But I need the > Perl/Mapscript docs. > > Puneet, > > I can't answer about the status of Perl MapScript 3.5 docs, but I know > that Perl MapScript has changed since 3.3 so the old 3.3 docs won't be > complete enough for sure. I have asked SDL. He would know. > > About your app, I think reconfiguring your PHP as a CGI is still the > best route (it's not that big a change, all your stuff should > still work > after). First because you won't have to rewrite your app, but mostly > because we're still waiting to hear from someone that has succesfully > used Perl MapScript on Windoze... a few users have managed to compile > it, but they all ran into problems when they tried using it AFAIK. > Maybe someone has had more success recently, but I don't remember > hearing anything about that. > well, I don't wanna reconfig PHP as a CGI because that would affect my other PHP apps. Actually, I am quite eager to rewrite the app in Perl, and now that you say that no one has been able to make it work, well, that is enough incentive to make it. I am under no pressure to actually make the app work on Windoze (if I get under that pressure, I will surely modify PHP first). The Linux app is done and is working beautifully. The problem is it is intranet. And I wanted to show you all guys and do you proud. Also, I wanted to release my files so others may benefit from them. So, I will wait for SDL's response vis a vis Perl. Then maybe with Paul Ramsey's and SDL's help I can actually look into making it work with Perl on Windoze. Thanks. pk/ From lfilak at yahoo.com Thu Dec 20 07:15:14 2001 From: lfilak at yahoo.com (Lowell Filak) Date: Thu, 20 Dec 2001 07:15:14 -0800 (PST) Subject: [mapserver-users] MacOS X once again In-Reply-To: Message-ID: <20011220151514.84918.qmail@web11302.mail.yahoo.com> Check out http://www.rhyme.com.au/gd/ for a GIF capable GD. Lowell Filak --- Puneet Kishor wrote: > All right you brainiacs, > > Last night I got Mapserver to compile on MacOS X > 10.1.1. Couldn't get gd12 > to compile but did get gd184 to compile with jpeg > and libpng. Then Mapserver > compiled too, although it did puke out a thousand > abuses at me. > > Then I ran Mapserver from the command line and it > gave me the reassuring... > > [darwin/~pkishor]% ./mapserv > This script can only be used to decode form results > and > should be initiated as a CGI process via a httpd > server. > [darwin/~pkishor]% > > ahhhhhh... paydirt, you say. Not so quick, I say. > > First, I really need to compile it with gd12, > because, while png is > nice'n'all, my browsers don't do png. > > Second, I think those vituperations Mapserver hurled > at me during > compilation tell me something's wrong. When I tried > to test with the itasca > demo I got a bunch of binary crap in my browser... > > usually when the browser encounters a png file it > simply pops up a box > saying it doesn't know how to handle it. Not this > time. This time it was a > load of binary... the kind of comic characters you > see the vikings speak in > "Asterix in Scandinavia". > > I am going to do the whole thing again today, and > try to capture the buffer > from the terminal. I will also enlist the help of a > colleague who knows a > malloc from a mallet. My hope is once I get this > running, I will package it > up as an OS X binary package using packagemaker. > > Over and out. > > pk/ __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com From nwerneck at yahoo.com.br Thu Dec 20 07:15:33 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Thu, 20 Dec 2001 12:15:33 -0300 (ART) Subject: [mapserver-users] query in 3.5 Message-ID: <20011220151533.84129.qmail@web20006.mail.yahoo.com> Hello. I'm trying to set up a layer to itemquery it. I've tried to understand the new syntax, and as far as i got it, the declaration should be: LAYER NAME brestq DATA brest TYPE line STATUS default CLASS TEMPLATE redirbrasil.htm END END but mapserver complains that msQueryByAttributes(): Query error. Requested layer has no filter defined. What's the right way to create a layer like this? on 3.4 I just had a QUERYITEM and a QUERY definition with it's TEMPLATE. To implement a search like this with MapScript, should I test the shapefile feature by feature until I find what I want? thanks... ++nicolau _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. ? f?cil e gr?tis! http://br.geocities.yahoo.com/ From nwerneck at yahoo.com.br Thu Dec 20 07:35:43 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Thu, 20 Dec 2001 12:35:43 -0300 (ART) Subject: [mapserver-users] mapscript getShape Message-ID: <20011220153543.87130.qmail@web20009.mail.yahoo.com> hi in the layerObj's getShape: shapeObj getShape(int tileindex, int shapeindex) Retrieve shapeObj from a layer by index. what's titleindex? thanks ++nicolau _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. ? f?cil e gr?tis! http://br.geocities.yahoo.com/ From steve.lime at dnr.state.mn.us Thu Dec 20 07:48:53 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 20 Dec 2001 09:48:53 -0600 Subject: [mapserver-users] mapscript getShape Message-ID: It's unused unless you're using tiled shapefiles. Just set it to -1. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Nicolau Werneck 12/20/01 09:35AM >>> hi in the layerObj's getShape: shapeObj getShape(int tileindex, int shapeindex) Retrieve shapeObj from a layer by index. what's titleindex? thanks ++nicolau _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. ? f?cil e gr?tis! http://br.geocities.yahoo.com/ From nhv at cape.com Thu Dec 20 07:54:41 2001 From: nhv at cape.com (Norman Vine) Date: Thu, 20 Dec 2001 10:54:41 -0500 Subject: [mapserver-users] mapscript docs In-Reply-To: <3C21E4E0.B73271E8@dmsolutions.ca> Message-ID: <003301c1896e$a3976360$a300a8c0@nhv> Daniel Morissette writes: > but mostly >because we're still waiting to hear from someone that has succesfully >used Perl MapScript on Windoze... FWIW With Cygwin the perl made makefile doesn't work for me BUT !! I just tried a few of the tricks that I used to make the Python mapscript and I can make a mapscript.dll but I have no idea how to install it so that Perl will recognize mapscript. I tried creating and populating several direcrtories like $PERL5 / site / perl / 5.6.1 / cygwin-multi / mapscript puting mapscript.pm and mapscript.dll in them however nothing seemed to work, but then again I know nothing about Perl and how to set it up. So if someone can tell me where and how to install the mapscript modules so that Perl can pick them up and if this works, I should be able to create a 'generic' Makefile for a Cygwin mapscript Perl Cheers Norman From steve.lime at dnr.state.mn.us Thu Dec 20 07:54:08 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 20 Dec 2001 09:54:08 -0600 Subject: [mapserver-users] problem with scalebar and legend images Message-ID: We'd have to see the mapfile to be sure... Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> G Kelley 12/20/01 08:14AM >>> Hi, any advice anyone can give me would be greatly appreciated. My mapserver is not generating scalebar images at all (the file is not present in my output directory), and even though it does generate a legend image, the image is blank. The map image is being displayed fine, and otherwise, the interface seems to be working fine (panning, zooming, etc.). I checked the source of the HTML from a browser, and it seems to be generating the scalebar's filename correctly, however the scalebar file/image is never generated and placed on the server. Any ideas on why the scalebar file/image isn't being generated? Any ideas on why the legend is blank? Thanks, Gregg From gk1611 at ship.edu Thu Dec 20 08:02:12 2001 From: gk1611 at ship.edu (G Kelley) Date: Thu, 20 Dec 2001 11:02:12 -0500 (EST) Subject: [mapserver-users] mapfile for my problem Message-ID: Here's the mapfile: ------------------------------------------------------------ NAME TEST EXTENT 471127 4751545 489292 4765610 UNITS FEET SIZE 600 600 SHAPEPATH "/export/home/stu/gk1611/public_html/shapefiles" INTERLACE OFF # # Start of layers # LAYER NAME "Parcels" DATA poly STATUS DEFAULT TYPE POLYGON CLASS COLOR 73 76 113 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 50 2 COLOR 255 255 255 UNITS FEET INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of legend # LEGEND STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # end of legend object WEB LOG "/export/home/stu/gk1611/public_html/output/mapserver.log" IMAGEPATH "/export/home/stu/gk1611/public_html/output/" IMAGEURL "/~gk1611/output/" TEMPLATE "../testpoly/newtest.html" END # end of web object END # end of map file ------------------------------------------------------------ Thanks, Gregg From frank.koormann at intevation.de Thu Dec 20 08:13:17 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Thu, 20 Dec 2001 17:13:17 +0100 Subject: [mapserver-users] Another Rosa applet question with CGI In-Reply-To: References: <20011218170928.A31440@intevation.de> Message-ID: <20011220171317.A17827@intevation.de> Dear all, * Bart van Heijningen (bart at atsence.nl) [011219 20:30]: > Hi all, > You were right about the errors. > [...] > > I cannot find examples for the ROSA which can be generally applied, as is > the case with the Mapplet which allows you to have a working setup fromwhich > you can work. > > I would like to know what variables in the template file I should use to > pass to the CGI and a simple submit function. > I already sent the attachment to Bart personally, but he encouraged me to post it to the list. So, whoever interested in, find below a sample html template using the rosa applet. Unfortunately I can't cite a site based on this. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Thu Dec 20 08:59:31 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 20 Dec 2001 10:59:31 -0600 Subject: [mapserver-users] mapfile for my problem Message-ID: The status setting for the scalebar is wrong. Should be STATUS ON/OFF. ON != TRUE. At least at first glance that seems to be the problem. Since you have no layers defined there is nothing to create a legend from. Futhermore class members in layers MUST have a NAME defined to show up in the legend. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> G Kelley 12/20/01 10:02AM >>> Here's the mapfile: ------------------------------------------------------------ NAME TEST EXTENT 471127 4751545 489292 4765610 UNITS FEET SIZE 600 600 SHAPEPATH "/export/home/stu/gk1611/public_html/shapefiles" INTERLACE OFF # # Start of layers # LAYER NAME "Parcels" DATA poly STATUS DEFAULT TYPE POLYGON CLASS COLOR 73 76 113 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 50 2 COLOR 255 255 255 UNITS FEET INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of legend # LEGEND STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # end of legend object WEB LOG "/export/home/stu/gk1611/public_html/output/mapserver.log" IMAGEPATH "/export/home/stu/gk1611/public_html/output/" IMAGEURL "/~gk1611/output/" TEMPLATE "../testpoly/newtest.html" END # end of web object END # end of map file ------------------------------------------------------------ Thanks, Gregg From david.armstrong at ntlworld.com Thu Dec 20 09:00:32 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Thu, 20 Dec 2001 17:00:32 -0000 Subject: [mapserver-users] maplexer error Message-ID: <000901c18977$df4eee10$de00a8c0@davidpc> just updating my mapserver from CVS and i get the following error can some one please send me updated maplexer file's etc for the latest cvs build maplexer.l(224) : error C2065: 'MS_LAYER_POLYLINE' : undeclared identifier Kind Regards Dave From steve.lime at dnr.state.mn.us Thu Dec 20 09:20:21 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 20 Dec 2001 11:20:21 -0600 Subject: [mapserver-users] maplexer error Message-ID: The POLYLINE keyword is no longer supported. Rather you define the layer as a polygon layer and use an outlinecolor with no color to get an unfilled polygon. There are a few previous threads that talk about this. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "David Armstrong" 12/20/01 11:00AM >>> just updating my mapserver from CVS and i get the following error can some one please send me updated maplexer file's etc for the latest cvs build maplexer.l(224) : error C2065: 'MS_LAYER_POLYLINE' : undeclared identifier Kind Regards Dave From teb at mallit.fr.umn.edu Thu Dec 20 09:23:08 2001 From: teb at mallit.fr.umn.edu (teb) Date: Thu, 20 Dec 2001 11:23:08 -0600 (CST) Subject: [mapserver-users] java applications (FWD) Message-ID: <200112201723.LAA25991@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "D.J. Grzicic" Subject: java applications To: mapserver-info at lists.gis.umn.edu Date: Wed, 19 Dec 2001 20:17:50 -0500 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, I'm wondering if anybody has created or attempted to create an application (in JAVA, JavaScript, etc.) for spatial analysis (such as calculating the mean centre, central median, kernal estimates, etc.) under a mapserver environment ? That seems to be the next step in web-GIS. -thanks ------------- End Forwarded Message ------------- From pkishor at GeoAnalytics.com Thu Dec 20 09:42:02 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 20 Dec 2001 11:42:02 -0600 Subject: [mapserver-users] MacOS X once again one more time Message-ID: ok, here's the scoop. I've got Mapserver 3.5 working on my Pismo G3 running MacOS X 10.1.1. Additionally, I can get IE also to view the PNGs (sorry Ed, I did hath misspoke). Gory details -- gd1.8.4 based on libjpeg (jpeg v6b) and libpng (libpng 1.2.1). Clear instructions for compiling gd on MacOS X are at http://www.stepwise.com/Articles/Workbench/2001-06-12.01.html. Apple includes Zlib (required for libpng). I was unable to compile gd1.2. When compiling Mapserver, best is _not_ to give the --with-gd path, etc. Let .configure find gd itself. It does so. A few interesting tidbits -- 1. I had to enter the absolute paths for the demo.map and the tmp file in the demo_init.html. Without absolute paths mapserv did not know where to go. It would be nice to be able to enter relative paths in order to make an application portable. Am I overlooking something obvious? 2. I had to set the owner and group of tmp to www and nobody. Otherwise the images were not getting written to the tmp directory. Anyone know anyway to get around this? Other than that, everything works. I need to recompile my Mapserver with PHP support. Guess I need to read Daniel's directives. SDL -- do I have to do anything special to compile Perl/Mapscript in Mapserver... this is the portion I am unclear about. I know you answered my query re. Perl/Mapscript on Windoze. But, now my question is specifically wrt *nix version. Once all this is done and kosher I want to use something like packagemaker or installermaker or DaMage or some such... to create a MacOS X binary package. Click and install. Most all MacOS X setups are gonna be identical so providing a binary would save us Mac types with a bunch of grief. I mean, I really don't know a c-compiler from an icon. Today is good. pk/ From pkishor at GeoAnalytics.com Thu Dec 20 09:47:10 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 20 Dec 2001 11:47:10 -0600 Subject: [mapserver-users] RE: MacOS X once again one more time Message-ID: oh, one more thing... Mapserver was unable to find the 'symbols/????' -- that is, all the gif symbols in the demo.map. I had to comment all of those out. Again, this has perhaps to do with the absolute pathing problem, no? pk/ > -----Original Message----- > From: Puneet Kishor > Sent: Thursday, December 20, 2001 11:42 AM > To: mapserver-users at lists.gis.umn.edu > Cc: Greg Mader; Steve Allenstein > Subject: MacOS X once again one more time > > > ok, here's the scoop. > > I've got Mapserver 3.5 working on my Pismo G3 running MacOS X > 10.1.1. Additionally, I can get IE also to view the PNGs > (sorry Ed, I did hath misspoke). > > > Gory details -- > > > gd1.8.4 based on libjpeg (jpeg v6b) and libpng (libpng > 1.2.1). Clear instructions for compiling gd on MacOS X are at > http://www.stepwise.com/Articles/Workbench/2001-06-12.01.html. > > Apple includes Zlib (required for libpng). > > I was unable to compile gd1.2. > > When compiling Mapserver, best is _not_ to give the --with-gd > path, etc. Let .configure find gd itself. It does so. > > A few interesting tidbits -- > > 1. I had to enter the absolute paths for the demo.map and the > tmp file in the demo_init.html. Without absolute paths > mapserv did not know where to go. It would be nice to be able > to enter relative paths in order to make an application > portable. Am I overlooking something obvious? > > 2. I had to set the owner and group of tmp to www and nobody. > Otherwise the images were not getting written to the tmp > directory. Anyone know anyway to get around this? > > > Other than that, everything works. I need to recompile my > Mapserver with PHP support. Guess I need to read Daniel's directives. > > SDL -- do I have to do anything special to compile > Perl/Mapscript in Mapserver... this is the portion I am > unclear about. I know you answered my query re. > Perl/Mapscript on Windoze. But, now my question is > specifically wrt *nix version. > > > Once all this is done and kosher I want to use something like > packagemaker or installermaker or DaMage or some such... to > create a MacOS X binary package. Click and install. Most all > MacOS X setups are gonna be identical so providing a binary > would save us Mac types with a bunch of grief. I mean, I > really don't know a c-compiler from an icon. > > Today is good. > > pk/ > From morissette at dmsolutions.ca Thu Dec 20 10:06:28 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 20 Dec 2001 13:06:28 -0500 Subject: [mapserver-users] RE: MacOS X once again one more time References: Message-ID: <3C2228A4.AE42CE25@dmsolutions.ca> Puneet Kishor wrote: > > Mapserver was unable to find the 'symbols/????' -- that is, all the gif > symbols in the demo.map. I had to comment all of those out. Again, this has > perhaps to do with the absolute pathing problem, no? > Not a path problem. It must be because your GD can't read GIFs. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From vguzman at bigfoot.com Thu Dec 20 04:20:54 2001 From: vguzman at bigfoot.com (Vladimir =?ISO-8859-1?Q?Guzm=E1n?=) Date: Thu, 20 Dec 2001 13:20:54 +0100 Subject: [mapserver-users] slackware Message-ID: <3C21D7A6.8090804@bigfoot.com> Hello. I've tryied to install php mapscript in a Slackware Box. I've done everything I did when I installed it in suse, but it just doesn't work and I can't figure out why.... Compilation seems to be fine (no errors), but when I try to load the dynamic module it says: Warning: Unable to load dynamic library '/usr//lib/php/extensions/no-debug-non-zts-20001222/php_mapscript.so' - cannot open shared object file: cannot load shared object file: No such file or directory in /home/sig/public_html/index.php on line 23 And yes, the file does exist in the specified path. The phpinfo can be found in: http://sig.ifx.com.co/prueba.php Any ideas? Thanks in advance, ----------------- Vladimir Guzm?n www.main-task.com From steves8293 at yahoo.com Thu Dec 20 10:30:32 2001 From: steves8293 at yahoo.com (Steve Simpson) Date: Thu, 20 Dec 2001 10:30:32 -0800 (PST) Subject: [mapserver-users] Is MapServer compatible with tab files? Message-ID: <20011220183032.65419.qmail@web20208.mail.yahoo.com> In searching in the docs and the list archives, I'm pretty sure I have my answer. I assume that MapServer does not work with MapInfo's tab files and that they would have to be converted to shapefiles first? Is that correct? Thanks. Steve __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com From nwerneck at yahoo.com.br Thu Dec 20 08:57:35 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Thu, 20 Dec 2001 13:57:35 -0300 (ART) Subject: [mapserver-users] mapscript getShape again... Message-ID: <20011220165736.87800.qmail@web20003.mail.yahoo.com> OK, last question was ridiculous, I admit it... now, how do I open a layer to use getShape in it? I'm doing this: $lyr=$map->getLayerByName("brest"); $shp=$lyr->getShape(-1, 0); echo $shp->values["UF"]."
"; exit; but it just hangs on... the first line is OK, I cant take the layer's name from $lyr, but the getShape isn't working. Does it has something to do with that open() function?? also, how do I get the number of features in the layer? should maxfeatures it? it's set to -1! :( I've user the layer with mapserver and it's showing the states allright... thx ++nicolau _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. ? f?cil e gr?tis! http://br.geocities.yahoo.com/ From steve.lime at dnr.state.mn.us Thu Dec 20 11:04:32 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 20 Dec 2001 13:04:32 -0600 Subject: [mapserver-users] RE: MacOS X once again one more time Message-ID: If you have a non-GIF enabled version of the software then you'll need non-GIFs to use as symbols. To fix, create PNG versions of the GIFs in the symbols directory and update your mapfile to use them. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Puneet Kishor 12/20/01 11:47AM >>> oh, one more thing... Mapserver was unable to find the 'symbols/????' -- that is, all the gif symbols in the demo.map. I had to comment all of those out. Again, this has perhaps to do with the absolute pathing problem, no? pk/ > -----Original Message----- > From: Puneet Kishor > Sent: Thursday, December 20, 2001 11:42 AM > To: mapserver-users at lists.gis.umn.edu > Cc: Greg Mader; Steve Allenstein > Subject: MacOS X once again one more time > > > ok, here's the scoop. > > I've got Mapserver 3.5 working on my Pismo G3 running MacOS X > 10.1.1. Additionally, I can get IE also to view the PNGs > (sorry Ed, I did hath misspoke). > > > Gory details -- > > > gd1.8.4 based on libjpeg (jpeg v6b) and libpng (libpng > 1.2.1). Clear instructions for compiling gd on MacOS X are at > http://www.stepwise.com/Articles/Workbench/2001-06-12.01.html. > > Apple includes Zlib (required for libpng). > > I was unable to compile gd1.2. > > When compiling Mapserver, best is _not_ to give the --with-gd > path, etc. Let .configure find gd itself. It does so. > > A few interesting tidbits -- > > 1. I had to enter the absolute paths for the demo.map and the > tmp file in the demo_init.html. Without absolute paths > mapserv did not know where to go. It would be nice to be able > to enter relative paths in order to make an application > portable. Am I overlooking something obvious? > > 2. I had to set the owner and group of tmp to www and nobody. > Otherwise the images were not getting written to the tmp > directory. Anyone know anyway to get around this? > > > Other than that, everything works. I need to recompile my > Mapserver with PHP support. Guess I need to read Daniel's directives. > > SDL -- do I have to do anything special to compile > Perl/Mapscript in Mapserver... this is the portion I am > unclear about. I know you answered my query re. > Perl/Mapscript on Windoze. But, now my question is > specifically wrt *nix version. > > > Once all this is done and kosher I want to use something like > packagemaker or installermaker or DaMage or some such... to > create a MacOS X binary package. Click and install. Most all > MacOS X setups are gonna be identical so providing a binary > would save us Mac types with a bunch of grief. I mean, I > really don't know a c-compiler from an icon. > > Today is good. > > pk/ > From steve.lime at dnr.state.mn.us Thu Dec 20 11:07:09 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 20 Dec 2001 13:07:09 -0600 Subject: [mapserver-users] Is MapServer compatible with tab files? Message-ID: Actually compiling with OGR support does get you access to mapinfo files. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Steve Simpson 12/20/01 12:30PM >>> In searching in the docs and the list archives, I'm pretty sure I have my answer. I assume that MapServer does not work with MapInfo's tab files and that they would have to be converted to shapefiles first? Is that correct? Thanks. Steve __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com From steve.lime at dnr.state.mn.us Thu Dec 20 11:20:59 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 20 Dec 2001 13:20:59 -0600 Subject: [mapserver-users] mapscript getShape again... Message-ID: In MapScript (at the moment anyway) attribute values are not directly accessible in the scripting language. The problem is in mapping a C array of strings to a scripting language equivalent (and doing this for 5 or 6 languages). I do hope to support this eventually. There is a workaround for shapefiles. *yipee* MapScript contains methods specific to shapefiles that allow you to read/write them. Plus, you can use a perl module like XBase.pm to access the attributes. Note that these methods work on a single shapefile at a time. You'd do something like: $shapefile = new shapefileObj("test.shp", -1) or die 'Unable to open shapefile.'; $table = new XBase('test.dbf') or die XBase->errstr; $shape = new shapeObj(-1); # or set an approriate type for($i=0; $i<$shapefile->{numshapes}; $i++) { $shapefile->get($i, $shape); # fetch the vertices ($deleted, @values) = $table->get_record($i); # now do what you will... } Again, the hope is that the same type of processing can be applied to all data sources, but at the moment the methods to support that haven't been written. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Nicolau Werneck 12/20/01 10:57AM >>> OK, last question was ridiculous, I admit it... now, how do I open a layer to use getShape in it? I'm doing this: $lyr=$map->getLayerByName("brest"); $shp=$lyr->getShape(-1, 0); echo $shp->values["UF"]."
"; exit; but it just hangs on... the first line is OK, I cant take the layer's name from $lyr, but the getShape isn't working. Does it has something to do with that open() function?? also, how do I get the number of features in the layer? should maxfeatures it? it's set to -1! :( I've user the layer with mapserver and it's showing the states allright... thx ++nicolau _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. ? f?cil e gr?tis! http://br.geocities.yahoo.com/ From morissette at dmsolutions.ca Thu Dec 20 11:50:38 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 20 Dec 2001 14:50:38 -0500 Subject: [mapserver-users] Is MapServer compatible with tab files? References: <20011220183032.65419.qmail@web20208.mail.yahoo.com> Message-ID: <3C22410E.BEFC22A6@dmsolutions.ca> Steve Simpson wrote: > > In searching in the docs and the list archives, I'm > pretty sure I have my answer. I assume that MapServer > does not work with MapInfo's tab files and that they > would have to be converted to shapefiles first? Is > that correct? Thanks. > Hi Steve, As Steve (Lime) wrote, you can use TAB files directly if you compile with OGR. See the OGR HOWTO for all the details, the section titled "Sample Sites Using OGR/Mapserver" also contains links to some OGR demos on our website (where you can look at the mapfile, etc.) http://mapserver.gis.umn.edu/doc/ogr-howto.html -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Thu Dec 20 12:09:22 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 20 Dec 2001 15:09:22 -0500 Subject: [mapserver-users] mapscript getShape again... References: Message-ID: <3C224572.6AC2C343@dmsolutions.ca> Stephen Lime wrote: > > In MapScript (at the moment anyway) attribute values are not directly accessible in the scripting language. The problem is in mapping a C array of strings to a scripting language equivalent (and doing this for 5 or 6 languages). I do hope to support this eventually. > What Steve writes is true with the Perl and other SWIG-based versions of MapScript, but the PHP MapScript does return the attributes of the shapeObj in an associative array (hash table in Perl terms I think) no matter what the data source is, so accessing $shp->values["UF"] is valid with PHP MapScript. > > $lyr=$map->getLayerByName("brest"); > $shp=$lyr->getShape(-1, 0); > echo $shp->values["UF"]."
"; > exit; > > but it just hangs on... the first line is OK, I cant > take the layer's name from $lyr, but the getShape > isn't working. Does it has something to do with that > open() function?? > Yes, you have to call open() first before any call to getShape()... and you should call close() once you're done. But I would expect PHP to produce an error message in your case... not to hang... bizarre. > also, how do I get the number of features in the > layer? should maxfeatures it? it's set to -1! :( > MAXFEATURES seems to be a setting in the layerObj in the mapfile... not sure what it does though. The open()/getShape()/close() calls were mostly intended for use with the shape ids returned by a query, so there is currently no way to find out the number of shapes in a layer or to read all shapes from a layer in sequential order... you should use shapeFileObj as Steve suggested for that. Maybe a $layer->getNextShape() call could be useful for cases where you need to read all shapes from a layer's data source. You may want to file an enhancement request in the MapServer bugzilla about this. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From XSun at odu.edu Thu Dec 20 15:32:44 2001 From: XSun at odu.edu (XSun at odu.edu) Date: Thu, 20 Dec 2001 18:32:44 -0500 Subject: [mapserver-users] pdflib.h: No such file when making. Thanks! Message-ID: Hello lists, When I make the mapserver 3.5 version , I got the following error. But I search all my directory , I didnot find pdflib.h files. Who can help me and let me know where I can find the file or download. >make gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_Ho In file included from mapbits.c:1: map.h:37: pdflib.h: No such file or directory make: *** [mapbits.o] Error 1 Thanks a lot xsun From mschulz at webgis.de Fri Dec 21 00:42:51 2001 From: mschulz at webgis.de (Michael Schulz - GIS Bearbeiter) Date: Fri, 21 Dec 2001 09:42:51 +0100 Subject: [mapserver-users] One MapServer-Site more... References: Message-ID: <3C22F60B.8160C2B2@webgis.de> Hi, Yes, this was a no-space-left-problem on our domain. But perhaps someone can give a hint howto delete the temporary files, without having the possibility to install cron-jobs or similiar things because the ISP doesn't offer this option. Perhaps it could be done via php, e.g. each time the init-page gets loaded old temp files are deleted. Hmm, has anybody done something similar? Michael Stephen Lime wrote: > > Hi Michael: Doesn't seem to want to fire up for me... > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Michael Schulz - GIS Bearbeiter 12/20/01 05:09AM >>> > Dear MapServers, > > i justed wanted to inform the list, that we have released a > Mapserver-Site that is accessible to the public. > > The maps shown on this site are the product of a three year long project > called "INTERREG II". This project was funded by the EU and its > objective was to create a groundwater and soil information database for > the region of the high Rhin River between Basle (Switzerland) and the > Lake Constance. > > The online application (which uses the mapserver-cgi and some > javascript) shows divided in the two subjects hydrogeology and soils > several themes and layers, eg. hydraulic head, aquifer thickness, > geology, groundwater protection areas and others. The subject soils will > be accessible in the next two weeks and also topographic raster data > will be accessible soon. > > We also want to say thank you for the help and information we got from > the list. > > Not to forget: the url: > http://www.grundwasserleiter-hochrhein.de/ir_init.html > > Cheers and Happy Christmas to all, > 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 -- ----------------------------------------------------------- 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 bart at geodan.nl Fri Dec 21 00:35:59 2001 From: bart at geodan.nl (Bart van den Eijnden) Date: Fri, 21 Dec 2001 09:35:59 +0100 Subject: [mapserver-users] pdflib.h: No such file when making. Thanks! In-Reply-To: Message-ID: Hi, you should download pdflib from www.pdflib.com Greetings, Bart 12/21/2001 12:32:44 AM, XSun at odu.edu wrote: >Hello lists, > >When I make the mapserver 3.5 version , I got the following error. But I >search all my directory , I didnot find pdflib.h files. Who can help me >and let me know where I can find the file or download. > >>make >gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ >-DUSE_PROJ_API_Ho >In file included from mapbits.c:1: >map.h:37: pdflib.h: No such file or directory >make: *** [mapbits.o] Error 1 > > > >Thanks a lot > >xsun > > > > -- Bart van den Eijnden Geodan IT BV Email: bart at geodan.nl Buitenhaven 27-A Telefoon: 073-6925151 5211 TP 's-Hertogenbosch From frank.koormann at intevation.de Fri Dec 21 03:32:09 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Fri, 21 Dec 2001 12:32:09 +0100 Subject: [mapserver-users] slackware In-Reply-To: <3C21D7A6.8090804@bigfoot.com> References: <3C21D7A6.8090804@bigfoot.com> Message-ID: <20011221123209.A24396@intevation.de> * Vladimir Guzm?n (vguzman at bigfoot.com) [011220 21:18]: > Hello. > I've tryied to install php mapscript in a Slackware Box. > I've done everything I did when I installed it in suse, but it just > doesn't work and I can't figure out why.... > Compilation seems to be fine (no errors), but when I try to load the > dynamic module it says: > > Warning: Unable to load dynamic library > '/usr//lib/php/extensions/no-debug-non-zts-20001222/php_mapscript.so' - > cannot open shared object file: cannot load shared object file: No such > file or directory in /home/sig/public_html/index.php on line 23 > > And yes, the file does exist in the specified path. Read access rights? AFAIR slackware default settings are more restrictive than the ones on suse. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From frank.koormann at intevation.de Fri Dec 21 03:52:10 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Fri, 21 Dec 2001 12:52:10 +0100 Subject: [mapserver-users] RE: MacOS X once again one more time In-Reply-To: References: Message-ID: <20011221125210.B24396@intevation.de> Aside what Steve and Daniel already said about the symbols (need of gif-enabled gd or convert symbols to png) * Puneet Kishor (pkishor at GeoAnalytics.com) [011220 20:51]: > oh, one more thing... > > Mapserver was unable to find the 'symbols/????' -- that is, all the gif > symbols in the demo.map. I had to comment all of those out. Again, this has > perhaps to do with the absolute pathing problem, no? > [...] > > > > A few interesting tidbits -- > > > > 1. I had to enter the absolute paths for the demo.map and the > > tmp file in the demo_init.html. Without absolute paths > > mapserv did not know where to go. It would be nice to be able > > to enter relative paths in order to make an application > > portable. Am I overlooking something obvious? If we are talking about the cgi-binary: How should it know what the base directory is? So at least the path to the map-file has to be absolute. Inside map files you can work with relative paths. > > 2. I had to set the owner and group of tmp to www and nobody. > > Otherwise the images were not getting written to the tmp > > directory. Anyone know anyway to get around this? The cgi is executed with this UID/GID. Therewith directories have to be writable for this user either by attribute the dirs to the user (or at least the group) or making the dirs world writeable. I suggest you don't want the latter. > > Today is good. Signed Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From woodbri at swoodbridge.com Fri Dec 21 05:17:57 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 21 Dec 2001 08:17:57 -0500 Subject: [mapserver-users] One MapServer-Site more... References: <3C22F60B.8160C2B2@webgis.de> Message-ID: <3C233685.939098B1@swoodbridge.com> Michael Schulz - GIS Bearbeiter wrote: > Yes, this was a no-space-left-problem on our domain. But perhaps someone > can give a hint howto delete the temporary files, without having the > possibility to install cron-jobs or similiar things because the ISP > doesn't offer this option. Perhaps it could be done via php, e.g. each > time the init-page gets loaded old temp files are deleted. Hmm, has > anybody done something similar? phplib has a similar garbage collection problem and they generate a random number, if it is less than X then it does the garbage collection. This allows you to tune how often garbage collection happens so every hit isn't trying to do it. (ie. if 0 < random <= 1 and X= 0.1 then roughly 1 in 10 hits will do garbage collection). Steve Lime: It would be nice if this feature were added to mapserv such that you could set the percentage and the age in sec/minutes/hours of the files to be deleted and have mapserver do the garbage collection. If percentage == 0.0 of undefined then no GC is done like now. -Steve From Regina.Obe.PFD at ci.boston.ma.us Fri Dec 21 06:27:52 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Fri, 21 Dec 2001 09:27:52 -0500 Subject: [mapserver-users] How to Zoom out from an Extent and do a Query feature Message-ID: I want to thank you all again for the great support I've been given and I've been really impressed with the speed and functionality I have achieved using mapserver and postgis. Below is my first app that uses postgis and Mapserver and there was one change that I have been asked to do. I'm not sure if it is easier to do in the mapserver domain or Postgis. I would like to generate a map view that is a 300 square radius around the parcel that is being focused on or at least be able to zoom out from an extent I give to mapserver http://www.cityofboston.gov/dnd/REMSfind/PropDetailMP.asp?ParcelID=120138300 0 Right now what I am doing is using the postgis functions to list the nearby available parcels below and the extent function to get an extent of the map that contains the nearby parcels. P.S. I apologize if it is a bit slow - the city hall's webserver is sometimes a bit tempermental and also my SQL Server box is inside the firewall (also since I was only allowed to have one port opened and not allowed to install anything on the city's webserver I am querying the Postgis server via my SQL Server box (using it as a linked server to SQL Server). Surprisingly even in a linked server mode - the speed is pretty decent and superfast in my intranet app. The main page is http://www.cityofboston.gov/dnd/REMSfind/FindProperty.asp if you wanted to try a search of other parcels Also if you wanted to list this application as a sample app using postgis/mapserver, we would be very honored. From lfilak at yahoo.com Fri Dec 21 07:05:17 2001 From: lfilak at yahoo.com (Lowell Filak) Date: Fri, 21 Dec 2001 07:05:17 -0800 (PST) Subject: [mapserver-users] One MapServer-Site more... In-Reply-To: <3C22F60B.8160C2B2@webgis.de> Message-ID: <20011221150517.92019.qmail@web11307.mail.yahoo.com> A general crontab entry would be something like: 0 0 * * * find /var/www/html/tmp -name '*.gif' -ctime +1 -exec rm {} \; And nothing says that it can't be run as a CGI after your index page is hit X number of times. As far as running it in PHP I'm not familiar with PHP but it looks very similar to Perl from what I've seen on the discussion list and in Perl the command could be run as a system() call after X number of hits have occurred. Hope this helps. Lowell Filak --- Michael Schulz - GIS Bearbeiter wrote: > Hi, > > Yes, this was a no-space-left-problem on our domain. > But perhaps someone > can give a hint howto delete the temporary files, > without having the > possibility to install cron-jobs or similiar things > because the ISP > doesn't offer this option. Perhaps it could be done > via php, e.g. each > time the init-page gets loaded old temp files are > deleted. Hmm, has > anybody done something similar? > > Michael > > > > Stephen Lime wrote: > > > > Hi Michael: Doesn't seem to want to fire up for > me... > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> Michael Schulz - GIS Bearbeiter > 12/20/01 05:09AM >>> > > Dear MapServers, > > > > i justed wanted to inform the list, that we have > released a > > Mapserver-Site that is accessible to the public. > > > > The maps shown on this site are the product of a > three year long project > > called "INTERREG II". This project was funded by > the EU and its > > objective was to create a groundwater and soil > information database for > > the region of the high Rhin River between Basle > (Switzerland) and the > > Lake Constance. > > > > The online application (which uses the > mapserver-cgi and some > > javascript) shows divided in the two subjects > hydrogeology and soils > > several themes and layers, eg. hydraulic head, > aquifer thickness, > > geology, groundwater protection areas and others. > The subject soils will > > be accessible in the next two weeks and also > topographic raster data > > will be accessible soon. > > > > We also want to say thank you for the help and > information we got from > > the list. > > > > Not to forget: the url: > > > http://www.grundwasserleiter-hochrhein.de/ir_init.html > > > > Cheers and Happy Christmas to all, > > 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 > > -- > ----------------------------------------------------------- > 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 > > __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com From XSun at odu.edu Fri Dec 21 12:39:45 2001 From: XSun at odu.edu (XSun at odu.edu) Date: Fri, 21 Dec 2001 15:39:45 -0500 Subject: [mapserver-users] mapserv: fatal: libfreetype.so.6: open failed: No such file or directory Message-ID: Hello list, After I configure with the following option. I got the following error. ./configure --with-gd=/dfs/home/x/xsunx002/soft/gd-1.8.4 --with-tiff=/dfs/home/x/xsunx002/soft/tiff-v3.5.7 --with-jpeg=/dfs/home/x/xsunx002/soft/jpeg-6b --with-freetype=/dfs/home/x/xsunx002/soft/freetype-2.0.5 --with-proj=/dfs/home/x/xsunx002/soft/proj-4.4.4 --with-ogr=/dfs/home/x/xsunx002/soft/gdal-1.1.5 --with-wmsclient=/dfs/home/x/xsunx002/soft/w3c-libwww-5.3.2 [Fri Dec 21 15:13:45 2001] [error] [client 128.82.243.101] attempt to invoke directory as script: /dfs/home/x/xsunx002/web/cgi-bin ld.so.1: mapserv: fatal: libfreetype.so.6: open failed: No such file or directory [Fri Dec 21 15:18:20 2001] [error] [client 128.82.243.101] Premature end of script headers: /dfs/home/x/xsunx002/web/cgi-bin/mapserv I am confused by this. Can anyone help me ? Thanks. Xsun From woodbri at swoodbridge.com Fri Dec 21 13:17:06 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 21 Dec 2001 16:17:06 -0500 Subject: [mapserver-users] mapserv: fatal: libfreetype.so.6: open failed: No such file or directory References: Message-ID: <3C23A6D2.526E0A9E@swoodbridge.com> I do not think freetype version 2 is supported. I believe it has some serious problems with respect to mapserver - check the list archives. Also, do you have it in your LD_LIBRARY path or have you edited /etc/ld.so.conf and run ldconfig. -Steve W. XSun at odu.edu wrote: > > Hello list, > > After I configure with the following option. I got the following error. > > ./configure --with-gd=/dfs/home/x/xsunx002/soft/gd-1.8.4 > --with-tiff=/dfs/home/x/xsunx002/soft/tiff-v3.5.7 > --with-jpeg=/dfs/home/x/xsunx002/soft/jpeg-6b > --with-freetype=/dfs/home/x/xsunx002/soft/freetype-2.0.5 > --with-proj=/dfs/home/x/xsunx002/soft/proj-4.4.4 > --with-ogr=/dfs/home/x/xsunx002/soft/gdal-1.1.5 > --with-wmsclient=/dfs/home/x/xsunx002/soft/w3c-libwww-5.3.2 > > [Fri Dec 21 15:13:45 2001] [error] [client 128.82.243.101] attempt to > invoke directory as script: /dfs/home/x/xsunx002/web/cgi-bin > ld.so.1: mapserv: fatal: libfreetype.so.6: open failed: No such file or > directory > [Fri Dec 21 15:18:20 2001] [error] [client 128.82.243.101] Premature end of > script headers: /dfs/home/x/xsunx002/web/cgi-bin/mapserv > > I am confused by this. Can anyone help me ? Thanks. > > Xsun From steve.lime at dnr.state.mn.us Fri Dec 21 13:42:03 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 21 Dec 2001 15:42:03 -0600 Subject: [mapserver-users] mapserv: fatal: libfreetype.so.6: open failed: No such file or directory Message-ID: Freetype2 is supported via GD (as is Freetype 1). There are some problems with the GD/Freetype 2 integration. They aren't killers but do pose problems in certain instances. Your problem probably stems from the fact the the shared libraries can't be found. There are several threads in the archives that explain fixes in detail. Search for LD_LIBRARY_PATH or ldconfig to find the right messages. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stephen Woodbridge 12/21/01 03:17PM >>> I do not think freetype version 2 is supported. I believe it has some serious problems with respect to mapserver - check the list archives. Also, do you have it in your LD_LIBRARY path or have you edited /etc/ld.so.conf and run ldconfig. -Steve W. XSun at odu.edu wrote: > > Hello list, > > After I configure with the following option. I got the following error. > > ./configure --with-gd=/dfs/home/x/xsunx002/soft/gd-1.8.4 > --with-tiff=/dfs/home/x/xsunx002/soft/tiff-v3.5.7 > --with-jpeg=/dfs/home/x/xsunx002/soft/jpeg-6b > --with-freetype=/dfs/home/x/xsunx002/soft/freetype-2.0.5 > --with-proj=/dfs/home/x/xsunx002/soft/proj-4.4.4 > --with-ogr=/dfs/home/x/xsunx002/soft/gdal-1.1.5 > --with-wmsclient=/dfs/home/x/xsunx002/soft/w3c-libwww-5.3.2 > > [Fri Dec 21 15:13:45 2001] [error] [client 128.82.243.101] attempt to > invoke directory as script: /dfs/home/x/xsunx002/web/cgi-bin > ld.so.1: mapserv: fatal: libfreetype.so.6: open failed: No such file or > directory > [Fri Dec 21 15:18:20 2001] [error] [client 128.82.243.101] Premature end of > script headers: /dfs/home/x/xsunx002/web/cgi-bin/mapserv > > I am confused by this. Can anyone help me ? Thanks. > > Xsun From Rich at GreenwoodMap.com Fri Dec 21 14:33:09 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Fri, 21 Dec 2001 15:33:09 -0700 Subject: [mapserver-users] true type fonts? Message-ID: <5.1.0.14.0.20011221153046.02f52b58@mail.GreenwoodMap.com> Does anybody have any idea why some true type fonts don't work? Wingdings, webdings, and the whole family of MapInfo ttf font symbols don't work for me (they just display a rectangle) but all the "normal" ttf fonts seem to work fine. Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From marin at here.is Fri Dec 21 14:54:23 2001 From: marin at here.is (Ma) Date: Fri, 21 Dec 2001 22:54:23 +0000 Subject: [mapserver-users] true type fonts? References: <5.1.0.14.0.20011221153046.02f52b58@mail.GreenwoodMap.com> Message-ID: <3C23BD9F.66B0789B@here.is> Rich, because their CharSet is Symbol. To work it should be ANSI. -- Ma Richard Greenwood wrote: > Does anybody have any idea why some true type fonts don't work? Wingdings, > webdings, and the whole family of MapInfo ttf font symbols don't work for > me (they just display a rectangle) but all the "normal" ttf fonts seem to > work fine. > > Thanks, > Rich > > Richard W. Greenwood, PLS > Greenwood Mapping, Inc. > Rich at GreenwoodMap.com > (307) 733-0203 > http://www.GreenwoodMap.com From milis at wakwaw.f2s.com Fri Dec 21 23:35:35 2001 From: milis at wakwaw.f2s.com (Tri Agus Prayitno) Date: Sat, 22 Dec 2001 14:35:35 +0700 Subject: [mapserver-users] 3.5 compile error with phpmapscript Message-ID: <001c01c18abb$4b4b7b80$0500a8c0@intranet.bk> Hi listers! I've tried to compile mapserver 3.5 with Linux Mandrake 8.1 on Celeron 300, 128 MB RAM. The Apache and php installed from rpm (Mandrake 8.1 default, also the development package). I have proj4 installed and want to have phpmapscript, so I do this to compile: #./configure --with-proj --with-php=/usr/include/php/main --with-apache=/usr/include/apache and I got this error message: make[1]: Entering directory `/home/acuss/tmp/mapserver_3.5/mapscript/php3' cc cc -I. -I.. -fpic -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG -I/home/acuss/tmp/mapserver_3.5 -I/usr/include -I/usr/include/php/main -I/usr/include/php/main/dl -I/usr/include/php/main/main -I/usr/include/php/main/Zend -I/usr/include/php/main/include -I/usr/include/php/main/TSRM -I/usr/include/apache -c -o php_mapscript_util.o php_mapscript_util.c cc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [php_mapscript_util.o] Error 1 make[1]: Leaving directory `/home/acuss/tmp/mapserver_3.5/mapscript/php3' can anybody tell me what's wrong and what should I do. thx Tri Agus Prayitno From cabral at yadata.net Sat Dec 22 10:46:13 2001 From: cabral at yadata.net (Rodrigo Cabral) Date: Sat, 22 Dec 2001 16:46:13 -0200 Subject: [mapserver-users] Oracle Spatial SRID mismatch fix Message-ID: <000e01c18b18$eed384c0$0207a8c0@naumaki> Brian, I just fixed the SRID mismatch error from the built-in SQL statement I send to Oracle when requesting shape data. Instead of using NULL, I'm using "table_name.geom_column.sdo_srid" so that the window SDO_GEOMETRY object has the same SRID of your source table. This fix means that your mapfile coordinates (e.g. extents) MUST BE in the same coordinate system of your data. I should expand this syntax in the future so MapServer can combine data from different coordinate systems using Oracle's SRID built-in support (so we would use SDO's functions, not PROJ.4). I would appreciate if you could test the code, as I don't have any data with a defined (not null) SRID info. Regards, Rod. ----- Original Message ----- From: "Rodrigo Cabral" To: "Brian McKenzie" ; Sent: Saturday, December 15, 2001 10:00 PM Subject: Re: [mapserver-users] Blank image generated from oracle spatial layer Hey there, Actually, I just noticed where the problem is. Let's examine this excerpt from the error message: [window SRID does not match layer SRID] As you mentioned Brian, it's an SRID problem, not an indexation problem. It occurs due to this function call (SDO_FILTER): SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-180.3 ,-179.7,179.7,180.3) ),'querytype=window') = 'TRUE' which passes three arguments: geom1=GEOLOC; geom2=SDO_GEOMETRY constructor; and a third non-relevant argument. geom1 has a defined SRID, while geom2 doesn't. So we get a SRID mismatch error. I've never tried working Spatial with defined SRIDs, so I never got this error. I'll try to solve it soon, but meanwhile try using this as your DATA statement in your mapfile: DATA "GEOLOC from cnybndpl" changes to DATA "GEOLOC from (SELECT GEOLOC FROM cnybndpl)" This will remove the SDO_FILTER call from the query, hence eliminating the error. Using SELECT statement instead of a tablename makes impossible for me to apply a "windowed" query. I reached this conclusion because when I attempted to do so, Oracle gave me an error as I cannot use SDO_FILTER with a geometry (the query result) that has not an index defined for it. Consequently, MapServer will get all elements from the table, and not only those who are within the current extent "view". This should slow the performance a bit, but I dont think it's something you need to worry about. Debasish, this "workaround" should make your problem go away too, in case you decide to try working with Oracle Spatial again. Cheers, Rod. From morissette at dmsolutions.ca Sat Dec 22 11:06:16 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Sat, 22 Dec 2001 14:06:16 -0500 Subject: [mapserver-users] 3.5 compile error with phpmapscript References: <001c01c18abb$4b4b7b80$0500a8c0@intranet.bk> Message-ID: <3C24D9A8.512DC3AB@dmsolutions.ca> Tri Agus Prayitno wrote: > > and I got this error message: > > make[1]: Entering directory `/home/acuss/tmp/mapserver_3.5/mapscript/php3' > cc cc -I. -I.. -fpic -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS > -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG > -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG > -I/home/acuss/tmp/mapserver_3.5 -I/usr/include > -I/usr/include/php/main -I/usr/include/php/main/dl > -I/usr/include/php/main/main -I/usr/include/php/main/Zend > -I/usr/include/php/main/include -I/usr/include/php/main/TSRM > -I/usr/include/apache -c -o php_mapscript_util.o php_mapscript_util.c > cc: cannot specify -o with -c or -S and multiple compilations > make[1]: *** [php_mapscript_util.o] Error 1 > make[1]: Leaving directory `/home/acuss/tmp/mapserver_3.5/mapscript/php3' > > can anybody tell me what's wrong and what should I do. > You can get rid of this error by taking out the "cc" at the beginning of the CFLAGS value in mapscript/php3/Makefile -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From joao at pmpf.rs.gov.br Mon Dec 24 04:08:47 2001 From: joao at pmpf.rs.gov.br (joao at pmpf.rs.gov.br) Date: Mon, 24 Dec 2001 12:08:47 -0000 Subject: [mapserver-users] X-Mailer: TWIG 2.6.1 Message-ID: <20011224120847.5D82346EF6@mail.passofundo.rs.gov.br> Hello all! I had download and istaled the mapserver 3.5 demo and its returns the following erros: msLoadMap(): General error message. Undefined symbol "symbols/ctyhwy.gif" in class 0 of layer ctyrdln3_anno. i'm using version 1.8 of GD... if I save gif imagens as PNG imagens the demo can work OK? Thanks Jo?o Merry Chistmans to all! -- www.pmpf.rs.gov.br From XSun at odu.edu Mon Dec 24 07:30:15 2001 From: XSun at odu.edu (XSun at odu.edu) Date: Mon, 24 Dec 2001 10:30:15 -0500 Subject: [mapserver-users] LD_LIBRARY_PATH Message-ID: Hello Steve and all other friends, After read all the articles in the list about the LD_LIBRARY_PATH problem. I am still puzzled with one problem. which file should I modify to add the following lines. SetEnv LD_LIBRARY_PATH "/usr/local/lib" PassEnv LD_LIBRARY_PATH I tried to add to .cshrc file. But It can not acknowledge "PassENV" command. I tried to add to httpd.conf. "SetEnv" is not valid command. By the way , my apache server is now a binary installation. I download the source code , and read the source file of mod_env.c , But I didnot know if I should modify it and how to modify? Which files should I modify? .cshrc ? httpd.conf? mod_env.c? Can someone give me some hint about it? Thanks a lot. Have a great holiday and merry christmas to all in the lists! XSun From steve.lime at dnr.state.mn.us Mon Dec 24 07:50:58 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 24 Dec 2001 09:50:58 -0600 Subject: [mapserver-users] One MapServer-Site more... Message-ID: While I imagine mapserver *could* do garbage collection I think that's probably a waste of it's time and would be better handled by cron. Alternatively you can always design applications that require no temporary files at all. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stephen Woodbridge 12/21/01 07:17AM >>> Michael Schulz - GIS Bearbeiter wrote: > Yes, this was a no-space-left-problem on our domain. But perhaps someone > can give a hint howto delete the temporary files, without having the > possibility to install cron-jobs or similiar things because the ISP > doesn't offer this option. Perhaps it could be done via php, e.g. each > time the init-page gets loaded old temp files are deleted. Hmm, has > anybody done something similar? phplib has a similar garbage collection problem and they generate a random number, if it is less than X then it does the garbage collection. This allows you to tune how often garbage collection happens so every hit isn't trying to do it. (ie. if 0 < random <= 1 and X= 0.1 then roughly 1 in 10 hits will do garbage collection). Steve Lime: It would be nice if this feature were added to mapserv such that you could set the percentage and the age in sec/minutes/hours of the files to be deleted and have mapserver do the garbage collection. If percentage == 0.0 of undefined then no GC is done like now. -Steve From woodbri at swoodbridge.com Mon Dec 24 09:08:16 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 24 Dec 2001 12:08:16 -0500 Subject: [mapserver-users] LD_LIBRARY_PATH References: Message-ID: <3C276100.692982F1@swoodbridge.com> XSun, You may need to first add: AddModule mod_env to your httpd.conf file, then see if it will recognize SetEnv and PassEnv, if it still does not recognize them, then you will probably need to recompile the source and enable the modules. -Steve XSun at odu.edu wrote: > > Hello Steve and all other friends, > > After read all the articles in the list about the LD_LIBRARY_PATH problem. > I am still puzzled with one problem. which file should I modify to add the > following lines. > > SetEnv LD_LIBRARY_PATH "/usr/local/lib" > PassEnv LD_LIBRARY_PATH > > I tried to add to .cshrc file. But It can not acknowledge "PassENV" > command. > I tried to add to httpd.conf. "SetEnv" is not valid command. By the way , > my apache server is now a binary installation. I download the source code > , and read the source file of mod_env.c , But I didnot know if I should > modify it and how to modify? > > Which files should I modify? .cshrc ? httpd.conf? mod_env.c? > > Can someone give me some hint about it? > > Thanks a lot. > > Have a great holiday and merry christmas to all in the lists! > > XSun From steve.lime at dnr.state.mn.us Mon Dec 24 09:13:13 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 24 Dec 2001 11:13:13 -0600 Subject: [mapserver-users] LD_LIBRARY_PATH Message-ID: The SetEnv belongs in the httpd.conf. Sounds like mod_env was not compiled into the binary so you'll either need to get one that has that module enabled or compile it yourself. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 12/24/01 09:30AM >>> Hello Steve and all other friends, After read all the articles in the list about the LD_LIBRARY_PATH problem. I am still puzzled with one problem. which file should I modify to add the following lines. SetEnv LD_LIBRARY_PATH "/usr/local/lib" PassEnv LD_LIBRARY_PATH I tried to add to .cshrc file. But It can not acknowledge "PassENV" command. I tried to add to httpd.conf. "SetEnv" is not valid command. By the way , my apache server is now a binary installation. I download the source code , and read the source file of mod_env.c , But I didnot know if I should modify it and how to modify? Which files should I modify? .cshrc ? httpd.conf? mod_env.c? Can someone give me some hint about it? Thanks a lot. Have a great holiday and merry christmas to all in the lists! XSun From don at zeroazimuth.com Mon Dec 24 11:10:20 2001 From: don at zeroazimuth.com (Don Silvia) Date: Mon, 24 Dec 2001 14:10:20 -0500 Subject: [mapserver-users] LD_LIBRARY_PATH In-Reply-To: Message-ID: Those directives belong in httpd.conf. Make sure they come after any LoadModule and AddModule directives. Don Silvia > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of > XSun at odu.edu > Sent: Monday, December 24, 2001 10:30 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] LD_LIBRARY_PATH > > > > Hello Steve and all other friends, > > After read all the articles in the list about the LD_LIBRARY_PATH problem. > I am still puzzled with one problem. which file should I modify > to add the > following lines. > > SetEnv LD_LIBRARY_PATH "/usr/local/lib" > PassEnv LD_LIBRARY_PATH > > I tried to add to .cshrc file. But It can not acknowledge "PassENV" > command. > I tried to add to httpd.conf. "SetEnv" is not valid command. By > the way , > my apache server is now a binary installation. I download the source code > , and read the source file of mod_env.c , But I didnot know if I should > modify it and how to modify? > > Which files should I modify? .cshrc ? httpd.conf? mod_env.c? > > Can someone give me some hint about it? > > Thanks a lot. > > Have a great holiday and merry christmas to all in the lists! > > XSun From pkishor at GeoAnalytics.com Mon Dec 24 12:57:04 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 24 Dec 2001 14:57:04 -0600 Subject: [mapserver-users] slightly offtopic -- mapserver forums Message-ID: Well, I am glad Erwin you spoke up. I was kinda feelin' lonely here. I have tried the Yahoo groups mirror set up by Daniel (DM's email of 12/17). It is a good deal better than this listserv, but still has major problems -- 1. For example, I can't refer to an existing email with a link. Above I referenced DM's email, but there is no way for me to point a reader who has jumped in the discussion now back to that email. That is possible with a web-based forum... just insert a URL. 2. Yahoo groups is much faster than this list... I see postings on that website that arrive in my email box sometimes hours later. 3. I can't post unless I am subscribed (to prevent spammers), but if I subscribe then I am deluged with emails. So, the Yahoo groups takes me only part of the way. I still firmly believe that the web-method is far, far superior... searching, references, attachments, threaded views, etc. etc. But, I think I said that already... pk/ > -----Original Message----- > From: Consult IT!, E. Perik [mailto:perik at consultit.nl] > Sent: Monday, December 24, 2001 2:54 PM > To: mapserver-users at lists.gis.umn.edu > Cc: Puneet Kishor > Subject: RE: [mapserver-users] slightly offtopic -- mapserver forums > > > Hi All, > > i've been reading the discussion started by Puneet regarding > starting a > forum and liking that idea. > > Related possibilities, besides the forum, could be: > > * News > * Bugs > * Howto's > * User list > * Tips & Tricks > * Screencaps > * Search > * Wishlist > * Hardware Info > * References > * Upload section (?) > * ... > > And the usual: > * Links > * Download Section > * Manuals > > An forum example based on the phpBB free web forum is: > http://www.behindfilm.com/pearlharbor/phpBB/ > > Download the phpBB at http://www.phpbb.com > > At http://www.nukeaddon.com/ a complete default-website can > be downloaded. > It embeds the phpBB forum as mentioned above. > Setting up a full working site in 5 minutes. A lot of the > first list above > are already woven into NukeAddOn. > > There are lot's of modules (like a forum) which can be > 'installed' in the > NukeAddOn site. > If it is running and topics etc. are configured then there's almost no > maintenance. > > Hoping this could be usefull for having a more flexible source of > information regarding Mapserver. > > Greetings, > > Erwin > From pkishor at GeoAnalytics.com Mon Dec 24 13:00:17 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 24 Dec 2001 15:00:17 -0600 Subject: [mapserver-users] One MapServer-Site more... Message-ID: Steve, Actually I believe letting Mapserver do garbage collection would be a very good thing. It would not tax the program or the computer one bit, would centralize these temp files (by requiring and instructing the user to do so), and would make things simpler. Yes, Cron is an elegant way of doing things, but not everyone knows how to set up a crontab. It is an additional step, and is not even available on Windoze unless someone runs a bat file via an at command. Anyway, garbage collection is just one of the ways of making the program simpler to install and setup. More on that in another email... pk/ > -----Original Message----- > From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] > Sent: Monday, December 24, 2001 9:51 AM > To: woodbri at swoodbridge.com; mschulz at webgis.de > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] One MapServer-Site more... > > > While I imagine mapserver *could* do garbage collection I > think that's probably a > waste of it's time and would be better handled by cron. > Alternatively you can always > design applications that require no temporary files at all. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Stephen Woodbridge 12/21/01 07:17AM >>> > Michael Schulz - GIS Bearbeiter wrote: > > > Yes, this was a no-space-left-problem on our domain. But > perhaps someone > > can give a hint howto delete the temporary files, without having the > > possibility to install cron-jobs or similiar things because the ISP > > doesn't offer this option. Perhaps it could be done via > php, e.g. each > > time the init-page gets loaded old temp files are deleted. Hmm, has > > anybody done something similar? > > phplib has a similar garbage collection problem and they generate a > random number, if it is less than X then it does the garbage > collection. > This allows you to tune how often garbage collection happens so every > hit isn't trying to do it. (ie. if 0 < random <= 1 and X= 0.1 then > roughly 1 in 10 hits will do garbage collection). > > Steve Lime: It would be nice if this feature were added to > mapserv such > that you could set the percentage and the age in sec/minutes/hours of > the files to be deleted and have mapserver do the garbage > collection. If > percentage == 0.0 of undefined then no GC is done like now. > > -Steve > From pkishor at GeoAnalytics.com Mon Dec 24 13:29:08 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 24 Dec 2001 15:29:08 -0600 Subject: [mapserver-users] simplicity Message-ID: this is a (hopefully constructive) harangue... so, please keep that in mind before flaming me... as you all know I have now been on this list for about 6 months now. In that time (that is when I first started using Mapserver) I have learned a lot about Mapserver, its developers, its community. One word describes them all... fabulous. Now that we are past the self-back-patting, here's the harangue. Mapserver is just simply too difficult. I have now successfully run it on Windoze, RH, and MacOS X. But it has been a pain in the arse to setup. 1. I made a mapserver app on RH using PHP and MySQL... worked great, but the darn PHP was not compiled with XBase, so I had to do gyrations to get to the shapeindex. Of course, that is not the fault of the PHP so, but the person who compiled PHP on that box in the first place. 2. But then, I had to move the app to a Windoze box running Apache. I quickly learned that my app wouldn't run on Windoze because Apache was multi-threaded and the PHP/Mapscript.so didn't support that... had to be run as a CGI. I quickly tried to learn about that and decided to "screw it... I will rewrite it as a Perl app." 3. Then I learned that Perl/Mapscript doesn't work on Windoze very well because of problems with SWIG. So, I said "screw it" to the entire app and decided to make it work on my MacOS X Powerbook. 4. I had to first get gd to work. To make gd work, I had to compile libpng and libjpeg (god help me if I wanted gd to do gifs... that was another runaround). I got all that done when I discovered that I didn't have freetype in my gd. I said "screw it" (there's a pattern here, no!). 5. Btw, while the Mapserver site provides links to all these packages, it doesn't mention all the possible prerequisites, at least not conveniently. 6. Well, I got Mapserver to run when I discovered I hadn't configured PHP (well, I didn't read the configure docs properly) and that I had to recompile. I looked at the configure docs and was confounded with this statement... --with-php=DIR Specify directory where PHP3/PHP4 source tree is installed. Required in order to compile the PHP/MapScript module. I am sorry, but I had no idea what the heck a "source tree" was. 7. Once I figured out what a "source tree" was, I found I had none. You see, my PB came with PHP already installed on it as part of the operating system. There was no source tree. Now what do I do? Muck with my already working PHP setup by downloading the source and recompiling it, or say "screw it" once again to setting up PHP. 8. Eventually, I did just that... downloaded the source and recompiled a program that is already working fine on my computer, recompiled Mapserver, and discoverd that I couldn't dynamically load the dl(). "screw it" again. 9. By now I have spent more time making mapserver and its various components install and setup than actually creating an app with Mapserver. This not how it should be. I know it is a complicated program with many dependencies, and works on many different OSs, but hey, if it is difficult for the user then it is difficult for the user. Maybe it should come with a disclaimer... not for non-geeks! Here's a constructive suggestion -- 1. Why not form separate teams responsible for versions on different OSs? All these teams can be in turn coordinated by a central, core team comprising SDL, DM, a few other. 2. The discussion forums can be sub-categorized into "installation issues", "OS Specific Issues", "Database Issues", "Geo format problems", "Various flavors of Mapscript," etc. 3. I would love to be a part of the MacOS X team. My first aim would be to package every conceivable component and prepare a binary that other MacOS X users can simply download, double-click and install. Most all MacOS X directory and dev tools layouts are identical, and I am sure other MacOS X users will appreciate not having to screw around scrounging for gd, and freetype, and Proj4 and gdal and libjpeg, etc. In fact, I would make the package ready with a crontab entry which would do garbage collection, require a specific temp directory (so it can successfully clean out the junk), and even install a working CGI, Perl, PHP application, and an espresso machine. Ok, this is long enough. If you have cared to read this far, please respond with the knowledge that I am absolutely in awe of what Mapserver can do, and have one and only one aim for it and its developers... world domination and Nobel GIS prize. pk/ From pnaciona at gis.umn.edu Mon Dec 24 14:33:37 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Mon, 24 Dec 2001 16:33:37 -0600 Subject: [mapserver-users] simplicity In-Reply-To: Message-ID: Puneet, Sorry to hear all the hassles you've gone through. By the way, did you document all that? It's exactly the one thing that we've all been complaining about... but few people contribute. And I'm as guilty as anybody else. Happy Christmas, even though the war may not be over yet. -Perry N. On Mon, 24 Dec 2001, Puneet Kishor wrote: > this is a (hopefully constructive) harangue... so, please keep that in mind > before flaming me... > > as you all know I have now been on this list for about 6 months now. In that > time (that is when I first started using Mapserver) I have learned a lot > about Mapserver, its developers, its community. One word describes them > all... fabulous. > > Now that we are past the self-back-patting, here's the harangue. Mapserver > is just simply too difficult. > > I have now successfully run it on Windoze, RH, and MacOS X. But it has been > a pain in the arse to setup. > > 1. I made a mapserver app on RH using PHP and MySQL... worked great, but the > darn PHP was not compiled with XBase, so I had to do gyrations to get to the > shapeindex. Of course, that is not the fault of the PHP so, but the person > who compiled PHP on that box in the first place. > > 2. But then, I had to move the app to a Windoze box running Apache. I > quickly learned that my app wouldn't run on Windoze because Apache was > multi-threaded and the PHP/Mapscript.so didn't support that... had to be run > as a CGI. I quickly tried to learn about that and decided to "screw it... I > will rewrite it as a Perl app." > > 3. Then I learned that Perl/Mapscript doesn't work on Windoze very well > because of problems with SWIG. So, I said "screw it" to the entire app and > decided to make it work on my MacOS X Powerbook. > > 4. I had to first get gd to work. To make gd work, I had to compile libpng > and libjpeg (god help me if I wanted gd to do gifs... that was another > runaround). I got all that done when I discovered that I didn't have > freetype in my gd. I said "screw it" (there's a pattern here, no!). > > 5. Btw, while the Mapserver site provides links to all these packages, it > doesn't mention all the possible prerequisites, at least not conveniently. > > 6. Well, I got Mapserver to run when I discovered I hadn't configured PHP > (well, I didn't read the configure docs properly) and that I had to > recompile. I looked at the configure docs and was confounded with this > statement... > > --with-php=DIR Specify directory where PHP3/PHP4 source tree is > installed. Required in order to compile the > PHP/MapScript module. > > I am sorry, but I had no idea what the heck a "source tree" was. > > 7. Once I figured out what a "source tree" was, I found I had none. You see, > my PB came with PHP already installed on it as part of the operating system. > There was no source tree. Now what do I do? Muck with my already working PHP > setup by downloading the source and recompiling it, or say "screw it" once > again to setting up PHP. > > 8. Eventually, I did just that... downloaded the source and recompiled a > program that is already working fine on my computer, recompiled Mapserver, > and discoverd that I couldn't dynamically load the dl(). "screw it" again. > > 9. By now I have spent more time making mapserver and its various components > install and setup than actually creating an app with Mapserver. This not how > it should be. > > I know it is a complicated program with many dependencies, and works on many > different OSs, but hey, if it is difficult for the user then it is difficult > for the user. Maybe it should come with a disclaimer... not for non-geeks! > > Here's a constructive suggestion -- > > 1. Why not form separate teams responsible for versions on different OSs? > All these teams can be in turn coordinated by a central, core team > comprising SDL, DM, a few other. > > 2. The discussion forums can be sub-categorized into "installation issues", > "OS Specific Issues", "Database Issues", "Geo format problems", "Various > flavors of Mapscript," etc. > > 3. I would love to be a part of the MacOS X team. My first aim would be to > package every conceivable component and prepare a binary that other MacOS X > users can simply download, double-click and install. Most all MacOS X > directory and dev tools layouts are identical, and I am sure other MacOS X > users will appreciate not having to screw around scrounging for gd, and > freetype, and Proj4 and gdal and libjpeg, etc. In fact, I would make the > package ready with a crontab entry which would do garbage collection, > require a specific temp directory (so it can successfully clean out the > junk), and even install a working CGI, Perl, PHP application, and an > espresso machine. > > Ok, this is long enough. If you have cared to read this far, please respond > with the knowledge that I am absolutely in awe of what Mapserver can do, and > have one and only one aim for it and its developers... world domination and > Nobel GIS prize. > > pk/ > From vieglais at ukans.edu Mon Dec 24 15:00:53 2001 From: vieglais at ukans.edu (Dave Vieglais) Date: Mon, 24 Dec 2001 18:00:53 -0500 Subject: [mapserver-users] One MapServer-Site more... In-Reply-To: Message-ID: <000301c18cce$d7ebc8f0$6601a8c0@DV2> Does Mapserver retrieve images from the cache when identical requests are received (within a given period of time)? If not, then implementing this along with garbage collection (call it "cache management") could speed things up a little for some sites and would seem to be a desirable enhancement. However, for those of us using a script interface to MS this functionality is easily implemented with greater flexibility outside with the scripting language rather than within the MS executable. dv. > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver- > users at lists.gis.umn.edu] On Behalf Of Puneet Kishor > Sent: Monday, December 24, 2001 16:00 > To: 'Stephen Lime'; woodbri at swoodbridge.com; mschulz at webgis.de > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] One MapServer-Site more... > > Steve, > > Actually I believe letting Mapserver do garbage collection would be a very > good thing. It would not tax the program or the computer one bit, would > centralize these temp files (by requiring and instructing the user to do > so), and would make things simpler. Yes, Cron is an elegant way of doing > things, but not everyone knows how to set up a crontab. It is an > additional > step, and is not even available on Windoze unless someone runs a bat file > via an at command. > > Anyway, garbage collection is just one of the ways of making the program > simpler to install and setup. More on that in another email... > > pk/ > > > -----Original Message----- > > From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] > > Sent: Monday, December 24, 2001 9:51 AM > > To: woodbri at swoodbridge.com; mschulz at webgis.de > > Cc: mapserver-users at lists.gis.umn.edu > > Subject: Re: [mapserver-users] One MapServer-Site more... > > > > > > While I imagine mapserver *could* do garbage collection I > > think that's probably a > > waste of it's time and would be better handled by cron. > > Alternatively you can always > > design applications that require no temporary files at all. > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> Stephen Woodbridge 12/21/01 07:17AM >>> > > Michael Schulz - GIS Bearbeiter wrote: > > > > > Yes, this was a no-space-left-problem on our domain. But > > perhaps someone > > > can give a hint howto delete the temporary files, without having the > > > possibility to install cron-jobs or similiar things because the ISP > > > doesn't offer this option. Perhaps it could be done via > > php, e.g. each > > > time the init-page gets loaded old temp files are deleted. Hmm, has > > > anybody done something similar? > > > > phplib has a similar garbage collection problem and they generate a > > random number, if it is less than X then it does the garbage > > collection. > > This allows you to tune how often garbage collection happens so every > > hit isn't trying to do it. (ie. if 0 < random <= 1 and X= 0.1 then > > roughly 1 in 10 hits will do garbage collection). > > > > Steve Lime: It would be nice if this feature were added to > > mapserv such > > that you could set the percentage and the age in sec/minutes/hours of > > the files to be deleted and have mapserver do the garbage > > collection. If > > percentage == 0.0 of undefined then no GC is done like now. > > > > -Steve > > From pkishor at GeoAnalytics.com Mon Dec 24 15:31:13 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 24 Dec 2001 17:31:13 -0600 Subject: [mapserver-users] RE: simplicity Message-ID: I was reading an interview of Jordan Hubbard (see http://www.pioneerplanet.com/tech/ctk_docs/207182.htm). Here's the last para... "Hubbard insists that the Macintosh will get open-source software to consumers' desktops faster than all the open-source software projects ever dreamed up over a six-pack of Jolt Cola. When he worked on FreeBSD, Hubbard knew his work would be appreciated only by a handful of fellow geeks. "In the Apple space," he says, "I can do things I can explain to my mother." This, come to think of it, is a good principle for would-be world conquerors: Keep it simple." Kinda backs my rant... I want to be able to explain Mapserver to my mother. Merry X'mas. pk/ > -----Original Message----- > From: Puneet Kishor > Sent: Monday, December 24, 2001 3:29 PM > To: mapserver-users at lists.gis.umn.edu > Subject: simplicity > > > this is a (hopefully constructive) harangue... so, please > keep that in mind before flaming me... > yada yada yada From pkishor at GeoAnalytics.com Mon Dec 24 16:03:04 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 24 Dec 2001 18:03:04 -0600 Subject: [mapserver-users] simplicity Message-ID: Hi Perry, I have documented my troubles sort of (I mean, my rant itself was a documentation, no ;-) ). Seriously, I am gonna try and create a successful MacOS X package, and I will document my one success instead of the numerous failures. Will anounce it when it is ready. Thanks, pk/ > -----Original Message----- > From: Pericles S. Nacionales [mailto:pnaciona at gis.umn.edu] > Sent: Monday, December 24, 2001 4:34 PM > To: Puneet Kishor > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] simplicity > > > Puneet, > > Sorry to hear all the hassles you've gone through. By the > way, did you > document all that? It's exactly the one thing that we've all been > complaining about... but few people contribute. And I'm as guilty as > anybody else. > > Happy Christmas, even though the war may not be over yet. > > -Perry N. > > > > On Mon, 24 Dec 2001, Puneet Kishor wrote: > > > this is a (hopefully constructive) harangue... so, please > keep that in mind > > before flaming me... > > > > as you all know I have now been on this list for about 6 > months now. In that > > time (that is when I first started using Mapserver) I have > learned a lot > > about Mapserver, its developers, its community. One word > describes them > > all... fabulous. > > > > Now that we are past the self-back-patting, here's the > harangue. Mapserver > > is just simply too difficult. > > > > I have now successfully run it on Windoze, RH, and MacOS X. > But it has been > > a pain in the arse to setup. > > > > 1. I made a mapserver app on RH using PHP and MySQL... > worked great, but the > > darn PHP was not compiled with XBase, so I had to do > gyrations to get to the > > shapeindex. Of course, that is not the fault of the PHP so, > but the person > > who compiled PHP on that box in the first place. > > > > 2. But then, I had to move the app to a Windoze box running > Apache. I > > quickly learned that my app wouldn't run on Windoze because > Apache was > > multi-threaded and the PHP/Mapscript.so didn't support > that... had to be run > > as a CGI. I quickly tried to learn about that and decided > to "screw it... I > > will rewrite it as a Perl app." > > > > 3. Then I learned that Perl/Mapscript doesn't work on > Windoze very well > > because of problems with SWIG. So, I said "screw it" to the > entire app and > > decided to make it work on my MacOS X Powerbook. > > > > 4. I had to first get gd to work. To make gd work, I had to > compile libpng > > and libjpeg (god help me if I wanted gd to do gifs... that > was another > > runaround). I got all that done when I discovered that I didn't have > > freetype in my gd. I said "screw it" (there's a pattern here, no!). > > > > 5. Btw, while the Mapserver site provides links to all > these packages, it > > doesn't mention all the possible prerequisites, at least > not conveniently. > > > > 6. Well, I got Mapserver to run when I discovered I hadn't > configured PHP > > (well, I didn't read the configure docs properly) and that I had to > > recompile. I looked at the configure docs and was > confounded with this > > statement... > > > > --with-php=DIR Specify directory where PHP3/PHP4 > source tree is > > installed. Required in order to > compile the > > PHP/MapScript module. > > > > I am sorry, but I had no idea what the heck a "source tree" was. > > > > 7. Once I figured out what a "source tree" was, I found I > had none. You see, > > my PB came with PHP already installed on it as part of the > operating system. > > There was no source tree. Now what do I do? Muck with my > already working PHP > > setup by downloading the source and recompiling it, or say > "screw it" once > > again to setting up PHP. > > > > 8. Eventually, I did just that... downloaded the source and > recompiled a > > program that is already working fine on my computer, > recompiled Mapserver, > > and discoverd that I couldn't dynamically load the dl(). > "screw it" again. > > > > 9. By now I have spent more time making mapserver and its > various components > > install and setup than actually creating an app with > Mapserver. This not how > > it should be. > > > > I know it is a complicated program with many dependencies, > and works on many > > different OSs, but hey, if it is difficult for the user > then it is difficult > > for the user. Maybe it should come with a disclaimer... not > for non-geeks! > > > > Here's a constructive suggestion -- > > > > 1. Why not form separate teams responsible for versions on > different OSs? > > All these teams can be in turn coordinated by a central, core team > > comprising SDL, DM, a few other. > > > > 2. The discussion forums can be sub-categorized into > "installation issues", > > "OS Specific Issues", "Database Issues", "Geo format > problems", "Various > > flavors of Mapscript," etc. > > > > 3. I would love to be a part of the MacOS X team. My first > aim would be to > > package every conceivable component and prepare a binary > that other MacOS X > > users can simply download, double-click and install. Most > all MacOS X > > directory and dev tools layouts are identical, and I am > sure other MacOS X > > users will appreciate not having to screw around scrounging > for gd, and > > freetype, and Proj4 and gdal and libjpeg, etc. In fact, I > would make the > > package ready with a crontab entry which would do garbage > collection, > > require a specific temp directory (so it can successfully > clean out the > > junk), and even install a working CGI, Perl, PHP application, and an > > espresso machine. > > > > Ok, this is long enough. If you have cared to read this > far, please respond > > with the knowledge that I am absolutely in awe of what > Mapserver can do, and > > have one and only one aim for it and its developers... > world domination and > > Nobel GIS prize. > > > > pk/ > > > From pkishor at GeoAnalytics.com Tue Dec 25 13:05:54 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 25 Dec 2001 15:05:54 -0600 Subject: [mapserver-users] simplicity In-Reply-To: <20011225200305.ADF60102A7F@lion.animals> Message-ID: <2F799F3A-F97B-11D5-B06D-003065B5737C@geoanalytics.com> Hi Paul, Here's some of my responses to your thoughtful reply. On Tuesday, December 25, 2001, at 02:03 PM, Paul Ramsey wrote: > No flames here. As an experienced unix systadmin, I do not find the > mapserver > install particularly hard, but I know that it is not remotely simple > for the > unversed. without boring you all with my background, I would say I am an advanced computer user. Yet, after the first blush, I find trying to successfully compile a program perplexing. After a string of failures, that perplexity degenerates into boredom. As I said in my earlier email, I spent more time installing Mapserver successfully than I did creating an application with incorporating Mapscript and MySQL. It should really be the other way around. Maybe it is the Mac-user in me. Mac users have always expected that they would spend more time using their programs than they would troubleshooting them. And while the rest of the world found that to be weird, we had a great time using beautiful programs on a beautiful operating system. One should _not_ need to be an experienced Unix sysadmin to find the install easy. One should be most anybody to find the install easy. > There are definately alot of dependencies (which incidentally is > why it works -- if the whole thing was one monolithic piece of software > it > would never have been finished). I suspect you are correct. However, to a great extent Mapserver is now finished. It works. From here on it is a matter of adding more features to it. However, what it does now it does very well. What is required now is to make it easier to setup and get started. > I actually started making a complete set of RPMs of both the mapserver > package and all the required support libraries, with the proper options > compiled in, etc. Took quite a while, and is still only about 2/3 done. > (libgd w/ gif, postgresql w/ postgis, proj, ogr, gdal, mapserver, > mapscript > of various flavours ... it's about a dozen different RPMs by the time > you're > done). Ya, that's what I have started doing for MacOS X. And that is the conclusion I am getting at. However, I am motivated by the following, assuming I stick to one OS, that is MacOS X in this case -- 1. most all MacOS X installs are almost identical... different only if the user has made any specific, concerted changes to the directory hierarchy and the set of tools that Apple provides. If they have, then they are experienced in Unix ways anyway, and they don't need a prepared package from me... they can do it themselves. 2. as long as I declare right up front some of the assumptions and pre-requisites clearly, the user is getting into charted waters. Such declarations might be -- - this package uses Mapserver version xxx.xxx - this packages comprises gd version xx.xx, and this and that version xx.xxx, etc. - this package assumes you have this and that - installing this package will create the following directories for you - etc., etc. 3. If the user wants anything more or less than what the declarations state in #2 above, they are on their own. 4. By doing the above for one specific OS, and for a preset package of versions and tools, I restrict the number of variations I would have to deal with. By reducing this complexity I make my job manageable. For those who want the cutting edge, they are welcome to go cut themselves. 5. By having a discussion forum that is manageable, and can be navigated easily via OS and issues-specific discussion groups, users will be able to find other users with a like set of problems and operating environment, and be able to help themselves. That way no one person would have to bear the cross of support. The email listserv right now is way too chaotic. Too many emails on too many different topics and issues flying in too many different directions. Hence, my suggestion that Mapserver packaging be divided into teams responsible for specific OSs and even specific issues. > I sort of stopped with the knowledge that if I ever released the set I > would have to either spend alot of time then maintaining that huge set > as the > source code was improved and debugged, or else adopt an unfriendly > "tough, > that's all you get" response to any help queries. The only thing more > work > than doing something nice for an OSS community (writing doco, doing > packaging, writing the program itself...) is *supporting* the thing once > you're done. Yup, but since the package you have made comes with the declarations, those who get into it know what to expect. They get a working program which may not have the very latest, greatest, and flakiest. > > So, the $100 question to you: if there was a pre-packaged, "just > install and > run" mapserver suite, would you *buy* it? And if you would, what would > be > your price point? Packaging is low in glory, high in maintainance and > support. Which is why joints like Red Hat actually sell their packages. > > How much is a professional and reliable mapserver install package worth? That is not a simple question to answer -- to me personally Mapserver is worth nothing. As an individual user I paid $70 for AppleWorks and $39 for Quicken, etc. What use is Mapserver for me as an individual! I'd rather pay for $44 Expedia Streets and Trips so I can plan my next road trip to Glacier National Park. On the other hand, a reliable and professional Mapserver install package might be worth as much as a couple of grand to my company, or to a client who right now is frustratingly tackling with ArcIMS. Maybe, they might pay a $300 license for Mapserver and then hire a consulting company to put up an excruciatingly complex mapping application for them. I dunno. I mean, how much are Apache and Perl worth to me... and Apache and Perl have achieved a fairly decent level of simplicity by now at least in their install procedures. Putting a $ value on opensource sw has always been difficult. But, it would be safe to say that we are all doing it not for money... maybe for bringing the big guys down, maybe for showing up the commercial vendors who charge a lot for their shitty products, maybe for the high we get for coding a good program, whatever. I am sure all of us want more and more people to use Mapserver. I believe that can be done by making it easy to get started. I believe dividing the Mapserver project into several groups might be worthwhile. The core team can continue to work on the source code, making the program more powerful, more flexible, etc. OS specific teams can make packages that install and run easily on their respective OSes. I hope others can join in this conversation and that something good comes out of it. Cheers, and a merry x'mas. pk/ From pkishor at GeoAnalytics.com Tue Dec 25 19:10:15 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 25 Dec 2001 21:10:15 -0600 Subject: [mapserver-users] compilation question In-Reply-To: <2F799F3A-F97B-11D5-B06D-003065B5737C@geoanalytics.com> Message-ID: <15A6B380-F9AE-11D5-B06D-003065B5737C@geoanalytics.com> All these various components that Mapserver depends on (gd, which in turn depends on libpng and libjpeg and freetype; gdal; proj4, etc. etc.)... what happens to these during compilation? Do they get statically embedded inside Mapserver, or do they have to hang around the computer somewhere only to be dynamically called by Mapserver as and when desired? If the latter (dynamically linked), how is possible to do the former (statically linked)? Tia, pk/ From Regina.Obe.PFD at ci.boston.ma.us Wed Dec 26 05:20:53 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Wed, 26 Dec 2001 08:20:53 -0500 Subject: [mapserver-users] simplicity Message-ID: I agree with all the comments stated. One nicety which I don't know if it's too much trouble - would be to have or if there are any laws against it is to have a source package that includes all the other source packages that mapserver depends on or at least the more commonly used ones or at least have them all downloadable from the mapserver site (rather than just pointing to other sites). For two reasons - 1) Since a lot of the other stuff is opensource too - it too is constantly changing so you never know if your compiled code doesn't work because you are not using the right version of the other dependencies and then god forbid if you put the package in the wrong place in your source tree - then you've got to change everything else. 2) I don't mind compiling my code too much, but one frustration I've had with trying to follow the documentation on compiling (at least windows one - I assume the same applies with others) - is when I finally download the source for freetype or whatever there own compile instructions and version numbers have changed and then all my paths are screwed up trying to compile - so the whole section on how to compile my freetype on the mapserver site goes out the door. Now i have to use JAM to compile freetype because it doesn't come with a config script and then figure out where to throw these packages so that my other stuff can find it etc. I won't even bore you with my frustration of figuring out which variant of gd.1... I need. -----Original Message----- From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com] Sent: Tuesday, December 25, 2001 4:06 PM To: Paul Ramsey Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] simplicity Hi Paul, Here's some of my responses to your thoughtful reply. On Tuesday, December 25, 2001, at 02:03 PM, Paul Ramsey wrote: > No flames here. As an experienced unix systadmin, I do not find the > mapserver > install particularly hard, but I know that it is not remotely simple > for the > unversed. without boring you all with my background, I would say I am an advanced computer user. Yet, after the first blush, I find trying to successfully compile a program perplexing. After a string of failures, that perplexity degenerates into boredom. As I said in my earlier email, I spent more time installing Mapserver successfully than I did creating an application with incorporating Mapscript and MySQL. It should really be the other way around. Maybe it is the Mac-user in me. Mac users have always expected that they would spend more time using their programs than they would troubleshooting them. And while the rest of the world found that to be weird, we had a great time using beautiful programs on a beautiful operating system. One should _not_ need to be an experienced Unix sysadmin to find the install easy. One should be most anybody to find the install easy. > There are definately alot of dependencies (which incidentally is > why it works -- if the whole thing was one monolithic piece of software > it > would never have been finished). I suspect you are correct. However, to a great extent Mapserver is now finished. It works. From here on it is a matter of adding more features to it. However, what it does now it does very well. What is required now is to make it easier to setup and get started. > I actually started making a complete set of RPMs of both the mapserver > package and all the required support libraries, with the proper options > compiled in, etc. Took quite a while, and is still only about 2/3 done. > (libgd w/ gif, postgresql w/ postgis, proj, ogr, gdal, mapserver, > mapscript > of various flavours ... it's about a dozen different RPMs by the time > you're > done). Ya, that's what I have started doing for MacOS X. And that is the conclusion I am getting at. However, I am motivated by the following, assuming I stick to one OS, that is MacOS X in this case -- 1. most all MacOS X installs are almost identical... different only if the user has made any specific, concerted changes to the directory hierarchy and the set of tools that Apple provides. If they have, then they are experienced in Unix ways anyway, and they don't need a prepared package from me... they can do it themselves. 2. as long as I declare right up front some of the assumptions and pre-requisites clearly, the user is getting into charted waters. Such declarations might be -- - this package uses Mapserver version xxx.xxx - this packages comprises gd version xx.xx, and this and that version xx.xxx, etc. - this package assumes you have this and that - installing this package will create the following directories for you - etc., etc. 3. If the user wants anything more or less than what the declarations state in #2 above, they are on their own. 4. By doing the above for one specific OS, and for a preset package of versions and tools, I restrict the number of variations I would have to deal with. By reducing this complexity I make my job manageable. For those who want the cutting edge, they are welcome to go cut themselves. 5. By having a discussion forum that is manageable, and can be navigated easily via OS and issues-specific discussion groups, users will be able to find other users with a like set of problems and operating environment, and be able to help themselves. That way no one person would have to bear the cross of support. The email listserv right now is way too chaotic. Too many emails on too many different topics and issues flying in too many different directions. Hence, my suggestion that Mapserver packaging be divided into teams responsible for specific OSs and even specific issues. > I sort of stopped with the knowledge that if I ever released the set I > would have to either spend alot of time then maintaining that huge set > as the > source code was improved and debugged, or else adopt an unfriendly > "tough, > that's all you get" response to any help queries. The only thing more > work > than doing something nice for an OSS community (writing doco, doing > packaging, writing the program itself...) is *supporting* the thing once > you're done. Yup, but since the package you have made comes with the declarations, those who get into it know what to expect. They get a working program which may not have the very latest, greatest, and flakiest. > > So, the $100 question to you: if there was a pre-packaged, "just > install and > run" mapserver suite, would you *buy* it? And if you would, what would > be > your price point? Packaging is low in glory, high in maintainance and > support. Which is why joints like Red Hat actually sell their packages. > > How much is a professional and reliable mapserver install package worth? That is not a simple question to answer -- to me personally Mapserver is worth nothing. As an individual user I paid $70 for AppleWorks and $39 for Quicken, etc. What use is Mapserver for me as an individual! I'd rather pay for $44 Expedia Streets and Trips so I can plan my next road trip to Glacier National Park. On the other hand, a reliable and professional Mapserver install package might be worth as much as a couple of grand to my company, or to a client who right now is frustratingly tackling with ArcIMS. Maybe, they might pay a $300 license for Mapserver and then hire a consulting company to put up an excruciatingly complex mapping application for them. I dunno. I mean, how much are Apache and Perl worth to me... and Apache and Perl have achieved a fairly decent level of simplicity by now at least in their install procedures. Putting a $ value on opensource sw has always been difficult. But, it would be safe to say that we are all doing it not for money... maybe for bringing the big guys down, maybe for showing up the commercial vendors who charge a lot for their shitty products, maybe for the high we get for coding a good program, whatever. I am sure all of us want more and more people to use Mapserver. I believe that can be done by making it easy to get started. I believe dividing the Mapserver project into several groups might be worthwhile. The core team can continue to work on the source code, making the program more powerful, more flexible, etc. OS specific teams can make packages that install and run easily on their respective OSes. I hope others can join in this conversation and that something good comes out of it. Cheers, and a merry x'mas. pk/ From brian at stallingscrop.com Wed Dec 26 07:24:17 2001 From: brian at stallingscrop.com (Brian McKenzie) Date: Wed, 26 Dec 2001 10:24:17 -0500 Subject: [mapserver-users] Oracle Spatial SRID mismatch fix Message-ID: Rod, I will be happy to test for you. Do I need to download new copy of mapserv to get your fix or should I just do it manually. Thanks Brian -----Original Message----- From: Rodrigo Cabral [mailto:cabral at yadata.net] Sent: Saturday, December 22, 2001 1:46 PM To: Brian McKenzie; mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Oracle Spatial SRID mismatch fix Brian, I just fixed the SRID mismatch error from the built-in SQL statement I send to Oracle when requesting shape data. Instead of using NULL, I'm using "table_name.geom_column.sdo_srid" so that the window SDO_GEOMETRY object has the same SRID of your source table. This fix means that your mapfile coordinates (e.g. extents) MUST BE in the same coordinate system of your data. I should expand this syntax in the future so MapServer can combine data from different coordinate systems using Oracle's SRID built-in support (so we would use SDO's functions, not PROJ.4). I would appreciate if you could test the code, as I don't have any data with a defined (not null) SRID info. Regards, Rod. ----- Original Message ----- From: "Rodrigo Cabral" To: "Brian McKenzie" ; Sent: Saturday, December 15, 2001 10:00 PM Subject: Re: [mapserver-users] Blank image generated from oracle spatial layer Hey there, Actually, I just noticed where the problem is. Let's examine this excerpt from the error message: [window SRID does not match layer SRID] As you mentioned Brian, it's an SRID problem, not an indexation problem. It occurs due to this function call (SDO_FILTER): SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-180.3 ,-179.7,179.7,180.3) ),'querytype=window') = 'TRUE' which passes three arguments: geom1=GEOLOC; geom2=SDO_GEOMETRY constructor; and a third non-relevant argument. geom1 has a defined SRID, while geom2 doesn't. So we get a SRID mismatch error. I've never tried working Spatial with defined SRIDs, so I never got this error. I'll try to solve it soon, but meanwhile try using this as your DATA statement in your mapfile: DATA "GEOLOC from cnybndpl" changes to DATA "GEOLOC from (SELECT GEOLOC FROM cnybndpl)" This will remove the SDO_FILTER call from the query, hence eliminating the error. Using SELECT statement instead of a tablename makes impossible for me to apply a "windowed" query. I reached this conclusion because when I attempted to do so, Oracle gave me an error as I cannot use SDO_FILTER with a geometry (the query result) that has not an index defined for it. Consequently, MapServer will get all elements from the table, and not only those who are within the current extent "view". This should slow the performance a bit, but I dont think it's something you need to worry about. Debasish, this "workaround" should make your problem go away too, in case you decide to try working with Oracle Spatial again. Cheers, Rod. From steve.lime at dnr.state.mn.us Wed Dec 26 07:43:42 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 26 Dec 2001 09:43:42 -0600 Subject: [mapserver-users] One MapServer-Site more... Message-ID: There is no caching mechanism built into mapserver. Using GET requests allows for client/server-side caching though and works very nicely. In general "identical" requests are fairly rare. Rather you'd have to be able to support fuzzy matching of some sort (+/-) a few units on the extent or whatever. If you or someone else wants to add this topic to bugzilla as a feature request that would be appropriate. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Dave Vieglais" 12/24/01 05:00PM >>> Does Mapserver retrieve images from the cache when identical requests are received (within a given period of time)? If not, then implementing this along with garbage collection (call it "cache management") could speed things up a little for some sites and would seem to be a desirable enhancement. However, for those of us using a script interface to MS this functionality is easily implemented with greater flexibility outside with the scripting language rather than within the MS executable. dv. > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver- > users at lists.gis.umn.edu] On Behalf Of Puneet Kishor > Sent: Monday, December 24, 2001 16:00 > To: 'Stephen Lime'; woodbri at swoodbridge.com; mschulz at webgis.de > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] One MapServer-Site more... > > Steve, > > Actually I believe letting Mapserver do garbage collection would be a very > good thing. It would not tax the program or the computer one bit, would > centralize these temp files (by requiring and instructing the user to do > so), and would make things simpler. Yes, Cron is an elegant way of doing > things, but not everyone knows how to set up a crontab. It is an > additional > step, and is not even available on Windoze unless someone runs a bat file > via an at command. > > Anyway, garbage collection is just one of the ways of making the program > simpler to install and setup. More on that in another email... > > pk/ > > > -----Original Message----- > > From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] > > Sent: Monday, December 24, 2001 9:51 AM > > To: woodbri at swoodbridge.com; mschulz at webgis.de > > Cc: mapserver-users at lists.gis.umn.edu > > Subject: Re: [mapserver-users] One MapServer-Site more... > > > > > > While I imagine mapserver *could* do garbage collection I > > think that's probably a > > waste of it's time and would be better handled by cron. > > Alternatively you can always > > design applications that require no temporary files at all. > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> Stephen Woodbridge 12/21/01 07:17AM >>> > > Michael Schulz - GIS Bearbeiter wrote: > > > > > Yes, this was a no-space-left-problem on our domain. But > > perhaps someone > > > can give a hint howto delete the temporary files, without having the > > > possibility to install cron-jobs or similiar things because the ISP > > > doesn't offer this option. Perhaps it could be done via > > php, e.g. each > > > time the init-page gets loaded old temp files are deleted. Hmm, has > > > anybody done something similar? > > > > phplib has a similar garbage collection problem and they generate a > > random number, if it is less than X then it does the garbage > > collection. > > This allows you to tune how often garbage collection happens so every > > hit isn't trying to do it. (ie. if 0 < random <= 1 and X= 0.1 then > > roughly 1 in 10 hits will do garbage collection). > > > > Steve Lime: It would be nice if this feature were added to > > mapserv such > > that you could set the percentage and the age in sec/minutes/hours of > > the files to be deleted and have mapserver do the garbage > > collection. If > > percentage == 0.0 of undefined then no GC is done like now. > > > > -Steve > > From pkishor at GeoAnalytics.com Wed Dec 26 07:47:10 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 26 Dec 2001 09:47:10 -0600 Subject: [mapserver-users] simplicity In-Reply-To: Message-ID: Regina, Thanks for your valuable input. On Wednesday, December 26, 2001, at 07:20 AM, Obe, Regina DND\MMIS wrote: > I agree with all the comments stated. One nicety which I don't know if > it's > too much trouble - would be to have or if there are any laws against it > is > to have a source package that includes all the other source packages > that > mapserver depends on or at least the more commonly used ones or at least I couldn't agree with you more. I believe there may be copyright issues preventing Mapserver site to actually put all the packages on its own webserver, but I also believe that giving specific version numbers of the packages that work would not violate any copyright. As it is, giving a link to freetype.org or png.org doesn't do much. It plops us down in front of another opensource mess of versions and dependencies as you have well experienced. So, I started downloading all the packages that Mapserver could be built with. I am already up to 12 packages, and I haven't yet downloaded a few. Once I figure out a way to build Mapserver with these libraries/packages statically embedded in it, I will compile it and there will be a single executable that can be used without worrying about any other dependencies. > 2) I don't mind compiling my code too much, but one frustration I've > had I am glad you brought that up. Lest anyone think my tirade for simplicity is because I want to have the work done for me... not so. In fact, I am going to do whatever needs be done so other new users don't have to face the frustration I face. That is the only way I am going to be able to convince potential new users that Mapserver is good. pk/ From nwerneck at yahoo.com.br Wed Dec 26 08:06:46 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Wed, 26 Dec 2001 13:06:46 -0300 (ART) Subject: [mapserver-users] creating classes with mapscript Message-ID: <20011226160646.10502.qmail@web20006.mail.yahoo.com> Hello, folks... It's me again! :] OK, this definition in the .map file works (the code of the location is displayed over it on the map): LAYER NAME empresas DATA sedes TYPE annotation STATUS default CLASSITEM 'CODIBGE' LABELITEM 'CODIBGE' CLASS EXPRESSION '3144508' LABEL TYPE truetype FONT verdanai SIZE 7 COLOR 0 0 0 POSITION auto END END END ... but this piece of PHP/MapScript code doesn't deliver the same results. The map is displayed as if the class is empty. The layer definition if there on the .map, but no classes are defined on it: $cla = ms_newClassObj($map->getLayerByName("empresas")); $cla->setexpression("'3144508'"); $cla->label->type=MS_TRUETYPE; $cla->label->font="verdanai"; $cla->label->size=7; $cla->label->color=$cor; $cla->label->position=MS_UL; shouldn't it give the SAME results? thanks... ++nicolau _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. ? f?cil e gr?tis! http://br.geocities.yahoo.com/ From LBallard at YesVirginia.org Wed Dec 26 09:16:04 2001 From: LBallard at YesVirginia.org (LBallard at YesVirginia.org) Date: Wed, 26 Dec 2001 12:16:04 -0500 Subject: [mapserver-users] simplicity Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16D45D@communications> http://www.apachetoolbox.com/ I've cited The Apache Toolbox Project a few times on the list. I love it. I can pick and choose the things I want compiled into Apache. It runs out on the Internet, grabs them and rolls them in for me. It's a great utility. With the growing complexity of Mapserver this would make sense...but it's work. Lowell Ballard Unix/Database Administrator Virginia Economic Development Partnership 901 E. Byrd St., Richmond, Va. 23218 http://gis.vedp.org -----Original Message----- From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com] Sent: Wednesday, December 26, 2001 10:47 AM To: Obe, Regina DND\MIS Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] simplicity Regina, Thanks for your valuable input. On Wednesday, December 26, 2001, at 07:20 AM, Obe, Regina DND\MMIS wrote: > I agree with all the comments stated. One nicety which I don't know if > it's > too much trouble - would be to have or if there are any laws against it > is > to have a source package that includes all the other source packages > that > mapserver depends on or at least the more commonly used ones or at least I couldn't agree with you more. I believe there may be copyright issues preventing Mapserver site to actually put all the packages on its own webserver, but I also believe that giving specific version numbers of the packages that work would not violate any copyright. As it is, giving a link to freetype.org or png.org doesn't do much. It plops us down in front of another opensource mess of versions and dependencies as you have well experienced. So, I started downloading all the packages that Mapserver could be built with. I am already up to 12 packages, and I haven't yet downloaded a few. Once I figure out a way to build Mapserver with these libraries/packages statically embedded in it, I will compile it and there will be a single executable that can be used without worrying about any other dependencies. > 2) I don't mind compiling my code too much, but one frustration I've > had I am glad you brought that up. Lest anyone think my tirade for simplicity is because I want to have the work done for me... not so. In fact, I am going to do whatever needs be done so other new users don't have to face the frustration I face. That is the only way I am going to be able to convince potential new users that Mapserver is good. pk/ From pkishor at GeoAnalytics.com Wed Dec 26 10:41:29 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 26 Dec 2001 12:41:29 -0600 Subject: [mapserver-users] simplicity Message-ID: this is most excellent. Definitely a model to follow. Thanks Lowell. Actually, the idea itself is not new. After all, CPAN and ppm (on Windoze) do the same thing. pk/ > -----Original Message----- > From: LBallard at YesVirginia.org [mailto:LBallard at YesVirginia.org] > Sent: Wednesday, December 26, 2001 11:16 AM > To: Puneet Kishor; Regina.Obe.PFD at ci.boston.ma.us > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] simplicity > > > http://www.apachetoolbox.com/ > > I've cited The Apache Toolbox Project a few times on the > list. I love it. > I can pick and choose the things I want compiled into Apache. > It runs out > on the Internet, grabs them and rolls them in for me. It's a > great utility. > With the growing complexity of Mapserver this would make > sense...but it's > work. > > > Lowell Ballard > Unix/Database Administrator > Virginia Economic Development Partnership > 901 E. Byrd St., Richmond, Va. 23218 > http://gis.vedp.org > > > -----Original Message----- > From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com] > Sent: Wednesday, December 26, 2001 10:47 AM > To: Obe, Regina DND\MIS > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] simplicity > > Regina, > > Thanks for your valuable input. > > On Wednesday, December 26, 2001, at 07:20 AM, Obe, Regina > DND\MMIS wrote: [snip] From nwerneck at yahoo.com.br Wed Dec 26 11:37:46 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Wed, 26 Dec 2001 16:37:46 -0300 (ART) Subject: [mapserver-users] creating classes with mapscript again Message-ID: <20011226193746.13287.qmail@web20003.mail.yahoo.com> and again and again and again ... see, i'm trying to create a simple class but it refuses to work! $cla = ms_newClassObj($map->getLayerByName("empresas")); $cla->setexpression("/./"); $cla->symbol=0; $cla->color=$map->addColor(0, 0, 0); it's simply blank! the layer is OK, and i have creates classes on it from inside the .map file!... omitting the setexpression also doesn't work... shouldn't it be equivalent to set all the features as belonging to the class? thanks... ++nicolau _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. ? f?cil e gr?tis! http://br.geocities.yahoo.com/ From steve.lime at dnr.state.mn.us Wed Dec 26 11:52:33 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 26 Dec 2001 13:52:33 -0600 Subject: [mapserver-users] simplicity Message-ID: Greetings: I'm all in favor of making the software easier to install and use, and would back the formation of groups to coordinate the distribution of binary releases for various platforms. I think the UMN would need to play a role in making that happen, much like their role in getting documentation put together. The development team plays a role in making the software actually buildable under a variety of circumstances. We probably need a document that lays out exactly what you need to build the code, or at least explains what each supporting library brings to the table. On a couple of other comments: - Including everything in the distribution: nope, ain't gonna happen. Simply too hard to keep up-to-date, not to mention legal issues associated with some of the commercial packages that can be tied into. - Some compilation issues can't be mitigated ahead of time. I mean if you have GD installed on your system and it doesn't support GIF or whatever then the solution is to re-build GD. What can be done is to provide a forum for advice on how to work around these issues. The mailing list is one way, formal forums would be another. There are plans for a series of MapServer Wikis that could address the various topics identified by Puneet in the first message in this thread. The biggest pain in building MapServer with static libs is dealing with all the friggin libraries installed on the box. This is esspecially true on Linux machines. - MapServer isn't really all that different from other OpenSource applications. Try building Gimp from scratch. What is different is the audience- which is broader and in some cases less technical. Fact is that maps are a cool thing to add to a website. If your machine has the right base libraries installed then making the software is trivial, getting to that point is the hard part. The biggest impediments in widespread use of MapServer are not related to the internals of the software (what it can and can't do), they are productivity issues: easy installation, quality documentation and easy application configuration. I've known this for quite a while, but seeing as I can only work on this evenings after my kids go to bed there's no way I can spearhead the effort. So, everyone agree's there is a problem but is anyone willing to commit some time to making it happen? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From matthew.g.krusemark at co.multnomah.or.us Wed Dec 26 13:30:57 2001 From: matthew.g.krusemark at co.multnomah.or.us (KRUSEMARK Matthew G) Date: Wed, 26 Dec 2001 13:30:57 -0800 Subject: [mapserver-users] Broken Gifs Message-ID: <9D07D10FA5CAD21192620008C7B14D2902699C34@isdexch-1.co.multnomah.or.us> Hi all, I moved my mapserver app to an intranet server running Apache on win2k. I am using the most recent 3.5 release for windows. I even replaced my version 3.5 on my external server running IIS on win2k to make sure the version worked with the latest release (it did!). However, on my intranet server the gifs come up broken in the browser. I checked the tmp directory where the images are written too, and they are there and have content! Any help or suggestions would be appreciated =) Regards,-matt From woodbri at swoodbridge.com Wed Dec 26 14:02:03 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 26 Dec 2001 17:02:03 -0500 Subject: [mapserver-users] Broken Gifs References: <9D07D10FA5CAD21192620008C7B14D2902699C34@isdexch-1.co.multnomah.or.us> Message-ID: <3C2A48DB.2382EDCE@swoodbridge.com> Are you sure they are GIFs and not PNGs with .gif extensions? If your system doesn't have gif support the it will generate PNGs. -Steve KRUSEMARK Matthew G wrote: > > Hi all, > > I moved my mapserver app to an intranet server running Apache on win2k. I > am using the most recent 3.5 release for windows. I even replaced my > version 3.5 on my external server running IIS on win2k to make sure the > version worked with the latest release (it did!). > > However, on my intranet server the gifs come up broken in the browser. I > checked the tmp directory where the images are written too, and they are > there and have content! > > Any help or suggestions would be appreciated =) > > Regards,-matt From matthew.g.krusemark at co.multnomah.or.us Wed Dec 26 15:29:10 2001 From: matthew.g.krusemark at co.multnomah.or.us (KRUSEMARK Matthew G) Date: Wed, 26 Dec 2001 15:29:10 -0800 Subject: [mapserver-users] Broken PNGs Message-ID: <9D07D10FA5CAD21192620008C7B14D2902699C36@isdexch-1.co.multnomah.or.us> Well, I think I also ruled out any other possible GD issues, I got the same results with the PNG version of Mapserver. Output is there, just not in the browser. Hmmmm ... TIA -matt -----Original Message----- From: KRUSEMARK Matthew G Sent: Wednesday, December 26, 2001 1:31 PM To: mapserver-users at lists.gis.umn.edu Subject: Broken Gifs Hi all, I moved my mapserver app to an intranet server running Apache on win2k. I am using the most recent 3.5 release for windows. I even replaced my version 3.5 on my external server running IIS on win2k to make sure the version worked with the latest release (it did!). However, on my intranet server the gifs come up broken in the browser. I checked the tmp directory where the images are written too, and they are there and have content! Any help or suggestions would be appreciated =) Regards,-matt From steve.lime at dnr.state.mn.us Wed Dec 26 14:06:13 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 26 Dec 2001 16:06:13 -0600 Subject: [mapserver-users] compilation question Message-ID: > All these various components that Mapserver depends on (gd, which in > turn depends on libpng and libjpeg and freetype; gdal; proj4, etc. > etc.)... what happens to these during compilation? > Do they get statically embedded inside Mapserver, or do they have to > hang around the computer somewhere only to be dynamically called by > Mapserver as and when desired? Depends on how the dependent libraries are built. If available as shared libraries then the linker defaults to those. If only available as static libraries then they are incorporated into the binary. > If the latter (dynamically linked), how is possible to do the former > (statically linked)? The problem is how the linker works and that varies from compiler to compiler and OS to OS. On linux the linker always defaults to using the shared version. I thought Dan did some work on forcing a static link but I don't know if he was successful. In practice all of the dependent packages can be compiled into static libs although the process varies for each (i.e. read the docs). I've typically just moved the shared stuff someplace temporarily and then compiled the MapServer against the static versions and finally moved the shared versions back. > Tia, > pk/ Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From pkishor at GeoAnalytics.com Wed Dec 26 16:55:08 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 26 Dec 2001 18:55:08 -0600 Subject: [mapserver-users] Broken PNGs Message-ID: Matt, This seems obvious, but have you right-clicked on the broken image to view its properties? Also, you could view the source to see if the url is being formed correctly. There could be a virtual directory pathing problem. Hth, pk/ > -----Original Message----- > From: KRUSEMARK Matthew G > [mailto:matthew.g.krusemark at co.multnomah.or.us] > Sent: Wednesday, December 26, 2001 5:29 PM > To: 'mapserver-users at lists.gis.umn.edu' > Subject: [mapserver-users] Broken PNGs > > > Well, I think I also ruled out any other possible GD issues, > I got the same > results with the PNG version of Mapserver. Output is there, > just not in the > browser. > > Hmmmm ... > > TIA -matt > -----Original Message----- > From: KRUSEMARK Matthew G > Sent: Wednesday, December 26, 2001 1:31 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Broken Gifs > > > Hi all, > > I moved my mapserver app to an intranet server running Apache > on win2k. I > am using the most recent 3.5 release for windows. I even replaced my > version 3.5 on my external server running IIS on win2k to > make sure the > version worked with the latest release (it did!). > > However, on my intranet server the gifs come up broken in the > browser. I > checked the tmp directory where the images are written too, > and they are > there and have content! > > Any help or suggestions would be appreciated =) > > Regards,-matt > From gispmpf at zipmail.com.br Wed Dec 26 18:18:27 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Thu, 27 Dec 2001 00:18:27 -0200 Subject: [mapserver-users] =?iso-8859-1?Q?Unsubscribe=20?= Message-ID: <3BFBD46D000584F0@www.zipmail.com.br> ------------------------------------------ Use o melhor sistema de busca da Internet Radar UOL - http://www.radaruol.com.br From twan at twansoft.com Thu Dec 27 02:16:06 2001 From: twan at twansoft.com (Twan Kogels) Date: Thu, 27 Dec 2001 11:16:06 +0100 Subject: [mapserver-users] strange png output Message-ID: <5.0.0.25.2.20011227110412.025887d8@pop3.wish.nl> Goodmorning, Today i received new demo data, one part was a raster map. So i the utility "gdaltindex" to create a shape file for the tiles. Then i wrote a php script which displays the map. No problems at all, the map appears correctly, but when im zooming in the image (png) of the map gets very blury. As a illustration i've uploaded a screenshot of the strange effect: http://www.twansoft.com/bin/ie.jpg After that i looked with paint shop pro to see if the raster map (tiled tiffs) are strange, but they look normal, another screenshot: http://www.twansoft.com/bin/psp.jpg A couple weeks ago i manage to display a raster map correctly, even when zooming in, and yet another screenshot to illustrate this: http://www.twansoft.com/bin/paris.jpg For reference i've included the .map file below: ======================================== # # Start of map file # NAME ZOEKSTRAAT STATUS ON SIZE 600 600 SYMBOLSET symbols/symbols.sym EXTENT 107999.25 552000.770075 131999.25 584000.750045 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB MINSCALE 1000 MAXSCALE 155000 IMAGEPATH "/usr/local/apache/htdocs/tmp/" IMAGEURL "/tmp/" END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of reference map # REFERENCE IMAGE graphics/reference.png EXTENT 107999.25 552000.770075 131999.25 584000.750045 SIZE 120 160 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 50 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of layer definitions # LAYER NAME "texel" STATUS ON TILEINDEX "straten.shp" TILEITEM "Location" TYPE RASTER END =============================================== Last but not least i've uploaded a raw png (with the strange effect) that came directly from mapserver: http://www.twansoft.com/bin/10094474998651.png Can anybody give me a helpfull hand with this problem? Thanks, - twan -- http://www.twansoft.com From nwerneck at yahoo.com.br Thu Dec 27 06:47:37 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Thu, 27 Dec 2001 11:47:37 -0300 (ART) Subject: [mapserver-users] $map->draw() timeout Message-ID: <20011227144737.61264.qmail@web20009.mail.yahoo.com> Hello... I've found a workaround to my problem on defining new classes with mapscript, editting a single class on the layer (but this isn't still what I wanted to)... OK it's working but now I got another problem! When I try to draw the map with a class that has A LOT of point, wich I query from a database, the draw() mathod complains that: Fatal error: Maximum execution time of 30 seconds exceeded in F:\hospedagem\licht\mapa\cgi\mapabrasil.php on line 129 Where can I set this timeout?? thanks... ++nicolau _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. ? f?cil e gr?tis! http://br.geocities.yahoo.com/ From woodbri at swoodbridge.com Thu Dec 27 07:12:23 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 27 Dec 2001 10:12:23 -0500 Subject: [mapserver-users] $map->draw() timeout References: <20011227144737.61264.qmail@web20009.mail.yahoo.com> Message-ID: <3C2B3A57.ECDBFA73@swoodbridge.com> Nicolau, That is a PHP issue. You need to add the following to the top of your php page: set_time_limit(300); // timeout in 5 minites where 300 is the number of seconds you want as the timeout value. Or zero if you want the script to be able to run forever (probably not a good idea). -Steve Nicolau Werneck wrote: > > Hello... > > I've found a workaround to my problem on defining new > classes with mapscript, editting a single class on the > layer (but this isn't still what I wanted to)... OK > it's working but now I got another problem! > > When I try to draw the map with a class that has A LOT > of point, wich I query from a database, the draw() > mathod complains that: > > Fatal error: Maximum execution time of 30 seconds > exceeded in > F:\hospedagem\licht\mapa\cgi\mapabrasil.php on line > 129 > > Where can I set this timeout?? > > thanks... > > ++nicolau > > _______________________________________________________________________________________________ > Yahoo! GeoCities > Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. ? f?cil e gr?tis! > http://br.geocities.yahoo.com/ From vieglais at ukans.edu Thu Dec 27 08:19:28 2001 From: vieglais at ukans.edu (Dave Vieglais) Date: Thu, 27 Dec 2001 11:19:28 -0500 Subject: [mapserver-users] $map->draw() timeout In-Reply-To: <20011227144737.61264.qmail@web20009.mail.yahoo.com> Message-ID: <000801c18ef2$432829e0$6601a8c0@DV2> void set_time_limit (int seconds) Set the number of seconds a script is allowed to run. If this is reached, the script returns a fatal error. The default limit is 30 seconds or, if it exists, the max_execution_time value defined in the configuration file. If seconds is set to zero, no time limit is imposed. When called, set_time_limit() restarts the timeout counter from zero. In other words, if the timeout is the default 30 seconds, and 25 seconds into script execution a call such as set_time_limit(20) is made, the script will run for a total of 45 seconds before timing out. set_time_limit() has no effect when PHP is running in safe mode. There is no workaround other than turning off safe mode or changing the time limit in the configuration file. > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver- > users at lists.gis.umn.edu] On Behalf Of Nicolau Werneck > Sent: Thursday, December 27, 2001 09:48 > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] $map->draw() timeout > > Hello... > > I've found a workaround to my problem on defining new > classes with mapscript, editting a single class on the > layer (but this isn't still what I wanted to)... OK > it's working but now I got another problem! > > When I try to draw the map with a class that has A LOT > of point, wich I query from a database, the draw() > mathod complains that: > > Fatal error: Maximum execution time of 30 seconds > exceeded in > F:\hospedagem\licht\mapa\cgi\mapabrasil.php on line > 129 > > > Where can I set this timeout?? > > thanks... > > ++nicolau > > > > ________________________________________________________________________ __ > _____________________ > Yahoo! GeoCities > Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! > GeoCities. ? f?cil e gr?tis! > http://br.geocities.yahoo.com/ From matthew.g.krusemark at co.multnomah.or.us Thu Dec 27 09:10:24 2001 From: matthew.g.krusemark at co.multnomah.or.us (KRUSEMARK Matthew G) Date: Thu, 27 Dec 2001 09:10:24 -0800 Subject: [mapserver-users] Broken PNGs Message-ID: <9D07D10FA5CAD21192620008C7B14D2902699C3A@isdexch-1.co.multnomah.or.us> Puneet, Thank you. I learned a bit more about do's and do not's with Apache this morning. It was a virtual directory path problem as you mentioned, the path I had specified was not a qualified one. Kind regards,-matt -----Original Message----- From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com] Sent: Wednesday, December 26, 2001 4:55 PM To: KRUSEMARK Matthew G; 'mapserver-users at lists.gis.umn.edu' Subject: RE: [mapserver-users] Broken PNGs Matt, This seems obvious, but have you right-clicked on the broken image to view its properties? Also, you could view the source to see if the url is being formed correctly. There could be a virtual directory pathing problem. Hth, pk/ > -----Original Message----- > From: KRUSEMARK Matthew G > [mailto:matthew.g.krusemark at co.multnomah.or.us] > Sent: Wednesday, December 26, 2001 5:29 PM > To: 'mapserver-users at lists.gis.umn.edu' > Subject: [mapserver-users] Broken PNGs > > > Well, I think I also ruled out any other possible GD issues, > I got the same > results with the PNG version of Mapserver. Output is there, > just not in the > browser. > > Hmmmm ... > > TIA -matt > -----Original Message----- > From: KRUSEMARK Matthew G > Sent: Wednesday, December 26, 2001 1:31 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Broken Gifs > > > Hi all, > > I moved my mapserver app to an intranet server running Apache > on win2k. I > am using the most recent 3.5 release for windows. I even replaced my > version 3.5 on my external server running IIS on win2k to > make sure the > version worked with the latest release (it did!). > > However, on my intranet server the gifs come up broken in the > browser. I > checked the tmp directory where the images are written too, > and they are > there and have content! > > Any help or suggestions would be appreciated =) > > Regards,-matt > From matthew.g.krusemark at co.multnomah.or.us Thu Dec 27 16:58:42 2001 From: matthew.g.krusemark at co.multnomah.or.us (KRUSEMARK Matthew G) Date: Thu, 27 Dec 2001 16:58:42 -0800 Subject: [mapserver-users] ECW image support Message-ID: <9D07D10FA5CAD21192620008C7B14D2902699C40@isdexch-1.co.multnomah.or.us> Does anyone have a Windows binary available of MapServer 3.5 with built-in ECW image support? TIA, -matt From Chris.Krahe at commerceone.com Thu Dec 27 17:21:24 2001 From: Chris.Krahe at commerceone.com (Krahe, Chris) Date: Thu, 27 Dec 2001 17:21:24 -0800 Subject: [mapserver-users] Getting started with 3.5 Message-ID: <81D093095B1E1A41A575AFDFD1F2F41401BB5CA5@c1plenaexm06.commerceone.com> Hello- A few questions regarding MapServer 3.5 on Windows 2000 ... 1) Must I have anything other than Apache (or equivalent web server) installed before using MapServer? What about the items listed under "Supporting Packages" here: http://mapserver.gis.umn.edu/dload.html ? 2) Are there instructions for installing & using the demo? I didn't find any in http://mapserver.gis.umn.edu/dist/itasca3.5.tar.gz 3) Is there a "MapServer by Example" tutorial for 3.5? If not, will the 3.3 tutorial suffice? 4) Has a Java/MapScript module been developed yet? thanks in advance, Chris Chris Krahe Systems Architect Commerce One e-Government Solutions chris.krahe at commerceone.com http://krahec.commerceone.com/ http://www.krahe.org/chris/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From nhv at cape.com Thu Dec 27 18:06:18 2001 From: nhv at cape.com (Norman Vine) Date: Thu, 27 Dec 2001 21:06:18 -0500 Subject: [mapserver-users] ECW image support In-Reply-To: <9D07D10FA5CAD21192620008C7B14D2902699C40@isdexch-1.co.multnomah.or.us> Message-ID: <005001c18f44$3d74d6e0$a300a8c0@nhv> KRUSEMARK Matthew G writes: > >Does anyone have a Windows binary available of MapServer 3.5 >with built-in ECW image support? Can't you use the GDAL ECW support Cheers Norman From morissette at dmsolutions.ca Thu Dec 27 19:42:53 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 27 Dec 2001 22:42:53 -0500 Subject: [mapserver-users] compilation question References: Message-ID: <3C2BEA3D.9EC81109@dmsolutions.ca> Stephen Lime wrote: > > The problem is how the linker works and that varies from compiler to compiler and OS to OS. On linux the linker always defaults to using the shared version. I thought Dan did some work on forcing a static link but I don't know if he was successful. In practice all of the dependent packages can be compiled into static libs although the process varies for each (i.e. read the docs). > I have added an option to the --with-gd configure switch to request static linkage of the GD library. It's useful when you want to force the use of a local copy of GD instead of the system GD. Using something like --with-gd=static,/home/daniel/gd-1.8.4 will force a static link with /home/daniel/gd-1.8.4/libgd.a The same could be done for other libs that are available in static (.a) format but would require some work. To find out which shared libs your executable depends on, you can run 'ldd mapserv' on Linux... hopefully ldd exists on BSD as well. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Thu Dec 27 19:56:08 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 27 Dec 2001 22:56:08 -0500 Subject: [mapserver-users] creating classes with mapscript References: <20011226160646.10502.qmail@web20006.mail.yahoo.com> Message-ID: <3C2BED58.127CF3D4@dmsolutions.ca> Nicolau Werneck wrote: > > ... but this piece of PHP/MapScript code doesn't > deliver the same results. The map is displayed as if > the class is empty. The layer definition if there on > the .map, but no classes are defined on it: > > $cla = > ms_newClassObj($map->getLayerByName("empresas")); > $cla->setexpression("'3144508'"); > $cla->label->type=MS_TRUETYPE; > $cla->label->font="verdanai"; > $cla->label->size=7; > $cla->label->color=$cor; > $cla->label->position=MS_UL; > > shouldn't it give the SAME results? > The first step would be to make sure that you use the set() method to set your class label parameters. Simply setting the PHP object member variables with direct assignments doesn't propagate the values to the underlying classes in the MapServer core. $cla = ms_newClassObj($map->getLayerByName("empresas")); $cla->setexpression("'3144508'"); $cla->label->set("type", MS_TRUETYPE); $cla->label->set("font", "verdanai"); $cla->label->set("size", 7); $cla->label->set("color", $cor); $cla->label->set("position", MS_UL); -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From vieglais at ukans.edu Thu Dec 27 20:00:04 2001 From: vieglais at ukans.edu (Dave Vieglais) Date: Thu, 27 Dec 2001 23:00:04 -0500 Subject: [mapserver-users] simplicity In-Reply-To: Message-ID: <000b01c18f54$2269d2f0$6601a8c0@DV2> > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver- > users at lists.gis.umn.edu] On Behalf Of Stephen Lime ... > The biggest impediments in widespread use of MapServer are not related to > the internals of the software (what it can and can't do), they are > productivity issues: easy installation, quality documentation and easy > application configuration. I've known this for quite a while, but seeing > as I can only work on this evenings after my kids go to bed there's no way > I can spearhead the effort. So, everyone agree's there is a problem but is > anyone willing to commit some time to making it happen? For the documentation side of things, has anyone considered setting up a version of Wiki on the MapServer web site? There are quite a few folks out there that seem to be fairly familiar with the various incarnations of this software, but few of us have the time to dedicate to properly documenting the beast. A collaborative editing environment that a Wiki installation can provide may be a viable solution for much of the MapServer documentation. SourceForge has several Wiki incarnations floating around (search for wiki). I personally found OpenWiki the easiest to mess with of the couple I tried (limited to IIS though). Dave V. From pha at plan.at Fri Dec 28 02:52:15 2001 From: pha at plan.at (Peter Haussl) Date: Fri, 28 Dec 2001 11:52:15 +0100 Subject: [mapserver-users] PHP Mapscript and Points Message-ID: Hi Community! I'm using Mapserver 3.5, PHP Mapscript, PHP 4.0.6 and a MSSQL65 Server In my mapfile i've defined a layer which is used to set projected points onto my map. The coordinates are delievered by the MsSQL Database - there are actual about 500 different Points to set. If I try to set all these Points at once i get a fatal error reported by mapserver. After reducing the number of points down to 95 it seem to work. Is there any limit to set higher or any other solution to display all my points at once? Many thx Peter Greetings from Austria / Europe From Regina.Obe.PFD at ci.boston.ma.us Fri Dec 28 04:15:57 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Fri, 28 Dec 2001 07:15:57 -0500 Subject: [mapserver-users] Another Rosa applet question with CGI Message-ID: Thanks Frank - that example was very handy. For some reason - the recenter and zoom in boxing didn't work properly with my version of mapserv35 and the rosa applet I was using so I had to modify those sections a bit replacing them with javascript calls (I've only tested on IE 5.5. and NS 4.75). I'm posting this in case others ran into similar problems. I also added map-resize capabilities too to the adapted version. If anyone is interested I can post this version too - I should have an external app running soon for people to look at that will use the CGI rosa applet. Below are the javascript lines I had to add and revision to the center and zoom out applet params To the form had to add additional hidden field To applet params - had to revise recenter and zoomin to use js functions instead -----Original Message----- From: Frank Koormann [mailto:frank.koormann at intevation.de] Sent: Thursday, December 20, 2001 11:13 AM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Another Rosa applet question with CGI Dear all, * Bart van Heijningen (bart at atsence.nl) [011219 20:30]: > Hi all, > You were right about the errors. > [...] > > I cannot find examples for the ROSA which can be generally applied, as is > the case with the Mapplet which allows you to have a working setup fromwhich > you can work. > > I would like to know what variables in the template file I should use to > pass to the CGI and a simple submit function. > I already sent the attachment to Bart personally, but he encouraged me to post it to the list. So, whoever interested in, find below a sample html template using the rosa applet. Unfortunately I can't cite a site based on this. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From steve.lime at dnr.state.mn.us Fri Dec 28 07:22:52 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 28 Dec 2001 09:22:52 -0600 Subject: [mapserver-users] simplicity Message-ID: Yup, there are plans to implement a wiki in early January.... Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Dave Vieglais" 12/27/01 10:00PM >>> > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver- > users at lists.gis.umn.edu] On Behalf Of Stephen Lime ... > The biggest impediments in widespread use of MapServer are not related to > the internals of the software (what it can and can't do), they are > productivity issues: easy installation, quality documentation and easy > application configuration. I've known this for quite a while, but seeing > as I can only work on this evenings after my kids go to bed there's no way > I can spearhead the effort. So, everyone agree's there is a problem but is > anyone willing to commit some time to making it happen? For the documentation side of things, has anyone considered setting up a version of Wiki on the MapServer web site? There are quite a few folks out there that seem to be fairly familiar with the various incarnations of this software, but few of us have the time to dedicate to properly documenting the beast. A collaborative editing environment that a Wiki installation can provide may be a viable solution for much of the MapServer documentation. SourceForge has several Wiki incarnations floating around (search for wiki). I personally found OpenWiki the easiest to mess with of the couple I tried (limited to IIS though). Dave V. From jsmedsmo at gis.umn.edu Fri Dec 28 07:41:59 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Fri, 28 Dec 2001 09:41:59 -0600 Subject: [mapserver-users] simplicity References: <000b01c18f54$2269d2f0$6601a8c0@DV2> Message-ID: <3C2C92C7.3000508@gis.umn.edu> Steve Lime also suggested setting up Wikki for MapServer. I hope to get started on that next week. I agree that it would be a very good addition. Jamie Smedsmo MapServer Documentation Coordinator University of Minnesota Dave Vieglais wrote: >>-----Original Message----- >>From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver- >>users at lists.gis.umn.edu] On Behalf Of Stephen Lime >> >... > > >>The biggest impediments in widespread use of MapServer are not related >> >to > >>the internals of the software (what it can and can't do), they are >>productivity issues: easy installation, quality documentation and easy >>application configuration. I've known this for quite a while, but >> >seeing > >>as I can only work on this evenings after my kids go to bed there's no >> >way > >>I can spearhead the effort. So, everyone agree's there is a problem >> >but is > >>anyone willing to commit some time to making it happen? >> > >For the documentation side of things, has anyone considered setting up a >version of Wiki on the MapServer web site? There are quite a few folks >out there that seem to be fairly familiar with the various incarnations >of this software, but few of us have the time to dedicate to properly >documenting the beast. A collaborative editing environment that a Wiki >installation can provide may be a viable solution for much of the >MapServer documentation. > >SourceForge has several Wiki incarnations floating around (search for >wiki). I personally found OpenWiki the easiest to mess with of the >couple I tried (limited to IIS though). > >Dave V. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dgraham at i3.com Fri Dec 28 07:44:10 2001 From: dgraham at i3.com (David Graham) Date: Fri, 28 Dec 2001 08:44:10 -0700 Subject: [mapserver-users] ECW image support References: <005001c18f44$3d74d6e0$a300a8c0@nhv> Message-ID: <3C2C934A.9020603@i3.com> Norman Vine wrote: >KRUSEMARK Matthew G writes: > >>Does anyone have a Windows binary available of MapServer 3.5 >>with built-in ECW image support? >> > >Can't you use the GDAL ECW support > >Cheers > >Norman > > Only on Windows. Dave From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Fri Dec 28 08:20:58 2001 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Fri, 28 Dec 2001 11:20:58 -0500 Subject: [mapserver-users] PHP Problem Message-ID: <7CDD7B94357FD5119E800002A537C46E22FDE0@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I jus tried to compile/setup PHP mapscript for the first time in a while and am having problems. The machine is a SunOS 5.8 with Apache 1.3.20 and PHP 4.0.6 compiled with: './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--without-mysql' '--with-system-regex' '--with-yaz' phpinfo() works fine. Then I compile Mapserver from the official 3.5 tarball using: ./configure --with-proj --with-wmsclient --with-gdal --with-ogr --with-php=/usr/src/php-4.0.6/ --with-apxs=/usr/local/apache/bin/apxs No problems there, apart from the odd warning. But when I try to use dl() just before the phpinfo() I get: Warning: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20001222/php_mapscript.so' - ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/lib/php/extensions/no-debug-non-zts-20001222/php_mapscript.so: symbol main: referenced symbol not found in /home/httpd/html/info.php on line 3 Anybody seen this before? The ldd output looks fine, so all the libs are OK ... I'm not sure what that symbol is ... "main" .. sounds to me like it should be internal, so how could it not find it? :) Help! Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From pnaciona at gis.umn.edu Fri Dec 28 09:45:08 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Fri, 28 Dec 2001 11:45:08 -0600 Subject: [mapserver-users] ECW image support In-Reply-To: <9D07D10FA5CAD21192620008C7B14D2902699C40@isdexch-1.co.multnomah.or.us> Message-ID: Matt, Happy holidays. Sorry to have missed the fun stuff going on in the last few days... glad your first problem's been solved. As for this one, a couple of the binaries in the MapServer download page should have support for GDAL (and ECW), you can try it out. If you'd rather compile on your own, GDAL is fairly easy to compile on Windows(Thanks, Frank!). If you want, I can send you my gdal stuff. Happy New Year from the Twin Cities! -Perry > -----Original Message----- > From: owner-mapserver-users at lists [mailto:owner-mapserver-users at lists]On > Behalf Of KRUSEMARK Matthew G > Sent: Thursday, December 27, 2001 6:59 PM > To: 'mapserver-users at lists.gis.umn.edu' > Subject: [mapserver-users] ECW image support > > > Does anyone have a Windows binary available of MapServer 3.5 with built-in > ECW image support? > > TIA, -matt > From imap at chesapeake.net Fri Dec 28 13:19:51 2001 From: imap at chesapeake.net (imap at chesapeake.net) Date: Fri, 28 Dec 2001 16:19:51 -0500 Subject: [mapserver-users] IRC Chat on #mapserver Message-ID: <3C2CE1F7.24DAD06B@chesapeake.net> The #mapserver Internet Relay Chat (IRC) channel has been created on dal.net for those interested in engaging in realtime discussion of "MapServer" related topics. Hopefully there is enough interest to keep this thing going. For the IRC Newbie Intro Page: http://help.dal.net/docs/newbie.html For IRC Client software, see: http://www.dal.net/software/index.php3 Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. From marin at here.is Fri Dec 28 14:43:47 2001 From: marin at here.is (Ma) Date: Fri, 28 Dec 2001 22:43:47 +0000 Subject: [mapserver-users] IRC Chat on #mapserver References: <3C2CE1F7.24DAD06B@chesapeake.net> Message-ID: <3C2CF5A3.2C364CE4@here.is> good idea. why DALnet? why not IRCnet? http://www.irchelp.org/irchelp/networks/nets/big4.html -- Ma imap at chesapeake.net wrote: > The #mapserver Internet Relay Chat (IRC) channel has been created > on dal.net for those interested in engaging in realtime discussion > of "MapServer" related topics. Hopefully there is enough interest > to keep this thing going. > > For the IRC Newbie Intro Page: > http://help.dal.net/docs/newbie.html > > For IRC Client software, see: > http://www.dal.net/software/index.php3 > > Regards, > > Chris Stuber (mapsurfer) > Silicon Mapping Solutions, Inc. From davehowlett at sympatico.ca Sat Dec 29 10:57:09 2001 From: davehowlett at sympatico.ca (Dave Howlett) Date: Sat, 29 Dec 2001 12:57:09 -0600 Subject: [mapserver-users] Projection Woes? Message-ID: <3C2E1205.DEC1582F@sympatico.ca> I'm trying to reproject my data to a Lambert Conformal Conic projection. The data is in a geographic coordinates projection (or non-projected). There doesn't appear to be a lot of information online regarding performing this task within MapServer unfortunately. If someone can proof me wrong on that I'd greatly appreciate it :) So far I have defined the projection which I desire in the Map Object and each of the Layer Objects with: PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" END Yet there is no difference in the display. My units are in decimal degrees. Could this be the problem? I'm running MapServer 3.5 with Proj.4 compiled on a Redhat box. Please help me with my distorted views!! Dave From ed at topozone.com Sat Dec 29 10:47:26 2001 From: ed at topozone.com (Ed McNierney) Date: Sat, 29 Dec 2001 13:47:26 -0500 Subject: [mapserver-users] Projection Woes? Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7A0C@mercator.topozone.com> Dave - If you're putting that PROJECTION block in each of your LAYER objects, then you're telling MapServer that each layer's data is in the exact same projection as the output, and therefore MapServer decides that there's no reprojection to be done! If the data for the LAYER objects is in unprojected decimal degrees, the projection block for each LAYER should be: PROJECTION "proj=latlong" "ellps=GRS80" END That way MapServer knows that the INPUT is in decimal degrees and the OUTPUT is in LCC so there's some reprojecting to be done. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Dave Howlett [mailto:davehowlett at sympatico.ca] Sent: Saturday, December 29, 2001 1:57 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Projection Woes? I'm trying to reproject my data to a Lambert Conformal Conic projection. The data is in a geographic coordinates projection (or non-projected). There doesn't appear to be a lot of information online regarding performing this task within MapServer unfortunately. If someone can proof me wrong on that I'd greatly appreciate it :) So far I have defined the projection which I desire in the Map Object and each of the Layer Objects with: PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" END Yet there is no difference in the display. My units are in decimal degrees. Could this be the problem? I'm running MapServer 3.5 with Proj.4 compiled on a Redhat box. Please help me with my distorted views!! Dave From davehowlett at sympatico.ca Sat Dec 29 12:18:12 2001 From: davehowlett at sympatico.ca (Dave Howlett) Date: Sat, 29 Dec 2001 14:18:12 -0600 Subject: [mapserver-users] Projection Woes? References: <13858AA1A74F30419F319ACB66A9D1220E7A0C@mercator.topozone.com> Message-ID: <3C2E2504.78D73D4B@sympatico.ca> Thanks Ed! Makes sense and I believe I may have tried this way in my earlier attempts. But, with the layers where I use: PROJECTION "proj=latlong" "ellps=GRS80" END ... I can't find them in my displays. So I'm not out of the woods yet. Dave Ed McNierney wrote: > Dave - > > If you're putting that PROJECTION block in each of your LAYER objects, > then you're telling MapServer that each layer's data is in the exact > same projection as the output, and therefore MapServer decides that > there's no reprojection to be done! > > If the data for the LAYER objects is in unprojected decimal degrees, the > projection block for each LAYER should be: > > PROJECTION > "proj=latlong" > "ellps=GRS80" > END > > That way MapServer knows that the INPUT is in decimal degrees and the > OUTPUT is in LCC so there's some reprojecting to be done. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Dave Howlett [mailto:davehowlett at sympatico.ca] > Sent: Saturday, December 29, 2001 1:57 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Projection Woes? > > I'm trying to reproject my data to a Lambert Conformal Conic projection. > The data is in a geographic coordinates projection (or non-projected). > There doesn't appear to be a lot of information online regarding > performing this task within MapServer unfortunately. If someone can > proof me wrong on that I'd greatly appreciate it :) > > So far I have defined the projection which I desire in the Map Object > and each of the Layer Objects with: > > PROJECTION > "proj=lcc" > "ellps=GRS80" > "lat_0=49" > "lon_0=-95" > "lat_1=49" > "lat_2=77" > END > > Yet there is no difference in the display. > > My units are in decimal degrees. Could this be the problem? > > I'm running MapServer 3.5 with Proj.4 compiled on a Redhat box. > > Please help me with my distorted views!! > > Dave From ed at topozone.com Sat Dec 29 12:11:31 2001 From: ed at topozone.com (Ed McNierney) Date: Sat, 29 Dec 2001 15:11:31 -0500 Subject: [mapserver-users] Projection Woes? Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7A0D@mercator.topozone.com> Dave - Well, that problem usually means you have the extents set incorrectly. Your requested map extents need to be in the units of the OUTPUT projection, not decimal degrees. Is that what you're doing? - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Dave Howlett [mailto:davehowlett at sympatico.ca] Sent: Saturday, December 29, 2001 3:18 PM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Projection Woes? Thanks Ed! Makes sense and I believe I may have tried this way in my earlier attempts. But, with the layers where I use: PROJECTION "proj=latlong" "ellps=GRS80" END ... I can't find them in my displays. So I'm not out of the woods yet. Dave Ed McNierney wrote: > Dave - > > If you're putting that PROJECTION block in each of your LAYER objects, > then you're telling MapServer that each layer's data is in the exact > same projection as the output, and therefore MapServer decides that > there's no reprojection to be done! > > If the data for the LAYER objects is in unprojected decimal degrees, the > projection block for each LAYER should be: > > PROJECTION > "proj=latlong" > "ellps=GRS80" > END > > That way MapServer knows that the INPUT is in decimal degrees and the > OUTPUT is in LCC so there's some reprojecting to be done. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Dave Howlett [mailto:davehowlett at sympatico.ca] > Sent: Saturday, December 29, 2001 1:57 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Projection Woes? > > I'm trying to reproject my data to a Lambert Conformal Conic projection. > The data is in a geographic coordinates projection (or non-projected). > There doesn't appear to be a lot of information online regarding > performing this task within MapServer unfortunately. If someone can > proof me wrong on that I'd greatly appreciate it :) > > So far I have defined the projection which I desire in the Map Object > and each of the Layer Objects with: > > PROJECTION > "proj=lcc" > "ellps=GRS80" > "lat_0=49" > "lon_0=-95" > "lat_1=49" > "lat_2=77" > END > > Yet there is no difference in the display. > > My units are in decimal degrees. Could this be the problem? > > I'm running MapServer 3.5 with Proj.4 compiled on a Redhat box. > > Please help me with my distorted views!! > > Dave From shayes at bigpond.net.au Sat Dec 29 23:03:23 2001 From: shayes at bigpond.net.au (Steven Hayes) Date: Sun, 30 Dec 2001 18:03:23 +1100 Subject: [mapserver-users] variables returned from a map click using mapscript ?? Message-ID: <000101c19100$12a44eb0$b9568990@tndn151qlhf5gi> Hi, can anyone clear this up for me as the mapscript doco is obscure (to me at least).. I am attempting to convince a piece of perl mapscript code to return an attribute of a clicked shape. I have great difficulty in working out how to setup queries in mapscript but I have managed to do this with mapserv and so I am relying on the query template reference in the map file and the fact that I am sending mode=query in the query to the script. I don't actually get what I want (obviously, or I wouldn't be writing this) but what I find confusing is that I get a value in the resulting query string for img.x and img.y which correspond to the mouse click. Where do these come from? There is no reference in mapscript the documentation to these vars. They seem to be children of the img object and so what other vars can I expect to get and what are they. Where indeed would they be documented. I am viewing the resulting map image via a template passed by my own software: http://www.streamwatch.org.au/cgi-bin/elib.pl?special_template=click_map_wit h_scale but it basically just does the following:

Regards to all Steven Hayes From joemayfair at usa.net Sun Dec 30 01:01:34 2001 From: joemayfair at usa.net (Walt Lin) Date: Sun, 30 Dec 2001 04:01:34 -0500 Subject: [mapserver-users] variables returned from a map click using mapscript ?? In-Reply-To: <000101c19100$12a44eb0$b9568990@tndn151qlhf5gi> References: <000101c19100$12a44eb0$b9568990@tndn151qlhf5gi> Message-ID: <20011230090134.GA22424@eggbert> It's not mapscript; it's HTML. If you have an , when a user clicks on the image, the browser automatically sends along imagename.x and imagename.y with the CGI request. Walt On Sun, Dec 30, 2001 at 06:03:23PM +1100, Steven Hayes wrote: > Hi, > > can anyone clear this up for me as the mapscript doco is obscure (to me at > least).. > > I am attempting to convince a piece of perl mapscript code to return an > attribute of a clicked shape. I have great difficulty in working out how to > setup queries in mapscript but I have managed to do this with mapserv and so > I am relying on the query template reference in the map file and the fact > that I am sending mode=query in the query to the script. > > I don't actually get what I want (obviously, or I wouldn't be writing this) > but what I find confusing is that I get a value in the resulting query > string for img.x and img.y which correspond to the mouse click. Where do > these come from? There is no reference in mapscript the documentation to > these vars. They seem to be children of the img object and so what other > vars can I expect to get and what are they. Where indeed would they be > documented. > > I am viewing the resulting map image via a template passed by my own > software: > > http://www.streamwatch.org.au/cgi-bin/elib.pl?special_template=click_map_wit > h_scale > > but it basically just does the following: > > > > > > > > > > > > Regards to all > > Steven Hayes > > > From jsmedsmo at gis.umn.edu Sun Dec 30 14:50:22 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Sun, 30 Dec 2001 16:50:22 -0600 Subject: [mapserver-users] [Fwd: Refrence MAp] Message-ID: <3C2F9A2E.2070800@gis.umn.edu> -------- Original Message -------- Subject: Refrence MAp Date: Sat, 29 Dec 2001 10:18:15 +0530 From: Vineet Sharma To: mdp at lists hi! Could you please put some light on the use/functinality and need of the "ReferenceMap Class".Secondly the "QueryUsingPoint" is meant for what type of query?. thanx in advance vineet From Rich at GreenwoodMap.com Sun Dec 30 17:21:16 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Sun, 30 Dec 2001 18:21:16 -0700 Subject: [mapserver-users] ECW image support In-Reply-To: References: <9D07D10FA5CAD21192620008C7B14D2902699C40@isdexch-1.co.multnomah.or.us> Message-ID: <5.1.0.14.0.20011230180842.00ab22c8@mail.GreenwoodMap.com> Hi Perry, Frank, and Mapserver Listers, I downloaded ms35gif_gdal.zip and added a simple ECW layer to my map file: LAYER NAME "test" Status default TYPE raster DATA "\Tc\OrthoPhotos\1999\s_063.ecw" END But I get the following error message: "msDrawRaster(): Image handling error. Unrecognized or unsupported image format" So I tried compiling it myself without any luck. I got GDAL 1.1.5 and un-commented the ECW lines in the nmake.opt file. I un-commented the GDAL_DIR and OGR lines in the mapserver makfile.vc. Everything compiled without errors, but I still get the same "unsupported image format" error message. Am I doing something wrong in my layer definition in my map file? Or does anyone have any suggestions as to what I might be doing wrong in my makefiles? Thanks, and happy new year, Rich At 11:45 AM 12/28/2001 -0600, you wrote: >Matt, > >Happy holidays. Sorry to have missed the fun stuff going on in the last few >days... glad your first problem's been solved. As for this one, a couple >of the binaries in the MapServer download page should have support for GDAL >(and ECW), you can try it out. > >If you'd rather compile on your own, GDAL is fairly easy to compile on >Windows(Thanks, Frank!). If you want, I can send you my gdal stuff. > >Happy New Year from the Twin Cities! > >-Perry > > > -----Original Message----- > > From: owner-mapserver-users at lists [mailto:owner-mapserver-users at lists]On > > Behalf Of KRUSEMARK Matthew G > > Sent: Thursday, December 27, 2001 6:59 PM > > To: 'mapserver-users at lists.gis.umn.edu' > > Subject: [mapserver-users] ECW image support > > > > > > Does anyone have a Windows binary available of MapServer 3.5 with built-in > > ECW image support? > > > > TIA, -matt > > Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From morissette at dmsolutions.ca Sun Dec 30 17:56:25 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Sun, 30 Dec 2001 20:56:25 -0500 Subject: [mapserver-users] ECW image support References: <9D07D10FA5CAD21192620008C7B14D2902699C40@isdexch-1.co.multnomah.or.us> <5.1.0.14.0.20011230180842.00ab22c8@mail.GreenwoodMap.com> Message-ID: <3C2FC5C9.8010003@dmsolutions.ca> Hi, I don't have a clue of what could have gone wrong with your build Richard, but ECW should work fine with MapServer as long as GDAL is built with ECW support (and I think some DLLs have to be copied to your system). Assefa has compiled and used a set of MapServer executables for Windows with ECW support at the beginning of December so hopefully he can make these executables available for download when he's back next week (Jan 7th). Daniel Richard Greenwood wrote: > Hi Perry, Frank, and Mapserver Listers, > > I downloaded ms35gif_gdal.zip and added a simple ECW layer to my map > file: > > LAYER > NAME "test" > Status default > TYPE raster > DATA "\Tc\OrthoPhotos\1999\s_063.ecw" > END > > But I get the following error message: > > "msDrawRaster(): Image handling error. Unrecognized or unsupported > image format" > > So I tried compiling it myself without any luck. I got GDAL 1.1.5 and > un-commented the ECW lines in the nmake.opt file. I un-commented the > GDAL_DIR and OGR lines in the mapserver makfile.vc. Everything > compiled without errors, but I still get the same "unsupported image > format" error message. > > Am I doing something wrong in my layer definition in my map file? Or > does anyone have any suggestions as to what I might be doing wrong in > my makefiles? > > Thanks, and happy new year, > Rich From shayes at bigpond.net.au Mon Dec 31 18:12:51 2001 From: shayes at bigpond.net.au (Steven Hayes) Date: Tue, 1 Jan 2002 13:12:51 +1100 Subject: [mapserver-users] queryusing point or querybypoint? Message-ID: <000001c1926e$35843840$7b4b8990@tndn151qlhf5gi> Happy new year to all, I have become truly confused now as to where mapscript stands with querying and I hope someone can help me. I am using mapserv 3.3.011 and would rather not change it if possible as I find recompilation and reinstallation a bit daunting now I have some functional applications relying on my current installation. I am trying to do a query using mapscript in order to get information on the shape that has been clicked. Ideally I would like to simply return REG_ID which is the first field in the dbase file corresponding to the layer I am using for my test - I can do everything else I need to with an SQL query once I get that. My problem is that not only can I not find clear documentation but what little I have gleaned via the support lists has now made me question if I am even using a method that exists. QueryUsingPoint() and QueryByPoint() have both appeared. Initially I came to believe that QueryUsingPoint() was the correct method and QueryByPoint() was infact a documentation error. I now find evidence that suggests that QueryByPoint() has superceeded QueryUsingPoint() in MapServer V 3.5. Regardless of which method is correct I can not find any simple example for how to implement. I would thing that clicking a map to return a single value from a shapefile would be a fairly standard requirement. Is it or am I not really talking the same language as other users of MapServ ? Does someone have a simple code snippet or example ? By the way, apart from documentation frustrations I find the software excellent and I could not do any of the stuff I am doing now if it had not been made available as open source. Regards Steven Hayes my test application is at http://www.streamwatch.org.au/cgi-bin/maps_test.pl From shayes at bigpond.net.au Mon Dec 31 20:49:48 2001 From: shayes at bigpond.net.au (Steven Hayes) Date: Tue, 1 Jan 2002 15:49:48 +1100 Subject: [mapserver-users] How do you get shape attributes from a query result object (also a working code snippet for queryusingpoint ) ? Message-ID: <000101c1927f$be579fc0$7b4b8990@tndn151qlhf5gi> Thanks to all on the list for you patience in watching and sometimes helping me semi publicly work out how to use mapscript. Hopefully the subject line of this email will be indexed by the search engines and the code snippet (for Mapserv 3.3.011) at the end of this email might help new mapscript users in future. What it will now do - after many hours of trying - is return the shape index corresponding to a map click. In my final application, you can zoom in and out and pan but wherever you click you also end up with the relevant shape index. What I would like to know is if there is a simple way for me to query the shapefile for an attribute associated with this shapeindex ? ###################################################### # mapscript code snippet to return a shape index from a map click ###################################################### die $mapscript::ms_error->{message} unless $map = new mapObj("/www/hosted/streamwatch/cgi-bin/streamwatch_adv.map"); &set_extent(); # set extent subroutine taken verbatim from Stephen Limes quakes.pl - # you need this amongs other things to translate image coordinates into mapcoordinates my $img = $map->prepareImage(); my $layer = $map->getLayerByName('regall'); $layer->draw($map, $img); my $point = new pointObj(); $point->{x} = $my_x_coord; $point->{y} = $my_y_coord; $qryResult = $map->queryUsingPoint($point, MS_SINGLE, -1); $shpResult = $qryResult->next(); my $ndx = $shpResult->{shape}; # $ndx will return the shape index corresponding to a map click on my regall layer ################################################### Regards Steven Hayes