From havard.tveite at IKF.NLH.NO Mon Nov 1 00:09:40 2004 From: havard.tveite at IKF.NLH.NO (H=?ISO-8859-1?Q?=E5vard?= Tveite) Date: Mon, 1 Nov 2004 02:09:40 -0600 Subject: configure problems - nightly build Message-ID: I downloaded the nightly build an hour ago. configure has problems finding a working gd version (configure for 4.2.5 has no problems). I am on Solaris 2.7, gcc 3.3.2, gnu make 3.80, gd 2.0.28, ... I use the following configure command: ./configure --prefix=/usr/local --with-httpd=/usr/local/apache2/bin/httpd --with-sde=/users/ikf/sde/sdeexe80 --with-proj=/usr/local --with-wmsclient --with-wfs --with-wfsclient --with-wcs --with-ogr=/usr/local/bin/gdal-config --with-gd=/usr/local --with-zlib=/usr/local --with-gdal=/usr/local/bin/gdal-config --without-tiff --without-jpeg --with-postgis=/usr/local/pgsql/741/bin/pg_config --with-pdf=/usr/local --enable-debug This is where configure stops for the nightly build: ********************** checking for iconv_open in -lc... yes using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.12 or higher...... checking for gdImageSetAntiAliased in -lgd... no configure: checking whether GD needs libiconv...... checking for gdImageSetAntiAliased in -lgd... no configure: error: "Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD 2.0.12 or higher is compiled before calling configure." ********************** (the header file and libraries *are* in /usr/local/include and /usr/local/lib) The same configure command works for 4.2.5: ********************** checking for libiconv_open in -liconv... yes using libiconv from system libs. configure: checking for GD 2.0.12 or higher...... checking for gdImageSetAntiAliased in -lgd... no configure: checking whether GD needs libiconv...... checking for gdImageSetAntiAliased in -lgd... yes using libgd 2.0.12 (or higher) from -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -L/usr/local/lib -lz -lXpm -lX11 -liconv checking for gdImageGif in -lc... yes checking for gdImagePng in -lc... yes checking for gdImageJpeg in -lc... yes checking for gdImageWBMP in -lc... yes checking for gdImageStringFT in -lc... yes checking for gdImageGifPtr in -lc... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR) from /usr/local. ********************** Is it only me? -- H?vard Tveite Department of Mathematical Sciences and Technology Agricultural University of Norway Dr?bakveien 14, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64948857 Fax: +47 64948810 http://www.nlh.no/imt From janeks.kamerovskis at SILVA.LV Mon Nov 1 04:05:15 2004 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Mon, 1 Nov 2004 14:05:15 +0200 Subject: Opening shapefiles with mapscript ms_newShapefileObj coprupting my shapefiles Message-ID: Hi, I am using: MapServer Version MapServer version 4.4.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 1.212 $ $Date: 2004/10/22 02:44:03 $) Following code lines damaging my shapefiles so that stays only with 100 bytes: ******code********* $myShapeFile = ms_newShapefileObj($pathFile, MS_SHP_POLYGON); $myShapeFile->free(); ^^^^^^code^^^^^^^^^ Looking forward for your answer, Janeks From dmorissette at DMSOLUTIONS.CA Mon Nov 1 04:06:31 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 1 Nov 2004 07:06:31 -0500 Subject: Opening shapefiles with mapscript ms_newShapefileObj coprupting my shapefiles In-Reply-To: Message-ID: Janeks Kamerovskis wrote: > > Following code lines damaging my shapefiles so that stays only with 100 > bytes: > > ******code********* > > $myShapeFile = ms_newShapefileObj($pathFile, MS_SHP_POLYGON); > The line above tries to create a new file of type polygon. To open an existing file you should pass -1 as the type: $myShapeFile = ms_newShapefileObj($pathFile, -1); Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From janeks.kamerovskis at SILVA.LV Mon Nov 1 04:09:50 2004 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Mon, 1 Nov 2004 14:09:50 +0200 Subject: FW: Opening shapefiles with mapscript ms_newShapefileObj coprupting my shapefiles Message-ID: Or probably the right question is how to: "Pass type as -1 to open an existing file for read-only access, and type=-2 to open an existing file for update (append)." (from Docs) As I understood, that types is php constants... Janeks -----Original Message----- From: Janeks Kamerovskis [mailto:janeks.kamerovskis at silva.lv] Sent: Monday, November 01, 2004 2:05 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Opening shapefiles with mapscript ms_newShapefileObj coprupting my shapefiles Importance: High Hi, I am using: MapServer Version MapServer version 4.4.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 1.212 $ $Date: 2004/10/22 02:44:03 $) Following code lines damaging my shapefiles so that stays only with 100 bytes: ******code********* $myShapeFile = ms_newShapefileObj($pathFile, MS_SHP_POLYGON); $myShapeFile->free(); ^^^^^^code^^^^^^^^^ Looking forward for your answer, Janeks From dmorissette at DMSOLUTIONS.CA Mon Nov 1 04:28:15 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 1 Nov 2004 07:28:15 -0500 Subject: configure problems - nightly build In-Reply-To: Message-ID: That's an interesting one. It seems that the problem may be related to duplicate copies of the iconv functions on your system (in libiconv.so and libc.so). The nightly build finds the iconv functions in libc (-lc): H?vard Tveite wrote: > > checking for iconv_open in -lc... yes > using libiconv from system libs. but fails all the other tests, suggesting that this GD was built using another libiconv and would need (-liconv) in the link line to pass the tests: > configure: checking for GD 2.0.12 or higher...... > checking for gdImageSetAntiAliased in -lgd... no ... this is confirmed by the 4.2.5 output: A libiconv.so is found on the system (-liconv): > > The same configure command works for 4.2.5: > ********************** > checking for libiconv_open in -liconv... yes > using libiconv from system libs. ... and GD passes the tests when -liconv is included in the link line: > configure: checking whether GD needs libiconv...... > checking for gdImageSetAntiAliased in -lgd... yes > using libgd 2.0.12 (or higher) from -L/usr/local/lib -lgd -ljpeg > -lfreetype -lpng -L/usr/local/lib -lz -lXpm -lX11 -liconv I have filed bug 1017 about this issue. I'll see if I can fix the configure script to better handle this situation: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1017 In the meantime you could try to rebuild your GD using the iconv functions from libc.so... I would hope that this is what the GD build scripts would do by default if you do not have a local copy if libiconv on your system but I may be wrong. I never tried that. If you could copy your GD configure command to the bug that may help. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From sha at LE34.DK Mon Nov 1 04:30:03 2004 From: sha at LE34.DK (Stella Andersen) Date: Mon, 1 Nov 2004 06:30:03 -0600 Subject: Has anybody used the CGI variable IMGSHAPE with success Message-ID: I have been using the CGI-variables ...mode=nquery&imgxy=... and ...mode=nquery&imgbox=... with success - but when I tried ...mode=nquery&imgshape=... mapserver fails and an error occurs in the Apache error-log: Premature end of script headers: c:/programmer/apache group/apache/cgi- bin/mapserv40.EXE I am using MapServer version 4.0 compiled for Win32 /Stella From temiz at DEPREM.GOV.TR Mon Nov 1 05:32:42 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Mon, 1 Nov 2004 15:32:42 +0200 Subject: getting raster value Message-ID: hello I was wondering if new beta version could get raster value of clicked point ? regards Ahmet Temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From sobomsawin at KASSINI.COM Mon Nov 1 05:40:08 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Mon, 1 Nov 2004 08:40:08 -0500 Subject: [UMN_MAPSERVER-USERS] Mapserver CGI or C API question In-Reply-To: Message-ID: If your data are stored in a PostGIS database server, you can do a simple SQL query to find the extends of the selected elements. I do that with a CGI perl script but you can easily do that with PHP. Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de ANDY CANFIELD Envoy??: 29 octobre 2004 17:06 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] Mapserver CGI or C API question For anyone who may know, I am still working on my wireless app for using Mapserver from a Nextel phone. So far so good except I'm starting to run into some things I don't think the CGI was designed to do. At least not per the docs. Specifically I need search functionality. I want to be able to pass in a layer, an attribute and a value to search for and get back the bounding rectangle of all the features returned. I'm pretty sure the CGI won't do that. Correct me if I'm wrong so I don't waste time please. So what I'd like to do is write my own CGI that does return this info. So these are my questions: When you search a layer using mapserver's C api and it is searching a shapefile and you want to search the whole shapefile regardless of bounds is there any special searching that goes on or is it a straight loop through all the records in the shape file looking for matches in the attribute field specified? IE does it load a b-tree in memory and then search the tree or anything like that? Thanks, Andy _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 From hans.palmborg at ORESUNDSKRAFT.SE Mon Nov 1 06:11:58 2004 From: hans.palmborg at ORESUNDSKRAFT.SE (Hans Palmborg) Date: Mon, 1 Nov 2004 08:11:58 -0600 Subject: PHP queryByAttributes Message-ID: Hello! How to zoom in and color the match/matches of the question with queryByAttributes? //CODE IN PHP if ( $http_form_vars["Querystring"] ) { $szQuerystring = $http_form_vars["Querystring"]; $oParcelLayer = $oMapSession->oMap->getLayerByName("Layername"); $oParcelLayer->queryByAttributes("Columnname", "$szQuerystring", MS_MULTIPLE ); } Please help!! Installed versions: WIN XP sp2 IIS 5.1 PHP4.3.9.9 PHP_MAPSCRIPT_42 MAPSERVER4.2.0 //Hans Palmborg in Sweden! From dmorissette at DMSOLUTIONS.CA Mon Nov 1 07:51:05 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 1 Nov 2004 10:51:05 -0500 Subject: getting raster value In-Reply-To: <41863AFA.7050000@deprem.gov.tr> Message-ID: temiz wrote: > hello > > I was wondering if new beta version could get raster value of clicked > point ? > Yes. See bug 199: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=199 ... and the following info in the wiki: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterQuery -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From warmerdam at POBOX.COM Mon Nov 1 08:10:46 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 1 Nov 2004 11:10:46 -0500 Subject: Interlaced reference maps In-Reply-To: Message-ID: Romolo Manfredini wrote: > Hi, > I'm encountering some problem with reference maps, I have a reference > map which is an uninterlaced png image, whatever setting I place in the > mapfile, mapserver 4.2.2 > 4.2.5 generates a interlaced reference file. > The same thing happens if called by php/mapscript. > I'm using libgd 2.0.28 with gif support enabled. > Did anyone got the same problem ? Romolo, I think you need to be more specific about "whatever setting I place in the mapfile". Skimming through the reference file code it looks like the interlacing should be controlled by the main map object imagetype. What have you set IMAGETYPE to? Have you tried defining a custom outputformat to produce what you want? Best regards, -- ---------------------------------------+-------------------------------------- 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 mj at SCI.FI Mon Nov 1 13:18:14 2004 From: mj at SCI.FI (Mike Jackson) Date: Mon, 1 Nov 2004 23:18:14 +0200 Subject: php mapscript example for multipoint shapefile Message-ID: Hi, Briefly, how would I add these type of points to a line shapefile with php? 47.414467 9.656133 47.414450 9.656117 For example: $shapefile = ms_newShapefileObj($file, MS_SHP_MULTIPOINT); $shapefile->addPoint(47.414467, 9.656133); $shapefile->addPoint(47.414450, 9.656117); $shapeFile->free(); Or what is the proper method of doing this? I'm trying to create a shapefile from a GPS waypoint log. I would also be interested in how to insert this data into a postgis table, but that's OT here I suppose. Thanks, Mike From tbrown at NRRI.UMN.EDU Mon Nov 1 12:02:59 2004 From: tbrown at NRRI.UMN.EDU (Terry Brown) Date: Mon, 1 Nov 2004 15:02:59 -0500 Subject: mapserv install problem Message-ID: Trying to get a minimal demo running. Map file and template below, but short story is that when going to http://myhost.net/cgi-bin/mapserv?map=/home/ms/local/img/test0.map The image is being generated in IMAGEPATH and is viewable via IMAGEURL if entered directly, BUT whatever the first [square-bracket] expression in the template is, output (view source) ends on the proceeding line. Thanks for any clues. MapServer version 4.2.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE Linux Mandrage 10.0 Apache MAP DEBUG on SIZE 600 400 EXTENT 0 0 1000 1000 WEB IMAGEPATH "/home/ms/local/img/" IMAGEURL "http://myhost.net/mapimg/" TEMPLATE "/home/ms/local/tmpl/test0.html" END LAYER TYPE point CLASS COLOR 0 0 0 END FEATURE POINTS 50 500 500 100 END END END END with /home/ms/local/tmpl/test0.html (replacing angle brackets with parentheses for email) (html) (head) (title)test0(/title) (/head) (img src="[img]" border="0" width="300" height="400") (/body) (/html) ----------------------------------------------------------------------- Terry Brown Natural Resources Research Institute Research Associate 5013 Miller Trunk Highway tbrown at nrri.umn.edu University of Minnesota, Duluth Ph. 218 720 4345 Duluth, Minnesota 55811 Fax 218 720 4328 http://beaver.nrri.umn.edu/~tbrown/ From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Mon Nov 1 13:14:20 2004 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Jean-Francois Doyon) Date: Mon, 1 Nov 2004 16:14:20 -0500 Subject: Slight rendering problem with 4.4-beta1 ... Message-ID: G'day, I didn't get any reaction from this post, so I guess I'm alone ? :P I've run into this a few more times already ... I'l go look at the data when I have a minute, but in the mean time, what versions of GD and FreeType am I supposed to use for 4.4? As mentionned I'm using gd 2.0.28 with FreeType 2.1.4 ... Could that be the cause? A simple versionning mismatch? One thought I had was that it must be strings with spaces (i.e. seperate words), but that doesn't seem to be it, since there are many that DO work. Also doesn't seem to be related to wrapping, since in 3.6.6 at least these are strings that don't wrap. If I don't hear anything to the contrary, I'll keep playing with this, and if no solution comes apparent, I'll file it as a bug in bugzilla ... Thanks, J.F. > -----Original Message----- > From: Doyon, Jean-Francois > Sent: October 28, 2004 4:47 PM > To: 'mapserver-users at lists.umn.edu' > Subject: Slight rendering problem with 4.4-beta1 ... > > Hello, > > Find attached 2 versions of the exact same map/mapfile. > > I have a 3.6.6 with gd 1.8.4 and Freetype 1.x for one on RH7.3, and > 4.4-beta1 with gd 2.0.28 and freetype 2.1.4 on CentOS/RHEL 3 > > Note the "Thunder Bay" ... One one map (The 3.6.6 one) it looks fine. On > the 4.4-beta1 version, there's a problem. > > Admitedly, I'm using the exact same mapfile, so I don't know if maybe > there are changes I should be aware of to make this work right in the new > version. > > << File: mapserv366-ok.gif >> << File: mapserv44beta1-bad.gif >> > > Any ideas? > > Thanks! > > Jean-Fran?ois Doyon > Internet Service Development and Systems Support / Sp?cialiste de > d?veloppements internet et soutien technique > Canada Centre for Remote Sensing / Centre Canadien de t?l?d?tection > Natural Resources Canada / Ressources naturelles Canada > http://atlas.gc.ca > Tel./T?l. : (613) 992-4902 > Fax: (613) 947-2410 > From ealpert at DIGITALGLOBE.COM Mon Nov 1 16:49:54 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Mon, 1 Nov 2004 17:49:54 -0700 Subject: mapserv install problem Message-ID: Giving your layer a name will do the trick. NAME "mypoint" I think mode=browse expects more information. Also I make my IMAGEURL relative to the top of my document root. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Terry Brown Sent: Monday, November 01, 2004 1:03 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserv install problem Trying to get a minimal demo running. Map file and template below, but short story is that when going to http://myhost.net/cgi-bin/mapserv?map=/home/ms/local/img/test0.map The image is being generated in IMAGEPATH and is viewable via IMAGEURL if entered directly, BUT whatever the first [square-bracket] expression in the template is, output (view source) ends on the proceeding line. Thanks for any clues. MapServer version 4.2.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE Linux Mandrage 10.0 Apache MAP DEBUG on SIZE 600 400 EXTENT 0 0 1000 1000 WEB IMAGEPATH "/home/ms/local/img/" IMAGEURL "http://myhost.net/mapimg/" TEMPLATE "/home/ms/local/tmpl/test0.html" END LAYER TYPE point CLASS COLOR 0 0 0 END FEATURE POINTS 50 500 500 100 END END END END with /home/ms/local/tmpl/test0.html (replacing angle brackets with parentheses for email) (html) (head) (title)test0(/title) (/head) (img src="[img]" border="0" width="300" height="400") (/body) (/html) ----------------------------------------------------------------------- Terry Brown Natural Resources Research Institute Research Associate 5013 Miller Trunk Highway tbrown at nrri.umn.edu University of Minnesota, Duluth Ph. 218 720 4345 Duluth, Minnesota 55811 Fax 218 720 4328 http://beaver.nrri.umn.edu/~tbrown/ From tbrown at NRRI.UMN.EDU Mon Nov 1 15:59:20 2004 From: tbrown at NRRI.UMN.EDU (Terry Brown) Date: Mon, 1 Nov 2004 18:59:20 -0500 Subject: mapserv install problem In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB16017B18A4@COMAIL01.digitalglobe.com> Message-ID: On Mon, 1 Nov 2004, Ethan Alpert wrote: > Giving your layer a name will do the trick. That's it, thank you! > NAME "mypoint" > > I think mode=browse expects more information. > > Also I make my IMAGEURL relative to the top of my document root. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Terry Brown > Sent: Monday, November 01, 2004 1:03 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] mapserv install problem > > > Trying to get a minimal demo running. Map file and template below, but > short story is that when going to > http://myhost.net/cgi-bin/mapserv?map=/home/ms/local/img/test0.map > The image is being generated in IMAGEPATH and is viewable via IMAGEURL > if entered directly, BUT whatever the first [square-bracket] expression > in the template is, output (view source) ends on the proceeding line. > > Thanks for any clues. > > MapServer version 4.2.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE > > Linux Mandrage 10.0 Apache > > MAP > DEBUG on > SIZE 600 400 > EXTENT 0 0 1000 1000 > WEB > IMAGEPATH "/home/ms/local/img/" > IMAGEURL "http://myhost.net/mapimg/" > TEMPLATE "/home/ms/local/tmpl/test0.html" > END > LAYER > TYPE point > CLASS > COLOR 0 0 0 > END > FEATURE > POINTS > 50 500 500 100 > END > END > END > END > > with /home/ms/local/tmpl/test0.html > (replacing angle brackets with parentheses for email) > > (html) > (head) > (title)test0(/title) > (/head) > (img src="[img]" border="0" width="300" height="400") > (/body) > (/html) > > > > > ----------------------------------------------------------------------- > Terry Brown Natural Resources Research Institute > Research Associate 5013 Miller Trunk Highway > tbrown at nrri.umn.edu University of Minnesota, Duluth > Ph. 218 720 4345 Duluth, Minnesota 55811 > Fax 218 720 4328 http://beaver.nrri.umn.edu/~tbrown/ > > > ----------------------------------------------------------------------- Terry Brown Natural Resources Research Institute Research Associate 5013 Miller Trunk Highway tbrown at nrri.umn.edu University of Minnesota, Duluth Ph. 218 720 4345 Duluth, Minnesota 55811 Fax 218 720 4328 http://beaver.nrri.umn.edu/~tbrown/ From tylermitchell at SHAW.CA Mon Nov 1 22:54:48 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 1 Nov 2004 22:54:48 -0800 Subject: php mapscript example for multipoint shapefile In-Reply-To: <4186A816.8060109@sci.fi> Message-ID: > I would also be interested in how to > insert this data into a postgis table, but that's OT here I suppose. Can't help you on the PHP front, but don't mind diverting in postgis for a moment. Assuming you already have a point shapefile loaded into PostGIS, a single INSERT statement should do the trick. (but let me know if you don't know how to get to an SQL command window) Also assuming that you have a table and it has a single column (not likely) with just point geometry. Something like this is a start: insert into mytable values ('SRID=-1;POINT(' || 47.414467 || ' ' || 9.556133 || ')'); This probably looks more complicated than it needs to be but basically you can use 'normal' insert statements to hack together a text string that looks like the same format you see what you query the table. I haven't tried the exact above statement, but gleaned it from a view I create from a table holding x,y data in straight numeric (non-geo) columns. Hope that helps. Tyler From romoloman at HOTMAIL.COM Tue Nov 2 00:13:28 2004 From: romoloman at HOTMAIL.COM (Romolo Manfredini) Date: Tue, 2 Nov 2004 09:13:28 +0100 Subject: Interlaced reference maps Message-ID: > I think you need to be more specific about "whatever setting I place in the > mapfile". Skimming through the reference file code it looks like the > interlacing should be controlled by the main map object imagetype. What > have you set IMAGETYPE to? Have you tried defining a custom outputformat > to produce what you want? To be more specific I have the following in my map file IMAGETYPE PNG .. .. .. OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "INTERLACE=OFF" END The reference image is a png 24 bits uninterlaced. I get an interlaced reference either using the cgi either using php/mapscript. Best regards Romolo From havard.tveite at IKF.NLH.NO Tue Nov 2 02:50:05 2004 From: havard.tveite at IKF.NLH.NO (H=?ISO-8859-1?Q?=E5vard?= Tveite) Date: Tue, 2 Nov 2004 04:50:05 -0600 Subject: WMS getcapabilities wrong BoundingBox for PostGIS layers Message-ID: In 4.2.5 and 4.4 (todays nightly build), a WMS GetCapabilities request returns a strange BoundingBox (and LatLonBoundingBox) for PostGIS layers. For Shape format layers the correct BoundingBox is returned. My request uses: "&version=1.1.1&request=GetCapabilities" For my Shape format layers the following is returned (seemingly correct): For all my PostGIS layers the following is returned: Is this expected behaviour? In geometry_colums, the srid is 32633 and all the geometries have SRID=32633. The layers cover approximately the same area. msPOSTGISLayerGetExtent does not want to check the actual data and sets minx to -1*FLT_MAX and maxx to FLT_MAX. How can I help Mapserver determine the bounding box of a PostGIS layer? I was hoping it would be possible to give mapserver a hint? Something like specifying EXTENT for the LAYER? Is there a OWS/WMS parameter for this? -- H?vard Tveite IMT, NLH From temiz at DEPREM.GOV.TR Tue Nov 2 04:57:06 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Tue, 2 Nov 2004 14:57:06 +0200 Subject: reference map with php-mapscript Message-ID: hello I was wondering how I could get reference map with php-mapscript ? regards Ahmet Temiz Turkey ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From valik.solorzano.barboza at GEODAN.NL Tue Nov 2 05:29:36 2004 From: valik.solorzano.barboza at GEODAN.NL (Valik =?iso-8859-1?Q?Sol=F3rzano?= Barboza) Date: Tue, 2 Nov 2004 14:29:36 +0100 Subject: [Mapserver-dev] MapServer 4.4.0-beta1 released In-Reply-To: <417D7E89.7050700@dmsolutions.ca> Message-ID: Hi Daniel, we are trying to access http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ReleasePlan44 what we get strange characters. We did try this with FireFox and IE. Should we use another url? Cheers, Valik At 23:30 25/10/2004, Daniel Morissette wrote: >Hi, > >The MapServer team is working hard to bring you a release of MapServer >4.4.0 before the end of this year. The first step towards the release is >MapServer 4.4.0-beta1 which we are proud to release today. You can find >more details on the release plan in the wiki at >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ReleasePlan44 > >There are still several issues/bugs being worked on, but the software is >in very good shape and ready for power users to start playing with the new >features and report any issues they may find. If you think you found a bug >then please use bugzilla. We have done a feature freeze a few days ago, so >there will be no more new developments before 4.4.0, just fixes. > >The mapserver-4.4.0-beta1.tar.gz source package should be available on the >main MapServer website shortly. In the meantime you can get it from >http://maptools.org/dl/mapserver-4.4.0-beta1.tar.gz > >The documentation team is in the process of bringing the documentation up >to date for 4.4. The latest version of the docs is available at >http://mapserver.gis.umn.edu/doc/develop_index.html > >I will include at the end of this message a rough list of what's new in >MapServer 4.4. > >Windows binaries are also available: > >Howard Butler wrote: > > > > MapServer 4.4.0 beta1 Windows Binaries are available at: > > http://hobu.stat.iastate.edu/mapserver/build_output/beta_4_4_0 > > > > I have compiled a 4.4.0 beta1 "kitchen sink" release that includes GDAL, > > Proj.4, PDF output, SWF output, MrSID, NetCDF, JPEG2000, ECW, PostGIS, > > GML, WFS Server/Client, WMS Server/Client, DEBUG output, GIF, PNG, and > > JPEG. > > > > Oracle Spatial and SDE are *not* provided, but if you are interested, > > contact me off list. > > > > Python MapScript is also available. > >Finally, PHP MapScript binaries for Windows should be available in a few >minutes at http://maptools.org/php_mapscript/index.phtml?page=downloads.html > >Daniel >------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ >------------------------------------------------------------ > > >Here is a rough list of what's new in MapServer 4.4: > >* Added WCS support (server only) > >* Added support for Time dimension in WMS > >* Lots of fixes/improvements to the OGC WMS and WFS interfaces (too many >to list here). MapServer 4.4 passes all the tests of the OGC WMS 1.1.1 >test suite and is ready to be certified (Formal "WMS Compliance" >certification with OGC may be completed in time for the final release). > >* Added FastCGI support > >* Lots of fixes to allow running in long-lived processes and multithreaded >environments (memory leaks, mutex locking, etc.). > >* Added connection pooling (implemented for SDE and PostGIS). > >* Lots of improvements to SWIG MapScript API and docs. > >* Support for i18n encodings in map labels. Tested with Chinese, Japanese >and Thai. > >* Added ability to produce rotated maps (i.e. North is not at the top) > >* Completion of SDE versioned query support > >* ... and many many more fixes and enhancements. See the HISTORY.TXT that >comes with the source package for the complete list. > > >-------------- > >More detailed excerpt from HISTORY.TXT: > >Version 4.4.0-beta1 (2004-10-21) >-------------------------------- > >- 'make shared' compilation target now supports some kind of versioning, > should at least prevent libmap.so version collisions when upgrading > MapServer on a server (bug 982) > >- When no RULE parameter has been specified in the WMS request > a legend should be returned with all classes for the specified LAYER. > Changes has been made in mapwms.c (bug 653). Also if the SCALE parameter > is provided in the WMS request is will be used to determine whether > the legend of the specified layer should be drawn in the case that the > layer is scale dependant (big 809). > >- Nested layers in the capabilities are supported by using a new metadata > tag WMS_LAYER_GROUP (bug 776) > >- Added greyscale+alpha render support if mapdrawgdal.c: Bug 965. > >- Added --with-fastcgi support to configure. > >- support OGC mapcontext through mapserver cgi : Bug 946 > >- support for reading 3d shape file (z) : Bug 869. > >- add php mapscript functions to expose the z element : Bug 870 > >- imageObj::write() method for SWIG mapscript (bug 941). > >- Protect users from 3 potential sources of threading problems: parsing > expression strings outside of msLoadMap, evaluating mapserver logical > expressions, and loading symbol set files outside of msLoadMap (bug 339). > >- Various fixes allowing unit tests to run leak free under valgrind on > i686. Memory is now properly freed when exiting from common error > states (bug 927). > >- Restored ability to render transparent (indexed or alpha) pixmap symbols > on RGB map images, including annotation layers and embedded scalebars. > This feature remains OFF by default for map layers and is enabled by > specifying TRANSPARENCY ALPHA (bugs 926, 490). > >- mapserv_fcgi.c removed. Committed new comprehensive FastCGI support. > >- New mapserver exceptions for Java mapscript thanks to Umberto Nicoletti > (bug 895). > >- Removed mapindex.c, mapindex.h, shpindex.c components of old unused > shapefile indexing method. > >- Use the symbol size instead of 1 for the default style size value. This is > done by setting the default size to -1 and adding msSymbolGetDefaultSize() > everywhere to get the default symbolsize (Bug 751). > >- Correct Bug with GML BBOX output when using a with a > GetFeature request (Bug 913). > >- Encode all metadatas and mapfile parameters outputed in a xml document > (Bug 802). > >- Implement the ENCODING label parameter to support internationalization. > Note this require the iconv library (Bug 858). > >- New and improved Java mapscript build provided by unicoletti at prometeo.it > and examples by Y.K. Choo (bug 876). > >- MapContext: Cleanup code to make future integration more easily and output > SRS and DataURL in the order required by the spec. > >- Fixed issue with polygon outline colors and brush caching (bug 868). > >- New C# mapscript makefiles and examples provided by Y.K. Choo > committed under mapscript/csharp/ (bug 867). > >- Renamed 'string' member of labelCacheMemberObj to 'text' to avoid > conflicts in SWIG mapscript with C# and Java types (bug 852). > >- Fixed Bug 866 : problem when generating an sld on a pplygon layer > >- SWIG mapscript: map's output image width and height should be set > simultaneously using new mapObj::setSize() method. This performs > necessary map geotransform computation. Direct setting of map width > and height is deprecated (bug 836). > >- Fixed bug 832 (validate srs value) : When the SRS parameter in a GetMap > request contains a SRS that is valid for some, but not all of the layers > being requested, then the server shall throw a Service Exception > (code = "InvalidSRS"). Before this fix, mapserver use to reproject > the layers to the requested SRS. > >- Fixed bug 834: SE_ROW_ID in SDE not initialized for unregistered SDE tables > >- Fixed bug 823 : adding a validation of the SRS parameter when doing > a GetMap request on a wms server. Here is the OGC statement : > 'When the SRS parameter in a GetMap request contains a SRS > that is valid for some, but not all of the layers being requested, > then the server shall throw a Service Exception (code = "InvalidSRS").' > >- Set the background color of polygons or circles when using transparent > PIXMAP symbol. > >- SWIG mapscript class extensions are completely moved from mapscript.i > into separate interface files under mapscript/swiginc. > >- Overhaul of mapscript unit testing framework with a comprehensive test > runner mapscript/python/tests/runtests.py. > >- Modified the MS_VALID_EXTENT macro to take an extent as its argument > instead of the quartet of members. MapServer now checks that extents input > through the mapfile are valid in mapfile.c (web, map, reference, > and layer). Modified msMapSetExtent in mapobject.c to use the new > macro instead of its home-grown version. Modified all cases that used > MS_VALID_EXTENT to the new use case. > >- Layers now accept an EXTENT through the mapfile (bug 786). Nothing > is done with it at this point, and getExtent still queries the > datasource rather than getting information from the mapfile-specified > extent. > >- Fixed problem with WMS GetFeatureInfo when map was reprojected. Was a > problem with msProjectRect and zero-size search rectangles (bug 794) > >- MapServer version now output to mapscriptvars and read by Perl Makefile.PL > and Python setup.py (bug 795). > >- Map.web, layer, and class metadata are exposed in SWIG mapscript as > first-class objects (bug 737). > >- Add support for spatial filters in the SLD (Bug 782) > >- A few fixes to allow php_mapscript to work with both PHP4 and PHP5. > PHP5 support should still be considered experimental. (bug 718) > >- Fixed SDE only recognizing SE_ROW_ID as the unique column (bug 536). > The code now autosenses the unique row id column. > >- Enhanced SDE support to include support for queries against > user-specified versions. The version name can be specified as the > last parameter of the CONNECTION string. > >- Fixed automated generation of onlineresource in OWS GetCapabilities > when the xxx_onlineresource metadata is not specified: the map= parameter > used to be omitted and is now included in the default onlineresource if > it was explicitly set in QUERY_STRING (bug 643) > >- Fixed possible crash when producing WMS errors INIMAGE (bug 644) > >- Fixed automated generation of onlineresource in OWS GetCapabilities > when the xxx_onlineresource metadata is not specified: the map= parameter > used to be omitted and is now included in the default onlineresource if > it was explicitly set in QUERY_STRING (bug 643) > >- Fixed an issue with annotation label overlap. There was an issue with > the way msRectToPolygon was computing it's bounding box. (bug 618) > >- Removed "xbasewohoo" debug output when using JOINs and fixed a few > error messages related to MySQL joins (bug 652) > >- Fixed "raster cracking" problem (bug 493) > >- Improvements to Makefile.vc, and nmake.opt so that a mapscriptvars file > can be produced on windows. > >- Updated setup.py so Python MapScript builds on win32. > >- Added preliminary raster query support. > >- No more Python-stopping but otherwise benign errors raised from > msDrawWMSLayer() (bug 650). > >- Finished prototyping all MapServer functions used by SWIG-Mapscript > and added 'void' to prototypes of no-arg functions, eliminating all > but two SWIG-Mapscript build warnings (bug 658). > >- Mapscript: resolved issue with pens and dynamic drawing of points (bug 663). > >- Mapscript: fixes to tests of shape copying and new image symbols. > >- Mapscript: new OWSRequest class based on cgiRequestObj structure in > cgiutil.h is a first step to allow programming with MapServer's OWS > dispatching (bug 670). > >- Mapscript: styles member of classObj structure is no longer exposed to > SWIG (bug 611). > >- Implementation geotransform/rotation support in cgi core, and mapscript.i. > >- Testing: fixed syntax error, 'EPSG' -> 'epsg' in test.map (bug 687). > Added an embedded scalebar which demonstrates that bug 519 is fixed. > The test data package is also made more complete by including two fonts > from Bitstream's open Vera fonts (bug 694). > >- Mapscript (SWIG): remove promote and demote methods from layerObj. Use > of container's moveLayerUp/moveLayerDown is better, and this brings > the module nearer to PHP-Mapscript (bug 692). > >- mapogr.cpp: Now echos CPLGetLastErrorMsg() results if OGR open fails. > >- mapraster.c: fixed tile index corruption problem (bug 698) > >- Mladen Turk's map copying macros in mapcopy.h clean up map cloning and > allow for copying of fontset and symbolset. Added cloning tests in > python/tests/testCloneMap.py and refactored testing suite (bugs 640 & 701). > >- Mapscript: removing obsolete python/setup_wnone.py file. > >- CONFIG MS_NONSQUARE YES now enables non-square pixel mode (mostly for WMS). > Changes in mapdraw.c (msDrawMap()) to use the geotransform "hack" to allow > non-square pixels. > >- When using the text/html mime type in a GetFeature request, if the > layer's template is not set to a valid file, errors occur. > Correction is : the text/html is not advertized by default and > will only be advertized if the user has defined > "WMS_FEATURE_INFO_MIME_TYPE" "text/html" (bug 736) > >- Make PHP MapScript's layer->open() produce a PHP Warning instead of a > Fatal error (bug 742) > >- MapServer hash tables are now a structure containing a items pointer > to hashObj. See maphash.h for new prototypes of hash table functions. > In SWIG mapscript, Map, Layer, and Class metadata are now instances of the > new hashTableObj class. fontset.fonts and Map.configoptions are also > instances of hashTableObj. The older getMetaData/setMetaData and > metadata iterator methods can be deprecated (bug 737). > >- Mapscript-SWIG: made the arguments of mapObj and layerObj constructors > optional. A layerObj can now exist outside of a map and can be added > to a mapObj using the insertLayer method. mapObj.removeLayer now > returns a copy of the removed Layer rather than an integer (bug 759). > >- Fixed $map->processTemplate() which was always returning NULL. > Bug introduced in version 4.0 in all flavours of MapScript (bug 410) > > >_______________________________________________ >Mapserver-dev mailing list >Mapserver-dev at lists.gis.umn.edu >http://lists.gis.umn.edu/mailman/listinfo/mapserver-dev Drs. Valik Sol?rzano Barboza Geodan SDT b.v. President Kennedylaan 1 1079 MB Amsterdam (NL) ------------------------------------- Tel: +31 (0)20 - 5711 311 Fax: +31 (0)20 - 5711 333 ------------------------------------- E-mail: valik.solorzano.barboza at geodan.nl Website: www.geodan.nl Disclaimer: www.geodan.nl/disclaimer ------------------------------------- From test at STIGASCORP.COM Tue Nov 2 05:45:12 2004 From: test at STIGASCORP.COM (Chris) Date: Tue, 2 Nov 2004 08:45:12 -0500 Subject: browse mode performance Message-ID: Hello, I'm a new user and I'd like to know what your opinion(s) are regarding the performance of browse mode? My guess is that the amount of I/O to write out so many image files to disk is a major bottleneck. Is there any way for mapserver to create interactive maps in 'map' mode? How can I get MapServer tags values without running in browse mode? Thanks for reading. Regards, Chris From ed at TOPOZONE.COM Tue Nov 2 06:58:57 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 2 Nov 2004 09:58:57 -0500 Subject: browse mode performance Message-ID: Chris - "major" bottleneck? Not in my opinion. I suspect you're suffering from what a friend of mine calls "premature optimization" - get it working first, then get it working fast. Do you have a working MapServer application in browse mode that is running too slowly? If so, please give us some details about the application, and we'll try to help you optimize it. If not, please do that first! I'm not saying that disk I/O can NEVER be a problem, but that for many applications and many usage models, the output of temporary files is a rather minor piece of the puzzle. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chris Sent: Tuesday, November 02, 2004 8:45 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] browse mode performance Hello, I'm a new user and I'd like to know what your opinion(s) are regarding the performance of browse mode? My guess is that the amount of I/O to write out so many image files to disk is a major bottleneck. Is there any way for mapserver to create interactive maps in 'map' mode? How can I get MapServer tags values without running in browse mode? Thanks for reading. Regards, Chris From tylermitchell at SHAW.CA Tue Nov 2 07:08:30 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Tue, 2 Nov 2004 07:08:30 -0800 Subject: GLOBAL LANDSAT WMS is back up Message-ID: Joerg kindly pointed out to me that the NASA JPL Landsat WMS service is back up. Here is an image of one of the maps from my global mapping site showing it in action: http://spatialguru.com/tmp/Global_map109940776910153.png The WMS Capabilities for that landsat is at: http://wms.jpl.nasa.gov/wms.cgi?Request=GetCapabilities Note that if you request maps too quickly it appears to timeout -- I assume it's some function of a firewall?? Here's my map file setup for this layer. Enjoy - but don't over do it - they had to bring this site down earlier due to too much traffic from the WorldWind project. MapServer apps weren't a problem though! LAYER NAME global_landsat TYPE RASTER STATUS OFF CONNECTIONTYPE WMS CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" MAXSCALE 10000000 MINSCALE 20000 METADATA "wms_name" "global_mosaic" "wms_srs" "EPSG:4326" "wms_styles" "visual" "wms_server_version" "1.1.1" "wms_layers" "global_mosaic" "wms_request" "GetMap" "wms_format" "image/jpeg" "wms_connectiontimeout" "60" "wms_title" "global_mosaic_from_NASA_WMS" END END From yecarrillo at YAHOO.COM Tue Nov 2 07:42:56 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Tue, 2 Nov 2004 09:42:56 -0600 Subject: PHP queryByAttributes In-Reply-To: Message-ID: If "Layername" contains at lest one class with "TEMPLATE" param, you will get items highlighed automatically. Problem is that query is done just in the actual extent. What I do is change temporarily the extent: //Store here original extent here $mapMinX0 = ****; $mapMinY0 = ****; $mapMaxX0 = ****; $mapMaxY0 = ****; //Keep actual extent $mapMinXTmp = floatval($oMap->extent->minx); $mapMinYTmp = floatval($oMap->extent->miny); $mapMaxXTmp = floatval($oMap->extent->maxx); $mapMaxYTmp = floatval($oMap->extent->maxy); $oMap->setextent($mapMinX0, $mapMinY0, $mapMaxX0, $mapMaxY0); $oParcelLayer = $oMap->getLayerByName(stripslashes($_REQUEST['Layername'])); //Do query $qresult = @$oParcelLayer->queryByAttributes(stripslashes($_REQUEST['Columnname']), stripslashes($_REQUEST['szQuerystring']), MS_MULTIPLE); //Restore previous extent $oMap->setextent($mapMinXTmp, $mapMinYTmp, $mapMaxXTmp, $mapMaxYTmp); Eduin --- Hans Palmborg escribi?: > Hello! > > How to zoom in and color the match/matches of the question with > queryByAttributes? > > //CODE IN PHP > if ( $http_form_vars["Querystring"] ) > { > $szQuerystring = $http_form_vars["Querystring"]; > $oParcelLayer = $oMapSession->oMap->getLayerByName("Layername"); > $oParcelLayer->queryByAttributes("Columnname", "$szQuerystring", > MS_MULTIPLE ); > } > > Please help!! > > Installed versions: > WIN XP sp2 > IIS 5.1 > PHP4.3.9.9 > PHP_MAPSCRIPT_42 > MAPSERVER4.2.0 > > //Hans Palmborg in Sweden! > ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From havard.tveite at IKF.NLH.NO Tue Nov 2 07:55:07 2004 From: havard.tveite at IKF.NLH.NO (Havard Tveite) Date: Tue, 2 Nov 2004 16:55:07 +0100 Subject: WMS getcapabilities wrong BoundingBox for PostGIS layers In-Reply-To: Message-ID: I found the 4.4 documentation, and the LAYER level wms_extent parameter was what I was looking for. Could perhaps also be useful to use the extent of a (PostGIS) layer to determine when it is necessary to access the data, and when it is not. Havard Tveite IMT, NLH H?vard Tveite wrote: > In 4.2.5 and 4.4 (todays nightly build), a WMS GetCapabilities request > returns a strange BoundingBox (and LatLonBoundingBox) for PostGIS layers. > For Shape format layers the correct BoundingBox is returned. > My request uses: "&version=1.1.1&request=GetCapabilities" > > For my Shape format layers the following is returned (seemingly correct): > > maxy="7.86732e+06"/> > > For all my PostGIS layers the following is returned: > maxy="8.2419e+12"/> > maxy="2.5e+07"/> > > Is this expected behaviour? > > In geometry_colums, the srid is 32633 and all the geometries have SRID=32633. > > The layers cover approximately the same area. > > msPOSTGISLayerGetExtent does not want to check the actual data and sets minx > to -1*FLT_MAX and maxx to FLT_MAX. > How can I help Mapserver determine the bounding box of a PostGIS layer? > I was hoping it would be possible to give mapserver a hint? Something like > specifying EXTENT for the LAYER? > Is there a OWS/WMS parameter for this? > > -- > H?vard Tveite > IMT, NLH > From warmerdam at POBOX.COM Tue Nov 2 08:13:21 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 2 Nov 2004 11:13:21 -0500 Subject: Interlaced reference maps In-Reply-To: Message-ID: Romolo Manfredini wrote: > To be more specific I have the following in my map file > IMAGETYPE PNG > .. > .. > .. > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > FORMATOPTION "INTERLACE=OFF" > END > > The reference image is a png 24 bits uninterlaced. > I get an interlaced reference either using the cgi either using > php/mapscript. Romolo, OK, I tried doing a simple png generation using options similar to the above, and the resulting file was not interlaced. If you can submit a detailed bug report in the mapserver bugzilla and assign it to me I will look into the problem. I would need: o Info on your version. o A minimal map file that generates the error in question. o All supporting data files required by the map file o The exact URL to reproduce the problem. In fact, you should first verify you are getting the problem when you run "locally" using the "mapserv QUERY_STRINg='...'" approach. I will want to be able to run mapserv with your .map and data files to reproduce the problem on my machine. Please do not leave lots of spurious references to font files, symbol files, web temp directories, unneeded layers and so forth in the map file. It just complicates things. Also, make sure you assign the bug report directly to me. Best regards, -- ---------------------------------------+-------------------------------------- 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 bjoern.platzen at MOMATEC.DE Tue Nov 2 08:10:36 2004 From: bjoern.platzen at MOMATEC.DE (=?iso-8859-1?Q?Bj=F6rn_Platzen?=) Date: Tue, 2 Nov 2004 17:10:36 +0100 Subject: Strange LatLonBoundingBoxes and missing BoundingBoxes in GetCapabilities Message-ID: Hello List, I'm using Mapserver 4.2.3 on a SuSE Linux machine and I get strange LatLonBoundingBoxes in the GetCapabilites-Request. The SRS BoundingBoxes don't even appear in the GML. It seems to be right for the map-instance, but not for the layers (I checked it with owsview -> http://cgdi-dev.geoconnections.org/prototypes/owsview/index.html) The Projection should be correct as well. The data is in Gauss-Krueger Zone 3 which should be EPSG 31467. So here's a part of my mapfile (with just one Layergroup...): NAME geovip STATUS ON SIZE 1000 800 SYMBOLSET symbols/symbols.sym FONTSET "/srv/www/htdocs/web7/html/font/font.list" EXTENT 3385300 5458000 3632300 5665500 # RMV UNITS METERS SHAPEPATH "mapdata" #IMAGECOLOR 254 254 254 TRANSPARENT on IMAGETYPE png RESOLUTION 92 #---------------------------------------------------------------# # Set the projection to Gauss-Kruger 3 # #---------------------------------------------------------------# PROJECTION "init=EPSG:31467" END #---------------------------------------------------------------# # Start of web interface and WMS definitions # #---------------------------------------------------------------# WEB TEMPLATE rahmen.html MINSCALE 1000 MAXSCALE 200000 IMAGEPATH "/srv/www/htdocs/web7/html/tmp/" IMAGEURL "tmp/" LOG "/srv/www/htdocs/web7/html/geovip.log" METADATA "wms_title" "GeoVip Mapserver" "wms_onlineresource" "http://wms.essen123.server4you.de/gevisWMS.py?" "wms_srs" "EPSG:31467 EPSG:32623" "wms_feature_mime_type" "application/vnd.ogs.gml" END END QUERYMAP SIZE 1000 800 STATUS ON STYLE NORMAL COLOR 210 210 210 END LAYER NAME "OePNVStrassenBahnSchiene" GROUP "OePNVStrassenBahn" METADATA "wms_title" "OePNVStrassenBahnSchiene" "wms_group_title" "OePNVStrassenBahn" "wms_srs" "EPSG:31467 EPSG:32623" END TYPE Line CONNECTIONTYPE OGR CONNECTION "mapdata/Strassenbahn.TAB" DATA "Strassenbahn" STATUS ON MAXSCALE 25000 MINSCALE 1000 PROJECTION "init=EPSG:31467" END CLASS MINSCALE 7500 SYMBOL 1 COLOR 255 0 0 SIZE 2 END CLASS MAXSCALE 7499 SYMBOL 1 COLOR 255 0 0 SIZE 4 END END LAYER NAME "OePNVBus" GROUP "OePNVStrassenBahn" METADATA "wms_title" "OePNVBus" "wms_group_title" "OePNVStrassenBahn" "wms_srs" "EPSG:31467 EPSG:32623" END TYPE Line CONNECTIONTYPE OGR CONNECTION "mapdata/Buslinie.TAB" DATA "Buslinie" STATUS ON MAXSCALE 25000 MINSCALE 1000 PROJECTION "init=EPSG:31467" END CLASS MINSCALE 7500 SYMBOL 1 COLOR 255 0 0 SIZE 2 END CLASS MAXSCALE 7499 SYMBOL 1 COLOR 255 0 0 SIZE 4 END END END The WMS can be called under http://wms.essen123.server4you.de/gevisWMS.py? On a GetCapabilities or GetMap Requeast, the python script only calls the mapserver CGI to generate the GML/image, so the error does not take place in the script. I hope someone can help me... Thanks in advance, Bjoern Platzen -- momatec GmbH www.momatec.de From eric.belenfant at AC-ORLEANS-TOURS.FR Tue Nov 2 09:21:24 2004 From: eric.belenfant at AC-ORLEANS-TOURS.FR (eric BELENFANT) Date: Tue, 2 Nov 2004 11:21:24 -0600 Subject: symbol overlap Message-ID: Hello, i am trying to display some symbols on some points on a map. The problem is that, there are several items on one point. Then drawing the map, the symbols appears one over each other. I tried to give some offset values in the SYMBOLS classes but it doesn't work. Could you help me ? I know a message was already posted about this but there were no answer. thanks eric From ealpert at DIGITALGLOBE.COM Tue Nov 2 09:51:56 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 2 Nov 2004 10:51:56 -0700 Subject: browse mode performance Message-ID: Writing images is cheap opening up a lot of non-spatially indexed shapefiles is most often the problem. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chris Sent: Tuesday, November 02, 2004 6:45 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] browse mode performance Hello, I'm a new user and I'd like to know what your opinion(s) are regarding the performance of browse mode? My guess is that the amount of I/O to write out so many image files to disk is a major bottleneck. Is there any way for mapserver to create interactive maps in 'map' mode? How can I get MapServer tags values without running in browse mode? Thanks for reading. Regards, Chris From zhou_naijun at HOTMAIL.COM Tue Nov 2 10:04:37 2004 From: zhou_naijun at HOTMAIL.COM (N Zhou) Date: Tue, 2 Nov 2004 12:04:37 -0600 Subject: Reference map coordinate out of range? Message-ID: Hi, I'm using the demo mapserver to show my own layers. When I query a layer, I got error message of: loadForm(): Web application error. Reference map coordinate out of range. I checked the URL query which seems to be right. The coordinates are also within the map extent. Can anybody tell me why I have this problem? Thank you very much! N. Zhou From normanb at COMSINE.CO.UK Tue Nov 2 10:08:28 2004 From: normanb at COMSINE.CO.UK (Norman Barker) Date: Tue, 2 Nov 2004 18:08:28 +0000 Subject: Use of MapServer for GPS data Message-ID: Hi, I would like to use MapServer for the display of GPS data, which I have in Garmin MapSource format (.img) and Polish Format. Ideally I would use the WMS to provide backdrop satellite image, and use the vector data in the MapSource (and or Polish format) files in the WFS, or as a shapefile overlay. So 2 questions, 1) has anyone used GPS data with MapServer, or any applications with GPS 2) Anyone know how to convert GPS data into shapefiles (at no cost!) Many thanks, Norman -- Norman Barker Software Engineer ComSine Ltd Tel: +44 (0)1483 457121 Web: http://www.comsine.com *Please Note:* This text is confidential. If you are not the named addressee, it could be unlawful for you to read, copy, distribute, disclose or use the information contained herewith. If you are not the intended recipient please telephone +44(0)1483 457121. From eric.belenfant at AC-ORLEANS-TOURS.FR Tue Nov 2 10:08:41 2004 From: eric.belenfant at AC-ORLEANS-TOURS.FR (eric BELENFANT) Date: Tue, 2 Nov 2004 12:08:41 -0600 Subject: how turn a symbol into label Message-ID: Hello, i heard that it was possible to turn some symbols into labels. How could i do that ? thanks a lot eric From barnes at WATERSHEDS.CA Tue Nov 2 10:19:26 2004 From: barnes at WATERSHEDS.CA (Shawn Barnes) Date: Tue, 2 Nov 2004 13:19:26 -0500 Subject: truetype font problems Message-ID: I've installed mapserver a few times and this problem seems to be a hit and miss for me. I've gone through the archives and haven't found the answer yet. I'm getting an error message - DrawMap: MapServer TrueType Font Error: libgd was not built with FreeType font support My system, OS linux Gentoo 2004.2 i used emerge for - apache-1.0.52, gd-2.0.18, freetype-2.1.5 i'm using mapserver-4.4.0-beta1 typing 'gdlib-config --features' returns, GD_JPEG GD_FREETYPE GD_PNG GD_GIF php was configured with, --with-regex=ssytem --with-pgsql --with-gd --with-dbase --with-xml --with-zlib -- enable-force-cgi-redirect mapserver was configured with, --with-zlib --with-gd --with-png --with-proj=/usr/local --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-wms --with-wmsclient --with-wfs --with-wfsclient --with-php=/usr/local/src/php-4.3.9 phpinfo() shows, MapServer version 4.4.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE GD Support enabled GD Version bundled (2.0.28 compatible) GIF Read Support enabled GIF Create Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled Shawn Barnes From warmerdam at POBOX.COM Tue Nov 2 10:30:59 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 2 Nov 2004 13:30:59 -0500 Subject: Use of MapServer for GPS data In-Reply-To: <4187CD1C.3090002@comsine.co.uk> Message-ID: Norman Barker wrote: > Hi, > > I would like to use MapServer for the display of GPS data, which > I have in Garmin MapSource format (.img) and Polish Format. > > Ideally I would use the WMS to provide backdrop satellite image, > and use the vector data in the MapSource (and or Polish format) files > in the WFS, or as a shapefile overlay. > > So 2 questions, > > 1) has anyone used GPS data with MapServer, or any applications with GPS > 2) Anyone know how to convert GPS data into shapefiles (at no cost!) Norman, For most GPS formats it should be pretty easy to write a script in the scripting language of your choice to convert to shapefiles. You can use the commandline utilities from shapelib (http://shapelib.maptools.org) to create a shapefile, and points one at a time if you want. Or you can get one of the shapelib language bindings (I think python and perl ones exist around) to do a more direct operation. I think you can also write shapefiles with mapscript (perl, python, etc) so that might be the most direct route. You could also write a small C program to do the conversion using shapelib. Best regards, -- ---------------------------------------+-------------------------------------- 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 dbarron at DSWLLC.COM Tue Nov 2 09:47:17 2004 From: dbarron at DSWLLC.COM (Dan Barron) Date: Tue, 2 Nov 2004 09:47:17 -0800 Subject: thread safe implementations Message-ID: Hello, Just curious what the current consensus and recommendations are for creating a thread safe front end or wrapper for mapserver in either php or java? I'm assuming that mapserver is still not thread safe - that correct? Thanks! Dan From David.Fawcett at STATE.MN.US Tue Nov 2 12:05:18 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Tue, 2 Nov 2004 14:05:18 -0600 Subject: Reference map coordinate out of range? Message-ID: Can you post a Map file snippet and your query URL? David J. Fawcett MN Office of Environmental Assistance >>> N Zhou 11/2/2004 12:04:37 PM >>> Hi, I'm using the demo mapserver to show my own layers. When I query a layer, I got error message of: loadForm(): Web application error. Reference map coordinate out of range. I checked the URL query which seems to be right. The coordinates are also within the map extent. Can anybody tell me why I have this problem? Thank you very much! N. Zhou From jerl.simpso at GMAIL.COM Tue Nov 2 12:04:18 2004 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Tue, 2 Nov 2004 14:04:18 -0600 Subject: Cities around the world Message-ID: Hello, I have found some good data for most of what I need in a world wide format. (Email me if you want to know where...I don't want to plug any sites). Anyway, the populated places (points) doesn't have a good way to break out cities based on size/population. I would like to break things up by size, so I'm showing only large cities at a higher view, and gradually show more as I get closer. Right now, if I have a red circle for the city symbol...well, most of the world comes out as red...not the desired outcome. In short, if anyone knows where I might be able to find some population data I would greatly appreciate it. Thank you, Jerl From superbla3000 at GMX.NET Tue Nov 2 12:35:40 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Tue, 2 Nov 2004 21:35:40 +0100 Subject: GLOBAL LANDSAT WMS is back up In-Reply-To: <200411020708.30546.tylermitchell@shaw.ca> Message-ID: Unfortuantely it's down again.... those were nice 8 hours... Joerg Tyler Mitchell wrote: > Joerg kindly pointed out to me that the NASA JPL Landsat WMS service is back > up. Here is an image of one of the maps from my global mapping site showing > it in action: > http://spatialguru.com/tmp/Global_map109940776910153.png > > The WMS Capabilities for that landsat is at: > http://wms.jpl.nasa.gov/wms.cgi?Request=GetCapabilities > > Note that if you request maps too quickly it appears to timeout -- I assume > it's some function of a firewall?? > > Here's my map file setup for this layer. Enjoy - but don't over do it - they > had to bring this site down earlier due to too much traffic from the > WorldWind project. MapServer apps weren't a problem though! > > LAYER > NAME global_landsat > TYPE RASTER > STATUS OFF > CONNECTIONTYPE WMS > CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" > MAXSCALE 10000000 > MINSCALE 20000 > METADATA > "wms_name" "global_mosaic" > "wms_srs" "EPSG:4326" > "wms_styles" "visual" > "wms_server_version" "1.1.1" > "wms_layers" "global_mosaic" > "wms_request" "GetMap" > "wms_format" "image/jpeg" > "wms_connectiontimeout" "60" > "wms_title" "global_mosaic_from_NASA_WMS" > END > END > > From sgillies at FRII.COM Tue Nov 2 13:10:29 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 2 Nov 2004 14:10:29 -0700 Subject: thread safe implementations In-Reply-To: Message-ID: On Nov 2, 2004, at 10:47 AM, Dan Barron wrote: > Hello, > > Just curious what the current consensus and recommendations are for > creating a thread safe front end or wrapper for mapserver in either > php or > java? I'm assuming that mapserver is still not thread safe - that > correct? > > Thanks! > > Dan > Dan, I caught and fixed three sources of potential threading problems before the 4.2.4 release and these fixes will also be in 4.4.0. I think we're close to thread safety, but it's hard to say without more testing. As far as I know, my ZMapServer (Zope + Python mapscript) software is the only thing out there that is using MapServer in a multi-threaded environment. It works, but is not a complete proof of thread safety. There remains much work to be done to in improving MapServer's threaded performance. The single lexer for parsing mapfiles and class expressions is a bottleneck that will be addressed in the future. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From cartman8d at YAHOO.COM Tue Nov 2 13:46:47 2004 From: cartman8d at YAHOO.COM (Cartman) Date: Tue, 2 Nov 2004 15:46:47 -0600 Subject: Help with php compilation Message-ID: Hi, I found this url http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat9AndMapserver40 and I'm following the instructions that there are. but I have problems with the php compilation. I did that *************************************************** tar xzf php-4.3.3.tar.gz cd php-4.3.3 make clean ./configure --enable-shared --with-regex=system --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib --with-gd=/usr/local --with-freetype-dir=/usr --enable-force-cgi-redirect --enable-dbase --with-pdflib --with-mysql --with-config-file-path=/usr/local/php433/ --prefix=/usr/local/php433 make (here is the problem) sudo cp sapi/cgi/php /var/www/cgi-bin/php433 sudo make install sudo cp php.ini-dist /usr/local/php433/php.ini ************************************************************ When I run the command make it is the follow error. . . . . lz -ljpeg -lz -lresolv -lm -ldl -lnsl -lcrypt -lcrypt -o sapi/cgi/php ext/mysql/libmysql/my_tempnam.o(.text+0x40): In function `my_tempnam': /opt/php-4.3.3/ext/mysql/libmysql/my_tempnam.c:115: the use of `tempnam' is dangerous, better use `mkstemp' ext/pdf/pdf.o(.text+0x4d8): In function `zif_pdf_open': /opt/php-4.3.3/ext/pdf/pdf.c:472: undefined reference to `PDF_open_fp' collect2: ld returned 1 exit status make: *** [sapi/cgi/php] Error 1 what's happen? ===== Gracias. Atentamente, CARLOS ARTURO TRUJILLO SILVA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From cclements at WESTERNFOREST.COM Tue Nov 2 13:48:02 2004 From: cclements at WESTERNFOREST.COM (Chris Clements) Date: Tue, 2 Nov 2004 15:48:02 -0600 Subject: viewing WMS Layers Message-ID: Hi All, I am having some problems with viewing of some layers when using a WMS- Service. I have created a .MAP file that contains 6 layers. Each layer is a different shapefile. I can view all of these shape files in my browser (IE) together straight from mapserver, but when I try view them as a WMS service, only 3 of the 6 layers will show up at any one time. I have the WMS-service set to allow the layers to be turned on or off, when i turn any 3 on they show up fine, but when I turn on a fourth layer, they all disappear. All of the layers will show up as long as no more than 3 are turned on at one time. I am usign MapServer 4.2.3, Tomcat 5.0.27. Hopefully I have explained everything clearly. Any hints as to what might be wrong? Thanks for any help, Chris From michel.dupiol at FREE.FR Tue Nov 2 14:16:51 2004 From: michel.dupiol at FREE.FR (Michel Dupiol) Date: Tue, 2 Nov 2004 23:16:51 +0100 Subject: Employment Message-ID: Hello to everybody, I'm the director of a small French company, specialized in the developments on Web GIS. I'm looking for a developer to develop a Web front end application in PHP with MapServer ans MapLab It is a 3 month contract, which will be able to extend thereafter to several years. The only constraint is that the work is based in Gers in France, this department is very favorable to the immigrant workers wanting to be established in the area (soho solo project). The need is urgent because work must start at the latest on December 1st of this year. Some information on Gers: http://www.gers-gascogne.com/eng/default.asp http://www.ceei-gers.org/ http://www.ceei-gers.org/solo.php3 To answer or to get more information: mdupiol at sitomap.com phone : +33-562501614 Thank's to all, Michel Dupiol Director, SITOMAP. www.sitomap.com From jachym.cepicky at CENTRUM.CZ Tue Nov 2 08:18:01 2004 From: jachym.cepicky at CENTRUM.CZ (Jachym Cepicky) Date: Tue, 2 Nov 2004 17:18:01 +0100 Subject: itemnquery return Message-ID: Hallo, I use mapserver 4.x when I use itemquery, the mapserver returns first match, just one would expect it. but when I use itemnquery, mapserver returns [img], which contains all _n_ matches, but he returns it _n_ times, so the template file is also used _n_ times. I would like to have something like http://maps.dnr.state.mn.us/cgi-bin/mapserv36?mapserv=%2Fcgi-bin%2Fmapserv36&map=%2Fusr%2Flocal%2Fwww%2Fdocs%2Fmapserver_demos%2Ftests36%2Fitemquery%2Fcase2.map&map_web_imagepath=%2Fusr%2Flocal%2Fwww%2Fdocs%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&mode=itemnquery&qlayer=county&map_county_filter=%2FAitkin%7CBenton%2F&name=Aitkin&name=Benton which is i result from http://maps.dnr.state.mn.us/mapserver_demos/tests40/itemquery/test.html (Case 2: Simple ItemNQuery With QueryMap) as you can see, mapserver returned only one [img], which contains two maches. is there some parameter, I have forgotten, which manages the query returns? Thank you J?chym P.S. Here the address, which goes from my application to mapserv: http://10.0.0.16/cgi-bin/mapserv?program=%2Fcgi-bin%2Fmapserv&savequery=true&map=%2Fhome%2Fmapserv%2Fpublic_html%2Fkrtiny.map&imgext=-593271.831126+-1149277.640755+-591385.943709+-1147394.887722&imgxy=263+208&image=%2F%7Emapserv%2Ftmp%2Fkrtiny109943484217318.png&scale=&mode=itemnquery&img_addres=%2F%7Emapserv%2Ftmp%2Fkrtiny109943484217318.png&layers=hm1+porostni_mapa+obrys&qstring=137Ea1a&qitem=tag&mapext=shape&qlayer=porostni_mapa_k_vyhledavani&imgbox=263+208+263+208&zoomdir=0&zoomsize=4&layer=hm1&layer=porostni_mapa&layer=obrys -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From steve.lime at DNR.STATE.MN.US Tue Nov 2 15:18:12 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 2 Nov 2004 17:18:12 -0600 Subject: Slight rendering problem with 4.4-beta1 ... Message-ID: I didn't see your original posting, sorry. With 4.4 I would use GD 2.0.28 and FreeType 2.1.9 and see if that fixes things. FT 2.1.4 is 18 months old and GD has undergone a ton of TrueType work in the last few months so let's get current and rule that out first. Then we can deal with the issue if it persists. Steve >>> Jean-Francois Doyon 11/1/2004 3:14:20 PM >>> G'day, I didn't get any reaction from this post, so I guess I'm alone ? :P I've run into this a few more times already ... I'l go look at the data when I have a minute, but in the mean time, what versions of GD and FreeType am I supposed to use for 4.4? As mentionned I'm using gd 2.0.28 with FreeType 2.1.4 ... Could that be the cause? A simple versionning mismatch? One thought I had was that it must be strings with spaces (i.e. seperate words), but that doesn't seem to be it, since there are many that DO work. Also doesn't seem to be related to wrapping, since in 3.6.6 at least these are strings that don't wrap. If I don't hear anything to the contrary, I'll keep playing with this, and if no solution comes apparent, I'll file it as a bug in bugzilla ... Thanks, J.F. > -----Original Message----- > From: Doyon, Jean-Francois > Sent: October 28, 2004 4:47 PM > To: 'mapserver-users at lists.umn.edu' > Subject: Slight rendering problem with 4.4-beta1 ... > > Hello, > > Find attached 2 versions of the exact same map/mapfile. > > I have a 3.6.6 with gd 1.8.4 and Freetype 1.x for one on RH7.3, and > 4.4-beta1 with gd 2.0.28 and freetype 2.1.4 on CentOS/RHEL 3 > > Note the "Thunder Bay" ... One one map (The 3.6.6 one) it looks fine. On > the 4.4-beta1 version, there's a problem. > > Admitedly, I'm using the exact same mapfile, so I don't know if maybe > there are changes I should be aware of to make this work right in the new > version. > > << File: mapserv366-ok.gif >> << File: mapserv44beta1-bad.gif >> > > Any ideas? > > Thanks! > > Jean-Fran?ois Doyon > Internet Service Development and Systems Support / Sp?cialiste de > d?veloppements internet et soutien technique > Canada Centre for Remote Sensing / Centre Canadien de t?l?d?tection > Natural Resources Canada / Ressources naturelles Canada > http://atlas.gc.ca > Tel./T?l. : (613) 992-4902 > Fax: (613) 947-2410 > From grs at GRSGIS.COM Tue Nov 2 15:27:57 2004 From: grs at GRSGIS.COM (Geographic Resource Solutions) Date: Tue, 2 Nov 2004 15:27:57 -0800 Subject: Map Refresh, Reference Zoom, and Radio Button problems Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- MAP NAME CoEZoning STATUS ON # SIZE 600 500 # map size # SIZE 150 150 # reference image size # # EXTENT 5915000.00 2130000.00 6015000.00 2230000.00 EXTENT 5950000.00 2162000.00 5980000.00 2190000.00 UNITS FEET IMAGECOLOR 255 255 255 IMAGETYPE PNG SHAPEPATH "data" SYMBOLSET "symbols\symbols35.sym" FONTSET "fonts\fonts.list" RESOLUTION 128 SCALE 100000.0 # PROJECTION "init=epsg:2225" END # WEB IMAGEPATH "scratch\" IMAGEURL "\\10.53.0.16\gisms\scratch\" LOG "tmp\webimage.log" # TEMPLATE "COEexample2-4.html" TEMPLATE "COEZI.html" MINSCALE 40 MAXSCALE 144000 END # # Start of reference map # REFERENCE STATUS ON IMAGE 'image\coeZoning_ref.png' SIZE 150 150 EXTENT 5950000.00 2162000.00 5980000.00 2190000.00 MINBOXSIZE 11 MAXBOXSIZE 100 COLOR -1 -1 -1 OUTLINECOLOR 255 255 0 MARKERSIZE 10 MARKER 'star' END # # Start of legend # LEGEND KEYSIZE 15 10 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END OUTLINECOLOR 0 0 0 STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END STYLE 1 SIZE 150 3 COLOR 0 0 0 UNITS FEET INTERVALS 3 TRANSPARENT FALSE STATUS ON END # # Start of the querymap object # QUERYMAP SIZE 200 150 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of layer definitions # LAYER NAME "Zoning" DATA "zoning_polygon" #shapefile name TYPE POLYGON STATUS DEFAULT CLASSITEM "DESIGNATIO" CLASS NAME "A" EXPRESSION "A" STYLE COLOR 76 230 0 OUTLINECOLOR 255 255 0 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "AC" EXPRESSION "AC" STYLE COLOR 205 245 122 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME 'CC-AR' EXPRESSION 'CC-AR' STYLE COLOR 168 56 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "CC-LW" EXPRESSION "CC-LW" STYLE COLOR 168 56 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "CN" EXPRESSION "CN" STYLE COLOR 255 0 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "CP" EXPRESSION "CP" STYLE COLOR 188 68 101 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "CS" EXPRESSION "CS" STYLE COLOR 115 0 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "CS-AR" EXPRESSION "CS-AR" STYLE COLOR 115 0 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "CS-AR-LW" EXPRESSION "CS-AR-LW" STYLE COLOR 115 0 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "CS-LW" EXPRESSION "CS-LW" STYLE COLOR 115 0 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "CS-PD" EXPRESSION "CS-PD" STYLE COLOR 115 0 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "CS-Q" EXPRESSION "CS-Q" STYLE COLOR 115 0 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "CW" EXPRESSION "CW" STYLE COLOR 233 22 224 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "HM" EXPRESSION "HM" STYLE COLOR 115 255 223 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "MC" EXPRESSION "MC" STYLE COLOR 102 152 141 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "MG" EXPRESSION "MG" STYLE COLOR 130 130 130 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "ML" EXPRESSION "ML" STYLE COLOR 178 178 178 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "NR" EXPRESSION "NR" STYLE COLOR 115 115 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "OR" EXPRESSION "OR" STYLE COLOR 230 152 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "OR-AR" EXPRESSION "OR-AR" STYLE COLOR 230 152 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "P" EXPRESSION "P" STYLE COLOR 0 169 230 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "PF-M" EXPRESSION "PF-M" STYLE COLOR 244 160 189 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "RM-1-AR-LW" EXPRESSION "RM-1-AR-LW" STYLE COLOR 115 76 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "RM-1000" EXPRESSION "RM-1000" STYLE COLOR 115 76 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "RM-1000-AR" EXPRESSION "RM-1000-AR" STYLE COLOR 115 76 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "RM-2500" EXPRESSION "RM-2500" STYLE COLOR 255 170 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "RM-2500-AR" EXPRESSION "RM-2500-AR" STYLE COLOR 255 170 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "RS-12000" EXPRESSION "RS-12000" STYLE COLOR 255 235 175 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "RS-6000" EXPRESSION "RS-6000" STYLE COLOR 255 255 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "RS-6000-PD" EXPRESSION "RS-6000-PD" STYLE COLOR 255 255 0 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "WC" EXPRESSION "WC" STYLE COLOR 76 0 115 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END CLASS NAME "WD" EXPRESSION "WD" STYLE COLOR 190 210 155 OUTLINECOLOR 50 50 50 SIZE 2 END TEMPLATE "templates/zoning_query.html" END END LAYER NAME "WaterBodies" Group "Water" DATA "city_limits_polygon" #shapefile name TYPE POLYGON STATUS OFF CLASS NAME "Water" STYLE COLOR 0 0 255 END END END LAYER NAME "CityLimits" DATA "city_limits_polygon" #shapefile name TYPE LINE STATUS ON CLASS NAME "City Limits" STYLE COLOR 0 0 0 SYMBOL "ldashdash" SIZE 3 END END END LAYER NAME "Hydrology" GROUP "Water" DATA "city_limits_polygon" #shapefile name TYPE LINE STATUS OFF CLASS NAME "Streams and Rivers" STYLE COLOR 0 0 255 SYMBOL "dashed3dot" SIZE 1 END END END LAYER NAME "CoastalZone" DATA "coastal_zone_polygon" #shapefile name TYPE LINE STATUS OFF CLASS NAME "Coastal Zone Boundary" STYLE COLOR 0 0 0 SIZE 2 SYMBOL "dasheddot" END END END LAYER NAME "Streets" DATA "ekactrlnsp83c_arc" #shapefile name TYPE LINE STATUS OFF CLASSITEM 'MAJOR_ROAD' CLASS EXPRESSION 'y' NAME "Major Streets & Highways" TEMPLATE "templates/street_query.html" STYLE COLOR 255 0 255 SIZE 3 SYMBOL "dasheddot" END END CLASS NAME "Streets" TEMPLATE "templates/street_query.html" STYLE COLOR 150 150 150 SIZE 1 END END END # # next layer is for use in generation of reference map # LAYER NAME "MajorStreets" DATA "ekactrlnsp83c_arc" #shapefile name TYPE LINE STATUS OFF FILTERITEM 'MAJOR_ROAD' FILTER 'y' CLASS NAME "Major Streets & Highways" TEMPLATE "templates/street_query.html" STYLE COLOR 255 0 255 SIZE 3 # SYMBOL "dasheddot" END END END LAYER NAME "Parcels" DATA "parcels_polygon" #shapefile name TYPE LINE STATUS OFF CLASS NAME "Parcels" TEMPLATE "templates/parcel_query.html" STYLE COLOR 200 200 200 SIZE 1 END END END LAYER NAME "ZoningBoundaries" DATA "zoning_polygon" #shapefile name TYPE LINE STATUS DEFAULT CLASS STYLE SIZE 2 COLOR 50 50 50 END END END LAYER NAME "ZoningLabels" DATA "zoning_polygon" #shapefile name STATUS ON TYPE ANNOTATION CLASSITEM "DESIGNATIO" LABELITEM "DESIGNATIO" CLASS # NAME "Zoning Designation" COLOR -1 -1 -1 LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial-bold SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS TRUE MINDISTANCE 200 BUFFER 4 END # end of label END END END # end of map file -------------- next part -------------- City of Eureka GIS - Zoning Information

City of Eureka GIS - Zoning Information/Query


View/Browse Control
Zoom In
Zoom Out
Zoom Factor
View Center

Query Feature
Query Features





Select Layers
Zoning 
Zoning Labels 
Parcels 
Coastal Zone 
City Limits 
Water 
Streets 




 MapServer v4.2.3  Scale= 1:
Reference Map



Map Legend



GIS Home Page   Parcel Information/Query   Fire Response Area Information/Query   Land Use Information/Query   Reset Zoning View  


-------------- next part -------------- Geographic Resource Solutions 1125 16th Street, Suite 213 Arcata, CA 95521 Phone: (707) 822-8005 Fax: (707) 822-2864 www.grsgis.com From fx.gamoy at MAPXPLORE.COM Tue Nov 2 16:39:34 2004 From: fx.gamoy at MAPXPLORE.COM (fx gamoy) Date: Wed, 3 Nov 2004 01:39:34 +0100 Subject: compiling mapserver... gd gdal and postgresql GEOS Message-ID: Hello world, Is it necessary to compil gd with postgresql support in order to get then mapserver compiled with postgis??? If no, is it interesting (resource low cost?) to compil gd without postgress? In the same idea, i think it is necessary to compil gdal with posgresql support to permit read access on the geometry column (porvided by postgis) but Is it necessary to compil gdal with GEOS support in order to get, then, mapserver compiled with postgis??? If no, is it interesting (resource low cost?) to compil gdal without GEOS? thanks fx -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Wed Nov 3 02:53:56 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 3 Nov 2004 09:53:56 -0100 Subject: itemnquery return {Scanned} In-Reply-To: <20041102161801.GD29205@trava> Message-ID: Hi, You should give a template without image tag for the class, and give an image tag in the footer or header template. I have send this answer to the list few monthes ago. See in the archive. Bye Zoltan On Tue, 2 Nov 2004, Jachym Cepicky wrote: > Hallo, > I use mapserver 4.x > > when I use itemquery, the mapserver returns first match, just one would expect > it. > > but when I use itemnquery, mapserver returns [img], which contains all _n_ > matches, but he returns it _n_ times, so the template file is also used _n_ > times. > > I would like to have something like > http://maps.dnr.state.mn.us/cgi-bin/mapserv36?mapserv=%2Fcgi-bin%2Fmapserv36&map=%2Fusr%2Flocal%2Fwww%2Fdocs%2Fmapserver_demos%2Ftests36%2Fitemquery%2Fcase2.map&map_web_imagepath=%2Fusr%2Flocal%2Fwww%2Fdocs%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&mode=itemnquery&qlayer=county&map_county_filter=%2FAitkin%7CBenton%2F&name=Aitkin&name=Benton > > which is i result from > http://maps.dnr.state.mn.us/mapserver_demos/tests40/itemquery/test.html > (Case 2: Simple ItemNQuery With QueryMap) > > as you can see, mapserver returned only one [img], which contains two maches. > > is there some parameter, I have forgotten, which manages the query returns? > > Thank you > > J?chym > > P.S. Here the address, which goes from my application to mapserv: > http://10.0.0.16/cgi-bin/mapserv?program=%2Fcgi-bin%2Fmapserv&savequery=true&map=%2Fhome%2Fmapserv%2Fpublic_html%2Fkrtiny.map&imgext=-593271.831126+-1149277.640755+-591385.943709+-1147394.887722&imgxy=263+208&image=%2F%7Emapserv%2Ftmp%2Fkrtiny109943484217318.png&scale=&mode=itemnquery&img_addres=%2F%7Emapserv%2Ftmp%2Fkrtiny109943484217318.png&layers=hm1+porostni_mapa+obrys&qstring=137Ea1a&qitem=tag&mapext=shape&qlayer=porostni_mapa_k_vyhledavani&imgbox=263+208+263+208&zoomdir=0&zoomsize=4&layer=hm1&layer=porostni_mapa&layer=obrys > > From janeks.kamerovskis at SILVA.LV Wed Nov 3 03:16:36 2004 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Wed, 3 Nov 2004 13:16:36 +0200 Subject: Lost transparency for diagonal fill by changing from 4.0.1 to MapServer 4.4.0-beta1 a.o. Message-ID: This problem appears, when I am using imagetype PNG24. When I am using JPEG, then images does not appears in my Web template. I checked tmp dir, there was some *.jpg files, but when I tried to open them with MS-PhotoEditor, then err. message: Can't determine type? Here are map file part, that worked in 4.0.1. CLASS NAME 'name' STYLE SYMBOL 'downwarddiagonalfill' COLOR 225 51 0 OUTLINECOLOR 255 0 255 SIZE 5 END END Symbol: SYMBOL # Downward diagonal fill NAME "downwarddiagonalfill" TYPE vector TRANSPARENT 0 POINTS 0 1 1 0 END END What could be a reason? Janeks From dmi at WEBMAIL.CO.ZA Wed Nov 3 04:51:29 2004 From: dmi at WEBMAIL.CO.ZA (Scott Ainslie) Date: Wed, 3 Nov 2004 14:51:29 +0200 Subject: Cities around the world In-Reply-To: Message-ID: Please post. I am looking for world wide data for Countries, towns, urban areas, rivers, lakes/dams, main roads etc. Is the site you are creating public? Scott Jerl Simpson wrote: >Hello, > >I have found some good data for most of what I need in a world wide >format. (Email me if you want to know where...I don't want to plug >any sites). Anyway, the populated places (points) doesn't have a good >way to break out cities based on size/population. > >I would like to break things up by size, so I'm showing only large >cities at a higher view, and gradually show more as I get closer. >Right now, if I have a red circle for the city symbol...well, most of >the world comes out as red...not the desired outcome. > >In short, if anyone knows where I might be able to find some >population data I would greatly appreciate it. > >Thank you, > >Jerl > > > From sobomsawin at KASSINI.COM Wed Nov 3 06:43:52 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 3 Nov 2004 09:43:52 -0500 Subject: [UMN_MAPSERVER-USERS] itemnquery return In-Reply-To: <20041102161801.GD29205@trava> Message-ID: Jachym, That's not very clear what exactly you expect as results. Do you need an image (itemnquerymap) or a table of results (itemnquery). As far as I can see in your URL, you have an imgext and a mapext wich is a little bit confusing since the two functions has almost the same behavior... Could you send more details about your objectives and maybe your mapfile? Thanks. Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Jachym Cepicky Envoy??: 2 novembre 2004 11:18 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] itemnquery return Hallo, I use mapserver 4.x when I use itemquery, the mapserver returns first match, just one would expect it. but when I use itemnquery, mapserver returns [img], which contains all _n_ matches, but he returns it _n_ times, so the template file is also used _n_ times. I would like to have something like http://maps.dnr.state.mn.us/cgi-bin/mapserv36?mapserv=%2Fcgi-bin%2Fmapserv36 &map=%2Fusr%2Flocal%2Fwww%2Fdocs%2Fmapserver_demos%2Ftests36%2Fitemquery%2Fc ase2.map&map_web_imagepath=%2Fusr%2Flocal%2Fwww%2Fdocs%2Ftmp%2F&map_web_imag eurl=%2Ftmp%2F&mode=itemnquery&qlayer=county&map_county_filter=%2FAitkin%7CB enton%2F&name=Aitkin&name=Benton which is i result from http://maps.dnr.state.mn.us/mapserver_demos/tests40/itemquery/test.html (Case 2: Simple ItemNQuery With QueryMap) as you can see, mapserver returned only one [img], which contains two maches. is there some parameter, I have forgotten, which manages the query returns? Thank you J?chym P.S. Here the address, which goes from my application to mapserv: http://10.0.0.16/cgi-bin/mapserv?program=%2Fcgi-bin%2Fmapserv&savequery=true &map=%2Fhome%2Fmapserv%2Fpublic_html%2Fkrtiny.map&imgext=-593271.831126+-114 9277.640755+-591385.943709+-1147394.887722&imgxy=263+208&image=%2F%7Emapserv %2Ftmp%2Fkrtiny109943484217318.png&scale=&mode=itemnquery&img_addres=%2F%7Em apserv%2Ftmp%2Fkrtiny109943484217318.png&layers=hm1+porostni_mapa+obrys&qstr ing=137Ea1a&qitem=tag&mapext=shape&qlayer=porostni_mapa_k_vyhledavani&imgbox =263+208+263+208&zoomdir=0&zoomsize=4&layer=hm1&layer=porostni_mapa&layer=ob rys -- Jachym Cepicky e-mail: jachym.cepicky at centrum.cz URL: http://les-ejk.cz --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Wed Nov 3 09:01:06 2004 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Jean-Francois Doyon) Date: Wed, 3 Nov 2004 12:01:06 -0500 Subject: Slight rendering problem with 4.4-beta1 ... Message-ID: Steve, Tahnks for the suggestion, but I'm afraid that wasn't it. I removed the RPM's provided for 2.1.4 and built 2.1.9 from source. Ran ldconfig ... Problem remains ... Re-compile GD and MapServer, just to be sure ... Problem remains ... I had a quick look at the raw data with the shapelib tools, and I see nothing suggesting there's anything special about the text in the DBF that could cause this. I've tested it on 2 maps where this occurs. Could it be related to the labelling cache? In what order are labels drawn? If from top-left to bottom-right, then it would seem that it's alway sthe "last" label that does this ... I'll try more maps to see if I detect a pattern (It's a bit of work because I have to convert the mapfile from 3.6.6). If there's anything else I can do to help track this down, do let me know! Thanks, J.F. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Steve Lime Sent: November 2, 2004 6:18 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Slight rendering problem with 4.4-beta1 ... I didn't see your original posting, sorry. With 4.4 I would use GD 2.0.28 and FreeType 2.1.9 and see if that fixes things. FT 2.1.4 is 18 months old and GD has undergone a ton of TrueType work in the last few months so let's get current and rule that out first. Then we can deal with the issue if it persists. Steve >>> Jean-Francois Doyon 11/1/2004 3:14:20 PM >>> G'day, I didn't get any reaction from this post, so I guess I'm alone ? :P I've run into this a few more times already ... I'l go look at the data when I have a minute, but in the mean time, what versions of GD and FreeType am I supposed to use for 4.4? As mentionned I'm using gd 2.0.28 with FreeType 2.1.4 ... Could that be the cause? A simple versionning mismatch? One thought I had was that it must be strings with spaces (i.e. seperate words), but that doesn't seem to be it, since there are many that DO work. Also doesn't seem to be related to wrapping, since in 3.6.6 at least these are strings that don't wrap. If I don't hear anything to the contrary, I'll keep playing with this, and if no solution comes apparent, I'll file it as a bug in bugzilla ... Thanks, J.F. > -----Original Message----- > From: Doyon, Jean-Francois > Sent: October 28, 2004 4:47 PM > To: 'mapserver-users at lists.umn.edu' > Subject: Slight rendering problem with 4.4-beta1 ... > > Hello, > > Find attached 2 versions of the exact same map/mapfile. > > I have a 3.6.6 with gd 1.8.4 and Freetype 1.x for one on RH7.3, and > 4.4-beta1 with gd 2.0.28 and freetype 2.1.4 on CentOS/RHEL 3 > > Note the "Thunder Bay" ... One one map (The 3.6.6 one) it looks fine. On > the 4.4-beta1 version, there's a problem. > > Admitedly, I'm using the exact same mapfile, so I don't know if maybe > there are changes I should be aware of to make this work right in the new > version. > > << File: mapserv366-ok.gif >> << File: mapserv44beta1-bad.gif >> > > Any ideas? > > Thanks! > > Jean-Fran?ois Doyon > Internet Service Development and Systems Support / Sp?cialiste de > d?veloppements internet et soutien technique > Canada Centre for Remote Sensing / Centre Canadien de t?l?d?tection > Natural Resources Canada / Ressources naturelles Canada > http://atlas.gc.ca > Tel./T?l. : (613) 992-4902 > Fax: (613) 947-2410 > From sgillies at FRII.COM Wed Nov 3 09:18:43 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 3 Nov 2004 10:18:43 -0700 Subject: Slight rendering problem with 4.4-beta1 ... In-Reply-To: Message-ID: On Nov 3, 2004, at 10:01 AM, Jean-Francois Doyon wrote: > Steve, > > Tahnks for the suggestion, but I'm afraid that wasn't it. > > I removed the RPM's provided for 2.1.4 and built 2.1.9 from source. > > Ran ldconfig ... > > Problem remains ... > > Re-compile GD and MapServer, just to be sure ... > > Problem remains ... > > I had a quick look at the raw data with the shapelib tools, and I see > nothing suggesting there's anything special about the text in the DBF = > that > could cause this. > > I've tested it on 2 maps where this occurs. > > Could it be related to the labelling cache? In what order are labels = > drawn? > If from top-left to bottom-right, then it would seem that it's alway = > sthe > "last" label that does this ... I'll try more maps to see if I detect a > pattern (It's a bit of work because I have to convert the mapfile from > 3.6.6). > > If there's anything else I can do to help track this down, do let me = > know! > > Thanks, > J.F. > J.F. How about attaching an example of the problem in a way that will make it through the listserv? Or putting them online or through bugzilla and post a URL? I did make some changes to the rendering core of mapserver in 4.2.4 and 4.3, but I have no way to know what problems you are talking about here. Sean From dbarron at DSWLLC.COM Wed Nov 3 09:37:18 2004 From: dbarron at DSWLLC.COM (Dan Barron) Date: Wed, 3 Nov 2004 09:37:18 -0800 Subject: thread safe implementations In-Reply-To: <9FC939B0-2D13-11D9-AC9B-000D9329D732@frii.com> Message-ID: Hmmm - I was really hoping someone had done (or attempted) a java implementation - I'm not versed in Zope or Python. Well, I guess I will attempt to create a java implementation on my own. Thanks Sean. Dan At 01:10 PM 11/2/2004, Sean Gillies wrote: >On Nov 2, 2004, at 10:47 AM, Dan Barron wrote: > >>Hello, >> >>Just curious what the current consensus and recommendations are for >>creating a thread safe front end or wrapper for mapserver in either >>php or >>java? I'm assuming that mapserver is still not thread safe - that >>correct? >> >>Thanks! >> >>Dan > >Dan, > >I caught and fixed three sources of potential threading problems before >the 4.2.4 release and these fixes will also be in 4.4.0. I think we're >close to thread safety, but it's hard to say without more testing. As >far as I know, my ZMapServer (Zope + Python mapscript) software is the >only thing out there that is using MapServer in a multi-threaded >environment. It works, but is not a complete proof of thread safety. > >There remains much work to be done to in improving MapServer's >threaded performance. The single lexer for parsing mapfiles and >class expressions is a bottleneck that will be addressed in the future. > >cheers, >Sean > >-- >Sean Gillies >sgillies at frii dot com >http://users.frii.com/sgillies From sgillies at FRII.COM Wed Nov 3 09:55:12 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 3 Nov 2004 10:55:12 -0700 Subject: thread safe implementations In-Reply-To: Message-ID: Dan, It's not clear to me what you mean by creating a java implementation on your own. Implementation of what? Do you mean a programming API like the php mapscript module? If this is what you mean, you should look at the Java stuff that you can generate using SWIG. In mapserver versions 4.2.4+ and in the 4.4.0 beta1 there is a Java makefile under mapserver/mapscript/java. It seems to work, but as I've said -- I'm not a Java user and so am not beating on the Java mapscript module heavily enough or often enough to say anything about its readiness. Sean On Nov 3, 2004, at 10:37 AM, Dan Barron wrote: > Hmmm - I was really hoping someone had done (or attempted) a java > implementation - I'm not versed in Zope or Python. Well, I guess I > will > attempt to create a java implementation on my own. > > Thanks Sean. > > Dan > > At 01:10 PM 11/2/2004, Sean Gillies wrote: >> On Nov 2, 2004, at 10:47 AM, Dan Barron wrote: >> >>> Hello, >>> >>> Just curious what the current consensus and recommendations are for >>> creating a thread safe front end or wrapper for mapserver in either >>> php or >>> java? I'm assuming that mapserver is still not thread safe - that >>> correct? >>> >>> Thanks! >>> >>> Dan >> >> Dan, >> >> I caught and fixed three sources of potential threading problems >> before >> the 4.2.4 release and these fixes will also be in 4.4.0. I think >> we're >> close to thread safety, but it's hard to say without more testing. As >> far as I know, my ZMapServer (Zope + Python mapscript) software is the >> only thing out there that is using MapServer in a multi-threaded >> environment. It works, but is not a complete proof of thread safety. >> >> There remains much work to be done to in improving MapServer's >> threaded performance. The single lexer for parsing mapfiles and >> class expressions is a bottleneck that will be addressed in the >> future. >> >> cheers, >> Sean >> >> -- >> Sean Gillies >> sgillies at frii dot com >> http://users.frii.com/sgillies > From steve.lime at DNR.STATE.MN.US Wed Nov 3 10:01:08 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 3 Nov 2004 12:01:08 -0600 Subject: Slight rendering problem with 4.4-beta1 ... Message-ID: > Could it be related to the labelling cache? In what order are labels drawn? > If from top-left to bottom-right, then it would seem that it's alway sthe > "last" label that does this ... I'll try more maps to see if I detect a > pattern (It's a bit of work because I have to convert the mapfile from > 3.6.6). J.F.: Labeling is done in: - reverse order of how features appear in the dataset (last into the cache is first drawn) - reverse layer order (last layer is labeled first) If you make up a mapfile with just the layer showing the problem does the problem persist? Steve From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Wed Nov 3 10:35:09 2004 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Jean-Francois Doyon) Date: Wed, 3 Nov 2004 13:35:09 -0500 Subject: Slight rendering problem with 4.4-beta1 ... Message-ID: Steve, I turned all layers off except the one where I noticed the problem, and the problem still occurs. I'll send the screenshot under seperate cover. J.F. -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: November 3, 2004 1:01 PM To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Slight rendering problem with 4.4-beta1 ... > Could it be related to the labelling cache? In what order are labels drawn? > If from top-left to bottom-right, then it would seem that it's alway sthe > "last" label that does this ... I'll try more maps to see if I detect a > pattern (It's a bit of work because I have to convert the mapfile from > 3.6.6). J.F.: Labeling is done in: - reverse order of how features appear in the dataset (last into the cache is first drawn) - reverse layer order (last layer is labeled first) If you make up a mapfile with just the layer showing the problem does the problem persist? Steve From candrews at DIGITALGLOBE.COM Wed Nov 3 10:55:25 2004 From: candrews at DIGITALGLOBE.COM (Chris Andrews) Date: Wed, 3 Nov 2004 11:55:25 -0700 Subject: Seeking high quality cool graphic from a MapServer user Message-ID: Hi, I'm looking for a good quality, good looking screen shot or graphic from a Map Server user who is using Web Services (OGC or otherwise) on a GIS or GIS-related project. I write a column for a magazine and I'd be happy to attribute the graphic to the source (you) and include a URL to a public site if you desire. Please just go ahead and send the graphic along with some brief info about your project. Thanks, Chris Andrews GIS Solution Architect Idea Integration (onsite at Digital Globe) -------------- next part -------------- An HTML attachment was scrubbed... URL: From querada499 at HOTMAIL.COM Wed Nov 3 11:57:48 2004 From: querada499 at HOTMAIL.COM (Robin Robin) Date: Wed, 3 Nov 2004 19:57:48 +0000 Subject: Problem with remote layer Message-ID: hello all, I am trying to add a remote layer to my map and am having trouble. I'm not entirely clear on how this should be done to start with. here are the links: wfs: http://map.ns.ec.gc.ca/MapServer/mapserv.exe?map=/mapserver/services/envdat/config.map&service=WFS&version=1.0.0&request=GetCapabilities wms: http://map.ns.ec.gc.ca/MapServer/mapserv.exe?map=/mapserver/services/envdat/config.map&service=WMS&version=1.0.0&request=GetCapabilities I am trying to access the layer as follows: LAYER # Hydrometric stations layer begins here NAME 'STATIONS' GROUP 'TEST' OFFSITE 255 255 255 CONNECTIONTYPE WMS CONNECTION 'http://map.ns.ec.gc.ca/mapserver/mapserv.exe?map=C:/mapserver/services/envdat/config.map&service=WMS&version=1.0.0&request=Getmap&layers=envdat&STYLES-&FORMAT=PNG&transparent=true' STATUS off TYPE POINT PROJECTION "init=epsg:4326" END CLASS STYLE SIZE 6 SYMBOL 'CIRCLE' COLOR 0 0 0 END END METADATA WMS_TITLE 'STATIONS' WMS_GROUP_TITLE 'TEST' END END # Hydrometric Stations layer ends here _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.com/ From ealpert at DIGITALGLOBE.COM Wed Nov 3 12:10:09 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 3 Nov 2004 13:10:09 -0700 Subject: Problem with remote layer Message-ID: Shouldn't your layer status be something other than off? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Robin Robin Sent: Wednesday, November 03, 2004 12:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem with remote layer hello all, I am trying to add a remote layer to my map and am having trouble. I'm not entirely clear on how this should be done to start with. here are the links: wfs: http://map.ns.ec.gc.ca/MapServer/mapserv.exe?map=/mapserver/services/env dat/config.map&service=WFS&version=1.0.0&request=GetCapabilities wms: http://map.ns.ec.gc.ca/MapServer/mapserv.exe?map=/mapserver/services/env dat/config.map&service=WMS&version=1.0.0&request=GetCapabilities I am trying to access the layer as follows: LAYER # Hydrometric stations layer begins here NAME 'STATIONS' GROUP 'TEST' OFFSITE 255 255 255 CONNECTIONTYPE WMS CONNECTION 'http://map.ns.ec.gc.ca/mapserver/mapserv.exe?map=C:/mapserver/services/ envdat/config.map&service=WMS&version=1.0.0&request=Getmap&layers=envdat &STYLES-&FORMAT=PNG&transparent=true' STATUS off TYPE POINT PROJECTION "init=epsg:4326" END CLASS STYLE SIZE 6 SYMBOL 'CIRCLE' COLOR 0 0 0 END END METADATA WMS_TITLE 'STATIONS' WMS_GROUP_TITLE 'TEST' END END # Hydrometric Stations layer ends here _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.com/ From ealpert at DIGITALGLOBE.COM Wed Nov 3 12:28:20 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 3 Nov 2004 13:28:20 -0700 Subject: Problem with remote layer Message-ID: The following layer definition works for me. You needed TYPE to be RASTER and no CLASS statement and STATUS needed to be on. In addition you need to define a WEB object something like: WEB IMAGEPATH "/var/www/tmp/" IMAGEURL "/tmp/" END LAYER # Hydrometric stations layer begins here NAME 'STATIONS' GROUP 'TEST' OFFSITE 255 255 255 CONNECTIONTYPE WMS CONNECTION 'http://map.ns.ec.gc.ca/mapserver/mapserv.exe?map=C:/mapserver/services/ envdat/config.map&service=WMS&version=1.0.0&request=Getmap&layers=envdat &STYLES-&FORMAT=PNG&transparent=true' STATUS DEFAULT TYPE RASTER PROJECTION "init=epsg:4326" END METADATA WMS_TITLE 'STATIONS' WMS_GROUP_TITLE 'TEST' END END # Hydrometric Stations layer ends here From dmorissette at DMSOLUTIONS.CA Wed Nov 3 13:42:42 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 3 Nov 2004 16:42:42 -0500 Subject: MapServer 4.4.0-beta2 released Message-ID: Hi Everyone, The MapServer 4.4.0 release work is progressing well, several bugs have been killed since beta1 and we are now ready to release beta2. The source should be available shortly on the main MapServer site. In the meantime you can grab a copy from CVS or from: http://maptools.org/dl/mapserver-4.4.0-beta2.tar.gz Windows binaries should be available in the next day or so as well at the usual locations: Howard Butler's "kitchen sink" release that includes GDAL, Proj.4, PDF output, SWF output, MrSID, NetCDF, JPEG2000, ECW, PostGIS, GML, WFS Server/Client, WMS Server/Client, DEBUG output, GIF, PNG, and JPEG: http://hobu.stat.iastate.edu/mapserver/build_output/beta_4_4_0 And the PHP MapScript package on maptools.org: http://maptools.org/php_mapscript/index.phtml?page=downloads.html Finally, I have included below the complete list of fixes/changes since beta1. As usual, please send your questions via the mailing list (I mean it!) or report bugs via bugzilla. Daniel ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Version 4.4.0-beta2 (2004-11-03) -------------------------------- - free mapServObj properly in mapserv.c in OWS dispatch case to fix minor memory leaks. - modified msCloseConnections() to also close raster layers so that held raster query results will be freed. - modified raster queries to properly set the classindex in the resultcache. - modified msDrawQueryCache() to be very careful to not try and lookup information on out-of-range classindex values. This seems to occur when default shapes come back witha classindex of 0 even if there are no classes. (ie. raster query results). - the loadmapcontext function has changed it behaviour : before the 4.4 relase when loading layers from a map context, the layer name was built using a unique prefix + the name found in the context (eg for the 2nd layer in map context named park, the layer name generated would possibly be l:2:park). Now the loadmapcontext takes a 2nd optional argument to force the creation of the unique names. The default behaviour is now to have the layer name equals to the name found in the context file. (Bug 1023) - Fixed problem with WMS GetCapabilities aborting when wms_layer_group is used for some layers but not for all. (bug 1024) - Changed raster queries to return the list of all pixel values as an attribute named "value_list" rather than "values" to avoid conflict with special [values] substitution rule in maptemplate.c. - Fixed raster queries to reproject results back to map projection, and to do point queries distance checking against the correct projection. (bug 1021) - Get rid of WMS 1.0.8 support. It's not an officially supported verison of the spec anyway: it's synonymous for 1.1.0 (bug 1022) - Allow use of '=' inside HTML template tag parser. (Bug 978) - Use metadata ows_schema_location for WMS/WFS/WCS/SLD (Bug 999, 1013, 938) (The default value if metadata is not found is http://schemas.opengeospatial.net) - Generate a RULE tag when generating an SLD. (Bug 1010) - WMS GetLegendGraphic uses now the RULE value to return an icon for a class that has the same name as the RULE value (Bug 843) - Add msOWSPrintURLType: This funciton is a generic URL printing fuction for OGC specification metadata (WMS, WFS, WCS, WMC, etc.) (Bug 944). - Support MetadataURL, DataURL and LegendURL tags in WMS capabilities document and MetadataURL in WFS capabilities. - SWIG mapscript: clone methods for layerObj, classObj, styleObj (bug 1012). - Implemented an intarray helper class for SWIG mapscript which allows for multi-language manipulation of layer drawing order (bugs 853, 1005). - Fixed WMS GetLegendGraphic which was returning an exception (GD error) when requested layer was out of scale (bug 1006). - Fixed maplexer.l to work with flex 2.5.31 (bug 975). - WMS GetMap requests now have MS_NONSQUARE enabled by default. This means that if the width/height ratio doesn't match the extent's x/y ratio then the map is stretched as stated in the WMS specification (bug 862) - In WMS, layers with no explicit projection defined will receive a copy of the map's projectionObj if a new SRS is specified in the GetMap request or if MS_NONSQUARE is enabled. This will prevent the problem with layers that don't show up in WMS request when the server administrator forgets to explicitly set projections on all the layers in a WMS mapfile. (bug 947) - Implemented FastCGI cleanup support for win32 and unix in mapserv.c. - Solved configure/compile issues with libiconv (bugs 909, 1017) From 39507 at MAIL.MUNI.CZ Wed Nov 3 17:37:19 2004 From: 39507 at MAIL.MUNI.CZ (=?iso-8859-2?Q?Michal_Krupi=E8ka?=) Date: Thu, 4 Nov 2004 02:37:19 +0100 Subject: LABELS on demand Message-ID: Dear users and developers, is there any way to show labels only when user wishes to see them? I think this is one way to use LABELREQUIRES "[labellayer]" in layer, which has to be labeled, where [labellayer] is empty layer, which is represented by checkbox in template. But this needs 2 layers... Is it possible to do it directly with no use of any other layer? Thank you all Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From temiz at DEPREM.GOV.TR Wed Nov 3 23:13:09 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Thu, 4 Nov 2004 09:13:09 +0200 Subject: reference map with php Message-ID: hello I need to have an example php code concerning with reference map' implementation. I will appreciate if anyone supplies it. kind regards Ahmet Temiz TURKEY ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From gis at UNDPHAIS.ORG.NP Thu Nov 4 00:05:00 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Thu, 4 Nov 2004 13:50:00 +0545 Subject: reference map with php In-Reply-To: <4189D685.5060705@deprem.gov.tr> Message-ID: On Thu, 4 Nov 2004 09:13:09 +0200, temiz wrote: > hello > > I need to have an example php code concerning with reference map' > implementation. > I will appreciate if anyone supplies it. > > kind regards > > > Ahmet Temiz > TURKEY > > > ______________________________________ > Inflex - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > > ______________________________________ > The views and opinions expressed in this e-mail message are the sender's > own > and do not necessarily represent the views and the opinions of > Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal > olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici > nitelikte degildir. > Your map file: #Symbol definition # square SYMBOL NAME 'square' TYPE VECTOR FILLED TRUE POINTS 0 1 0 0 1 0 1 1 0 1 END # end points END # end symbol #start of reference map REFERENCE IMAGE /path/to/your/reference/map/image.png # extent of your reference map image EXTENT 368020 2882713 1256300 3414991 SIZE 250 150 STATUS ON MINBOXSIZE 5 MAXBOXSIZE 150 COLOR 239 239 239 OUTLINECOLOR 150 150 150 MARKERSIZE 8 MARKER 'square' END # end reference map Your PHP file: //create map object $map = ms_newMapObj($map_path.$map_file); //draw map and save image $image=$map->draw(); $image_url=$image->saveWebImage(); //create reference map $referencemap=$map->drawReferenceMap(); $referencemap_url=$referencemap->saveWebImage(); Regards. -- Sandeep Bashyal -- National GIS Officer Humanitarian Assistance Information System (HAIS) United Nations (NEP/01/008) UN House, Pulchowk G.P.O. Box 107 Kathmandu, Nepal Tel: (+977) 01 5543957 (+977) 01 5554304 Cell:(+977) 9841270854 Fax: (+977) 01 5528059 -------------------------------------------------- mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.undp.org.np From unicoletti at PROMETEO.IT Wed Nov 3 23:51:55 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Thu, 4 Nov 2004 08:51:55 +0100 Subject: thread safe implementations In-Reply-To: <82ABACA0-2DC1-11D9-AC9B-000D9329D732@frii.com> Message-ID: Dan, if by creating a java implementation you mean writing a web app to deliver the same (or subset) of the functionality the cgi does, then I am writing one. I think I am one of the few java mapscript users around :-) Regards, umberto Quoting Sean Gillies : > Dan, > > It's not clear to me what you mean by creating a java implementation > on your own. Implementation of what? Do you mean a programming API > like the php mapscript module? > > If this is what you mean, you should look at the Java stuff that > you can generate using SWIG. In mapserver versions 4.2.4+ and in > the 4.4.0 beta1 there is a Java makefile under mapserver/mapscript/java. > It seems to work, but as I've said -- I'm not a Java user and so am > not beating on the Java mapscript module heavily enough or often > enough to say anything about its readiness. > > Sean > > On Nov 3, 2004, at 10:37 AM, Dan Barron wrote: > > > Hmmm - I was really hoping someone had done (or attempted) a java > > implementation - I'm not versed in Zope or Python. Well, I guess I > > will > > attempt to create a java implementation on my own. > > > > Thanks Sean. > > > > Dan > > > > At 01:10 PM 11/2/2004, Sean Gillies wrote: > >> On Nov 2, 2004, at 10:47 AM, Dan Barron wrote: > >> > >>> Hello, > >>> > >>> Just curious what the current consensus and recommendations are for > >>> creating a thread safe front end or wrapper for mapserver in either > >>> php or > >>> java? I'm assuming that mapserver is still not thread safe - that > >>> correct? > >>> > >>> Thanks! > >>> > >>> Dan > >> > >> Dan, > >> > >> I caught and fixed three sources of potential threading problems > >> before > >> the 4.2.4 release and these fixes will also be in 4.4.0. I think > >> we're > >> close to thread safety, but it's hard to say without more testing. As > >> far as I know, my ZMapServer (Zope + Python mapscript) software is the > >> only thing out there that is using MapServer in a multi-threaded > >> environment. It works, but is not a complete proof of thread safety. > >> > >> There remains much work to be done to in improving MapServer's > >> threaded performance. The single lexer for parsing mapfiles and > >> class expressions is a bottleneck that will be addressed in the > >> future. > >> > >> cheers, > >> Sean > >> > >> -- > >> Sean Gillies > >> sgillies at frii dot com > >> http://users.frii.com/sgillies > > > From havard.tveite at IKF.NLH.NO Wed Nov 3 23:58:48 2004 From: havard.tveite at IKF.NLH.NO (Havard Tveite) Date: Thu, 4 Nov 2004 08:58:48 +0100 Subject: text/html and application/x-pdf FORMATS and WMS GetLegendGraphic and WMS GetCapabilities Message-ID: For the "application/x-pdf" and "text/html" FORMATs reported by a WMS 1.1.1 GetCapabilities response for GetLegendGraphic I am experiencing problems when using GetLegendGraphic. A GetCapabilities request to my Mapserver WMS server returns: image/jpeg image/png image/gif image/wbmp text/html application/x-pdf image/tiff ... For all formats except "application/x-pdf" and "text/html" a nice legend (graphics and text) is returned. For the following requests (equal to the successful ones, except for the FORMAT), mapserver crashes ("premature end of script headers: mapserv" in the Apache log): ...&service=WMS&version=1.1.1&request=GetLegendGraphic&layer=n5000arf&SCALE=200000&FORMAT=image/gif ...&service=WMS&version=1.1.1&request=GetLegendGraphic&layer=n5000arf&SCALE=200000&FORMAT=application/x-pdf When I use a RULE (to get only the graphics), the following is returned msWMSGetLegendGraphic(): Image handling error. Unavailable RULE (Skog). msCreateLegendIcon(): GD library error. Map outputformat must be set to a GD format! MapServer version 4.4.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=SDE INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Is it a problem in my setup or a bug? If it is a bug, the output from GetCapabilities should to be changed. -- H?vard Tveite IMT, NLH From bartvde at XS4ALL.NL Thu Nov 4 00:17:35 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 4 Nov 2004 09:17:35 +0100 Subject: text/html and application/x-pdf FORMATS and WMS GetLegendGraphic and WMS GetCapabilities In-Reply-To: <4189E138.6080303@ikf.nlh.no> Message-ID: Hi Harvard, I have tested the behaviour with the 4.4 beta1 Windows binary, and I get the following situation: -if I don't provide a format (or an empty format, or an unknown format), I get a service exception -it does not matter which format (out of the formats from the WMS capabilities) I provide, I always get image/png back, but never a crash. So maybe this is partly setup related ... (outputformat?). Best regards, Bart > For the "application/x-pdf" and "text/html" FORMATs > reported by a WMS 1.1.1 GetCapabilities response for > GetLegendGraphic I am experiencing problems when > using GetLegendGraphic. > > A GetCapabilities request to my Mapserver WMS server returns: > > > image/jpeg > image/png > image/gif > image/wbmp > text/html > application/x-pdf > image/tiff > > ... > > > > For all formats except "application/x-pdf" and "text/html" > a nice legend (graphics and text) is returned. > For the following requests (equal to the successful ones, > except for the FORMAT), mapserver crashes ("premature end > of script headers: mapserv" in the Apache log): > > ...&service=WMS&version=1.1.1&request=GetLegendGraphic&layer=n5000arf&SCALE=200000&FORMAT=image/gif > ...&service=WMS&version=1.1.1&request=GetLegendGraphic&layer=n5000arf&SCALE=200000&FORMAT=application/x-pdf > > When I use a RULE (to get only the graphics), the following is > returned > > > msWMSGetLegendGraphic(): Image handling error. Unavailable RULE > (Skog). msCreateLegendIcon(): GD library error. Map outputformat > must be set to a GD format! > > > > > MapServer version 4.4.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=SDE INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > Is it a problem in my setup or a bug? > If it is a bug, the output from GetCapabilities should to be changed. > > -- > H?vard Tveite > IMT, NLH > From ivan.mjartan at GEOVAP.CZ Thu Nov 4 00:47:45 2004 From: ivan.mjartan at GEOVAP.CZ (Ivan Mjartan) Date: Thu, 4 Nov 2004 09:47:45 +0100 Subject: compiling mapserver on windows problem Message-ID: Hi everybody, I have question, is anybody who compile mapserver with Microsoft visual C++ 6.0 ? Because I am not able import source of MapServer and create .dsp (project). Exactly importing source into workspace is not problem, but problem is how I have to set environment to be able compile source of MapServer. Is possible get source file of MapServer setting up for Microsoft visual C++ 6.0 ? Or some idea how transform makefile to by able successfully comile MapServer from Microsoft visual C++ 6.0 environment, or see somewhere how can I do it. I apologize for my stupid question, I am novice with programming in Microsoft visual C++ 6.0 and also with MapServer thanks for your reply have nice day ivan mjartan From romoloman at HOTMAIL.COM Thu Nov 4 03:14:35 2004 From: romoloman at HOTMAIL.COM (Romolo Manfredini) Date: Thu, 4 Nov 2004 11:14:35 +0000 Subject: Lost transparency for diagonal fill by changing from 4.0.1 to MapServer 4.4.0-beta1 a.o. Message-ID: > >This problem appears, when I am using imagetype PNG24. Try to use PNG only. You can specify image color depth in the OUTPUTFORMAT section of your mapfile. Best regards Romolo Manfredini From havard.tveite at IKF.NLH.NO Thu Nov 4 03:51:17 2004 From: havard.tveite at IKF.NLH.NO (Havard Tveite) Date: Thu, 4 Nov 2004 12:51:17 +0100 Subject: text/html and application/x-pdf FORMATS and WMS GetLegendGraphic and WMS GetCapabilities In-Reply-To: <17736.212.238.227.182.1099556255.squirrel@webmail.xs4all.nl> Message-ID: Bart, The behaviour you have observed (returning png no matter what FORMAT is specified) was a bug, and was fixed some days ago. Using the latest CVS or the 4.4 beta2, one should get the specified format. I thought OUTPUTFORMAT was only for raster. Is it not? -- H?vard Tveite IMT, NLH Bart van den Eijnden wrote: > Hi Harvard, > > I have tested the behaviour with the 4.4 beta1 Windows binary, and I get > the following situation: > > -if I don't provide a format (or an empty format, or an unknown format), I > get a service exception > -it does not matter which format (out of the formats from the WMS > capabilities) I provide, I always get image/png back, but never a crash. > > So maybe this is partly setup related ... (outputformat?). > > Best regards, > Bart > > >>For the "application/x-pdf" and "text/html" FORMATs >>reported by a WMS 1.1.1 GetCapabilities response for >>GetLegendGraphic I am experiencing problems when >>using GetLegendGraphic. >> >>A GetCapabilities request to my Mapserver WMS server returns: >> >> >>image/jpeg >>image/png >>image/gif >>image/wbmp >>text/html >>application/x-pdf >>image/tiff >> >>... >> >> >> >>For all formats except "application/x-pdf" and "text/html" >>a nice legend (graphics and text) is returned. >>For the following requests (equal to the successful ones, >>except for the FORMAT), mapserver crashes ("premature end >>of script headers: mapserv" in the Apache log): >> >>...&service=WMS&version=1.1.1&request=GetLegendGraphic&layer=n5000arf&SCALE=200000&FORMAT=image/gif >>...&service=WMS&version=1.1.1&request=GetLegendGraphic&layer=n5000arf&SCALE=200000&FORMAT=application/x-pdf >> >>When I use a RULE (to get only the graphics), the following is >>returned >> >> >> msWMSGetLegendGraphic(): Image handling error. Unavailable RULE >>(Skog). msCreateLegendIcon(): GD library error. Map outputformat >>must be set to a GD format! >> >> >> >> >>MapServer version 4.4.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >>OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >>SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT >>SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=SDE INPUT=POSTGIS INPUT=OGR >>INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG >> >>Is it a problem in my setup or a bug? >>If it is a bug, the output from GetCapabilities should to be changed. >> >>-- >>H?vard Tveite >>IMT, NLH From test at STIGASCORP.COM Thu Nov 4 05:37:56 2004 From: test at STIGASCORP.COM (Chris) Date: Thu, 4 Nov 2004 08:37:56 -0500 Subject: thread safe implementations In-Reply-To: <1099554715.4189df9bcf34d@webmail.prometeo.it> Message-ID: Umberto, I would like to have a java interface to Mapserver. Have you used Geoserver? They have a java implementation of a WMS. I'm not sure what the performance is like, but it would be nice to have a similar interface to Mapserver. Chris -----Original Message----- From: Umberto Nicoletti [mailto:unicoletti at PROMETEO.IT] Sent: Thursday, November 04, 2004 2:52 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] thread safe implementations Dan, if by creating a java implementation you mean writing a web app to deliver the same (or subset) of the functionality the cgi does, then I am writing one. I think I am one of the few java mapscript users around :-) Regards, umberto Quoting Sean Gillies : > Dan, > > It's not clear to me what you mean by creating a java implementation > on your own. Implementation of what? Do you mean a programming API > like the php mapscript module? > > If this is what you mean, you should look at the Java stuff that > you can generate using SWIG. In mapserver versions 4.2.4+ and in > the 4.4.0 beta1 there is a Java makefile under mapserver/mapscript/java. > It seems to work, but as I've said -- I'm not a Java user and so am > not beating on the Java mapscript module heavily enough or often > enough to say anything about its readiness. > > Sean > > On Nov 3, 2004, at 10:37 AM, Dan Barron wrote: > > > Hmmm - I was really hoping someone had done (or attempted) a java > > implementation - I'm not versed in Zope or Python. Well, I guess I > > will > > attempt to create a java implementation on my own. > > > > Thanks Sean. > > > > Dan > > > > At 01:10 PM 11/2/2004, Sean Gillies wrote: > >> On Nov 2, 2004, at 10:47 AM, Dan Barron wrote: > >> > >>> Hello, > >>> > >>> Just curious what the current consensus and recommendations are for > >>> creating a thread safe front end or wrapper for mapserver in either > >>> php or > >>> java? I'm assuming that mapserver is still not thread safe - that > >>> correct? > >>> > >>> Thanks! > >>> > >>> Dan > >> > >> Dan, > >> > >> I caught and fixed three sources of potential threading problems > >> before > >> the 4.2.4 release and these fixes will also be in 4.4.0. I think > >> we're > >> close to thread safety, but it's hard to say without more testing. As > >> far as I know, my ZMapServer (Zope + Python mapscript) software is the > >> only thing out there that is using MapServer in a multi-threaded > >> environment. It works, but is not a complete proof of thread safety. > >> > >> There remains much work to be done to in improving MapServer's > >> threaded performance. The single lexer for parsing mapfiles and > >> class expressions is a bottleneck that will be addressed in the > >> future. > >> > >> cheers, > >> Sean > >> > >> -- > >> Sean Gillies > >> sgillies at frii dot com > >> http://users.frii.com/sgillies > > > From margottid at COMUNE.LUGO.RA.IT Thu Nov 4 06:21:59 2004 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Thu, 4 Nov 2004 08:21:59 -0600 Subject: The use of ' Message-ID: I have MapServer 4.2.3 on a Linux Red Hat 9: I use shape files, and in .DBF files I have string values with apostrophes inside (e.g.: "Cava de' Tirreni", "Via Dell'Artigianato", and so on). When I query my map, MapServer substitutes all apostrophes with the string "'" (and prints "Cava de' Tirreni" or "Via Dell'Artigianato"). In fact, "'" is not a valid HTML entity reference, as you can see here: http://fishbowl.pastiche.org/2003/07/01/the_curse_of_apos Do I have to modify mapstring.c and recompile all, or can I tell MapServer (for example, with a flag in .map file) to not substitute apostrophes? Thanks, Daniele P.S.: WHY can't I still use Outlook to post to the list? I've regularly subscribed, but it seems I can only post via webinterface... From temiz at DEPREM.GOV.TR Thu Nov 4 06:20:28 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Thu, 4 Nov 2004 16:20:28 +0200 Subject: map coordinates' of a rectangle Message-ID: hello my trials yield no correct result. I have image coordinates of a rectangle (rubber band). how can I get map coordinates' of this rectangle in the form of minx,miny,maxx,maxy? kind regards Ahmet Temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From warmerdam at POBOX.COM Thu Nov 4 06:57:45 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 4 Nov 2004 09:57:45 -0500 Subject: text/html and application/x-pdf FORMATS and WMS GetLegendGraphic and WMS GetCapabilities In-Reply-To: <418A17B5.4040302@ikf.nlh.no> Message-ID: Havard Tveite wrote: > Bart, > The behaviour you have observed (returning png no matter what > FORMAT is specified) was a bug, and was fixed some days ago. > Using the latest CVS or the 4.4 beta2, one should get the > specified format. > > I thought OUTPUTFORMAT was only for raster. Is it not? H?vard, OUTPUTFORMAT drivers also exist for several non-raster formats such as html (I think for the imagemap support?), pdf, and flash. Best regards, -- ---------------------------------------+-------------------------------------- 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 warmerdam at POBOX.COM Thu Nov 4 07:01:34 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 4 Nov 2004 10:01:34 -0500 Subject: compiling mapserver on windows problem In-Reply-To: <003601c4c24a$f488c8f0$e901a8c0@PC24> Message-ID: Ivan Mjartan wrote: > Hi everybody, > > I have question, is anybody who compile mapserver with Microsoft visual C++ > 6.0 ? Because I am not able import source of MapServer and create .dsp > (project). Exactly importing source into workspace is not problem, but > problem is how I have to set environment to be able compile source of > MapServer. > > Is possible get source file of MapServer setting up for Microsoft visual C++ > 6.0 ? Or some idea how transform makefile to by able successfully comile > MapServer from Microsoft visual C++ 6.0 environment, or see somewhere how > can I do it. > > I apologize for my stupid question, I am novice with programming in > Microsoft visual C++ 6.0 and also with MapServer Ivan, I don't want to be rude, but MapServer is a monster to build properly on Windows because of the many dependencies. So to start out, if you aren't comfortable with mapserver and building complex applications from scratch on windows you would be best advised to *avoid* having to build mapserver yourself. Second, those of us who do manage to build mapserver on windows have found it hard enough to maintain the existing makefile.vc/nmake.opt solution. While someone may be interested in building and maintaining a project file for MapServer, I doubt it will be kept up to date as changes occur. Best regards, -- ---------------------------------------+-------------------------------------- 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 ed at TOPOZONE.COM Thu Nov 4 07:09:56 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 4 Nov 2004 10:09:56 -0500 Subject: compiling mapserver on windows problem Message-ID: Ivan - I will amplify Frank's observation to point out that MapServer is hard to build on Windows because of the many dependencies that seem to completely ignore the need for good Windows makefiles! Many users have loads of unnecessary trouble building the regex-0.12 library just to compile ONE source file, because the makefile is badly broken. In general I think makefiles are much more suitable for this purpose than project/workspace files. Workspace files, particularly where there are multiple external dependencies, are VERY hard to make portable and very hard to maintain. If you're going to attempt to create a complete build-from-source effort for MapServer and all its supporting libraries, I would urge to you to get it all working with makefiles first before attempting to import/migrate those to .dsp project files. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Thursday, November 04, 2004 10:02 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] compiling mapserver on windows problem Ivan Mjartan wrote: > Hi everybody, > > I have question, is anybody who compile mapserver with Microsoft > visual C++ 6.0 ? Because I am not able import source of MapServer and > create .dsp (project). Exactly importing source into workspace is not > problem, but problem is how I have to set environment to be able > compile source of MapServer. > > Is possible get source file of MapServer setting up for Microsoft > visual C++ 6.0 ? Or some idea how transform makefile to by able > successfully comile MapServer from Microsoft visual C++ 6.0 > environment, or see somewhere how can I do it. > > I apologize for my stupid question, I am novice with programming in > Microsoft visual C++ 6.0 and also with MapServer Ivan, I don't want to be rude, but MapServer is a monster to build properly on Windows because of the many dependencies. So to start out, if you aren't comfortable with mapserver and building complex applications from scratch on windows you would be best advised to *avoid* having to build mapserver yourself. Second, those of us who do manage to build mapserver on windows have found it hard enough to maintain the existing makefile.vc/nmake.opt solution. While someone may be interested in building and maintaining a project file for MapServer, I doubt it will be kept up to date as changes occur. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ 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 dbarron at DSWLLC.COM Thu Nov 4 07:12:12 2004 From: dbarron at DSWLLC.COM (Dan Barron) Date: Thu, 4 Nov 2004 07:12:12 -0800 Subject: thread safe implementations In-Reply-To: <1099554715.4189df9bcf34d@webmail.prometeo.it> Message-ID: Umberto, I'm not going to try to recreate the functionality of the cgi - I'm not fully sure yet what absolute path I will take - I really have not done much threaded java code. I've looked at the java mapscript - and your map server wiki entries for compiling java mapscript - I'm not convinced I have a good compile yet (platform is Fedora Core 2). Is the java mapscript viable at this point? I have read posts from earlier this year saying it looked abandoned? I would really like to get to an all java solution if possible - I currently use a combination of java/php (java opens a connection to a php script then parses the returned data) - not the best but it seems to work fine under light loads. I'd be interested to hear more about what you are up to - it sounds interesting. I would really like to just build a threaded front end (maybe a thread pool?) to the map server functionality via java mapscript and nothing more. Thanks, Dan At 11:51 PM 11/3/2004, unicoletti at prometeo.it wrote: >Dan, >if by creating a java implementation you mean writing a web app to deliver the >same (or subset) of the functionality the cgi does, then I am writing one. > >I think I am one of the few java mapscript users around :-) > >Regards, >umberto > >Quoting Sean Gillies : > > > Dan, > > > > It's not clear to me what you mean by creating a java implementation > > on your own. Implementation of what? Do you mean a programming API > > like the php mapscript module? > > > > If this is what you mean, you should look at the Java stuff that > > you can generate using SWIG. In mapserver versions 4.2.4+ and in > > the 4.4.0 beta1 there is a Java makefile under mapserver/mapscript/java. > > It seems to work, but as I've said -- I'm not a Java user and so am > > not beating on the Java mapscript module heavily enough or often > > enough to say anything about its readiness. > > > > Sean > > > > On Nov 3, 2004, at 10:37 AM, Dan Barron wrote: > > > > > Hmmm - I was really hoping someone had done (or attempted) a java > > > implementation - I'm not versed in Zope or Python. Well, I guess I > > > will > > > attempt to create a java implementation on my own. > > > > > > Thanks Sean. > > > > > > Dan > > > > > > At 01:10 PM 11/2/2004, Sean Gillies wrote: > > >> On Nov 2, 2004, at 10:47 AM, Dan Barron wrote: > > >> > > >>> Hello, > > >>> > > >>> Just curious what the current consensus and recommendations are for > > >>> creating a thread safe front end or wrapper for mapserver in either > > >>> php or > > >>> java? I'm assuming that mapserver is still not thread safe - that > > >>> correct? > > >>> > > >>> Thanks! > > >>> > > >>> Dan > > >> > > >> Dan, > > >> > > >> I caught and fixed three sources of potential threading problems > > >> before > > >> the 4.2.4 release and these fixes will also be in 4.4.0. I think > > >> we're > > >> close to thread safety, but it's hard to say without more testing. As > > >> far as I know, my ZMapServer (Zope + Python mapscript) software is the > > >> only thing out there that is using MapServer in a multi-threaded > > >> environment. It works, but is not a complete proof of thread safety. > > >> > > >> There remains much work to be done to in improving MapServer's > > >> threaded performance. The single lexer for parsing mapfiles and > > >> class expressions is a bottleneck that will be addressed in the > > >> future. > > >> > > >> cheers, > > >> Sean > > >> > > >> -- > > >> Sean Gillies > > >> sgillies at frii dot com > > >> http://users.frii.com/sgillies > > > > > From sgillies at FRII.COM Thu Nov 4 07:45:20 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 4 Nov 2004 08:45:20 -0700 Subject: thread safe implementations In-Reply-To: Message-ID: Dan, Truly, the Java mapscript had been abandoned for a while. Then Umberto stepped forward and contributed a new Makefile and patches, and it seems to be in a workable state. I've also fixed the most obvious threading issues in MapServer itself. I'd really appreciate it if the two of you would download the new 4.4.0 beta releases and try them out. Make some servlets and pound on them and see if Java mapscript is reliable. I think this is really the only way to know for sure. BTW, once you have MapServer itself compiled, the Java Makefile in 4.4.0 works fine with FC2. Sean On Nov 4, 2004, at 8:12 AM, Dan Barron wrote: > Umberto, > > I'm not going to try to recreate the functionality of the cgi - I'm not > fully sure yet what absolute path I will take - I really have not done > much > threaded java code. I've looked at the java mapscript - and your map > server wiki entries for compiling java mapscript - I'm not convinced I > have > a good compile yet (platform is Fedora Core 2). Is the java mapscript > viable at this point? I have read posts from earlier this year saying > it > looked abandoned? > > I would really like to get to an all java solution if possible - I > currently use a combination of java/php (java opens a connection to a > php > script then parses the returned data) - not the best but it seems to > work > fine under light loads. > > I'd be interested to hear more about what you are up to - it sounds > interesting. I would really like to just build a threaded front end > (maybe > a thread pool?) to the map server functionality via java mapscript and > nothing more. > > Thanks, > Dan > > At 11:51 PM 11/3/2004, unicoletti at prometeo.it wrote: >> Dan, >> if by creating a java implementation you mean writing a web app to >> deliver the >> same (or subset) of the functionality the cgi does, then I am >> writing one. >> >> I think I am one of the few java mapscript users around :-) >> >> Regards, >> umberto >> >> Quoting Sean Gillies : >> >>> Dan, >>> >>> It's not clear to me what you mean by creating a java implementation >>> on your own. Implementation of what? Do you mean a programming API >>> like the php mapscript module? >>> >>> If this is what you mean, you should look at the Java stuff that >>> you can generate using SWIG. In mapserver versions 4.2.4+ and in >>> the 4.4.0 beta1 there is a Java makefile under >>> mapserver/mapscript/java. >>> It seems to work, but as I've said -- I'm not a Java user and so am >>> not beating on the Java mapscript module heavily enough or often >>> enough to say anything about its readiness. >>> >>> Sean >>> >>> On Nov 3, 2004, at 10:37 AM, Dan Barron wrote: >>> >>>> Hmmm - I was really hoping someone had done (or attempted) a java >>>> implementation - I'm not versed in Zope or Python. Well, I guess I >>>> will >>>> attempt to create a java implementation on my own. >>>> >>>> Thanks Sean. >>>> >>>> Dan >>>> >>>> At 01:10 PM 11/2/2004, Sean Gillies wrote: >>>>> On Nov 2, 2004, at 10:47 AM, Dan Barron wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> Just curious what the current consensus and recommendations are >>>>>> for >>>>>> creating a thread safe front end or wrapper for mapserver in >>>>>> either >>>>>> php or >>>>>> java? I'm assuming that mapserver is still not thread safe - that >>>>>> correct? >>>>>> >>>>>> Thanks! >>>>>> >>>>>> Dan >>>>> >>>>> Dan, >>>>> >>>>> I caught and fixed three sources of potential threading problems >>>>> before >>>>> the 4.2.4 release and these fixes will also be in 4.4.0. I think >>>>> we're >>>>> close to thread safety, but it's hard to say without more testing. >>>>> As >>>>> far as I know, my ZMapServer (Zope + Python mapscript) software is >>>>> the >>>>> only thing out there that is using MapServer in a multi-threaded >>>>> environment. It works, but is not a complete proof of thread >>>>> safety. >>>>> >>>>> There remains much work to be done to in improving MapServer's >>>>> threaded performance. The single lexer for parsing mapfiles and >>>>> class expressions is a bottleneck that will be addressed in the >>>>> future. >>>>> >>>>> cheers, >>>>> Sean >>>>> >>>>> -- >>>>> Sean Gillies >>>>> sgillies at frii dot com >>>>> http://users.frii.com/sgillies >>>> >>> > From bryon at PEOPLEGIS.COM Thu Nov 4 08:45:40 2004 From: bryon at PEOPLEGIS.COM (Bryon Kenne) Date: Thu, 4 Nov 2004 11:45:40 -0500 Subject: XP Service Pack 2 and MS4W Applications Message-ID: Hey, Has anybody had problems with getting MS4W applications to run on an ?XP machine with service pack 2 installed?? We installed an MS4W application on three separate XP machines and the application ran correctly. Soon after the installation, the client installed XP service pack 2 on those machines and now the application just won?t run. To add insult to injury, all three machines seem to be handling the application in three different ways! If anybody has dealt with is issue, we would be very interested in learning how to work around Service Pack 2. Thank you. Sincerely, Bryon -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Thu Nov 4 09:46:55 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 4 Nov 2004 12:46:55 -0500 Subject: text/html and application/x-pdf FORMATS and WMS GetLegendGraphic and WMS GetCapabilities In-Reply-To: <4189E138.6080303@ikf.nlh.no> Message-ID: I have entered a couple of bugs related to your e-mail : - pdf support for GetLegendGraphic with application/x-pdf (Bug 1028) - swf support for GetLegendGraphic with application/x-shockwave-flash (Bug 1029) - limits for GetLegendGraphic with RULE for GD outputformat only (Bug 1030) I am not sure if these will be adressed for the 4.4 release since the most widly use format for WMS are GD type formats. I guess for now the only critical thing is to expose supported formats in the capabilities. There is already a bug in mapserver (bug 455) adressing this issue that is on the hit list before 4.4 release. Later, Havard Tveite wrote: > For the "application/x-pdf" and "text/html" FORMATs > reported by a WMS 1.1.1 GetCapabilities response for > GetLegendGraphic I am experiencing problems when > using GetLegendGraphic. > > A GetCapabilities request to my Mapserver WMS server returns: > > > image/jpeg > image/png > image/gif > image/wbmp > text/html > application/x-pdf > image/tiff > > ... > > > > For all formats except "application/x-pdf" and "text/html" > a nice legend (graphics and text) is returned. > For the following requests (equal to the successful ones, > except for the FORMAT), mapserver crashes ("premature end > of script headers: mapserv" in the Apache log): > > ...&service=WMS&version=1.1.1&request=GetLegendGraphic&layer=n5000arf&SCALE=200000&FORMAT=image/gif > > ...&service=WMS&version=1.1.1&request=GetLegendGraphic&layer=n5000arf&SCALE=200000&FORMAT=application/x-pdf > > > When I use a RULE (to get only the graphics), the following is > returned > > > msWMSGetLegendGraphic(): Image handling error. Unavailable RULE > (Skog). msCreateLegendIcon(): GD library error. Map outputformat must be > set to a GD format! > > > > > MapServer version 4.4.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=SDE > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > Is it a problem in my setup or a bug? > If it is a bug, the output from GetCapabilities should to be changed. > > -- > H?vard Tveite > IMT, NLH > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Thu Nov 4 10:23:30 2004 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Jean-Francois Doyon) Date: Thu, 4 Nov 2004 13:23:30 -0500 Subject: XP Service Pack 2 and MS4W Applications Message-ID: I haven't, but I would guess you need to open the firewall that SP2 installs and configures by default to be quite restrictive (An otherwise good thing). On my computer I get prompted when an unauthorized application tries to access the network, and I can allow it. I think this behavior is user configurable though. Just look at the Microsoft Security Center application, in the control panel or admin tools or something like that. J.F. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Bryon Kenne Sent: November 4, 2004 11:46 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] XP Service Pack 2 and MS4W Applications Hey, Has anybody had problems with getting MS4W applications to run on an "XP machine with service pack 2 installed"? We installed an MS4W application on three separate XP machines and the application ran correctly. Soon after the installation, the client installed XP service pack 2 on those machines and now the application just won't run. To add insult to injury, all three machines seem to be handling the application in three different ways! If anybody has dealt with is issue, we would be very interested in learning how to work around Service Pack 2. Thank you. Sincerely, Bryon -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at WARRINER.US Thu Nov 4 12:23:38 2004 From: paul at WARRINER.US (R. Paul Warriner) Date: Thu, 4 Nov 2004 14:23:38 -0600 Subject: workshop error Message-ID: Hello, I am a new user, and I am also getting the same error with 4.4.0beta1: getString(): Symbol definition error. Duplicate item (NAME):(line 446) The data has not been modified, and is working under 4.2.5 Regards, Paul On Wed, 27 Oct 2004 12:11:01 +0100, Norman Barker wrote: >Hi, > >I expect it is me, but I have compiled the nightly build of MapServer >and everything works. > >I have installed the WorkShop with the Itasca data to test the >installation of MapServer >but I get > >getString(): Symbol definition error. Duplicate item (NAME):(line 446) > >when I click on the Basic Application option > >Any help would be great > >Thanks, > >Norman From paul at WARRINER.US Thu Nov 4 15:29:55 2004 From: paul at WARRINER.US (R. Paul Warriner) Date: Thu, 4 Nov 2004 18:29:55 -0500 Subject: workshop error Message-ID: Hello Ethan, Interesting, keeping in mind I am novice, I commented out the second NAME instance, and voila; it worked. Funny, 4.2 didn't care, but 4.4 does. It is the workshop - itasca.map file, with the 3rd line "NAME cities": LAYER NAME mcd90py2_anno NAME cities TYPE ANNOTATION DATA mcd90py2 STATUS OFF LABELITEM "city_name" CLASSITEM "city_name" LABELMAXSCALE 500000 CLASS EXPRESSION /./ LABEL COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE BITMAP SIZE MEDIUM POSITION CC PARTIALS FALSE BUFFER 2 END END Thanks for the help, Paul ---- Original message ---- >Date: Thu, 4 Nov 2004 15:32:12 -0700 >From: "Ethan Alpert" >Subject: RE: [UMN_MAPSERVER-USERS] workshop error >To: "R. Paul Warriner" > >What's on line 446 of your mapfile? > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of R. Paul Warriner >Sent: Thursday, November 04, 2004 1:24 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] workshop error > > >Hello, > >I am a new user, and I am also getting the same error with 4.4.0beta1: >getString(): Symbol definition error. Duplicate item (NAME):(line 446) > >The data has not been modified, and is working under 4.2.5 > >Regards, >Paul > > >On Wed, 27 Oct 2004 12:11:01 +0100, Norman Barker > >wrote: > >>Hi, >> >>I expect it is me, but I have compiled the nightly build of MapServer >>and everything works. >> >>I have installed the WorkShop with the Itasca data to test the >>installation of MapServer but I get >> >>getString(): Symbol definition error. Duplicate item (NAME):(line 446) >> >>when I click on the Basic Application option >> >>Any help would be great >> >>Thanks, >> >>Norman From paul at WARRINER.US Thu Nov 4 15:41:49 2004 From: paul at WARRINER.US (R. Paul Warriner) Date: Thu, 4 Nov 2004 18:41:49 -0500 Subject: workshop error Message-ID: Ethan, Spoke to soon, the Map works now, but that took out the annotation for the cities. I removed the 1st name instance: NAME mcd90py2_anno and city names are back. Not sure yet what else that may effect? Paul ---- Original message ---- >Date: Thu, 4 Nov 2004 18:29:55 -0500 >From: "R. Paul Warriner" >Subject: RE: [UMN_MAPSERVER-USERS] workshop error >To: Ethan Alpert , MAPSERVER-USERS at LISTS.UMN.EDU >Cc: "R. Paul Warriner" > >Hello Ethan, > >Interesting, keeping in mind I am >novice, I commented out the second NAME >instance, and voila; it worked. > >Funny, 4.2 didn't care, but 4.4 does. > >It is the workshop - itasca.map file, >with the 3rd line "NAME cities": > LAYER > NAME mcd90py2_anno > NAME cities > TYPE ANNOTATION > DATA mcd90py2 > STATUS OFF > LABELITEM "city_name" > CLASSITEM "city_name" > LABELMAXSCALE 500000 > CLASS > EXPRESSION /./ > LABEL > COLOR 0 0 0 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > TYPE BITMAP > SIZE MEDIUM > POSITION CC > PARTIALS FALSE > BUFFER 2 > END > END > >Thanks for the help, >Paul > >---- Original message ---- >>Date: Thu, 4 Nov 2004 15:32:12 -0700 >>From: "Ethan Alpert" > >>Subject: RE: [UMN_MAPSERVER-USERS] >workshop error >>To: "R. Paul Warriner" >> >>What's on line 446 of your mapfile? >> >>-----Original Message----- >>From: UMN MapServer Users List >[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >>Behalf Of R. Paul Warriner >>Sent: Thursday, November 04, 2004 1:24 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] >workshop error >> >> >>Hello, >> >>I am a new user, and I am also getting >the same error with 4.4.0beta1: >>getString(): Symbol definition error. >Duplicate item (NAME):(line 446) >> >>The data has not been modified, and is >working under 4.2.5 >> >>Regards, >>Paul >> >> >>On Wed, 27 Oct 2004 12:11:01 +0100, >Norman Barker >> >>wrote: >> >>>Hi, >>> >>>I expect it is me, but I have compiled >the nightly build of MapServer >>>and everything works. >>> >>>I have installed the WorkShop with the >Itasca data to test the >>>installation of MapServer but I get >>> >>>getString(): Symbol definition error. >Duplicate item (NAME):(line 446) >>> >>>when I click on the Basic Application >option >>> >>>Any help would be great >>> >>>Thanks, >>> >>>Norman From warmerdam at POBOX.COM Thu Nov 4 17:27:49 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 4 Nov 2004 20:27:49 -0500 Subject: workshop error In-Reply-To: <200411042329.BVY91083@ms9.netsolmail.com> Message-ID: R. Paul Warriner wrote: > Hello Ethan, > > Interesting, keeping in mind I am > novice, I commented out the second NAME > instance, and voila; it worked. > > Funny, 4.2 didn't care, but 4.4 does. > > It is the workshop - itasca.map file, > with the 3rd line "NAME cities": > LAYER > NAME mcd90py2_anno > NAME cities > TYPE ANNOTATION > DATA mcd90py2 > STATUS OFF > LABELITEM "city_name" > CLASSITEM "city_name" > LABELMAXSCALE 500000 > CLASS > EXPRESSION /./ > LABEL > COLOR 0 0 0 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > TYPE BITMAP > SIZE MEDIUM > POSITION CC > PARTIALS FALSE > BUFFER 2 > END > END Paul, Sean pointed out that there was a bug fix related to this. In 4.4 we try to error out on multiple defined values for stuff like NAME. It is an improvement ... really! In the past the first name was ignored and the second was used but if the second was far down in a complex layer definition it would be easy to miss it and not know why referring to the layer by it's first name didn't work. Best regards, -- ---------------------------------------+-------------------------------------- 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 cartman8d at YAHOO.COM Thu Nov 4 18:14:11 2004 From: cartman8d at YAHOO.COM (Cartman) Date: Thu, 4 Nov 2004 20:14:11 -0600 Subject: Help with mapserver instalation - Workshop Log Message-ID: Hi, I installed mapserver based on http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat9AndMapserver40 and after when I try probe the instalation with the workshop I have the follow problem. ********************** [Thu Nov 04 16:34:57 2004] [error] [client 192.168.0.1] /usr/local/apache2/cgi-bin/mapserv40: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory, referer: http://192.168.0.20/workshop/ [Thu Nov 04 16:34:57 2004] [error] [client 192.168.0.1] Premature end of script headers: mapserv40, referer: http://192.168.0.20/workshop/ ************************ That is information about the messages log of the system. That happens when I select some option of workshop. Somebody may tell me what's happens, thanks. ===== Gracias. Atentamente, CARLOS ARTURO TRUJILLO SILVA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From ivan.mjartan at GEOVAP.CZ Thu Nov 4 23:49:51 2004 From: ivan.mjartan at GEOVAP.CZ (Ivan Mjartan) Date: Fri, 5 Nov 2004 08:49:51 +0100 Subject: compiling mapserver on windows problem Message-ID: hi Ed and Frank Thanks for your reply. I understand that Mapserver is complex and huge software. That was why I was looking for sophisticated programing environment in C/C++. Now I know that Visual Studio is not right way (i was trying it by myself for more than 2days :). So i have question, Can u recommend to me some programing environment for windows ... now i am using Ultraedit with Ctags (for better look through code). Have nice day ivan ----- Original Message ----- From: "Jakub Kon??ek" To: Sent: Thursday, November 04, 2004 4:26 PM Subject: Re: [UMN_MAPSERVER-USERS] compiling mapserver on windows problem > Ivan - > > I will amplify Frank's observation to point out that MapServer is hard to > build on Windows because of the many dependencies that seem to completely > ignore the need for good Windows makefiles! Many users have loads of > unnecessary trouble building the regex-0.12 library just to compile ONE > source file, because the makefile is badly broken. > > In general I think makefiles are much more suitable for this purpose than > project/workspace files. Workspace files, particularly where there are > multiple external dependencies, are VERY hard to make portable and very hard > to maintain. > > If you're going to attempt to create a complete build-from-source effort for > MapServer and all its supporting libraries, I would urge to you to get it > all working with makefiles first before attempting to import/migrate those > to .dsp project files. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Frank Warmerdam > Sent: Thursday, November 04, 2004 10:02 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] compiling mapserver on windows problem > > Ivan Mjartan wrote: > > Hi everybody, > > > > I have question, is anybody who compile mapserver with Microsoft > > visual C++ 6.0 ? Because I am not able import source of MapServer and > > create .dsp (project). Exactly importing source into workspace is not > > problem, but problem is how I have to set environment to be able > > compile source of MapServer. > > > > Is possible get source file of MapServer setting up for Microsoft > > visual C++ 6.0 ? Or some idea how transform makefile to by able > > successfully comile MapServer from Microsoft visual C++ 6.0 > > environment, or see somewhere how can I do it. > > > > I apologize for my stupid question, I am novice with programming in > > Microsoft visual C++ 6.0 and also with MapServer > > Ivan, > > I don't want to be rude, but MapServer is a monster to build properly on > Windows because of the many dependencies. So to start out, if you aren't > comfortable with mapserver and building complex applications from scratch on > windows you would be best advised to *avoid* having to build mapserver > yourself. > > Second, those of us who do manage to build mapserver on windows have found > it hard enough to maintain the existing makefile.vc/nmake.opt solution. > While someone may be interested in building and maintaining a project file > for MapServer, I doubt it will be kept up to date as changes occur. > > Best regards, > -- > ---------------------------------------+-------------------------------- > ---------------------------------------+------ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From unicoletti at PROMETEO.IT Fri Nov 5 00:40:38 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Fri, 5 Nov 2004 09:40:38 +0100 Subject: thread safe implementations In-Reply-To: Message-ID: Chris, it is not clear to me what do you mean by 'java interface to mapserver'. What I need (and have partly developed 'in house') is to show a map in a webapp and run queries on it with a browser interface. Last time I looked Geoserver did not implement it, but I haven't looked thoroughly. Regards, Umberto On Thu, 2004-11-04 at 14:37, Chris wrote: > Umberto, I would like to have a java interface to Mapserver. Have you used > Geoserver? They have a java implementation of a WMS. I'm not sure what the > performance is like, but it would be nice to have a similar interface to > Mapserver. > > Chris > > -----Original Message----- > From: Umberto Nicoletti [mailto:unicoletti at PROMETEO.IT] > Sent: Thursday, November 04, 2004 2:52 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] thread safe implementations > > > Dan, > if by creating a java implementation you mean writing a web app to deliver > the > same (or subset) of the functionality the cgi does, then I am writing one. > > I think I am one of the few java mapscript users around :-) > > Regards, > umberto > > Quoting Sean Gillies : > > > Dan, > > > > It's not clear to me what you mean by creating a java implementation > > on your own. Implementation of what? Do you mean a programming API > > like the php mapscript module? > > > > If this is what you mean, you should look at the Java stuff that > > you can generate using SWIG. In mapserver versions 4.2.4+ and in > > the 4.4.0 beta1 there is a Java makefile under mapserver/mapscript/java. > > It seems to work, but as I've said -- I'm not a Java user and so am > > not beating on the Java mapscript module heavily enough or often > > enough to say anything about its readiness. > > > > Sean > > > > On Nov 3, 2004, at 10:37 AM, Dan Barron wrote: > > > > > Hmmm - I was really hoping someone had done (or attempted) a java > > > implementation - I'm not versed in Zope or Python. Well, I guess I > > > will > > > attempt to create a java implementation on my own. > > > > > > Thanks Sean. > > > > > > Dan > > > > > > At 01:10 PM 11/2/2004, Sean Gillies wrote: > > >> On Nov 2, 2004, at 10:47 AM, Dan Barron wrote: > > >> > > >>> Hello, > > >>> > > >>> Just curious what the current consensus and recommendations are for > > >>> creating a thread safe front end or wrapper for mapserver in either > > >>> php or > > >>> java? I'm assuming that mapserver is still not thread safe - that > > >>> correct? > > >>> > > >>> Thanks! > > >>> > > >>> Dan > > >> > > >> Dan, > > >> > > >> I caught and fixed three sources of potential threading problems > > >> before > > >> the 4.2.4 release and these fixes will also be in 4.4.0. I think > > >> we're > > >> close to thread safety, but it's hard to say without more testing. As > > >> far as I know, my ZMapServer (Zope + Python mapscript) software is the > > >> only thing out there that is using MapServer in a multi-threaded > > >> environment. It works, but is not a complete proof of thread safety. > > >> > > >> There remains much work to be done to in improving MapServer's > > >> threaded performance. The single lexer for parsing mapfiles and > > >> class expressions is a bottleneck that will be addressed in the > > >> future. > > >> > > >> cheers, > > >> Sean > > >> > > >> -- > > >> Sean Gillies > > >> sgillies at frii dot com > > >> http://users.frii.com/sgillies > > > > > From unicoletti at PROMETEO.IT Fri Nov 5 00:52:50 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Fri, 5 Nov 2004 09:52:50 +0100 Subject: thread safe implementations In-Reply-To: <6.0.0.22.0.20041104065226.03b20420@taz.dswllc.com> Message-ID: Hi Dan, On Thu, 2004-11-04 at 16:12, Dan Barron wrote: > Umberto, > > I'm not going to try to recreate the functionality of the cgi - I'm not > fully sure yet what absolute path I will take - I really have not done much > threaded java code. I've looked at the java mapscript - and your map > server wiki entries for compiling java mapscript - I'm not convinced I have > a good compile yet (platform is Fedora Core 2). Is the java mapscript > viable at this point? I have read posts from earlier this year saying it > looked abandoned? I think it has rather improved since last year. I have done some load testing and did not found evident issues, even though threading errors are rather difficult to spot. A random thought on this: disabling the use-threads compile flag and running the load tests afterwards shows many errors in the log files. With use-threads enabled the errors go away. > > I would really like to get to an all java solution if possible - I > currently use a combination of java/php (java opens a connection to a php > script then parses the returned data) - not the best but it seems to work > fine under light loads. > > I'd be interested to hear more about what you are up to - it sounds > interesting. I would really like to just build a threaded front end (maybe > a thread pool?) to the map server functionality via java mapscript and > nothing more. See my previous posts for this. I might be able to put a demo together if some others are interested. But be warned: it is just mapserver as a Java webapp. Regards, umberto > > Thanks, > Dan > > At 11:51 PM 11/3/2004, unicoletti at prometeo.it wrote: > >Dan, > >if by creating a java implementation you mean writing a web app to deliver the > >same (or subset) of the functionality the cgi does, then I am writing one. > > > >I think I am one of the few java mapscript users around :-) > > > >Regards, > >umberto > > > >Quoting Sean Gillies : > > > > > Dan, > > > > > > It's not clear to me what you mean by creating a java implementation > > > on your own. Implementation of what? Do you mean a programming API > > > like the php mapscript module? > > > > > > If this is what you mean, you should look at the Java stuff that > > > you can generate using SWIG. In mapserver versions 4.2.4+ and in > > > the 4.4.0 beta1 there is a Java makefile under mapserver/mapscript/java. > > > It seems to work, but as I've said -- I'm not a Java user and so am > > > not beating on the Java mapscript module heavily enough or often > > > enough to say anything about its readiness. > > > > > > Sean > > > > > > On Nov 3, 2004, at 10:37 AM, Dan Barron wrote: > > > > > > > Hmmm - I was really hoping someone had done (or attempted) a java > > > > implementation - I'm not versed in Zope or Python. Well, I guess I > > > > will > > > > attempt to create a java implementation on my own. > > > > > > > > Thanks Sean. > > > > > > > > Dan > > > > > > > > At 01:10 PM 11/2/2004, Sean Gillies wrote: > > > >> On Nov 2, 2004, at 10:47 AM, Dan Barron wrote: > > > >> > > > >>> Hello, > > > >>> > > > >>> Just curious what the current consensus and recommendations are for > > > >>> creating a thread safe front end or wrapper for mapserver in either > > > >>> php or > > > >>> java? I'm assuming that mapserver is still not thread safe - that > > > >>> correct? > > > >>> > > > >>> Thanks! > > > >>> > > > >>> Dan > > > >> > > > >> Dan, > > > >> > > > >> I caught and fixed three sources of potential threading problems > > > >> before > > > >> the 4.2.4 release and these fixes will also be in 4.4.0. I think > > > >> we're > > > >> close to thread safety, but it's hard to say without more testing. As > > > >> far as I know, my ZMapServer (Zope + Python mapscript) software is the > > > >> only thing out there that is using MapServer in a multi-threaded > > > >> environment. It works, but is not a complete proof of thread safety. > > > >> > > > >> There remains much work to be done to in improving MapServer's > > > >> threaded performance. The single lexer for parsing mapfiles and > > > >> class expressions is a bottleneck that will be addressed in the > > > >> future. > > > >> > > > >> cheers, > > > >> Sean > > > >> > > > >> -- > > > >> Sean Gillies > > > >> sgillies at frii dot com > > > >> http://users.frii.com/sgillies > > > > > > > From temiz at DEPREM.GOV.TR Fri Nov 5 06:34:37 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Fri, 5 Nov 2004 16:34:37 +0200 Subject: wrong with coordinate conversion Message-ID: hello For using reference map with php mapscript, I have developed a formula to convert image coordinates to map coordinates. But there seems to be something wrong with it. here is the formula: "map_coord of a clicked point = (map_maxx - map_minx) * image_click_ccord / image_width" what am I doing wrong ? kind regards Ahmet Temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From dmorissette at DMSOLUTIONS.CA Fri Nov 5 07:04:50 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Fri, 5 Nov 2004 10:04:50 -0500 Subject: truetype font problems In-Reply-To: <200411021319.26095.barnes@watersheds.ca> Message-ID: Shawn Barnes wrote: > I've installed mapserver a few times and this problem seems to be a hit and > miss for me. I've gone through the archives and haven't found the answer > yet. > > I'm getting an error message - DrawMap: MapServer TrueType Font Error: libgd > was not built with FreeType font support > ... > phpinfo() shows, > > MapServer version 4.4.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > GD Support enabled > GD Version bundled (2.0.28 compatible) I think the problem is that your PHP used the bundled GD (see above) which is different from the system GD used by MapServer and php_mapscript.so. When php_mapscript.so is loaded into PHP you end up with two different copies of the GD library in the same program and either one can be used at different times in an unpredictable way, leading to odd behaviors or even crashes. I'd suggest recompiling your PHP with the system GD (--with-gd=/usr/local ???) and see if that helps. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Fri Nov 5 07:11:04 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Fri, 5 Nov 2004 10:11:04 -0500 Subject: Help with php compilation In-Reply-To: <20041102214647.2638.qmail@web53803.mail.yahoo.com> Message-ID: Cartman wrote: > . > lz -ljpeg -lz -lresolv -lm -ldl -lnsl -lcrypt -lcrypt > -o sapi/cgi/php > ext/mysql/libmysql/my_tempnam.o(.text+0x40): In > function `my_tempnam': > /opt/php-4.3.3/ext/mysql/libmysql/my_tempnam.c:115: > the use of `tempnam' is dangerous, better use > `mkstemp' > ext/pdf/pdf.o(.text+0x4d8): In function > `zif_pdf_open': > /opt/php-4.3.3/ext/pdf/pdf.c:472: undefined reference > to `PDF_open_fp' > collect2: ld returned 1 exit status > make: *** [sapi/cgi/php] Error 1 > > It would seem that you don't have PDFlib installed on your machine, or that the verison you have is not compatible with PHP. I'd suggest that you simply remove the --with-pdf PHP configure option unless you really need PDF at this point. When you really need PDF then you can come back to this problem. Note that this problem is really a PHP issue and has nothing to do directly with MapServer. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From warmerdam at POBOX.COM Fri Nov 5 07:14:09 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 5 Nov 2004 10:14:09 -0500 Subject: compiling mapserver on windows problem In-Reply-To: <005b01c4c30c$084b8f50$e901a8c0@PC24> Message-ID: Ivan Mjartan wrote: > hi Ed and Frank > > Thanks for your reply. I understand that Mapserver is complex and huge > software. That was why I was looking for sophisticated programing > environment in C/C++. Now I know that Visual Studio is not right way (i > was trying it by myself for more than 2days :). > > So i have question, Can u recommend to me some programing environment > for windows ... now i am using Ultraedit with Ctags (for better look > through code). Ivan, I'm not sure I understand the question. Just use Visual C++, but from the commandline with NMAKE and the existing windows makefiles. I imagine there is a wiki topic or a README or something about how to build ... Ah yes, README.WIN32 in the mapserver directory. Read it over. Look at the NMAKE.OPT and go to work. You will need a GD library, I use the 2.0.30 binaries from boutell.com (don't forget to run the .bat file to make the VC++ stub library). The pre-built GD is nice because it includes PNG, GIF, JPEG and Freetype all in one DLL. You will also need regex as per the readme. Disable most of the other cruft while you are getting things running, and then if you need options add them in later. Once you have read all the docs, and experimented appropriately you can ask questions on windows building on the mapserver-dev list. Please take some time to point out "out of date" issues in the README.WIN32 or other windows stuff. We still have time to streamline the windows building a bit for 4.4 release. Ultraedit should be fine as an editor. Best regards, -- ---------------------------------------+-------------------------------------- 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 dmorissette at DMSOLUTIONS.CA Fri Nov 5 07:30:36 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Fri, 5 Nov 2004 10:30:36 -0500 Subject: The use of ' In-Reply-To: Message-ID: Daniele Margotti wrote: > > I use shape files, and in .DBF files I have string values with apostrophes > inside (e.g.: "Cava de' Tirreni", "Via Dell'Artigianato", and so on). > When I query my map, MapServer substitutes all apostrophes with the > string "'" (and prints "Cava de' Tirreni" or "Via > Dell'Artigianato"). > How do you query your map? Are you using the mapserv CGI with the query templates or some other mechanism such as WMS, WFS,... ? > In fact, "'" is not a valid HTML entity reference, as you can see > here: > http://fishbowl.pastiche.org/2003/07/01/the_curse_of_apos > > Do I have to modify mapstring.c and recompile all, or can I tell MapServer > (for example, with a flag in .map file) to not substitute apostrophes? > Um... it's the first time I hear of this. For the benefit of other readers who didn't follow the link above: ' is valid in XML and in XHTML but not in good'old HTML. :( Could you please file a bug about this in the mapserver bugzilla? > > P.S.: WHY can't I still use Outlook to post to the list? > I've regularly subscribed, but it seems I can only post via webinterface... > I'd suggest that you contact Tom Burk (teb at mallit.fr.umn.edu), he's the contact with the listserv administrators. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From zhou_naijun at HOTMAIL.COM Fri Nov 5 09:41:32 2004 From: zhou_naijun at HOTMAIL.COM (N Zhou) Date: Fri, 5 Nov 2004 11:41:32 -0600 Subject: WFS map file Message-ID: Hi, I'm new to the WFS. I have a working WMS map file, and I followed the HOW To instruction to modify the WMS map file to WFS. However, only the layer name can be showed as WFS not the real layer map. Is this because of map projection: the data are in a projection currently not supported in EPSG? Or I have errors in the map file? Thank you very much! My map file is: Map NAME "MyServices" STATUS ON EXTENT 177185 124886 891620 939320 SIZE 400 400 UNITS METERS # # Start of web interface definition # WEB MINSCALE 1 MAXSCALE 10000000 METADATA "wfs_title" "DNRServices" "wfs_srs" "EPSG:90000" "wfs_onlineresource" "http://myhost/cgi-bin/mapserv?map=thismapfile.map" END END PROJECTION "init=epsg:90000" END # # Start of layer definitions # LAYER NAME "water" STATUS ON DATA "hydppoly" TYPE POLYGON CLASSITEM 'HYDNW92M_' MINSCALE 400000 PROJECTION "init=epsg:90000" END DUMP TRUE METADATA "wfs_title" "Open Water" "wfs_srs" "EPSG:90000" END CLASS EXPRESSION /./ STYLE COLOR -1 -1 -1 OUTLINECOLOR 0 0 255 SIZE 1 SYMBOL 0 END END END END N. Zhou From bartvde at XS4ALL.NL Fri Nov 5 10:00:42 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 5 Nov 2004 19:00:42 +0100 Subject: WFS map file In-Reply-To: Message-ID: Hi, could you explain what you mean exactly with the following sentence: "However, only the layer name can be showed as WFS not the real layer map." ? And which requests are you trying against your WFS, or how are you trying to visualize your data? Best regards, Bart On Fri, 5 Nov 2004 11:41:32 -0600, N Zhou wrote: > Hi, > > I'm new to the WFS. I have a working WMS map file, and I followed the > HOW To > instruction to modify the WMS map file to WFS. However, only the layer > name > can be showed as WFS not the real layer map. Is this because of map > projection: the data are in a projection currently not supported in > EPSG? Or > I have errors in the map file? > > Thank you very much! > > My map file is: > > Map > NAME "MyServices" > STATUS ON > EXTENT 177185 124886 891620 939320 > SIZE 400 400 > UNITS METERS > > # > # Start of web interface definition > # > WEB > MINSCALE 1 > MAXSCALE 10000000 > > METADATA > "wfs_title" "DNRServices" > "wfs_srs" "EPSG:90000" > "wfs_onlineresource" > "http://myhost/cgi-bin/mapserv?map=thismapfile.map" > END > END > > PROJECTION > "init=epsg:90000" > END > > # > # Start of layer definitions > # > LAYER > NAME "water" > STATUS ON > DATA "hydppoly" > TYPE POLYGON > CLASSITEM 'HYDNW92M_' > MINSCALE 400000 > PROJECTION > "init=epsg:90000" > END > DUMP TRUE > METADATA > "wfs_title" "Open Water" > "wfs_srs" "EPSG:90000" > END > CLASS > EXPRESSION /./ > STYLE > COLOR -1 -1 -1 > OUTLINECOLOR 0 0 255 > SIZE 1 > SYMBOL 0 > END > END > END > END > > > N. Zhou > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From zhou_naijun at HOTMAIL.COM Fri Nov 5 10:21:04 2004 From: zhou_naijun at HOTMAIL.COM (N Zhou) Date: Fri, 5 Nov 2004 12:21:04 -0600 Subject: WFS map file Message-ID: I'm using the Itasca demo provided as a demo of mapserver. I can get layer names defined in the WFS map file, but the layer is not showed in a map window when I click a layer name. This worked in the WMS map file. Thank you! N. Zhou > >could you explain what you mean exactly with the following sentence: > >"However, only the layer name can be showed as WFS not the real layer map." > >? > >And which requests are you trying against your WFS, or how are you trying >to visualize your data? > >Best regards, >Bart > >On Fri, 5 Nov 2004 11:41:32 -0600, N Zhou wrote: > >>Hi, >> >>I'm new to the WFS. I have a working WMS map file, and I followed the HOW >>To >>instruction to modify the WMS map file to WFS. However, only the layer >>name >>can be showed as WFS not the real layer map. Is this because of map >>projection: the data are in a projection currently not supported in EPSG? >>Or >>I have errors in the map file? >> >>Thank you very much! >> >>My map file is: >> >>Map >> NAME "MyServices" >> STATUS ON >> EXTENT 177185 124886 891620 939320 >> SIZE 400 400 >> UNITS METERS >> >> # >> # Start of web interface definition >> # >> WEB >> MINSCALE 1 >> MAXSCALE 10000000 >> >> METADATA >> "wfs_title" "DNRServices" >> "wfs_srs" "EPSG:90000" >> "wfs_onlineresource" >>"http://myhost/cgi-bin/mapserv?map=thismapfile.map" >> END >> END >> >> PROJECTION >> "init=epsg:90000" >> END >> >># >># Start of layer definitions >># >> LAYER >> NAME "water" >> STATUS ON >> DATA "hydppoly" >> TYPE POLYGON >> CLASSITEM 'HYDNW92M_' >> MINSCALE 400000 >> PROJECTION >> "init=epsg:90000" >> END >> DUMP TRUE >> METADATA >> "wfs_title" "Open Water" >> "wfs_srs" "EPSG:90000" >> END >> CLASS >> EXPRESSION /./ >> STYLE >> COLOR -1 -1 -1 >> OUTLINECOLOR 0 0 255 >> SIZE 1 >> SYMBOL 0 >> END >> END >> END >>END >> >> >>N. Zhou >> > > > >-- >Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From jerl.simpso at GMAIL.COM Fri Nov 5 10:28:13 2004 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri, 5 Nov 2004 12:28:13 -0600 Subject: Join contiguous or contained polygons Message-ID: Hello, I am sure this question has been asked, but searches I have done don't reveal what I'm after. So I turn to you guys. I am wanting to join contiguous polygons into one shape. For instance, I have place where there is a water polygon, and with in that is another, smaller water polygon. So I end up with 2 rings in my map (I need to outline the polygon). Or I have two contiguous water shapes, with a line down the middle, where there really doesn't need to be one. Does anyone have any ideas if a program does this already? Or an approach I might take if I need to write my own? Thank you, Jerl From bartvde at XS4ALL.NL Fri Nov 5 10:29:52 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 5 Nov 2004 19:29:52 +0100 Subject: WFS map file In-Reply-To: Message-ID: Hi, AFAIK the Itasca demo uses the native Mapserver interface (mode=map etc.), and is not a WFS client (nor WMS client). I don't see anything wrong with your MAP file at first sight, but maybe someone else does ... are there any error messages in an error log? Best regards, Bart On Fri, 5 Nov 2004 12:21:04 -0600, N Zhou wrote: > I'm using the Itasca demo provided as a demo of mapserver. > I can get layer names defined in the WFS map file, but the layer is not > showed in a map window when I click a layer name. This worked > in the WMS map file. > > Thank you! > > N. Zhou >> >> could you explain what you mean exactly with the following sentence: >> >> "However, only the layer name can be showed as WFS not the real layer >> map." >> >> ? >> >> And which requests are you trying against your WFS, or how are you >> trying >> to visualize your data? >> >> Best regards, >> Bart >> >> On Fri, 5 Nov 2004 11:41:32 -0600, N Zhou >> wrote: >> >>> Hi, >>> >>> I'm new to the WFS. I have a working WMS map file, and I followed the >>> HOW >>> To >>> instruction to modify the WMS map file to WFS. However, only the layer >>> name >>> can be showed as WFS not the real layer map. Is this because of map >>> projection: the data are in a projection currently not supported in >>> EPSG? >>> Or >>> I have errors in the map file? >>> >>> Thank you very much! >>> >>> My map file is: >>> >>> Map >>> NAME "MyServices" >>> STATUS ON >>> EXTENT 177185 124886 891620 939320 >>> SIZE 400 400 >>> UNITS METERS >>> >>> # >>> # Start of web interface definition >>> # >>> WEB >>> MINSCALE 1 >>> MAXSCALE 10000000 >>> >>> METADATA >>> "wfs_title" "DNRServices" >>> "wfs_srs" "EPSG:90000" >>> "wfs_onlineresource" >>> "http://myhost/cgi-bin/mapserv?map=thismapfile.map" >>> END >>> END >>> >>> PROJECTION >>> "init=epsg:90000" >>> END >>> >>> # >>> # Start of layer definitions >>> # >>> LAYER >>> NAME "water" >>> STATUS ON >>> DATA "hydppoly" >>> TYPE POLYGON >>> CLASSITEM 'HYDNW92M_' >>> MINSCALE 400000 >>> PROJECTION >>> "init=epsg:90000" >>> END >>> DUMP TRUE >>> METADATA >>> "wfs_title" "Open Water" >>> "wfs_srs" "EPSG:90000" >>> END >>> CLASS >>> EXPRESSION /./ >>> STYLE >>> COLOR -1 -1 -1 >>> OUTLINECOLOR 0 0 255 >>> SIZE 1 >>> SYMBOL 0 >>> END >>> END >>> END >>> END >>> >>> >>> N. Zhou >>> >> >> >> >> -- >> Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From LESSARDST at DFO-MPO.GC.CA Fri Nov 5 10:42:59 2004 From: LESSARDST at DFO-MPO.GC.CA (Stephane Lessard) Date: Fri, 5 Nov 2004 13:42:59 -0500 Subject: [UMN_MAPSERVER-USERS] wrong with coordinate conversion Message-ID: Try: X = (map_maxx - map_minx) * (image_click_coord_x / image_width) + map_minx And Y = (map_maxy - map_miny) * (image_click_coord_y / image_height) + map_miny HTH Stef > -----Message d'origine----- > De : temiz [mailto:temiz at DEPREM.GOV.TR] > Envoy? : 5 novembre 2004 09:35 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : [UMN_MAPSERVER-USERS] wrong with coordinate conversion > > > hello > > For using reference map with php mapscript, I have developed > a formula to convert image coordinates to map coordinates. > But there seems to be something wrong with it. > > here is the formula: > "map_coord of a clicked point = (map_maxx - map_minx) * > image_click_ccord / image_width" > > what am I doing wrong ? > > kind regards > > Ahmet Temiz > > > > ______________________________________ > Inflex - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > > ______________________________________ > The views and opinions expressed in this e-mail message are > the sender's own and do not necessarily represent the views > and the opinions of Earthquake Research Dept. of General > Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, > yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma > Dairesi'ni baglayici nitelikte degildir. > From mapserver_konf at CENTRUM.SK Fri Nov 5 13:29:58 2004 From: mapserver_konf at CENTRUM.SK (Ing.Peter Misovic) Date: Fri, 5 Nov 2004 22:29:58 +0100 Subject: test message Message-ID: Hi all, this is test message, i have problem with email sending to this conf. Sorry again. Peter Misovic --------------------------------------------------------- http://www.morfeo.sk/ - Morfeo.sk - ?pecialista na vyh?ad?vanie na Slovensku! From mapserver_konf at CENTRUM.SK Fri Nov 5 13:48:51 2004 From: mapserver_konf at CENTRUM.SK (Ing.Peter Misovic) Date: Fri, 5 Nov 2004 22:48:51 +0100 Subject: proj.4 4.4.9 and mapserver Message-ID: Hi , how can I see, it is OK now with sending my messages.Please, my newbie question is. Must I configure and make mapserver binary again If a configure and make a new version of proj.4 (4.4.9)? Thanks --------------------------------------------------------- http://www.morfeo.sk/ - Morfeo.sk - ?pecialista na vyh?ad?vanie na Slovensku! From warmerdam at POBOX.COM Fri Nov 5 14:06:46 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 5 Nov 2004 17:06:46 -0500 Subject: proj.4 4.4.9 and mapserver In-Reply-To: <20041105214854Z475432-8585+156766@mail1.centrum.sk> Message-ID: Ing.Peter Misovic wrote: > Hi , > how can I see, it is OK now with sending my messages.Please, my newbie > question is. Must I configure and make mapserver binary again If a configure > and make a new version of proj.4 (4.4.9)? Peter, Generally speaking that would be a good idea, though in this case I know there are no issues with replacing 4.4.8 with 4.4.9 for mapserver. So, in this case you don't have to. Best regards, -- ---------------------------------------+-------------------------------------- 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 tylermitchell at SHAW.CA Fri Nov 5 14:11:03 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri, 5 Nov 2004 14:11:03 -0800 Subject: proj.4 4.4.9 and mapserver In-Reply-To: <20041105214854Z475432-8585+156766@mail1.centrum.sk> Message-ID: I would say 'no' - not unless there were major changes with the new proj version. Tyler On November 5, 2004 01:48 pm, Ing.Peter Misovic wrote: > Hi , > how can I see, it is OK now with sending my messages.Please, my newbie > question is. Must I configure and make mapserver binary again If a > configure and make a new version of proj.4 (4.4.9)? Thanks > > --------------------------------------------------------- > http://www.morfeo.sk/ - Morfeo.sk - ?pecialista na vyh?ad?vanie na > Slovensku! From ed at TOPOZONE.COM Fri Nov 5 14:20:50 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 5 Nov 2004 17:20:50 -0500 Subject: compiling mapserver on windows problem Message-ID: Ivan - I think Visual Studio is a perfectly reasonable editing environment for MapServer code. But editors are mainly a matter of personal preference and/or Baby Duck Syndrome, so I wouldn't take my recommendation too seriously. The only thing I'm suggesting is that you simply use nmake to do builds rather than using the integrated make/compile/debug tools. But you can still debug in Visual Studio even if you use nmake. - Ed From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ivan Mjartan Sent: Friday, November 05, 2004 2:50 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] compiling mapserver on windows problem hi Ed and Frank Thanks for your reply. I understand that Mapserver is complex and huge software. That was why I was looking for sophisticated programing environment in C/C++. Now I know that Visual Studio is not right way (i was trying it by myself for more than 2days :). So i have question, Can u recommend to me some programing environment for windows ... now i am using Ultraedit with Ctags (for better look through code). Have nice day ivan ----- Original Message ----- From: "Jakub Kon??ek" To: Sent: Thursday, November 04, 2004 4:26 PM Subject: Re: [UMN_MAPSERVER-USERS] compiling mapserver on windows problem > Ivan - > > I will amplify Frank's observation to point out that MapServer is hard to > build on Windows because of the many dependencies that seem to completely > ignore the need for good Windows makefiles! Many users have loads of > unnecessary trouble building the regex-0.12 library just to compile ONE > source file, because the makefile is badly broken. > > In general I think makefiles are much more suitable for this purpose than > project/workspace files. Workspace files, particularly where there are > multiple external dependencies, are VERY hard to make portable and very hard > to maintain. > > If you're going to attempt to create a complete build-from-source effort for > MapServer and all its supporting libraries, I would urge to you to get it > all working with makefiles first before attempting to import/migrate those > to .dsp project files. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Frank Warmerdam > Sent: Thursday, November 04, 2004 10:02 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] compiling mapserver on windows problem > > Ivan Mjartan wrote: > > Hi everybody, > > > > I have question, is anybody who compile mapserver with Microsoft > > visual C++ 6.0 ? Because I am not able import source of MapServer and > > create .dsp (project). Exactly importing source into workspace is not > > problem, but problem is how I have to set environment to be able > > compile source of MapServer. > > > > Is possible get source file of MapServer setting up for Microsoft > > visual C++ 6.0 ? Or some idea how transform makefile to by able > > successfully comile MapServer from Microsoft visual C++ 6.0 > > environment, or see somewhere how can I do it. > > > > I apologize for my stupid question, I am novice with programming in > > Microsoft visual C++ 6.0 and also with MapServer > > Ivan, > > I don't want to be rude, but MapServer is a monster to build properly on > Windows because of the many dependencies. So to start out, if you aren't > comfortable with mapserver and building complex applications from scratch on > windows you would be best advised to *avoid* having to build mapserver > yourself. > > Second, those of us who do manage to build mapserver on windows have found > it hard enough to maintain the existing makefile.vc/nmake.opt solution. > While someone may be interested in building and maintaining a project file > for MapServer, I doubt it will be kept up to date as changes occur. > > Best regards, > -- > ---------------------------------------+-------------------------------- > ---------------------------------------+------ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver_konf at CENTRUM.SK Fri Nov 5 14:56:00 2004 From: mapserver_konf at CENTRUM.SK (Ing.Peter Misovic) Date: Fri, 5 Nov 2004 23:56:00 +0100 Subject: PROJ4 Message-ID: Thaks Frank Warmerdam and Tyler Mitchell for your informations about PROJ4. Peter --------------------------------------------------------- http://www.morfeo.sk/ - Morfeo.sk - ?pecialista na vyh?ad?vanie na Slovensku! From steve.lime at DNR.STATE.MN.US Fri Nov 5 15:27:15 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 5 Nov 2004 17:27:15 -0600 Subject: workshop error Message-ID: Note that I've fixed the workshop site at the DNR and have rebuilt the zip file. Problem should be fixed now. Steve >>> Frank Warmerdam 11/4/2004 7:27:49 PM >>> R. Paul Warriner wrote: > Hello Ethan, > > Interesting, keeping in mind I am > novice, I commented out the second NAME > instance, and voila; it worked. > > Funny, 4.2 didn't care, but 4.4 does. > > It is the workshop - itasca.map file, > with the 3rd line "NAME cities": > LAYER > NAME mcd90py2_anno > NAME cities > TYPE ANNOTATION > DATA mcd90py2 > STATUS OFF > LABELITEM "city_name" > CLASSITEM "city_name" > LABELMAXSCALE 500000 > CLASS > EXPRESSION /./ > LABEL > COLOR 0 0 0 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > TYPE BITMAP > SIZE MEDIUM > POSITION CC > PARTIALS FALSE > BUFFER 2 > END > END Paul, Sean pointed out that there was a bug fix related to this. In 4.4 we try to error out on multiple defined values for stuff like NAME. It is an improvement ... really! In the past the first name was ignored and the second was used but if the second was far down in a complex layer definition it would be easy to miss it and not know why referring to the layer by it's first name didn't work. Best regards, -- ---------------------------------------+-------------------------------------- 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 mapserver_konf at CENTRUM.SK Fri Nov 5 14:34:36 2004 From: mapserver_konf at CENTRUM.SK (Ing.Peter Misovic) Date: Fri, 5 Nov 2004 23:34:36 +0100 Subject: proj.4 4.4.9 and mapserver In-Reply-To: <418BF976.3060300@pobox.com> Message-ID: Hello Frank, Friday, November 5, 2004, 11:06:46 PM, you wrote: > Ing.Peter Misovic wrote: >> Hi , >> how can I see, it is OK now with sending my messages.Please, my newbie >> question is. Must I configure and make mapserver binary again If a configure >> and make a new version of proj.4 (4.4.9)? > Peter, > Generally speaking that would be a good idea, though in this case I know there > are no issues with replacing 4.4.8 with 4.4.9 for mapserver. So, in this case > you don't have to. > Best regards, OK Thaks for Your informations. Peter From mapserver_konf at CENTRUM.SK Fri Nov 5 14:34:05 2004 From: mapserver_konf at CENTRUM.SK (Ing.Peter Misovic) Date: Fri, 5 Nov 2004 23:34:05 +0100 Subject: proj.4 4.4.9 and mapserver In-Reply-To: <200411051411.04026.tylermitchell@shaw.ca> Message-ID: Hello Tyler, Friday, November 5, 2004, 11:11:03 PM, you wrote: > I would say 'no' - not unless there were major changes with the new proj > version. > Tyler > On November 5, 2004 01:48 pm, Ing.Peter Misovic wrote: >> Hi , >> how can I see, it is OK now with sending my messages.Please, my newbie >> question is. Must I configure and make mapserver binary again If a >> configure and make a new version of proj.4 (4.4.9)? Thanks >> >> --------------------------------------------------------- >> http://www.morfeo.sk/ - Morfeo.sk - ?pecialista na vyh?ad?vanie na >> Slovensku! Ok, thank You. Peter From nasirmaan at HOTMAIL.COM Fri Nov 5 16:44:42 2004 From: nasirmaan at HOTMAIL.COM (nasir maan) Date: Sat, 6 Nov 2004 00:44:42 +0000 Subject: Mapserv.exe Message-ID: An HTML attachment was scrubbed... URL: From paul at WARRINER.US Fri Nov 5 17:02:37 2004 From: paul at WARRINER.US (R. Paul Warriner) Date: Fri, 5 Nov 2004 20:02:37 -0500 Subject: workshop error Message-ID: Thanks Steve ---- Original message ---- >Date: Fri, 5 Nov 2004 17:27:15 -0600 >From: Steve Lime >Subject: Re: [UMN_MAPSERVER-USERS] workshop error >To: MAPSERVER-USERS at lists.umn.edu > >Note that I've fixed the workshop site at the DNR and have rebuilt the >zip file. Problem should be fixed now. > >Steve > >>>> Frank Warmerdam 11/4/2004 7:27:49 PM >>> >R. Paul Warriner wrote: >> Hello Ethan, >> >> Interesting, keeping in mind I am >> novice, I commented out the second NAME >> instance, and voila; it worked. >> >> Funny, 4.2 didn't care, but 4.4 does. >> >> It is the workshop - itasca.map file, >> with the 3rd line "NAME cities": >> LAYER >> NAME mcd90py2_anno >> NAME cities >> TYPE ANNOTATION >> DATA mcd90py2 >> STATUS OFF >> LABELITEM "city_name" >> CLASSITEM "city_name" >> LABELMAXSCALE 500000 >> CLASS >> EXPRESSION /./ >> LABEL >> COLOR 0 0 0 >> SHADOWCOLOR 218 218 218 >> SHADOWSIZE 2 2 >> TYPE BITMAP >> SIZE MEDIUM >> POSITION CC >> PARTIALS FALSE >> BUFFER 2 >> END >> END > >Paul, > >Sean pointed out that there was a bug fix related to this. In 4.4 we >try >to error out on multiple defined values for stuff like NAME. It is an >improvement ... really! In the past the first name was ignored and >the >second was used but if the second was far down in a complex layer >definition >it would be easy to miss it and not know why referring to the layer by >it's >first name didn't work. > >Best regards, >-- >---------------------------------------+-------------------------------------- >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 test at STIGASCORP.COM Fri Nov 5 18:59:01 2004 From: test at STIGASCORP.COM (Chris) Date: Fri, 5 Nov 2004 21:59:01 -0500 Subject: thread safe implementations In-Reply-To: <1099644038.4278.7.camel@localhost> Message-ID: You don't need java to show a mapserver map in a java webapp. What I mean by a 'java interface' is exactly that. A java library that allows you to make calls to mapserver and return the mapserver cgi variables in some java object. Chris -----Original Message----- From: Umberto Nicoletti [mailto:unicoletti at PROMETEO.IT] Sent: Friday, November 05, 2004 3:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] thread safe implementations Chris, it is not clear to me what do you mean by 'java interface to mapserver'. What I need (and have partly developed 'in house') is to show a map in a webapp and run queries on it with a browser interface. Last time I looked Geoserver did not implement it, but I haven't looked thoroughly. Regards, Umberto On Thu, 2004-11-04 at 14:37, Chris wrote: > Umberto, I would like to have a java interface to Mapserver. Have you used > Geoserver? They have a java implementation of a WMS. I'm not sure what the > performance is like, but it would be nice to have a similar interface to > Mapserver. > > Chris > > -----Original Message----- > From: Umberto Nicoletti [mailto:unicoletti at PROMETEO.IT] > Sent: Thursday, November 04, 2004 2:52 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] thread safe implementations > > > Dan, > if by creating a java implementation you mean writing a web app to deliver > the > same (or subset) of the functionality the cgi does, then I am writing one. > > I think I am one of the few java mapscript users around :-) > > Regards, > umberto > > Quoting Sean Gillies : > > > Dan, > > > > It's not clear to me what you mean by creating a java implementation > > on your own. Implementation of what? Do you mean a programming API > > like the php mapscript module? > > > > If this is what you mean, you should look at the Java stuff that > > you can generate using SWIG. In mapserver versions 4.2.4+ and in > > the 4.4.0 beta1 there is a Java makefile under mapserver/mapscript/java. > > It seems to work, but as I've said -- I'm not a Java user and so am > > not beating on the Java mapscript module heavily enough or often > > enough to say anything about its readiness. > > > > Sean > > > > On Nov 3, 2004, at 10:37 AM, Dan Barron wrote: > > > > > Hmmm - I was really hoping someone had done (or attempted) a java > > > implementation - I'm not versed in Zope or Python. Well, I guess I > > > will > > > attempt to create a java implementation on my own. > > > > > > Thanks Sean. > > > > > > Dan > > > > > > At 01:10 PM 11/2/2004, Sean Gillies wrote: > > >> On Nov 2, 2004, at 10:47 AM, Dan Barron wrote: > > >> > > >>> Hello, > > >>> > > >>> Just curious what the current consensus and recommendations are for > > >>> creating a thread safe front end or wrapper for mapserver in either > > >>> php or > > >>> java? I'm assuming that mapserver is still not thread safe - that > > >>> correct? > > >>> > > >>> Thanks! > > >>> > > >>> Dan > > >> > > >> Dan, > > >> > > >> I caught and fixed three sources of potential threading problems > > >> before > > >> the 4.2.4 release and these fixes will also be in 4.4.0. I think > > >> we're > > >> close to thread safety, but it's hard to say without more testing. As > > >> far as I know, my ZMapServer (Zope + Python mapscript) software is the > > >> only thing out there that is using MapServer in a multi-threaded > > >> environment. It works, but is not a complete proof of thread safety. > > >> > > >> There remains much work to be done to in improving MapServer's > > >> threaded performance. The single lexer for parsing mapfiles and > > >> class expressions is a bottleneck that will be addressed in the > > >> future. > > >> > > >> cheers, > > >> Sean > > >> > > >> -- > > >> Sean Gillies > > >> sgillies at frii dot com > > >> http://users.frii.com/sgillies > > > > > From siki at AGT.BME.HU Sat Nov 6 03:29:26 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sat, 6 Nov 2004 10:29:26 -0100 Subject: Mapserv.exe {Scanned} In-Reply-To: Message-ID: Hi, Try to run mapserv.exe from a command (dos) window with the -v switch mapserv.exe -v it is a way to test if it's working. You will get somethig like this: MapServer version 4.3 OUTPUT=GIF OUTPUT=PNG .... To test from your browser you must give a query string in the url http://localhost/cgi-bin/mapserv.exe?map=path_to_your_map_file&mode=map but you must create your map file before. You had better to start with Itasca demo Bye Zoltan On Sat, 6 Nov 2004, nasir maan wrote: > > Hi, > > I installed mapserver but when I tried to test it by putting > > http://localhost/cgi-bin/mapserv.exe > > it gives me following error in error log file; > > [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe > > Can anybody tell me where is problem? > > Regards, > Mahmood, Nasir > > J.-G.-NATHUSIUS-RING 1/408 > 39106, Magdeburg > Germany. > Phone: +49-391-2428300 (Home) > +49-176-24211916 (Mobile) > > > > ________________________________________________________________________________ > Express yourself instantly with MSN Messenger! MSN Messenger Download > today it's FREE! > From jochen at INGENIEURTEAM2.COM Sat Nov 6 01:01:18 2004 From: jochen at INGENIEURTEAM2.COM (Jochen Grefe) Date: Sat, 6 Nov 2004 10:01:18 +0100 Subject: csharp Message-ID: I saw the csharp stuff under mapscript on cvs. Can anyone provide the dll and information about the status. I can't compile it from source,there is something missing, but this could happen because my selfcompiled mapserv.exe is only running the -v command parameter and on cgi it crashes. So, to reduce the 'how to compile on win32' questions ;-) it would be nice to get some precompiled. Best regards, Jochen -------------- next part -------------- An HTML attachment was scrubbed... URL: From javiermartin at NETSYSTEMSI.COM Sat Nov 6 02:47:22 2004 From: javiermartin at NETSYSTEMSI.COM (Javier Mart=?ISO-8859-1?Q?=EDn?=) Date: Sat, 6 Nov 2004 04:47:22 -0600 Subject: Problems with oMapNavigator and oMap commands Message-ID: Hi all, I am trying to add a search feature into the application generated by maplab. The problem is the main map doesn't make zoomin to object looked for, but not show any error. Only change the scalebar, nothing more. The code seems works well, find the point looked for, but it doesn't make zoomin. The Code: if ($http_form_vars["nombre"]) { $nombre = $http_form_vars["nombre"]; echo $nombre; $oldextent = $oMapSession->oMap->extent; $capa = $oMapSession->oMap->getLayerByname("puntos"); $capa->queryByAttributes("NOMCALLE",$nombre,MS_SINGLE); if ($capa->getNumResults() > 0) { echo "Ha encontrado"; $oresult = $capa->getResult(0); $capa->open(); $oshape = $capa->getShape($oresult->tileindex,$oresult->shapeindex); $oextent = $oshape->bounds; //echo " ".$oextent->minx." ".$oextent->miny." "; //echo $oextent->maxx." ".$oextent->maxy." "; $oextent->set("minx",$oextent->minx - 10); $oextent->set("miny",$oextent->miny - 10); $oextent->set("maxx",$oextent->maxx + 10); $oextent->set("maxy",$oextent->maxy + 10); $oshape->free(); $capa->close(); $sessWidth = $oMapSession->oMap->width; $sessHeight = $oMapSession->oMap->height; $px1=$sessWidth/($oldextent->maxx-$oldextent->minx)*($oextent->minx-$oldextent->minx); $px2=$sessWidth/($oldextent->maxx-$oldextent->minx)*($oextent->maxx-$oldextent->minx); $py1=$sessHeight/($oldextent->maxy-$oldextent->miny)*($oldextent->maxy-$oextent->maxy); $py2=$sessHeight/($oldextent->maxy-$oldextent->miny)*($oldextent->maxy-$oextent->miny); $pxX=($px1 + $px2)/2; $pyY=($py1 + $py2)/2; echo " pxX: ".$pxX." pyY: ".$pyY." "; echo " Exe MapNavigator "; $oMapNavigator->zoomPoint(8, $pxX, $pyY); // I have tried with // this, with the same result $img = $oMapSession->oMap->draw(); $img->saveWebImage(); // The image saved by this command // is the image produced by // "$oMapNavigator->zoomPoint(8, $pxX, $pyY);", // but why don't change map image, // and only change the scale bar???? // And this, with the same result: //$point = ms_newPointObj(); //$point->setXY($pxX,$pyY); //$oMapSession->oMap->zoompoint(8,$point,400,300,$oldextent); } } Why map image never change with oMapNavigator or oMap command? . Maybe i need something more?. My System: PHP 4.3.7 MapLab 2.2 MapServer/PHPMapScript 4.2.5 From mszpak at WP.PL Sat Nov 6 04:32:36 2004 From: mszpak at WP.PL (=?ISO-8859-2?Q?Marcin_Zaj=B1czkowski?=) Date: Sat, 6 Nov 2004 13:32:36 +0100 Subject: Defining MapScript log file Message-ID: Hi, Is it possible to change file when MapScript will write their log? I have no access to Apache logs and can't set global enviroment variable. I tried with in .map file and some other options, but without result. Thanks for reply Marcin From superbla3000 at GMX.NET Sat Nov 6 16:22:03 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Sun, 7 Nov 2004 01:22:03 +0100 Subject: shapefile with (php)mapscript Message-ID: hello, I have lots of points in mysql and would like to write them in a shapefile. I think shapefiles are faster than a mysql query, right? Does anyone have an example, how to write a line shapefile with (php)mapscript? Thanks Joerg From paul at WARRINER.US Sun Nov 7 04:54:41 2004 From: paul at WARRINER.US (R. Paul Warriner) Date: Sun, 7 Nov 2004 07:54:41 -0500 Subject: 4.4.0b2 MAKE error Message-ID: Curious if anyone else has seen the following make error, before I try downloading another copy. CONFIGURE went fine, but MAKE ouput follows. Thanks, Paul MAKE ouput ---------- gcc -c -O2 -fPIC -Wall - DIGNORE_MISSING_DATA -DNEED_STRLCAT - DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H - DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_SVR -DUSE_WFS_LYR - DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT - DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_PDF - DUSE_OGR -DUSE_GDAL -DUSE_GEOS - DUSE_ICONV -DUSE_POSTGIS - I/usr/include - I/usr/local/include - I/usr/local/include -I/usr/include - I maptemplate.c -o maptemplate.o gcc: no input files make: *** [maptemplate.o] Error 1 From paul at WARRINER.US Sun Nov 7 05:12:58 2004 From: paul at WARRINER.US (R. Paul Warriner) Date: Sun, 7 Nov 2004 08:12:58 -0500 Subject: DISREGARD - 4.4.0b2 MAKE error Message-ID: I'm missing a library somewhere, since my working beta1 stopped compiling. :( From mtperry78 at SBCGLOBAL.NET Sun Nov 7 08:31:12 2004 From: mtperry78 at SBCGLOBAL.NET (Matthew Perry) Date: Sun, 7 Nov 2004 08:31:12 -0800 Subject: 4.4.0b2 MAKE error In-Reply-To: <200411071254.BWG87591@ms9.netsolmail.com> Message-ID: Paul, I had the same problem. I was able to solve it by changing the configure options from --with-libiconv=/usr/local/lib TO --with-libiconv=/usr/local/ Either way, configure claims success at finding libiconv. But make ONLY works with the latter... strange. Maybe a bug?? I can't say how or why this changed since 4.2.x... maybe the new configure script is pickier about paths names? Wonder why configure didn't pick up on it? Matt Perry Humboldt State University --- "R. Paul Warriner" wrote: > Curious if anyone else has seen the > following make error, before I try > downloading another copy. > > CONFIGURE went fine, > but MAKE ouput follows. > > Thanks, > Paul > > MAKE ouput > ---------- > gcc -c -O2 -fPIC -Wall - > DIGNORE_MISSING_DATA -DNEED_STRLCAT - > DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H - > DUSE_WMS_SVR -DUSE_WMS_LYR - > DUSE_WFS_SVR -DUSE_WFS_LYR - > DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - > DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT - > DGD_HAS_GDIMAGEGIFPTR - > DGD_HAS_GETBITMAPFONTS -DUSE_PDF - > DUSE_OGR -DUSE_GDAL -DUSE_GEOS - > DUSE_ICONV -DUSE_POSTGIS - > I/usr/include - > I/usr/local/include - > I/usr/local/include -I/usr/include - > I maptemplate.c -o maptemplate.o > gcc: no input files > make: *** [maptemplate.o] Error 1 > From test at STIGASCORP.COM Sun Nov 7 17:46:03 2004 From: test at STIGASCORP.COM (Chris) Date: Sun, 7 Nov 2004 20:46:03 -0500 Subject: 4.4.0b2 MAKE error In-Reply-To: <20041107163112.93138.qmail@web80101.mail.yahoo.com> Message-ID: I had the same problem. I set the variable LDFLAGS and everything worked fine: LDFLAGS=-L/usr/local/lib Chris -----Original Message----- From: Matthew Perry [mailto:mtperry78 at SBCGLOBAL.NET] Sent: Sunday, November 07, 2004 11:31 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] 4.4.0b2 MAKE error Paul, I had the same problem. I was able to solve it by changing the configure options from --with-libiconv=/usr/local/lib TO --with-libiconv=/usr/local/ Either way, configure claims success at finding libiconv. But make ONLY works with the latter... strange. Maybe a bug?? I can't say how or why this changed since 4.2.x... maybe the new configure script is pickier about paths names? Wonder why configure didn't pick up on it? Matt Perry Humboldt State University --- "R. Paul Warriner" wrote: > Curious if anyone else has seen the > following make error, before I try > downloading another copy. > > CONFIGURE went fine, > but MAKE ouput follows. > > Thanks, > Paul > > MAKE ouput > ---------- > gcc -c -O2 -fPIC -Wall - > DIGNORE_MISSING_DATA -DNEED_STRLCAT - > DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H - > DUSE_WMS_SVR -DUSE_WMS_LYR - > DUSE_WFS_SVR -DUSE_WFS_LYR - > DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - > DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT - > DGD_HAS_GDIMAGEGIFPTR - > DGD_HAS_GETBITMAPFONTS -DUSE_PDF - > DUSE_OGR -DUSE_GDAL -DUSE_GEOS - > DUSE_ICONV -DUSE_POSTGIS - > I/usr/include - > I/usr/local/include - > I/usr/local/include -I/usr/include - > I maptemplate.c -o maptemplate.o > gcc: no input files > make: *** [maptemplate.o] Error 1 > From dbarron at DSWLLC.COM Sun Nov 7 20:55:40 2004 From: dbarron at DSWLLC.COM (Dan Barron) Date: Sun, 7 Nov 2004 20:55:40 -0800 Subject: thread safe implementations In-Reply-To: <883C25F2-2E78-11D9-AC9B-000D9329D732@frii.com> Message-ID: Sean/Umberto, I was able to compile java mapscript - however when I try to load the library within the sample java app to prove it works, I get an "UnsatisfiedLinkError" with "undefined symbol: msGMLWriteQuery" - I've looked around and can't seem to figure out what I am missing. Any ideas why I am getting this? Thanks, Dan At 07:45 AM 11/4/2004, Sean Gillies wrote: >Dan, > >Truly, the Java mapscript had been abandoned for a while. Then Umberto >stepped forward and contributed a new Makefile and patches, and it seems >to be in a workable state. I've also fixed the most obvious threading >issues in MapServer itself. > >I'd really appreciate it if the two of you would download the new 4.4.0 >beta releases and try them out. Make some servlets and pound on them >and >see if Java mapscript is reliable. I think this is really the only way >to know for sure. > >BTW, once you have MapServer itself compiled, the Java Makefile in 4.4.0 >works fine with FC2. > >Sean > >On Nov 4, 2004, at 8:12 AM, Dan Barron wrote: > >>Umberto, >> >>I'm not going to try to recreate the functionality of the cgi - I'm not >>fully sure yet what absolute path I will take - I really have not done >>much >>threaded java code. I've looked at the java mapscript - and your map >>server wiki entries for compiling java mapscript - I'm not convinced I >>have >>a good compile yet (platform is Fedora Core 2). Is the java mapscript >>viable at this point? I have read posts from earlier this year saying >>it >>looked abandoned? >> >>I would really like to get to an all java solution if possible - I >>currently use a combination of java/php (java opens a connection to a >>php >>script then parses the returned data) - not the best but it seems to >>work >>fine under light loads. >> >>I'd be interested to hear more about what you are up to - it sounds >>interesting. I would really like to just build a threaded front end >>(maybe >>a thread pool?) to the map server functionality via java mapscript and >>nothing more. >> >>Thanks, >>Dan >> >>At 11:51 PM 11/3/2004, unicoletti at prometeo.it wrote: >>>Dan, >>>if by creating a java implementation you mean writing a web app to >>>deliver the >>>same (or subset) of the functionality the cgi does, then I am >>>writing one. >>> >>>I think I am one of the few java mapscript users around :-) >>> >>>Regards, >>>umberto >>> >>>Quoting Sean Gillies : >>> >>>>Dan, >>>> >>>>It's not clear to me what you mean by creating a java implementation >>>>on your own. Implementation of what? Do you mean a programming API >>>>like the php mapscript module? >>>> >>>>If this is what you mean, you should look at the Java stuff that >>>>you can generate using SWIG. In mapserver versions 4.2.4+ and in >>>>the 4.4.0 beta1 there is a Java makefile under >>>>mapserver/mapscript/java. >>>>It seems to work, but as I've said -- I'm not a Java user and so am >>>>not beating on the Java mapscript module heavily enough or often >>>>enough to say anything about its readiness. >>>> >>>>Sean >>>> >>>>On Nov 3, 2004, at 10:37 AM, Dan Barron wrote: >>>> >>>>>Hmmm - I was really hoping someone had done (or attempted) a java >>>>>implementation - I'm not versed in Zope or Python. Well, I guess I >>>>>will >>>>>attempt to create a java implementation on my own. >>>>> >>>>>Thanks Sean. >>>>> >>>>>Dan >>>>> >>>>>At 01:10 PM 11/2/2004, Sean Gillies wrote: >>>>>>On Nov 2, 2004, at 10:47 AM, Dan Barron wrote: >>>>>> >>>>>>>Hello, >>>>>>> >>>>>>>Just curious what the current consensus and recommendations are >>>>>>>for >>>>>>>creating a thread safe front end or wrapper for mapserver in >>>>>>>either >>>>>>>php or >>>>>>>java? I'm assuming that mapserver is still not thread safe - that >>>>>>>correct? >>>>>>> >>>>>>>Thanks! >>>>>>> >>>>>>>Dan >>>>>> >>>>>>Dan, >>>>>> >>>>>>I caught and fixed three sources of potential threading problems >>>>>>before >>>>>>the 4.2.4 release and these fixes will also be in 4.4.0. I think >>>>>>we're >>>>>>close to thread safety, but it's hard to say without more testing. >>>>>> As >>>>>>far as I know, my ZMapServer (Zope + Python mapscript) software is >>>>>>the >>>>>>only thing out there that is using MapServer in a multi-threaded >>>>>>environment. It works, but is not a complete proof of thread >>>>>>safety. >>>>>> >>>>>>There remains much work to be done to in improving MapServer's >>>>>>threaded performance. The single lexer for parsing mapfiles and >>>>>>class expressions is a bottleneck that will be addressed in the >>>>>>future. >>>>>> >>>>>>cheers, >>>>>>Sean >>>>>> >>>>>>-- >>>>>>Sean Gillies >>>>>>sgillies at frii dot com >>>>>>http://users.frii.com/sgillies From javiermartin at NETSYSTEMSI.COM Mon Nov 8 00:47:28 2004 From: javiermartin at NETSYSTEMSI.COM (Javier Mart=?ISO-8859-1?Q?=EDn?=) Date: Mon, 8 Nov 2004 02:47:28 -0600 Subject: Problems with oMapNavigator and oMap commands Message-ID: Hi all, I am trying to add a search feature into the application generated by maplab. The problem is the main map doesn't make zoomin to object looked for, but not show any error. Only change the scalebar, nothing more. The code seems works well, find the point looked for, but it doesn't make zoomin. The Code: if ($http_form_vars["nombre"]) { $nombre = $http_form_vars["nombre"]; echo $nombre; $oldextent = $oMapSession->oMap->extent; $capa = $oMapSession->oMap->getLayerByname("puntos"); $capa->queryByAttributes("NOMCALLE",$nombre,MS_SINGLE); if ($capa->getNumResults() > 0) { echo "Ha encontrado"; $oresult = $capa->getResult(0); $capa->open(); $oshape = $capa->getShape($oresult->tileindex,$oresult->shapeindex); $oextent = $oshape->bounds; //echo " ".$oextent->minx." ".$oextent->miny." "; //echo $oextent->maxx." ".$oextent->maxy." "; $oextent->set("minx",$oextent->minx - 10); $oextent->set("miny",$oextent->miny - 10); $oextent->set("maxx",$oextent->maxx + 10); $oextent->set("maxy",$oextent->maxy + 10); $oshape->free(); $capa->close(); $sessWidth = $oMapSession->oMap->width; $sessHeight = $oMapSession->oMap->height; $px1=$sessWidth/($oldextent->maxx-$oldextent->minx)*($oextent->minx-$oldextent->minx); $px2=$sessWidth/($oldextent->maxx-$oldextent->minx)*($oextent->maxx-$oldextent->minx); $py1=$sessHeight/($oldextent->maxy-$oldextent->miny)*($oldextent->maxy-$oextent->maxy); $py2=$sessHeight/($oldextent->maxy-$oldextent->miny)*($oldextent->maxy-$oextent->miny); $pxX=($px1 + $px2)/2; $pyY=($py1 + $py2)/2; echo " pxX: ".$pxX." pyY: ".$pyY." "; echo " Exe MapNavigator "; $oMapNavigator->zoomPoint(8, $pxX, $pyY); // I have tried with // this, with the same result $img = $oMapSession->oMap->draw(); $img->saveWebImage(); // The image saved by this command // is the image produced by // "$oMapNavigator->zoomPoint(8, $pxX, $pyY);", // but why don't change map image, // and only change the scale bar???? // And this, with the same result: //$point = ms_newPointObj(); //$point->setXY($pxX,$pyY); //$oMapSession->oMap->zoompoint(8,$point,400,300,$oldextent); } } Why map image never change with oMapNavigator or oMap command? . Maybe i need something more?. My System: PHP 4.3.7 MapLab 2.2 MapServer/PHPMapScript 4.2.5 From unicoletti at PROMETEO.IT Mon Nov 8 01:22:23 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Mon, 8 Nov 2004 10:22:23 +0100 Subject: thread safe implementations In-Reply-To: <6.0.0.22.0.20041107205020.039fd4b0@taz.dswllc.com> Message-ID: Did you set LD_LIBRARY_PATH or as an alternative edited ld.so.conf and run ldconfig (as root)? Also try running ldconfig on libmapscript.so and see if reports missing libraries. HTH, Umberto On Mon, 2004-11-08 at 05:55, Dan Barron wrote: > Sean/Umberto, > > I was able to compile java mapscript - however when I try to load the > library within the sample java app to prove it works, I get an > "UnsatisfiedLinkError" with "undefined symbol: msGMLWriteQuery" - I've > looked around and can't seem to figure out what I am missing. Any ideas > why I am getting this? > > Thanks, > > Dan > > > At 07:45 AM 11/4/2004, Sean Gillies wrote: > >Dan, > > > >Truly, the Java mapscript had been abandoned for a while. Then Umberto > >stepped forward and contributed a new Makefile and patches, and it seems > >to be in a workable state. I've also fixed the most obvious threading > >issues in MapServer itself. > > > >I'd really appreciate it if the two of you would download the new 4.4.0 > >beta releases and try them out. Make some servlets and pound on them > >and > >see if Java mapscript is reliable. I think this is really the only way > >to know for sure. > > > >BTW, once you have MapServer itself compiled, the Java Makefile in 4.4.0 > >works fine with FC2. > > > >Sean > > > >On Nov 4, 2004, at 8:12 AM, Dan Barron wrote: > > > >>Umberto, > >> > >>I'm not going to try to recreate the functionality of the cgi - I'm not > >>fully sure yet what absolute path I will take - I really have not done > >>much > >>threaded java code. I've looked at the java mapscript - and your map > >>server wiki entries for compiling java mapscript - I'm not convinced I > >>have > >>a good compile yet (platform is Fedora Core 2). Is the java mapscript > >>viable at this point? I have read posts from earlier this year saying > >>it > >>looked abandoned? > >> > >>I would really like to get to an all java solution if possible - I > >>currently use a combination of java/php (java opens a connection to a > >>php > >>script then parses the returned data) - not the best but it seems to > >>work > >>fine under light loads. > >> > >>I'd be interested to hear more about what you are up to - it sounds > >>interesting. I would really like to just build a threaded front end > >>(maybe > >>a thread pool?) to the map server functionality via java mapscript and > >>nothing more. > >> > >>Thanks, > >>Dan > >> > >>At 11:51 PM 11/3/2004, unicoletti at prometeo.it wrote: > >>>Dan, > >>>if by creating a java implementation you mean writing a web app to > >>>deliver the > >>>same (or subset) of the functionality the cgi does, then I am > >>>writing one. > >>> > >>>I think I am one of the few java mapscript users around :-) > >>> > >>>Regards, > >>>umberto > >>> > >>>Quoting Sean Gillies : > >>> > >>>>Dan, > >>>> > >>>>It's not clear to me what you mean by creating a java implementation > >>>>on your own. Implementation of what? Do you mean a programming API > >>>>like the php mapscript module? > >>>> > >>>>If this is what you mean, you should look at the Java stuff that > >>>>you can generate using SWIG. In mapserver versions 4.2.4+ and in > >>>>the 4.4.0 beta1 there is a Java makefile under > >>>>mapserver/mapscript/java. > >>>>It seems to work, but as I've said -- I'm not a Java user and so am > >>>>not beating on the Java mapscript module heavily enough or often > >>>>enough to say anything about its readiness. > >>>> > >>>>Sean > >>>> > >>>>On Nov 3, 2004, at 10:37 AM, Dan Barron wrote: > >>>> > >>>>>Hmmm - I was really hoping someone had done (or attempted) a java > >>>>>implementation - I'm not versed in Zope or Python. Well, I guess I > >>>>>will > >>>>>attempt to create a java implementation on my own. > >>>>> > >>>>>Thanks Sean. > >>>>> > >>>>>Dan > >>>>> > >>>>>At 01:10 PM 11/2/2004, Sean Gillies wrote: > >>>>>>On Nov 2, 2004, at 10:47 AM, Dan Barron wrote: > >>>>>> > >>>>>>>Hello, > >>>>>>> > >>>>>>>Just curious what the current consensus and recommendations are > >>>>>>>for > >>>>>>>creating a thread safe front end or wrapper for mapserver in > >>>>>>>either > >>>>>>>php or > >>>>>>>java? I'm assuming that mapserver is still not thread safe - that > >>>>>>>correct? > >>>>>>> > >>>>>>>Thanks! > >>>>>>> > >>>>>>>Dan > >>>>>> > >>>>>>Dan, > >>>>>> > >>>>>>I caught and fixed three sources of potential threading problems > >>>>>>before > >>>>>>the 4.2.4 release and these fixes will also be in 4.4.0. I think > >>>>>>we're > >>>>>>close to thread safety, but it's hard to say without more testing. > >>>>>> As > >>>>>>far as I know, my ZMapServer (Zope + Python mapscript) software is > >>>>>>the > >>>>>>only thing out there that is using MapServer in a multi-threaded > >>>>>>environment. It works, but is not a complete proof of thread > >>>>>>safety. > >>>>>> > >>>>>>There remains much work to be done to in improving MapServer's > >>>>>>threaded performance. The single lexer for parsing mapfiles and > >>>>>>class expressions is a bottleneck that will be addressed in the > >>>>>>future. > >>>>>> > >>>>>>cheers, > >>>>>>Sean > >>>>>> > >>>>>>-- > >>>>>>Sean Gillies > >>>>>>sgillies at frii dot com > >>>>>>http://users.frii.com/sgillies > From unicoletti at PROMETEO.IT Mon Nov 8 01:37:43 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Mon, 8 Nov 2004 10:37:43 +0100 Subject: thread safe implementations In-Reply-To: Message-ID: Hi Chris, On Sat, 2004-11-06 at 03:59, Chris wrote: > You don't need java to show a mapserver map in a java webapp. > You need it if you do not want to run mapserver as a cgi-bin, but as a native servlet/jsp. Regards, Umberto > What I mean by a 'java interface' is exactly that. A java library that > allows you to make calls to mapserver and return the mapserver cgi variables > in some java object. > Chris > > -----Original Message----- > From: Umberto Nicoletti [mailto:unicoletti at PROMETEO.IT] > Sent: Friday, November 05, 2004 3:41 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] thread safe implementations > > > Chris, > it is not clear to me what do you mean by 'java interface to mapserver'. > > What I need (and have partly developed 'in house') is to show a map in a > webapp and run queries on it with a browser interface. Last time I > looked Geoserver did not implement it, but I haven't looked thoroughly. > > Regards, > Umberto > > On Thu, 2004-11-04 at 14:37, Chris wrote: > > Umberto, I would like to have a java interface to Mapserver. Have you > used > > Geoserver? They have a java implementation of a WMS. I'm not sure what > the > > performance is like, but it would be nice to have a similar interface to > > Mapserver. > > > > Chris > > > > -----Original Message----- > > From: Umberto Nicoletti [mailto:unicoletti at PROMETEO.IT] > > Sent: Thursday, November 04, 2004 2:52 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] thread safe implementations > > > > > > Dan, > > if by creating a java implementation you mean writing a web app to deliver > > the > > same (or subset) of the functionality the cgi does, then I am writing > one. > > > > I think I am one of the few java mapscript users around :-) > > > > Regards, > > umberto > > > > Quoting Sean Gillies : > > > > > Dan, > > > > > > It's not clear to me what you mean by creating a java implementation > > > on your own. Implementation of what? Do you mean a programming API > > > like the php mapscript module? > > > > > > If this is what you mean, you should look at the Java stuff that > > > you can generate using SWIG. In mapserver versions 4.2.4+ and in > > > the 4.4.0 beta1 there is a Java makefile under mapserver/mapscript/java. > > > It seems to work, but as I've said -- I'm not a Java user and so am > > > not beating on the Java mapscript module heavily enough or often > > > enough to say anything about its readiness. > > > > > > Sean > > > > > > On Nov 3, 2004, at 10:37 AM, Dan Barron wrote: > > > > > > > Hmmm - I was really hoping someone had done (or attempted) a java > > > > implementation - I'm not versed in Zope or Python. Well, I guess I > > > > will > > > > attempt to create a java implementation on my own. > > > > > > > > Thanks Sean. > > > > > > > > Dan > > > > > > > > At 01:10 PM 11/2/2004, Sean Gillies wrote: > > > >> On Nov 2, 2004, at 10:47 AM, Dan Barron wrote: > > > >> > > > >>> Hello, > > > >>> > > > >>> Just curious what the current consensus and recommendations are for > > > >>> creating a thread safe front end or wrapper for mapserver in either > > > >>> php or > > > >>> java? I'm assuming that mapserver is still not thread safe - that > > > >>> correct? > > > >>> > > > >>> Thanks! > > > >>> > > > >>> Dan > > > >> > > > >> Dan, > > > >> > > > >> I caught and fixed three sources of potential threading problems > > > >> before > > > >> the 4.2.4 release and these fixes will also be in 4.4.0. I think > > > >> we're > > > >> close to thread safety, but it's hard to say without more testing. > As > > > >> far as I know, my ZMapServer (Zope + Python mapscript) software is > the > > > >> only thing out there that is using MapServer in a multi-threaded > > > >> environment. It works, but is not a complete proof of thread safety. > > > >> > > > >> There remains much work to be done to in improving MapServer's > > > >> threaded performance. The single lexer for parsing mapfiles and > > > >> class expressions is a bottleneck that will be addressed in the > > > >> future. > > > >> > > > >> cheers, > > > >> Sean > > > >> > > > >> -- > > > >> Sean Gillies > > > >> sgillies at frii dot com > > > >> http://users.frii.com/sgillies > > > > > > > From unicoletti at PROMETEO.IT Mon Nov 8 02:14:08 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Mon, 8 Nov 2004 11:14:08 +0100 Subject: thread safe implementations In-Reply-To: <1099905743.4477.42.camel@localhost> Message-ID: After more careful reading I found an error, sorry On Mon, 2004-11-08 at 10:22, Umberto Nicoletti wrote: > Did you set LD_LIBRARY_PATH or as an alternative edited ld.so.conf and > run ldconfig (as root)? > > Also try running ldconfig on libmapscript.so and see if reports missing > libraries. Run ldd, not ldconfig. You may try ldd -r , this would report missing functions and data (see man ldd). BTW: what platform are you running (Linux/GNU I assume)? Umberto > > HTH, > Umberto > > On Mon, 2004-11-08 at 05:55, Dan Barron wrote: > > Sean/Umberto, > > > > I was able to compile java mapscript - however when I try to load the > > library within the sample java app to prove it works, I get an > > "UnsatisfiedLinkError" with "undefined symbol: msGMLWriteQuery" - I've > > looked around and can't seem to figure out what I am missing. Any ideas > > why I am getting this? > > > > Thanks, > > > > Dan > > > > > > At 07:45 AM 11/4/2004, Sean Gillies wrote: > > >Dan, > > > > > >Truly, the Java mapscript had been abandoned for a while. Then Umberto > > >stepped forward and contributed a new Makefile and patches, and it seems > > >to be in a workable state. I've also fixed the most obvious threading > > >issues in MapServer itself. > > > > > >I'd really appreciate it if the two of you would download the new 4.4.0 > > >beta releases and try them out. Make some servlets and pound on them > > >and > > >see if Java mapscript is reliable. I think this is really the only way > > >to know for sure. > > > > > >BTW, once you have MapServer itself compiled, the Java Makefile in 4.4.0 > > >works fine with FC2. > > > > > >Sean > > > > > >On Nov 4, 2004, at 8:12 AM, Dan Barron wrote: > > > > > >>Umberto, > > >> > > >>I'm not going to try to recreate the functionality of the cgi - I'm not > > >>fully sure yet what absolute path I will take - I really have not done > > >>much > > >>threaded java code. I've looked at the java mapscript - and your map > > >>server wiki entries for compiling java mapscript - I'm not convinced I > > >>have > > >>a good compile yet (platform is Fedora Core 2). Is the java mapscript > > >>viable at this point? I have read posts from earlier this year saying > > >>it > > >>looked abandoned? > > >> > > >>I would really like to get to an all java solution if possible - I > > >>currently use a combination of java/php (java opens a connection to a > > >>php > > >>script then parses the returned data) - not the best but it seems to > > >>work > > >>fine under light loads. > > >> > > >>I'd be interested to hear more about what you are up to - it sounds > > >>interesting. I would really like to just build a threaded front end > > >>(maybe > > >>a thread pool?) to the map server functionality via java mapscript and > > >>nothing more. > > >> > > >>Thanks, > > >>Dan > > >> > > >>At 11:51 PM 11/3/2004, unicoletti at prometeo.it wrote: > > >>>Dan, > > >>>if by creating a java implementation you mean writing a web app to > > >>>deliver the > > >>>same (or subset) of the functionality the cgi does, then I am > > >>>writing one. > > >>> > > >>>I think I am one of the few java mapscript users around :-) > > >>> > > >>>Regards, > > >>>umberto > > >>> > > >>>Quoting Sean Gillies : > > >>> > > >>>>Dan, > > >>>> > > >>>>It's not clear to me what you mean by creating a java implementation > > >>>>on your own. Implementation of what? Do you mean a programming API > > >>>>like the php mapscript module? > > >>>> > > >>>>If this is what you mean, you should look at the Java stuff that > > >>>>you can generate using SWIG. In mapserver versions 4.2.4+ and in > > >>>>the 4.4.0 beta1 there is a Java makefile under > > >>>>mapserver/mapscript/java. > > >>>>It seems to work, but as I've said -- I'm not a Java user and so am > > >>>>not beating on the Java mapscript module heavily enough or often > > >>>>enough to say anything about its readiness. > > >>>> > > >>>>Sean > > >>>> > > >>>>On Nov 3, 2004, at 10:37 AM, Dan Barron wrote: > > >>>> > > >>>>>Hmmm - I was really hoping someone had done (or attempted) a java > > >>>>>implementation - I'm not versed in Zope or Python. Well, I guess I > > >>>>>will > > >>>>>attempt to create a java implementation on my own. > > >>>>> > > >>>>>Thanks Sean. > > >>>>> > > >>>>>Dan > > >>>>> > > >>>>>At 01:10 PM 11/2/2004, Sean Gillies wrote: > > >>>>>>On Nov 2, 2004, at 10:47 AM, Dan Barron wrote: > > >>>>>> > > >>>>>>>Hello, > > >>>>>>> > > >>>>>>>Just curious what the current consensus and recommendations are > > >>>>>>>for > > >>>>>>>creating a thread safe front end or wrapper for mapserver in > > >>>>>>>either > > >>>>>>>php or > > >>>>>>>java? I'm assuming that mapserver is still not thread safe - that > > >>>>>>>correct? > > >>>>>>> > > >>>>>>>Thanks! > > >>>>>>> > > >>>>>>>Dan > > >>>>>> > > >>>>>>Dan, > > >>>>>> > > >>>>>>I caught and fixed three sources of potential threading problems > > >>>>>>before > > >>>>>>the 4.2.4 release and these fixes will also be in 4.4.0. I think > > >>>>>>we're > > >>>>>>close to thread safety, but it's hard to say without more testing. > > >>>>>> As > > >>>>>>far as I know, my ZMapServer (Zope + Python mapscript) software is > > >>>>>>the > > >>>>>>only thing out there that is using MapServer in a multi-threaded > > >>>>>>environment. It works, but is not a complete proof of thread > > >>>>>>safety. > > >>>>>> > > >>>>>>There remains much work to be done to in improving MapServer's > > >>>>>>threaded performance. The single lexer for parsing mapfiles and > > >>>>>>class expressions is a bottleneck that will be addressed in the > > >>>>>>future. > > >>>>>> > > >>>>>>cheers, > > >>>>>>Sean > > >>>>>> > > >>>>>>-- > > >>>>>>Sean Gillies > > >>>>>>sgillies at frii dot com > > >>>>>>http://users.frii.com/sgillies > > From temiz at DEPREM.GOV.TR Mon Nov 8 02:20:03 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Mon, 8 Nov 2004 12:20:03 +0200 Subject: wrong in reference map coordinates Message-ID: hello I am trying to use reference map with php-mapscript. But, despite all my efforts and having some help from some friends, map coordinates of reference map I have are not correct. To get map coordinates of drawn rectangle on reference map, I have followed this procedure. But I was not able to get correct result. the procedure (javascript code): X = (map_maxx - map_minx) * (image_click_coord_x / image_width) + map_minx Y = (map_maxy - map_miny) * (image_click_coord_y / image_height) + map_miny I have hesitation on one point. Are these map_maxx, map_maxy,map_minx and map_miny values same as extension values in *.map file ? I will appreciate if anyone informs me kind regards Ahmet Temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From gis at UNDPHAIS.ORG.NP Mon Nov 8 03:27:21 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Mon, 8 Nov 2004 17:12:21 +0545 Subject: map coordinates' of a rectangle In-Reply-To: <418A3AAC.6050300@deprem.gov.tr> Message-ID: On Thu, 4 Nov 2004 16:20:28 +0200, temiz wrote: > hello > > my trials yield no correct result. > I have image coordinates of a rectangle (rubber band). > how can I get map coordinates' of this rectangle in the form of > minx,miny,maxx,maxy? > > kind regards > > Ahmet Temiz > > ______________________________________ > Inflex - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > > ______________________________________ > The views and opinions expressed in this e-mail message are the sender's > own > and do not necessarily represent the views and the opinions of > Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal > olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici > nitelikte degildir. > I'm assuming that you want the coordinates of the rubberband in geographic coordinates... Here's what I do: (from the wiki) /** * converts pixel units into map units * * @param int $click_x coordinate X in pixels * @param int $click_y coordinate Y in pixels * @param array $current_extent holds the current extent of the map (XMin, YMin, XMax, YMax) * @global map object * @return array [0]=> X in map units; [1]=> Y in map units */ function click2map ($click_x, $click_y, $current_extent) { global $map; $x_pct = ($click_x / $map->width); $y_pct = 1 - ($click_y / $map->height); $x_map = $current_extent[0] + ( ($current_extent[2] - $current_extent[0]) * $x_pct); $y_map = $current_extent[1] + ( ($current_extent[3] - $current_extent[1]) * $y_pct); return array($x_map, $y_map); } //convert clicked points into geographic coordinates $query_rect_min_xy = click2map($_POST['mapa_x']-$_POST['w'],$_POST['mapa_y'],$current_extent); $query_rect_max_xy = click2map($_POST['mapa_x'],$_POST['mapa_y']-$_POST['h'],$current_extent); where mapa_x and mapa_y are the coordinates of the clicked point; and h and w are the height and width of the rubberband zoom box. $query_rect = ms_newRectObj(); $query_rect->setextent($query_rect_min_xy[0],$query_rect_min_xy[1],$query_rect_max_xy[0],$query_rect_max_xy[1]); ..and so on -- Sandeep Bashyal -- National GIS Officer Humanitarian Assistance Information System (HAIS) United Nations (NEP/01/008) UN House, Pulchowk G.P.O. Box 107 Kathmandu, Nepal Tel: (+977) 01 5543957 (+977) 01 5554304 Cell:(+977) 9841270854 Fax: (+977) 01 5528059 -------------------------------------------------- mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.undp.org.np From margottid at COMUNE.LUGO.RA.IT Mon Nov 8 04:25:05 2004 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Mon, 8 Nov 2004 06:25:05 -0600 Subject: The use of ' Message-ID: >> I use shape files, and in .DBF files I have string values with >> apostrophes inside (e.g.: "Cava de' Tirreni", "Via Dell'Artigianato", >> and so on). When I query my map, MapServer substitutes all apostrophes >> with the string "'" (and prints "Cava de' Tirreni" or "Via >> Dell'Artigianato"). >> > >How do you query your map? Are you using the mapserv CGI with the query templates or some other mechanism such as >WMS, WFS,... ? I query my map through mapserv CGI (using jBox applet). Now I have commented the "switch... case" lines in mapstring.c and recompiled MapServer to avoid the problem. >Could you please file a bug about this in the mapserver bugzilla? Done. Bug #1040. Bye, Daniele From nasirmaan at HOTMAIL.COM Mon Nov 8 07:18:11 2004 From: nasirmaan at HOTMAIL.COM (nasir maan) Date: Mon, 8 Nov 2004 15:18:11 +0000 Subject: msLoadMap(): Message-ID: An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Mon Nov 8 07:36:21 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 8 Nov 2004 10:36:21 -0500 Subject: msLoadMap(): In-Reply-To: Message-ID: nasir maan wrote: > Hi All, > > I got error message > > msLoadMap(): Unable to access file. > (http://localhost/tutorial/example1-1.map) > > against > > *http://localhost/cgi-bin/mapserv.exe?map=http://localhost/tutorial/example1-1.map&mode=map* > Nasir, You need to give a filesystem path, not an url to the map. eg. http://localhost/cgi-bin/mapserv.exe?map=http:/u/web/tutorial/example1-1.map&mode=map Or whatever the local filesystem path to the mapfile is. Best regards, -- ---------------------------------------+-------------------------------------- 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 tjolibois at CLS.FR Mon Nov 8 08:09:05 2004 From: tjolibois at CLS.FR (Tony Jolibois) Date: Mon, 8 Nov 2004 17:09:05 +0100 Subject: GDAL/Opendap : hight resolution dataset Message-ID: Hi all, I have problem reading Opendap dataset with hight resolution. It seems that the GDAL driver doesn't like resolution grid under 0.15?. I can read dataset with a resolution grid = 0.25 for example (I mean latitude = -80, -79.75, -79.5, -79.25, -79 etc...), but 0.125 doesn't work (latitude = -80, -79.875, -79.75, -79.625, -79.5, -79.375 etc...)... Here is the error message I have when I try the 0.125 grid : msDrawMap(): Image handling error. Failed to draw layer named 'CO01'. msDrawRasterLayerGDAL_16BitClassification(): Unable to access file. GDALRasterIO() failed: IReadBlock failed at X offset 0, Y offset 0 An idea ? Best regards, Tony -------------- next part -------------- An HTML attachment was scrubbed... URL: From murilo.yoshida at AGX.COM.BR Mon Nov 8 10:19:52 2004 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Mon, 8 Nov 2004 15:19:52 -0300 Subject: layer group(s)? Message-ID: Hi all, A layer can have more than one group? I wanted to set two groups on a layer, because it belongs to two groups of layers ... is that possible? Thanks, Murilo From eric at GOMOOS.ORG Mon Nov 8 09:44:48 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Mon, 8 Nov 2004 12:44:48 -0500 Subject: layer group(s)? In-Reply-To: <000001c4c5bf$90007130$1364a8c0@parapente> Message-ID: I don't think that is possible, but it is easy enough to create two identical layers but assign one to group one and the second to group two. Eric On Mon, 2004-11-08 at 13:19, Murilo Lacerda Yoshida wrote: > Hi all, > A layer can have more than one group? > I wanted to set two groups on a layer, because it belongs to two > groups of layers ... is that possible? > Thanks, > Murilo > From murilo.yoshida at AGX.COM.BR Mon Nov 8 13:15:03 2004 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Mon, 8 Nov 2004 18:15:03 -0300 Subject: RES: [UMN_MAPSERVER-USERS] layer group(s)? In-Reply-To: <1099935894.1915.48.camel@ubet.gomoos.org> Message-ID: I tried here to do that... Apparently if you set two groups on one layer, the last group assigned is the one that counts... The other one is forgotten ... I'll change the order of the groups here and see what happens. The strange thing is that mapserver doesn't show an error for that. Thanks Eric, Murilo -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Eric Bridger Enviada em: segunda-feira, 8 de novembro de 2004 14:45 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] layer group(s)? I don't think that is possible, but it is easy enough to create two identical layers but assign one to group one and the second to group two. Eric On Mon, 2004-11-08 at 13:19, Murilo Lacerda Yoshida wrote: > Hi all, > A layer can have more than one group? > I wanted to set two groups on a layer, because it belongs to two > groups of layers ... is that possible? > Thanks, > Murilo > From nasirmaan at HOTMAIL.COM Mon Nov 8 12:31:45 2004 From: nasirmaan at HOTMAIL.COM (nasir maan) Date: Mon, 8 Nov 2004 20:31:45 +0000 Subject: mapserv(): Web application error. Message-ID: An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Mon Nov 8 15:44:12 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 8 Nov 2004 22:44:12 -0100 Subject: mapserv(): Web application error. {Scanned} In-Reply-To: Message-ID: Hi, Try to add mode=map to the url: http://localhost/cgi-bin/mapserv.exe?map=C:/Program%20Files/Apache%20Group/ Apace2/htdocs/tutorial/example1-1.map&mode=map The default mode is browse when you must specify a html template too Bye Zoltan On Mon, 8 Nov 2004, nasir maan wrote: > > Hi All, > > I am getting this error message mapserv(): Web application error. No > > I got Internal Server error message: [Tue Nov 09 13:21:16 2004] [error] > [client 127.0.0.1] malformed header from script. Bad header=\x89PNG: > mapserv.exe in the log error file against this:http://localhost/cgi-bin/mapserv.exe?map=C:/Program%20Files/Apache%20Group/Apac > e2/htdocs/tutorial/example1-1.map&mode=map > > Can anybody tell me where is problem? > > Regards, > Mahmood, Nasir > > J.-G.-NATHUSIUS-RING 1/408 > 39106, Magdeburg > Germany. > Phone: +49-391-2428300 (Home) > +49-176-24211916 (Mobile) > > > > ________________________________________________________________________________ > Don't just search. Find. MSN Search Check out the new MSN Search! > From kenlord at GMAIL.COM Mon Nov 8 12:43:02 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Mon, 8 Nov 2004 12:43:02 -0800 Subject: mapserv(): Web application error. In-Reply-To: Message-ID: Hi there, That looks like a fairly typical example of the mapserver DLL files not being placed in your windows/system32 (or equivalent) folder. To test that they are in the right place, try running the mapserv.exe from a DOS prompt. c:\.......\mapserv.exe If no errors pop up, its ok. Cheers, Ken On Mon, 8 Nov 2004 20:31:45 +0000, nasir maan wrote: > > > > Hi All, > > I am getting this error message mapserv(): Web application error. No > template provided. against this: > http://localhost/cgi-bin/mapserv.exe?map=C:/Program%20Files/Apache%20Group/Apache2/htdocs/tutorial/example1-1.map > > I got Internal Server error message: [Tue Nov 09 13:21:16 2004] [error] > [client 127.0.0.1] malformed header from script. Bad header=\x89PNG: > mapserv.exe in the log error file against this: > http://localhost/cgi-bin/mapserv.exe?map=C:/Program%20Files/Apache%20Group/Apache2/htdocs/tutorial/example1-1.map&mode=map > > > Can anybody tell me where is problem? > > Regards, > Mahmood, Nasir > > > J.-G.-NATHUSIUS-RING 1/408 > > 39106, Magdeburg > Germany. > Phone: +49-391-2428300 (Home) > +49-176-24211916 (Mobile) > > > ________________________________ > Don't just search. Find. MSN Search Check out the new MSN Search! -- ============================== Ken Lord B.Sc., A.Dipl.T.H. 7488 Magnolia Terrace Burnaby BC, V5E 4L1 604-777-2171 kenlord at gmail.com kenlord at email.com klord at bgcengineering.com From eric at GOMOOS.ORG Mon Nov 8 13:02:15 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Mon, 8 Nov 2004 16:02:15 -0500 Subject: RES: [UMN_MAPSERVER-USERS] layer group(s)? In-Reply-To: <000001c4c5d8$07afb520$1364a8c0@parapente> Message-ID: On Mon, 2004-11-08 at 16:15, Murilo Lacerda Yoshida wrote: > I tried here to do that... Apparently if you set two groups on one > layer, the last group assigned is the one that counts... The other one > is forgotten ... I'll change the order of the groups here and see what > happens. > The strange thing is that mapserver doesn't show an error for that. > Thanks Eric, > Murilo I'm not sure if you understood my suggestion. Create a new layer identical to the first layer except for the GROUP name. The layer will be included in both groups. LAYER NAME "layer_one" GROUP "group_one" ... END LAYER NAME "layer_one" GROUP "group_two" ... END From woodbri at SWOODBRIDGE.COM Mon Nov 8 13:50:58 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 8 Nov 2004 16:50:58 -0500 Subject: RES: [UMN_MAPSERVER-USERS] layer group(s)? In-Reply-To: <000001c4c5d8$07afb520$1364a8c0@parapente> Message-ID: There was a resent post here or on the dev list regarding the multiple NAME or GROUP tags that only the last is remembered and on the current beta it will now throw an error if you have multiple name tags. -Steve Murilo Lacerda Yoshida wrote: > I tried here to do that... Apparently if you set two groups on one > layer, the last group assigned is the one that counts... The other one > is forgotten ... I'll change the order of the groups here and see what > happens. > The strange thing is that mapserver doesn't show an error for that. > Thanks Eric, > Murilo > > -----Mensagem original----- > De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em > nome de Eric Bridger > Enviada em: segunda-feira, 8 de novembro de 2004 14:45 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Assunto: Re: [UMN_MAPSERVER-USERS] layer group(s)? > > I don't think that is possible, but it is easy enough to create two > identical layers but assign one to group one and the second to group > two. > > Eric > > > On Mon, 2004-11-08 at 13:19, Murilo Lacerda Yoshida wrote: > >> Hi all, >> A layer can have more than one group? >> I wanted to set two groups on a layer, because it belongs to two >>groups of layers ... is that possible? >> Thanks, >> Murilo >> > > From murilo.yoshida at AGX.COM.BR Mon Nov 8 15:01:41 2004 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Mon, 8 Nov 2004 20:01:41 -0300 Subject: RES: [UMN_MAPSERVER-USERS] RES: [UMN_MAPSERVER-USERS] layer group(s)? In-Reply-To: <1099947741.1915.63.camel@ubet.gomoos.org> Message-ID: I guess I understood the suggestion, but in that case I would have two layers, right? If I have only one group then your suggestion works great for me. If not it doesn't work. The problem is that I turn layers on and off in may app using the group name. If I have two layers with the same name there is the chance that I set one off and the other one is still on. I had to set two groups on a layer because there it kind of belongs to two different groups... But I solved the problem, but not in the smartest way, but solved. If there is a smartest way tell me please. Thanks, Murilo -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Eric Bridger Enviada em: segunda-feira, 8 de novembro de 2004 18:02 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] RES: [UMN_MAPSERVER-USERS] layer group(s)? On Mon, 2004-11-08 at 16:15, Murilo Lacerda Yoshida wrote: > I tried here to do that... Apparently if you set two groups on one > layer, the last group assigned is the one that counts... The other one > is forgotten ... I'll change the order of the groups here and see what > happens. > The strange thing is that mapserver doesn't show an error for that. > Thanks Eric, > Murilo I'm not sure if you understood my suggestion. Create a new layer identical to the first layer except for the GROUP name. The layer will be included in both groups. LAYER NAME "layer_one" GROUP "group_one" ... END LAYER NAME "layer_one" GROUP "group_two" ... END From zhou_naijun at HOTMAIL.COM Mon Nov 8 14:07:49 2004 From: zhou_naijun at HOTMAIL.COM (N Zhou) Date: Mon, 8 Nov 2004 16:07:49 -0600 Subject: query Message-ID: Hi, I have a problem of querying layer(s). My query URL is: http://myhost/cgi-bin/mapserv?mode=nquery&map=/data/ZhouWFS.map&imgext=477185+424885.5+591620+539320.5&imgbox=1+1+399+399&imgsize=400+400&layers=ngs1 There should be some query results and I did have the results using PHP/MapScript classes. But I actually got from the URL query: msQueryByRect(): Search returned no results. No matching record(s) found. I also tried to query a point: http://myhost/cgi-bin/mapserv?mode=query&map=/data/ZhouWFS.map&imgext=477185+424885.5+591620+539320.5&imgbox=150+187&imgsize=400+400&layers=ngs1 But I still got result message as: msQueryByPoint(): Search returned no results. No matching record(s) found. Is there any error of the URL query? I noticed similar discussions last year but I'm still confused. Thank you very much! N. Zhou From warmerdam at POBOX.COM Mon Nov 8 14:17:31 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 8 Nov 2004 17:17:31 -0500 Subject: GDAL 1.2.4 Released Message-ID: Folks, GDAL 1.2.4 has been officially released. http://www.gdal.org/dl/gdal-1.2.4.tar.gz http://www.gdal.org/dl/gdal124.zip The NEWS is below, but I wanted to highlight a copy things: 1) There were some very serious bugs in the OGR VRT driver which resulted in crashes in some common scenarios where it is used as a front to an ODBC database in MapServer. Please update as soon as possible if you are using OGR VRT datasources. 2) Libtiff is under active revision lately, and I believe there may have been some signficant bugs in 1.2.3 with building overviews. Consider upgrading to 1.2.4 if you might be doing this (even for non-GeoTIFF formats since the overviews are stored as TIFFs). Enjoy! GDAL 1.2.4 - Overview of Changes -------------------------------- gdalwarp: - Fixed some issues with only partially transformable regions. - Added Alpha mask generation support (-dstalpha switch). HFA/Imagine Driver: - bug fix in histogram handling. - improved support for large colormaps. Envi Driver: - Capture category names and colormaps when reading. SAR CEOS Driver: - Added support for PALSAR/ALOS Polarmetric Datasets. RadarSat 2 Driver: - New. Reads RadarSat 2 Polarmetric datasets with a "product.xml" and imagery in TIFF files. OGDI Driver: - Important bug fix for downsampled access. GeoTIFF Driver: - Lots of libtiff upgrades, including some quite serious bug fixes. - Added better support for 16bit colormaps. - Write projection information even if we don't have a geotransform or GCPs. - Improved alpha support. - Generate graceful error message for BigTIFF files. DODS Driver: - Almost completely reimplemented. Uses chunk-by-chunk access. Supports reading several bands from seperate objects. Some new limitations too. NetCDF Driver: - Seperated out a GMT NetCDF driver and a more generic but partially broken NetCDF driver (Radim). JP2KAK Driver: - Added alpha support, including greyscale+alpha. AirSAR Driver: - New, reads AirSAR Polarmetric Radar format. OGR 1.2.4 - Overview of Changes ------------------------------- epsg_tr.py: - Added escaping rules when generating PostGIS output. tigerpoly.py: - Discard dangles and degenerate rings. VRT Driver: - Fixed serious error in handling cleanup of VRT datasources, was often causing a crash. SQLLite Driver: - Fixed substantial memory leaks. MySQL Driver: - New readonly non-spatial MySQL driver implemented. MITAB Driver: - Updated from upstream, several fixes. TIGER/Line Driver: - Fixed serious bug with handling "full" records at end of .RT2 file. OCI/Oracle Driver: - Added OCI_FID environment support to control FID selection. OGRGeometry: - Added Centroid() implementation (from GEOS?) -- ---------------------------------------+-------------------------------------- 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 tom_price at YAHOO.COM Mon Nov 8 15:57:12 2004 From: tom_price at YAHOO.COM (Tom Price) Date: Mon, 8 Nov 2004 15:57:12 -0800 Subject: PHP mapscript module not found Message-ID: I am in the process of upgrading PHP from 4.2.1 to 4.3.7. Mapscript 3.6.2 seems to have a problem with this version of PHP (getting message about "php_mapscript cannot be used as a 'cgi-fcgi' module") even though PHP is installed as a CGI. So then upgraded Mapscript to 4.3 and started getting this message instead: Warning: Unable to load dynamic library './php_mapscript_43.dll' - The specified module could not be found. Message appears if module is enabled in php.ini or if loaded using a "dl" command. The php_mapscript_43.dll file is in same folder with php.exe and extension_dir is set to "./" in php.ini. (No change from 3.6.2) Adding php folder to the path did not seem to make any difference. Running IIS/PWS 5 on Windows 2000 Pro SP4. Any help, most appreciated! __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com From dbarron at DSWLLC.COM Mon Nov 8 18:00:22 2004 From: dbarron at DSWLLC.COM (dbarron) Date: Mon, 8 Nov 2004 18:00:22 -0800 Subject: loading mapscript in java error In-Reply-To: <200411081030.21535.dbarron@dswllc.com> Message-ID: Got the mapscript library to load - but now I have yet another error. Got library to load by doing the following: - commented out the following entry in the /mapscript/swiginc/map.i file - any ideas why the map.i file contains this entry? maybe it needs to be modified? int saveQueryAsGML(char *filename) { return msGMLWriteQuery(self, filename); } - rebuilt the java source files using swig command swig -java -v -package mapscript mapscript.i - rebuilt the mapscript.jar and libmapscript.so files - copied the mapscript.jar file to the /usr/local/jdk1.5.0/jre/lib/ext/ directory Now when I try to run the following little java app to test: import java.io.*; import edu.umn.gis.mapscript.*; public class MapScriptTest { public static void main(String[] args) throws IOException { System.out.println("loading mapscript library..."); System.loadLibrary("mapscript"); System.out.println("mapscript library LOADED..."); mapObj map; imageObj image; map=new mapObj("/home/dbarron/mapserver-test/china.map"); System.out.println("Created new mapObj()..."); image=map.draw(); image.save("china.png",map); } } I get the following output and exception: loading mapscript library... mapscript library LOADED... Exception in thread "main" java.lang.NoClassDefFoundError: edu/umn/gis/mapscript/mapObj (wrong name: mapscript/mapObj) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at MapScriptTest.main(MapScriptTest.java:14) I will continue to work through it - but wanted to see if either of you had any ideas on this? Thanks, Dan On Monday 08 November 2004 10:30, dbarron wrote: > Umberto, > > Thanks for the suggestions! > > The error in full is below. The test app does see the library and tries to > load it - it just has an error within the library itself. I used the > straight beta2 release as Sean suggested. It seems like the > java/libmapscript.so compile is not loading in the source that holds the > GML functionality - that's my guess anyway. I do see the mapgml.c file get > compiled into mapserv.exe - that defines the msGMLWriteQuery method - but > why the java/libmapscript.so compile does not get it too, I do not know at > this point. I'll see if I can get it to work today. > > loading mapscript library... > Exception in thread "main" > java.lang.UnsatisfiedLinkError: /usr/local/lib/special/libmapscript.so: > /usr/local/lib/special/libmapscript.so: undefined symbol: msGMLWriteQuery > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) > at java.lang.Runtime.loadLibrary0(Runtime.java:822) > at java.lang.System.loadLibrary(System.java:992) > at MapScriptTest.main(MapScriptTest.java:8) > > Dan From bartvde at XS4ALL.NL Mon Nov 8 23:15:47 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 9 Nov 2004 08:15:47 +0100 Subject: PHP mapscript module not found In-Reply-To: <20041108235712.64609.qmail@web50308.mail.yahoo.com> Message-ID: Hi, did you put all the dependent dll's for mapscript (like gdal12.dll etc.) in your path? Best regards, Bart > I am in the process of upgrading PHP from 4.2.1 to 4.3.7. > > Mapscript 3.6.2 seems to have a problem with this version of PHP > (getting message about "php_mapscript cannot be used as a 'cgi-fcgi' > module") even though PHP is installed as a CGI. > > So then upgraded Mapscript to 4.3 and started getting this message > instead: > > Warning: Unable to load dynamic library './php_mapscript_43.dll' - The > specified module could not be found. > > Message appears if module is enabled in php.ini or if loaded using a > "dl" command. > > The php_mapscript_43.dll file is in same folder with php.exe and > extension_dir is set to "./" in php.ini. (No change from 3.6.2) > > Adding php folder to the path did not seem to make any difference. > > Running IIS/PWS 5 on Windows 2000 Pro SP4. > > Any help, most appreciated! > > > > > __________________________________ > Do you Yahoo!? > Check out the new Yahoo! Front Page. > www.yahoo.com > From unicoletti at PROMETEO.IT Tue Nov 9 00:26:55 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Tue, 9 Nov 2004 09:26:55 +0100 Subject: loading mapscript in java error In-Reply-To: <200411081800.22029.dbarron@dswllc.com> Message-ID: On Tue, 2004-11-09 at 03:00, dbarron wrote: > Got the mapscript library to load - but now I have yet another error. Got > library to load by doing the following: > > - commented out the following entry in the /mapscript/swiginc/map.i > file - any ideas why the map.i file contains this entry? maybe it needs to > be modified? > I think Sean is more informed than me but this has probably to do with compile flags. The same happened to me once when I built mapscript without OWS support. > int saveQueryAsGML(char *filename) { > return msGMLWriteQuery(self, filename); > } > > - rebuilt the java source files using swig command > > swig -java -v -package mapscript mapscript.i > I think you can use 'make interface' instead > - rebuilt the mapscript.jar and libmapscript.so files > - copied the mapscript.jar file to the /usr/local/jdk1.5.0/jre/lib/ext/ > directory It is probably not a good idea to copy the jar file over there. Keep it in a local directory and set CLASSPATH accordingly, at least until we don't get these issues sorted out. > > Now when I try to run the following little java app to test: > > import java.io.*; > import edu.umn.gis.mapscript.*; > > public class MapScriptTest { > > public static void main(String[] args) throws IOException { > System.out.println("loading mapscript library..."); > System.loadLibrary("mapscript"); > System.out.println("mapscript library LOADED..."); > mapObj map; > imageObj image; > > map=new mapObj("/home/dbarron/mapserver-test/china.map"); > System.out.println("Created new mapObj()..."); > image=map.draw(); > image.save("china.png",map); > > } > } > > I get the following output and exception: > > loading mapscript library... > mapscript library LOADED... > Exception in thread "main" java.lang.NoClassDefFoundError: > edu/umn/gis/mapscript/mapObj (wrong name: mapscript/mapObj) > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:620) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at java.lang.ClassLoader.loadClass(ClassLoader.java:299) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > at MapScriptTest.main(MapScriptTest.java:14) > > I will continue to work through it - but wanted to see if either of you had > any ideas on this? > java simply cannot find the mapObj. But the 'wrong name' error looks strange. Have you run the tests that come with mapscript ('make test')? Then what about telling us what platform you running on? Please forward your previous email to the list for others to benefit. HTH, Umberto > Thanks, > > Dan > > > On Monday 08 November 2004 10:30, dbarron wrote: > > Umberto, > > > > Thanks for the suggestions! > > > > The error in full is below. The test app does see the library and tries to > > load it - it just has an error within the library itself. I used the > > straight beta2 release as Sean suggested. It seems like the > > java/libmapscript.so compile is not loading in the source that holds the > > GML functionality - that's my guess anyway. I do see the mapgml.c file get > > compiled into mapserv.exe - that defines the msGMLWriteQuery method - but > > why the java/libmapscript.so compile does not get it too, I do not know at > > this point. I'll see if I can get it to work today. > > > > loading mapscript library... > > Exception in thread "main" > > java.lang.UnsatisfiedLinkError: /usr/local/lib/special/libmapscript.so: > > /usr/local/lib/special/libmapscript.so: undefined symbol: msGMLWriteQuery > > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) > > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) > > at java.lang.Runtime.loadLibrary0(Runtime.java:822) > > at java.lang.System.loadLibrary(System.java:992) > > at MapScriptTest.main(MapScriptTest.java:8) > > > > Dan From unicoletti at PROMETEO.IT Tue Nov 9 00:34:10 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Tue, 9 Nov 2004 09:34:10 +0100 Subject: loading mapscript in java error In-Reply-To: <1099988815.4250.10.camel@localhost> Message-ID: Comments inline.... On Tue, 2004-11-09 at 09:26, Umberto Nicoletti wrote: > On Tue, 2004-11-09 at 03:00, dbarron wrote: > > Got the mapscript library to load - but now I have yet another error. Got > > library to load by doing the following: > > > > - commented out the following entry in the /mapscript/swiginc/map.i > > file - any ideas why the map.i file contains this entry? maybe it needs to > > be modified? > > > > I think Sean is more informed than me but this has probably to do with > compile flags. > The same happened to me once when I built mapscript without OWS support. > > > > int saveQueryAsGML(char *filename) { > > return msGMLWriteQuery(self, filename); > > } > > > > - rebuilt the java source files using swig command > > > > swig -java -v -package mapscript mapscript.i > > > I just noticed that the -package argument is wrong! That explains for the odd wrong name excpetion below. Use make interface. Sean: what about a 5 lines README in mapscript/java ? Umberto > I think you can use 'make interface' instead > > > - rebuilt the mapscript.jar and libmapscript.so files > > - copied the mapscript.jar file to the /usr/local/jdk1.5.0/jre/lib/ext/ > > directory > > It is probably not a good idea to copy the jar file over there. > Keep it in a local directory and set CLASSPATH accordingly, at least > until we don't get these issues sorted out. > > > > > Now when I try to run the following little java app to test: > > > > import java.io.*; > > import edu.umn.gis.mapscript.*; > > > > public class MapScriptTest { > > > > public static void main(String[] args) throws IOException { > > System.out.println("loading mapscript library..."); > > System.loadLibrary("mapscript"); > > System.out.println("mapscript library LOADED..."); > > mapObj map; > > imageObj image; > > > > map=new mapObj("/home/dbarron/mapserver-test/china.map"); > > System.out.println("Created new mapObj()..."); > > image=map.draw(); > > image.save("china.png",map); > > > > } > > } > > > > I get the following output and exception: > > > > loading mapscript library... > > mapscript library LOADED... > > Exception in thread "main" java.lang.NoClassDefFoundError: > > edu/umn/gis/mapscript/mapObj (wrong name: mapscript/mapObj) > > at java.lang.ClassLoader.defineClass1(Native Method) > > at java.lang.ClassLoader.defineClass(ClassLoader.java:620) > > at > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:299) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > > at MapScriptTest.main(MapScriptTest.java:14) > > > > I will continue to work through it - but wanted to see if either of you had > > any ideas on this? > > > > java simply cannot find the mapObj. But the 'wrong name' error looks > strange. > Have you run the tests that come with mapscript ('make test')? > > Then what about telling us what platform you running on? > > Please forward your previous email to the list for others to benefit. > > HTH, > Umberto > > > Thanks, > > > > Dan > > > > > > On Monday 08 November 2004 10:30, dbarron wrote: > > > Umberto, > > > > > > Thanks for the suggestions! > > > > > > The error in full is below. The test app does see the library and tries to > > > load it - it just has an error within the library itself. I used the > > > straight beta2 release as Sean suggested. It seems like the > > > java/libmapscript.so compile is not loading in the source that holds the > > > GML functionality - that's my guess anyway. I do see the mapgml.c file get > > > compiled into mapserv.exe - that defines the msGMLWriteQuery method - but > > > why the java/libmapscript.so compile does not get it too, I do not know at > > > this point. I'll see if I can get it to work today. > > > > > > loading mapscript library... > > > Exception in thread "main" > > > java.lang.UnsatisfiedLinkError: /usr/local/lib/special/libmapscript.so: > > > /usr/local/lib/special/libmapscript.so: undefined symbol: msGMLWriteQuery > > > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > > > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) > > > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) > > > at java.lang.Runtime.loadLibrary0(Runtime.java:822) > > > at java.lang.System.loadLibrary(System.java:992) > > > at MapScriptTest.main(MapScriptTest.java:8) > > > > > > Dan From ptcyper at POPPYMAIL.COM Mon Nov 29 02:25:11 2004 From: ptcyper at POPPYMAIL.COM (noom) Date: Mon, 29 Nov 2004 17:25:11 +0700 Subject: I would like to display label from external database eg (mysql , postgresql) Message-ID: Hi all, I would like to display label and classify data from external database e.g. mysql, postgresql. Please suggest me and write your mapfile example . Thank you so much. From temiz at DEPREM.GOV.TR Tue Nov 9 05:01:18 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Tue, 9 Nov 2004 15:01:18 +0200 Subject: extension differences Message-ID: hello I am using php-mapscript. in my mapfile: EXTENT 419630 4510820 516250 4617510 in my php file initial map extends 414562.225 4510820 521317.775 4617510. I expect all of them are same as the values in the map file. But x values are different. Where might these differences come from ; any ideas ? kind regards ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From nunoragil at YAHOO.COM Tue Nov 9 05:49:22 2004 From: nunoragil at YAHOO.COM (Nuno GIL) Date: Tue, 9 Nov 2004 05:49:22 -0800 Subject: preprocessing raster files in mapserver (gdaladdo) Message-ID: Hi listers, I'm having trouble using the gdaladdo tool. In a small geotiff (24 MB) I had no problems, but now I'm trying to do the same in a 2 GB one in order to use with mapserver. First of all I've used gdal_translate -co TILED=YES in.tif out.tif and then gdaladdo out.tif 2 4 8 16 32 64 128 256 512 1024 When requesting the layer nothing gets displayed. Part of my map file is as follows: ... LAYER NAME land2 PROJECTION "init=epsg:4326" END METADATA "wms_title" "African Landsat 5 mosaic" "wms_name" "L5" "wms_server_version" "1.0.0" "wms_srs" "epsg:4326" "wms_format" "image/png" END DATA "landsat/enhanced/umms/out.tif" STATUS ON TYPE RASTER END ... Can someone give me any idea of what is getting wrong here? Regards, Nuno __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com From sctweedy at NRCAN.GC.CA Tue Nov 9 05:52:30 2004 From: sctweedy at NRCAN.GC.CA (Tweedy, Scott) Date: Tue, 9 Nov 2004 08:52:30 -0500 Subject: Web statistics on Web Services Message-ID: Sorry for the double-post. I'm looking for information or techniques on keeping track of hits on Web Services especially through proxy sites. Does anyone have any good ideas on keeping accurate records of how many times the Web Services (WMS, WFS and other services) are used? Thanks in advance, st From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Tue Nov 9 06:10:38 2004 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Jean-Francois Doyon) Date: Tue, 9 Nov 2004 09:10:38 -0500 Subject: Web statistics on Web Services Message-ID: Scott, I recommend using Analog: http://www.analog.cx It's a log file analyser ... VERY configurable. You can make it analyse your Apache or IIS logs, or the logs of your proxy server (Squid?). You can then use Regular Expressions to match URL writings such as /\/cgi-bin\/mapserv\?.*request=wfs.*/ to detect the various services used, the types of queries executed, and so on. (Note that I made the expression up on the spot, it may not work!). It's what we use at the Atlas, and i highly recommend it to everyone. J.F. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Tweedy, Scott Sent: November 9, 2004 8:53 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Web statistics on Web Services Sorry for the double-post. I'm looking for information or techniques on keeping track of hits on Web Services especially through proxy sites. Does anyone have any good ideas on keeping accurate records of how many times the Web Services (WMS, WFS and other services) are used? Thanks in advance, st From Tom.Kralidis at EC.GC.CA Tue Nov 9 06:13:48 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 9 Nov 2004 09:13:48 -0500 Subject: Web statistics on Web Services Message-ID: +1 from me for Analog. > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Jean-Francois Doyon > Sent: Tuesday, 09 November, 2004 09:11 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Web statistics on Web Services > > > Scott, > > I recommend using Analog: http://www.analog.cx > > It's a log file analyser ... VERY configurable. > > You can make it analyse your Apache or IIS logs, or the logs > of your proxy server (Squid?). > > You can then use Regular Expressions to match URL writings > such as /\/cgi-bin\/mapserv\?.*request=wfs.*/ to detect the > various services used, the types of queries executed, and so > on. (Note that I made the expression up on the spot, it may > not work!). > > It's what we use at the Atlas, and i highly recommend it to everyone. > > J.F. > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Tweedy, Scott > Sent: November 9, 2004 8:53 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Web statistics on Web Services > > > Sorry for the double-post. > > I'm looking for information or techniques on keeping track of > hits on Web Services especially through proxy sites. Does > anyone have any good ideas on keeping accurate records of how > many times the Web Services (WMS, WFS and other services) are used? > > Thanks in advance, > st > From sgillies at FRII.COM Tue Nov 9 06:39:26 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 9 Nov 2004 07:39:26 -0700 Subject: loading mapscript in java error In-Reply-To: Message-ID: Dan, Following up on Umberto's thought about your compile flags ... will you write back and attach your java/Makefile? thanks, Sean On Nov 8, 2004, at 7:00 PM, dbarron wrote: > Got the mapscript library to load - but now I have yet another error. > Got > library to load by doing the following: > > - commented out the following entry in the > /mapscript/swiginc/map.i > file - any ideas why the map.i file contains this entry? maybe it > needs to > be modified? > > int saveQueryAsGML(char *filename) { > return msGMLWriteQuery(self, filename); > } > > - rebuilt the java source files using swig command > > swig -java -v -package mapscript mapscript.i > > - rebuilt the mapscript.jar and libmapscript.so files > - copied the mapscript.jar file to the /usr/local/jdk1.5.0/jre/lib/ext/ > directory > > Now when I try to run the following little java app to test: > > import java.io.*; > import edu.umn.gis.mapscript.*; > > public class MapScriptTest { > > public static void main(String[] args) throws IOException { > System.out.println("loading mapscript library..."); > System.loadLibrary("mapscript"); > System.out.println("mapscript library LOADED..."); > mapObj map; > imageObj image; > > map=new mapObj("/home/dbarron/mapserver-test/china.map"); > System.out.println("Created new mapObj()..."); > image=map.draw(); > image.save("china.png",map); > > } > } > > I get the following output and exception: > > loading mapscript library... > mapscript library LOADED... > Exception in thread "main" java.lang.NoClassDefFoundError: > edu/umn/gis/mapscript/mapObj (wrong name: mapscript/mapObj) > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:620) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at java.lang.ClassLoader.loadClass(ClassLoader.java:299) > at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > at MapScriptTest.main(MapScriptTest.java:14) > > I will continue to work through it - but wanted to see if either of > you had > any ideas on this? > > Thanks, > > Dan > > > On Monday 08 November 2004 10:30, dbarron wrote: >> Umberto, >> >> Thanks for the suggestions! >> >> The error in full is below. The test app does see the library and >> tries to >> load it - it just has an error within the library itself. I used the >> straight beta2 release as Sean suggested. It seems like the >> java/libmapscript.so compile is not loading in the source that holds >> the >> GML functionality - that's my guess anyway. I do see the mapgml.c >> file get >> compiled into mapserv.exe - that defines the msGMLWriteQuery method - >> but >> why the java/libmapscript.so compile does not get it too, I do not >> know at >> this point. I'll see if I can get it to work today. >> >> loading mapscript library... >> Exception in thread "main" >> java.lang.UnsatisfiedLinkError: >> /usr/local/lib/special/libmapscript.so: >> /usr/local/lib/special/libmapscript.so: undefined symbol: >> msGMLWriteQuery >> at java.lang.ClassLoader$NativeLibrary.load(Native Method) >> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) >> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) >> at java.lang.Runtime.loadLibrary0(Runtime.java:822) >> at java.lang.System.loadLibrary(System.java:992) >> at MapScriptTest.main(MapScriptTest.java:8) >> >> Dan > From mandhare at STATE.PA.US Tue Nov 9 06:42:29 2004 From: mandhare at STATE.PA.US (Manjiri Andhare) Date: Tue, 9 Nov 2004 08:42:29 -0600 Subject: getting layer data Message-ID: Hello All, I have been experimenting on mapserver since last 2 months.And trying to find out how to do different things. I'm not so far in my web development, but I have created the map files and I can see the map in the browser and turn the layers on and off. I can zoom in/zoom out. I'm working on Windows 2000 with IIS. I was trying to find out how to get the information about a particular layer. I mean in my map file, I'm using shape files for creating layers. What I'm looking for is...when the user clicks on particular layer,suppose it is a point, how to get the data about that point. I want to retrieve that data from the shape file and display it in tabular form. For an e.g., if there is a layer(point) for displaying a particular species found in the water,and when the user clicks on one point I want to display the information such as water latlon, section number where the species found, common name of the species etc. Do i need to write the query somewhere? If yes, where? Or I can get this data also from the shape file, by writing some code in the map file? If someone have code samples or an idea how could this be done, or at least the can tell me where i could find this kind of information, that will be great, Thank you, Manjiri Andhare GIS Co-ordinator, PA Fish & Boat Commission, U.S.A. From warmerdam at POBOX.COM Tue Nov 9 06:53:34 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 9 Nov 2004 09:53:34 -0500 Subject: preprocessing raster files in mapserver (gdaladdo) In-Reply-To: <20041109134922.9299.qmail@web53006.mail.yahoo.com> Message-ID: Nuno GIL wrote: > Hi listers, > I'm having trouble using the gdaladdo tool. > In a small geotiff (24 MB) I had no problems, but now > I'm trying to do the same in a 2 GB one in order to > use with mapserver. > First of all I've used > gdal_translate -co TILED=YES in.tif out.tif > and then > gdaladdo out.tif 2 4 8 16 32 64 128 256 512 1024 > > When requesting the layer nothing gets displayed. > Part of my map file is as follows: ... > > Can someone give me any idea of what is getting wrong > here? Nuno, I don't see an obvious problem. What does a gdalinfo report on your out.tif look like now? Note there was a serious bug in some recent versions of GDAL with adding overviews. It would corrupt the file, and MapServer might just not draw the layer in this circumstance. If that is the case you will need to update to GDAL 1.2.4 to build your overviews. Best regards, -- ---------------------------------------+-------------------------------------- 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 warmerdam at POBOX.COM Tue Nov 9 06:55:39 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 9 Nov 2004 09:55:39 -0500 Subject: extension differences In-Reply-To: <4190BF9E.1000205@deprem.gov.tr> Message-ID: temiz wrote: > hello > > I am using php-mapscript. > > in my mapfile: EXTENT 419630 4510820 516250 4617510 > in my php file initial map extends 414562.225 4510820 521317.775 > 4617510. I expect all of them > are same as the values in the map file. But x values are different. > Where might these differences > come from ; Temiz, You weren't too clear on how you got the initial map extents in your map file. But I will point out that internally mapserver normally adjusts your extents so as to maintain square pixels. So if your SIZE parameter does not have the same aspect ratio as your EXTENT parameter then the extent will be grown in one dimension or the other in order to have the same aspect ratio. There are some ways of overcoming this if it is important for you to have non-square aspect ratios. Best regards, -- ---------------------------------------+-------------------------------------- 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 unicoletti at PROMETEO.IT Tue Nov 9 07:28:34 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Tue, 9 Nov 2004 16:28:34 +0100 Subject: Web statistics on Web Services In-Reply-To: <162B3F03E3AD224FA9F82DF351A15A8091D5D9@S0-OTT-X10.NRCan.gc.ca> Message-ID: Try awstats (awstats.sourceforge.net). They have demos on site. Rather impressive stuff. Regards, Umberto Quoting "Tweedy, Scott" : > Sorry for the double-post. > > I'm looking for information or techniques on keeping track of hits on Web > Services especially through proxy sites. Does anyone have any good ideas on > keeping accurate records of how many times the Web Services (WMS, WFS and > other services) are used? > > Thanks in advance, > st > From jegou at UNIV-TLSE2.FR Tue Nov 9 07:23:52 2004 From: jegou at UNIV-TLSE2.FR (=?ISO-8859-1?Q?Laurent_J=E9gou?=) Date: Tue, 9 Nov 2004 16:23:52 +0100 Subject: standalone build for free/limited access web host ? In-Reply-To: <4190DA6B.4070308@pobox.com> Message-ID: Hello all, I was wondering (even after extensive web searches) if there is a "compact" (linux) build version of MapServer : the goal is to be able to use free or limited webhosting services, with only access to the cgi-bin directory. Is that possible ? With wich limitations ? (a special compilation configuration perhaps ?). Thanks for your help and sorry for the naive question :-) -- Laurent J?gou IGE Cartographe UTM - D?pt. G?ographie 31058 TOULOUSE Cedex 9 - 05.61.50.43.89 http://www.univ-tlse2.fr/geoprdc From pramsey at REFRACTIONS.NET Tue Nov 9 07:41:58 2004 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 9 Nov 2004 07:41:58 -0800 Subject: Return of IMSEMU Message-ID: Hi all, We are pleased to announce a new and improved version of IMSEMU for your emulating pleasure. For those new to the concept, IMSEMU is a script which wraps around Mapserver and speaks ArcXML to client software. This allows ESRI software such as ArcMap and ArcExplorer to directly access mapserver services using ArcXML -- no special interoperability extensions required. The new version of IMSEMU is written using PHP/Mapscript, so the installation should be much easier than for the old Perl based version. Assuming you have PHP support for Mapscript and DOMXML, just drop the script in the right place and go. The new version also adds many features. The binary stream format is now partially supported, so many feature-based aspects of ArcXML are supported, such as full preview mode in ArcCatalog. There are still things missing, but we are looking forward to your help in finding the remaining gaps and filling them in. You can download IMSEMU from http://mapserver.refractions.net Paul From ivano.picco at AQUPI.TK Tue Nov 9 07:57:02 2004 From: ivano.picco at AQUPI.TK (Ivano Picco) Date: Tue, 9 Nov 2004 09:57:02 -0600 Subject: OGR bug? Message-ID: Hi!, Some week ago I posted some questions about SVG generation from Oracle Spatial data using OGR, but I didn't get usefull answer, maybe because my questions were wrong (Creating SVG from Shapefile, Oracle Spatial, ArcSDE - 6 Oct 2004). I made some other test, also using perl mapscript, to bypass some bug in mapserv code. There's my results: Both using mapserv or my simple perl script the OGR driver for Oracle Spatial took about 2Gbytes of memory to getFeature from a layer with 4800 geometries (the shapefile is 2,6 Mbyte). Both the performance is worst than arcsde connection or shapefile access (6s shape, 21s SDE): about 10 minutes running perl script !!! I think there's a bug in OGR implementation where it's used to get features or shapes (with perl mapscript getFeature, or query layer with mapserv). Please, could you confirm this bug? Other questions: why I can't use getFeature method with OracleSpatial connection type? Why I can't draw map from SDE or OGR layer? There's any plan to support all methods on all connection types? There's some workaround to get features from OracleSpatial connection?, and one to define a query layer? Thanks a lot for your support, sorry for my english, Ivano Picco this is my perl mapscript: #!/usr/bin/perl use mapscript; $map_file='prova.map'; die mapscript::ms_error->{message} unless my $map = new mapscript::mapObj($map_file); print $map->{numlayers}." layers found.\n"; die mapscript::ms_error->{message} unless my $layer = $map->getLayerByName('isolati_10k_SDO_OGR'); print "Loading Layer ".$layer->{index}."\n"; $layer->open(); my $i=0; my $shape= $layer->getFeature($i); while ( $shape->{bounds}->{minx}>0 ){ print "Shape $i has ". $shape->{numlines} ." part(s) - "; printf "bounds (%f,%f) (%f,%f)\n", $shape->{bounds}->{minx},$shape->{bounds}->{miny}, $shape->{bounds}->{maxx}, $shape->{bounds}->{maxy}; for($j=0; $j<$shape->{numlines}; $j++) { my $part = $shape->get($j); print "Part $j has ". $part->{numpoints} ." point(s)\n"; for($k=0; $k<$part->{numpoints}; $k++) { my $point = $part->get($k); #print "$k: ". $point->{x} .", ". $point->{y} ."\n"; } } $i++; $shape= $layer->getFeature($i); } this is my prova.map: NAME DEMO STATUS ON SIZE 600 600 EXTENT 313263.000000 4879724.000000 517049.000000 5145994.000000 UNITS METERS DEBUG ON WEB log "/tmp/CTR_map.log" IMAGEPATH '/home/mapserver/public_html/tmp/' IMAGEURL 'http://gisspeas2.csi.it:18091/tmp/' TEMPLATE 'template.html' METADATA WMS_TITLE "UMN MapServer Itasca Demo" WMS_ABSTRACT "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota." WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://localhost.localdomain/mapserver_demos/itasca/demo_init.html" WMS_SRS "EPSG:32632" END HEADER 'header.svg' FOOTER 'footer.svg' QUERYFORMAT 'image/svg+xml' END LAYER NAME isolati_10k TYPE POLYGON DATA /home/mapserver/dati/CTR/shape/edificati/EDIFICATI CLASS OUTLINECOLOR 0 0 255 #COLOR 255 255 255 SIZE 4 END METADATA WMS_TITLE "County Boundary" WMS_ABSTRACT "Example og County Boundary" WMS_SRS "EPSG:32632" END END LAYER NAME isolati_10k_SDO TYPE POLYGON CONNECTION "XX/XX at GEO" CONNECTIONTYPE oraclespatial DATA "GEOMETRY FROM edificati" STATUS ON CLASS OUTLINECOLOR 0 0 255 #COLOR 255 255 255 SIZE 4 END METADATA WMS_TITLE "County Boundary" WMS_ABSTRACT "Example og County Boundary" WMS_SRS "EPSG:32632" END END LAYER NAME isolati_10k_SDE # MAXSCALE 40000 TYPE POLYGON CONNECTION "gisspedb1.csi.it,port:5151,esri_sde,ctr_sde,ctr_sde" CONNECTIONTYPE SDE DATA "ctr_sde.edificati,SHAPE" CLASS OUTLINECOLOR 0 0 255 #COLOR 255 255 255 SIZE 4 END METADATA WMS_TITLE "Isolati SDE" WMS_ABSTRACT "Example og County Boundary" WMS_SRS "EPSG:32632" END END LAYER NAME isolati_10k_SDO_OGR # MAXSCALE 20000 TYPE POLYGON CONNECTION "OCI:XX/XX at GEO" CONNECTIONTYPE OGR DATA "SELECT GEOMETRY FROM edificati" #WHERE SDO_FILTER( edificati.GEOMETRY, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(313263,4879724,517049,5145994) ),'querytype=window') = 'TRUE'" CLASS # every other county in the state #OUTLINECOLOR 0 0 225 COLOR 231 159 32 SIZE 4 END METADATA WMS_TITLE "Fabbricati SDO" WMS_ABSTRACT "Example og County Boundary" WMS_SRS "EPSG:32632" END END END # Map File From carsten.kessler at UNI-MUENSTER.DE Tue Nov 9 14:54:46 2004 From: carsten.kessler at UNI-MUENSTER.DE (=?ISO-8859-1?Q?Carsten_Ke=DFler?=) Date: Tue, 9 Nov 2004 16:54:46 -0600 Subject: tiff is shown in grayscale In-Reply-To: <4190DA6B.4070308@pobox.com> Message-ID: Hi, I'm using a number of shapes and a tiff to generate the ouput map, with MapServer 4.2.0 on Windows. The original tiff file is in RGB mode, with 8 bit per channel. The shapefiles are drawn correctly (in color), but the tiff is only in grayscale on the output maps. This is the part of the map file which defines the tiff layer: LAYER NAME basemap TYPE RASTER DATA rectifyos.tif CLASS NAME 'Basemap' END METADATA WMS_TITLE "Basemap" WMS_ABSTRACT "Basemap ..." WMS_SRS "EPSG:31467" END END Any ideas what might be wrong with this, or with the tiff itself? Thanks, Carsten From christian.schlatter at FIBL.ORG Tue Nov 9 08:00:30 2004 From: christian.schlatter at FIBL.ORG (Schlatter Christian) Date: Tue, 9 Nov 2004 17:00:30 +0100 Subject: Installation problems on windows XP, IIS 5.1: CGI Problems Message-ID: Hi dear list users I'm very new to mapserver, but very motivated to get somewhere. My problem: The most common message I see on the screen: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: GIF87a? , " This happens when I use fonts, I try to output a map as a PNG, a JPG, a TIFF or a GIS larger than 422 322. So almost all the time. So if I have the following part in a Mapfile it works: LABEL COLOR 132 31 31 #SHADOWCOLOR 218 218 218 #SHADOWSIZE 2 2 FONT tahoma TYPE TRUETYPE #SIZE 10 ANTIALIAS TRUE POSITION LL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END # end of label But if I "uncomment" the line #SIZE 10 (so: SIZE 10), then the above message of CGI problem is resulting (the document I was using is one ot the official tutorial .map files). I was checking all the entries in this user list wihtout any success. The installation was done after the UMN MapServer documents on Windows installation and MapsServer Installation. Windows XP (SR2) IIS 5.1 (php 4.3.9) MapServer version 4.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Does anyone know good advice? Best wishes Christian Schlatter From sgillies at FRII.COM Tue Nov 9 08:28:42 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 9 Nov 2004 09:28:42 -0700 Subject: loading mapscript in java error In-Reply-To: Message-ID: Problem was that the msGMLWriteQuery function didn't have the necessary non-OWS stub: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1046 Will you pick up the patched mpagml.c file attached to bug 1046 and try it out with the 4.4.0 beta2? Umberto: I'm working on a README now. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From ed at TOPOZONE.COM Tue Nov 9 08:04:14 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 9 Nov 2004 11:04:14 -0500 Subject: Return of IMSEMU Message-ID: Paul - Great! Have you used this with ArcGIS 9 / Service Pack 1? I've been trying to get OUR PHP/MapScript code out to the group, but just when I thought we were ready, Service Pack 1 came along and broke everything. SP1 switched to using ESRI-flavored WKT projection definitions instead of EPSG codes, and I have not had the time yet to deal with it. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Ramsey Sent: Tuesday, November 09, 2004 10:42 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Return of IMSEMU Hi all, We are pleased to announce a new and improved version of IMSEMU for your emulating pleasure. For those new to the concept, IMSEMU is a script which wraps around Mapserver and speaks ArcXML to client software. This allows ESRI software such as ArcMap and ArcExplorer to directly access mapserver services using ArcXML -- no special interoperability extensions required. The new version of IMSEMU is written using PHP/Mapscript, so the installation should be much easier than for the old Perl based version. Assuming you have PHP support for Mapscript and DOMXML, just drop the script in the right place and go. The new version also adds many features. The binary stream format is now partially supported, so many feature-based aspects of ArcXML are supported, such as full preview mode in ArcCatalog. There are still things missing, but we are looking forward to your help in finding the remaining gaps and filling them in. You can download IMSEMU from http://mapserver.refractions.net Paul From dbarron at DSWLLC.COM Tue Nov 9 08:48:39 2004 From: dbarron at DSWLLC.COM (Dan Barron) Date: Tue, 9 Nov 2004 08:48:39 -0800 Subject: loading mapscript in java error In-Reply-To: <1099988815.4250.10.camel@localhost> Message-ID: At 12:26 AM 11/9/2004, Umberto Nicoletti wrote: >On Tue, 2004-11-09 at 03:00, dbarron wrote: > > Got the mapscript library to load - but now I have yet another error. Got > > library to load by doing the following: > > > > - commented out the following entry in the > /mapscript/swiginc/map.i > > file - any ideas why the map.i file contains this entry? maybe it needs to > > be modified? > > > >I think Sean is more informed than me but this has probably to do with >compile flags. >The same happened to me once when I built mapscript without OWS support. Sean has sent an email referring to a bug - I will try his suggestion for this. > > int saveQueryAsGML(char *filename) { > > return msGMLWriteQuery(self, filename); > > } > > > > - rebuilt the java source files using swig command > > > > swig -java -v -package mapscript mapscript.i > > > >I think you can use 'make interface' instead Yes - I discovered after I sent this email of the dumb error I made in running swig and not naming the package correctly - and therefore getting the naming exception. I also dug deeper into the Makefiles and discovered that I should just use the 'make interface' as well. I was blinded to the obvious by looking to much for the inobvious. > > - rebuilt the mapscript.jar and libmapscript.so files > > - copied the mapscript.jar file to the /usr/local/jdk1.5.0/jre/lib/ext/ > > directory > >It is probably not a good idea to copy the jar file over there. >Keep it in a local directory and set CLASSPATH accordingly, at least >until we don't get these issues sorted out. I agree and I do have the jar in a local directory and the CLASSPATH is set to have this local directory but when I added a -verbose flag to the java command it showed it was looking in this directory for the jar. It has to be something in my setup that I am overlooking. > > Now when I try to run the following little java app to test: > > > > import java.io.*; > > import edu.umn.gis.mapscript.*; > > > > public class MapScriptTest { > > > > public static void main(String[] args) throws IOException { > > System.out.println("loading mapscript library..."); > > System.loadLibrary("mapscript"); > > System.out.println("mapscript library LOADED..."); > > mapObj map; > > imageObj image; > > > > map=new mapObj("/home/dbarron/mapserver-test/china.map"); > > System.out.println("Created new mapObj()..."); > > image=map.draw(); > > image.save("china.png",map); > > > > } > > } > > > > I get the following output and exception: > > > > loading mapscript library... > > mapscript library LOADED... > > Exception in thread "main" java.lang.NoClassDefFoundError: > > edu/umn/gis/mapscript/mapObj (wrong name: mapscript/mapObj) > > at java.lang.ClassLoader.defineClass1(Native Method) > > at java.lang.ClassLoader.defineClass(ClassLoader.java:620) > > at > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:299) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > > at MapScriptTest.main(MapScriptTest.java:14) > > > > I will continue to work through it - but wanted to see if either of you had > > any ideas on this? > > > >java simply cannot find the mapObj. But the 'wrong name' error looks >strange. My error there - fixed that already - and now I have another error. >Have you run the tests that come with mapscript ('make test')? No, I will do that today as well as include Sean's suggestion. >Then what about telling us what platform you running on? FC2 w/ JDK 1.5.0 Thanks! Dan >Please forward your previous email to the list for others to benefit. > >HTH, >Umberto > > > Thanks, > > > > Dan > > > > > > On Monday 08 November 2004 10:30, dbarron wrote: > > > Umberto, > > > > > > Thanks for the suggestions! > > > > > > The error in full is below. The test app does see the library and > tries to > > > load it - it just has an error within the library itself. I used the > > > straight beta2 release as Sean suggested. It seems like the > > > java/libmapscript.so compile is not loading in the source that holds the > > > GML functionality - that's my guess anyway. I do see the mapgml.c > file get > > > compiled into mapserv.exe - that defines the msGMLWriteQuery method - but > > > why the java/libmapscript.so compile does not get it too, I do not > know at > > > this point. I'll see if I can get it to work today. > > > > > > loading mapscript library... > > > Exception in thread "main" > > > java.lang.UnsatisfiedLinkError: /usr/local/lib/special/libmapscript.so: > > > /usr/local/lib/special/libmapscript.so: undefined symbol: msGMLWriteQuery > > > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > > > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) > > > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) > > > at java.lang.Runtime.loadLibrary0(Runtime.java:822) > > > at java.lang.System.loadLibrary(System.java:992) > > > at MapScriptTest.main(MapScriptTest.java:8) > > > > > > Dan From warmerdam at POBOX.COM Tue Nov 9 09:21:59 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 9 Nov 2004 12:21:59 -0500 Subject: tiff is shown in grayscale In-Reply-To: <41914AB6.503@uni-muenster.de> Message-ID: Carsten Ke?ler wrote: > Hi, > I'm using a number of shapes and a tiff to generate the ouput map, with > MapServer 4.2.0 on Windows. The original tiff file is in RGB mode, with > 8 bit per channel. The shapefiles are drawn correctly (in color), but > the tiff is only in grayscale on the output maps. This is the part of > the map file which defines the tiff layer: > > LAYER > NAME basemap > TYPE RASTER > DATA rectifyos.tif > CLASS > NAME 'Basemap' > END > METADATA > WMS_TITLE "Basemap" > WMS_ABSTRACT "Basemap ..." > WMS_SRS "EPSG:31467" > END > END Carsten, The problem is that when you declare a CLASS on the raster layer it forces the layer to be rendered in classified mode. This uses only one band and defaults to greyscale. Best regards, -- ---------------------------------------+-------------------------------------- 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 warmerdam at POBOX.COM Tue Nov 9 09:32:06 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 9 Nov 2004 12:32:06 -0500 Subject: OGR bug? In-Reply-To: Message-ID: Ivano Picco wrote: > Both using mapserv or my simple perl script the OGR driver for Oracle > Spatial took about 2Gbytes of memory to getFeature from a layer with 4800 > geometries (the shapefile is 2,6 Mbyte). Both the performance is worst than > arcsde connection or shapefile access (6s shape, 21s SDE): about 10 > minutes running perl script !!! Ivano, There was another report as well that OGR has some sort of a memory leak accessing Oracle. I haven't confirmed this yet since my new Oracle instance is on Win32 where I lack good memory leak testing tools but I do plan to work on the problem this week. You might want to add yourself to the cc: list for the bug. http://bugzilla.remotesensing.org/show_bug.cgi?id=663 > I think there's a bug in OGR implementation where it's used to get features > or shapes (with perl mapscript getFeature, or query layer with mapserv). > Please, could you confirm this bug? Do you mean a memory leak bug or something else? The GetFeature() method at the OGR level is supposed to work with the OCI driver. If there isn't an identified primary key (currently I just look for a field named OGR_FID) then I end up just using a sequence number as the index, and then fetching an individual feature can be very expensive (I have to run through all the features to count to it). If you think you are running into additional issues please let me know with details on how to reproduce the issue. Ideally if you can reproduce an issue with ogrinfo it is easy for me to track down then if I also need to go through mapserver layers. > Other questions: why I can't use getFeature method with OracleSpatial > connection type? Fernando Simon is now actively maintaining the direct Oracle Spatial support in mapserver. You could submit an enhancement request for direct feature access. Make sure you select the "Oracle Spatial" category when submitting the bug report. > Why I can't draw map from SDE or OGR layer? You can. I think you will need to be more specific about what problem you encounter. > There's any plan to support all methods on all connection types? It is entirely dependent on the maintainers of the modules in question. The "core maintainers" don't generally have access to esoteric configurations (such as Oracle Spatial, SDE, etc) and/or are not willing to take responsibility for these complex interfaces. So the degree of support is determined by the maintainers of the connection code. Best regards, -- ---------------------------------------+-------------------------------------- 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 olivier.gayte at VEREMES.COM Tue Nov 9 09:47:34 2004 From: olivier.gayte at VEREMES.COM (Olivier Gayte) Date: Tue, 9 Nov 2004 11:47:34 -0600 Subject: ogr vrt with php_mapscript Message-ID: Hi, I have a problem to use OGR/VRT layers with php_mapscript on linux even though it works with mapserver. ODBC is ok. OGRINFO work fine both to access to mysql via ODBC or from an ovf file. Even with mapserv I am able to connect to mysql and to see my points. The problem occurs only when I try to access to mysql via php_mapscript. php-mapscript and mapserv have been produced at the same moment and so have same configuration and I use the same map file. It seems php crashes on the line : $oMap->draw(); Apache report a problem in error_log: [Tue Nov 09 14:45:20 2004] [error] [client 127.0.0.1] /var/www/cgi-bin/php- cgi.sh: line 2: 22303 Segmentation fault /usr/local/php-cgi- 4.3.7/bin/php, referer: http://localhost/mise09/map_toolbar.phtml? PHPSESSID=b5e36f8129dcd7c717db7440cbf0a856 Configuration : Linux RedHat 9 MyODBC 3.51.09 unixODBC 2.2.10 GDAL 1.2.0 or 1.2.4 PhpMapscript MapServer 4.2.3 php 4.3.7 I have installed unixODBC in /usr/lib or in /usr/local/lib as proposed by Matthew Holger but there is no change. I also tried to use GDAL 1.2.4 but the problem is the same. The same application works fine with php-mapscript and mysql on windows. Any idea? Thanks From jachym.cepicky at CENTRUM.CZ Tue Nov 9 10:19:27 2004 From: jachym.cepicky at CENTRUM.CZ (=?ISO-8859-2?Q?J=E1chym?= =?ISO-8859-2?Q?=C8epick=FD?=) Date: Tue, 9 Nov 2004 19:19:27 +0100 Subject: [UMN_MAPSERVER-USERS] itemnquery return Message-ID: Hallo, thank you for your reply. You guessed well, I needed the itemnquerymap (and not the itemnquery). I new, I did not read enough. Now I get the right image (and only ones), however mapserv doesn't seem to use the template file. He seems to wish any template file only by itemnquery. The (I hope) important part of mapfile look's like this: LAYER NAME "porostni_mapa_k_vyhledavani" TYPE polygon DATA det STATUS on CLASSITEM vek_st LABELITEM vek_st SYMBOLSCALE 5000 CLASS NAME 'Porostn? mapa k vyhled?v?n?' TEMPLATE "krtiny.html" COLOR 255 0 0 SYMBOL "vysledek_dotazu" END END I hope, I'm sending you enough information. If not, sorry, just give me some word and I will send what you need. I'm afraid, these are only the beginner's problems. On Wed, 3 Nov 2004 09:43:52 -0500, Skweda O'Bomsawin wrote: > Jachym, > > That's not very clear what exactly you expect as results. Do you need an > image (itemnquerymap) or a table of results (itemnquery). As far as I can > see in your URL, you have an imgext and a mapext wich is a little bit > confusing since the two functions has almost the same behavior... Could you > send more details about your objectives and maybe your mapfile? > > Thanks. > > Skweda O'Bomsawin > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > part de Jachym Cepicky > Envoy? : 2 novembre 2004 11:18 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : [UMN_MAPSERVER-USERS] itemnquery return > > > > Hallo, > I use mapserver 4.x > > when I use itemquery, the mapserver returns first match, just one would > expect > it. > > but when I use itemnquery, mapserver returns [img], which contains all _n_ > matches, but he returns it _n_ times, so the template file is also used _n_ > times. > > I would like to have something like > http://maps.dnr.state.mn.us/cgi-bin/mapserv36?mapserv=%2Fcgi-bin%2Fmapserv36 > &map=%2Fusr%2Flocal%2Fwww%2Fdocs%2Fmapserver_demos%2Ftests36%2Fitemquery%2Fc > ase2.map&map_web_imagepath=%2Fusr%2Flocal%2Fwww%2Fdocs%2Ftmp%2F&map_web_imag > eurl=%2Ftmp%2F&mode=itemnquery&qlayer=county&map_county_filter=%2FAitkin%7CB > enton%2F&name=Aitkin&name=Benton > > which is i result from > http://maps.dnr.state.mn.us/mapserver_demos/tests40/itemquery/test.html > (Case 2: Simple ItemNQuery With QueryMap) > > as you can see, mapserver returned only one [img], which contains two > maches. > > is there some parameter, I have forgotten, which manages the query returns? > > Thank you > > J?chym > > P.S. Here the address, which goes from my application to mapserv: > http://10.0.0.16/cgi-bin/mapserv?program=%2Fcgi-bin%2Fmapserv&savequery=true > &map=%2Fhome%2Fmapserv%2Fpublic_html%2Fkrtiny.map&imgext=-593271.831126+-114 > 9277.640755+-591385.943709+-1147394.887722&imgxy=263+208&image=%2F%7Emapserv > %2Ftmp%2Fkrtiny109943484217318.png&scale=&mode=itemnquery&img_addres=%2F%7Em > apserv%2Ftmp%2Fkrtiny109943484217318.png&layers=hm1+porostni_mapa+obrys&qstr > ing=137Ea1a&qitem=tag&mapext=shape&qlayer=porostni_mapa_k_vyhledavani&imgbox > =263+208+263+208&zoomdir=0&zoomsize=4&layer=hm1&layer=porostni_mapa&layer=ob > rys > > -- > Jachym Cepicky > e-mail: jachym.cepicky at centrum.cz > URL: http://les-ejk.cz > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded message was scrubbed... From: =?UTF-8?Q?J=C3=A1chym_=C4=8Cepick=C3=BD?= Subject: itemnquery return Date: Tue, 9 Nov 2004 19:13:15 +0100 Size: 5452 URL: From warmerdam at POBOX.COM Tue Nov 9 10:23:12 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 9 Nov 2004 13:23:12 -0500 Subject: ogr vrt with php_mapscript In-Reply-To: Message-ID: Olivier Gayte wrote: > Hi, > > > I have a problem to use OGR/VRT layers with php_mapscript on linux even > though it works with mapserver. > > ODBC is ok. > OGRINFO work fine both to access to mysql via ODBC or from an ovf file. > Even with mapserv I am able to connect to mysql and to see my points. > The problem occurs only when I try to access to mysql via php_mapscript. > php-mapscript and mapserv have been produced at the same moment and so have > same configuration and I use the same map file. > > It seems php crashes on the line : $oMap->draw(); > Apache report a problem in error_log: > > [Tue Nov 09 14:45:20 2004] [error] [client 127.0.0.1] /var/www/cgi-bin/php- > cgi.sh: line 2: 22303 Segmentation fault /usr/local/php-cgi- > 4.3.7/bin/php, referer: http://localhost/mise09/map_toolbar.phtml? > PHPSESSID=b5e36f8129dcd7c717db7440cbf0a856 > > Configuration : > Linux RedHat 9 > MyODBC 3.51.09 > unixODBC 2.2.10 > GDAL 1.2.0 or 1.2.4 > PhpMapscript MapServer 4.2.3 > php 4.3.7 > > > I have installed unixODBC in /usr/lib or in /usr/local/lib as proposed by > Matthew Holger but there is no change. > I also tried to use GDAL 1.2.4 but the problem is the same. > The same application works fine with php-mapscript and mysql on windows. Olivier, Did you rebuild MapServer and PHP MapScript after updating to GDAL 1.2.4? If you can rebuild them PHP MapScript perhaps you should do so with debug so you can get a traceback in gdb to see where things are crashing. I am not really a PHP user, so it isn't particularly easy for me to debug from my end. Best regards, -- ---------------------------------------+-------------------------------------- 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 pramsey at REFRACTIONS.NET Tue Nov 9 10:25:49 2004 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 9 Nov 2004 10:25:49 -0800 Subject: Return of IMSEMU In-Reply-To: <5CDF07ED-A3E9-4360-B99C-5B22BEC06E5E@topozone.com> Message-ID: Probably not, but that should be simple enough to add. Might need to do some extra bindings in mapscript for ESRI-WKT parsing though. Howard did this already in PyIMS, but the binding is in python to ogr, not in mapscript. If one is willing to accept a few failure cases in the short term for those WKT examples where ESRI is notably non-standard the existing projectionfromwkt binding should work fine. P. Ed McNierney wrote: > Paul - > > Great! Have you used this with ArcGIS 9 / Service Pack 1? I've been > trying to get OUR PHP/MapScript code out to the group, but just when > I thought we were ready, Service Pack 1 came along and broke > everything. SP1 switched to using ESRI-flavored WKT projection > definitions instead of EPSG codes, and I have not had the time yet to > deal with it. > > - Ed > > Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la > carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA > 01863 ed at topozone.com (978) 251-4242 > > -----Original Message----- From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Ramsey Sent: > Tuesday, November 09, 2004 10:42 AM To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Return of IMSEMU > > Hi all, We are pleased to announce a new and improved version of > IMSEMU for your emulating pleasure. For those new to the concept, > IMSEMU is a script which wraps around Mapserver and speaks ArcXML to > client software. This allows ESRI software such as ArcMap and > ArcExplorer to directly access mapserver services using ArcXML -- no > special interoperability extensions required. The new version of > IMSEMU is written using PHP/Mapscript, so the installation should be > much easier than for the old Perl based version. Assuming you have > PHP support for Mapscript and DOMXML, just drop the script in the > right place and go. The new version also adds many features. The > binary stream format is now partially supported, so many > feature-based aspects of ArcXML are supported, such as full preview > mode in ArcCatalog. There are still things missing, but we are > looking forward to your help in finding the remaining gaps and > filling them in. You can download IMSEMU from > http://mapserver.refractions.net Paul > > From dbarron at DSWLLC.COM Tue Nov 9 10:53:26 2004 From: dbarron at DSWLLC.COM (dbarron) Date: Tue, 9 Nov 2004 10:53:26 -0800 Subject: loading mapscript in java error Message-ID: Sean, Using the patched mapgml.c and recompiling seems to have helped fix the problems I was seeing. It appears to be working right now and I just have some environment issues to work out. For example if I do not specify the mapscript.jar on the java command line then the java command will only look in /jre/lib/ext for it and I get an exception: # java -verbose MapScriptTest ... loading mapscript library... mapscript library LOADED... ... [Loaded edu.umn.gis.mapscript.mapObj from file:/usr/local/jdk1.5.0/jre/lib/ext/mapscript.jar] [Loaded edu.umn.gis.mapscript.mapscriptJNI from file:/usr/local/jdk1.5.0/jre/lib/ext/mapscript.jar] [Loaded java.lang.UnsatisfiedLinkError from shared objects file] Exception in thread "main" java.lang.UnsatisfiedLinkError: new_mapObj at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) at edu.umn.gis.mapscript.mapObj.(mapObj.java:334) at MapScriptTest.main(MapScriptTest.java:13) [Loaded java.lang.Shutdown from shared objects file] [Loaded java.lang.Shutdown$Lock from shared objects file] Then, if I export the CLASSPATH again and specify the jar file on the command line then I move beyond that error to an actual mapserver map file issue: #export CLASSPATH #java -verbose -classpath $CLASSPATH:/usr/local/lib/java/mapscript.jar MapScriptTest ... loading mapscript library... mapscript library LOADED... ... [Loaded edu.umn.gis.mapscript.mapObj from file:/usr/local/lib/java/mapscript.jar] [Loaded edu.umn.gis.mapscript.mapscriptJNI from file:/usr/local/lib/java/mapscript.jar] [Loaded java.lang.UnknownError from /usr/local/jdk1.5.0/jre/lib/rt.jar] Exception in thread "main" java.lang.UnknownError: Given map extent is invalid. at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) at edu.umn.gis.mapscript.mapObj.(mapObj.java:334) at MapScriptTest.main(MapScriptTest.java:13) [Loaded java.lang.Shutdown from shared objects file] [Loaded java.lang.Shutdown$Lock from shared objects file] This tells me it is working - would you and Umberto agree? I'll bang on it more today and see where it leads me as well. Thanks for all your efforts! Dan From sgillies at FRII.COM Tue Nov 9 11:00:09 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 9 Nov 2004 12:00:09 -0700 Subject: loading mapscript in java error In-Reply-To: Message-ID: On Nov 9, 2004, at 11:53 AM, dbarron wrote: > Sean, > > Using the patched mapgml.c and recompiling seems to have helped fix > the problems I was seeing. It appears to be working right now and I > just have some environment issues to work out. > Dan, OK. Since I'm not a Java user I am going to step aside at this point. Let me know how things go as you continue to bang on the module. We're going to have a beta3 release in a week or so, and after that the final 4.4.0, so now is the time to find and eliminate bugs. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From ed at TOPOZONE.COM Tue Nov 9 12:16:14 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 9 Nov 2004 15:16:14 -0500 Subject: Return of IMSEMU Message-ID: Paul - That's just about where I am, too - I had not yet gotten around to dealing with the bindings needed for ESRI-WKT. However, as far as I can tell ALL cases are failure cases in ArcGIS 9 / SP1 because none of the WKT is "standard". At least, that is the experience I have been having; simple objects like datums have names like D_North_American_1983 rather than North_American_1983 and cause failure in all cases. I would be happy to set up a test case if anyone would like to hit it with ArcGIS 9 with Service Pack 1 installed. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Ramsey Sent: Tuesday, November 09, 2004 1:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Return of IMSEMU Probably not, but that should be simple enough to add. Might need to do some extra bindings in mapscript for ESRI-WKT parsing though. Howard did this already in PyIMS, but the binding is in python to ogr, not in mapscript. If one is willing to accept a few failure cases in the short term for those WKT examples where ESRI is notably non-standard the existing projectionfromwkt binding should work fine. P. Ed McNierney wrote: > Paul - > > Great! Have you used this with ArcGIS 9 / Service Pack 1? I've been > trying to get OUR PHP/MapScript code out to the group, but just when I > thought we were ready, Service Pack 1 came along and broke everything. > SP1 switched to using ESRI-flavored WKT projection definitions instead > of EPSG codes, and I have not had the time yet to deal with it. > > - Ed > > Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la > carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA > 01863 ed at topozone.com (978) 251-4242 > > -----Original Message----- From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Ramsey Sent: > Tuesday, November 09, 2004 10:42 AM To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Return of IMSEMU > > Hi all, We are pleased to announce a new and improved version of > IMSEMU for your emulating pleasure. For those new to the concept, > IMSEMU is a script which wraps around Mapserver and speaks ArcXML to > client software. This allows ESRI software such as ArcMap and > ArcExplorer to directly access mapserver services using ArcXML -- no > special interoperability extensions required. The new version of > IMSEMU is written using PHP/Mapscript, so the installation should be > much easier than for the old Perl based version. Assuming you have PHP > support for Mapscript and DOMXML, just drop the script in the right > place and go. The new version also adds many features. The binary > stream format is now partially supported, so many feature-based > aspects of ArcXML are supported, such as full preview mode in > ArcCatalog. There are still things missing, but we are looking forward > to your help in finding the remaining gaps and filling them in. You > can download IMSEMU from http://mapserver.refractions.net Paul > > From Dan.Liu at STATE.MN.US Tue Nov 9 12:32:23 2004 From: Dan.Liu at STATE.MN.US (Dan Liu) Date: Tue, 9 Nov 2004 14:32:23 -0600 Subject: setexpression function Message-ID: Hi, I have a question about function setexpression($string). If the length if $string is about 52,000, the class which contains this expression stops working. Does anybody know how to make it work? Thanks for the help. Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Tue Nov 9 13:20:14 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 9 Nov 2004 15:20:14 -0600 Subject: setexpression function Message-ID: That's a heck of a long string. The problem is probably in some internal limits in bison or flex so that's where you'd look. If you can bump the limits you'd need to recompile that tool and then rebuild MapServer. Steve >>> Dan Liu 11/9/2004 2:32:23 PM >>> Hi, I have a question about function setexpression($string). If the length if $string is about 52,000, the class which contains this expression stops working. Does anybody know how to make it work? Thanks for the help. Dan From unicoletti at PROMETEO.IT Tue Nov 9 23:56:36 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Wed, 10 Nov 2004 08:56:36 +0100 Subject: loading mapscript in java error In-Reply-To: <200411091053.26606.dbarron@dswllc.com> Message-ID: On Tue, 2004-11-09 at 19:53, dbarron wrote: > Sean, > > Using the patched mapgml.c and recompiling seems to have helped fix the problems I was seeing. It appears to be working right now and I just have some environment issues to work out. > > For example if I do not specify the mapscript.jar on the java command line then the java command will only look in /jre/lib/ext for it and I get an exception: > > # java -verbose MapScriptTest > ... > loading mapscript library... > mapscript library LOADED... > ... > [Loaded edu.umn.gis.mapscript.mapObj from file:/usr/local/jdk1.5.0/jre/lib/ext/mapscript.jar] at this point java is loading mapscript classes from /usr/local/jdk1.5.0/jre/lib/ext/mapscript.jar Could it be that you have and old (I presume) version of mapscript around? However the UnsatisfiedLinkError means that the mapscript.jar refers to , well, a Linker error :-) (the linker cannot locate functions in the shared library). Make triple sure you do not have old mapscript.jar or .so around. Also check your environ. > [Loaded edu.umn.gis.mapscript.mapscriptJNI from file:/usr/local/jdk1.5.0/jre/lib/ext/mapscript.jar] > [Loaded java.lang.UnsatisfiedLinkError from shared objects file] > Exception in thread "main" java.lang.UnsatisfiedLinkError: new_mapObj > at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) > at edu.umn.gis.mapscript.mapObj.(mapObj.java:334) > at MapScriptTest.main(MapScriptTest.java:13) > [Loaded java.lang.Shutdown from shared objects file] > [Loaded java.lang.Shutdown$Lock from shared objects file] > > Then, if I export the CLASSPATH again and specify the jar file on the command line then I move beyond that error to an actual mapserver map file issue: > > #export CLASSPATH > #java -verbose -classpath $CLASSPATH:/usr/local/lib/java/mapscript.jar MapScriptTest > ... > loading mapscript library... > mapscript library LOADED... > ... > [Loaded edu.umn.gis.mapscript.mapObj from file:/usr/local/lib/java/mapscript.jar] > [Loaded edu.umn.gis.mapscript.mapscriptJNI from file:/usr/local/lib/java/mapscript.jar] > [Loaded java.lang.UnknownError from /usr/local/jdk1.5.0/jre/lib/rt.jar] > Exception in thread "main" java.lang.UnknownError: Given map extent is invalid. > at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) > at edu.umn.gis.mapscript.mapObj.(mapObj.java:334) > at MapScriptTest.main(MapScriptTest.java:13) > [Loaded java.lang.Shutdown from shared objects file] > [Loaded java.lang.Shutdown$Lock from shared objects file] > > This tells me it is working - would you and Umberto agree? I'll bang on it more today and see where it leads me as well. > Yes, it is working. Correct extents in your map. Regards, Umberto > Thanks for all your efforts! > > Dan From francesco.palermo-mail at POSTE.IT Wed Nov 10 00:40:38 2004 From: francesco.palermo-mail at POSTE.IT (Francesco Palermo) Date: Wed, 10 Nov 2004 09:40:38 +0100 Subject: Grouping shape id Message-ID: hello to everybody, i've got one question for you: is there any way in order to group some shape id and to use them like if they were only one (as an example to define one region of more countries and to color only the edge of this)? the solution i've found it's to use more layers. something else? thx Francesco Palermo From sudip_mca at SIFY.COM Wed Nov 10 01:41:58 2004 From: sudip_mca at SIFY.COM (sudip dey) Date: Wed, 10 Nov 2004 14:41:58 +0500 Subject: mapsiz Message-ID: sir i am working upon a gis project using PHP-mapscript and mapserver......now i want to dynamically change the mapsize....though i tried it by altering the values of map->width and map->height but it donot work........ put some useful tips and codes to pull me out of it ...........Sudip -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcastil1 at TRAGSA.ES Wed Nov 10 01:29:35 2004 From: jcastil1 at TRAGSA.ES (Carlos Eduardo Sibaja Salazar) Date: Wed, 10 Nov 2004 03:29:35 -0600 Subject: Problems migratin from w2k to linux Message-ID: Hi list, I'm Javier Castillejo but I'm posting a message from my "list friend" Carlos Eduardo Sibaja Salazar who has problems trying to send a mesage from here.... so I'm posting his message... ************************** I was working in Windows 2k and my mapserver application worked very good. Now I'm trying to do the same application in Linux, but when i try to execute it that message appears: msLoadMap(): Unable to access file (/var/www/ParaTaller.map) This is my url: http://ceres/cgi-bin/mapserv?map=/var/www/ParaTaller.map&layer=RHN I'm sure that the file (.map) is in that direction (/var/www/). I hope you can help me. I need it so much !! ("Excuse my English mistakes") Thanks.!! *************************** Hope we are not doing something strange. And hope his "ponsting" problems will be solved asap. Thanks anyway From bartvde at XS4ALL.NL Wed Nov 10 01:32:13 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 10 Nov 2004 10:32:13 +0100 Subject: mapsiz In-Reply-To: <1100077918.4191db5e293de@www.mail.sify.com> Message-ID: use the set functions: $this->moMapObject->oMap->set( "width", $nWidth ); $this->moMapObject->oMap->set( "height", $nHeight ); Best regards, Bart > sir i am working upon a gis project using PHP-mapscript and > mapserver......now i want to dynamically change the mapsize....though i > tried it by altering the values of map->width and > map->height but it donot work........ put some useful tips and codes to > pull me out of it ...........Sudip From olivier.gayte at VEREMES.COM Wed Nov 10 04:49:53 2004 From: olivier.gayte at VEREMES.COM (Olivier Gayte) Date: Wed, 10 Nov 2004 06:49:53 -0600 Subject: ogr vrt with php_mapscript Message-ID: Franck, It has taken some delay because I had never used gdb until now. You will find herewith the traceback when php_mapscript crashes. /usr/local/lib/libgdal.so.1 points towards libgdal.so.1.5.0 May I do anything else to help you in your investigation? Regards. 826 if (msTryBuildPath3(szPath, layer->map->mappath, (gdb) n 838 if( layer->debug ) (gdb) n 840 poDS = OGRSFDriverRegistrar::Open( pszDSName ); (gdb) s Program received signal SIGSEGV, Segmentation fault. strxmov (dst=0x8264085 "", src=0x204d
) at /home/olivier/tr/source/php-4.3.7/ext/mysql/libmysql/strxmov.c:26 26 while ((*dst++ = *src++)) ; Current language: auto; currently c (gdb) bt #0 strxmov (dst=0x8264085 "", src=0x204d
) at /home/olivier/tr/source/php-4.3.7/ext/mysql/libmysql/strxmov.c:26 #1 0x40bdf427 in SQLConnect () from /usr/lib/libmyodbc3.so #2 0x40b4d706 in SQLConnect (connection_handle=0x824fe48, server_name=0x824f0a8 "str_odbc", name_length1=-3, user_name=0x824f148 "dupont", name_length2=-3, authentication=0x824f168 "dupont", name_length3=-3) at SQLConnect.c:3796 #3 0x40870dc2 in CPLODBCSession::EstablishSession(char const*, char const*, cha r const*) () from /usr/local/lib/libgdal.so.1 #4 0x408e7746 in OGRODBCDataSource::Open(char const*, int, int) () from /usr/local/lib/libgdal.so.1 #5 0x408e7d86 in OGRODBCDriver::Open(char const*, int) () from /usr/local/lib/libgdal.so.1 #6 0x408ee1f7 in OGRSFDriverRegistrar::Open(char const*, int, OGRSFDriver**) () from /usr/local/lib/libgdal.so.1 #7 0x408ee33f in OGRSFDriverRegistrar::OpenShared(char const*, int, OGRSFDriver **) () from /usr/local/lib/libgdal.so.1 #8 0x408f4f99 in OGRVRTLayer::Initialize(_CPLXMLNode*, char const*) () from /usr/local/lib/libgdal.so.1 #9 0x408f4745 in OGRVRTDataSource::Initialize(_CPLXMLNode*, char const*) () from /usr/local/lib/libgdal.so.1 #10 0x408f4997 in OGRVRTDriver::Open(char const*, int) () from /usr/local/lib/libgdal.so.1 ---Type to continue, or q to quit--- #11 0x408ee1f7 in OGRSFDriverRegistrar::Open(char const*, int, OGRSFDriver**) () from /usr/local/lib/libgdal.so.1 #12 0x405154b3 in msOGRFileOpen (layer=0x0, connection=0x81d6670 "ODBC:dupont/dupont at str_odbc< SrcLayer>dossierSELECT DOSSIER_CDN, DOSSIER_XLAM_CDA as x, DOSSIER_YLAM_CDA "...) at mapogr.cpp:833 #13 0x40515e91 in msOGRLayerOpen (layer=0x81b7fb0, pszOverrideConnection=0x0) at mapogr.cpp:1339 #14 0x405172fd in msLayerOpen (layer=0x81b7fb0) at maplayer.c:141 #15 0x4051bcd1 in msDrawVectorLayer (map=0x40b9f008, layer=0x81b7fb0, image=0x81db4d8) at mapdraw.c:663 #16 0x4051bad5 in msDrawLayer (map=0x40b9f008, layer=0x81b7fb0, image=0x81db4d8) at mapdraw.c:585 #17 0x4051b2ef in msDrawMap (map=0x40b9f008) at mapdraw.c:295 #18 0x404e8c1f in mapObj_draw (self=0x40b9f008) at mapscript_i.c:416 #19 0x404dadad in php3_ms_map_draw (ht=0, return_value=0x81b2a84, this_ptr=0x81b2a64, return_value_used=1) at php_mapscript.c:3311 #20 0x08122216 in execute (op_array=0x81b2ca4) at /home/olivier/tr/source/php-4.3.7/Zend/zend_execute.c:1635 #21 0x08117477 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/olivier/tr/source/php-4.3.7/Zend/zend.c:891 #22 0x080f614f in php_execute_script (primary_file=0xbffff010) ---Type to continue, or q to quit--- at /home/olivier/tr/source/php-4.3.7/main/main.c:1731 #23 0x081265b7 in main (argc=2, argv=0xbffff094) at /home/olivier/tr/source/php-4.3.7/sapi/cgi/cgi_main.c:1592 #24 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6 (gdb) From warmerdam at POBOX.COM Wed Nov 10 06:08:59 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 10 Nov 2004 09:08:59 -0500 Subject: ogr vrt with php_mapscript In-Reply-To: Message-ID: Olivier Gayte wrote: > Franck, > > It has taken some delay because I had never used gdb until now. > You will find herewith the traceback when php_mapscript crashes. > /usr/local/lib/libgdal.so.1 points towards libgdal.so.1.5.0 > May I do anything else to help you in your investigation? Oliver, The fact that the traceback shows a crash down inside the mysql odbc driver on the SQLConnect() suggests to me that the issue is not specifically mapserver or OGR but the odbc configuration. The arguments to SQLConnect() look reasonable ... certainly no obvious reason for a crash. I really don't know what to suggest. Best regards, -- ---------------------------------------+-------------------------------------- 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 wlx at MYGIS.ORG Wed Nov 10 06:09:55 2004 From: wlx at MYGIS.ORG (wlx) Date: Wed, 10 Nov 2004 22:09:55 +0800 Subject: How to add hdf files to map file? Message-ID: Hi, Gdal has included hdf4 file format's support from version 1.2.3,and I has installed it in my debian system.But I don't know how to add hdf's subdataset to map file as a layer,so can someone help me? Thanks. LiangXu Wang From ivano.picco at AQUPI.TK Wed Nov 10 07:16:25 2004 From: ivano.picco at AQUPI.TK (Ivano Picco) Date: Wed, 10 Nov 2004 09:16:25 -0600 Subject: OGR bug? Message-ID: Hi!, This command with ogrinfo: ogrinfo OCI:XX/XX at GEO ctr.edificati -sql "SELECT GEOMETRY FROM edificati" doesn't report any problem, it tooks only 30 Mbyte of memory.My perl script that gives the same informations, tooks about 2.2Gbyte. The same happens with mapserv: request: http://AS2:18091/cgi-bin/mapserv?map=/home/mapserver/dati/CTR/CTR.map&mode=itemnquery&qstring=//&qlayer=regione_SVG_SDO_OGR&qitem=OBJECTID query layer definition: LAYER NAME regione_SVG_SDO_OGR STATUS ON CONNECTION "OCI:XX/XX at GEO" CONNECTIONTYPE OGR DATA "SELECT OBJECTID,GEOMETRY FROM edificati" #WHERE SDO_FILTER( regione.GEOMETRY, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(313263,4879724,517049,5145994) ),'querytype=window') = 'TRUE'" TYPE QUERY TEMPLATE county.svg METADATA WMS_TITLE "Regione SVG" WMS_ABSTRACT "Esempio per la generazione di SVG" END END Both the requests (mapscript or query layer) uses the getFeature, isn't it? I have ran the same perl script or mapserv request against the shapefile or the ArcSDE and everything works fine. Maybe it's a problem involving mapserver. I modify my perl script to give me information about memory size occupied (VmSize from /proc/PID/status): with SDE and shapefile access sometimes it loads some kbytes (max 8 kbyte SDE, 4Kbyte Spatial). With OCI it reports a new memory allocations of 20 to 88 Kbytes for every loop! Maybe this is the memory leak you talk about. This is my perl script: [...CUT...] $PID=Linux::Pid::getpid(); die mapscript::ms_error->{message} unless my $layer = $map->getLayerByName('isolati_10k_SDO_OGR'); print "Loading Layer ".$layer->{index}."\n"; $layer->open(); print `cat /proc/$PID\/status`; my $i=1; my $shape= $layer->getFeature($i); while ( $shape->{bounds}->{minx}>0 && $i<10){ print "Shape $i has ". $shape->{numlines} ." part(s) - "; for($j=0; $j<$shape->{numlines}; $j++) { my $part = $shape->get($j); print "Part $j has ". $part->{numpoints} ." point(s)\n"; for($k=0; $k<$part->{numpoints}; $k++) { my $point = $part->get($k); print "$k: ". $point->{x} .", ". $point->{y} ."\n"; } print `cat /proc/$PID\/status`; } $i++; $shape= $layer->getFeature($i); } [...CUT...] About image draw: I try to draw map of a SDE end OCI layer with this mapscript: [...CUT...] my $img = $map->prepareImage(); $layer->draw($map, $img); $img->save('prova.gif'); [...CUT...] It draws an image from shapefile and Oracle Spatial, but it returns a blank image from SDE and OCI layer. I thought it was another unsupported method like getFeature on Oracle Spatial layer. About fetching features: >The GetFeature() method at >the OGR level is supposed to work with the OCI driver. If there isn't an >identified primary key (currently I just look for a field named OGR_FID) >then I end up just using a sequence number as the index, and then fetching >an individual feature can be very expensive (I have to run through all the >features to count to it). mmmh, I don't understand. Do you identify a primary key (I use a field named OBJECTID as a primary key, like SDE and shapefile format)? Would I have to specify it?, where? Do you load every layer's feature to get the one at index j? I made my tests on a Red Hat Linux Advanced Server release 2.1AS, kernel 2.4.9, 4 cpus, 1.5 Gbyte RAM, Mapserver 4.4.0-beta2 and GDAL 1.2.4, ArcSDE 8.3 and Oracle Spatial 9.2.0.1 and 10.0.1.0.2. Thanks for your help, Ivano Picco From warmerdam at POBOX.COM Wed Nov 10 07:16:26 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 10 Nov 2004 10:16:26 -0500 Subject: How to add hdf files to map file? In-Reply-To: Message-ID: wlx wrote: > Hi, > Gdal has included hdf4 file format's support from version 1.2.3,and I > has installed it in my debian system.But I don't know how to add hdf's > subdataset to map file as a layer,so can someone help me? LiangXu Wang, If you run gdalinfo on a complex HDF file you will see a list of subdatasets. Stuff like: Subdatasets: SUBDATASET_1_NAME=HDF4_EOS:EOS_SWATH:"/u/data/hdf/MOD07_L2.A2000110.0220.002.2 000196104217.hdf":mod07:Scan_Start_Time SUBDATASET_1_DESC=[406x270] Scan_Start_Time (64-bit floating-point) SUBDATASET_2_NAME=HDF4_EOS:EOS_SWATH:"/u/data/hdf/MOD07_L2.A2000110.0220.002.2 000196104217.hdf":mod07:Solar_Zenith SUBDATASET_2_DESC=[406x270] Solar_Zenith (16-bit integer) SUBDATASET_3_NAME=HDF4_EOS:EOS_SWATH:"/u/data/hdf/MOD07_L2.A2000110.0220.002.2 000196104217.hdf":mod07:Solar_Azimuth SUBDATASET_3_DESC=[406x270] Solar_Azimuth (16-bit integer) SUBDATASET_4_NAME=HDF4_EOS:EOS_SWATH:"/u/data/hdf/MOD07_L2.A2000110.0220.002.2 000196104217.hdf":mod07:Sensor_Zenith SUBDATASET_4_DESC=[406x270] Sensor_Zenith (16-bit integer) SUBDATASET_5_NAME=HDF4_EOS:EOS_SWATH:"/u/data/hdf/MOD07_L2.A2000110.0220.002.2 000196104217.hdf":mod07:Sensor_Azimuth SUBDATASET_5_DESC=[406x270] Sensor_Azimuth (16-bit integer) SUBDATASET_6_NAME=HDF4_EOS:EOS_SWATH:"/u/data/hdf/MOD07_L2.A2000110.0220.002.2 000196104217.hdf":mod07:Brightness_Temperature Take the SUBDATASET_n_NAME you want, and use that in your DATA statement in your mapfile. Make sure you use single quotes around it since the name itself includes double quotes. eg. DATA 'HDF4_EOS:EOS_SWATH:"/u/data/hdf/MOD07_L2.A2000110.0220.002.2000196104217.hdf":mod07:Brightness_Temperature' Also, make sure you use absolute paths since the SHAPEPATH and other MapServer path manipulation won't work properly in these dataset names since they are not just the name of a simple filesystem object. I hope this helps. Best regards, -- ---------------------------------------+-------------------------------------- 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 siki at AGT.BME.HU Wed Nov 10 09:28:30 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 10 Nov 2004 16:28:30 -0100 Subject: Problems migratin from w2k to linux {Scanned} {Scanned} In-Reply-To: Message-ID: Hi, Check the access rights of the wbserver user. Possibly the webserver has no read access to the file. Bye Zoltan On Wed, 10 Nov 2004, Carlos Eduardo Sibaja Salazar wrote: > Hi list, I'm Javier Castillejo but I'm posting a message from my "list > friend" Carlos Eduardo Sibaja Salazar who has problems trying to send a > mesage from here.... so I'm posting his message... > > ************************** > > I was working in Windows 2k and my mapserver application worked very good. > Now I'm trying to do > the same application in Linux, but when i try to execute it that message > appears: > msLoadMap(): Unable to access file (/var/www/ParaTaller.map) > > This is my url: > http://ceres/cgi-bin/mapserv?map=/var/www/ParaTaller.map&layer=RHN > > I'm sure that the file (.map) is in that direction (/var/www/). > > I hope you can help me. I need it so much !! > ("Excuse my English mistakes") > Thanks.!! > > *************************** > > Hope we are not doing something strange. And hope his "ponsting" problems > will be solved asap. > > Thanks anyway > From sirronj at PACBELL.NET Wed Nov 10 08:45:52 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 10 Nov 2004 08:45:52 -0800 Subject: need help to begin - very newbee Message-ID: Hello to all, I have successfully installed mapserver and I have the following files: B_Major_Cities_2.dbf B_Major_Cities_2.prj B_Major_Cities_2.shp B_Major_Cities_2.shx Country_Boundaries_3.dbf Country_Boundaries_3.prj Country_Boundaries_3.shp Country_Boundaries_3.shx Rivers_2.dbf Rivers_2.prj Rivers_2.shp Rivers_2.shx Streets_and_Railroads_1.dbf Streets_and_Railroads_1.prj Streets_and_Railroads_1.shp Streets_and_Railroads_1.shx Water_Bodies_2.dbf Water_Bodies_2.prj Water_Bodies_2.shp Water_Bodies_2.shx I have the following map file: MAP IMAGETYPE GIF EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 500 400 SHAPEPATH "data" IMAGECOLOR 255 255 255 # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # California polygon layer begins here NAME "Country_Boundaries_3" DATA "Country_Boundaries_3" STATUS DEFAULT TYPE POLYGON END # States polygon layer ends here # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object I then do the following: http://mco.communityservers.com/cgi-bin/mapserv.cgi?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map in my browser - but I get now dump of the map. I have been over the tutorial ( - please - if anyone has a more simplified tutorial - let me know ) but I do not see where I am in error. Thanks to all #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From David.Fawcett at STATE.MN.US Wed Nov 10 09:02:07 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Wed, 10 Nov 2004 11:02:07 -0600 Subject: need help to begin - very newbee Message-ID: Joseph, This may not be your entire problem, but you need to modify the URL. I believe that you have the wrong suffix on the name of the mapserv binary file. Use this if you are on Windows: http://mco.communityservers.com/cgi-bin/mapserv.exe?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map Or this if you are on 'nix: http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map David. David J. Fawcett MN Office of Environmental Assistance >>> Joseph Norris 11/10/2004 10:45:52 AM >>> Hello to all, I have successfully installed mapserver and I have the following files: B_Major_Cities_2.dbf B_Major_Cities_2.prj B_Major_Cities_2.shp B_Major_Cities_2.shx Country_Boundaries_3.dbf Country_Boundaries_3.prj Country_Boundaries_3.shp Country_Boundaries_3.shx Rivers_2.dbf Rivers_2.prj Rivers_2.shp Rivers_2.shx Streets_and_Railroads_1.dbf Streets_and_Railroads_1.prj Streets_and_Railroads_1.shp Streets_and_Railroads_1.shx Water_Bodies_2.dbf Water_Bodies_2.prj Water_Bodies_2.shp Water_Bodies_2.shx I have the following map file: MAP IMAGETYPE GIF EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 500 400 SHAPEPATH "data" IMAGECOLOR 255 255 255 # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # California polygon layer begins here NAME "Country_Boundaries_3" DATA "Country_Boundaries_3" STATUS DEFAULT TYPE POLYGON END # States polygon layer ends here # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object I then do the following: http://mco.communityservers.com/cgi-bin/mapserv.cgi?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map in my browser - but I get now dump of the map. I have been over the tutorial ( - please - if anyone has a more simplified tutorial - let me know ) but I do not see where I am in error. Thanks to all #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From sirronj at PACBELL.NET Wed Nov 10 09:11:39 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 10 Nov 2004 09:11:39 -0800 Subject: need help to begin - very newbee In-Reply-To: Message-ID: I have named the executable mapserv.cgi - and it works just fine on the demo model that I have obtained with mapserv. I am doing something wrong with the mapfile I think. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of David Fawcett Sent: Wednesday, November 10, 2004 9:02 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] need help to begin - very newbee Joseph, This may not be your entire problem, but you need to modify the URL. I believe that you have the wrong suffix on the name of the mapserv binary file. Use this if you are on Windows: http://mco.communityservers.com/cgi-bin/mapserv.exe?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map Or this if you are on 'nix: http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map David. David J. Fawcett MN Office of Environmental Assistance >>> Joseph Norris 11/10/2004 10:45:52 AM >>> Hello to all, I have successfully installed mapserver and I have the following files: B_Major_Cities_2.dbf B_Major_Cities_2.prj B_Major_Cities_2.shp B_Major_Cities_2.shx Country_Boundaries_3.dbf Country_Boundaries_3.prj Country_Boundaries_3.shp Country_Boundaries_3.shx Rivers_2.dbf Rivers_2.prj Rivers_2.shp Rivers_2.shx Streets_and_Railroads_1.dbf Streets_and_Railroads_1.prj Streets_and_Railroads_1.shp Streets_and_Railroads_1.shx Water_Bodies_2.dbf Water_Bodies_2.prj Water_Bodies_2.shp Water_Bodies_2.shx I have the following map file: MAP IMAGETYPE GIF EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 500 400 SHAPEPATH "data" IMAGECOLOR 255 255 255 # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # California polygon layer begins here NAME "Country_Boundaries_3" DATA "Country_Boundaries_3" STATUS DEFAULT TYPE POLYGON END # States polygon layer ends here # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object I then do the following: http://mco.communityservers.com/cgi-bin/mapserv.cgi?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map in my browser - but I get now dump of the map. I have been over the tutorial ( - please - if anyone has a more simplified tutorial - let me know ) but I do not see where I am in error. Thanks to all #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From gireddy at GMAIL.COM Wed Nov 10 09:37:24 2004 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Wed, 10 Nov 2004 11:37:24 -0600 Subject: different data attribute Message-ID: HI, I have all alabama state related shp/dbf/shx files with me, i want to add another attribute to my dbf file (ex. I had FIPS,NAME,POP_2000 in my dbf file and now i want to add No_of_accidents to it.) Initially i tried adding a seperate column using excel but that didn't work. Can anybody help me?. Is it possible to show a different query/map if the user clicks on a perticulor place of the map? thank you, shashi. From David.Fawcett at STATE.MN.US Wed Nov 10 10:13:53 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Wed, 10 Nov 2004 12:13:53 -0600 Subject: need help to begin - very newbee Message-ID: Joseph, What do you mean by 'dump of the map'? Is it an image of the map (as you would expect from mode=map)? Is it a dump of the text of the map file? Did you get any sort of error message? David. >>> Joseph Norris 11/10/2004 11:11:39 AM >>> I have named the executable mapserv.cgi - and it works just fine on the demo model that I have obtained with mapserv. I am doing something wrong with the mapfile I think. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of David Fawcett Sent: Wednesday, November 10, 2004 9:02 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] need help to begin - very newbee Joseph, This may not be your entire problem, but you need to modify the URL. I believe that you have the wrong suffix on the name of the mapserv binary file. Use this if you are on Windows: http://mco.communityservers.com/cgi-bin/mapserv.exe?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map Or this if you are on 'nix: http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map David. David J. Fawcett MN Office of Environmental Assistance >>> Joseph Norris 11/10/2004 10:45:52 AM >>> Hello to all, I have successfully installed mapserver and I have the following files: B_Major_Cities_2.dbf B_Major_Cities_2.prj B_Major_Cities_2.shp B_Major_Cities_2.shx Country_Boundaries_3.dbf Country_Boundaries_3.prj Country_Boundaries_3.shp Country_Boundaries_3.shx Rivers_2.dbf Rivers_2.prj Rivers_2.shp Rivers_2.shx Streets_and_Railroads_1.dbf Streets_and_Railroads_1.prj Streets_and_Railroads_1.shp Streets_and_Railroads_1.shx Water_Bodies_2.dbf Water_Bodies_2.prj Water_Bodies_2.shp Water_Bodies_2.shx I have the following map file: MAP IMAGETYPE GIF EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 500 400 SHAPEPATH "data" IMAGECOLOR 255 255 255 # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # California polygon layer begins here NAME "Country_Boundaries_3" DATA "Country_Boundaries_3" STATUS DEFAULT TYPE POLYGON END # States polygon layer ends here # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object I then do the following: http://mco.communityservers.com/cgi-bin/mapserv.cgi?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map in my browser - but I get now dump of the map. I have been over the tutorial ( - please - if anyone has a more simplified tutorial - let me know ) but I do not see where I am in error. Thanks to all #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From p.willis at TELUS.NET Wed Nov 10 10:08:17 2004 From: p.willis at TELUS.NET (pw) Date: Wed, 10 Nov 2004 10:08:17 -0800 Subject: Geographically square pixels Message-ID: Hello, In my configuration file (.map file) if I have an image that is projected with equal area degrees pixels, (ie: each pixel is evenly sized in 'seconds' not feet or meters) how can I set up mapserver to know what scale the pixels are in the X and Y direction for the raster? I have been looking at the proj4 manual and at the mapserver manual and there doesn't apper to be any way to define the extents of an input raster in degrees so that it can be mapped to, say, lambert. Thanks for any insight, Peter From sirronj at PACBELL.NET Wed Nov 10 10:19:20 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 10 Nov 2004 10:19:20 -0800 Subject: need help to begin - very newbee In-Reply-To: Message-ID: Thanks for the help David. I am not getting anything - the browser just says done and does not show anything. Nothing in the error_log either. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: David Fawcett [mailto:David.Fawcett at state.mn.us] Sent: Wednesday, November 10, 2004 10:14 AM To: MAPSERVER-USERS at lists.umn.edu; sirronj at pacbell.net Subject: Re: [UMN_MAPSERVER-USERS] need help to begin - very newbee Joseph, What do you mean by 'dump of the map'? Is it an image of the map (as you would expect from mode=map)? Is it a dump of the text of the map file? Did you get any sort of error message? David. >>> Joseph Norris 11/10/2004 11:11:39 AM >>> I have named the executable mapserv.cgi - and it works just fine on the demo model that I have obtained with mapserv. I am doing something wrong with the mapfile I think. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of David Fawcett Sent: Wednesday, November 10, 2004 9:02 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] need help to begin - very newbee Joseph, This may not be your entire problem, but you need to modify the URL. I believe that you have the wrong suffix on the name of the mapserv binary file. Use this if you are on Windows: http://mco.communityservers.com/cgi-bin/mapserv.exe?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map Or this if you are on 'nix: http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map David. David J. Fawcett MN Office of Environmental Assistance >>> Joseph Norris 11/10/2004 10:45:52 AM >>> Hello to all, I have successfully installed mapserver and I have the following files: B_Major_Cities_2.dbf B_Major_Cities_2.prj B_Major_Cities_2.shp B_Major_Cities_2.shx Country_Boundaries_3.dbf Country_Boundaries_3.prj Country_Boundaries_3.shp Country_Boundaries_3.shx Rivers_2.dbf Rivers_2.prj Rivers_2.shp Rivers_2.shx Streets_and_Railroads_1.dbf Streets_and_Railroads_1.prj Streets_and_Railroads_1.shp Streets_and_Railroads_1.shx Water_Bodies_2.dbf Water_Bodies_2.prj Water_Bodies_2.shp Water_Bodies_2.shx I have the following map file: MAP IMAGETYPE GIF EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 500 400 SHAPEPATH "data" IMAGECOLOR 255 255 255 # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # California polygon layer begins here NAME "Country_Boundaries_3" DATA "Country_Boundaries_3" STATUS DEFAULT TYPE POLYGON END # States polygon layer ends here # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object I then do the following: http://mco.communityservers.com/cgi-bin/mapserv.cgi?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map in my browser - but I get now dump of the map. I have been over the tutorial ( - please - if anyone has a more simplified tutorial - let me know ) but I do not see where I am in error. Thanks to all #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From ed at TOPOZONE.COM Wed Nov 10 10:25:06 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 10 Nov 2004 13:25:06 -0500 Subject: Geographically square pixels Message-ID: Peter - If you have an image in that projection, the scale MUST be expressed in "degrees". That's not a very useful value because a degree of latitude isn't the same size as a degree of longitude, and "one degree" measured at an angle isn't a very useful measurement to most people. However, that's the property of the map projection you're using, and that's what the scale will be. If you need to provide the ability to measure distances in feet or meters or the like, you will need to construct a JavaScript measurement tool or similar doodad to do the calculation. The USGS does something like this on the National Map viewer site. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of pw Sent: Wednesday, November 10, 2004 1:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Geographically square pixels Hello, In my configuration file (.map file) if I have an image that is projected with equal area degrees pixels, (ie: each pixel is evenly sized in 'seconds' not feet or meters) how can I set up mapserver to know what scale the pixels are in the X and Y direction for the raster? I have been looking at the proj4 manual and at the mapserver manual and there doesn't apper to be any way to define the extents of an input raster in degrees so that it can be mapped to, say, lambert. Thanks for any insight, Peter From nunoragil at YAHOO.COM Wed Nov 10 10:31:37 2004 From: nunoragil at YAHOO.COM (Nuno GIL) Date: Wed, 10 Nov 2004 10:31:37 -0800 Subject: wcs issues on getting data Message-ID: Dear listers, I've installed mapserver in order to use its wcs capabilities. The GetCapabilities request works fine, the problem is when I try to use the GetCoverage request. Actually I don't receive any error message, but the received file is empty. I'm querying the server with this request: http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?REQUEST=GetCoverage&COVERAGE=l5&SERVICE=WCS&map=/ge/data/iceds/alpha/umms/wcs_land3.map&BBOX=48.5,-21.5,48.7,-21.3&FORMAT=GEOTIFF_RGB&CRS=EPSG:4326&RESX=0.00027778&RESY=0.00027778 Just to try and sort out the problem, I reduced the data being served to only a simple image with one channel (no tiles), no results as well... Used the gdalinfo utility to check some parameters of the image: Driver: GTiff/GeoTIFF Size is 1800, 1800 Coordinate System is `' Origin = (48.500000,-21.000000) Pixel Size = (0.00027778,-0.00027778) Metadata: TIFFTAG_SOFTWARE=Arc/Info TIFFTAG_XRESOLUTION=3599.999 TIFFTAG_YRESOLUTION=3599.999 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( 48.5000000, -21.0000000) Lower Left ( 48.5000000, -21.5000000) Upper Right ( 49.0000000, -21.0000000) Lower Right ( 49.0000000, -21.5000000) Center ( 48.7500000, -21.2500000) Band 1 Block=256x256 Type=Byte, ColorInterp=Gray and the map file looks like this: MAP NAME 'DEMOWCS' EXTENT 48.5 -21.5 49 -21 UNITS dd SIZE 500 400 SHAPEPATH "/ge/data/iceds/alpha/iceds/landsat/original/madagascar/deegree/band1/" IMAGETYPE PNG OUTPUTFORMAT NAME GEOTIFF_INT16 DRIVER "GDAL/GTiff" IMAGEMODE INT16 END OUTPUTFORMAT NAME GEOTIFF_RGB DRIVER "GDAL/GTiff" IMAGEMODE RGB FORMATOPTION "INTERLEAVE=BAND" END WEB METADATA "wcs_label" "ICEDS demo WCS Server" "wcs_keywordlist" "WCS,ICEDS" "wcs_onlineresource" "http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?map=/ge/data/iceds/alpha/umms/wcs_land3.map&" "wms_srs" "epsg:4326" END IMAGEURL "/tmp/" IMAGEPATH "/var/www/html/tmp/" END LAYER NAME "L5" STATUS OFF TYPE RASTER PROCESSING "SCALE=AUTO" METADATA wcs_label "Landsat5 data for Madagascar" ows_extent "48.5 -21.5 49 -21" wcs_resolution "0.00027778 0.00027778" ows_srs "EPSG:4326" wcs_formats "GEOTIFF_RGB GEOTIFF_16BIT" wcs_nativeformat "raw binary" wcs_rangeset_axes "bands" wcs_bands_name "bands" wcs_bands_description "Enter some clever description of each TM band here..." wcs_bands_label "Landsat Radiometric Bands" wcs_bands_values "1" wcs_bands_rangeitem '_bands' END DUMP TRUE DATA "/ge/data/iceds/alpha/iceds/landsat/original/madagascar/deegree/band1/out.tif" END END Does anyone understands what is going wrong? Any help would be much appreciated. Nuno __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com From sobomsawin at KASSINI.COM Wed Nov 10 10:36:41 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 10 Nov 2004 13:36:41 -0500 Subject: [UMN_MAPSERVER-USERS] need help to begin - very newbee In-Reply-To: Message-ID: Take a closer look at your browser; maybe you have a map wich doesn't show anything and have a white background. Right click in your browser or try to select something and you could see there is an image. If this is true, your problem is your extents or your projection. Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Joseph Norris Envoy??: 10 novembre 2004 13:19 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] need help to begin - very newbee Thanks for the help David. I am not getting anything - the browser just says done and does not show anything. Nothing in the error_log either. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: David Fawcett [mailto:David.Fawcett at state.mn.us] Sent: Wednesday, November 10, 2004 10:14 AM To: MAPSERVER-USERS at lists.umn.edu; sirronj at pacbell.net Subject: Re: [UMN_MAPSERVER-USERS] need help to begin - very newbee Joseph, What do you mean by 'dump of the map'? Is it an image of the map (as you would expect from mode=map)? Is it a dump of the text of the map file? Did you get any sort of error message? David. >>> Joseph Norris 11/10/2004 11:11:39 AM >>> I have named the executable mapserv.cgi - and it works just fine on the demo model that I have obtained with mapserv. I am doing something wrong with the mapfile I think. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of David Fawcett Sent: Wednesday, November 10, 2004 9:02 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] need help to begin - very newbee Joseph, This may not be your entire problem, but you need to modify the URL. I believe that you have the wrong suffix on the name of the mapserv binary file. Use this if you are on Windows: http://mco.communityservers.com/cgi-bin/mapserv.exe?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map Or this if you are on 'nix: http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map David. David J. Fawcett MN Office of Environmental Assistance >>> Joseph Norris 11/10/2004 10:45:52 AM >>> Hello to all, I have successfully installed mapserver and I have the following files: B_Major_Cities_2.dbf B_Major_Cities_2.prj B_Major_Cities_2.shp B_Major_Cities_2.shx Country_Boundaries_3.dbf Country_Boundaries_3.prj Country_Boundaries_3.shp Country_Boundaries_3.shx Rivers_2.dbf Rivers_2.prj Rivers_2.shp Rivers_2.shx Streets_and_Railroads_1.dbf Streets_and_Railroads_1.prj Streets_and_Railroads_1.shp Streets_and_Railroads_1.shx Water_Bodies_2.dbf Water_Bodies_2.prj Water_Bodies_2.shp Water_Bodies_2.shx I have the following map file: MAP IMAGETYPE GIF EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 500 400 SHAPEPATH "data" IMAGECOLOR 255 255 255 # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # California polygon layer begins here NAME "Country_Boundaries_3" DATA "Country_Boundaries_3" STATUS DEFAULT TYPE POLYGON END # States polygon layer ends here # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object I then do the following: http://mco.communityservers.com/cgi-bin/mapserv.cgi?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map in my browser - but I get now dump of the map. I have been over the tutorial ( - please - if anyone has a more simplified tutorial - let me know ) but I do not see where I am in error. Thanks to all #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 From warmerdam at POBOX.COM Wed Nov 10 10:40:23 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 10 Nov 2004 13:40:23 -0500 Subject: wcs issues on getting data In-Reply-To: <20041110183138.31314.qmail@web53010.mail.yahoo.com> Message-ID: Nuno GIL wrote: >Dear listers, >I've installed mapserver in order to use its wcs >capabilities. >The GetCapabilities request works fine, the problem is >when I try to use the GetCoverage request. Actually I >don't receive any error message, but the received file >is empty. >I'm querying the server with this request: >http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?REQUEST=GetCoverage&COVERAGE=l5&SERVICE=WCS&map=/ge/data/iceds/alpha/umms/wcs_land3.map&BBOX=48.5,-21.5,48.7,-21.3&FORMAT=GEOTIFF_RGB&CRS=EPSG:4326&RESX=0.00027778&RESY=0.00027778 > >Just to try and sort out the problem, I reduced the >data being served to only a simple image with one >channel (no tiles), no results as well... > > Nuno, I notice you have no coordinate system defined for your image as a PROJECTION block. I would encourage you to add a block like this in your layer: PROJECTION "+init=epsg:4326" END If it makes things work, please update the WCS wiki docs to mention this requirement. Best regards, -- ---------------------------------------+-------------------------------------- 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 sirronj at PACBELL.NET Wed Nov 10 10:47:27 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 10 Nov 2004 10:47:27 -0800 Subject: [UMN_MAPSERVER-USERS] need help to begin - very newbee In-Reply-To: <000801c4c754$3c2f2740$6402a8c0@jebediah> Message-ID: I did a right click like you suggested and on the properties - the image cannot be display because of errors. Maybe I have the extents wrong - but to all - I am not familiar with how to calculate the extents from a shape file. Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Skweda O'Bomsawin Sent: Wednesday, November 10, 2004 10:37 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] need help to begin - very newbee Take a closer look at your browser; maybe you have a map wich doesn't show anything and have a white background. Right click in your browser or try to select something and you could see there is an image. If this is true, your problem is your extents or your projection. Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Joseph Norris Envoy? : 10 novembre 2004 13:19 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] need help to begin - very newbee Thanks for the help David. I am not getting anything - the browser just says done and does not show anything. Nothing in the error_log either. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: David Fawcett [mailto:David.Fawcett at state.mn.us] Sent: Wednesday, November 10, 2004 10:14 AM To: MAPSERVER-USERS at lists.umn.edu; sirronj at pacbell.net Subject: Re: [UMN_MAPSERVER-USERS] need help to begin - very newbee Joseph, What do you mean by 'dump of the map'? Is it an image of the map (as you would expect from mode=map)? Is it a dump of the text of the map file? Did you get any sort of error message? David. >>> Joseph Norris 11/10/2004 11:11:39 AM >>> I have named the executable mapserv.cgi - and it works just fine on the demo model that I have obtained with mapserv. I am doing something wrong with the mapfile I think. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of David Fawcett Sent: Wednesday, November 10, 2004 9:02 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] need help to begin - very newbee Joseph, This may not be your entire problem, but you need to modify the URL. I believe that you have the wrong suffix on the name of the mapserv binary file. Use this if you are on Windows: http://mco.communityservers.com/cgi-bin/mapserv.exe?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map Or this if you are on 'nix: http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map David. David J. Fawcett MN Office of Environmental Assistance >>> Joseph Norris 11/10/2004 10:45:52 AM >>> Hello to all, I have successfully installed mapserver and I have the following files: B_Major_Cities_2.dbf B_Major_Cities_2.prj B_Major_Cities_2.shp B_Major_Cities_2.shx Country_Boundaries_3.dbf Country_Boundaries_3.prj Country_Boundaries_3.shp Country_Boundaries_3.shx Rivers_2.dbf Rivers_2.prj Rivers_2.shp Rivers_2.shx Streets_and_Railroads_1.dbf Streets_and_Railroads_1.prj Streets_and_Railroads_1.shp Streets_and_Railroads_1.shx Water_Bodies_2.dbf Water_Bodies_2.prj Water_Bodies_2.shp Water_Bodies_2.shx I have the following map file: MAP IMAGETYPE GIF EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 500 400 SHAPEPATH "data" IMAGECOLOR 255 255 255 # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # California polygon layer begins here NAME "Country_Boundaries_3" DATA "Country_Boundaries_3" STATUS DEFAULT TYPE POLYGON END # States polygon layer ends here # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object I then do the following: http://mco.communityservers.com/cgi-bin/mapserv.cgi?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map in my browser - but I get now dump of the map. I have been over the tutorial ( - please - if anyone has a more simplified tutorial - let me know ) but I do not see where I am in error. Thanks to all #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 From ed at TOPOZONE.COM Wed Nov 10 10:51:45 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 10 Nov 2004 13:51:45 -0500 Subject: Geographically square pixels Message-ID: Peter - First, please always reply to the entire list. The first person to reply may not be able to answer all your questions, and answering one question isn't a commitment to answer them ALL . I'm having a little trouble parsing your comments - what exactly are you trying to do? It sounds like you're trying to compute the scale in feet or meters from the extent in "degrees", and if that's the case you need to also take into account the angle of the measurement - in case the measurement is neither due east-west or north-south. Are you trying to display a scale bar, compute a distance between two points, or somehow reproject or rescale the source map image? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: peter Willis [mailto:peterw at borstad.com] Sent: Wednesday, November 10, 2004 1:43 PM To: Ed McNierney Subject: Re: [UMN_MAPSERVER-USERS] Geographically square pixels Hello Ed, So, to define the pixel scale, the 'scale' value for the raster layer is the thing I set? As you imply, this won't do me much good if the raster covers a substantial distance in the north/south direction. I was hoping for 4-corners + center-coordinate input to re-map based on the changing east-west image pixel size, as the swath travels south to north..... Peter Ed McNierney wrote: >Peter - > >If you have an image in that projection, the scale MUST be expressed in "degrees". That's not a very useful value because a degree of latitude isn't the same size as a degree of longitude, and "one degree" measured at an angle isn't a very useful measurement to most people. However, that's the property of the map projection you're using, and that's what the scale will be. > >If you need to provide the ability to measure distances in feet or meters or the like, you will need to construct a JavaScript measurement tool or similar doodad to do the calculation. The USGS does something like this on the National Map viewer site. > > - Ed > >Ed McNierney >President and Chief Mapmaker >TopoZone.com / Maps a la carte, Inc. >73 Princeton Street, Suite 305 >North Chelmsford, MA 01863 >ed at topozone.com >(978) 251-4242 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >On Behalf Of pw >Sent: Wednesday, November 10, 2004 1:08 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Geographically square pixels > >Hello, > >In my configuration file (.map file) if I have an image that is >projected with equal area degrees pixels, >(ie: each pixel is evenly sized in 'seconds' not feet or meters) how can I set up mapserver to know what scale the pixels are in the X and Y direction for the raster? > >I have been looking at the proj4 manual and at the mapserver manual and there doesn't apper to be any way to define the extents of an input raster in degrees so that it can be mapped to, say, lambert. > >Thanks for any insight, > >Peter > > > > > > From nunoragil at YAHOO.COM Wed Nov 10 10:53:02 2004 From: nunoragil at YAHOO.COM (Nuno GIL) Date: Wed, 10 Nov 2004 10:53:02 -0800 Subject: wcs issues on getting data In-Reply-To: <41926097.90006@pobox.com> Message-ID: Unfortunately, didn't help :-( Thanks anyway Frank. Best regards, N --- Frank Warmerdam wrote: > Nuno GIL wrote: > > >Dear listers, > >I've installed mapserver in order to use its wcs > >capabilities. > >The GetCapabilities request works fine, the problem > is > >when I try to use the GetCoverage request. Actually > I > >don't receive any error message, but the received > file > >is empty. > >I'm querying the server with this request: > >http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?REQUEST=GetCoverage&COVERAGE=l5&SERVICE=WCS&map=/ge/data/iceds/alpha/umms/wcs_land3.map&BBOX=48.5,-21.5,48.7,-21.3&FORMAT=GEOTIFF_RGB&CRS=EPSG:4326&RESX=0.00027778&RESY=0.00027778 > > > >Just to try and sort out the problem, I reduced the > >data being served to only a simple image with one > >channel (no tiles), no results as well... > > > > > > Nuno, > > I notice you have no coordinate system defined for > your image as a > PROJECTION > block. I would encourage you to add a block like > this in your layer: > > PROJECTION > "+init=epsg:4326" > END > > If it makes things work, please update the WCS wiki > docs to mention this > requirement. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > 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 > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From sobomsawin at KASSINI.COM Wed Nov 10 10:56:58 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 10 Nov 2004 13:56:58 -0500 Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] need help to begin - very newbee In-Reply-To: Message-ID: Try ogrinfo -ro /path/to/your/shapefile http://www.remotesensing.org/ogr/ogr_utilities.html __________________ Skweda O'Bomsawin Directeur g?omatique Kassini Syst?mes Experts 771, Saint-Joseph Est suite 320 Qu?bec, QC, G1K 3C7 T?l:?418.652.0925 Fax:?418.653.7344 -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Joseph Norris Envoy??: 10 novembre 2004 13:47 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] need help to begin - very newbee I did a right click like you suggested and on the properties - the image cannot be display because of errors. Maybe I have the extents wrong - but to all - I am not familiar with how to calculate the extents from a shape file. Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Skweda O'Bomsawin Sent: Wednesday, November 10, 2004 10:37 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] need help to begin - very newbee Take a closer look at your browser; maybe you have a map wich doesn't show anything and have a white background. Right click in your browser or try to select something and you could see there is an image. If this is true, your problem is your extents or your projection. Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Joseph Norris Envoy? : 10 novembre 2004 13:19 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] need help to begin - very newbee Thanks for the help David. I am not getting anything - the browser just says done and does not show anything. Nothing in the error_log either. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: David Fawcett [mailto:David.Fawcett at state.mn.us] Sent: Wednesday, November 10, 2004 10:14 AM To: MAPSERVER-USERS at lists.umn.edu; sirronj at pacbell.net Subject: Re: [UMN_MAPSERVER-USERS] need help to begin - very newbee Joseph, What do you mean by 'dump of the map'? Is it an image of the map (as you would expect from mode=map)? Is it a dump of the text of the map file? Did you get any sort of error message? David. >>> Joseph Norris 11/10/2004 11:11:39 AM >>> I have named the executable mapserv.cgi - and it works just fine on the demo model that I have obtained with mapserv. I am doing something wrong with the mapfile I think. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of David Fawcett Sent: Wednesday, November 10, 2004 9:02 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] need help to begin - very newbee Joseph, This may not be your entire problem, but you need to modify the URL. I believe that you have the wrong suffix on the name of the mapserv binary file. Use this if you are on Windows: http://mco.communityservers.com/cgi-bin/mapserv.exe?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map Or this if you are on 'nix: http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map David. David J. Fawcett MN Office of Environmental Assistance >>> Joseph Norris 11/10/2004 10:45:52 AM >>> Hello to all, I have successfully installed mapserver and I have the following files: B_Major_Cities_2.dbf B_Major_Cities_2.prj B_Major_Cities_2.shp B_Major_Cities_2.shx Country_Boundaries_3.dbf Country_Boundaries_3.prj Country_Boundaries_3.shp Country_Boundaries_3.shx Rivers_2.dbf Rivers_2.prj Rivers_2.shp Rivers_2.shx Streets_and_Railroads_1.dbf Streets_and_Railroads_1.prj Streets_and_Railroads_1.shp Streets_and_Railroads_1.shx Water_Bodies_2.dbf Water_Bodies_2.prj Water_Bodies_2.shp Water_Bodies_2.shx I have the following map file: MAP IMAGETYPE GIF EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 500 400 SHAPEPATH "data" IMAGECOLOR 255 255 255 # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # California polygon layer begins here NAME "Country_Boundaries_3" DATA "Country_Boundaries_3" STATUS DEFAULT TYPE POLYGON END # States polygon layer ends here # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object I then do the following: http://mco.communityservers.com/cgi-bin/mapserv.cgi?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map in my browser - but I get now dump of the map. I have been over the tutorial ( - please - if anyone has a more simplified tutorial - let me know ) but I do not see where I am in error. Thanks to all #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 From siki at AGT.BME.HU Wed Nov 10 14:10:17 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 10 Nov 2004 21:10:17 -0100 Subject: need help to begin - very newbee {Scanned} In-Reply-To: Message-ID: Hi, Try to change SHAPAPATH to absolute path (not document root relative), e.g. /var/www/... Bye Zoltan On Wed, 10 Nov 2004, Joseph Norris wrote: > Thanks for the help David. > > I am not getting anything - the browser just says done and does not show > anything. Nothing in the error_log either. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: David Fawcett [mailto:David.Fawcett at state.mn.us] > Sent: Wednesday, November 10, 2004 10:14 AM > To: MAPSERVER-USERS at lists.umn.edu; sirronj at pacbell.net > Subject: Re: [UMN_MAPSERVER-USERS] need help to begin - very newbee > > Joseph, > > What do you mean by 'dump of the map'? > > Is it an image of the map (as you would expect from mode=map)? > > Is it a dump of the text of the map file? > > Did you get any sort of error message? > > David. > > >>> Joseph Norris 11/10/2004 11:11:39 AM >>> > I have named the executable mapserv.cgi - and it works just fine on the > demo > model that I have obtained with mapserv. I am doing something wrong > with > the mapfile I think. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > > Behalf Of David Fawcett > Sent: Wednesday, November 10, 2004 9:02 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] need help to begin - very newbee > > Joseph, > > This may not be your entire problem, but you need to modify the URL. > I > believe that you have the wrong suffix on the name of the mapserv > binary > file. > > Use this if you are on Windows: > http://mco.communityservers.com/cgi-bin/mapserv.exe?map=/usr/local/apache/ht > > > docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map > > > Or this if you are on 'nix: > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ht > > docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map > > David. > > > > David J. Fawcett > MN Office of Environmental Assistance > > >>> Joseph Norris 11/10/2004 10:45:52 AM >>> > Hello to all, > > I have successfully installed mapserver and I have the following > files: > > B_Major_Cities_2.dbf > B_Major_Cities_2.prj > B_Major_Cities_2.shp > B_Major_Cities_2.shx > Country_Boundaries_3.dbf > Country_Boundaries_3.prj > Country_Boundaries_3.shp > Country_Boundaries_3.shx > Rivers_2.dbf > Rivers_2.prj > Rivers_2.shp > Rivers_2.shx > Streets_and_Railroads_1.dbf > Streets_and_Railroads_1.prj > Streets_and_Railroads_1.shp > Streets_and_Railroads_1.shx > Water_Bodies_2.dbf > Water_Bodies_2.prj > Water_Bodies_2.shp > Water_Bodies_2.shx > > > I have the following map file: > > MAP > IMAGETYPE GIF > EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 > SIZE 500 400 > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > > > # Start of LAYER DEFINITIONS > --------------------------------------------- > LAYER # California polygon layer begins here > NAME "Country_Boundaries_3" > DATA "Country_Boundaries_3" > STATUS DEFAULT > TYPE POLYGON > > END # States polygon layer ends here > # End of LAYER DEFINITIONS ------------------------------- > END # end of map file/object > > I then do the following: > > http://mco.communityservers.com/cgi-bin/mapserv.cgi?map=/usr/local/apache/ht > > > docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map > > in my browser - but I get now dump of the map. I have been over the > tutorial ( - please - if anyone has a more simplified tutorial - let > me > know ) but I do not see where I am in error. > > Thanks to all > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From p.willis at TELUS.NET Wed Nov 10 11:41:54 2004 From: p.willis at TELUS.NET (pw) Date: Wed, 10 Nov 2004 11:41:54 -0800 Subject: Geographically square pixels In-Reply-To: Message-ID: Hello Ed, Sorry about the reply. My mail seems to be filtering all the list emails into the spam box and when I replied it went through the wrong email account. Second to that your email seems to send one response from you and then later I get one from the mail list. So, when I 'replied' to your response, it went only to you.I guess I'll need to be more careful. I am trying to reproject a set of source images that have equal area pixels, in degrees, to a lambert projection in meters. The mapserver is set up to output lambert equal area meters. That part works fine. I already have UTM projected tif source images being reprojected to the proper lambert space. I am trying to figure out how to set up my mapserver config file to use these tif files that have equal area pixels in degrees rather than meters. ie: LAYER NAME some_raster TYPE RASTER PROJECTION "+proj=latlong" "+scale=0.00002" <-------------------??????degrees decimal? END DATA "some_raster.tif" END There is no 'scale' argument for proj. Peter Ed McNierney wrote: > Peter - > > First, please always reply to the entire list. The first person to reply may not be able to answer all your questions, and answering one question isn't a commitment to answer them ALL . > > I'm having a little trouble parsing your comments - what exactly are you trying to do? >It sounds like you're trying to compute the >scale in feet or meters from the extent in "degrees", and if that's the case you >need to also take into account the angle of the measurement - in case the measurement >is neither due east-west or north-south. > > Are you trying to display a scale bar, >compute a distance between two points, >or somehow reproject or rescale the source map image? > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: peter Willis [mailto:peterw at borstad.com] > Sent: Wednesday, November 10, 2004 1:43 PM > To: Ed McNierney > Subject: Re: [UMN_MAPSERVER-USERS] Geographically square pixels > > Hello Ed, > > So, to define the pixel scale, the 'scale' value for the raster layer is the thing I set? > As you imply, this won't do me much good if the raster covers a substantial distance in the north/south direction. I was hoping for 4-corners + center-coordinate input to re-map based on the changing east-west image pixel size, as the swath travels south to north..... > > Peter > > > Ed McNierney wrote: > > >>Peter - >> >>If you have an image in that projection, the scale MUST be expressed in "degrees". That's not a very useful value because a degree of latitude isn't the same size as a degree of longitude, and "one degree" measured at an angle isn't a very useful measurement to most people. However, that's the property of the map projection you're using, and that's what the scale will be. >> >>If you need to provide the ability to measure distances in feet or meters or the like, you will need to construct a JavaScript measurement tool or similar doodad to do the calculation. The USGS does something like this on the National Map viewer site. >> >> - Ed >> >>Ed McNierney >>President and Chief Mapmaker >>TopoZone.com / Maps a la carte, Inc. >>73 Princeton Street, Suite 305 >>North Chelmsford, MA 01863 >>ed at topozone.com >>(978) 251-4242 >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >>On Behalf Of pw >>Sent: Wednesday, November 10, 2004 1:08 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: [UMN_MAPSERVER-USERS] Geographically square pixels >> >>Hello, >> >>In my configuration file (.map file) if I have an image that is >>projected with equal area degrees pixels, >>(ie: each pixel is evenly sized in 'seconds' not feet or meters) how can I set up mapserver to know what scale the pixels are in the X and Y direction for the raster? >> >>I have been looking at the proj4 manual and at the mapserver manual and there doesn't apper to be any way to define the extents of an input raster in degrees so that it can be mapped to, say, lambert. >> >>Thanks for any insight, >> >>Peter >> >> >> >> >> >> > > > > > > From sirronj at PACBELL.NET Wed Nov 10 12:28:35 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 10 Nov 2004 12:28:35 -0800 Subject: using shpdump and extents Message-ID: Hello, From toddbirkey at YAHOO.COM Wed Nov 10 12:46:40 2004 From: toddbirkey at YAHOO.COM (Todd Birkenholtz) Date: Wed, 10 Nov 2004 12:46:40 -0800 Subject: Marker on the Map using Longitude and Latitude Message-ID: I am quite new to the concept of GIS so I am not sure how to ask this question or what to search for in the list archive. The tutorial is quite good describing the basic concept of Mapserver but it does not mention how to place a longitude and Latitude marker on a Map. Can someone please point me in the right direction. Thank You for your help. Todd Birk --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Wed Nov 10 13:09:25 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 10 Nov 2004 16:09:25 -0500 Subject: using shpdump and extents In-Reply-To: Message-ID: Joseph Norris wrote: > Hello, > >>From the output of shpdump how does one determine the extents of the > le? - thanks. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); Joseph, warmerda at gdal2200[43]% shpdump polygon.shp | more Shapefile Type: Polygon # of Shapes: 474 File Bounds: ( 471127.188, 4751545.000,0,0) to ( 489292.312, 4765610.500,0,0) The file points are the lower left and upper right corners. The above would translate to a MAP EXTENTS line like: EXTENTS 471127.188 4751545.000 489292.312 4765610.500 Best regards, -- ---------------------------------------+-------------------------------------- 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 sobomsawin at KASSINI.COM Wed Nov 10 13:11:53 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 10 Nov 2004 16:11:53 -0500 Subject: [UMN_MAPSERVER-USERS] Marker on the Map using Longitude and Latitude In-Reply-To: <20041110204640.64422.qmail@web40607.mail.yahoo.com> Message-ID: I think you are talking about grid concept (or graticule). You can add a grid layer to your map which will represent parallels and meridians. To do so, just put something like this in your map file: LAYER NAME "grid" TYPE LINE STATUS ON CLASS NAME "Graticule" COLOR 0 0 0 LABEL COLOR 255 0 0 FONT arial TYPE truetype SIZE 8 POSITION AUTO PARTIALS FALSE BUFFER 5 OUTLINECOLOR 255 255 255 END END PROJECTION "proj=latlong" "datum=NAD83" "ellps=GRS80" END GRID LABELFORMAT DDMM MAXARCS 10 MAXINTERVAL 10 MAXSUBDIVIDE 4 END END # Layer You can read about grid layer in MapServer documentation: HYPERLINK "http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#grid"http://mapse rver.gis.umn.edu/doc42/mapfile-reference.html#grid Cheers! Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Todd Birkenholtz Envoy? : 10 novembre 2004 15:47 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Marker on the Map using Longitude and Latitude I am quite new to the concept of GIS so I am not sure how to ask this question or what to search for in the list archive. The tutorial is quite good describing the basic concept of Mapserver but it does not mention how to place a longitude and Latitude marker on a Map. Can someone please point me in the right direction. Thank You for your help. Todd Birk _____ Do you Yahoo!? Check out the new Yahoo! Front Page. HYPERLINK "http://www.yahoo.com"www.yahoo.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nacional at CBS.UMN.EDU Wed Nov 10 13:24:59 2004 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Wed, 10 Nov 2004 15:24:59 -0600 Subject: wcs issues on getting data In-Reply-To: <20041110183138.31314.qmail@web53010.mail.yahoo.com> Message-ID: On Wed, 2004-11-10 at 10:31 -0800, Nuno GIL wrote: > Dear listers, > I've installed mapserver in order to use its wcs > capabilities. > The GetCapabilities request works fine, the problem is > when I try to use the GetCoverage request. Actually I > don't receive any error message, but the received file > is empty. > I'm querying the server with this request: > http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?REQUEST=GetCoverage&COVERAGE=l5&SERVICE=WCS&map=/ge/data/iceds/alpha/umms/wcs_land3.map&BBOX=48.5,-21.5,48.7,-21.3&FORMAT=GEOTIFF_RGB&CRS=EPSG:4326&RESX=0.00027778&RESY=0.00027778 ... > Does anyone understands what is going wrong? Any help > would be much appreciated. Nuno, 1. Are you able to see the image when you run a regular MapServer CGI request (i.e. http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?map=/ge/data/iceds/alpha/umms/wcs_land3.map&layer=LC5&mode=map)? 2. Is your image 16- or 8-bit? If 8-bit, perhaps you should replace IMAGEMODE INT16 with IMAGEMODE PC256 in OUTPUTFORMAT (also replace the NAME accordingly). 3. What Frank said in another post. Cheers! Perry -- Pericles S. Nacionales From nunoragil at YAHOO.COM Wed Nov 10 13:49:27 2004 From: nunoragil at YAHOO.COM (Nuno GIL) Date: Wed, 10 Nov 2004 13:49:27 -0800 Subject: wcs issues on getting data In-Reply-To: <1100121899.8898.13.camel@arceuthobium.ecology.umn.edu> Message-ID: Hi Pericles, Let me just point out the results of your suggestions: 1. Yes, by requesting http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?map=/ge/data/iceds/alpha/umms/wcs_land3.map&layer=L5&mode=map A map is shown 2. This image is a 8-bit one. I've included: OUTPUTFORMAT NAME GEOTIFF_8b DRIVER "GDAL/GTiff" IMAGEMODE PC256 END With the original GetCoverage request the file is still empty 3. Already inserted the projection block Frank suggested and no good result as well :( This is getting difficult... Thanks for your time and help, Nuno --- "Pericles S. Nacionales" wrote: > On Wed, 2004-11-10 at 10:31 -0800, Nuno GIL wrote: > > Dear listers, > > I've installed mapserver in order to use its wcs > > capabilities. > > The GetCapabilities request works fine, the > problem is > > when I try to use the GetCoverage request. > Actually I > > don't receive any error message, but the received > file > > is empty. > > I'm querying the server with this request: > > > http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?REQUEST=GetCoverage&COVERAGE=l5&SERVICE=WCS&map=/ge/data/iceds/alpha/umms/wcs_land3.map&BBOX=48.5,-21.5,48.7,-21.3&FORMAT=GEOTIFF_RGB&CRS=EPSG:4326&RESX=0.00027778&RESY=0.00027778 > ... > > Does anyone understands what is going wrong? Any > help > > would be much appreciated. > > Nuno, > > 1. Are you able to see the image when you run a > regular MapServer CGI > request (i.e. > http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?map=/ge/data/iceds/alpha/umms/wcs_land3.map&layer=LC5&mode=map)? > > 2. Is your image 16- or 8-bit? If 8-bit, perhaps > you should replace > IMAGEMODE INT16 with IMAGEMODE PC256 in OUTPUTFORMAT > (also replace the > NAME accordingly). > > 3. What Frank said in another post. > > Cheers! > Perry > -- > Pericles S. Nacionales > __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com From superbla3000 at GMX.NET Wed Nov 10 14:35:44 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Wed, 10 Nov 2004 23:35:44 +0100 Subject: set map to scale Message-ID: hello, At the moment, I am zooming my map. But I would like to set my map to a specific scale with mapscript. So button 1 sets to 100%, Button 2 to 50%.... How do I do this? $map->scale = xxx doesn't work. Another question about this: When my worldmap (-180,-90,180,90) is 100%, my map->scale is 147264446.33766 Why this large number? Where does it come from? thanks Joerg From bob.basques at CI.STPAUL.MN.US Wed Nov 10 14:50:29 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 10 Nov 2004 16:50:29 -0600 Subject: Color ramping Message-ID: All, I have the Contour layer displaying fairly quickly now. The next order of business is to display it with a color-ramp. Are there any programtric ways of accomplishing this with the attributes. I have elevation attribute on each line that I use for labelling, I would like to change the colors (color-ramp) via this attribute. Aside from assigning every individual elevation (or groups of elevations) a color, is there a MAPFILE (or Trick) config that could make this happen? Thanks bobb From woodbri at SWOODBRIDGE.COM Wed Nov 10 15:01:20 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 10 Nov 2004 18:01:20 -0500 Subject: Color ramping In-Reply-To: <41929B35.7060707@ci.stpaul.mn.us> Message-ID: I don't think there is other than assign a range of ranges to a class via an expression. For some projects, I have add a COLOR attribute, like number 1-10 then made a layer with ten classes in it and did the color assignment that way. It would be nice to have something like: COLOR_RAMP COLOR_ATTRIBUTE MIN_VALUE MAX_VALUE MIN_COLOR R G B MAX_COLOR R G B COLOR_STEP n OFF_COLOR R G B END Where the value from the column would be interpolated between min and max value and then assign a color value appropriately between min and max color. COLOR_STEP would define discreet steps in the color ramp. and any value outside min and max value would be assign OFF_COLOR But alas we don't have anything like this :( -Steve W. Bob Basques wrote: > All, > > I have the Contour layer displaying fairly quickly now. The next order > of business is to display it with a color-ramp. > > Are there any programtric ways of accomplishing this with the > attributes. I have elevation attribute on each line that I use for > labelling, I would like to change the colors (color-ramp) via this > attribute. > > Aside from assigning every individual elevation (or groups of > elevations) a color, is there a MAPFILE (or Trick) config that could > make this happen? > > Thanks > > bobb > From nacional at CBS.UMN.EDU Wed Nov 10 15:14:06 2004 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Wed, 10 Nov 2004 17:14:06 -0600 Subject: wcs issues on getting data In-Reply-To: <20041110214927.87932.qmail@web53002.mail.yahoo.com> Message-ID: Nuno, Are you running the latest versions of MapServer and GDAL? Did you compile GDAL with the internal TIFF library or an external one? -Perry On Wed, 2004-11-10 at 13:49 -0800, Nuno GIL wrote: > Hi Pericles, > > Let me just point out the results of your suggestions: > > 1. Yes, by requesting > http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?map=/ge/data/iceds/alpha/umms/wcs_land3.map&layer=L5&mode=map > > A map is shown > > 2. This image is a 8-bit one. I've included: > OUTPUTFORMAT > NAME GEOTIFF_8b > DRIVER "GDAL/GTiff" > IMAGEMODE PC256 > END > With the original GetCoverage request the file is > still empty > > 3. Already inserted the projection block Frank > suggested and no good result as well > > :( > > This is getting difficult... Thanks for your time and > help, > Nuno > > > --- "Pericles S. Nacionales" > wrote: > > > On Wed, 2004-11-10 at 10:31 -0800, Nuno GIL wrote: > > > Dear listers, > > > I've installed mapserver in order to use its wcs > > > capabilities. > > > The GetCapabilities request works fine, the > > problem is > > > when I try to use the GetCoverage request. > > Actually I > > > don't receive any error message, but the received > > file > > > is empty. > > > I'm querying the server with this request: > > > > > > http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?REQUEST=GetCoverage&COVERAGE=l5&SERVICE=WCS&map=/ge/data/iceds/alpha/umms/wcs_land3.map&BBOX=48.5,-21.5,48.7,-21.3&FORMAT=GEOTIFF_RGB&CRS=EPSG:4326&RESX=0.00027778&RESY=0.00027778 > > ... > > > Does anyone understands what is going wrong? Any > > help > > > would be much appreciated. > > > > Nuno, > > > > 1. Are you able to see the image when you run a > > regular MapServer CGI > > request (i.e. > > > http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?map=/ge/data/iceds/alpha/umms/wcs_land3.map&layer=LC5&mode=map)? > > > > 2. Is your image 16- or 8-bit? If 8-bit, perhaps > > you should replace > > IMAGEMODE INT16 with IMAGEMODE PC256 in OUTPUTFORMAT > > (also replace the > > NAME accordingly). > > > > 3. What Frank said in another post. > > > > Cheers! > > Perry > > -- > > Pericles S. Nacionales > > > > > > > __________________________________ > Do you Yahoo!? > Check out the new Yahoo! Front Page. > www.yahoo.com -- Pericles S. Nacionales From mjlawless at GLOBEXPLORER.COM Wed Nov 10 16:07:51 2004 From: mjlawless at GLOBEXPLORER.COM (Michael J. Lawless) Date: Wed, 10 Nov 2004 16:07:51 -0800 Subject: unsubscribe Message-ID: Michael Lawless - Manager of Product Development GlobeXplorer, LLC 3021 Citrus Circle, Suite 150, Walnut Creek, CA 94598 925-280-5287 _____ From: Automatic digest processor [mailto:LISTSERV at LISTS.UMN.EDU] Sent: Tuesday, November 09, 2004 10:01 PM To: Recipients of MAPSERVER-USERS digests Subject: MAPSERVER-USERS Digest - 8 Nov 2004 to 9 Nov 2004 (#2004-108) L-Soft LISTSERV(R) 1.8e MAPSERVER-USERS Digest - 8 Nov 2004 to 9 Nov 2004 (#2004-108) Table of contents: * PHP mapscript module not found * loading mapscript in java error (7) * I would like to display label from external database eg (mysql , postgresql) * extension differences (2) * preprocessing raster files in mapserver (gdaladdo) (2) * Web statistics on Web Services (4) * getting layer data * standalone build for free/limited access web host ? * Return of IMSEMU (4) * OGR bug? (2) * tiff is shown in grayscale (2) * Installation problems on windows XP, IIS 5.1: CGI Problems * ogr vrt with php_mapscript (2) * RE : [UMN_MAPSERVER-USERS] itemnquery return * setexpression function (2) 1. PHP mapscript module not found * Re: PHP mapscript module not found (11/09) From: Bart van den Eijnden 2. loading mapscript in java error * Re: loading mapscript in java error (11/09) From: Umberto Nicoletti * Re: loading mapscript in java error (11/09) From: Umberto Nicoletti * Re: loading mapscript in java error (11/09) From: Sean Gillies * Re: loading mapscript in java error (11/09) From: Sean Gillies * Re: loading mapscript in java error (11/09) From: Dan Barron * Re: loading mapscript in java error (11/09) From: dbarron * Re: loading mapscript in java error (11/09) From: Sean Gillies 3. I would like to display label from external database eg (mysql , postgresql) * I would like to display label from external database eg (mysql , postgresql) (11/29) From: noom 4. extension differences * extension differences (11/09) From: temiz * Re: extension differences (11/09) From: Frank Warmerdam 5. preprocessing raster files in mapserver (gdaladdo) * preprocessing raster files in mapserver (gdaladdo) (11/09) From: Nuno GIL * Re: preprocessing raster files in mapserver (gdaladdo) (11/09) From: Frank Warmerdam 6. Web statistics on Web Services * Web statistics on Web Services (11/09) From: "Tweedy, Scott" * Re: Web statistics on Web Services (11/09) From: Jean-Francois Doyon * Re: Web statistics on Web Services (11/09) From: "Kralidis,Tom [Burlington]" * Re: Web statistics on Web Services (11/09) From: Umberto Nicoletti 7. getting layer data * getting layer data (11/09) From: Manjiri Andhare 8. standalone build for free/limited access web host ? * standalone build for free/limited access web host ? (11/09) From: =?ISO-8859-1?Q?Laurent_J=E9gou?= 9. Return of IMSEMU * Return of IMSEMU (11/09) From: Paul Ramsey * Re: Return of IMSEMU (11/09) From: Ed McNierney * Re: Return of IMSEMU (11/09) From: Paul Ramsey * Re: Return of IMSEMU (11/09) From: Ed McNierney 10. OGR bug? * OGR bug? (11/09) From: Ivano Picco * Re: OGR bug? (11/09) From: Frank Warmerdam 11. tiff is shown in grayscale * tiff is shown in grayscale (11/09) From: =?ISO-8859-1?Q?Carsten_Ke=DFler?= * Re: tiff is shown in grayscale (11/09) From: Frank Warmerdam 12. Installation problems on windows XP, IIS 5.1: CGI Problems * Installation problems on windows XP, IIS 5.1: CGI Problems (11/09) From: Schlatter Christian 13. ogr vrt with php_mapscript * ogr vrt with php_mapscript (11/09) From: Olivier Gayte * Re: ogr vrt with php_mapscript (11/09) From: Frank Warmerdam 14. RE : [UMN_MAPSERVER-USERS] itemnquery return * RE : [UMN_MAPSERVER-USERS] itemnquery return (11/09) From: =?ISO-8859-2?Q?J=E1chym?= =?ISO-8859-2?Q?=C8epick=FD?= 15. setexpression function * setexpression function (11/09) From: Dan Liu * Re: setexpression function (11/09) From: Steve Lime _____ Powered by LISTSERV(R) Browse the MAPSERVER-USERS online archives. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nunoragil at YAHOO.COM Wed Nov 10 17:07:55 2004 From: nunoragil at YAHOO.COM (Nuno GIL) Date: Wed, 10 Nov 2004 17:07:55 -0800 Subject: wcs issues on getting data In-Reply-To: <1100128446.8897.27.camel@arceuthobium.ecology.umn.edu> Message-ID: Pericles, I'm running the latest mapserver nightly build and gdal-1.2.3. Mapserver integrates these options: MapServer version 4.4.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE and GDAL was compiled with internal TIFF and GEOTIFF support. Do you think that I should upgrade GDAL and that it can solve the problem? Does the map file seem okay to you? Regards, Nuno --- "Pericles S. Nacionales" wrote: > Nuno, > > Are you running the latest versions of MapServer and > GDAL? Did you > compile GDAL with the internal TIFF library or an > external one? > > -Perry > > > On Wed, 2004-11-10 at 13:49 -0800, Nuno GIL wrote: > > Hi Pericles, > > > > Let me just point out the results of your > suggestions: > > > > 1. Yes, by requesting > > > http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?map=/ge/data/iceds/alpha/umms/wcs_land3.map&layer=L5&mode=map > > > > A map is shown > > > > 2. This image is a 8-bit one. I've included: > > OUTPUTFORMAT > > NAME GEOTIFF_8b > > DRIVER "GDAL/GTiff" > > IMAGEMODE PC256 > > END > > With the original GetCoverage request the file is > > still empty > > > > 3. Already inserted the projection block Frank > > suggested and no good result as well > > > > :( > > > > This is getting difficult... Thanks for your time > and > > help, > > Nuno > > > > > > --- "Pericles S. Nacionales" > > > wrote: > > > > > On Wed, 2004-11-10 at 10:31 -0800, Nuno GIL > wrote: > > > > Dear listers, > > > > I've installed mapserver in order to use its > wcs > > > > capabilities. > > > > The GetCapabilities request works fine, the > > > problem is > > > > when I try to use the GetCoverage request. > > > Actually I > > > > don't receive any error message, but the > received > > > file > > > > is empty. > > > > I'm querying the server with this request: > > > > > > > > > > http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?REQUEST=GetCoverage&COVERAGE=l5&SERVICE=WCS&map=/ge/data/iceds/alpha/umms/wcs_land3.map&BBOX=48.5,-21.5,48.7,-21.3&FORMAT=GEOTIFF_RGB&CRS=EPSG:4326&RESX=0.00027778&RESY=0.00027778 > > > ... > > > > Does anyone understands what is going wrong? > Any > > > help > > > > would be much appreciated. > > > > > > Nuno, > > > > > > 1. Are you able to see the image when you run a > > > regular MapServer CGI > > > request (i.e. > > > > > > http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?map=/ge/data/iceds/alpha/umms/wcs_land3.map&layer=LC5&mode=map)? > > > > > > 2. Is your image 16- or 8-bit? If 8-bit, > perhaps > > > you should replace > > > IMAGEMODE INT16 with IMAGEMODE PC256 in > OUTPUTFORMAT > > > (also replace the > > > NAME accordingly). > > > > > > 3. What Frank said in another post. > > > > > > Cheers! > > > Perry > > > -- > > > Pericles S. Nacionales > > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Check out the new Yahoo! Front Page. > > www.yahoo.com > -- > Pericles S. Nacionales > > __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com From kenlord at GMAIL.COM Wed Nov 10 18:04:54 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 10 Nov 2004 18:04:54 -0800 Subject: Color ramping In-Reply-To: <41929B35.7060707@ci.stpaul.mn.us> Message-ID: Hi Bob, I have a method to symbolize contours the way I think you want. The only bother is adding an attribute or two to your contours shapefile (or spatial table etc). In my contour shapefile, I have an attribute that distinguishes between major and minor contours in my dataset (for example to distinguish 50m contour intervals from an intermediate set of 10m contours). The layer is then classified in my map file accordingly. This is also useful if you want to hide the minor contours when you zoom out. If you want to get trickier, you can add yet another attribute, that distinguishes another subset of contours if your map is intended to be viewed from extremely zoomed in to zoomed out scales. (for example to show just 100m contours in the above example). This takes expressions that are a little more complex in the layer classes, that checks both attributes. Check out the results in my website: http://24.87.220.99/ms/iwafs.html --the site will be very slow if I'm playing my Star Wars game! hehe ... in the initial map view, you see 20m and 100m contours, the 100m's are thicker and brighter than the 20m's. ... if you dare to zoom in far enough, you'll see 2m contours displayed. Click on the 'Legend' button at the top to see the symbolization of the contours, and the scale ranges at which they appear. I'm sure you could also accomplish the same thing in another manner by reading the contours from a MapInfo table using an OGR connection, if you are a wizz at making the MapInfo table. Cheers, Ken Lord On Wed, 10 Nov 2004 16:50:29 -0600, Bob Basques wrote: > All, > > I have the Contour layer displaying fairly quickly now. The next order > of business is to display it with a color-ramp. > > Are there any programtric ways of accomplishing this with the > attributes. I have elevation attribute on each line that I use for > labelling, I would like to change the colors (color-ramp) via this > attribute. > > Aside from assigning every individual elevation (or groups of > elevations) a color, is there a MAPFILE (or Trick) config that could > make this happen? > > Thanks > > bobb > -- ============================== Ken Lord B.Sc., A.Dipl.T.H. 7488 Magnolia Terrace Burnaby BC, V5E 4L1 kenlord at gmail.com klord at bgcengineering.com From dondrake at GMAIL.COM Wed Nov 10 19:30:52 2004 From: dondrake at GMAIL.COM (Don Drake) Date: Wed, 10 Nov 2004 21:30:52 -0600 Subject: Better Looking Maps Message-ID: I've been working with Mapserver for the last few months and I like what it can do when displaying my data stored in a PostGIS db. What I need is the maps to look more presentable. My maps cover the USA and I need road data, city data, airport data, etc. The road data really needs all streets, not just major highways. Can you provide some example of making better looking symbols? I have some data I've found on some USGS sites, but it's lacking detail when zoomed to the street-level. Is there a place that has this in a .shp file? Any commercial mapserver alternatives that would run on Linux? Thanks. -Don From nhv at CAPE.COM Wed Nov 10 19:58:32 2004 From: nhv at CAPE.COM (Norman Vine) Date: Wed, 10 Nov 2004 22:58:32 -0500 Subject: FW: Perl MapScript ver 4.4 Message-ID: Can anyone give me a hand translating this Perl MapScript example to the current version of MapScript ? http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex14 TIA Norman From test at STIGASCORP.COM Wed Nov 10 22:34:19 2004 From: test at STIGASCORP.COM (Chris) Date: Thu, 11 Nov 2004 01:34:19 -0500 Subject: Better Looking Maps In-Reply-To: <6c21003b041110193066f30db8@mail.gmail.com> Message-ID: I'm very new to this, but from all the research I've done, this data is not available for free. You can find it from several vendors but usually at a fairly steep price. GDT and ESRI sell street level data, including points of interest and geocoding if necessary. It is usually in the thousands of dollars for this data, and that is only for personal use. If you want to publish this data (on the internet for example), there are additional costs and licensing restrictions. Chris -----Original Message----- From: Don Drake [mailto:dondrake at GMAIL.COM] Sent: Wednesday, November 10, 2004 10:31 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Better Looking Maps I've been working with Mapserver for the last few months and I like what it can do when displaying my data stored in a PostGIS db. What I need is the maps to look more presentable. My maps cover the USA and I need road data, city data, airport data, etc. The road data really needs all streets, not just major highways. Can you provide some example of making better looking symbols? I have some data I've found on some USGS sites, but it's lacking detail when zoomed to the street-level. Is there a place that has this in a .shp file? Any commercial mapserver alternatives that would run on Linux? Thanks. -Don From gis at UNDPHAIS.ORG.NP Wed Nov 10 23:16:39 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Thu, 11 Nov 2004 13:01:39 +0545 Subject: Better Looking Maps In-Reply-To: <6c21003b041110193066f30db8@mail.gmail.com> Message-ID: On Wed, 10 Nov 2004 21:30:52 -0600, Don Drake wrote: > I've been working with Mapserver for the last few months and I like > what it can do when displaying my data stored in a PostGIS db. > > What I need is the maps to look more presentable. My maps cover the > USA and I need road data, city data, airport data, etc. The road data > really needs all streets, not just major highways. > > Can you provide some example of making better looking symbols? > > I have some data I've found on some USGS sites, but it's lacking > detail when zoomed to the street-level. Is there a place that has > this in a .shp file? > > Any commercial mapserver alternatives that would run on Linux? > > Thanks. > > -Don > > I don't know what level of accuracy you require but the ESRI website has downloadable Census 2000 TIGER/Line data in shapefile format for free. http://www.esri.com/data/download/census2000_tigerline/ -- Sandeep Bashyal -- National GIS Officer Humanitarian Assistance Information System (HAIS) United Nations (NEP/01/008) UN House, Pulchowk G.P.O. Box 107 Kathmandu, Nepal Tel: (+977) 01 5543957 (+977) 01 5554304 Cell:(+977) 9841270854 Fax: (+977) 01 5528059 -------------------------------------------------- mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.undp.org.np From a.lamas at INGENIERIADEVERTIDOS.COM Thu Nov 11 00:47:22 2004 From: a.lamas at INGENIERIADEVERTIDOS.COM (Alejandro) Date: Thu, 11 Nov 2004 02:47:22 -0600 Subject: Problem with dll Message-ID: Hello: I have a problem with the installation of MapServer. In my Intranet I have it perfectly working (under Windows), but the problem is when try install it in a external server (also under Windows): this server needs to register the libraries that MapServer uses, but except for NCSEcw.dll, the rest gives problem when registering itself since they say that is not the entry point. I thank for the aid to you. From wlx at MYGIS.ORG Thu Nov 11 02:56:42 2004 From: wlx at MYGIS.ORG (wlx) Date: Thu, 11 Nov 2004 18:56:42 +0800 Subject: How to add hdf files to map file? In-Reply-To: <419230CA.5040708@pobox.com> Message-ID: Hi, If the subdataset included multi bands data,how did the mapserver or gdal deal with it? And what extent should I use,the image coordinate or geographic coordinate? Thanks. LiangXu Wang > > wlx wrote: > > Hi, > > Gdal has included hdf4 file format's support from version > > 1.2.3,and I has installed it in my debian system.But I > don't know how > > to add hdf's subdataset to map file as a layer,so can > someone help me? > > LiangXu Wang, > > If you run gdalinfo on a complex HDF file you will see a list > of subdatasets. > > Stuff like: > > Subdatasets: > > SUBDATASET_1_NAME=HDF4_EOS:EOS_SWATH:"/u/data/hdf/MOD07_L2.A20 > 00110.0220.002.2 > 000196104217.hdf":mod07:Scan_Start_Time > SUBDATASET_1_DESC=[406x270] Scan_Start_Time (64-bit floating-point) > > SUBDATASET_2_NAME=HDF4_EOS:EOS_SWATH:"/u/data/hdf/MOD07_L2.A20 > 00110.0220.002.2 > 000196104217.hdf":mod07:Solar_Zenith > SUBDATASET_2_DESC=[406x270] Solar_Zenith (16-bit integer) > > SUBDATASET_3_NAME=HDF4_EOS:EOS_SWATH:"/u/data/hdf/MOD07_L2.A20 > 00110.0220.002.2 > 000196104217.hdf":mod07:Solar_Azimuth > SUBDATASET_3_DESC=[406x270] Solar_Azimuth (16-bit integer) > > SUBDATASET_4_NAME=HDF4_EOS:EOS_SWATH:"/u/data/hdf/MOD07_L2.A20 > 00110.0220.002.2 > 000196104217.hdf":mod07:Sensor_Zenith > SUBDATASET_4_DESC=[406x270] Sensor_Zenith (16-bit integer) > > SUBDATASET_5_NAME=HDF4_EOS:EOS_SWATH:"/u/data/hdf/MOD07_L2.A20 > 00110.0220.002.2 > 000196104217.hdf":mod07:Sensor_Azimuth > SUBDATASET_5_DESC=[406x270] Sensor_Azimuth (16-bit integer) > > SUBDATASET_6_NAME=HDF4_EOS:EOS_SWATH:"/u/data/hdf/MOD07_L2.A20 > 00110.0220.002.2 > 000196104217.hdf":mod07:Brightness_Temperature > > > > Take the SUBDATASET_n_NAME you want, and use that in your > DATA statement in your mapfile. Make sure you use single > quotes around it since the name itself includes double quotes. > > eg. > > DATA > 'HDF4_EOS:EOS_SWATH:"/u/data/hdf/MOD07_L2.A2000110.0220.002.20 00196104217.hdf":mod07:Brightness_Temperature' > > Also, make sure you use absolute paths since the SHAPEPATH > and other MapServer path manipulation won't work properly in > these dataset names since they are not just the name of a > simple filesystem object. > > I hope this helps. > > Best regards, > -- > ---------------------------------------+---------------------- > ---------- > ---------------------------------------+------ > 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 ivano.picco at AQUPI.TK Thu Nov 11 03:35:02 2004 From: ivano.picco at AQUPI.TK (Ivano Picco) Date: Thu, 11 Nov 2004 05:35:02 -0600 Subject: OGR bug? Message-ID: Maybe it's stupid or maybe I found the way to specify another primary key. I have to use the pair --with-oci_fid when i run configure as it is reported in the source code, isn't it? Can you add this information in documentation or in the configure help so it can be read to the other people needed it? Thanks a lot, Ivano Picco >About fetching features: >>The GetFeature() method at >>the OGR level is supposed to work with the OCI driver. If there isn't an >>identified primary key (currently I just look for a field named OGR_FID) >>then I end up just using a sequence number as the index, and then fetching >>an individual feature can be very expensive (I have to run through all the >>features to count to it). >mmmh, I don't understand. Do you identify a primary key (I use a field named >OBJECTID as a primary key, like SDE and shapefile format)? Would I have to >specify it?, where? >Do you load every layer's feature to get the one at index j? From dgadoury at DMSOLUTIONS.CA Thu Nov 11 04:33:57 2004 From: dgadoury at DMSOLUTIONS.CA (Dean Gadoury) Date: Thu, 11 Nov 2004 07:33:57 -0500 Subject: Better Looking Maps In-Reply-To: Message-ID: I have worked with Tiger data and found that although it is not as high quality as the commercial products it is detailed enough for most street level mapping applications. There are even commercial locator services out there using Tiger data. It is the only free, street level data source for the USA I know of. There are other places to get the data too: http://www.census.gov/geo/www/tiger/index.html http://data.geocomm.com/catalog/ Dean Sandeep Bashyal wrote: > On Wed, 10 Nov 2004 21:30:52 -0600, Don Drake wrote: > >> I've been working with Mapserver for the last few months and I like >> what it can do when displaying my data stored in a PostGIS db. >> >> What I need is the maps to look more presentable. My maps cover the >> USA and I need road data, city data, airport data, etc. The road data >> really needs all streets, not just major highways. >> >> Can you provide some example of making better looking symbols? >> >> I have some data I've found on some USGS sites, but it's lacking >> detail when zoomed to the street-level. Is there a place that has >> this in a .shp file? >> >> Any commercial mapserver alternatives that would run on Linux? >> >> Thanks. >> >> -Don >> >> > > I don't know what level of accuracy you require but the ESRI website has > downloadable Census 2000 TIGER/Line data in shapefile format for free. > > http://www.esri.com/data/download/census2000_tigerline/ > > > > -- > Sandeep Bashyal > -- > National GIS Officer > Humanitarian Assistance Information System (HAIS) > United Nations (NEP/01/008) > UN House, Pulchowk > G.P.O. Box 107 > Kathmandu, Nepal > Tel: (+977) 01 5543957 > (+977) 01 5554304 > Cell:(+977) 9841270854 > Fax: (+977) 01 5528059 > -------------------------------------------------- > mailto:gis at undphais.org.np > mailto:sandeep at earthmapping.com > http://www.undp.org.np > -- Dean Gadoury DM Solutions Group 30 Rosemount Ave. Suite 200 Ottawa, Ontario. K1Y 1P4 613.565.5056 ext. 24 dgadoury at dmsolutions.ca www.dmsolutions.ca From warmerdam at POBOX.COM Thu Nov 11 06:08:36 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 11 Nov 2004 09:08:36 -0500 Subject: How to add hdf files to map file? In-Reply-To: <20041111105701.2E930B3F09@lime.pobox.com> Message-ID: wlx wrote: > Hi, > If the subdataset included multi bands data,how did the mapserver or > gdal deal with it? And what extent should I use,the image coordinate or > geographic coordinate? > Thanks. > > LiangXu Wang LiangXu, You should use gdalinfo on the subdataset name to find out what coordinate information GDAL has available, if any. GDAL does support multi-band subdatasets though there have been occations when it gets confused about which dimension is the bands dimension. Andrey Kiselev is the author of the HDF driver in GDAL and you might want to consult with him if you need to know particular details. In the meantime I would encourage you to experiment a bit. Best regards, -- ---------------------------------------+-------------------------------------- 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 warmerdam at POBOX.COM Thu Nov 11 06:28:24 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 11 Nov 2004 09:28:24 -0500 Subject: OGR bug? In-Reply-To: Message-ID: Ivano Picco wrote: > Maybe it's stupid or maybe I found the way to specify another primary key. I > have to use the pair --with-oci_fid when i run configure as it is reported > in the source code, isn't it? > Can you add this information in documentation or in the configure help so it > can be read to the other people needed it? Ivano, OCI_FID is a configuration variable for OGR. That means you can set it as an environment variable or define it in a CONFIG directive in your mapfile. It isn't a configure time option. I will add documentation about it to OGR driver docs though it was primarily intended as a temporary hack till I can figure out how to identify the primary key using OCI (hints welcome). Best regards, -- ---------------------------------------+-------------------------------------- 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 eric at GOMOOS.ORG Thu Nov 11 06:45:06 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Thu, 11 Nov 2004 09:45:06 -0500 Subject: FW: Perl MapScript ver 4.4 In-Reply-To: Message-ID: At 10:58 PM 11/10/2004 -0500, Norman Vine wrote: >Can anyone give me a hand translating this Perl MapScript >example to the current version of MapScript ? > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex14 > > TIA > > Norman Norman, There is a very similiar 4.2 example here: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples42ex1 I think it should work with 4.4. Eric From nunoragil at YAHOO.COM Thu Nov 11 07:02:41 2004 From: nunoragil at YAHOO.COM (Nuno GIL) Date: Thu, 11 Nov 2004 07:02:41 -0800 Subject: wcs issues on getting data In-Reply-To: <20041111010755.60732.qmail@web53003.mail.yahoo.com> Message-ID: Pericles, I have some kind of problem in the compilation of mapserver. Detected the problem compiling it on another machine. Now the WCS works :-) There is only a problem with the data values it is returning. I opened both the source and the obtained 16-bit srtm images with envi. I linked both geographically and the data values are a bit different on each one. As an example I attach a snapshot of it! Another thing is that when I run the gdalinfo tool on both, the source image displays (...) Band 1 Block=1201x1 Type=Int16, ColorInterp=Gray while the obtained one displays: (...) Band 1 Block=1200x3 Type=Int16, ColorInterp=Gray The 1201 vs 1200 is easy to explain. The size of the specified bbox in the request is the responsable for that. But what abou the x1 and the x3? Can you tell me what do they mean? Thank you very much for your help, Regards, Nuno --- Nuno GIL wrote: > Pericles, > > I'm running the latest mapserver nightly build and > gdal-1.2.3. > > Mapserver integrates these options: > MapServer version 4.4.0-beta1 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > and GDAL was compiled with internal TIFF and GEOTIFF > support. > Do you think that I should upgrade GDAL and that it > can solve the problem? > Does the map file seem okay to you? > > Regards, > Nuno > > --- "Pericles S. Nacionales" > wrote: > > > Nuno, > > > > Are you running the latest versions of MapServer > and > > GDAL? Did you > > compile GDAL with the internal TIFF library or an > > external one? > > > > -Perry > > > > > > On Wed, 2004-11-10 at 13:49 -0800, Nuno GIL wrote: > > > Hi Pericles, > > > > > > Let me just point out the results of your > > suggestions: > > > > > > 1. Yes, by requesting > > > > > > http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?map=/ge/data/iceds/alpha/umms/wcs_land3.map&layer=L5&mode=map > > > > > > A map is shown > > > > > > 2. This image is a 8-bit one. I've included: > > > OUTPUTFORMAT > > > NAME GEOTIFF_8b > > > DRIVER "GDAL/GTiff" > > > IMAGEMODE PC256 > > > END > > > With the original GetCoverage request the file > is > > > still empty > > > > > > 3. Already inserted the projection block Frank > > > suggested and no good result as well > > > > > > :( > > > > > > This is getting difficult... Thanks for your > time > > and > > > help, > > > Nuno > > > > > > > > > --- "Pericles S. Nacionales" > > > > > wrote: > > > > > > > On Wed, 2004-11-10 at 10:31 -0800, Nuno GIL > > wrote: > > > > > Dear listers, > > > > > I've installed mapserver in order to use its > > wcs > > > > > capabilities. > > > > > The GetCapabilities request works fine, the > > > > problem is > > > > > when I try to use the GetCoverage request. > > > > Actually I > > > > > don't receive any error message, but the > > received > > > > file > > > > > is empty. > > > > > I'm querying the server with this request: > > > > > > > > > > > > > > > http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?REQUEST=GetCoverage&COVERAGE=l5&SERVICE=WCS&map=/ge/data/iceds/alpha/umms/wcs_land3.map&BBOX=48.5,-21.5,48.7,-21.3&FORMAT=GEOTIFF_RGB&CRS=EPSG:4326&RESX=0.00027778&RESY=0.00027778 > > > > ... > > > > > Does anyone understands what is going wrong? > > Any > > > > help > > > > > would be much appreciated. > > > > > > > > Nuno, > > > > > > > > 1. Are you able to see the image when you run > a > > > > regular MapServer CGI > > > > request (i.e. > > > > > > > > > > http://iceds.ge.ucl.ac.uk/cgi-bin/wcs?map=/ge/data/iceds/alpha/umms/wcs_land3.map&layer=LC5&mode=map)? > > > > > > > > 2. Is your image 16- or 8-bit? If 8-bit, > > perhaps > > > > you should replace > > > > IMAGEMODE INT16 with IMAGEMODE PC256 in > > OUTPUTFORMAT > > > > (also replace the > > > > NAME accordingly). > > > > > > > > 3. What Frank said in another post. > > > > > > > > Cheers! > > > > Perry > > > > -- > > > > Pericles S. Nacionales > > > > > > > > > > > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > Check out the new Yahoo! Front Page. > > > www.yahoo.com > > -- > > Pericles S. Nacionales > > > > > > > > > > __________________________________ > Do you Yahoo!? > Check out the new Yahoo! Front Page. > www.yahoo.com > __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com -------------- next part -------------- A non-text attachment was scrubbed... Name: snapshot1.png Type: image/png Size: 200472 bytes Desc: snapshot1.png URL: From warmerdam at POBOX.COM Thu Nov 11 07:23:24 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 11 Nov 2004 10:23:24 -0500 Subject: wcs issues on getting data In-Reply-To: <20041111150241.60382.qmail@web53006.mail.yahoo.com> Message-ID: Nuno GIL wrote: > Another thing is that when I run the gdalinfo tool on > both, the source image displays > (...) > Band 1 Block=1201x1 Type=Int16, ColorInterp=Gray > > while the obtained one displays: > (...) > Band 1 Block=1200x3 Type=Int16, ColorInterp=Gray > > The 1201 vs 1200 is easy to explain. The size of the > specified bbox in the request is the responsable for > that. But what abou the x1 and the x3? Can you tell me > what do they mean? Nuno, The 1200x3 means that each TIFF block (aka strip) is 3 scanlines long whereas the original file apparently had 1 scanline long strips. Either is perfectly valid. My understanding is that the blocking logic ties to keep each block less than 8K in size, and 1200wide * 3scanlines * 2bytes/pixel would be 7200 bytes. I'm very pleased you have things working now. I was afraid I was going to have to dig into reproducing your problems. Best regards, -- ---------------------------------------+-------------------------------------- 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 ivano.picco at AQUPI.TK Thu Nov 11 07:35:13 2004 From: ivano.picco at AQUPI.TK (Ivano Picco) Date: Thu, 11 Nov 2004 09:35:13 -0600 Subject: OGR bug? Message-ID: Thank you another time, as you can see my answer was really stupid. :) I'm gettin' confused because configure didn't give me an error using --with-oci_fid. Sorry! I try the daily snapshot, now it works! thanks for your job, Ivano Picco On Thu, 11 Nov 2004 09:28:24 -0500, Frank Warmerdam wrote: >Ivano Picco wrote: >> Maybe it's stupid or maybe I found the way to specify another primary key. I >> have to use the pair --with-oci_fid when i run configure as it is reported >> in the source code, isn't it? >> Can you add this information in documentation or in the configure help so it >> can be read to the other people needed it? > >Ivano, > >OCI_FID is a configuration variable for OGR. That means you can set it as >an environment variable or define it in a CONFIG directive in your mapfile. >It isn't a configure time option. > >I will add documentation about it to OGR driver docs though it was primarily >intended as a temporary hack till I can figure out how to identify the primary >key using OCI (hints welcome). > >Best regards, >-- >---------------------------------------+-------------------------------------- >I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam From nhv at CAPE.COM Thu Nov 11 07:51:42 2004 From: nhv at CAPE.COM (Norman Vine) Date: Thu, 11 Nov 2004 10:51:42 -0500 Subject: FW: Perl MapScript ver 4.4 In-Reply-To: <4.3.2.7.2.20041111094353.00ac7d20@mail.gomoos.org> Message-ID: Eric Bridger writes: > > At 10:58 PM 11/10/2004 -0500, Norman Vine wrote: > >Can anyone give me a hand translating this Perl MapScript > >example to the current version of MapScript ? > > > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex14 > > > > There is a very similiar 4.2 example here: > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples42ex1 DOH !! Thanks Norman From sirronj at PACBELL.NET Thu Nov 11 07:58:37 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 11 Nov 2004 07:58:37 -0800 Subject: maplab question Message-ID: Hello - I don't know if this off the subject - but here are two questions that I would put to one and all: First of all on maplab-2.2 I am getting the following when I try to browse maps: Warning: dl(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_dbase.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_dbase.dll: cannot open shared object file: No such file or directory in /usr/local/apache/htdocs/mco.communityservers.com/htdocs/maplab-2.2/htdocs/c ommon/phpwms/dbf.php on line 151 It has occurred to me that this might be why I am having my other mapserver problems - not sure Second: Can anyone give me the most simple of all mapfiles so that I might begin with this and work my way up to more complex applications. I am having no success at all with getting any of my maps to display. I have installed the demo and it works very well but any of my own maps ( that I have obtained from ESRI - so they should work ) are not working at all. I implore all - get me started so I can go forward into the wonderful world of open source GIS. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From unicoletti at PROMETEO.IT Thu Nov 11 08:03:49 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Thu, 11 Nov 2004 17:03:49 +0100 Subject: maplab question In-Reply-To: Message-ID: Quoting Joseph Norris : > Hello - I don't know if this off the subject - but here are two questions > that I would put to one and all: > > First of all on maplab-2.2 I am getting the following when I try to browse > maps: > > Warning: dl(): Unable to load dynamic library > '/usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_dbase.dll' - > /usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_dbase.dll: > cannot open shared object file: No such file or directory in > /usr/local/apache/htdocs/mco.communityservers.com/htdocs/maplab-2.2/htdocs/c > ommon/phpwms/dbf.php on line 151 > Strange that on linux you try to load dll... shared libraries on linux have .so extension. > It has occurred to me that this might be why I am having my other mapserver > problems - not sure > > > Second: > > Can anyone give me the most simple of all mapfiles so that I might begin > with this and work my way up to more complex applications. > > I am having no success at all with getting any of my maps to display. I > have installed the demo and it works very well but any of my own maps ( that > I have obtained from ESRI - so they should work ) are not working at all. > > I implore all - get me started so I can go forward into the wonderful world > of open source GIS. > Look at the workshop example (downloadable from mapserver web). In the mapserver source tarball there is a test directory with a rather simple map file. HTH, Umberto > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From sirronj at PACBELL.NET Thu Nov 11 09:27:45 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 11 Nov 2004 09:27:45 -0800 Subject: maplab question In-Reply-To: <1100189029.41938d654676b@webmail.prometeo.it> Message-ID: Ok - I have followed the example of the tests.map and made my map file as simple as possible - when I display my map I still get nothing but when I do a right-click and then properties I get the following: The image "http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdoc s/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot be displayed, because it contains errors. How would I find out what the errors are? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Umberto Nicoletti Sent: Thursday, November 11, 2004 8:04 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] maplab question Quoting Joseph Norris : > Hello - I don't know if this off the subject - but here are two questions > that I would put to one and all: > > First of all on maplab-2.2 I am getting the following when I try to browse > maps: > > Warning: dl(): Unable to load dynamic library > '/usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_dbase.dll' - > /usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_dbase.dll: > cannot open shared object file: No such file or directory in > /usr/local/apache/htdocs/mco.communityservers.com/htdocs/maplab-2.2/htdocs/c > ommon/phpwms/dbf.php on line 151 > Strange that on linux you try to load dll... shared libraries on linux have .so extension. > It has occurred to me that this might be why I am having my other mapserver > problems - not sure > > > Second: > > Can anyone give me the most simple of all mapfiles so that I might begin > with this and work my way up to more complex applications. > > I am having no success at all with getting any of my maps to display. I > have installed the demo and it works very well but any of my own maps ( that > I have obtained from ESRI - so they should work ) are not working at all. > > I implore all - get me started so I can go forward into the wonderful world > of open source GIS. > Look at the workshop example (downloadable from mapserver web). In the mapserver source tarball there is a test directory with a rather simple map file. HTH, Umberto > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From dondrake at GMAIL.COM Thu Nov 11 09:37:20 2004 From: dondrake at GMAIL.COM (Don Drake) Date: Thu, 11 Nov 2004 11:37:20 -0600 Subject: Better Looking Maps In-Reply-To: <41935C35.3050505@dmsolutions.ca> Message-ID: Thanks for all of the replies. I'll be contacting a few of you directly for more information. -Don On Thu, 11 Nov 2004 07:33:57 -0500, Dean Gadoury wrote: > I have worked with Tiger data and found that although it is not as high > quality as the commercial products it is detailed enough for most street > level mapping applications. There are even commercial locator services > out there using Tiger data. It is the only free, street level data > source for the USA I know of. There are other places to get the data too: > http://www.census.gov/geo/www/tiger/index.html > http://data.geocomm.com/catalog/ > Dean > > > > > Sandeep Bashyal wrote: > > On Wed, 10 Nov 2004 21:30:52 -0600, Don Drake wrote: > > > >> I've been working with Mapserver for the last few months and I like > >> what it can do when displaying my data stored in a PostGIS db. > >> > >> What I need is the maps to look more presentable. My maps cover the > >> USA and I need road data, city data, airport data, etc. The road data > >> really needs all streets, not just major highways. > >> > >> Can you provide some example of making better looking symbols? > >> > >> I have some data I've found on some USGS sites, but it's lacking > >> detail when zoomed to the street-level. Is there a place that has > >> this in a .shp file? > >> > >> Any commercial mapserver alternatives that would run on Linux? > >> > >> Thanks. > >> > >> -Don > >> > >> > > > > I don't know what level of accuracy you require but the ESRI website has > > downloadable Census 2000 TIGER/Line data in shapefile format for free. > > > > http://www.esri.com/data/download/census2000_tigerline/ > > > > > > > > -- > > Sandeep Bashyal > > -- > > National GIS Officer > > Humanitarian Assistance Information System (HAIS) > > United Nations (NEP/01/008) > > UN House, Pulchowk > > G.P.O. Box 107 > > Kathmandu, Nepal > > Tel: (+977) 01 5543957 > > (+977) 01 5554304 > > Cell:(+977) 9841270854 > > Fax: (+977) 01 5528059 > > -------------------------------------------------- > > mailto:gis at undphais.org.np > > mailto:sandeep at earthmapping.com > > http://www.undp.org.np > > > > -- > Dean Gadoury > > DM Solutions Group > 30 Rosemount Ave. Suite 200 > Ottawa, Ontario. K1Y 1P4 > 613.565.5056 ext. 24 > > dgadoury at dmsolutions.ca > www.dmsolutions.ca > -- Donald Drake President Drake Consulting http://www.drakeconsult.com/ 312-560-1574 From sirronj at PACBELL.NET Thu Nov 11 11:07:47 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 11 Nov 2004 11:07:47 -0800 Subject: please - please - can anybody shed any light on what I am doing wrong? Message-ID: Group, Here I am again: I have this link: http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs /mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map and this map file MAP NAME TESTMAP STATUS ON EXTENT -1375383.89811082 -7278971.22201064 16216802.1381132 10313214.8142134 IMAGETYPE PNG SIZE 600 600 SHAPEPATH "data" IMAGECOLOR 255 255 255 WEB METADATA "key1" "value1" "key2" "value2" "key3" "value3" "key4" "value4" END END LAYER NAME "calif_co_st" TYPE POLYGON DATA "calif_co_st" STATUS DEFAULT END END I still getting nothing but this on my map ( right-click properties ): The image "http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdoc s/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot be displayed, because it contains errors. And yet - when I move the tests directory into my http tree like this http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs /mco.communityservers.com/htdocs/tests/test.map&mode=map I get what the mapserver tests are supposed to give - is there something about my shape files I should know about? Please - anything at all would be helpful. From woodbri at SWOODBRIDGE.COM Thu Nov 11 11:34:20 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 11 Nov 2004 14:34:20 -0500 Subject: please - please - can anybody shed any light on what I am doing wrong? In-Reply-To: Message-ID: Joseph, You DATAPATH is relative to your mapfile unless you specify it as an absolute path. I would start there. Also if you can load Netscape then you can right click the broken image icon and select view image and it will display any error messages that mapserver coughs up. -Steve Joseph Norris wrote: > Group, > > Here I am again: > > I have this link: > > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs > /mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map > > and this map file > > MAP > NAME TESTMAP > STATUS ON > EXTENT -1375383.89811082 -7278971.22201064 16216802.1381132 > 10313214.8142134 > IMAGETYPE PNG > SIZE 600 600 > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > > WEB > METADATA > "key1" "value1" > "key2" "value2" > "key3" "value3" > "key4" "value4" > END > END > > LAYER > NAME "calif_co_st" > TYPE POLYGON > DATA "calif_co_st" > STATUS DEFAULT > END > > END > > I still getting nothing but this on my map ( right-click properties ): > > The image > "http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdoc > s/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot be > displayed, because it contains errors. > > And yet - when I move the tests directory into my http tree like this > > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs > /mco.communityservers.com/htdocs/tests/test.map&mode=map > > I get what the mapserver tests are supposed to give - is there something > about my shape files I should know about? > > Please - anything at all would be helpful. > From ealpert at DIGITALGLOBE.COM Thu Nov 11 11:46:44 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 11 Nov 2004 12:46:44 -0700 Subject: please - please - can anybody shed any light on what I am doing wrong? Message-ID: In addition to Steve's suggestion does the calif_so_st shapefile have a .prj file? What are the bounds of the snapefile (shpdump)? Do the bounds fail within the extent you've specified? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Thursday, November 11, 2004 12:08 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] please - please - can anybody shed any light on what I am doing wrong? Group, Here I am again: I have this link: http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ht docs /mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map and this map file MAP NAME TESTMAP STATUS ON EXTENT -1375383.89811082 -7278971.22201064 16216802.1381132 10313214.8142134 IMAGETYPE PNG SIZE 600 600 SHAPEPATH "data" IMAGECOLOR 255 255 255 WEB METADATA "key1" "value1" "key2" "value2" "key3" "value3" "key4" "value4" END END LAYER NAME "calif_co_st" TYPE POLYGON DATA "calif_co_st" STATUS DEFAULT END END I still getting nothing but this on my map ( right-click properties ): The image "http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/h tdoc s/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot be displayed, because it contains errors. And yet - when I move the tests directory into my http tree like this http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ht docs /mco.communityservers.com/htdocs/tests/test.map&mode=map I get what the mapserver tests are supposed to give - is there something about my shape files I should know about? Please - anything at all would be helpful. From woodbri at SWOODBRIDGE.COM Thu Nov 11 11:53:42 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 11 Nov 2004 14:53:42 -0500 Subject: please - please - can anybody shed any light on what I am doing wrong? In-Reply-To: <4193BEBC.7050608@swoodbridge.com> Message-ID: When I hit the URL you listed it says: msLoadMap(): Unable to access file. (/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/cal/cal.map) So I would check your path and your permissions -Steve Stephen Woodbridge wrote: > Joseph, > > You DATAPATH is relative to your mapfile unless you specify it as an > absolute path. I would start there. Also if you can load Netscape then > you can right click the broken image icon and select view image and it > will display any error messages that mapserver coughs up. > > -Steve > > Joseph Norris wrote: > >> Group, >> >> Here I am again: >> >> I have this link: >> >> http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs >> >> /mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map >> >> and this map file >> >> MAP >> NAME TESTMAP >> STATUS ON >> EXTENT -1375383.89811082 -7278971.22201064 16216802.1381132 >> 10313214.8142134 >> IMAGETYPE PNG >> SIZE 600 600 >> SHAPEPATH "data" >> IMAGECOLOR 255 255 255 >> >> WEB >> METADATA >> "key1" "value1" >> "key2" "value2" >> "key3" "value3" >> "key4" "value4" >> END >> END >> >> LAYER >> NAME "calif_co_st" >> TYPE POLYGON >> DATA "calif_co_st" >> STATUS DEFAULT >> END >> >> END >> >> I still getting nothing but this on my map ( right-click properties ): >> >> The image >> "http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdoc >> >> s/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot be >> displayed, because it contains errors. >> >> And yet - when I move the tests directory into my http tree like this >> >> http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs >> >> /mco.communityservers.com/htdocs/tests/test.map&mode=map >> >> I get what the mapserver tests are supposed to give - is there something >> about my shape files I should know about? >> >> Please - anything at all would be helpful. >> > From sirronj at PACBELL.NET Thu Nov 11 11:59:18 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 11 Nov 2004 11:59:18 -0800 Subject: please - please - can anybody shed any light on what I am doing wrong? In-Reply-To: <4193C346.80003@swoodbridge.com> Message-ID: I made a change - checked the permissions: Everything set to apache and with read/write/exec for apache This is the same as the http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs /mco.communityservers.com/htdocs/tests/test.map&mode=map This new url - simplified http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs /mco.communityservers.com/htdocs/maps/cal.map&mode=map The two directory permission structures are the exact same. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Stephen Woodbridge Sent: Thursday, November 11, 2004 11:54 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any light on what I am doing wrong? When I hit the URL you listed it says: msLoadMap(): Unable to access file. (/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/cal/cal.map) So I would check your path and your permissions -Steve Stephen Woodbridge wrote: > Joseph, > > You DATAPATH is relative to your mapfile unless you specify it as an > absolute path. I would start there. Also if you can load Netscape then > you can right click the broken image icon and select view image and it > will display any error messages that mapserver coughs up. > > -Steve > > Joseph Norris wrote: > >> Group, >> >> Here I am again: >> >> I have this link: >> >> http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs >> >> /mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map >> >> and this map file >> >> MAP >> NAME TESTMAP >> STATUS ON >> EXTENT -1375383.89811082 -7278971.22201064 16216802.1381132 >> 10313214.8142134 >> IMAGETYPE PNG >> SIZE 600 600 >> SHAPEPATH "data" >> IMAGECOLOR 255 255 255 >> >> WEB >> METADATA >> "key1" "value1" >> "key2" "value2" >> "key3" "value3" >> "key4" "value4" >> END >> END >> >> LAYER >> NAME "calif_co_st" >> TYPE POLYGON >> DATA "calif_co_st" >> STATUS DEFAULT >> END >> >> END >> >> I still getting nothing but this on my map ( right-click properties ): >> >> The image >> "http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdoc >> >> s/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot be >> displayed, because it contains errors. >> >> And yet - when I move the tests directory into my http tree like this >> >> http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs >> >> /mco.communityservers.com/htdocs/tests/test.map&mode=map >> >> I get what the mapserver tests are supposed to give - is there something >> about my shape files I should know about? >> >> Please - anything at all would be helpful. >> > From woodbri at SWOODBRIDGE.COM Thu Nov 11 12:07:41 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 11 Nov 2004 15:07:41 -0500 Subject: please - please - can anybody shed any light on what I am doing wrong? In-Reply-To: Message-ID: Joseph, I'm not sure your extents are correct: EXTENTS xmin ymin xmax ymax it looks like you have xmin xmax ymin ymax. What to you get for an image when you use shp2img utility? -Steve Joseph Norris wrote: > I made a change - checked the permissions: > > Everything set to apache and with read/write/exec for apache > > This is the same as the > > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs > /mco.communityservers.com/htdocs/tests/test.map&mode=map > > > > This new url - simplified > > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs > /mco.communityservers.com/htdocs/maps/cal.map&mode=map > > The two directory permission structures are the exact same. > > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Stephen Woodbridge > Sent: Thursday, November 11, 2004 11:54 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any > light on what I am doing wrong? > > When I hit the URL you listed it says: > > msLoadMap(): Unable to access file. > (/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/cal/cal.map) > > So I would check your path and your permissions > > -Steve > > Stephen Woodbridge wrote: > > >>Joseph, >> >>You DATAPATH is relative to your mapfile unless you specify it as an >>absolute path. I would start there. Also if you can load Netscape then >>you can right click the broken image icon and select view image and it >>will display any error messages that mapserver coughs up. >> >>-Steve >> >>Joseph Norris wrote: >> >> >>>Group, >>> >>>Here I am again: >>> >>>I have this link: >>> >>> > > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs > >>>/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map >>> >>>and this map file >>> >>>MAP >>> NAME TESTMAP >>> STATUS ON >>> EXTENT -1375383.89811082 -7278971.22201064 16216802.1381132 >>>10313214.8142134 >>> IMAGETYPE PNG >>> SIZE 600 600 >>> SHAPEPATH "data" >>> IMAGECOLOR 255 255 255 >>> >>> WEB >>> METADATA >>> "key1" "value1" >>> "key2" "value2" >>> "key3" "value3" >>> "key4" "value4" >>> END >>> END >>> >>> LAYER >>> NAME "calif_co_st" >>> TYPE POLYGON >>> DATA "calif_co_st" >>> STATUS DEFAULT >>> END >>> >>>END >>> >>>I still getting nothing but this on my map ( right-click properties ): >>> >>>The image >>> > > "http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdoc > >>>s/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot be >>>displayed, because it contains errors. >>> >>>And yet - when I move the tests directory into my http tree like this >>> >>> > > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs > >>>/mco.communityservers.com/htdocs/tests/test.map&mode=map >>> >>>I get what the mapserver tests are supposed to give - is there something >>>about my shape files I should know about? >>> >>>Please - anything at all would be helpful. >>> >> > From ealpert at DIGITALGLOBE.COM Thu Nov 11 13:08:34 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 11 Nov 2004 14:08:34 -0700 Subject: please - please - can anybody shed any light on what I am doing wrong? Message-ID: Also do a shpdump and get the bounds in the projection of the shapefile. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Woodbridge Sent: Thursday, November 11, 2004 1:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any light on what I am doing wrong? Joseph, I'm not sure your extents are correct: EXTENTS xmin ymin xmax ymax it looks like you have xmin xmax ymin ymax. What to you get for an image when you use shp2img utility? -Steve Joseph Norris wrote: > I made a change - checked the permissions: > > Everything set to apache and with read/write/exec for apache > > This is the same as the > > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ > htdocs > /mco.communityservers.com/htdocs/tests/test.map&mode=map > > > > This new url - simplified > > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ > htdocs > /mco.communityservers.com/htdocs/maps/cal.map&mode=map > > The two directory permission structures are the exact same. > > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Stephen Woodbridge > Sent: Thursday, November 11, 2004 11:54 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any > light on what I am doing wrong? > > When I hit the URL you listed it says: > > msLoadMap(): Unable to access file. > (/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/cal/cal > .map) > > So I would check your path and your permissions > > -Steve > > Stephen Woodbridge wrote: > > >>Joseph, >> >>You DATAPATH is relative to your mapfile unless you specify it as an >>absolute path. I would start there. Also if you can load Netscape then >>you can right click the broken image icon and select view image and it >>will display any error messages that mapserver coughs up. >> >>-Steve >> >>Joseph Norris wrote: >> >> >>>Group, >>> >>>Here I am again: >>> >>>I have this link: >>> >>> > > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ > htdocs > >>>/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map >>> >>>and this map file >>> >>>MAP >>> NAME TESTMAP >>> STATUS ON >>> EXTENT -1375383.89811082 -7278971.22201064 16216802.1381132 >>>10313214.8142134 >>> IMAGETYPE PNG >>> SIZE 600 600 >>> SHAPEPATH "data" >>> IMAGECOLOR 255 255 255 >>> >>> WEB >>> METADATA >>> "key1" "value1" >>> "key2" "value2" >>> "key3" "value3" >>> "key4" "value4" >>> END >>> END >>> >>> LAYER >>> NAME "calif_co_st" >>> TYPE POLYGON >>> DATA "calif_co_st" >>> STATUS DEFAULT >>> END >>> >>>END >>> >>>I still getting nothing but this on my map ( right-click properties >>>): >>> >>>The image >>> > > "http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache > /htdoc > >>>s/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot >>>be displayed, because it contains errors. >>> >>>And yet - when I move the tests directory into my http tree like this >>> >>> > > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ > htdocs > >>>/mco.communityservers.com/htdocs/tests/test.map&mode=map >>> >>>I get what the mapserver tests are supposed to give - is there >>>something about my shape files I should know about? >>> >>>Please - anything at all would be helpful. >>> >> > From sirronj at PACBELL.NET Thu Nov 11 13:13:57 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 11 Nov 2004 13:13:57 -0800 Subject: please - please - can anybody shed any light on what I am doing wrong? In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB16017B18E3@COMAIL01.digitalglobe.com> Message-ID: Here is what I got from a shpdump: Shapefile Type: Polygon # of Shapes: 58 File Bounds: ( 5895561.577, -191512.795,0,0) to ( 8945856.680, 3225756.404,0,0) so I changed my extent to: EXTENT 5895561.577 -191512.795 8945856.680 3225756.404 IMAGETYPE PNG SIZE 600 600 SHAPEPATH "data" IMAGECOLOR 255 255 255 I still get nothing in my browser. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ethan Alpert Sent: Thursday, November 11, 2004 1:09 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any light on what I am doing wrong? Also do a shpdump and get the bounds in the projection of the shapefile. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Woodbridge Sent: Thursday, November 11, 2004 1:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any light on what I am doing wrong? Joseph, I'm not sure your extents are correct: EXTENTS xmin ymin xmax ymax it looks like you have xmin xmax ymin ymax. What to you get for an image when you use shp2img utility? -Steve Joseph Norris wrote: > I made a change - checked the permissions: > > Everything set to apache and with read/write/exec for apache > > This is the same as the > > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ > htdocs > /mco.communityservers.com/htdocs/tests/test.map&mode=map > > > > This new url - simplified > > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ > htdocs > /mco.communityservers.com/htdocs/maps/cal.map&mode=map > > The two directory permission structures are the exact same. > > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Stephen Woodbridge > Sent: Thursday, November 11, 2004 11:54 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any > light on what I am doing wrong? > > When I hit the URL you listed it says: > > msLoadMap(): Unable to access file. > (/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/cal/cal > .map) > > So I would check your path and your permissions > > -Steve > > Stephen Woodbridge wrote: > > >>Joseph, >> >>You DATAPATH is relative to your mapfile unless you specify it as an >>absolute path. I would start there. Also if you can load Netscape then >>you can right click the broken image icon and select view image and it >>will display any error messages that mapserver coughs up. >> >>-Steve >> >>Joseph Norris wrote: >> >> >>>Group, >>> >>>Here I am again: >>> >>>I have this link: >>> >>> > > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ > htdocs > >>>/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map >>> >>>and this map file >>> >>>MAP >>> NAME TESTMAP >>> STATUS ON >>> EXTENT -1375383.89811082 -7278971.22201064 16216802.1381132 >>>10313214.8142134 >>> IMAGETYPE PNG >>> SIZE 600 600 >>> SHAPEPATH "data" >>> IMAGECOLOR 255 255 255 >>> >>> WEB >>> METADATA >>> "key1" "value1" >>> "key2" "value2" >>> "key3" "value3" >>> "key4" "value4" >>> END >>> END >>> >>> LAYER >>> NAME "calif_co_st" >>> TYPE POLYGON >>> DATA "calif_co_st" >>> STATUS DEFAULT >>> END >>> >>>END >>> >>>I still getting nothing but this on my map ( right-click properties >>>): >>> >>>The image >>> > > "http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache > /htdoc > >>>s/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot >>>be displayed, because it contains errors. >>> >>>And yet - when I move the tests directory into my http tree like this >>> >>> > > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ > htdocs > >>>/mco.communityservers.com/htdocs/tests/test.map&mode=map >>> >>>I get what the mapserver tests are supposed to give - is there >>>something about my shape files I should know about? >>> >>>Please - anything at all would be helpful. >>> >> > From test at STIGASCORP.COM Thu Nov 11 13:21:16 2004 From: test at STIGASCORP.COM (Chris) Date: Thu, 11 Nov 2004 16:21:16 -0500 Subject: question on projections Message-ID: Hi everyone, I'm wondering how I can change from one projection to the other one the fly, depending on the area of the map I'm in. For example, if I'm using UTM projections, and I pan from one UTM zone to ther other, how can I switch my output projection let's say from UTM 16 to UTM 17. It looks like I can only define one output projection in a map file. Regards, Chris From romoloman at HOTMAIL.COM Thu Nov 11 13:24:42 2004 From: romoloman at HOTMAIL.COM (Romolo Manfredini) Date: Thu, 11 Nov 2004 22:24:42 +0100 Subject: please - please - can anybody shed any light on what I am doing wrong? Message-ID: Try to remove the prj file, seems to be broken and probably prevents the opening of the file. Furthermore the extents of the shapefile are [minx] [miny] [maxx] [maxy] 5895561.577 -191512.795 8945856.680 3225756.404 Best Regards, Romolo Manfredini ----- Original Message ----- From: "Joseph Norris" To: Sent: Thursday, November 11, 2004 8:59 PM Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any light on what I am doing wrong? > I made a change - checked the permissions: > > Everything set to apache and with read/write/exec for apache > > This is the same as the > > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs > /mco.communityservers.com/htdocs/tests/test.map&mode=map > > > > This new url - simplified > > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs > /mco.communityservers.com/htdocs/maps/cal.map&mode=map > > The two directory permission structures are the exact same. > > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Stephen Woodbridge > Sent: Thursday, November 11, 2004 11:54 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any > light on what I am doing wrong? > > When I hit the URL you listed it says: > > msLoadMap(): Unable to access file. > (/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/cal/cal.map) > > So I would check your path and your permissions > > -Steve > > Stephen Woodbridge wrote: > > > Joseph, > > > > You DATAPATH is relative to your mapfile unless you specify it as an > > absolute path. I would start there. Also if you can load Netscape then > > you can right click the broken image icon and select view image and it > > will display any error messages that mapserver coughs up. > > > > -Steve > > > > Joseph Norris wrote: > > > >> Group, > >> > >> Here I am again: > >> > >> I have this link: > >> > >> > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs > >> > >> /mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map > >> > >> and this map file > >> > >> MAP > >> NAME TESTMAP > >> STATUS ON > >> EXTENT -1375383.89811082 -7278971.22201064 16216802.1381132 > >> 10313214.8142134 > >> IMAGETYPE PNG > >> SIZE 600 600 > >> SHAPEPATH "data" > >> IMAGECOLOR 255 255 255 > >> > >> WEB > >> METADATA > >> "key1" "value1" > >> "key2" "value2" > >> "key3" "value3" > >> "key4" "value4" > >> END > >> END > >> > >> LAYER > >> NAME "calif_co_st" > >> TYPE POLYGON > >> DATA "calif_co_st" > >> STATUS DEFAULT > >> END > >> > >> END > >> > >> I still getting nothing but this on my map ( right-click properties ): > >> > >> The image > >> > "http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdoc > >> > >> s/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot be > >> displayed, because it contains errors. > >> > >> And yet - when I move the tests directory into my http tree like this > >> > >> > http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs > >> > >> /mco.communityservers.com/htdocs/tests/test.map&mode=map > >> > >> I get what the mapserver tests are supposed to give - is there something > >> about my shape files I should know about? > >> > >> Please - anything at all would be helpful. > >> > > > From ealpert at DIGITALGLOBE.COM Thu Nov 11 13:27:25 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 11 Nov 2004 14:27:25 -0700 Subject: question on projections Message-ID: Only thing I can think of is to do it in mapscript. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chris Sent: Thursday, November 11, 2004 2:21 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] question on projections Hi everyone, I'm wondering how I can change from one projection to the other one the fly, depending on the area of the map I'm in. For example, if I'm using UTM projections, and I pan from one UTM zone to ther other, how can I switch my output projection let's say from UTM 16 to UTM 17. It looks like I can only define one output projection in a map file. Regards, Chris From ed at TOPOZONE.COM Thu Nov 11 13:30:43 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 11 Nov 2004 16:30:43 -0500 Subject: please - please - can anybody shed any light on what I am doing wrong? Message-ID: Wow! Such a flurry of energy! Take a deep breath. Now, instead of trying to use that URL as the SRC field of an IMG tag, simply copy it into the address bar of your browser. You will find that MapServer is attempting to give you a possibly informative text message: http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map MapServer will tell you that it is unable to read your MAP file, either because the path to it is wrong (it's looking for /usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/cal/cal.map) or because there is an access/permissions problem. - Ed "All of nature talks to me. If I could just figure out what it's trying to say..." - Laurie Anderson Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 From woodbri at SWOODBRIDGE.COM Thu Nov 11 13:47:44 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 11 Nov 2004 16:47:44 -0500 Subject: please - please - can anybody shed any light on what I am doing wrong? In-Reply-To: Message-ID: AHh! I see a (the?) problem, you haven't declared a CLASS ... END block to tell mapserver HOW to reder you file. Try: LAYER ... CLASS COLOR 0 0 0 END END -Steve Joseph Norris wrote: > Here is what I got from a shpdump: > > Shapefile Type: Polygon # of Shapes: 58 > > File Bounds: ( 5895561.577, -191512.795,0,0) > to ( 8945856.680, 3225756.404,0,0) > > > so I changed my extent to: > > EXTENT 5895561.577 -191512.795 8945856.680 3225756.404 > > IMAGETYPE PNG > SIZE 600 600 > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > > I still get nothing in my browser. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Ethan Alpert > Sent: Thursday, November 11, 2004 1:09 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any > light on what I am doing wrong? > > Also do a shpdump and get the bounds in the projection of the shapefile. > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Stephen Woodbridge > Sent: Thursday, November 11, 2004 1:08 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed > any light on what I am doing wrong? > > > Joseph, > > I'm not sure your extents are correct: > > EXTENTS xmin ymin xmax ymax > > it looks like you have xmin xmax ymin ymax. What to you get for an image > when you use shp2img utility? > > -Steve > > > Joseph Norris wrote: > > >>I made a change - checked the permissions: >> >>Everything set to apache and with read/write/exec for apache >> >>This is the same as the >> >>http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ >>htdocs >>/mco.communityservers.com/htdocs/tests/test.map&mode=map >> >> >> >>This new url - simplified >> >>http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ >>htdocs >>/mco.communityservers.com/htdocs/maps/cal.map&mode=map >> >>The two directory permission structures are the exact same. >> >> >> >>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print >>@c=map chr >> > > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, > 14,- > >>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >> >>-----Original Message----- >>From: UMN MapServer Users List >>[mailto:MAPSERVER-USERS at lists.umn.edu]On >>Behalf Of Stephen Woodbridge >>Sent: Thursday, November 11, 2004 11:54 AM >>To: MAPSERVER-USERS at lists.umn.edu >>Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed > > any > >>light on what I am doing wrong? >> >>When I hit the URL you listed it says: >> >>msLoadMap(): Unable to access file. >>(/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/cal/cal >>.map) >> >>So I would check your path and your permissions >> >>-Steve >> >>Stephen Woodbridge wrote: >> >> >> >>>Joseph, >>> >>>You DATAPATH is relative to your mapfile unless you specify it as an >>>absolute path. I would start there. Also if you can load Netscape then > > >>>you can right click the broken image icon and select view image and it > > >>>will display any error messages that mapserver coughs up. >>> >>>-Steve >>> >>>Joseph Norris wrote: >>> >>> >>> >>>>Group, >>>> >>>>Here I am again: >>>> >>>>I have this link: >>>> >>>> >> >>http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ >>htdocs >> >> >>>>/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map >>>> >>>>and this map file >>>> >>>>MAP >>>> NAME TESTMAP >>>> STATUS ON >>>> EXTENT -1375383.89811082 -7278971.22201064 16216802.1381132 >>>>10313214.8142134 >>>> IMAGETYPE PNG >>>> SIZE 600 600 >>>> SHAPEPATH "data" >>>> IMAGECOLOR 255 255 255 >>>> >>>> WEB >>>> METADATA >>>> "key1" "value1" >>>> "key2" "value2" >>>> "key3" "value3" >>>> "key4" "value4" >>>> END >>>> END >>>> >>>> LAYER >>>> NAME "calif_co_st" >>>> TYPE POLYGON >>>> DATA "calif_co_st" >>>> STATUS DEFAULT >>>> END >>>> >>>>END >>>> >>>>I still getting nothing but this on my map ( right-click properties >>>>): >>>> >>>>The image >>>> >> >>"http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache >>/htdoc >> >> >>>>s/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot >>>>be displayed, because it contains errors. >>>> >>>>And yet - when I move the tests directory into my http tree like this >>>> >>>> >> >>http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ >>htdocs >> >> >>>>/mco.communityservers.com/htdocs/tests/test.map&mode=map >>>> >>>>I get what the mapserver tests are supposed to give - is there >>>>something about my shape files I should know about? >>>> >>>>Please - anything at all would be helpful. >>>> >>> > From sirronj at PACBELL.NET Thu Nov 11 14:08:04 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 11 Nov 2004 14:08:04 -0800 Subject: please - please - can anybody shed any light on what I am doing wrong? In-Reply-To: <4193DE00.6060206@swoodbridge.com> Message-ID: Three - no Three hundred cheers for Stephen - thank you thank you. I now am on the way to GIS bliss. Also - thanks to all for your patience with me. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Stephen Woodbridge Sent: Thursday, November 11, 2004 1:48 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any light on what I am doing wrong? AHh! I see a (the?) problem, you haven't declared a CLASS ... END block to tell mapserver HOW to reder you file. Try: LAYER ... CLASS COLOR 0 0 0 END END -Steve Joseph Norris wrote: > Here is what I got from a shpdump: > > Shapefile Type: Polygon # of Shapes: 58 > > File Bounds: ( 5895561.577, -191512.795,0,0) > to ( 8945856.680, 3225756.404,0,0) > > > so I changed my extent to: > > EXTENT 5895561.577 -191512.795 8945856.680 3225756.404 > > IMAGETYPE PNG > SIZE 600 600 > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > > I still get nothing in my browser. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Ethan Alpert > Sent: Thursday, November 11, 2004 1:09 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any > light on what I am doing wrong? > > Also do a shpdump and get the bounds in the projection of the shapefile. > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Stephen Woodbridge > Sent: Thursday, November 11, 2004 1:08 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed > any light on what I am doing wrong? > > > Joseph, > > I'm not sure your extents are correct: > > EXTENTS xmin ymin xmax ymax > > it looks like you have xmin xmax ymin ymax. What to you get for an image > when you use shp2img utility? > > -Steve > > > Joseph Norris wrote: > > >>I made a change - checked the permissions: >> >>Everything set to apache and with read/write/exec for apache >> >>This is the same as the >> >>http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ >>htdocs >>/mco.communityservers.com/htdocs/tests/test.map&mode=map >> >> >> >>This new url - simplified >> >>http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ >>htdocs >>/mco.communityservers.com/htdocs/maps/cal.map&mode=map >> >>The two directory permission structures are the exact same. >> >> >> >>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print >>@c=map chr >> > > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, > 14,- > >>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >> >>-----Original Message----- >>From: UMN MapServer Users List >>[mailto:MAPSERVER-USERS at lists.umn.edu]On >>Behalf Of Stephen Woodbridge >>Sent: Thursday, November 11, 2004 11:54 AM >>To: MAPSERVER-USERS at lists.umn.edu >>Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed > > any > >>light on what I am doing wrong? >> >>When I hit the URL you listed it says: >> >>msLoadMap(): Unable to access file. >>(/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/cal/cal >>.map) >> >>So I would check your path and your permissions >> >>-Steve >> >>Stephen Woodbridge wrote: >> >> >> >>>Joseph, >>> >>>You DATAPATH is relative to your mapfile unless you specify it as an >>>absolute path. I would start there. Also if you can load Netscape then > > >>>you can right click the broken image icon and select view image and it > > >>>will display any error messages that mapserver coughs up. >>> >>>-Steve >>> >>>Joseph Norris wrote: >>> >>> >>> >>>>Group, >>>> >>>>Here I am again: >>>> >>>>I have this link: >>>> >>>> >> >>http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ >>htdocs >> >> >>>>/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map >>>> >>>>and this map file >>>> >>>>MAP >>>> NAME TESTMAP >>>> STATUS ON >>>> EXTENT -1375383.89811082 -7278971.22201064 16216802.1381132 >>>>10313214.8142134 >>>> IMAGETYPE PNG >>>> SIZE 600 600 >>>> SHAPEPATH "data" >>>> IMAGECOLOR 255 255 255 >>>> >>>> WEB >>>> METADATA >>>> "key1" "value1" >>>> "key2" "value2" >>>> "key3" "value3" >>>> "key4" "value4" >>>> END >>>> END >>>> >>>> LAYER >>>> NAME "calif_co_st" >>>> TYPE POLYGON >>>> DATA "calif_co_st" >>>> STATUS DEFAULT >>>> END >>>> >>>>END >>>> >>>>I still getting nothing but this on my map ( right-click properties >>>>): >>>> >>>>The image >>>> >> >>"http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache >>/htdoc >> >> >>>>s/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot >>>>be displayed, because it contains errors. >>>> >>>>And yet - when I move the tests directory into my http tree like this >>>> >>>> >> >>http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ >>htdocs >> >> >>>>/mco.communityservers.com/htdocs/tests/test.map&mode=map >>>> >>>>I get what the mapserver tests are supposed to give - is there >>>>something about my shape files I should know about? >>>> >>>>Please - anything at all would be helpful. >>>> >>> > From warmerdam at POBOX.COM Thu Nov 11 14:26:28 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 11 Nov 2004 17:26:28 -0500 Subject: question on projections In-Reply-To: Message-ID: Chris wrote: > Hi everyone, > > I'm wondering how I can change from one projection to the other one the fly, > depending on the area of the map I'm in. > > For example, if I'm using UTM projections, and I pan from one UTM zone to > ther other, how can I switch my output projection let's say from UTM 16 to > UTM 17. It looks like I can only define one output projection in a map > file. Chris, This would be tricky. You would likely need to have a bunch of mapscript magic to control something like this. In "normal" use of MapServer, the URL will have the requested region to display in the URL but the region is in the coordinates of the map. So you would have to do a whole bunch of preprocessing magic in a mapscript script to recognise that a request has wandered from one zone into another and transform the requested BBOX as well as overriding the mapObj coordinate system. I personally would encourage you to select a single coordinate system appropriate for the whole region you want to work on if at all possible. It would save you alot of headaches. Best regards, -- ---------------------------------------+-------------------------------------- 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 superbla3000 at GMX.NET Thu Nov 11 15:11:56 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Fri, 12 Nov 2004 00:11:56 +0100 Subject: defalut error page Message-ID: hello, is it possible, to have a default error site? So, whenever an error ouccures, error.html is shown? Joerg From ed at TOPOZONE.COM Thu Nov 11 15:49:48 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 11 Nov 2004 18:49:48 -0500 Subject: please - please - can anybody shed any light on what I am doing wrong? Message-ID: Ethan, Joesph and list - I had the wrong URL (see Ethan's message below) because I copied it from the original message (see Joseph's original post): "The image "http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot be displayed, because it contains errors." Please be careful when reporting errors, and be sure to report the error message you actually receive! Festina lente, as they say.... - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Thursday, November 11, 2004 4:35 PM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] please - please - can anybody shed any light on what I am doing wrong? FYI you have the wrong URL http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal.map&mode=map -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Thursday, November 11, 2004 2:31 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any light on what I am doing wrong? Wow! Such a flurry of energy! Take a deep breath. Now, instead of trying to use that URL as the SRC field of an IMG tag, simply copy it into the address bar of your browser. You will find that MapServer is attempting to give you a possibly informative text message: http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map MapServer will tell you that it is unable to read your MAP file, either because the path to it is wrong (it's looking for /usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/cal/cal.ma p) or because there is an access/permissions problem. - Ed "All of nature talks to me. If I could just figure out what it's trying to say..." - Laurie Anderson Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 From ed at TOPOZONE.COM Thu Nov 11 17:34:39 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 11 Nov 2004 20:34:39 -0500 Subject: please - please - can anybody shed any light on what I am doing wrong? Message-ID: Then I'll make another request - please always reply to the whole list . There's no particular reason to think I'm likely to be the best person to help with database joins! I'm copying the list since I expect someone with a ready answer will be able to reply more easily and quickly than I can. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: Joseph Norris [mailto:sirronj at pacbell.net] Sent: Thursday, November 11, 2004 7:47 PM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] please - please - can anybody shed any light on what I am doing wrong? Sorry about that Ed. I got it working with your help and the other members of the list. Thanks for putting up with me. Now just one more little thing. Do you have a source of a how-to for a simple join of shape file to data so that I can use my tiger files with the layers of data? I have started with the most simple - California tiger shape file with 5-zip data file. Thank you. And if you can not or do not have time - thanks anyway. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,-68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ed McNierney Sent: Thursday, November 11, 2004 3:50 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any light on what I am doing wrong? Ethan, Joesph and list - I had the wrong URL (see Ethan's message below) because I copied it from the original message (see Joseph's original post): "The image "http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot be displayed, because it contains errors." Please be careful when reporting errors, and be sure to report the error message you actually receive! Festina lente, as they say.... - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Thursday, November 11, 2004 4:35 PM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] please - please - can anybody shed any light on what I am doing wrong? FYI you have the wrong URL http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal.map&mode=map -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Thursday, November 11, 2004 2:31 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any light on what I am doing wrong? Wow! Such a flurry of energy! Take a deep breath. Now, instead of trying to use that URL as the SRC field of an IMG tag, simply copy it into the address bar of your browser. You will find that MapServer is attempting to give you a possibly informative text message: http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ht docs/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map MapServer will tell you that it is unable to read your MAP file, either because the path to it is wrong (it's looking for /usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/cal/cal.ma p) or because there is an access/permissions problem. - Ed "All of nature talks to me. If I could just figure out what it's trying to say..." - Laurie Anderson Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 From ed at TOPOZONE.COM Thu Nov 11 17:50:43 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 11 Nov 2004 20:50:43 -0500 Subject: question on projections Message-ID: Chris - While I agree with Frank, I'd like to point out that the OGC WMS interface allows you (in fact, requires you) to request the output projection for any map image. This would, of course, limit you to using MapServer only to generate images - you'd need to manage the rest of the application and presentation logic yourself. However, you'd need to do that anyway to keep track of the UTM zone you're in and calculate the appropriate bounding box coordinates for the map request in the zone/projection you desire. That's exactly what we do on TopoZone, and you can see an example here: http://www.topozone.com/map.asp?lat=36&lon=-120 That's just a random spot right on the UTM Zone 10/11 boundary. Click just to the right of center and you'll be looking at a UTM Zone 11 map, with the left-hand side reprojected into Zone 11; click to the left of center and you'll see a UTM Zone 10 map, with the right side reprojected. Since the default coordinate datum is NAD83, the transition point is actually a little to the right of where you can see the seam between quads, because the quads are bounded by NAD27 lat/lon boxes. The map images are all generated using OGC WMS requests. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Thursday, November 11, 2004 5:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] question on projections Chris wrote: > Hi everyone, > > I'm wondering how I can change from one projection to the other one > the fly, depending on the area of the map I'm in. > > For example, if I'm using UTM projections, and I pan from one UTM zone > to ther other, how can I switch my output projection let's say from > UTM 16 to UTM 17. It looks like I can only define one output > projection in a map file. Chris, This would be tricky. You would likely need to have a bunch of mapscript magic to control something like this. In "normal" use of MapServer, the URL will have the requested region to display in the URL but the region is in the coordinates of the map. So you would have to do a whole bunch of preprocessing magic in a mapscript script to recognise that a request has wandered from one zone into another and transform the requested BBOX as well as overriding the mapObj coordinate system. I personally would encourage you to select a single coordinate system appropriate for the whole region you want to work on if at all possible. It would save you alot of headaches. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ 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 woodbri at SWOODBRIDGE.COM Thu Nov 11 18:10:50 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 11 Nov 2004 21:10:50 -0500 Subject: please - please - can anybody shed any light on what I am doing wrong? In-Reply-To: Message-ID: Joseph, Can you explain more about what you want to achieve using a join? or why you think you need to use a join? Typically joins are only supported on QUERY with a template if you are using shapefiles. If you are looking to use a join for say classification of polygons for thematic mapping you should probably look into moving all your data into PostGIS as it it not supported for shapefiles (much to my consternation and occasional prodding otherwise). -Steve Joseph Norris wrote: > Stephen, > > One more question. Can you recommend a good how-to to begin learning how to > join tiger dbf data with tiger shape files? Something very basic that I can > use as a start? Thanks. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Stephen Woodbridge > Sent: Thursday, November 11, 2004 1:48 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any > light on what I am doing wrong? > > AHh! I see a (the?) problem, you haven't declared a CLASS ... END block > to tell mapserver HOW to reder you file. Try: > > LAYER > ... > CLASS > COLOR 0 0 0 > END > END > > -Steve > > Joseph Norris wrote: > > >>Here is what I got from a shpdump: >> >>Shapefile Type: Polygon # of Shapes: 58 >> >>File Bounds: ( 5895561.577, -191512.795,0,0) >> to ( 8945856.680, 3225756.404,0,0) >> >> >>so I changed my extent to: >> >>EXTENT 5895561.577 -191512.795 8945856.680 3225756.404 >> >> IMAGETYPE PNG >> SIZE 600 600 >> SHAPEPATH "data" >> IMAGECOLOR 255 255 255 >> >>I still get nothing in my browser. >> >> >>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > > chr > > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > >>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On >>Behalf Of Ethan Alpert >>Sent: Thursday, November 11, 2004 1:09 PM >>To: MAPSERVER-USERS at lists.umn.edu >>Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any >>light on what I am doing wrong? >> >>Also do a shpdump and get the bounds in the projection of the shapefile. >> >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >>Behalf Of Stephen Woodbridge >>Sent: Thursday, November 11, 2004 1:08 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed >>any light on what I am doing wrong? >> >> >>Joseph, >> >>I'm not sure your extents are correct: >> >>EXTENTS xmin ymin xmax ymax >> >>it looks like you have xmin xmax ymin ymax. What to you get for an image >>when you use shp2img utility? >> >>-Steve >> >> >>Joseph Norris wrote: >> >> >> >>>I made a change - checked the permissions: >>> >>>Everything set to apache and with read/write/exec for apache >>> >>>This is the same as the >>> >>>http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ >>>htdocs >>>/mco.communityservers.com/htdocs/tests/test.map&mode=map >>> >>> >>> >>>This new url - simplified >>> >>>http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ >>>htdocs >>>/mco.communityservers.com/htdocs/maps/cal.map&mode=map >>> >>>The two directory permission structures are the exact same. >>> >>> >>> >>>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print >>>@c=map chr >>> >> >>$_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, >>14,- >> >> >>>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >>> >>>-----Original Message----- >>>From: UMN MapServer Users List >>>[mailto:MAPSERVER-USERS at lists.umn.edu]On >>>Behalf Of Stephen Woodbridge >>>Sent: Thursday, November 11, 2004 11:54 AM >>>To: MAPSERVER-USERS at lists.umn.edu >>>Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed >> >>any >> >> >>>light on what I am doing wrong? >>> >>>When I hit the URL you listed it says: >>> >>>msLoadMap(): Unable to access file. >>>(/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/cal/cal >>>.map) >>> >>>So I would check your path and your permissions >>> >>>-Steve >>> >>>Stephen Woodbridge wrote: >>> >>> >>> >>> >>>>Joseph, >>>> >>>>You DATAPATH is relative to your mapfile unless you specify it as an >>>>absolute path. I would start there. Also if you can load Netscape then >> >> >>>>you can right click the broken image icon and select view image and it >> >> >>>>will display any error messages that mapserver coughs up. >>>> >>>>-Steve >>>> >>>>Joseph Norris wrote: >>>> >>>> >>>> >>>> >>>>>Group, >>>>> >>>>>Here I am again: >>>>> >>>>>I have this link: >>>>> >>>>> >>> >>>http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ >>>htdocs >>> >>> >>> >>>>>/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map >>>>> >>>>>and this map file >>>>> >>>>>MAP >>>>>NAME TESTMAP >>>>>STATUS ON >>>>>EXTENT -1375383.89811082 -7278971.22201064 16216802.1381132 >>>>>10313214.8142134 >>>>>IMAGETYPE PNG >>>>>SIZE 600 600 >>>>>SHAPEPATH "data" >>>>>IMAGECOLOR 255 255 255 >>>>> >>>>>WEB >>>>> METADATA >>>>> "key1" "value1" >>>>> "key2" "value2" >>>>> "key3" "value3" >>>>> "key4" "value4" >>>>> END >>>>>END >>>>> >>>>>LAYER >>>>> NAME "calif_co_st" >>>>> TYPE POLYGON >>>>> DATA "calif_co_st" >>>>> STATUS DEFAULT >>>>>END >>>>> >>>>>END >>>>> >>>>>I still getting nothing but this on my map ( right-click properties >>>>>): >>>>> >>>>>The image >>>>> >>> >>>"http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache >>>/htdoc >>> >>> >>> >>>>>s/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot >>>>>be displayed, because it contains errors. >>>>> >>>>>And yet - when I move the tests directory into my http tree like this >>>>> >>>>> >>> >>>http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ >>>htdocs >>> >>> >>> >>>>>/mco.communityservers.com/htdocs/tests/test.map&mode=map >>>>> >>>>>I get what the mapserver tests are supposed to give - is there >>>>>something about my shape files I should know about? >>>>> >>>>>Please - anything at all would be helpful. >>>>> >>>> > > > From siki at AGT.BME.HU Fri Nov 12 00:31:50 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 12 Nov 2004 07:31:50 -0100 Subject: defalut error page {Scanned} In-Reply-To: <4193F1BC.2020209@gmx.net> Message-ID: Hi, You can use ERROR error.html in the WEB section of your map file. Bye Zoltan On Fri, 12 Nov 2004, joerg pfeiffer wrote: > hello, > > is it possible, to have a default error site? So, whenever an error > ouccures, error.html is shown? > > Joerg > From siki at AGT.BME.HU Fri Nov 12 00:49:43 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 12 Nov 2004 07:49:43 -0100 Subject: scale -1 {Scanned} Message-ID: Hi List, I try to use itemquery or itemnquery. I use the following query string http://www.agt.bme.hu/cgi-bin/mapserv?map=%2Fhome1%2Fwww%2Fmaps%2Fbme_keres.map&mapext=shapes&imgsize=600+600&mode=itemquery&qlayer=epu&qitem=name&layers=telek+epulet+park+falkeri+lepcso+topo&qstring=T and I get scale -1, no error message, no map, reference, scale, legend images are created. My map and template file work well in browse mode. Any idea? I use 4.2.5 version on RedHat 9. Thanks Zoltan From fx.gamoy at MAPXPLORE.COM Thu Nov 11 23:35:26 2004 From: fx.gamoy at MAPXPLORE.COM (fx gamoy) Date: Fri, 12 Nov 2004 08:35:26 +0100 Subject: question on projections Message-ID: Hello Franck, In the same idea, i ve got a set of data in WGS84. I use those datas on a gps track application. Every layers (data and gps data) are processed in latlong WGS84 and everything works fine. The only issue is that the map seems to be a little flattened. So i would like to output it in UTM something. I am working in whole Europe. I ve made many try using the projection parameter in the map section PROJECTION "init=epsg:xxxx" END but nothing occur... Any help will be appreciated... thanks fx ----- Original Message ----- From: "Frank Warmerdam" To: Sent: Thursday, November 11, 2004 11:26 PM Subject: Re: [UMN_MAPSERVER-USERS] question on projections > Chris wrote: > > Hi everyone, > > > > I'm wondering how I can change from one projection to the other one the fly, > > depending on the area of the map I'm in. > > > > For example, if I'm using UTM projections, and I pan from one UTM zone to > > ther other, how can I switch my output projection let's say from UTM 16 to > > UTM 17. It looks like I can only define one output projection in a map > > file. > > Chris, > > This would be tricky. You would likely need to have a bunch of mapscript > magic to control something like this. In "normal" use of MapServer, the > URL will have the requested region to display in the URL but the region is > in the coordinates of the map. So you would have to do a whole bunch of > preprocessing magic in a mapscript script to recognise that a request has > wandered from one zone into another and transform the requested BBOX as > well as overriding the mapObj coordinate system. > > I personally would encourage you to select a single coordinate system > appropriate for the whole region you want to work on if at all possible. > It would save you alot of headaches. > > Best regards, > -- > ---------------------------------------+---------------------------------- ---- > 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 temiz at DEPREM.GOV.TR Thu Nov 11 23:48:56 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Fri, 12 Nov 2004 09:48:56 +0200 Subject: image coordinates of reference map ? Message-ID: hello when I was trying to get image coordinates of reference map with javascript. I saw that minx and miny values of reference map were not zero. How can I start image coordinates of reference map from zero ? kind regards Ahmet Temiz* * ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From herbls123 at YAHOO.COM Fri Nov 12 00:55:35 2004 From: herbls123 at YAHOO.COM (Harry T. Jones) Date: Fri, 12 Nov 2004 02:55:35 -0600 Subject: Need to Query Shape Files Message-ID: hello all, this is my first time posting as i just joined the list. i'm researching a means to query data provided in shape files. i've been able to view the data files in arcexplorer but i'm not sure how i would query this online via php/perl. i don't need to show maps, but i do need to be able to get at the data that is associated with polygons in the files. for example, district information seems to be somehow associated with the longitudes/lattitudes that define the polygons contained in the shape files. what i need to be able to do is, given an address or zip code, locate the district that contains that address in the data files. so far i've been considering querying a mysql table to get the lat/lon coordinates for a zip code, then querying the shape files for the district...that's the big gray area...i don't have a clue...should i convert this data to some other format instead of trying to query the shape files? should i somehow use a map server to get the information? any helpful information you can give me would be greatly appreciated. this is my first time working with gis and i'm not finding it easy to get information. even if you can just point me in the direction to get a better understanding of how this all works i appreciate it. oh yeah, the data i'm trying to work with is at http://www.nyc.gov/html/dcp/html/bytes/dwndistricts.html#pod thanks in advance! From sha at LE34.DK Fri Nov 12 02:24:01 2004 From: sha at LE34.DK (Stella Andersen) Date: Fri, 12 Nov 2004 04:24:01 -0600 Subject: Need to Query Shape Files Message-ID: Hi Harry, Here is a litle help on the way. Hope it can be of use. A shape file is actually a database table with a spatial dimension. A shape file contains for each object attributes and a spatial object (point, line, region or text). MapServer and desktop GIS programs like ArcView are optimized for spatial search like "which region is a point within". You can use the mapserv.exe as a CGI for your request. Use the documentation on CGI-variables for MapServer to compose a request URL to the mapserv.exe. Use the documentation on map-file syntax for MapServer to set op the configuration for mapserv.exe. In the map-file you specify how mapserv.exe connects to the shape-file and refers to HTML-templates. Mapserve.exe uses the HTML-templates to format the output af the request. There is also a documentation on how to make a template. regards Stella On Fri, 12 Nov 2004 02:55:35 -0600, Harry T. Jones wrote: >hello all, > >this is my first time posting as i just joined the list. >i'm researching a means to query data provided in shape files. i've been >able to view the data files in arcexplorer but i'm not sure how i would >query this online via php/perl. i don't need to show maps, but i do need to >be able to get at the data that is associated with polygons in the files. > >for example, district information seems to be somehow associated with the >longitudes/lattitudes that define the polygons contained in the shape files. >what i need to be able to do is, given an address or zip code, locate the >district that contains that address in the data files. > >so far i've been considering querying a mysql table to get the lat/lon >coordinates for a zip code, then querying the shape files for the >district...that's the big gray area...i don't have a clue...should i convert >this data to some other format instead of trying to query the shape files? >should i somehow use a map server to get the information? > >any helpful information you can give me would be greatly appreciated. this >is my first time working with gis and i'm not finding it easy to get >information. > >even if you can just point me in the direction to get a better understanding >of how this all works i appreciate it. > >oh yeah, the data i'm trying to work with is at >http://www.nyc.gov/html/dcp/html/bytes/dwndistricts.html#pod > > > > From raphael.teixeira at GMAIL.COM Fri Nov 12 02:47:31 2004 From: raphael.teixeira at GMAIL.COM (Raphael Teixeira) Date: Fri, 12 Nov 2004 07:47:31 -0300 Subject: MapServer Tutorial Message-ID: Hello All, Does anybody have a good tutorial about mapserver? I'm new to mapserver and I need to buid a server using mapserver, postgresql, postgis and gis. Thaks, -- Raphael da Silva Teixeira From bartvde at XS4ALL.NL Fri Nov 12 03:14:29 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 12 Nov 2004 12:14:29 +0100 Subject: MapServer Tutorial In-Reply-To: Message-ID: Hi, I would recommend having a look at the proceedings of the MUM2 (Mapserver User Meeting), which was held June 2004 in Ottawa. This has a lot of workshop material for Mapserver as well as PostGIS. See: http://www.omsug.ca/osgis2004/proceedings.html Best regards, Bart > Hello All, > > Does anybody have a good tutorial about mapserver? I'm new to > mapserver and I need to buid a server using mapserver, postgresql, > postgis and gis. > > Thaks, > > -- > Raphael da Silva Teixeira > From mschulz at WEBGIS.DE Fri Nov 12 03:14:49 2004 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Fri, 12 Nov 2004 12:14:49 +0100 Subject: Join shape and dbms data: OGR? Message-ID: Dear List, i want to evaluate the possibility to integrate a layer in mapserver, that takes the geometry data from a shape file (polygons with a unique id) and the attribute data from a MS-Access DB (this is unfortunately a precondition). The attribute data should be joined with the shape-file unique polygon id and thus accessible for classification and labeling. I looked through the OGR connection possibilities and now i am wondering if this could be achieved using an OGR virtual datasource, which has a SQLSrc defined that performs the join? Thanks, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de/www.zopecms.de From warmerdam at POBOX.COM Fri Nov 12 06:25:39 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 12 Nov 2004 09:25:39 -0500 Subject: Join shape and dbms data: OGR? In-Reply-To: <41949B29.7000906@webgis.de> Message-ID: Michael Schulz wrote: > Dear List, > > i want to evaluate the possibility to integrate a layer in mapserver, > that takes the geometry data > from a shape file (polygons with a unique id) and the attribute data > from a MS-Access DB (this is > unfortunately a precondition). The attribute data should be joined with > the shape-file unique > polygon id and thus accessible for classification and labeling. > > I looked through the OGR connection possibilities and now i am wondering > if this could be achieved > using an OGR virtual datasource, which has a SQLSrc defined that > performs the join? Michael, In theory you can do it via an OGR connection without even using the VRT stuff. The DATA statement in the map file can be a SELECT statement when you are using the OGR connection type. In theory if you connect to a shapefile you could have a select statement that also joins attribute information from an ODBC connection. First, I think you will need to have a .dbf associated with your shapefile that has at least your relation key. I don't think it is possible to use the FID (ie. the shapefile sequence number) in the OGR SQL statements. You might use something like: SELECT * from city LEFT JOIN 'ODBC:YourAccessDSN'.city_info ON city.id = city_info.id assuming your shapefile is called "city.shp" and has a column called id, and that your msaccess table is called city_info and also has a column called id to relate on. The 'ODBC:' portion of the above is a bit of OGR SQL special syntax allowing you to refer to a different datasource than the one you listed in your CONNECTION string. Assuming you have setup a system DSN called YourAccessDSN, and that there are no userid or password required it would look something like the above. I would add that connecting to ODBC datasources with alot of tables can be somewhat expensive. If there are alot of tables in your access database, you might want to list the one you want access to in the datasource name so OGR only has to collect the table definition for that one table. Lastly, OGR is going to end up doing a SELECT on the ODBC datasource for each shape it reads from the shapefile. Something like "selct * from city_info where id = ". So make sure you index your secondary table on relation key or performance will completely suck. As it is, this will not exactly be a high performance operation. Useful info: http://ogr.maptools.org/ogr_sql.html http://ogr.maptools.org/drv_odbc.html 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 rsalas at VOXIVA.NET Fri Nov 12 06:30:17 2004 From: rsalas at VOXIVA.NET (Renato Salas) Date: Fri, 12 Nov 2004 09:30:17 -0500 Subject: MapServer Tutorial In-Reply-To: <13598.212.238.227.182.1100258069.squirrel@webmail.xs4all.nl> Message-ID: Someone should write a book on this. It would be bestseller Renato F. Salas -----Mensaje original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]En nombre de Bart van den Eijnden Enviado el: Friday, November 12, 2004 6:14 AM Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: Re: [UMN_MAPSERVER-USERS] MapServer Tutorial Hi, I would recommend having a look at the proceedings of the MUM2 (Mapserver User Meeting), which was held June 2004 in Ottawa. This has a lot of workshop material for Mapserver as well as PostGIS. See: http://www.omsug.ca/osgis2004/proceedings.html Best regards, Bart > Hello All, > > Does anybody have a good tutorial about mapserver? I'm new to > mapserver and I need to buid a server using mapserver, postgresql, > postgis and gis. > > Thaks, > > -- > Raphael da Silva Teixeira > From Victor.Sotskov at EC.GC.CA Fri Nov 12 06:38:24 2004 From: Victor.Sotskov at EC.GC.CA (Victor Sotskov) Date: Fri, 12 Nov 2004 08:38:24 -0600 Subject: WMS server hyperlinks in Virtual Data File Message-ID: Here are some tips how to create hyperlinks in WMS GetFeatureInfo output independent of WMS client. If WMS server supports GetFeatureInfo operation then it is possible to create HTML hyperlinks with ... part of Virtual Data File (VDF). This should work for any WMS client compliant to OGC/CGDI specifications. WMS client has to be equipped with GetFeatureInfo request capabilities. The solution includes usage of concatenation and escape characters technique in SQL string between tags .... Concatenating operator for Oracle and PostgreSQL - "||", for SQL Server 2000 ? "+". Escape characters for producing HTML anchors in VDF (xml based): ?? ?>? ?&? ?&? ? ? ? ?"? Example of SQL string in VDF: SELECT '<a href="http://www.google.com">' || TableName.FieldName || '<\a>' Hyper_Linked_FieldName_Alias FROM TableName This will produce the following html code in WMS GetFeatureInfo output for the value "FieldValue" of the field "FieldName" in the table "TableName": FieldValue<\a> When displayed in a web browser as HTML output we would see only the FieldValue as an hyperlink. If a FieldValue is null then it does not make sense to create a hyperlink for this particular data. In this case SQL string has to include condition for hyperlink: SELECT CASE WHEN TableName.FieldName IS NULL then NULL ELSE '<a href="http://www.google.com">' || TableName.FieldName || '<\a>' END Hyper_Linked_FieldName_Alias FROM TableName Described syntax of SQL string in VDF (WMS server) would enable any WMS client display data as hyperlink through GetFeatureInfo request. From ed at TOPOZONE.COM Fri Nov 12 07:19:49 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 12 Nov 2004 10:19:49 -0500 Subject: question on projections Message-ID: FX - I would first check that you are using MapServer with PROJ support for reprojection. The "mapserv -v" command should tell you - you want to see SUPPORTS=PROJ in the output. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of fx gamoy Sent: Friday, November 12, 2004 2:35 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] question on projections Hello Franck, In the same idea, i ve got a set of data in WGS84. I use those datas on a gps track application. Every layers (data and gps data) are processed in latlong WGS84 and everything works fine. The only issue is that the map seems to be a little flattened. So i would like to output it in UTM something. I am working in whole Europe. I ve made many try using the projection parameter in the map section PROJECTION "init=epsg:xxxx" END but nothing occur... Any help will be appreciated... thanks fx ----- Original Message ----- From: "Frank Warmerdam" To: Sent: Thursday, November 11, 2004 11:26 PM Subject: Re: [UMN_MAPSERVER-USERS] question on projections > Chris wrote: > > Hi everyone, > > > > I'm wondering how I can change from one projection to the other one > > the fly, > > depending on the area of the map I'm in. > > > > For example, if I'm using UTM projections, and I pan from one UTM > > zone to > > ther other, how can I switch my output projection let's say from UTM > > 16 to > > UTM 17. It looks like I can only define one output projection in a > > map file. > > Chris, > > This would be tricky. You would likely need to have a bunch of > mapscript magic to control something like this. In "normal" use of > MapServer, the URL will have the requested region to display in the > URL but the region is in the coordinates of the map. So you would > have to do a whole bunch of preprocessing magic in a mapscript script > to recognise that a request has wandered from one zone into another > and transform the requested BBOX as well as overriding the mapObj coordinate system. > > I personally would encourage you to select a single coordinate system > appropriate for the whole region you want to work on if at all possible. > It would save you alot of headaches. > > Best regards, > -- > ---------------------------------------+------------------------------ > ---------------------------------------+---- ---- > 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 sirronj at PACBELL.NET Fri Nov 12 07:20:53 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Fri, 12 Nov 2004 07:20:53 -0800 Subject: please - please - can anybody shed any light on what I am doing wrong? In-Reply-To: <41941BAA.3050000@swoodbridge.com> Message-ID: Stephen and group, What I want to learn is just how to associate my data with a map using mapserver. My experience has been with ArcIMS but my inclination is more on the open source route. To learn how to do it with ArcIMS I started with the most simplest model and went on from there. Here is the scenario: I have a Mysql database with a table of users categorized by working conditions - 1st grade teachers, 2nd grade teachers etc... in addition there is other demographic information. To begin with I would like to extract the data to a dbf file and populate my map with symbols of the location of these different types of teachers and their locations. I know that there ways to plug mapserver into Mysql via perl mapscript etc... but I am not near that point yet. Maybe my use of join was inappropriate in this context. I am seeking a simple model of my scenario so as to get into this - I don't want anybody to write it for me because I am seeking the adventure of doing it myself. I have read through the mapfile documents but have not found a tutorial ( well I found one - but it just discusses how to put a map up - which did not easily reveal the need for class in layer ) that gives this type of scenario. I would write one if could get going on my scenario. I hope this makes my needs a little clearer - and again to all Thank You! #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Thursday, November 11, 2004 6:11 PM To: Joseph Norris; MapServer List Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any light on what I am doing wrong? Joseph, Can you explain more about what you want to achieve using a join? or why you think you need to use a join? Typically joins are only supported on QUERY with a template if you are using shapefiles. If you are looking to use a join for say classification of polygons for thematic mapping you should probably look into moving all your data into PostGIS as it it not supported for shapefiles (much to my consternation and occasional prodding otherwise). -Steve Joseph Norris wrote: > Stephen, > > One more question. Can you recommend a good how-to to begin learning how to > join tiger dbf data with tiger shape files? Something very basic that I can > use as a start? Thanks. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Stephen Woodbridge > Sent: Thursday, November 11, 2004 1:48 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any > light on what I am doing wrong? > > AHh! I see a (the?) problem, you haven't declared a CLASS ... END block > to tell mapserver HOW to reder you file. Try: > > LAYER > ... > CLASS > COLOR 0 0 0 > END > END > > -Steve > > Joseph Norris wrote: > > >>Here is what I got from a shpdump: >> >>Shapefile Type: Polygon # of Shapes: 58 >> >>File Bounds: ( 5895561.577, -191512.795,0,0) >> to ( 8945856.680, 3225756.404,0,0) >> >> >>so I changed my extent to: >> >>EXTENT 5895561.577 -191512.795 8945856.680 3225756.404 >> >> IMAGETYPE PNG >> SIZE 600 600 >> SHAPEPATH "data" >> IMAGECOLOR 255 255 255 >> >>I still get nothing in my browser. >> >> >>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > > chr > > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > >>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On >>Behalf Of Ethan Alpert >>Sent: Thursday, November 11, 2004 1:09 PM >>To: MAPSERVER-USERS at lists.umn.edu >>Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed any >>light on what I am doing wrong? >> >>Also do a shpdump and get the bounds in the projection of the shapefile. >> >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >>Behalf Of Stephen Woodbridge >>Sent: Thursday, November 11, 2004 1:08 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed >>any light on what I am doing wrong? >> >> >>Joseph, >> >>I'm not sure your extents are correct: >> >>EXTENTS xmin ymin xmax ymax >> >>it looks like you have xmin xmax ymin ymax. What to you get for an image >>when you use shp2img utility? >> >>-Steve >> >> >>Joseph Norris wrote: >> >> >> >>>I made a change - checked the permissions: >>> >>>Everything set to apache and with read/write/exec for apache >>> >>>This is the same as the >>> >>>http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ >>>htdocs >>>/mco.communityservers.com/htdocs/tests/test.map&mode=map >>> >>> >>> >>>This new url - simplified >>> >>>http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ >>>htdocs >>>/mco.communityservers.com/htdocs/maps/cal.map&mode=map >>> >>>The two directory permission structures are the exact same. >>> >>> >>> >>>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print >>>@c=map chr >>> >> >>$_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, >>14,- >> >> >>>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >>> >>>-----Original Message----- >>>From: UMN MapServer Users List >>>[mailto:MAPSERVER-USERS at lists.umn.edu]On >>>Behalf Of Stephen Woodbridge >>>Sent: Thursday, November 11, 2004 11:54 AM >>>To: MAPSERVER-USERS at lists.umn.edu >>>Subject: Re: [UMN_MAPSERVER-USERS] please - please - can anybody shed >> >>any >> >> >>>light on what I am doing wrong? >>> >>>When I hit the URL you listed it says: >>> >>>msLoadMap(): Unable to access file. >>>(/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/cal/cal >>>.map) >>> >>>So I would check your path and your permissions >>> >>>-Steve >>> >>>Stephen Woodbridge wrote: >>> >>> >>> >>> >>>>Joseph, >>>> >>>>You DATAPATH is relative to your mapfile unless you specify it as an >>>>absolute path. I would start there. Also if you can load Netscape then >> >> >>>>you can right click the broken image icon and select view image and it >> >> >>>>will display any error messages that mapserver coughs up. >>>> >>>>-Steve >>>> >>>>Joseph Norris wrote: >>>> >>>> >>>> >>>> >>>>>Group, >>>>> >>>>>Here I am again: >>>>> >>>>>I have this link: >>>>> >>>>> >>> >>>http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ >>>htdocs >>> >>> >>> >>>>>/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map >>>>> >>>>>and this map file >>>>> >>>>>MAP >>>>>NAME TESTMAP >>>>>STATUS ON >>>>>EXTENT -1375383.89811082 -7278971.22201064 16216802.1381132 >>>>>10313214.8142134 >>>>>IMAGETYPE PNG >>>>>SIZE 600 600 >>>>>SHAPEPATH "data" >>>>>IMAGECOLOR 255 255 255 >>>>> >>>>>WEB >>>>> METADATA >>>>> "key1" "value1" >>>>> "key2" "value2" >>>>> "key3" "value3" >>>>> "key4" "value4" >>>>> END >>>>>END >>>>> >>>>>LAYER >>>>> NAME "calif_co_st" >>>>> TYPE POLYGON >>>>> DATA "calif_co_st" >>>>> STATUS DEFAULT >>>>>END >>>>> >>>>>END >>>>> >>>>>I still getting nothing but this on my map ( right-click properties >>>>>): >>>>> >>>>>The image >>>>> >>> >>>"http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache >>>/htdoc >>> >>> >>> >>>>>s/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot >>>>>be displayed, because it contains errors. >>>>> >>>>>And yet - when I move the tests directory into my http tree like this >>>>> >>>>> >>> >>>http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/ >>>htdocs >>> >>> >>> >>>>>/mco.communityservers.com/htdocs/tests/test.map&mode=map >>>>> >>>>>I get what the mapserver tests are supposed to give - is there >>>>>something about my shape files I should know about? >>>>> >>>>>Please - anything at all would be helpful. >>>>> >>>> > > > From mandhare at STATE.PA.US Fri Nov 12 07:42:33 2004 From: mandhare at STATE.PA.US (Manjiri Andhare) Date: Fri, 12 Nov 2004 09:42:33 -0600 Subject: CGI Query Mode Variables Message-ID: Hello List, I wanted to display the data which is in the shape files about the layers. After the research, I have been up to the point that i can get the data about one layer using the mode=QUERY. I went throught the CGI Reference Documentation. But for me the explanation about mode variables..query, nquery itemquery etc. wasn't enough. So what i want to ask is.. If I want to display information about any layer(I'll make the user to select a radio button for the layer about which he wants to see the information), which mode shall i use? And what additional code do i need to write in map file and in the html templet? Now while usig query mode, I have wrote the code in map file for 3 layer with TYPE=QUERY. But I don't know how to write the code to diaply the information in the resuling html template(tabular form)for any selection of the layer. Right now, I have wrote the code in the html file to display information about only one layer, but depending upon user selection of the layer, this information should change. How to make this change? Or do i need to write seperate template for every layer and call that template depending upon user selection? If yes, can someone provide informaiton about how to do that? Thank you all, Manjiri Andhare GIS Coordinator, PA Fish & Boat Commission, U.S.A. From rstammba at HSR.CH Fri Nov 12 07:29:03 2004 From: rstammba at HSR.CH (Roman Stammbach) Date: Fri, 12 Nov 2004 16:29:03 +0100 Subject: [get_layers] template parameter Message-ID: Hy all I am new on this list, so at first "Hello World". I have a real problem with mapserver 4.2.4. We use the [get_layers] variable in our html template. Version 4.2.0 used to fill it with a string like: "&layer=lakespy2&layer=Lakes+and+Rivers" The more recent version 4.2.4 we're using now returns "lakespy2 Lakes and Rivers" This notation makes it obviously harder to parse and to create an new request sting using javascript. Why has this behaviour been changed and waht is your solution to this problem? maptemplate.c on line 2125 means: outstr = gsub(outstr, "[get_layers]", repstr); // obsolete Is there any reason to don't use this feature anymore? Why does it work different now, ans is there an other Feature? Many thanks for your Help and greetings from Switzerland Roman From joe at OTSYS.COM Fri Nov 12 11:45:07 2004 From: joe at OTSYS.COM (Joseph Bussell) Date: Fri, 12 Nov 2004 11:45:07 -0800 Subject: confusion about polygon definitions Message-ID: How does one differentiate the polygon: P1: ( 10, 179 ) ( -10, 179 ) ( -10, -179 ) ( 10, -179 ), interior point at ( 1, 179.5 ) from P2: ( 10, 179 ) ( -10, 179 ) ( -10, -179 ) ( 10, -179 ), interior point at ( 1, 100 ) P1 is a small square at the international dateline. P2 is the large strip that wraps around the globe. My goal is to display both as unique. I have several polygons which straddle the dateline and are not filling correctly. I note however that the Asia polygon in my world shapefile crosses the dateline just fine. Siberia appears correctly divided as one would expect. Is there a point order such as a couter-clockwise point addition? Cordially, Joe Bussell On Time Systems From woodbri at SWOODBRIDGE.COM Fri Nov 12 12:08:28 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 12 Nov 2004 15:08:28 -0500 Subject: confusion about polygon definitions In-Reply-To: <419512C3.7060600@otsys.com> Message-ID: Joe, mapserver assumes an XY coordinate system there for there is only ONE polygon the mapserver will understand and the is P2 below. P! is really two separate polygons and should be split into them respectively. You can define a polygon that crosses the international date line by add/sub 180 to the values beyond the dateline, but these will not get wrapped to the opposite side of the image. In summary mapserver does not understand the topology of a sphere on the infinite expanse of X and Y cartesian coordinates. -Steve W. Joseph Bussell wrote: > How does one differentiate the polygon: > > P1: ( 10, 179 ) ( -10, 179 ) ( -10, -179 ) ( 10, -179 ), > interior point at ( 1, 179.5 ) > > from > > P2: ( 10, 179 ) ( -10, 179 ) ( -10, -179 ) ( 10, -179 ), > interior point at ( 1, 100 ) > > P1 is a small square at the international dateline. > P2 is the large strip that wraps around the globe. > > My goal is to display both as unique. I have several polygons which > straddle the dateline and are not filling correctly. I note however > that the Asia polygon in my world shapefile crosses the dateline just > fine. Siberia appears correctly divided as one would expect. Is there > a point order such as a couter-clockwise point addition? > > Cordially, > > Joe Bussell > On Time Systems > From warmerdam at POBOX.COM Fri Nov 12 14:04:27 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 12 Nov 2004 17:04:27 -0500 Subject: confusion about polygon definitions In-Reply-To: <419512C3.7060600@otsys.com> Message-ID: Joseph Bussell wrote: > How does one differentiate the polygon: > > P1: ( 10, 179 ) ( -10, 179 ) ( -10, -179 ) ( 10, -179 ), > interior point at ( 1, 179.5 ) > > from > > P2: ( 10, 179 ) ( -10, 179 ) ( -10, -179 ) ( 10, -179 ), > interior point at ( 1, 100 ) > > P1 is a small square at the international dateline. > P2 is the large strip that wraps around the globe. > > My goal is to display both as unique. I have several polygons which > straddle the dateline and are not filling correctly. I note however > that the Asia polygon in my world shapefile crosses the dateline just > fine. Siberia appears correctly divided as one would expect. Is there > a point order such as a couter-clockwise point addition? Joe, A variety of factors may come into play with mapping across the anti-meridian. I would encourage you to review, and update the Wiki WorldMappingIssues topic as you learn more: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?WorldMappingIssues There has been a bunch of work to try and handle polygons that cross the anti-meridian gracefully. I wrote the following descriptive text in mapproject.c about it when I worked on this area. It may clear up some points for you. /* Frank Warmerdam, Nov, 2001. See Also: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=15 Proposal: Modify msProjectLine() so that it "dateline wraps" objects when necessary in order to preserve their shape when reprojecting to lat/long. This will be accomplished by: 1) As each vertex is reprojected, compare the X distance between that vertex and the previous vertex. If it is less than 180 then proceed to the next vertex without any special logic, otherwise: 2) Reproject the center point of the line segment from the last vertex to the current vertex into lat/long. Does it's longitude lie between the longitudes of the start and end point. If yes, return to step 1) for the next vertex ... everything is fine. 3) We have determined that this line segment is suffering from 360 degree wrap to keep in the -180 to +180 range. Now add or subtract 360 degrees as determined from the original sign of the distances. This is similar to the code there now (though disabled in CVS); however, it will ensure that big boxes will remain big, and not get dateline wrapped because of the extra test in step 2). However step 2 is invoked only very rarely so this process takes little more than the normal process. In fact, if we were sufficiently concerned about performance we could do a test on the shape MBR in lat/long space, and if the width is less than 180 we know we never need to even do test 1). What doesn't this resolve: This ensures that individual lines are kept in the proper shape when reprojected to geographic space. However, it does not: o Ensure that all rings of a polygon will get transformed to the same "side" of the world. Depending on starting points of the different rings it is entirely possible for one ring to end up in the -180 area and another ring from the same polygon to end up in the +180 area. We might possibly be able to achieve this though, by treating the multi-ring polygon as a whole and testing the first point of each additional ring against the last vertex of the previous ring (or any previous vertex for that matter). o It does not address the need to cut up lines and polygons into distinct chunks to preserve the correct semantics. Really a polygon that spaces the dateline in a -180 to 180 view should get split into two polygons. We haven't addressed that, though if it were to be addressed, it could be done as a followon and distinct step from what we are doing above. In fact this sort of improvement (split polygons based on dateline or view window) should be done for all lat/long shapes regardless of whether they are being reprojected from another projection. o It does not address issues related to viewing rectangles that go outside the -180 to 180 longitude range. For instance, it is entirely reasonable to want a 160 to 200 longitude view to see an area on the dateline clearly. Currently shapes in the -180 to -160 range which should be displayed in the 180 to 200 portion of that view will not be because there is no recogition that they belong there. */ Best regards, -- ---------------------------------------+-------------------------------------- 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 nunoragil at YAHOO.COM Fri Nov 12 15:30:30 2004 From: nunoragil at YAHOO.COM (Nuno GIL) Date: Fri, 12 Nov 2004 15:30:30 -0800 Subject: 8-bit Geotiff ColorInterp=Gray and WCS questions Message-ID: Hi listers, I'm trying to retrieve a 8-bit geotiff from the mapserver wcs. I've defined, in the map file, the geotiff IMAGEMODE as PC256, so I get a "paletted" tiff from the wcs. Is there any other IMAGEMODE that I can define in order to get a simple gray image without a colour palette? Width GDALINFO one displays ColorInterp=Gray while the other displays ColorInterp=Palette with the 256 colour palette. I would also like to ask if there is any way of limiting the size of the user defined bbox on the wcs so the user can only D/L a limited portion of the data at each time in order not to mess the network. In the mosaic we are serving there are some holes without image. Can the user get a message back if those areas are selected? Cheers, Nuno __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com From covariance at SHAW.CA Fri Nov 12 20:54:59 2004 From: covariance at SHAW.CA (Bob Bruce) Date: Fri, 12 Nov 2004 22:54:59 -0600 Subject: Are QUERYMAPs Supposed to Work With TileMaps? Message-ID: When I was working through a test map that I set up with some Manitoba data I encountered a problem trying to get queries displaying a map with a selected property parcel highlighted. I was able to get the property parcel attributes displayed nicely but the map image would not work properly (all I got was a little section of the overall map centered on the last area without the selected land parcel shown or highlighted) I racked my brain, triple-checked my map and template files comparing them with the Itasca demo (which I got working fine) trying to find out what was the difference between them. Finally I realized that the Itasca demo was using single data files for the layers while my test map was using tilemaps for each of the layers. I then tried changing one of the layers to a single data file and querying that layer and PRESTO the correct querymap appeared with my selected land parcel highlighted. Has anyone ever got querymaps working with tilemaps and are they supposed to work with them? thanks in advance for your help. Bob Bruce Winnipeg, Manitoba From woodbri at SWOODBRIDGE.COM Fri Nov 12 21:10:46 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 13 Nov 2004 00:10:46 -0500 Subject: Are QUERYMAPs Supposed to Work With TileMaps? In-Reply-To: Message-ID: Bob, You might want to mention what version of mapserver you are running. -Steve W. Bob Bruce wrote: > When I was working through a test map that I set up with some Manitoba data > I encountered a problem trying to get queries displaying a map with a > selected property parcel highlighted. I was able to get the property parcel > attributes displayed nicely but the map image would not work properly (all I > got was a little section of the overall map centered on the last area > without the selected land parcel shown or highlighted) > > I racked my brain, triple-checked my map and template files comparing them > with the Itasca demo (which I got working fine) trying to find out what was > the difference between them. Finally I realized that the Itasca demo was > using single data files for the layers while my test map was using tilemaps > for each of the layers. > > I then tried changing one of the layers to a single data file and querying > that layer and PRESTO the correct querymap appeared with my selected land > parcel highlighted. > > Has anyone ever got querymaps working with tilemaps and are they supposed to > work with them? > > thanks in advance for your help. > > Bob Bruce > Winnipeg, Manitoba > From covariance at SHAW.CA Fri Nov 12 21:26:39 2004 From: covariance at SHAW.CA (Bob Bruce) Date: Fri, 12 Nov 2004 23:26:39 -0600 Subject: Are QUERYMAPs Supposed to Work With TileMaps? Message-ID: Yes, sorry about that, here's what I get: C:\Apache\htdocs\cgi-bin>mapserv.exe -v MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS =PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLI ENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Bob Bruce On Sat, 13 Nov 2004 00:10:46 -0500, Stephen Woodbridge wrote: >Bob, > >You might want to mention what version of mapserver you are running. > >-Steve W. > >Bob Bruce wrote: > >> When I was working through a test map that I set up with some Manitoba data >> I encountered a problem trying to get queries displaying a map with a >> selected property parcel highlighted. I was able to get the property parcel >> attributes displayed nicely but the map image would not work properly (all I >> got was a little section of the overall map centered on the last area >> without the selected land parcel shown or highlighted) >> >> I racked my brain, triple-checked my map and template files comparing them >> with the Itasca demo (which I got working fine) trying to find out what was >> the difference between them. Finally I realized that the Itasca demo was >> using single data files for the layers while my test map was using tilemaps >> for each of the layers. >> >> I then tried changing one of the layers to a single data file and querying >> that layer and PRESTO the correct querymap appeared with my selected land >> parcel highlighted. >> >> Has anyone ever got querymaps working with tilemaps and are they supposed to >> work with them? >> >> thanks in advance for your help. >> >> Bob Bruce >> Winnipeg, Manitoba From bartvde at XS4ALL.NL Fri Nov 12 23:12:28 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 13 Nov 2004 08:12:28 +0100 Subject: construction of cartographic symbols Message-ID: Hi list, I just found this very neat Mapserver cartography "manual", unfortunately it is in German (but luckily I can read and speak German): http://www.mapmedia.de/dokumente/umn_signaturen_howto/ Is there an English version available? If not I would be interested in helping with the translation. This could be of so much help to a lot of users in my opinion. Best regards, Bart -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From mj at SCI.FI Sat Nov 13 06:45:34 2004 From: mj at SCI.FI (Mike Jackson) Date: Sat, 13 Nov 2004 16:45:34 +0200 Subject: expanding mapserver Message-ID: Hi, If any of the project leaders can read german, I suggest that you take a look at the following document: http://www.mapmedia.de/fileadmin/user_upload/dokumente/umn_signaturen_howto/DiskussionsPaper-UMNGraphikKernel.pdf Very roughly: Discussion paper for the advancement of the UMN MapServer in the area of cartographic organization possibilities. Peter Freimuth made a code review, and he wrote that there are some problems at least in the GD codebase which need fixing (redundancy, variables, etc), that there is a big interest from german users for more advanced features such as SVG rendering and OpenGL (probably 3-D rendering), but the problem is obtaining financing and also finding competent people to do the work. Finally, he says that they would possibly want to sponsor a programmer such as Steve Lime or Tomas Krecmer if their company can first get some contracts... -- mike From woodbri at SWOODBRIDGE.COM Sat Nov 13 05:10:24 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 13 Nov 2004 08:10:24 -0500 Subject: construction of cartographic symbols In-Reply-To: Message-ID: Bart, THis is a very nicely done page. Can you get permission from the owner to let us translate this and use it on the Mapserver site? Here is a good start on the translation: http://translate.google.com/translate?u=http%3A%2F%2Fwww.mapmedia.de%2Fdokumente%2Fumn_signaturen_howto%2F&langpair=de%7Cen&hl=en&newwindow=1&safe=off&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools Google unfortunately does only a limited amount of text, so you would need to break the page into smaller chunks if you want to avoid a lot of typing instead of mostly editing. -Steve W. Bart van den Eijnden wrote: > Hi list, > > I just found this very neat Mapserver cartography "manual", unfortunately > it is in German (but luckily I can read and speak German): > > http://www.mapmedia.de/dokumente/umn_signaturen_howto/ > > Is there an English version available? If not I would be interested in > helping with the translation. This could be of so much help to a lot of > users in my opinion. > > Best regards, > Bart > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > From claudio.trevisani at PMMG.MG.GOV.BR Sat Nov 13 05:03:14 2004 From: claudio.trevisani at PMMG.MG.GOV.BR (claudio cesar trevisani) Date: Sat, 13 Nov 2004 11:03:14 -0200 Subject: Postgresql - create a thematic grid map Message-ID: Hi Listers, In Mapinfo, the grid mapping displays data as continuous color gradations across the map. This type of thematic is produced by an interpolation of point data from the source table. A grid file is generated from the data interpolation and displayed as a raster image in a Map window. I need to create a grid mapping like mapinfo, using mapserver, phpmapscript and postgresql (+ postgis and geos). My source table of points is stored in postgresql. Is it possible??? Thanks, Claudio C. Trevisani ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ From superbla3000 at GMX.NET Sat Nov 13 06:00:04 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Sat, 13 Nov 2004 15:00:04 +0100 Subject: install on suse 9.1 Message-ID: hello, now the moment has come, I really have to compile mapserver on suse 9.1..... Is there an easy way? How should the beginner start? Joerg From paul.oduro at SPPS.ORG Sat Nov 13 07:10:18 2004 From: paul.oduro at SPPS.ORG (Paul Smith) Date: Sat, 13 Nov 2004 09:10:18 -0600 Subject: shp2mysql problems Message-ID: On Fri, 29 Oct 2004 11:14:29 -0500, Paul Smith wrote: >Hello All > >When I run >./shp2mysql /path/to/shpfile/shpfilename (without the .shp extension) on a >SUSE box, I get > >"Odd number of elements in hash assignment >at /usr/lib/perl5/site_perl/5.8.3/Geo/ShapeFile/Shape.pm line 30". > >The offending line 30 in shape.pm reads > my %args = @_; >Two empty tables are created. > >I edited shp2mysql as follows(as per some posting I read from Matt, Lowell >etc) > >use Geo::ShapeFile::Shape qw/:all/; #line 9 >$shape = new Geo::ShapeFile::Shape $ARGV[0]; > >Any help would be greatly appreciated > >Paul > > >System info: > >SuSE 9 >Mapserver 4.2.5 >Perl 5.8.3 >Shapelib 1.2.10 >GeoShapeFile 2.50 >MySQL 4.0.18 I forgot to run make install on Geo-shapelib. I am able to export lakespy2.shp (from the Itasca demo) into a mySQL database. From paul.oduro at SPPS.ORG Sat Nov 13 07:15:24 2004 From: paul.oduro at SPPS.ORG (Paul Smith) Date: Sat, 13 Nov 2004 09:15:24 -0600 Subject: install on suse 9.1 Message-ID: On Sat, 13 Nov 2004 15:00:04 +0100, joerg pfeiffer wrote: >hello, > >now the moment has come, I really have to compile mapserver on suse 9.1..... > >Is there an easy way? How should the beginner start? > > Joerg I would start with this link: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat9AndMapserver40 I installed on SLES9 and everything is working for me. psmith From jmckenna at DMSOLUTIONS.CA Sat Nov 13 08:50:37 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Sat, 13 Nov 2004 11:50:37 -0500 Subject: construction of cartographic symbols Message-ID: Wow Bart, this is a very cool doc. I could also help you with the docbook, formatting side. We really need this translated to english. jeff On Nov 13, Bart van den Eijnden wrote: > > Hi list, > > I just found this very neat Mapserver cartography "manual", unfortunately > it is in German (but luckily I can read and speak German): > > http://www.mapmedia.de/dokumente/umn_signaturen_howto/ > > Is there an English version available? If not I would be interested in > helping with the translation. This could be of so much help to a lot of > users in my opinion. > > Best regards, > Bart > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > From warmerdam at POBOX.COM Sat Nov 13 09:42:38 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 13 Nov 2004 12:42:38 -0500 Subject: 8-bit Geotiff ColorInterp=Gray and WCS questions In-Reply-To: <20041112233030.65661.qmail@web53009.mail.yahoo.com> Message-ID: Nuno GIL wrote: > Hi listers, > > I'm trying to retrieve a 8-bit geotiff from the > mapserver wcs. > I've defined, in the map file, the geotiff IMAGEMODE > as PC256, so I get a "paletted" tiff from the wcs. > Is there any other IMAGEMODE that I can define in > order to get a simple gray image without a colour > palette? Nuno, I think IMAGEMODE BYTE is what you would want. > Width GDALINFO one displays ColorInterp=Gray while the > other displays ColorInterp=Palette with the 256 colour > palette. > > I would also like to ask if there is any way of > limiting the size of the user defined bbox on the wcs > so the user can only D/L a limited portion of the data > at each time in order not to mess the network. There is some sort of maximum image request size parameter you can put in the mapfile for WMS. I am not sure if it applies to WCS or not. Hopefully Steve will chip in on this topic. > In the mosaic we are serving there are some holes > without image. Can the user get a message back if > those areas are selected? My understanding is that the WCS code should support normal "nodata" handling, and that areas for which there is no data should be set to the IMAGECOLOR value (or perhaps just the red component). This area is pretty fuzzy and I wouldn't be surprised if we need to do some work to improve it. Best regards, -- ---------------------------------------+-------------------------------------- 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 39507 at MAIL.MUNI.CZ Sat Nov 13 04:23:58 2004 From: 39507 at MAIL.MUNI.CZ (=?iso-8859-2?Q?Michal_Krupi=E8ka?=) Date: Sat, 13 Nov 2004 13:23:58 +0100 Subject: Repeating lables Message-ID: Hi all, I am developing a web map application which contains water pipes system. This is represented by one layer (type = polyline). Is there any posibility to force mapserver to add label to each line beetween each 2 points of polyline, or at least repeat label each 50 pixels. This is beacuse water pipes are too long and one label on one line is not enough. Thank you all for your time Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy_canfield at HOTMAIL.COM Sat Nov 13 15:17:54 2004 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Sat, 13 Nov 2004 15:17:54 -0800 Subject: CGI Query Mode Variables Message-ID: You need to make a template for each layer. When you query the it will use the template you specify for that layer. Say you do a query like: mode=QUERY&layer=AnyGivenLayer Mapserver is going to look at the map file definition of "AnyGivenLayer" and use the template specified in the layer definition for the display of the returned query information. You can use the same template for multiple layers if they have similar attributes. For instance I have about twent eqpuitment layers in one of my maps but all of them have the same five attribute fields so in the map file I specify the same template for each of those layers. When I use Mapserver in CGI mode I generally have about 75% of the amount of templates as I do layers so for a map of 100 layers I have 75 specific templates. Does this help? >From: Manjiri Andhare >Reply-To: Manjiri Andhare >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] CGI Query Mode Variables >Date: Fri, 12 Nov 2004 09:42:33 -0600 > >Hello List, >I wanted to display the data which is in the shape files about the layers. >After the research, I have been up to the point that i can get the data >about one layer using the mode=QUERY. >I went throught the CGI Reference Documentation. But for me the explanation >about mode variables..query, nquery itemquery etc. wasn't enough. >So what i want to ask is.. >If I want to display information about any layer(I'll make the user to >select a radio button for the layer about which he wants to see the >information), which mode shall i use? And what additional code do i need to >write in map file and in the html templet? >Now while usig query mode, I have wrote the code in map file for 3 layer >with TYPE=QUERY. But I don't know how to write the code to diaply the >information in the resuling html template(tabular form)for any selection of >the layer. Right now, I have wrote the code in the html file to display >information about only one layer, but depending upon user selection of the >layer, this information should change. How to make this change? Or do i >need to write seperate template for every layer and call that template >depending upon user selection? If yes, can someone provide informaiton >about how to do that? >Thank you all, >Manjiri Andhare >GIS Coordinator, >PA Fish & Boat Commission, >U.S.A. From romoloman at HOTMAIL.COM Sat Nov 13 15:29:40 2004 From: romoloman at HOTMAIL.COM (Romolo Manfredini) Date: Sun, 14 Nov 2004 00:29:40 +0100 Subject: install on suse 9.1 Message-ID: On request, I have RPMS and SRPMS available for Suse 9.1, I have only some problem (IP and licence related) distributing the PDFlib RPM or SRPMS but i can give the spec file of it. I have the rpms for the following software: PDFlib-Lite-6.0.0p1 freetype2-2.1.7 gd-2.0.33 gdal-1.2.4 geos-2.0.1 mapserver-4.2.5 (includes a php-4.3.9 cgi compiled for mapserver with pgsql and mysql support and externel gd support and a little patch related to reference maps) ming-0.2a postgis-0.9.0 postgresql-7.4.6 proj-4.4.9 shapelib-1.2.10 If someone can provide a mirror I will be very happy to share them all. Best regards, Romolo Manfredini From pcreso at PCRESO.COM Sat Nov 13 15:58:54 2004 From: pcreso at PCRESO.COM (Brent Wood) Date: Sat, 13 Nov 2004 15:58:54 -0800 Subject: install on suse 9.1 In-Reply-To: Message-ID: --- Romolo Manfredini wrote: > On request, I have RPMS and SRPMS available for Suse 9.1, I have only some > problem (IP and licence related) distributing the PDFlib RPM or SRPMS but i > can give the spec file of it. > I have the rpms for the following software: > > PDFlib-Lite-6.0.0p1 > freetype2-2.1.7 > gd-2.0.33 > gdal-1.2.4 > geos-2.0.1 > mapserver-4.2.5 (includes a php-4.3.9 cgi compiled for mapserver with pgsql > and mysql support and externel gd support and a little patch related to > reference maps) > ming-0.2a > postgis-0.9.0 > postgresql-7.4.6 > proj-4.4.9 > shapelib-1.2.10 > > If someone can provide a mirror I will be very happy to share them all. I don't know if you have seen the LinGis project, but it seems you are doing very similar things. Perhaps you could contact Jens et al & work together on this? http://www.localis.org/tiki-index.php?page=+LinGis Brent Wood From dylan at IICI.NO-IP.ORG Sat Nov 13 16:40:30 2004 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Sat, 13 Nov 2004 16:40:30 -0800 Subject: display polygons with transparent fill color Message-ID: greetings! I have some polygon data that i would like to overlay on top of some DOQQ data. if i define the polygon data as a LINE, i can see the outlines of the polygons on top of the DOQQ... However, when i label the polygons, the labels are applied on top of the outlines, and not in the center of the polygons. this makes since, as i have defined the polygons as lines... my question- is there anyway to label a line as if it were a polygon (i.e. at its center)? or, better yet - can i define polygon data with an invisible fillcolor, so that only its outlines are displayed, and labels are placed in the center of the features? many thanks, -- Dylan Beaudette Soil Science Graduate Group University of California at Davis From sirronj at PACBELL.NET Sat Nov 13 17:42:11 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Sat, 13 Nov 2004 17:42:11 -0800 Subject: question about perl mapscript interface Message-ID: Group, I have my first test scripts working producing a map from a mapfile using the mapObj. My question is: How do a pull in the shape that is in the map file and add a polygon point to the shape at a give location on the map. I have played with addPoint, shapeObj etc.. but I see no change in my map. Here is what I have so far: my $gif_file = 'tttt.gif'; my $mapfile_loc = "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher"; my $mapfile_data = "$mapfile_loc/tdata"; my $mapfile = "$mapfile_loc/cal.map"; my $map = new mapscript::mapObj($mapfile); my $image = $map->draw(); my $file_location = '/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/tmp'; unlink "$file_location/$gif_file"; mapscript::msSaveImage($map, $image, "$file_location/$gif_file"); thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From sirronj at PACBELL.NET Sat Nov 13 17:44:56 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Sat, 13 Nov 2004 17:44:56 -0800 Subject: what are the parms on addPoint? Message-ID: I see this in the example: $point->{x} = 469137.0000; $point->{y} = 5271647.0000; $shapefile->addPoint($point); what are these numbers for x and y - pixels in the map? Or something else? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From sgillies at FRII.COM Sat Nov 13 18:06:02 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Sat, 13 Nov 2004 19:06:02 -0700 Subject: question about perl mapscript interface In-Reply-To: Message-ID: On Nov 13, 2004, at 6:42 PM, Joseph Norris wrote: > Group, > > I have my first test scripts working producing a map from a mapfile > using > the mapObj. My question is: > > How do a pull in the shape that is in the map file and add a polygon > point > to the shape at a give location on the map. > > I have played with addPoint, shapeObj etc.. but I see no change in my > map. > > > Here is what I have so far: > > my $gif_file = 'tttt.gif'; > my $mapfile_loc = > "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/ > teacher"; > my $mapfile_data = "$mapfile_loc/tdata"; > my $mapfile = "$mapfile_loc/cal.map"; > my $map = new mapscript::mapObj($mapfile); > my $image = $map->draw(); > > my $file_location = > '/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/tmp'; > > unlink "$file_location/$gif_file"; > mapscript::msSaveImage($map, $image, "$file_location/$gif_file"); > > > thanks. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3, > -1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > I see from the last line of your script that you are using an ancient version of mapserver? 3.5 or 3.6? You should really try out the newer versions available from the website. We developers would be very grateful if you would try the 4.4.0 beta version. The beta also contains some API documentation in mapserver/mapscript/doc/mapscript.txt. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From bartvde at XS4ALL.NL Sun Nov 14 01:53:02 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sun, 14 Nov 2004 10:53:02 +0100 Subject: display polygons with transparent fill color In-Reply-To: <200411131640.30009.dylan@iici.no-ip.org> Message-ID: Hi Dylan, maybe you can try the following solution: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0206/msg00189.html Don't know if it will still work though ... Best regards, Bart On Sat, 13 Nov 2004 16:40:30 -0800, Dylan Beaudette wrote: > greetings! > > I have some polygon data that i would like to overlay on top of some DOQQ > data. if i define the polygon data as a LINE, i can see the outlines of > the > polygons on top of the DOQQ... However, when i label the polygons, the > labels > are applied on top of the outlines, and not in the center of the > polygons. > this makes since, as i have defined the polygons as lines... > > my question- is there anyway to label a line as if it were a polygon > (i.e. at > its center)? > > or, better yet - can i define polygon data with an invisible fillcolor, > so > that only its outlines are displayed, and labels are placed in the > center of > the features? > > many thanks, > > -- > Dylan Beaudette > Soil Science Graduate Group > University of California at Davis > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From siki at AGT.BME.HU Sun Nov 14 05:10:21 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 14 Nov 2004 12:10:21 -0100 Subject: display polygons with transparent fill color {Scanned} {Scanned} In-Reply-To: <200411131640.30009.dylan@iici.no-ip.org> Message-ID: Hi, Define layer type POLYGON and give OUTLINECOLOR any color you want COLOR -1 -1 -1 in the class part. Color -1 -1 -1 means no fill color Labels will be places inside the polygon. If you would like to display labels at the centroid, add a new point layer using the polygon shape with the annotation, that case you get the labels at the centroid of the polygons. Bye Zoltan On Sat, 13 Nov 2004, Dylan Beaudette wrote: > greetings! > > I have some polygon data that i would like to overlay on top of some DOQQ > data. if i define the polygon data as a LINE, i can see the outlines of the > polygons on top of the DOQQ... However, when i label the polygons, the labels > are applied on top of the outlines, and not in the center of the polygons. > this makes since, as i have defined the polygons as lines... > > my question- is there anyway to label a line as if it were a polygon (i.e. at > its center)? > > or, better yet - can i define polygon data with an invisible fillcolor, so > that only its outlines are displayed, and labels are placed in the center of > the features? > > many thanks, > > -- > Dylan Beaudette > Soil Science Graduate Group > University of California at Davis > From superbla3000 at GMX.NET Sun Nov 14 06:03:31 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Sun, 14 Nov 2004 15:03:31 +0100 Subject: install on suse 9.1 In-Reply-To: Message-ID: fantastic, this is a really big help for me! I just have a new problem with my suse, but after hopefully fixing it, I would like to contact you for the rpms... best regards J?rg Romolo Manfredini wrote: > On request, I have RPMS and SRPMS available for Suse 9.1, I have only some > problem (IP and licence related) distributing the PDFlib RPM or SRPMS but i > can give the spec file of it. > I have the rpms for the following software: > > PDFlib-Lite-6.0.0p1 > freetype2-2.1.7 > gd-2.0.33 > gdal-1.2.4 > geos-2.0.1 > mapserver-4.2.5 (includes a php-4.3.9 cgi compiled for mapserver with pgsql > and mysql support and externel gd support and a little patch related to > reference maps) > ming-0.2a > postgis-0.9.0 > postgresql-7.4.6 > proj-4.4.9 > shapelib-1.2.10 > > If someone can provide a mirror I will be very happy to share them all. > > Best regards, > Romolo Manfredini > > From margottid at COMUNE.LUGO.RA.IT Sun Nov 14 06:09:03 2004 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Sun, 14 Nov 2004 08:09:03 -0600 Subject: Using Javascript to update maps in a web page Message-ID: Hi, I have a question about using Javascript to update maps in a web page. If I don't want to reload the page every time I request a new map, I can use javascript to re-create - on the fly - only objects that change, for instance "map" (using: img src="/cgi-bin/mapserv?mode=map...."), "scalebar" (using: img src="/cgi-bin/mapserv?mode=scalebar....") and "reference" (using: img src="/cgi-bin/mapserv?mode=reference...."). When I use MapServer CGI, some variables (current scale, current extent, ...) are automatically updated by MapServer that substitutes the field name (e.g.: [scale]) in the template. Can I obtain these values from MapServer only using Javascript? I think I cannot calculate these values with Javascript functions because MapServer, when creates a map, modifies the requested extent (and, consequently, the scale) adjusting it on the base of pixel size, right? So... Is there a "mode" in MapServer that outputs, instead of a map/scalebar/reference image, a value (for current scale or current extent)? Thank you, Daniele From mtperry78 at SBCGLOBAL.NET Sun Nov 14 07:22:12 2004 From: mtperry78 at SBCGLOBAL.NET (Matthew Perry) Date: Sun, 14 Nov 2004 07:22:12 -0800 Subject: Using Javascript to update maps in a web page In-Reply-To: Message-ID: Daniele, There is no way (as far as I know) for mapserver to output such information since mapsver is state-less and wouldn't know which image you were reffering to. However, you can do it by managing all of the extent information on the client side using javascript. The best solution I've found is Steve Lime's mapserv.js. You can check it out in action at: http://www.dnr.state.mn.us/maps/landview_dhtml.html Check out the page source for the URL to mapserv.js and for an example of how it is used (look for the ms.* javascript variables). It really helps with interface development since you're just swapping images instead of reloading the page so you can maintain alot of info a javascript variables. This solution is also nice since you no longer have to deal with temp images being stored on your hard drive. Matt Perry Humboldt State University Daniele Margotti wrote: Hi, I have a question about using Javascript to update maps in a web page. If I don't want to reload the page every time I request a new map, I can use javascript to re-create - on the fly - only objects that change, for instance "map" (using: img src="/cgi-bin/mapserv?mode=map...."), "scalebar" (using: img src="/cgi-bin/mapserv?mode=scalebar....") and "reference" (using: img src="/cgi-bin/mapserv?mode=reference...."). When I use MapServer CGI, some variables (current scale, current extent, ...) are automatically updated by MapServer that substitutes the field name (e.g.: [scale]) in the template. Can I obtain these values from MapServer only using Javascript? I think I cannot calculate these values with Javascript functions because MapServer, when creates a map, modifies the requested extent (and, consequently, the scale) adjusting it on the base of pixel size, right? So... Is there a "mode" in MapServer that outputs, instead of a map/scalebar/reference image, a value (for current scale or current extent)? Thank you, Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From nasirmaan at HOTMAIL.COM Sun Nov 14 09:06:09 2004 From: nasirmaan at HOTMAIL.COM (nasir maan) Date: Sun, 14 Nov 2004 17:06:09 +0000 Subject: Maps & shapefiles Message-ID: An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Sun Nov 14 09:12:35 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Sun, 14 Nov 2004 12:12:35 -0500 Subject: Maps & shapefiles In-Reply-To: Message-ID: Hi Nasir, The proceedings from the recent user meeting has links to several workshops that could help you (such as "Getting Started with MapServer"): http://www.omsug.ca/osgis2004/proceedings.html jeff nasir maan wrote: > Hi all, > > Can anyone tell me that which information from a shapefile should I know > to put it into .map file so that I can view the intended map from shape > file into my explorer. > > Please let me know If there is some tutorial or something so where from > I can learn about these things. > > *Regards, * > Mahmood, Nasir > > *J.-G.-NATHUSIUS-RING 1/408 * > *39106, Magdeburg* > *Germany.* > *Phone: +49-391-2428300 (Home)* > * +49-176-24211916 (Mobile)* > * * > > > ------------------------------------------------------------------------ > Express yourself instantly with MSN Messenger! MSN Messenger > Download today it's FREE! -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca From sirronj at PACBELL.NET Sun Nov 14 10:04:29 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Sun, 14 Nov 2004 10:04:29 -0800 Subject: mapscript perl interface questions continue Message-ID: Hello to all, I have been experimenting with the perl mapscript interface and I have the following question: Given the following code: sub build_file{ my $gif_file = 'tttt.gif'; my $mapfile_loc = "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher"; my $mapfile_data = "$mapfile_loc/tdata"; my $mapfile = "$mapfile_loc/cal.map"; my $map = new mapscript::mapObj($mapfile); my $image = $map->draw(); my $file_location = '/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/tmp'; unlink "$file_location/$gif_file"; mapscript::msSaveImage($map, $image, "$file_location/$gif_file"); Can I build a new shape file and add it as a layer to this map and then redraw the map again? I do not see the way to do this in the demo perl scripts. Thanks #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From mj at SCI.FI Sun Nov 14 13:10:07 2004 From: mj at SCI.FI (Mike Jackson) Date: Sun, 14 Nov 2004 23:10:07 +0200 Subject: creating vector symbol point sets Message-ID: Hi, Does anybody know of any good gui based vector "icon editors" for *nix which can save pointsets that can be used in SYMBOL definitions? I tried Dia with native format, svg, and dia shape file, and finally took the points from the shape file (not the same as an ESRI shapefile). When I displayed it as a symbol, it did have the correct general shape, but was missing several lines, had some extra lines, and didn't fill properly. This was the result of my nice airplane symbol attempt with Dia, note that it has many duplicate lines... 12 5 12 9 12 7 13 5 13 9 13 7 12 9 7 11 9.5 10 13 9 18 11 15.5 10 7 11 7 12 7 11.5 18 11 18 12 18 11.5 7 12 12 11 9.5 11.5 18 12 13 11 15.5 11.5 12 11 12 13 12 12 13 11 13 13 13 12 12 13 11 14 11.5 13.5 13 13 14 14 13.5 13.5 12.5 14 11 14.5 11.75 14.25 12.5 14 14 14.5 13.25 14.25 11 14.5 11 14 11 14.25 14 14.5 14 14 14 14.25 12 5 12.5 4.5 12.25 4.75 13 5 12.5 4.5 12.75 4.75 Suggestions, please. Thanks, Mike From dylan at IICI.NO-IP.ORG Sun Nov 14 14:21:18 2004 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Sun, 14 Nov 2004 14:21:18 -0800 Subject: display polygons with transparent fill color {Scanned} {Scanned} In-Reply-To: Message-ID: On Sunday 14 November 2004 05:10 am, Siki Zoltan wrote: > Hi, > > Define layer type POLYGON and give > OUTLINECOLOR any color you want > COLOR -1 -1 -1 > > in the class part. > Color -1 -1 -1 means no fill color > > Labels will be places inside the polygon. > If you would like to display labels at the centroid, add a new point > layer using the polygon shape with the annotation, that case you get the > labels at the centroid of the polygons. > > Bye > Zoltan That did the trick!!! thank you very much! -- Dylan Beaudette Soil Science Graduate Group University of California at Davis From ealpert at DIGITALGLOBE.COM Sun Nov 14 17:09:55 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Sun, 14 Nov 2004 18:09:55 -0700 Subject: question about perl mapscript interface Message-ID: > some API documentation in mapserver/mapscript/doc/mapscript.txt. For anyone even considering using mapscript the above document is *THE* definitive reference for mapscript and more importantly the mapscript objects and methods. -e -------------- next part -------------- An HTML attachment was scrubbed... URL: From sirronj at PACBELL.NET Sun Nov 14 17:56:43 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Sun, 14 Nov 2004 17:56:43 -0800 Subject: Another question about shapefiles Message-ID: I have a US zip file containing zip codes and associated lat/long information. Can I convert this to points on a shapefile? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From woodbri at SWOODBRIDGE.COM Sun Nov 14 18:13:38 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 14 Nov 2004 21:13:38 -0500 Subject: Another question about shapefiles In-Reply-To: Message-ID: Joseph, Check out perl modules: Geo::ShapeFile Geo::Shapelib XBase These are handy modules for working with shapefiles and the DBF attributes file. I write scripts all the time for creating, reading and manipulating shapefiles. When I need more performance I usually use the shapelib library and C code. -Steve Joseph Norris wrote: > I have a US zip file containing zip codes and associated lat/long > information. Can I convert this to points on a shapefile? > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From test at STIGASCORP.COM Sun Nov 14 18:15:06 2004 From: test at STIGASCORP.COM (Chris) Date: Sun, 14 Nov 2004 21:15:06 -0500 Subject: Another question about shapefiles In-Reply-To: Message-ID: You can convert it manually -- I don't think there are any tools to do this automatically since your data can be in many different formats. It isn't that difficult to write a simple C or java program to do this. The shapefile format is very straightforward. You should read the whitepaper from ESRI: www.esri.com/library/whitepapers/pdfs/shapefile.pdf Regards, Chris -----Original Message----- From: Joseph Norris [mailto:sirronj at PACBELL.NET] Sent: Sunday, November 14, 2004 8:57 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Another question about shapefiles I have a US zip file containing zip codes and associated lat/long information. Can I convert this to points on a shapefile? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From sirronj at PACBELL.NET Sun Nov 14 20:54:56 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Sun, 14 Nov 2004 20:54:56 -0800 Subject: Another question about shapefiles In-Reply-To: <419810D2.1040102@swoodbridge.com> Message-ID: Stephen, These are really great - I was able to build my shape file from zip file very easily. Now the question is - and I have experimented. I see in the Shapelib docs I see that I can open a shapefile that already exists. Can I then read another file of points and the put these points on the original shape? No matter what I do I am getting errors back. I can only find examples of code in the pod for the module. Thanks for all your help. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Stephen Woodbridge Sent: Sunday, November 14, 2004 6:14 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Another question about shapefiles Joseph, Check out perl modules: Geo::ShapeFile Geo::Shapelib XBase These are handy modules for working with shapefiles and the DBF attributes file. I write scripts all the time for creating, reading and manipulating shapefiles. When I need more performance I usually use the shapelib library and C code. -Steve Joseph Norris wrote: > I have a US zip file containing zip codes and associated lat/long > information. Can I convert this to points on a shapefile? > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From jcastil1 at TRAGSA.ES Mon Nov 15 00:10:11 2004 From: jcastil1 at TRAGSA.ES (Javier Castillejo Montes) Date: Mon, 15 Nov 2004 09:10:11 +0100 Subject: construction of cartographic symbols Message-ID: Hi all!!! How can I help on the translation of this cool doc, I don't know nothing about this language? Any way I would like te help!!! Javier -----Mensaje original----- De: Jeff McKenna [mailto:jmckenna at DMSOLUTIONS.CA] Enviado el: s?bado, 13 de noviembre de 2004 17:51 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: Re: [UMN_MAPSERVER-USERS] construction of cartographic symbols Wow Bart, this is a very cool doc. I could also help you with the docbook, formatting side. We really need this translated to english. jeff On Nov 13, Bart van den Eijnden wrote: > > Hi list, > > I just found this very neat Mapserver cartography "manual", unfortunately > it is in German (but luckily I can read and speak German): > > http://www.mapmedia.de/dokumente/umn_signaturen_howto/ > > Is there an English version available? If not I would be interested in > helping with the translation. This could be of so much help to a lot of > users in my opinion. > > Best regards, > Bart > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > From woodbri at SWOODBRIDGE.COM Mon Nov 15 04:12:07 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 15 Nov 2004 07:12:07 -0500 Subject: Another question about shapefiles In-Reply-To: Message-ID: Joseph, In the C interface I think you can open a file in mode "rb+" which will allow you to read/write, BUT in general practice I would open the file for read, copy it record by record, and then add any new data to the file. Otherwise you run the risk of damaging your original file. Typically if you need to do this via a multi-user interface, like a web form you need to edit a database and not a shapefile as this library has not locking and it WILL get trashed. -Steve Joseph Norris wrote: > Stephen, > > These are really great - I was able to build my shape file from zip file > very easily. Now the question is - and I have experimented. > > I see in the Shapelib docs I see that I can open a shapefile that already > exists. Can I then read another file of points and the put these points on > the original shape? > > No matter what I do I am getting errors back. I can only find examples of > code in the pod for the module. > > Thanks for all your help. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Stephen Woodbridge > Sent: Sunday, November 14, 2004 6:14 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Another question about shapefiles > > Joseph, > > Check out perl modules: > > Geo::ShapeFile > Geo::Shapelib > XBase > > These are handy modules for working with shapefiles and the DBF > attributes file. I write scripts all the time for creating, reading and > manipulating shapefiles. When I need more performance I usually use the > shapelib library and C code. > > -Steve > > Joseph Norris wrote: > >>I have a US zip file containing zip codes and associated lat/long >>information. Can I convert this to points on a shapefile? >> >>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > > chr > > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > >>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >> > > From steve.hall at MERCATORGEOSYSTEMS.CO.UK Mon Nov 15 01:31:32 2004 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Mon, 15 Nov 2004 09:31:32 -0000 Subject: Using PHP Mapscript to change DATA for Oracle Spatial Message-ID: Hi all, I'm working with the 4.4.0 beta2 release so i'm not sure if this is a bug, me doing something wrong or it's just not meant to do what i'm trying! I have an Oracle Spatial layer defined in my map file : LAYER NAME PostcodeData GROUP all TYPE POLYGON STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "user/pwd at db" DATA "GEOM FROM (SELECT B.GEOM, R.RESULTS, B.BASENAME, R.REPORT_ID FROM BASE B, RS_RESULTS_NUMBER R WHERE B.BASEID=R.GEOGID AND R.REPORT_ID = !REPORT_ID!) USING SRID 8192" [more of the "usual" stuff here] END The !REPORT_ID! is a placeholder that I want to replace at runtime with a know value, which I try using a fragment of PHP code like this : $map = ms_newMapObj($map_path."thematic.map"); $dataLayer = $map->getLayerByName("PostcodeData"); echo $dataLayer->data."
"; $data = str_replace("!REPORT_ID!", "19594", $dataLayer->data); echo $data."
"; $dataLayer->data = $data; echo $dataLayer->data."
"; $image=$map->draw(); Although the string replace is working fine and it looks like the assignment to $dataLayer->data is working too, when I make the call to draw() then it fails and throws out the SQL stored in the .map file, not the one I have manipulated on the fly. I have managed to workaround this using the FILTER statement (and corresponding PHP calls) for now but ideally i'd like to prove this can be done at the SQL level as i'm going to be doing more complex alterations to this SQL later on. Many thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From mweinelt at PLANIGLOBE.COM Mon Nov 15 05:50:44 2004 From: mweinelt at PLANIGLOBE.COM (Martin Weinelt) Date: Mon, 15 Nov 2004 14:50:44 +0100 Subject: Using Javascript to update maps in a web page In-Reply-To: Message-ID: On Sunday 14 November 2004 15:09, Daniele Margotti wrote: > Hi, > I have a question about using Javascript to update maps in a web page. > > If I don't want to reload the page every time I request a new map, I can > use javascript to re-create - on the fly - only objects that change, for > instance "map" (using: img src="/cgi-bin/mapserv?mode=map...."), "scalebar" > (using: img src="/cgi-bin/mapserv?mode=scalebar....") and "reference" > (using: img src="/cgi-bin/mapserv?mode=reference...."). > > When I use MapServer CGI, some variables (current scale, current > extent, ...) are automatically updated by MapServer that substitutes the > field name (e.g.: [scale]) in the template. > > Can I obtain these values from MapServer only using Javascript? > I think I cannot calculate these values with Javascript functions because > MapServer, when creates a map, modifies the requested extent (and, > consequently, the scale) adjusting it on the base of pixel size, right? > So... Is there a "mode" in MapServer that outputs, instead of a > map/scalebar/reference image, a value (for current scale or current extent)? Daniele, I used a hidden frame where only the the dynamic content got loaded (map, reference map, extent values, legend, etc) via a template. The hidden frame fired a javascript of the main (interface) frame "on load", which copied the images and values from the hidden frame into the interface frame. Now that frames are more and more disliked you can setup something similar with the use of iframes. You work on iframe documents as if they were documents in another window. See W3C DOM documentation for more info. There is a nice introduction on using iframes to set up a RPC like architecture on " http://developer.apple.com/internet/webcontent/iframe.html " Yes, it is developer.apple.com ... ;-) There is a bit browser sniffing in the sample code which I dislike (browser sniffing is dead), but you get an idea how to handle cross browser issues nowadays at the same forum: http://developer.apple.com/internet/webcontent/objectdetection.html introduces you to object/property/method detection Ehm ... , I not working for Apple. Cheers, Martin -- --- Martin Weinelt --- kk+w - digital cartography --- Kiel, Germany --- Tel: +49.431.5791165 --- http://www.planiglobe.com From covariance at SHAW.CA Mon Nov 15 06:53:34 2004 From: covariance at SHAW.CA (Bob Bruce) Date: Mon, 15 Nov 2004 08:53:34 -0600 Subject: Query works but QUERYMAP is Not Scaled - that's the problem Message-ID: My apologies: I have determined that the query is displaying the selected parcel as long as it is selected near the center of the original map image. This is because the original map is not being scaled to fit the querymap that is displayed - this is my real problem. Any suggestions on how to get the map that is queried automatically scaled down to the size of the querymap? thanks, Bob Bruce On Fri, 12 Nov 2004 23:26:39 -0600, Bob Bruce wrote: >Yes, sorry about that, here's what I get: > >C:\Apache\htdocs\cgi-bin>mapserv.exe -v >MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >OUTPUT=PDF OUTPUT=SWF SUPPORTS >=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLI >ENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > >Bob Bruce > >On Sat, 13 Nov 2004 00:10:46 -0500, Stephen Woodbridge > wrote: > >>Bob, >> >>You might want to mention what version of mapserver you are running. >> >>-Steve W. >> >>Bob Bruce wrote: >> >>> When I was working through a test map that I set up with some Manitoba data >>> I encountered a problem trying to get queries displaying a map with a >>> selected property parcel highlighted. I was able to get the property parcel >>> attributes displayed nicely but the map image would not work properly (all I >>> got was a little section of the overall map centered on the last area >>> without the selected land parcel shown or highlighted) >>> >>> I racked my brain, triple-checked my map and template files comparing them >>> with the Itasca demo (which I got working fine) trying to find out what was >>> the difference between them. Finally I realized that the Itasca demo was >>> using single data files for the layers while my test map was using tilemaps >>> for each of the layers. >>> >>> I then tried changing one of the layers to a single data file and querying >>> that layer and PRESTO the correct querymap appeared with my selected land >>> parcel highlighted. >>> >>> Has anyone ever got querymaps working with tilemaps and are they supposed to >>> work with them? >>> >>> thanks in advance for your help. >>> >>> Bob Bruce From mschulz at WEBGIS.DE Mon Nov 15 07:03:49 2004 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Mon, 15 Nov 2004 16:03:49 +0100 Subject: Join shape and dbms data: OGR? In-Reply-To: <4194C7E3.5090708@pobox.com> Message-ID: Frank Warmerdam schrieb: > Michael Schulz wrote: > >> Dear List, >> >> i want to evaluate the possibility to integrate a layer in mapserver, >> that takes the geometry data >> from a shape file (polygons with a unique id) and the attribute data >> from a MS-Access DB (this is >> unfortunately a precondition). The attribute data should be joined >> with the shape-file unique >> polygon id and thus accessible for classification and labeling. >> >> I looked through the OGR connection possibilities and now i am >> wondering if this could be achieved >> using an OGR virtual datasource, which has a SQLSrc defined that >> performs the join? > > > Michael, > > In theory you can do it via an OGR connection without even using the VRT > stuff. The DATA statement in the map file can be a SELECT statement when > you are using the OGR connection type. In theory if you connect to a > shapefile > you could have a select statement that also joins attribute information > from > an ODBC connection. > > First, I think you will need to have a .dbf associated with your > shapefile that > has at least your relation key. I don't think it is possible to use the > FID > (ie. the shapefile sequence number) in the OGR SQL statements. > > You might use something like: > > SELECT * from city > LEFT JOIN 'ODBC:YourAccessDSN'.city_info ON city.id = city_info.id > > assuming your shapefile is called "city.shp" and has a column called id, > and that your msaccess table is called city_info and also has a column > called id to relate on. > > The 'ODBC:' portion of the above is a bit of OGR SQL special > syntax allowing you to refer to a different datasource than the one you > listed > in your CONNECTION string. Assuming you have setup a system DSN called > YourAccessDSN, and that there are no userid or password required it > would look > something like the above. > > I would add that connecting to ODBC datasources with alot of tables can be > somewhat expensive. If there are alot of tables in your access > database, you > might want to list the one you want access to in the datasource name so OGR > only has to collect the table definition for that one table. > > Lastly, OGR is going to end up doing a SELECT on the ODBC datasource for > each > shape it reads from the shapefile. Something like "selct * from city_info > where id = ". So make sure you index your secondary table on relation > key or performance will completely suck. As it is, this will not > exactly be > a high performance operation. > > Useful info: > > http://ogr.maptools.org/ogr_sql.html > http://ogr.maptools.org/drv_odbc.html > > Good luck, Hi Frank, thanks for your answer. It is working perfectly now. For the moment it is only one table i want to join to the geometry of the shp-file, so at first sight performance is good, but i will play with the indexes a little. For all who have to use a similar approach here's a mapfile snipplet: LAYER ... CONNECTIONTYPE OGR CONNECTION "c:\mstest\data\fnpf.shp" # shapefile holding only geometry and PID in .dbf DATA "SELECT * FROM fnpf LEFT JOIN 'ODBC:fnp'.fnp ON fnpf.PID=fnp.PID" # join to systemDSN fnp (here msaccess-db "fnp.mdb" with table fnp) on attribute PID, # now all fields of the db are also accessible for mapserver, e.g. "AZJAHR" LABELITEM "AZJAHR" ... END Thanks, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de/www.zopecms.de From sirronj at PACBELL.NET Mon Nov 15 07:11:55 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 15 Nov 2004 07:11:55 -0800 Subject: Another question about shapefiles In-Reply-To: <41989D17.9030004@swoodbridge.com> Message-ID: Steve, Thanks for this information. I understand this. However here is my situation. I have a shapefile of California. It has its dbf file. This is a sample: 0.859846443800379:5.7057500729921:50:49:06:053:Monterey:06:County 1.25622233242418:5.28286812594892:51:50:06:107:Tulare:06:County I have another text file of zip codes with lat/long codes. "01","35004","AL","ACMAR",86.51557,33.584132,6055,0.001499 "01","35005","AL","ADAMSVILLE",86.959727,33.588437,10616,0.002627 "01","35006","AL","ADGER",87.167455,33.434277,3205,0.000793 "01","35007","AL","KEYSTONE",86.812861,33.236868,14218,0.003519 "01","35010","AL","NEW SITE",85.951086,32.941445,19942,0.004935 "01","35014","AL","ALPINE",86.208934,33.331165,3062,0.000758 I have the whole US - so I have California. What I am trying to accomplish is to layer the zip code data on top of California an by that read a Mysql user table and by zip code place a symbol where these users are located. I am doing all of this from a ESRI background that would have made this an easier via the GUI but not as much fun and definitely not Open Source. BTW - I am doing all of this as proof of concept so that my company will get into GIS as an extension of one of the best Open Source content management systems I have ever worked on - OK - enough of that - but it is a really well designed product. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Monday, November 15, 2004 4:12 AM To: Joseph Norris Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Another question about shapefiles Joseph, In the C interface I think you can open a file in mode "rb+" which will allow you to read/write, BUT in general practice I would open the file for read, copy it record by record, and then add any new data to the file. Otherwise you run the risk of damaging your original file. Typically if you need to do this via a multi-user interface, like a web form you need to edit a database and not a shapefile as this library has not locking and it WILL get trashed. -Steve Joseph Norris wrote: > Stephen, > > These are really great - I was able to build my shape file from zip file > very easily. Now the question is - and I have experimented. > > I see in the Shapelib docs I see that I can open a shapefile that already > exists. Can I then read another file of points and the put these points on > the original shape? > > No matter what I do I am getting errors back. I can only find examples of > code in the pod for the module. > > Thanks for all your help. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Stephen Woodbridge > Sent: Sunday, November 14, 2004 6:14 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Another question about shapefiles > > Joseph, > > Check out perl modules: > > Geo::ShapeFile > Geo::Shapelib > XBase > > These are handy modules for working with shapefiles and the DBF > attributes file. I write scripts all the time for creating, reading and > manipulating shapefiles. When I need more performance I usually use the > shapelib library and C code. > > -Steve > > Joseph Norris wrote: > >>I have a US zip file containing zip codes and associated lat/long >>information. Can I convert this to points on a shapefile? >> >>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > > chr > > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > >>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >> > > From msmith at SANANGELOMPO.ORG Mon Nov 15 09:13:49 2004 From: msmith at SANANGELOMPO.ORG (Michael Smith) Date: Mon, 15 Nov 2004 11:13:49 -0600 Subject: How to perform a search on mapserver Message-ID: Hi, I have Mapserver up and running on IIS server. I am using the Jbox features to measure and use the rubber band zoom. The next thing I would like to do is for the the user to be able to search my db and zoom to that area. For example, I have a roads shapefile layer that has street name as on of the db fields. I would like to let the user type in a field on the webpage or even have a drop down list that the user can chooser from and it will take you to my .map file zoomed to that particular street. Can anyone point me in the right direction as how I can do this. Thanks in advance. Mike From woodbri at SWOODBRIDGE.COM Mon Nov 15 10:13:17 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 15 Nov 2004 13:13:17 -0500 Subject: Another question about shapefiles In-Reply-To: Message-ID: So if I understand correctly what you really want to do, is to geocode you database records with a lat/lon based on there zipcode. Then you want to present the database data as a layer of points based on this lat/lon value. If so then you should write a script to add lat, lon columns to your database and then for every record in the database populate the lat, lon based on the zipcode. If you load the zipcode, lat, lon as a new table you can dothis on the fly with a join. Regardless if I understand what you are asking for, youdon't need to create a shape layer from the zipcode data and even if you did, you would then be able to display the zipcodes as labels at the zipcode points but you would have no way to display the mysql data at the respective points. Hope this makes sense. -Steve Joseph Norris said: > Steve, > > Thanks for this information. I understand this. However here is my > situation. I have a shapefile of California. It has its dbf file. > > This is a sample: > > 0.859846443800379:5.7057500729921:50:49:06:053:Monterey:06:County > 1.25622233242418:5.28286812594892:51:50:06:107:Tulare:06:County > > > I have another text file of zip codes with lat/long codes. > > "01","35004","AL","ACMAR",86.51557,33.584132,6055,0.001499 > "01","35005","AL","ADAMSVILLE",86.959727,33.588437,10616,0.002627 > "01","35006","AL","ADGER",87.167455,33.434277,3205,0.000793 > "01","35007","AL","KEYSTONE",86.812861,33.236868,14218,0.003519 > "01","35010","AL","NEW SITE",85.951086,32.941445,19942,0.004935 > "01","35014","AL","ALPINE",86.208934,33.331165,3062,0.000758 > > > I have the whole US - so I have California. > > What I am trying to accomplish is to layer the zip code data on top of > California an by that read a Mysql user table and by zip code place a > symbol > where these users are located. > > I am doing all of this from a ESRI background that would have made this an > easier via the GUI but not as much fun and definitely not Open Source. > > > BTW - I am doing all of this as proof of concept so that my company will > get into GIS as an extension of one of the best Open Source content > management systems I have ever worked on - OK - enough of that - but it is > a > really well designed product. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Monday, November 15, 2004 4:12 AM > To: Joseph Norris > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Another question about shapefiles > > Joseph, > > In the C interface I think you can open a file in mode "rb+" which will > allow you to read/write, BUT in general practice I would open the file > for read, copy it record by record, and then add any new data to the > file. Otherwise you run the risk of damaging your original file. > Typically if you need to do this via a multi-user interface, like a web > form you need to edit a database and not a shapefile as this library has > not locking and it WILL get trashed. > > -Steve > > Joseph Norris wrote: > >> Stephen, >> >> These are really great - I was able to build my shape file from zip file >> very easily. Now the question is - and I have experimented. >> >> I see in the Shapelib docs I see that I can open a shapefile that >> already >> exists. Can I then read another file of points and the put these points > on >> the original shape? >> >> No matter what I do I am getting errors back. I can only find examples > of >> code in the pod for the module. >> >> Thanks for all your help. >> >> #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > chr >> > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- >> 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On >> Behalf Of Stephen Woodbridge >> Sent: Sunday, November 14, 2004 6:14 PM >> To: MAPSERVER-USERS at lists.umn.edu >> Subject: Re: [UMN_MAPSERVER-USERS] Another question about shapefiles >> >> Joseph, >> >> Check out perl modules: >> >> Geo::ShapeFile >> Geo::Shapelib >> XBase >> >> These are handy modules for working with shapefiles and the DBF >> attributes file. I write scripts all the time for creating, reading and >> manipulating shapefiles. When I need more performance I usually use the >> shapelib library and C code. >> >> -Steve >> >> Joseph Norris wrote: >> >>>I have a US zip file containing zip codes and associated lat/long >>>information. Can I convert this to points on a shapefile? >>> >>>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map >> >> chr >> >> > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- >> >>>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >>> >> >> > > From zhou_naijun at HOTMAIL.COM Mon Nov 15 12:13:17 2004 From: zhou_naijun at HOTMAIL.COM (N Zhou) Date: Mon, 15 Nov 2004 14:13:17 -0600 Subject: WFS schemas Message-ID: Hi, I'd highly appreciate your help/suggestion on my question of applying a different schemas in WFS. I sent a WFS DescribeFeatureType request to map server and I got a response as: - - - - Here the feature type "ngs_type" contains a list of elements. I wonder how I can get a response with features and elements defined by a specific schema (.xsd). I see some wfs schemas under the ows_schemas_location, but I don't know where I can place my own schema. Do I need to change the xmlns="http://www.ttt.org/myns" to another namespace, and how? Information about how schemas in WFS are imported and refered are also appreciated. Thanks a lot! Yours, N. Zhou From bartvde at XS4ALL.NL Mon Nov 15 12:22:01 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 15 Nov 2004 21:22:01 +0100 Subject: WFS schemas In-Reply-To: Message-ID: Hi, the following bugzilla reports might be of information to you: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=950 http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=884 In short, you cannot use your own schema with Mapserver for WFS at the moment. You can change the namespace, by using wfs_namespace_prefix, see: http://mapserver.gis.umn.edu/doc/wfs-server-howto.html Hope this helps. Best regards, Bart On Mon, 15 Nov 2004 14:13:17 -0600, N Zhou wrote: > Hi, > > I'd highly appreciate your help/suggestion on my question of applying a > different schemas in WFS. > > I sent a WFS DescribeFeatureType request to map server and I got a > response > as: > > xmlns:myns="http://www.ttt.org/myns" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:gml="http://www.opengis.net/gml" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://myhost/wfsschema/wfs/1.0.0/WFS-basic.xsd http://www.ttt.org/myns > http://myhost/cgi-bin/mapserv?map=/myWFS/data/mywfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=ngs"> > schemaLocation="http://myhost/wfsschema/gml/2.1/feature.xsd" /> > substitutionGroup="gml:_Feature" > /> > - > - > - > - > nillable="false" > /> > > > > > > > > > > Here the feature type "ngs_type" contains a list of elements. I wonder > how I > can get a response with features and elements defined by a specific > schema > (.xsd). I see some wfs schemas under the ows_schemas_location, but I > don't > know where I can place my own schema. Do I need to change the > xmlns="http://www.ttt.org/myns" to another namespace, and how? > Information > about how schemas in WFS are imported and refered are also appreciated. > > Thanks a lot! > > Yours, > > N. Zhou > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From john.cole at UAI.COM Mon Nov 15 14:27:14 2004 From: john.cole at UAI.COM (John Cole) Date: Mon, 15 Nov 2004 16:27:14 -0600 Subject: Win32 binaries with SDE, anyone ? Message-ID: Hello, I saw a while back people were asking for Win32 binaries that support SDE. Has anyone posted Win32 binarys with SDE support yet? I've just had a project that requires this drop in my lap. Thanks, John Cole From wlx at MYGIS.ORG Mon Nov 15 19:37:02 2004 From: wlx at MYGIS.ORG (wlx) Date: Tue, 16 Nov 2004 11:37:02 +0800 Subject: Using PHP Mapscript to change DATA for Oracle Spatial In-Reply-To: <006801c4caf5$e4f0c880$0a0a0a0a@Frink> Message-ID: Hi, I have the same problem,too. The $dataLayer variable's change don't influence the $map variable, so when you draw the map nothing changed,I think so. But I don't know how to solved this probem. Best regards, LiangXu Wang From EZS at SYNCERA-ITSOLUTIONS.NL Mon Nov 15 23:21:20 2004 From: EZS at SYNCERA-ITSOLUTIONS.NL (Emil Zegers) Date: Tue, 16 Nov 2004 08:21:20 +0100 Subject: Join shape and dbms data: OGR? Message-ID: Hello Michael, I have a question for you about this approach: when using this kind of join were you able to classify data based on the joined attributes and display this in the map image? I'm asking this because with normal join operation it is not possible to create thematic maps based on the joined attributes. If classifcation works based on this approach the enhancement request I put in bugzilla (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=674) can be closed. I would be very happy if classifying on joined attributes works this way (had no time to test this approach yet). Regards, Emil Zegers Hi Frank, thanks for your answer. It is working perfectly now. For the moment it is only one table i want to join to the geometry of the shp-file, so at first sight performance is good, but i will play with the indexes a little. For all who have to use a similar approach here's a mapfile snipplet: LAYER ... CONNECTIONTYPE OGR CONNECTION "c:\mstest\data\fnpf.shp" # shapefile holding only geometry and PID in .dbf DATA "SELECT * FROM fnpf LEFT JOIN 'ODBC:fnp'.fnp ON fnpf.PID=fnp.PID" # join to systemDSN fnp (here msaccess-db "fnp.mdb" with table fnp) on attribute PID, # now all fields of the db are also accessible for mapserver, e.g. "AZJAHR" LABELITEM "AZJAHR" ... END Thanks, Michael From mschulz at WEBGIS.DE Tue Nov 16 01:16:07 2004 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Tue, 16 Nov 2004 10:16:07 +0100 Subject: Join shape and dbms data: OGR? In-Reply-To: Message-ID: Hi, yes this is working, i haven't tried regexps but string and logical expressions are working and mapserver is classifying the shapefile according to the joined attributes. fnpf.shp only has the relation key PID in its .dbf attribute table. ... CONNECTIONTYPE OGR CONNECTION "c:\mstest\data\fnpf.shp" # shapefile holding only geometry and PID in .dbf DATA "SELECT * FROM fnpf LEFT JOIN 'ODBC:fnp'.fnp ON fnpf.PID=fnp.PID" CLASS EXPRESSION ([AZJAHR] = 0) STYLE COLOR 255 0 150 END END CLASS EXPRESSION ([AZJAHR] = 1) STYLE COLOR 255 150 0 END END CLASS EXPRESSION ([AZJAHR] > 1) STYLE COLOR 0 150 150 END END ... Cheers, Michael Emil Zegers schrieb: > Hello Michael, > > I have a question for you about this approach: when using this kind of join were you able to classify data based on the joined attributes and display this in the map image? > > I'm asking this because with normal join operation it is not possible to create thematic maps based on the joined attributes. > > If classifcation works based on this approach the enhancement request I put in bugzilla (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=674) can be closed. > > I would be very happy if classifying on joined attributes works this way (had no time to test this approach yet). > > Regards, > > Emil Zegers > > > Hi Frank, > > thanks for your answer. It is working perfectly now. > > For the moment it is only one table i want to join to the geometry of the shp-file, so at first > sight performance is good, but i will play with the indexes a little. > > For all who have to use a similar approach here's a mapfile snipplet: > > LAYER > ... > CONNECTIONTYPE OGR > CONNECTION "c:\mstest\data\fnpf.shp" # shapefile holding only geometry and PID in .dbf > DATA "SELECT * FROM fnpf LEFT JOIN 'ODBC:fnp'.fnp ON fnpf.PID=fnp.PID" > # join to systemDSN fnp (here msaccess-db "fnp.mdb" with table fnp) on attribute PID, > # now all fields of the db are also accessible for mapserver, e.g. "AZJAHR" > LABELITEM "AZJAHR" > ... > END > > Thanks, Michael > > -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de/www.zopecms.de From simon at INF.UNIVALI.BR Tue Nov 16 00:53:21 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Tue, 16 Nov 2004 08:53:21 +0000 Subject: Using PHP Mapscript to change DATA for Oracle Spatial In-Reply-To: <006801c4caf5$e4f0c880$0a0a0a0a@Frink> Message-ID: Hi, I tested here and the problem is with the mapscript code, you can't set the layer->data directly, you need to call set() function. I'm using the PHP Mapscript. In my example: With this way the data is draw corectly: ..... $dataLayer = $map->getLayerByName("flisk"); echo $dataLayer->data."
"; $data = str_replace("cola_a", "cola_b", $dataLayer->data); echo $data."
"; $dataLayer->set("data", $data); echo $dataLayer->data."
"; $image=$map->draw(); ..... This way don't have efect: ..... $dataLayer = $map->getLayerByName("flisk"); echo $dataLayer->data."
"; $data = str_replace("cola_a", "cola_b", $dataLayer->data); echo $data."
"; $dataLayer->data = $data; echo $dataLayer->data."
"; $image=$map->draw(); ..... I used this layer: LAYER NAME "flisk" STATUS ON TYPE polygon CONNECTIONTYPE oraclespatial CONNECTION "XXXX/XXXX at XXXXXX" data "coordenada from (SELECT shape as coordenada FROM cola_markets WHERE name = 'cola_a') USING GEOMRELATE" type polygon class color 255 0 0 outlinecolor 0 0 200 end END Thanks. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Steve Hall wrote: > Hi all, > > I'm working with the 4.4.0 beta2 release so i'm not sure if this is a > bug, me doing something wrong or it's just not meant to do what i'm > trying! > > I have an Oracle Spatial layer defined in my map file: > > LAYER > NAME PostcodeData > GROUP all > TYPE POLYGON > STATUS ON > CONNECTIONTYPE oraclespatial > CONNECTION "user/pwd at db " > DATA "GEOM FROM (SELECT B.GEOM, R.RESULTS, B.BASENAME, R.REPORT_ID > FROM BASE B, RS_RESULTS_NUMBER R WHERE B.BASEID=R.GEOGID AND > R.REPORT_ID = !REPORT_ID!) USING SRID 8192" > [more of the "usual" stuff here] > > END > > The !REPORT_ID! is a placeholder that I want to replace at runtime > with a know value, which I try using a fragment of PHP code like this : > > $map = ms_newMapObj($map_path."thematic.map"); > $dataLayer = $map->getLayerByName("PostcodeData"); > echo $dataLayer->data."
"; > $data = str_replace("!REPORT_ID!", "19594", $dataLayer->data); > echo $data."
"; > $dataLayer->data = $data; > echo $dataLayer->data."
"; > $image=$map->draw(); > Although the string replace is working fine and it looks like the > assignment to $dataLayer->data is working too, when I make the call to > draw() then it fails and throws out the SQL stored in the .map file, > not the one I have manipulated on the fly. > > I have managed to workaround this using the FILTER statement (and > corresponding PHP calls) for now but ideally i'd like to prove this > can be done at the SQL level as i'm going to be doing more complex > alterations to this SQL later on. > > Many thanks, > > Steve From berend.veldkamp at ARIS.NL Tue Nov 16 02:58:31 2004 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Tue, 16 Nov 2004 11:58:31 +0100 Subject: SLD filter with raster layers Message-ID: Hi, I been experimenting with sld filters, and so far, I've been able to use them with feature layers, but not with raster layers (GeoTIFF). The WMS request goes like this: http://localhost/cgi-bin/mapserv?map=../map/test.map&service=wms&version=1.0.0&request=getmap&layers=ras&sld=http://localhost/sld/raster.sld where raster.sld contains: ras ras Geometry 0,0 100000,512500 1.0 When I leave out the part, the layer is drawn, so maybe rasterlayers don't supports filters yet? I'm using a nightly build from sep 20. and as far as I can tell there haven't been any changes in this area, at least not in mapogcsld.c. Thanks, Berend -- ____________________________ Berend Veldkamp - ARIS http://www.aris.nl/ ____________________________ From bartvde at XS4ALL.NL Tue Nov 16 03:06:46 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 16 Nov 2004 12:06:46 +0100 Subject: SLD filter with raster layers In-Reply-To: <4199DD57.4080203@aris.nl> Message-ID: Hi Berend, is your raster 8 bit? AFAIK it does work but only with 8 bit rasters. Best regards, Bart > Hi, > > I been experimenting with sld filters, and so far, I've been able to use > them with feature layers, but not with raster layers (GeoTIFF). > The WMS request goes like this: > http://localhost/cgi-bin/mapserv?map=../map/test.map&service=wms&version=1.0.0&request=getmap&layers=ras&sld=http://localhost/sld/raster.sld > > where raster.sld contains: > > > > ras > > ras > > > > > Geometry > > 0,0 100000,512500 > > > > > > 1.0 > > > > > > > > > > > > > > When I leave out the part, the layer is drawn, so maybe > rasterlayers don't supports filters yet? > > I'm using a nightly build from sep 20. and as far as I can tell there > haven't been any changes in this area, at least not in mapogcsld.c. > > Thanks, Berend > > -- > ____________________________ > > Berend Veldkamp - ARIS > http://www.aris.nl/ > ____________________________ > From berend.veldkamp at ARIS.NL Tue Nov 16 03:24:34 2004 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Tue, 16 Nov 2004 12:24:34 +0100 Subject: SLD filter with raster layers In-Reply-To: <18286.212.238.227.182.1100603206.squirrel@212.238.227.182> Message-ID: Bart, Yes it's an 8 bit geotiff. Would it make any difference if I use native tiff support instead of GDAL? Berend bartvde at xs4all.nl wrote: > Hi Berend, > > is your raster 8 bit? AFAIK it does work but only with 8 bit rasters. > > Best regards, > Bart -- ____________________________ Berend Veldkamp - ARIS http://www.aris.nl/ ____________________________ From nunoragil at YAHOO.COM Tue Nov 16 05:05:00 2004 From: nunoragil at YAHOO.COM (Nuno GIL) Date: Tue, 16 Nov 2004 05:05:00 -0800 Subject: web services wrapper script Message-ID: Dear Listers, I have at the moment around 6 different map files for different services (wcs or wms) and data (landsat or srtm). I was trying to setup a shell script to avoid typing all the path to the map files on the URL. However, from what I could understand, one cgi mapserver file can only be associated with one map file. Is there any way around this? Regards, Nuno __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com From warmerdam at POBOX.COM Tue Nov 16 06:53:51 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 16 Nov 2004 09:53:51 -0500 Subject: SLD filter with raster layers In-Reply-To: <18286.212.238.227.182.1100603206.squirrel@212.238.227.182> Message-ID: Bart van den Eijnden wrote: > Hi Berend, > > is your raster 8 bit? AFAIK it does work but only with 8 bit rasters. Bart, Note, in MapServer 4.4 the raster classification support should work with non-8bit layers as well with a few limitations. The SLD definitions are just converted into class definitions internally I believe. Berend Veldkamp wrote: > Bart, > > Yes it's an 8 bit geotiff. Would it make any difference if I use native > tiff support instead of GDAL? Well, hopefully it won't get any better to use the native support. If it does I would want to hear about it! Best regards, -- ---------------------------------------+-------------------------------------- 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 trondmm-mapserver at CRUSADERS.NO Tue Nov 16 07:46:58 2004 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Tue, 16 Nov 2004 16:46:58 +0100 Subject: Creating mapfiles Message-ID: Hi I'm completely new to mapserver, and I'm trying to set up a mapfile to match my shapefiles. But all I get is blank images, sometimes with the errormessage "msDrawMap(): Failed to draw layer named ...", depending on what values I give to BBOX I've tried to use the example from http://www.mobilegeographics.com/mapserver/usa1.phtml And, apart from the PHP-stuff (I haven't (and probably can't) compiled in php-support in mapserv), this works great. I've tried to use that mapfile, and exchange the data to fit my own shapefile, but with no luck. So, I have mapserv installed. I have a shapefile. Now what do I do? I have the feeling I'm missing something very obvious here, but I hope it's not too stupid. According to the readme file included with the shapefile, projection is UTM 33 and datum is EUREF89 (WGS84). I've used the perl-module Geo::ShapeFile, and it claims the boundries are: Xmin: -58955.421875 Ymin: 6458059 Xmax: 1109767.25 Ymax: 7934118.5 -- Trond Michelsen From Ken.Boss at DNR.STATE.MN.US Tue Nov 16 09:51:02 2004 From: Ken.Boss at DNR.STATE.MN.US (Ken Boss) Date: Tue, 16 Nov 2004 11:51:02 -0600 Subject: html legend order_metadata in [leg_group_html]? Message-ID: Is the order_metadata parameter supported within the [leg_group_html] tag? I've tried it, but with no apparent effect. The docs are a bit ambiguous on this point, saying in the [leg_group_html] section that "The group list is decided by the order_metadata parameter, which is explained later." Where it is explained later, though, turns out to be in the [leg_layer_html] section. This seems to imply that I can control the order of layers within groups, but not the order of groups within the legend. If order_metadata does not in fact apply to the [leg_group_html] tag, is there some other means (other than physical ordering in the map file) available to control the order in which my groups appear in the legend? Any help would be appreciated, Ken Boss MN DNR Forestry Resource Assessment From raphael.teixeira at GMAIL.COM Tue Nov 16 10:07:53 2004 From: raphael.teixeira at GMAIL.COM (Raphael Teixeira) Date: Tue, 16 Nov 2004 15:07:53 -0300 Subject: GRASS Message-ID: Hello All, Does anyone use GRASS in Windows plataform?? Can anyone help me with this?? tks, -- Raphael da Silva Teixeira From mandhare at STATE.PA.US Tue Nov 16 10:34:36 2004 From: mandhare at STATE.PA.US (Manjiri Andhare) Date: Tue, 16 Nov 2004 12:34:36 -0600 Subject: Zoom rectangle Message-ID: Hello All! I'm working on Windows 2000 nad IIS. With mapserver, I have created a basic web application for displaying maps with layer turn on/off and zoom in zoom out functionality. For zoom in/out i have used zoomdir but i'm not sure about the basic difference between using zoomdir and using zoom. In Template reference it is mentioned that zoom dir is used to make the zoom direction persistent. And for me zoomdir is working fine with the only exception is ..if i click on the map, it zoom to that point as a center, but if i select the radio button for zoom in and click refresh button(a asubmit button), then the map starts shifting on the right bottom corner instead of of zooming in into the center of the map. Obviously, I haven't wrote any code to do that and I think thats the reasont that its behaving like that. I didn't write any java script code to handle the click event of the submit button. If anybody knows the reason behind it and what code should i write so that when i click on the refresh button, the map should zoom to the center instead of moving to the right bottom. Another question that i wanted to ask is, how to draw a rectangle to let the user select the area to which he/she wants to zoom. If anyone has already done this, please tell me how to do that. Thank you all in advance, Manjiri Andhare GIS coordinator PA Fish & Boat Commission U.S.A. From dylan at IICI.NO-IP.ORG Tue Nov 16 10:40:59 2004 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Tue, 16 Nov 2004 10:40:59 -0800 Subject: GRASS In-Reply-To: Message-ID: On Tuesday 16 November 2004 10:07 am, Raphael Teixeira wrote: > Hello All, > > Does anyone use GRASS in Windows plataform?? Can anyone help me with > this?? > > tks, > > > -- > Raphael da Silva Teixeira Don't use it on windows, but I would certainly recommend the GRASS mailing lists! check out this website with all of the mailing lists; http://grass.itc.it/pipermail/ Have fun with GRASS! -- Dylan Beaudette Soil Science Graduate Group University of California at Davis From thomaschesky at YAHOO.COM Tue Nov 16 11:34:00 2004 From: thomaschesky at YAHOO.COM (Thomas Chesky) Date: Tue, 16 Nov 2004 11:34:00 -0800 Subject: MrSid Message-ID: I searched the archive but could not conclude postively that I can use MrSid with Mapserver (via GDAL) I found articles about licensing/sdk contstraints, others with no such limitations. Please let me know which version of GDAL supports MrSid if any and what is the procedure to have such tiles accessible from MapServer. Thanks Thomas __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sirronj at PACBELL.NET Tue Nov 16 11:51:56 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Tue, 16 Nov 2004 11:51:56 -0800 Subject: recompiling mapserver - can not find proj4 libs Message-ID: Everyone, 353 ./configure --with-ogr=/usr/local/bin/gdal-config --with-gdl=/usr/local/bin /gdal-config --with-proj=/usr/local/lib/ I keep getting this on the results even though these libs are in these directories: configure: checking whether we should include PROJ.4 support...... configure: error: "Could not find projects.h or libproj.a/libproj.so in /usr/local/lib/." I am not sure what is going on - thanks #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From trondmm-mapserver at CRUSADERS.NO Tue Nov 16 11:58:53 2004 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Tue, 16 Nov 2004 20:58:53 +0100 Subject: recompiling mapserver - can not find proj4 libs In-Reply-To: Message-ID: On Tue, Nov 16, 2004 at 11:51:56AM -0800, Joseph Norris wrote: > ./configure \ > --with-ogr=/usr/local/bin/gdal-config \ > --with-gdl=/usr/local/bin/gdal-config \ Shouldn't this be --with-gdal ? > --with-proj=/usr/local/lib/ try without /lib/ --with-proj=/usr/local/ -- Trond Michelsen From mj at SCI.FI Tue Nov 16 13:51:42 2004 From: mj at SCI.FI (Mike Jackson) Date: Tue, 16 Nov 2004 23:51:42 +0200 Subject: recompiling mapserver - can not find proj4 libs In-Reply-To: Message-ID: Joseph Norris wrote: > Everyone, > > > 353 > ./configure --with-ogr=/usr/local/bin/gdal-config --with-gdl=/usr/local/bin > /gdal-config --with-proj=/usr/local/lib/ > > > I keep getting this on the results even though these libs are in these > directories: > > configure: checking whether we should include PROJ.4 support...... > configure: error: "Could not find projects.h or libproj.a/libproj.so in > /usr/local/lib/." > > I am not sure what is going on - thanks > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > There is no rhyme or reason to the combination of expected arguments. I fought with this for 2 days, trial and error. Look at my mapserver-configure.sh script, which works very well now: #!/bin/sh ./configure \ --prefix=/u/local/MAPPING \ --with-proj=/u/local/MAPPING \ --with-postgis=/u/local/MAPPING/bin/pg_config \ --with-httpd=/usr/sbin/apache2 \ --with-php=/u/local/MAPPING/src/php-4.3.9 \ --with-gdal=/u/local/MAPPING/bin/gdal-config \ --with-ogr=/u/local/MAPPING/bin/gdal-config \ --with-wfs \ --with-wfs-client \ --with-wmsclient \ --with-pdf=/usr -- mike From bartvde at XS4ALL.NL Tue Nov 16 12:29:16 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 16 Nov 2004 21:29:16 +0100 Subject: SLD filter with raster layers In-Reply-To: <419A147F.7030109@pobox.com> Message-ID: Hi Frank, okay so that's from the 4.2 days, I did not know that. I read it in the SLD docs on the Wiki. Btw, is there any new documentation for the SLD part of Mapserver coming with the 4.4 release, or is the following link still the most current version? http://www2.dmsolutions.ca/tmp/Mapserver_SLD.html Best regards, Bart On Tue, 16 Nov 2004 09:53:51 -0500, Frank Warmerdam wrote: > Bart van den Eijnden wrote: >> Hi Berend, >> >> is your raster 8 bit? AFAIK it does work but only with 8 bit rasters. > > Bart, > > Note, in MapServer 4.4 the raster classification support should work with > non-8bit layers as well with a few limitations. The SLD definitions are > just converted into class definitions internally I believe. > > Berend Veldkamp wrote: > > Bart, > > > > Yes it's an 8 bit geotiff. Would it make any difference if I use > native > > tiff support instead of GDAL? > > Well, hopefully it won't get any better to use the native support. If > it does > I would want to hear about it! > > Best regards, > -- > ---------------------------------------+-------------------------------------- > 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 > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From bartvde at XS4ALL.NL Tue Nov 16 12:36:03 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 16 Nov 2004 21:36:03 +0100 Subject: Join shape and dbms data: OGR? In-Reply-To: Message-ID: Hi Emil, the problem with the OGR shapefile connector is (or was) that it does not use the spatial index (qix) files, so it isn't very fast ... Question for Frank: Or did this change as well with the current version :) ? I know you were planning on doing this ... Best regards, Bart On Tue, 16 Nov 2004 08:21:20 +0100, Emil Zegers wrote: > Hello Michael, > > I have a question for you about this approach: when using this kind of > join were you able to classify data based on the joined attributes and > display this in the map image? > > I'm asking this because with normal join operation it is not possible to > create thematic maps based on the joined attributes. > > If classifcation works based on this approach the enhancement request I > put in bugzilla (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=674) > can be closed. > > I would be very happy if classifying on joined attributes works this way > (had no time to test this approach yet). > > Regards, > > Emil Zegers > > > Hi Frank, > > thanks for your answer. It is working perfectly now. > > For the moment it is only one table i want to join to the geometry of > the shp-file, so at first > sight performance is good, but i will play with the indexes a little. > > For all who have to use a similar approach here's a mapfile snipplet: > > LAYER > ... > CONNECTIONTYPE OGR > CONNECTION "c:\mstest\data\fnpf.shp" # shapefile holding only > geometry and PID in .dbf > DATA "SELECT * FROM fnpf LEFT JOIN 'ODBC:fnp'.fnp ON > fnpf.PID=fnp.PID" > # join to systemDSN fnp (here msaccess-db "fnp.mdb" with table > fnp) on attribute PID, > # now all fields of the db are also accessible for mapserver, e.g. > "AZJAHR" > LABELITEM "AZJAHR" > ... > END > > Thanks, Michael > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From claudio.trevisani at PMMG.MG.GOV.BR Tue Nov 16 12:52:56 2004 From: claudio.trevisani at PMMG.MG.GOV.BR (claudio cesar trevisani) Date: Tue, 16 Nov 2004 18:52:56 -0200 Subject: Thematic grid map Message-ID: Hi Listers, In Mapinfo, the grid mapping displays data as continuous color gradations across the map. This type of thematic is produced by an interpolation of point data from the source table. A grid file is generated from the data interpolation and displayed as a raster image in a Map window. I need to create a grid mapping like mapinfo, using mapserver, phpmapscript and postgresql (+ postgis and geos). My source table of points is stored in postgresql. Is it possible??? Thanks, Claudio C. Trevisani ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ From assefa at DMSOLUTIONS.CA Tue Nov 16 13:00:42 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 16 Nov 2004 16:00:42 -0500 Subject: SLD filter with raster layers In-Reply-To: Message-ID: There is a bug open on that wich is basically an update of the existing doc and the inegration of it in the mapserver documentation stream. Bart van den Eijnden wrote: > Hi Frank, > > okay so that's from the 4.2 days, I did not know that. I read it in the > SLD docs on the Wiki. > > Btw, is there any new documentation for the SLD part of Mapserver coming > with the 4.4 release, or is the following link still the most current > version? > > http://www2.dmsolutions.ca/tmp/Mapserver_SLD.html > > Best regards, > Bart > > On Tue, 16 Nov 2004 09:53:51 -0500, Frank Warmerdam > wrote: > >> Bart van den Eijnden wrote: >> >>> Hi Berend, >>> >>> is your raster 8 bit? AFAIK it does work but only with 8 bit rasters. >> >> >> Bart, >> >> Note, in MapServer 4.4 the raster classification support should work with >> non-8bit layers as well with a few limitations. The SLD definitions are >> just converted into class definitions internally I believe. >> >> Berend Veldkamp wrote: >> > Bart, >> > >> > Yes it's an 8 bit geotiff. Would it make any difference if I use >> native >> > tiff support instead of GDAL? >> >> Well, hopefully it won't get any better to use the native support. If >> it does >> I would want to hear about it! >> >> Best regards, >> -- >> ---------------------------------------+-------------------------------------- >> >> 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 >> > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From woodbri at SWOODBRIDGE.COM Tue Nov 16 12:33:39 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 16 Nov 2004 15:33:39 -0500 Subject: Another question about shapefiles In-Reply-To: Message-ID: Joseph, I am out of town with limited access so make sure this goes to the list so other can help with it. Joseph Norris said: > Steven, > > Some observations. > > When I do a shpdump of my current California file I get 69 shapes - I also > get 69 records in the dbf file a county record for each county in > California. > However in the file that I am reading zips for California there are over > 1500 lines a line with zip->lat long relation in California. > > How do I reconcile the shape/dbf with 69 records to a dbf file that I > reconstruct from the current dbf. Do I add som 1500+ records to it and > then > do I need to build that many shapes in the copied California shape file? > Or > will the mapserver understand this. What makes you think that you need to have a polygon layer with 69 counties reconcile to a point layer 1500+ zipcode points? The are just different layers that should be rendered differently and therefore should be different data files and have different layer definations. I have 50+ layers in most of my mapfiles. This covers different data layers and different rendering styles at different zoom scales, etc. > In addition I took my zip->lat/long file for California and created > shape/dbf files for this file - not sure what I use polygon, point? It is point data so you had better have created it as POINT type shapefile. > Then I added a layer to my map file pointing at this new cal_zip shape > file. See mapfile markups below. -Steve > As follows: > > LAYER > NAME "california" > TYPE POLYGON > DATA "california" my current California shape file > STATUS DEFAULT > CLASS > COLOR 225 225 185 > END > END > > LAYER > NAME "cal" > TYPE POINT > DATA "cal" # <<< is this right or "cap_zip"??? > STATUS DEFAULT my new cal_zip shape file > CLASS > COLOR 0 0 51 SYMBOL 0 # ADD this; default circle symbol SIZE 5 # Add this to make it bigger > END > END > > Nothing is still showing. I would hope to see even some points in the > file. > > Am I being clear - or have I missed the point totally. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Stephen Woodbridge > Sent: Monday, November 15, 2004 10:13 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Another question about shapefiles > > So if I understand correctly what you really want to do, is to geocode you > database records with a lat/lon based on there zipcode. Then you want to > present the database data as a layer of points based on this lat/lon > value. > > If so then you should write a script to add lat, lon columns to your > database and then for every record in the database populate the lat, lon > based on the zipcode. If you load the zipcode, lat, lon as a new table you > can dothis on the fly with a join. > > Regardless if I understand what you are asking for, youdon't need to > create a shape layer from the zipcode data and even if you did, you would > then be able to display the zipcodes as labels at the zipcode points but > you would have no way to display the mysql data at the respective points. > > Hope this makes sense. > -Steve > > Joseph Norris said: >> Steve, >> >> Thanks for this information. I understand this. However here is my >> situation. I have a shapefile of California. It has its dbf file. >> >> This is a sample: >> >> 0.859846443800379:5.7057500729921:50:49:06:053:Monterey:06:County >> 1.25622233242418:5.28286812594892:51:50:06:107:Tulare:06:County >> >> >> I have another text file of zip codes with lat/long codes. >> >> "01","35004","AL","ACMAR",86.51557,33.584132,6055,0.001499 >> "01","35005","AL","ADAMSVILLE",86.959727,33.588437,10616,0.002627 >> "01","35006","AL","ADGER",87.167455,33.434277,3205,0.000793 >> "01","35007","AL","KEYSTONE",86.812861,33.236868,14218,0.003519 >> "01","35010","AL","NEW SITE",85.951086,32.941445,19942,0.004935 >> "01","35014","AL","ALPINE",86.208934,33.331165,3062,0.000758 >> >> >> I have the whole US - so I have California. >> >> What I am trying to accomplish is to layer the zip code data on top of >> California an by that read a Mysql user table and by zip code place a >> symbol >> where these users are located. >> >> I am doing all of this from a ESRI background that would have made this >> an >> easier via the GUI but not as much fun and definitely not Open Source. >> >> >> BTW - I am doing all of this as proof of concept so that my company >> will >> get into GIS as an extension of one of the best Open Source content >> management systems I have ever worked on - OK - enough of that - but it >> is >> a >> really well designed product. >> >> #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map >> chr >> > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- >> 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >> >> -----Original Message----- >> From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] >> Sent: Monday, November 15, 2004 4:12 AM >> To: Joseph Norris >> Cc: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Another question about shapefiles >> >> Joseph, >> >> In the C interface I think you can open a file in mode "rb+" which will >> allow you to read/write, BUT in general practice I would open the file >> for read, copy it record by record, and then add any new data to the >> file. Otherwise you run the risk of damaging your original file. >> Typically if you need to do this via a multi-user interface, like a web >> form you need to edit a database and not a shapefile as this library has >> not locking and it WILL get trashed. >> >> -Steve >> >> Joseph Norris wrote: >> >>> Stephen, >>> >>> These are really great - I was able to build my shape file from zip >>> file >>> very easily. Now the question is - and I have experimented. >>> >>> I see in the Shapelib docs I see that I can open a shapefile that >>> already >>> exists. Can I then read another file of points and the put these >>> points >> on >>> the original shape? >>> >>> No matter what I do I am getting errors back. I can only find >>> examples >> of >>> code in the pod for the module. >>> >>> Thanks for all your help. >>> >>> #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print >>> @c=map >> chr >>> >> > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- >>> 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >>> >>> -----Original Message----- >>> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On >>> Behalf Of Stephen Woodbridge >>> Sent: Sunday, November 14, 2004 6:14 PM >>> To: MAPSERVER-USERS at lists.umn.edu >>> Subject: Re: [UMN_MAPSERVER-USERS] Another question about shapefiles >>> >>> Joseph, >>> >>> Check out perl modules: >>> >>> Geo::ShapeFile >>> Geo::Shapelib >>> XBase >>> >>> These are handy modules for working with shapefiles and the DBF >>> attributes file. I write scripts all the time for creating, reading and >>> manipulating shapefiles. When I need more performance I usually use the >>> shapelib library and C code. >>> >>> -Steve >>> >>> Joseph Norris wrote: >>> >>>>I have a US zip file containing zip codes and associated lat/long >>>>information. Can I convert this to points on a shapefile? >>>> >>>>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print >>>> @c=map >>> >>> chr >>> >>> >> > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- >>> >>>>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >>>> >>> >>> >> >> > > > > From ummmmm at MYREALBOX.COM Tue Nov 16 14:02:06 2004 From: ummmmm at MYREALBOX.COM (Doug) Date: Tue, 16 Nov 2004 16:02:06 -0600 Subject: Stack trace from timing out PHP MapScript CGI Message-ID: I posted here a couple of weeks ago asking about our CGI PHP MapScript application that appears to quit responding periodically. Context refresher: MapServer/MapScript 4.2.5, PHP 4.3.8 (cgi), PostgreSQL 7.4.3, PostGIS 0.8.2, Apache 2.0.51, Fedora Core 2 SMP (Dual CPU 2GHz P4). Application posts to PHP file, which does a map->draw() (of shapefile layers), followed by a couple of queryByRect() on non-shown (PostGIS) layers, manual point->draw()s with custom, numbered labels, then a map->save(). I had observed that regularly the PHP processes seem to hang or stall, so somebody on #Mapserver suggested that I compile with debug options and try to obtain a stack trace when this happens. Unfortunately, I've been unable to duplicate the exact situation, but I have seen some similar ones where client requests to the PHP CGIs stack up and time out. In fact, I can force that to happen simply by getting several clients to make a simultaneous request of the server. Today, I forced 7 such simultaneous requests, and every single one of them timed out. Normally, when this kind of condition occurs, the MapServer stderr also reports: [Mon Nov 15 21:17:39 2004] [error] [client 32.83.226.185] PHP Fatal error: Maximum execution time of 30 seconds exceeded in var/www/html/offender/map.php on line 87 But this didn't happen in my forced test today. i.e. my clients timed out, but the PHP CGIs didn't seem to. Obviously, I need to play with either my client or server timeouts, but can anything useful be determined by these stack traces?: From last night's "natural" slowdown (which was so bad that most/all requests during a 30 minute period timed out): #0 0x00ac8402 in ?? () #1 0x005e11ea in lseek64 () from /lib/tls/libc.so.6 #2 0x00581a37 in _IO_file_seek_internal () from /lib/tls/libc.so.6 #3 0x0058175a in _IO_new_file_seekoff () from /lib/tls/libc.so.6 #4 0x00578a2a in _IO_seekoff_unlocked () from /lib/tls/libc.so.6 #5 0x0057e08d in fseek () from /lib/tls/libc.so.6 #6 0x0030b5c2 in msSHPReadBounds (psSHP=0x8f0d858, hEntity=36339712, padBounds=0xfef2dd70) at mapshape.c:1163 #7 0x0030bb32 in msSHPWhichShapes (shpfile=0x8fcebc0, rect= {minx = 511572.85125965299, miny = 3562542.8004036499, maxx = 513272.85125965299, maxy = 3563562.8004036499}, debug=0) at mapshape.c:1338 #8 0x0032e14a in msLayerWhichShapes (layer=0x8d92198, rect= {minx = 511572.85125965299, miny = 3562542.8004036499, maxx = 513272.85125965299, maxy = 3563562.8004036499}) at maplayer.c:198 #9 0x00330a02 in msDrawVectorLayer (map=0xf6ff3008, layer=0x8d92198, image=0x8f0e7e0) at mapdraw.c:751 #10 0x00330711 in msDrawLayer (map=0xf6ff3008, layer=0x8d92198, image=0x8f0e7e0) at mapdraw.c:639 #11 0x00330028 in msDrawMap (map=0xf6ff3008) at mapdraw.c:317 #12 0x0030006f in mapObj_draw (self=0xf6ff3008) at mapscript_i.c:419 #13 0x002f2279 in php3_ms_map_draw (ht=0, return_value=0x8d550ac, this_ptr=0x8d5502c, return_value_used=1) at php_mapscript.c:3311 #14 0x0811dcfa in execute (op_array=0x8d650d4) at /usr/src/php-4.3.8/Zend/zend_execute.c:1635 #15 0x0811dac9 in execute (op_array=0x8d425dc) at /usr/src/php-4.3.8/Zend/zend_execute.c:1679 #16 0x0811dac9 in execute (op_array=0x8d3ef8c) at /usr/src/php-4.3.8/Zend/zend_execute.c:1679 #17 0x08112fd3 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/php-4.3.8/Zend/zend.c:891 #18 0x080f089c in php_execute_script (primary_file=0xfef30780)at /usr/src/php-4.3.8/main/main.c:1734 #19 0x081220b2 in main (argc=1, argv=0xfef30844) at /usr/src/php-4.3.8/sapi/cgi/cgi_main.c:1592 From today's artificial one (which lasted less than a minute after the simultaneous requests were finished): #0 0x005fc7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x0050f85a in lseek64 () from /lib/tls/libc.so.6 #2 0x004afbf7 in _IO_file_seek_internal () from /lib/tls/libc.so.6 #3 0x004af91a in _IO_new_file_seekoff () from /lib/tls/libc.so.6 #4 0x004a6bea in _IO_seekoff_unlocked () from /lib/tls/libc.so.6 #5 0x004ac24d in fseek () from /lib/tls/libc.so.6 #6 0x0080c5c2 in msSHPReadBounds (psSHP=0x9d5e190, hEntity=63127552, padBounds=0xfeebf8a0) at mapshape.c:1163 #7 0x0080cb32 in msSHPWhichShapes (shpfile=0x9e1f860, rect={minx = 400998.78413511597, miny = 3697149.2200513999, maxx = 402698.78413511597, maxy = 3698169.2200513999}, debug=0) at mapshape.c:1338 #8 0x0082f14a in msLayerWhichShapes (layer=0x9be1d60, rect={minx = 400998.78413511597, miny = 3697149.2200513999, maxx = 402698.78413511597, maxy = 3698169.2200513999}) at maplayer.c:198 #9 0x00831a02 in msDrawVectorLayer (map=0xf6fc4008, layer=0x9be1d60, image=0x9d5e388) at mapdraw.c:751 #10 0x00831711 in msDrawLayer (map=0xf6fc4008, layer=0x9be1d60, image=0x9d5e388) at mapdraw.c:639 #11 0x00831028 in msDrawMap (map=0xf6fc4008) at mapdraw.c:317 #12 0x0080106f in mapObj_draw (self=0xf6fc4008) at mapscript_i.c:419 #13 0x007f3279 in php3_ms_map_draw (ht=0, return_value=0x9ba4254, this_ptr=0x9ba41d4, return_value_used=1) at php_mapscript.c:3311 #14 0x0811dcfa in execute (op_array=0x9bb4c84) at /usr/src/php-4.3.8/Zend/zend_execute.c:1635 #15 0x0811dac9 in execute (op_array=0x9b917dc) at /usr/src/php-4.3.8/Zend/zend_execute.c:1679 #16 0x0811dac9 in execute (op_array=0x9b8deec) at /usr/src/php-4.3.8/Zend/zend_execute.c:1679 #17 0x08112fd3 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/php-4.3.8/Zend/zend.c:891 #18 0x080f089c in php_execute_script (primary_file=0xfeec22b0) at /usr/src/php-4.3.8/main/main.c:1734 #19 0x081220b2 in main (argc=1, argv=0xfeec2374) at /usr/src/php-4.3.8/sapi/cgi/cgi_main.c:1592 Basically, it seems that it takes very few simultaneous requests for our system to fall behind. If it gets even more requests than that minimum, it seems to be unable to recover for sometimes half an hour or more. I've seen people claiming very good performance of similar applications on slower systems, so I'm trying to understand what could be causing this behaviour. Here's hoping the stack traces will at least help us pinpoint the likely cuplrit(s). Doug From sirronj at PACBELL.NET Tue Nov 16 14:26:22 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Tue, 16 Nov 2004 14:26:22 -0800 Subject: recompiling mapserver - can not find proj4 libs In-Reply-To: <20041116195853.GD17732@crusaders.no> Message-ID: Thanks for noticing this Trond - More eyes less errors - I did not catch this. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Trond Michelsen Sent: Tuesday, November 16, 2004 11:59 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] recompiling mapserver - can not find proj4 libs On Tue, Nov 16, 2004 at 11:51:56AM -0800, Joseph Norris wrote: > ./configure \ > --with-ogr=/usr/local/bin/gdal-config \ > --with-gdl=/usr/local/bin/gdal-config \ Shouldn't this be --with-gdal ? > --with-proj=/usr/local/lib/ try without /lib/ --with-proj=/usr/local/ -- Trond Michelsen From gsw at GLOBEXPLORER.COM Tue Nov 16 14:30:05 2004 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Tue, 16 Nov 2004 14:30:05 -0800 Subject: Stack trace from timing out PHP MapScript CGI Message-ID: Doug, Don't know much about PHP or the possible issues of Mapserver itself, but I'd check the postgres side of things by running equivalent SQL with "EXPLAIN ANALYZE" to make sure that indexes are being used and that its returning an appropriate number of rows. You might also try running the same queries against postgres simultaneously and see if the response bottleneck is there. If it is you might post back the results; if the response is snappy from postgres itself then it would seem the delay might be elsewhere, or in a combination of postgres and mapserver fighting for disk i/o. You might also post some details about the server(s) being used, # of CPUS, OS, disk arrangement etc. Sometimes running top or other diagnostics will help isolate where the problem is. HTH, Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: Doug [mailto:ummmmm at MYREALBOX.COM] Sent: Tue 11/16/2004 2:02 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] Stack trace from timing out PHP MapScript CGI I posted here a couple of weeks ago asking about our CGI PHP MapScript application that appears to quit responding periodically. Context refresher: MapServer/MapScript 4.2.5, PHP 4.3.8 (cgi), PostgreSQL 7.4.3, PostGIS 0.8.2, Apache 2.0.51, Fedora Core 2 SMP (Dual CPU 2GHz P4). Application posts to PHP file, which does a map->draw() (of shapefile layers), followed by a couple of queryByRect() on non-shown (PostGIS) layers, manual point->draw()s with custom, numbered labels, then a map->save(). I had observed that regularly the PHP processes seem to hang or stall, so somebody on #Mapserver suggested that I compile with debug options and try to obtain a stack trace when this happens. Unfortunately, I've been unable to duplicate the exact situation, but I have seen some similar ones where client requests to the PHP CGIs stack up and time out. In fact, I can force that to happen simply by getting several clients to make a simultaneous request of the server. Today, I forced 7 such simultaneous requests, and every single one of them timed out. Normally, when this kind of condition occurs, the MapServer stderr also reports: [Mon Nov 15 21:17:39 2004] [error] [client 32.83.226.185] PHP Fatal error: Maximum execution time of 30 seconds exceeded in var/www/html/offender/map.php on line 87 But this didn't happen in my forced test today. i.e. my clients timed out, but the PHP CGIs didn't seem to. Obviously, I need to play with either my client or server timeouts, but can anything useful be determined by these stack traces?: From last night's "natural" slowdown (which was so bad that most/all requests during a 30 minute period timed out): #0 0x00ac8402 in ?? () #1 0x005e11ea in lseek64 () from /lib/tls/libc.so.6 #2 0x00581a37 in _IO_file_seek_internal () from /lib/tls/libc.so.6 #3 0x0058175a in _IO_new_file_seekoff () from /lib/tls/libc.so.6 #4 0x00578a2a in _IO_seekoff_unlocked () from /lib/tls/libc.so.6 #5 0x0057e08d in fseek () from /lib/tls/libc.so.6 #6 0x0030b5c2 in msSHPReadBounds (psSHP=0x8f0d858, hEntity=36339712, padBounds=0xfef2dd70) at mapshape.c:1163 #7 0x0030bb32 in msSHPWhichShapes (shpfile=0x8fcebc0, rect= {minx = 511572.85125965299, miny = 3562542.8004036499, maxx = 513272.85125965299, maxy = 3563562.8004036499}, debug=0) at mapshape.c:1338 #8 0x0032e14a in msLayerWhichShapes (layer=0x8d92198, rect= {minx = 511572.85125965299, miny = 3562542.8004036499, maxx = 513272.85125965299, maxy = 3563562.8004036499}) at maplayer.c:198 #9 0x00330a02 in msDrawVectorLayer (map=0xf6ff3008, layer=0x8d92198, image=0x8f0e7e0) at mapdraw.c:751 #10 0x00330711 in msDrawLayer (map=0xf6ff3008, layer=0x8d92198, image=0x8f0e7e0) at mapdraw.c:639 #11 0x00330028 in msDrawMap (map=0xf6ff3008) at mapdraw.c:317 #12 0x0030006f in mapObj_draw (self=0xf6ff3008) at mapscript_i.c:419 #13 0x002f2279 in php3_ms_map_draw (ht=0, return_value=0x8d550ac, this_ptr=0x8d5502c, return_value_used=1) at php_mapscript.c:3311 #14 0x0811dcfa in execute (op_array=0x8d650d4) at /usr/src/php-4.3.8/Zend/zend_execute.c:1635 #15 0x0811dac9 in execute (op_array=0x8d425dc) at /usr/src/php-4.3.8/Zend/zend_execute.c:1679 #16 0x0811dac9 in execute (op_array=0x8d3ef8c) at /usr/src/php-4.3.8/Zend/zend_execute.c:1679 #17 0x08112fd3 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/php-4.3.8/Zend/zend.c:891 #18 0x080f089c in php_execute_script (primary_file=0xfef30780)at /usr/src/php-4.3.8/main/main.c:1734 #19 0x081220b2 in main (argc=1, argv=0xfef30844) at /usr/src/php-4.3.8/sapi/cgi/cgi_main.c:1592 From today's artificial one (which lasted less than a minute after the simultaneous requests were finished): #0 0x005fc7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x0050f85a in lseek64 () from /lib/tls/libc.so.6 #2 0x004afbf7 in _IO_file_seek_internal () from /lib/tls/libc.so.6 #3 0x004af91a in _IO_new_file_seekoff () from /lib/tls/libc.so.6 #4 0x004a6bea in _IO_seekoff_unlocked () from /lib/tls/libc.so.6 #5 0x004ac24d in fseek () from /lib/tls/libc.so.6 #6 0x0080c5c2 in msSHPReadBounds (psSHP=0x9d5e190, hEntity=63127552, padBounds=0xfeebf8a0) at mapshape.c:1163 #7 0x0080cb32 in msSHPWhichShapes (shpfile=0x9e1f860, rect={minx = 400998.78413511597, miny = 3697149.2200513999, maxx = 402698.78413511597, maxy = 3698169.2200513999}, debug=0) at mapshape.c:1338 #8 0x0082f14a in msLayerWhichShapes (layer=0x9be1d60, rect={minx = 400998.78413511597, miny = 3697149.2200513999, maxx = 402698.78413511597, maxy = 3698169.2200513999}) at maplayer.c:198 #9 0x00831a02 in msDrawVectorLayer (map=0xf6fc4008, layer=0x9be1d60, image=0x9d5e388) at mapdraw.c:751 #10 0x00831711 in msDrawLayer (map=0xf6fc4008, layer=0x9be1d60, image=0x9d5e388) at mapdraw.c:639 #11 0x00831028 in msDrawMap (map=0xf6fc4008) at mapdraw.c:317 #12 0x0080106f in mapObj_draw (self=0xf6fc4008) at mapscript_i.c:419 #13 0x007f3279 in php3_ms_map_draw (ht=0, return_value=0x9ba4254, this_ptr=0x9ba41d4, return_value_used=1) at php_mapscript.c:3311 #14 0x0811dcfa in execute (op_array=0x9bb4c84) at /usr/src/php-4.3.8/Zend/zend_execute.c:1635 #15 0x0811dac9 in execute (op_array=0x9b917dc) at /usr/src/php-4.3.8/Zend/zend_execute.c:1679 #16 0x0811dac9 in execute (op_array=0x9b8deec) at /usr/src/php-4.3.8/Zend/zend_execute.c:1679 #17 0x08112fd3 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/php-4.3.8/Zend/zend.c:891 #18 0x080f089c in php_execute_script (primary_file=0xfeec22b0) at /usr/src/php-4.3.8/main/main.c:1734 #19 0x081220b2 in main (argc=1, argv=0xfeec2374) at /usr/src/php-4.3.8/sapi/cgi/cgi_main.c:1592 Basically, it seems that it takes very few simultaneous requests for our system to fall behind. If it gets even more requests than that minimum, it seems to be unable to recover for sometimes half an hour or more. I've seen people claiming very good performance of similar applications on slower systems, so I'm trying to understand what could be causing this behaviour. Here's hoping the stack traces will at least help us pinpoint the likely cuplrit(s). Doug From sirronj at PACBELL.NET Tue Nov 16 14:57:00 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Tue, 16 Nov 2004 14:57:00 -0800 Subject: Ok - I don't understand - still another issue Message-ID: To all, You have been very helpful and most patient! I pull my shp,dbf,shx files into fGIS windows desktop and I see California all divided up by its counties according to the dbf file. However when I try to see the same thing with the same files via mapserver all I get is the grayish shadowy California view - no division lines at all. Am I missing something in my class statement or what? Thanks again. I now have my map file like this: MAP NAME TESTMAP STATUS ON EXTENT 5996283.000 2041773.253 6327844.002 2497976.501 IMAGETYPE GIF SIZE 600 600 SHAPEPATH "data" IMAGECOLOR 255 255 255 WEB HEADER header.html FOOTER footer.html IMAGEPATH /usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/tmp/ IMAGEURL /maps/tmp/ TEMPLATE map_template.html END LAYER NAME "Mendo_Zip" TYPE POLYGON DATA "Mendo_Zip" STATUS DEFAULT CLASS COLOR 225 225 185 END END END #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From woodbri at SWOODBRIDGE.COM Tue Nov 16 15:02:49 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 16 Nov 2004 18:02:49 -0500 Subject: Ok - I don't understand - still another issue In-Reply-To: Message-ID: Joseph, I don't have "OUTLINECOLOR 0 0 0" defined in your CLASS block. You need to get a copy of the Mapfile Reference from the web site and experiment with the various options and/or look at the demo mapfile and read up on any options that they are using that you are not using to better understand what all the options do. There are a lot of them and it requires a little reading and experimenting. -Steve Joseph Norris said: > To all, > > You have been very helpful and most patient! > > I pull my shp,dbf,shx files into fGIS windows desktop and I see California > all divided up by its counties according to the dbf file. However when I > try to see the same thing with the same files via mapserver all I get is > the grayish shadowy California view - no division lines at all. Am I > missing something in my class statement or what? > > Thanks again. > > I now have my map file like this: > > MAP > NAME TESTMAP > STATUS ON > EXTENT 5996283.000 2041773.253 6327844.002 2497976.501 > IMAGETYPE GIF > SIZE 600 600 > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > > WEB > HEADER header.html > FOOTER footer.html > IMAGEPATH > /usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/tmp/ > IMAGEURL /maps/tmp/ > TEMPLATE map_template.html > END > > LAYER > NAME "Mendo_Zip" > TYPE POLYGON > DATA "Mendo_Zip" > STATUS DEFAULT > CLASS > COLOR 225 225 185 > END > END > > > END > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > From warmerdam at POBOX.COM Tue Nov 16 17:51:14 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 16 Nov 2004 20:51:14 -0500 Subject: MrSid In-Reply-To: <20041116193400.81358.qmail@web54204.mail.yahoo.com> Message-ID: Thomas Chesky wrote: > I searched the archive but could not conclude postively that I can use > MrSid with Mapserver (via GDAL) I found articles about licensing/sdk > contstraints, others with no such limitations. Please let me know which > version of GDAL supports MrSid if any and what is the procedure to have > such tiles accessible from MapServer. Thomas, All modern GDAL versions (eg. 1.2.0+) include the code for MrSID support. My understanding is that the SDK available for download from Lizardtech is also now free (as in no cost) for decoding. So, if you are on a platform for which they provide the SDK and if you are willing to build stuff yourself from source you can render MrSID images in MapServer. Best regards, -- ---------------------------------------+-------------------------------------- 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 grs at GRSGIS.COM Tue Nov 16 17:47:29 2004 From: grs at GRSGIS.COM (Geographic Resource Solutions) Date: Tue, 16 Nov 2004 17:47:29 -0800 Subject: MS 4.2 binariy with TIFF Input Support ? Message-ID: I notice that the current binary downloads for Windows versions of version 4.2 are pretty limited in terms of the raster formats that can be input. Are there currently downloadable versions of v4.2 that support tif/geotiff files like the prior v3.6.7 version supported or should I just use these older binary versions ? Thanks Ken Stumpf Geographic Resource Solutions 1125 16th Street, Suite 213 Arcata, CA 95521 Phone: (707) 822-8005 Fax: (707) 822-2864 www.grsgis.com From warmerdam at POBOX.COM Tue Nov 16 17:56:02 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 16 Nov 2004 20:56:02 -0500 Subject: MS 4.2 binariy with TIFF Input Support ? In-Reply-To: <200411170153.iAH1rVCl342736@pimout3-ext.prodigy.net> Message-ID: Geographic Resource Solutions wrote: > I notice that the current binary downloads for Windows versions of version > 4.2 are pretty limited in terms of the raster formats that can be input. > Are there currently downloadable versions of v4.2 that support tif/geotiff > files like the prior v3.6.7 version supported or should I just use these > older binary versions ? Ken, Do the binaries in question include INPUT=GDAL? If so, they have GeoTIFF support. Generally we try not to build using the "builtin" TIFF driver since it has so many limitations relative to the GeoTIFF support in GDAL. Best regards, -- ---------------------------------------+-------------------------------------- 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 thomaschesky at YAHOO.COM Tue Nov 16 21:14:00 2004 From: thomaschesky at YAHOO.COM (Thomas Chesky) Date: Tue, 16 Nov 2004 21:14:00 -0800 Subject: MrSid In-Reply-To: <419AAE92.9000402@pobox.com> Message-ID: Frank, Thanks. I found the SDK download at http://developer.lizardtech.com/data/download/downloads.asp#redhat with free registration. I'll give it a try. Best, Frank Warmerdam wrote: Thomas Chesky wrote: > I searched the archive but could not conclude postively that I can use > MrSid with Mapserver (via GDAL) I found articles about licensing/sdk > contstraints, others with no such limitations. Please let me know which > version of GDAL supports MrSid if any and what is the procedure to have > such tiles accessible from MapServer. Thomas, All modern GDAL versions (eg. 1.2.0+) include the code for MrSID support. My understanding is that the SDK available for download from Lizardtech is also now free (as in no cost) for decoding. So, if you are on a platform for which they provide the SDK and if you are willing to build stuff yourself from source you can render MrSID images in MapServer. Best regards, -- ---------------------------------------+-------------------------------------- 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 --------------------------------- Do you Yahoo!? The all-new My Yahoo! ? Get yours free! -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.schwarzer at GRID.UNEP.CH Tue Nov 16 22:24:18 2004 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Wed, 17 Nov 2004 07:24:18 +0100 Subject: The Making of a Web Map - 2004 Message-ID: FYI, ....snapshot of the technology that is broadly applied to today's applications that employ geospatial mapping technology for the internet .... http://directionsmag.com/article.php?article_id=703&trv=1&PHPSESSID=be7158240277f6ec92740aa373734687 Stefan _______________________________________ Stefan Schwarzer GIS & Data Management UNEP/DEWA/GRID-Geneva Chemin des Anemones 11 CH - 1219 Chatelaine Switzerland Tel: (+41) 22.917.83.49 Fax: (+41) 22.917.80.29 Email: stefan.schwarzer at grid.unep.ch Internet: http://geodata.grid.unep.ch/ _______________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andrea.Giacomelli at CH2M.COM Wed Nov 17 04:24:01 2004 From: Andrea.Giacomelli at CH2M.COM (Andrea Giacomelli) Date: Wed, 17 Nov 2004 13:24:01 +0100 Subject: managing labels+check on usage of labelcache Message-ID: Hi, I'd like to use "county names" as labels in a map. given the type of morphology of the admin boundaries (mix of county shapes and length of names quite variable, tending to be long), I need to zoom to a rather small scale to avoid names being omitted (if I keep the FORCE flag to FALSE for the labels), or over-writing (if the FORCE flag is set to TRUE). e.g. I have tried activating the BUFFER option to improve the output, but I don't observe any differences in my output... a doubt I have first of all is that I am passing the proper labelcache assignment via PHP mapscript. $myLayer2->set("labelcache",MS_TRUE); should I be using MS_ON or "on" instead of MS_TRUE ? TIA for any feedback, Andrea -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivano.picco at AQUPI.TK Wed Nov 17 07:06:52 2004 From: ivano.picco at AQUPI.TK (Ivano Picco) Date: Wed, 17 Nov 2004 09:06:52 -0600 Subject: Mapscript: How to get all shapes from a layer Message-ID: Hi list, Thanks a lot for your help in the past days. I've another question for you: I have to get geometry of all shapes from a layer with a perl script. Since now I've used queryByRect and two nested loops to get the points like snipplet code below: [...CUT...] $map->prepareQuery(); my $return=$layer->queryByRect($map, $map->{extent}); my $results=$layer->getResults(); if ( $results!=mapscript::MS_FAILURE ){ my $i=1; $layer->open(); while ( $i<$results->{numresults} ){ my $result= $results->getResult($i); my $shape= $layer->getFeature($result->{shapeindex},$result->{tileindex}); for($j=0; $j<$shape->{numlines}; $j++) { my $part = $shape->get($j); for($k=0; $k<$part->{numpoints}; $k++) { my $point = $part->get($k); [...CUT...] With this I have to get data from db many times: the first during queryByRect to build the resultCache, the others to retrieve every single shape. This approach takes about ten second to get 4886 shapes from an Oracle Spatial connection. With a drawQuery it tooks only 2 second to retrieve data and draw image. I look deep into source code to find how to get data one time only and retrieve geometry directly from memory (like draw image code or queryBy...). I found this two function: msLayerWhichShapes and msLayerNextShapes. The first it's what I need to get all shapes, the second could be used to get single shape from memory, but they aren't wrapped on perl mapscript. I try to put it into SWIG wrapped code, but I made some mistake, and now my script doesn't run. However, I think this it's the wrong way. After some day spending time on documentation I'm back to you. Are there any methods to use this two functions? or what's the right method to get all geometry from a single layer? For developer: Do you think it's more simple to wrap the unwrapped functions than spending time coding a new method? I hope you could help me, sorry for my english, Thanks a lot, Ivano Picco From ummmmm at MYREALBOX.COM Wed Nov 17 07:11:32 2004 From: ummmmm at MYREALBOX.COM (Doug) Date: Wed, 17 Nov 2004 09:11:32 -0600 Subject: Stack trace from timing out PHP MapScript CGI In-Reply-To: <71E37EF6B7DCC1499CEA0316A256832801D4BB14@loki.wc.globexplorer.net> Message-ID: Thanks for the ideas. "top" does show 100% CPU use when the requests are being serviced. Don't know if that's normal. Again, this is on Fedora Core 2 with a dual-CPU, 2GHz P4 machine. I'm not sure of the disk arrangement, but I can find that out. I'll also see if we can run the Postgres queries directly. Gregory S. Williamson wrote: > Doug, > > Don't know much about PHP or the possible issues of Mapserver itself, but I'd check the postgres side of things by running equivalent SQL with "EXPLAIN ANALYZE" to make sure that indexes are being used and that its returning an appropriate number of rows. You might also try running the same queries against postgres simultaneously and see if the response bottleneck is there. If it is you might post back the results; if the response is snappy from postgres itself then it would seem the delay might be elsewhere, or in a combination of postgres and mapserver fighting for disk i/o. > > You might also post some details about the server(s) being used, # of CPUS, OS, disk arrangement etc. Sometimes running top or other diagnostics will help isolate where the problem is. > > HTH, > > Greg Williamson > DBA > GlobeXplorer LLC > > > -----Original Message----- > From: Doug [mailto:ummmmm at MYREALBOX.COM] > Sent: Tue 11/16/2004 2:02 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Cc: > Subject: [UMN_MAPSERVER-USERS] Stack trace from timing out PHP MapScript CGI > I posted here a couple of weeks ago asking about our CGI PHP MapScript > application that appears to quit responding periodically. > > Context refresher: > > MapServer/MapScript 4.2.5, PHP 4.3.8 (cgi), PostgreSQL 7.4.3, PostGIS 0.8.2, > Apache 2.0.51, Fedora Core 2 SMP (Dual CPU 2GHz P4). > > Application posts to PHP file, which does a map->draw() (of shapefile layers), > followed by a couple of queryByRect() on non-shown (PostGIS) layers, manual > point->draw()s with custom, numbered labels, then a map->save(). > > I had observed that regularly the PHP processes seem to hang or stall, so > somebody on #Mapserver suggested that I compile with debug options and try to > obtain a stack trace when this happens. > > Unfortunately, I've been unable to duplicate the exact situation, but I have > seen some similar ones where client requests to the PHP CGIs stack up and time > out. In fact, I can force that to happen simply by getting several clients to > make a simultaneous request of the server. Today, I forced 7 such > simultaneous requests, and every single one of them timed out. Normally, when > this kind of condition occurs, the MapServer stderr also reports: > > [Mon Nov 15 21:17:39 2004] [error] [client 32.83.226.185] PHP Fatal error: > Maximum execution time of 30 seconds exceeded in var/www/html/offender/map.php > on line 87 > > But this didn't happen in my forced test today. i.e. my clients timed out, > but the PHP CGIs didn't seem to. Obviously, I need to play with either my > client or server timeouts, but can anything useful be determined by these > stack traces?: > > From last night's "natural" slowdown (which was so bad that most/all requests > during a 30 minute period timed out): > > #0 0x00ac8402 in ?? () > #1 0x005e11ea in lseek64 () from /lib/tls/libc.so.6 > #2 0x00581a37 in _IO_file_seek_internal () from /lib/tls/libc.so.6 > #3 0x0058175a in _IO_new_file_seekoff () from /lib/tls/libc.so.6 > #4 0x00578a2a in _IO_seekoff_unlocked () from /lib/tls/libc.so.6 > #5 0x0057e08d in fseek () from /lib/tls/libc.so.6 > #6 0x0030b5c2 in msSHPReadBounds (psSHP=0x8f0d858, hEntity=36339712, > padBounds=0xfef2dd70) at mapshape.c:1163 > #7 0x0030bb32 in msSHPWhichShapes (shpfile=0x8fcebc0, rect= {minx = > 511572.85125965299, miny = 3562542.8004036499, maxx = 513272.85125965299, maxy > = 3563562.8004036499}, debug=0) at mapshape.c:1338 > #8 0x0032e14a in msLayerWhichShapes (layer=0x8d92198, rect= {minx = > 511572.85125965299, miny = 3562542.8004036499, maxx = 513272.85125965299, maxy > = 3563562.8004036499}) at maplayer.c:198 > #9 0x00330a02 in msDrawVectorLayer (map=0xf6ff3008, layer=0x8d92198, > image=0x8f0e7e0) at mapdraw.c:751 > #10 0x00330711 in msDrawLayer (map=0xf6ff3008, layer=0x8d92198, > image=0x8f0e7e0) at mapdraw.c:639 > #11 0x00330028 in msDrawMap (map=0xf6ff3008) at mapdraw.c:317 > #12 0x0030006f in mapObj_draw (self=0xf6ff3008) at mapscript_i.c:419 > #13 0x002f2279 in php3_ms_map_draw (ht=0, return_value=0x8d550ac, > this_ptr=0x8d5502c, return_value_used=1) at php_mapscript.c:3311 > #14 0x0811dcfa in execute (op_array=0x8d650d4) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1635 > #15 0x0811dac9 in execute (op_array=0x8d425dc) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1679 > #16 0x0811dac9 in execute (op_array=0x8d3ef8c) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1679 > #17 0x08112fd3 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at > /usr/src/php-4.3.8/Zend/zend.c:891 > #18 0x080f089c in php_execute_script (primary_file=0xfef30780)at > /usr/src/php-4.3.8/main/main.c:1734 > #19 0x081220b2 in main (argc=1, argv=0xfef30844) at > /usr/src/php-4.3.8/sapi/cgi/cgi_main.c:1592 > > From today's artificial one (which lasted less than a minute after the > simultaneous requests were finished): > > #0 0x005fc7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 > #1 0x0050f85a in lseek64 () from /lib/tls/libc.so.6 > #2 0x004afbf7 in _IO_file_seek_internal () from /lib/tls/libc.so.6 > #3 0x004af91a in _IO_new_file_seekoff () from /lib/tls/libc.so.6 > #4 0x004a6bea in _IO_seekoff_unlocked () from /lib/tls/libc.so.6 > #5 0x004ac24d in fseek () from /lib/tls/libc.so.6 > #6 0x0080c5c2 in msSHPReadBounds (psSHP=0x9d5e190, hEntity=63127552, > padBounds=0xfeebf8a0) at mapshape.c:1163 > #7 0x0080cb32 in msSHPWhichShapes (shpfile=0x9e1f860, rect={minx = > 400998.78413511597, miny = 3697149.2200513999, maxx = 402698.78413511597, maxy > = 3698169.2200513999}, debug=0) at mapshape.c:1338 > #8 0x0082f14a in msLayerWhichShapes (layer=0x9be1d60, rect={minx = > 400998.78413511597, miny = 3697149.2200513999, maxx = 402698.78413511597, maxy > = 3698169.2200513999}) at maplayer.c:198 > #9 0x00831a02 in msDrawVectorLayer (map=0xf6fc4008, layer=0x9be1d60, > image=0x9d5e388) at mapdraw.c:751 > #10 0x00831711 in msDrawLayer (map=0xf6fc4008, layer=0x9be1d60, > image=0x9d5e388) at mapdraw.c:639 > #11 0x00831028 in msDrawMap (map=0xf6fc4008) at mapdraw.c:317 > #12 0x0080106f in mapObj_draw (self=0xf6fc4008) at mapscript_i.c:419 > #13 0x007f3279 in php3_ms_map_draw (ht=0, return_value=0x9ba4254, > this_ptr=0x9ba41d4, return_value_used=1) at php_mapscript.c:3311 > #14 0x0811dcfa in execute (op_array=0x9bb4c84) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1635 > #15 0x0811dac9 in execute (op_array=0x9b917dc) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1679 > #16 0x0811dac9 in execute (op_array=0x9b8deec) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1679 > #17 0x08112fd3 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at > /usr/src/php-4.3.8/Zend/zend.c:891 > #18 0x080f089c in php_execute_script (primary_file=0xfeec22b0) at > /usr/src/php-4.3.8/main/main.c:1734 > #19 0x081220b2 in main (argc=1, argv=0xfeec2374) at > /usr/src/php-4.3.8/sapi/cgi/cgi_main.c:1592 > > Basically, it seems that it takes very few simultaneous requests for our > system to fall behind. If it gets even more requests than that minimum, it > seems to be unable to recover for sometimes half an hour or more. > > I've seen people claiming very good performance of similar applications on > slower systems, so I'm trying to understand what could be causing this behaviour. > > Here's hoping the stack traces will at least help us pinpoint the likely > cuplrit(s). > > Doug > > From temiz at DEPREM.GOV.TR Wed Nov 17 06:09:56 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Wed, 17 Nov 2004 16:09:56 +0200 Subject: wrong in extensions Message-ID: hello my extent in map file: EXTENT 419630 4510820 516250 4617510 my unzoomed -initial extent in php file gives: Array ( [0] => 414562.225 [1] => 4510820 [2] => 521317.775 [3] => 4617510 ) could you possibly tell me why x values are different, but y are same ? how can I make correction on x values ? should x values in array same as in map file EXTENT ? kind regards Ahmet Temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From sgillies at FRII.COM Wed Nov 17 07:33:30 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 17 Nov 2004 08:33:30 -0700 Subject: Mapscript: How to get all shapes from a layer In-Reply-To: Message-ID: On Nov 17, 2004, at 8:06 AM, Ivano Picco wrote: > Hi list, > Thanks a lot for your help in the past days. I've another question for > you: > I have to get geometry of all shapes from a layer with a perl script. > Since > now I've used queryByRect and two nested loops to get the points like > snipplet code below: > > [...CUT...] > $map->prepareQuery(); > my $return=$layer->queryByRect($map, $map->{extent}); > my $results=$layer->getResults(); > if ( $results!=mapscript::MS_FAILURE ){ > my $i=1; > $layer->open(); > while ( $i<$results->{numresults} ){ > my $result= $results->getResult($i); > my $shape= > $layer->getFeature($result->{shapeindex},$result->{tileindex}); > for($j=0; $j<$shape->{numlines}; $j++) { > my $part = $shape->get($j); > for($k=0; $k<$part->{numpoints}; $k++) { > my $point = $part->get($k); > [...CUT...] > > With this I have to get data from db many times: the first during > queryByRect to build the resultCache, the others to retrieve every > single > shape. This approach takes about ten second to get 4886 shapes from an > Oracle Spatial connection. With a drawQuery it tooks only 2 second to > retrieve data and draw image. I look deep into source code to find how > to > get data one time only and retrieve geometry directly from memory > (like draw > image code or queryBy...). I found this two function: > msLayerWhichShapes and > msLayerNextShapes. The first it's what I need to get all shapes, the > second > could be used to get single shape from memory, but they aren't wrapped > on > perl mapscript. I try to put it into SWIG wrapped code, but I made some > mistake, and now my script doesn't run. However, I think this it's the > wrong way. > After some day spending time on documentation I'm back to you. > Are there any methods to use this two functions? or what's the right > method > to get all geometry from a single layer? > For developer: Do you think it's more simple to wrap the unwrapped > functions > than spending time coding a new method? > > I hope you could help me, sorry for my english, > Thanks a lot, > Ivano Picco > Hi Ivano, There is not yet a method to get all features from a layer, or even to iterate efficiently through query results. For now, I suggest you access your features tables directly using the oracle DBI or use an OGR driver for other data types. I'm willing to help you with developing this new feature. Will you enter a new enhancement issue in the MapServer bugzilla? If you make it under the mapscript-swig component, I will be alerted to it. It's too late for this enhancement to be in the next 4.4 release, but we could start to work on it for the next one. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From Tom.Kralidis at EC.GC.CA Wed Nov 17 07:45:07 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 17 Nov 2004 10:45:07 -0500 Subject: outputformat and default image format output Message-ID: Hi, In my mapfile, I've defined: OUTPUTFORMAT NAME GEOTIFF_RGB DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE RGB EXTENSION "tif" END ...for some raster data, which is fine. However, it seems to have taken over my app/service as the default format. i.e. if I request: http://host/url?mode=legend&layers=roadlayer ..this gives me back a prompt to download a TIFF image. If I comment out the OUTPUTFORMAT object, I get back a GIF image, which is web friendly. Any ideas on how to define OUTPUTFORMAT and making sure a web friendly format is returned on requests? Thanks ..Tom From randy.page at TERRAVERGE.COM Wed Nov 17 08:08:54 2004 From: randy.page at TERRAVERGE.COM (Randy Page) Date: Wed, 17 Nov 2004 10:08:54 -0600 Subject: Getting map extents using mode=map Message-ID: Hi All, I am using MapServer CGI, and have a questing regarding mode=map. In the past I have used mode=browse, which allowed me to return information such as the map extents and scale via the template. However, I now need to switch to mode=map, and need to know if there is a way to retrieve the extents and scale of the image produced. Any suggestions? Thanks, Randy Page From sobomsawin at KASSINI.COM Wed Nov 17 08:28:32 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 17 Nov 2004 11:28:32 -0500 Subject: [UMN_MAPSERVER-USERS] wrong in extensions In-Reply-To: <419B5BB4.5000506@deprem.gov.tr> Message-ID: Temiz, This bias is due to the size of your actual map. Mapserver must adjust the extent to keep sqared pixels in the final picture. So, if your extents in your mapfile are rectangular and your map size is square, Mapserver must change the X extents to fit in the map size. Search into the Mapserver user list, there is a discussion about this subject... Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de temiz Envoy??: 17 novembre 2004 09:10 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] wrong in extensions hello my extent in map file: EXTENT 419630 4510820 516250 4617510 my unzoomed -initial extent in php file gives: Array ( [0] => 414562.225 [1] => 4510820 [2] => 521317.775 [3] => 4617510 ) could you possibly tell me why x values are different, but y are same ? how can I make correction on x values ? should x values in array same as in map file EXTENT ? kind regards Ahmet Temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 From ealpert at DIGITALGLOBE.COM Wed Nov 17 08:29:28 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 17 Nov 2004 09:29:28 -0700 Subject: Getting map extents using mode=map Message-ID: Presumably you need just the image (mode=map) because you've wrapped it within your application. Now if you need other information out of the mapfile (extents) then you should consider looking into mapscript. Mapscript will allow you to get *any* information you need from the mapfile features. I've found this to be incrediably useful. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy Page Sent: Wednesday, November 17, 2004 9:09 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Getting map extents using mode=map Hi All, I am using MapServer CGI, and have a questing regarding mode=map. In the past I have used mode=browse, which allowed me to return information such as the map extents and scale via the template. However, I now need to switch to mode=map, and need to know if there is a way to retrieve the extents and scale of the image produced. Any suggestions? Thanks, Randy Page From ed at TOPOZONE.COM Wed Nov 17 08:37:19 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 17 Nov 2004 11:37:19 -0500 Subject: Getting map extents using mode=map Message-ID: Randy - If you use mode=map you must SPECIFY the extents of the map when you make the request. You can't "retrieve" them since mode=map only returns an image, but you can try to remember the extents you specified when you made the request. Unless you requested an area of a different shape than your image, what you get is what you asked for. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy Page Sent: Wednesday, November 17, 2004 11:09 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Getting map extents using mode=map Hi All, I am using MapServer CGI, and have a questing regarding mode=map. In the past I have used mode=browse, which allowed me to return information such as the map extents and scale via the template. However, I now need to switch to mode=map, and need to know if there is a way to retrieve the extents and scale of the image produced. Any suggestions? Thanks, Randy Page From ed at TOPOZONE.COM Wed Nov 17 08:42:49 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 17 Nov 2004 11:42:49 -0500 Subject: Stack trace from timing out PHP MapScript CGI Message-ID: Doug - Having "top" not show 100% CPU use is "normal" if the CPU is NOT the problem. That would be the case, for example, if your disk subsystem were the bottleneck. You should definitely find out as much detail as you can about your disk arrangement. A single IDE drive will have a hard time handling a large number of random requests, for example, which seems to be consistent with the symptom you're seeing. There could be other causes, of course, but it's worth looking into this one. You should also know whether those disks are doing OTHER things at the same time, or if they're dedicated to MapServer data serving. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Doug Sent: Wednesday, November 17, 2004 10:12 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Stack trace from timing out PHP MapScript CGI Thanks for the ideas. "top" does show 100% CPU use when the requests are being serviced. Don't know if that's normal. Again, this is on Fedora Core 2 with a dual-CPU, 2GHz P4 machine. I'm not sure of the disk arrangement, but I can find that out. I'll also see if we can run the Postgres queries directly. Gregory S. Williamson wrote: > Doug, > > Don't know much about PHP or the possible issues of Mapserver itself, but I'd check the postgres side of things by running equivalent SQL with "EXPLAIN ANALYZE" to make sure that indexes are being used and that its returning an appropriate number of rows. You might also try running the same queries against postgres simultaneously and see if the response bottleneck is there. If it is you might post back the results; if the response is snappy from postgres itself then it would seem the delay might be elsewhere, or in a combination of postgres and mapserver fighting for disk i/o. > > You might also post some details about the server(s) being used, # of CPUS, OS, disk arrangement etc. Sometimes running top or other diagnostics will help isolate where the problem is. > > HTH, > > Greg Williamson > DBA > GlobeXplorer LLC > > > -----Original Message----- > From: Doug [mailto:ummmmm at MYREALBOX.COM] > Sent: Tue 11/16/2004 2:02 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Cc: > Subject: [UMN_MAPSERVER-USERS] Stack trace from timing out PHP MapScript CGI > I posted here a couple of weeks ago asking about our CGI PHP MapScript > application that appears to quit responding periodically. > =&X=30762F284AB96B2313&P=50619> > Context refresher: > > MapServer/MapScript 4.2.5, PHP 4.3.8 (cgi), PostgreSQL 7.4.3, PostGIS > 0.8.2, Apache 2.0.51, Fedora Core 2 SMP (Dual CPU 2GHz P4). > > Application posts to PHP file, which does a map->draw() (of shapefile > layers), followed by a couple of queryByRect() on non-shown (PostGIS) > layers, manual > point->draw()s with custom, numbered labels, then a map->save(). > > I had observed that regularly the PHP processes seem to hang or stall, > so somebody on #Mapserver suggested that I compile with debug options > and try to obtain a stack trace when this happens. > > Unfortunately, I've been unable to duplicate the exact situation, but > I have seen some similar ones where client requests to the PHP CGIs > stackup and time out. In fact, I can force that to happen simply by > getting several clients to make a simultaneous request of the server. > Today, I forced 7 such simultaneous requests, and every single one of > them timed out. Normally, when this kind of condition occurs, the MapServer stderr also reports: > > [Mon Nov 15 21:17:39 2004] [error] [client 32.83.226.185] PHP Fatal error: > Maximum execution time of 30 seconds exceeded in > var/www/html/offender/map.php on line 87 > > But this didn't happen in my forced test today. i.e. my clients timed > out, but the PHP CGIs didn't seem to. Obviously, I need to play with > either my client or server timeouts, but can anything useful be > determined by these stack traces?: > > From last night's "natural" slowdown (which was so bad that most/all > requests during a 30 minute period timed out): > > #0 0x00ac8402 in ?? () > #1 0x005e11ea in lseek64 () from /lib/tls/libc.so.6 > #2 0x00581a37 in _IO_file_seek_internal () from /lib/tls/libc.so.6 > #3 0x0058175a in _IO_new_file_seekoff () from /lib/tls/libc.so.6 > #4 0x00578a2a in _IO_seekoff_unlocked () from /lib/tls/libc.so.6 > #5 0x0057e08d in fseek () from /lib/tls/libc.so.6 > #6 0x0030b5c2 in msSHPReadBounds (psSHP=0x8f0d858, hEntity=36339712, > padBounds=0xfef2dd70) at mapshape.c:1163 > #7 0x0030bb32 in msSHPWhichShapes (shpfile=0x8fcebc0, rect= {minx = > 511572.85125965299, miny = 3562542.8004036499, maxx = > 513272.85125965299, maxy = 3563562.8004036499}, debug=0) at > mapshape.c:1338 > #8 0x0032e14a in msLayerWhichShapes (layer=0x8d92198, rect= {minx = > 511572.85125965299, miny = 3562542.8004036499, maxx = > 513272.85125965299, maxy = 3563562.8004036499}) at maplayer.c:198 > #9 0x00330a02 in msDrawVectorLayer (map=0xf6ff3008, layer=0x8d92198, > image=0x8f0e7e0) at mapdraw.c:751 > #10 0x00330711 in msDrawLayer (map=0xf6ff3008, layer=0x8d92198, > image=0x8f0e7e0) at mapdraw.c:639 > #11 0x00330028 in msDrawMap (map=0xf6ff3008) at mapdraw.c:317 > #12 0x0030006f in mapObj_draw (self=0xf6ff3008) at mapscript_i.c:419 > #13 0x002f2279 in php3_ms_map_draw (ht=0, return_value=0x8d550ac, > this_ptr=0x8d5502c, return_value_used=1) at php_mapscript.c:3311 > #14 0x0811dcfa in execute (op_array=0x8d650d4) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1635 > #15 0x0811dac9 in execute (op_array=0x8d425dc) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1679 > #16 0x0811dac9 in execute (op_array=0x8d3ef8c) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1679 > #17 0x08112fd3 in zend_execute_scripts (type=8, retval=0x0, > file_count=3) at > /usr/src/php-4.3.8/Zend/zend.c:891 > #18 0x080f089c in php_execute_script (primary_file=0xfef30780)at > /usr/src/php-4.3.8/main/main.c:1734 > #19 0x081220b2 in main (argc=1, argv=0xfef30844) at > /usr/src/php-4.3.8/sapi/cgi/cgi_main.c:1592 > > From today's artificial one (which lasted less than a minute after > the simultaneous requests were finished): > > #0 0x005fc7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 > #1 0x0050f85a in lseek64 () from /lib/tls/libc.so.6 > #2 0x004afbf7 in _IO_file_seek_internal () from /lib/tls/libc.so.6 > #3 0x004af91a in _IO_new_file_seekoff () from /lib/tls/libc.so.6 > #4 0x004a6bea in _IO_seekoff_unlocked () from /lib/tls/libc.so.6 > #5 0x004ac24d in fseek () from /lib/tls/libc.so.6 > #6 0x0080c5c2 in msSHPReadBounds (psSHP=0x9d5e190, hEntity=63127552, > padBounds=0xfeebf8a0) at mapshape.c:1163 > #7 0x0080cb32 in msSHPWhichShapes (shpfile=0x9e1f860, rect={minx = > 400998.78413511597, miny = 3697149.2200513999, maxx = > 402698.78413511597, maxy = 3698169.2200513999}, debug=0) at > mapshape.c:1338 > #8 0x0082f14a in msLayerWhichShapes (layer=0x9be1d60, rect={minx = > 400998.7841351597, miny = 3697149.2200513999, maxx = > 402698.78413511597, maxy = 3698169.2200513999}) at maplayer.c:198 > #9 0x00831a02 in msDrawVectorLayer (map=0xf6fc4008, layer=0x9be1d60, > image=0x9d5e388) at mapdraw.c:751 > #10 0x00831711 in msDrawLayer (map=0xf6fc4008, layer=0x9be1d60, > image=0x9d5e388) at mapdraw.c:639 > #11 0x00831028 in msDrawMap (map=0xf6fc4008) at mapdraw.c:317 > #12 0x0080106f in mapObj_draw (self=0xf6fc4008) at mapscript_i.c:419 > #13 0x007f3279 in php3_ms_map_draw (ht=0, return_value=0x9ba4254, > this_ptr=0x9ba41d4, return_value_used=1) at php_mapscript.c:3311 > #14 0x0811dcfa in execute (op_array=0x9bb4c84) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1635 > #15 0x0811dac9 in execute (op_array=0x9b917dc) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1679 > #16 0x0811dac9 in execute (op_array=0x9b8deec) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1679 > #17 0x08112fd3 in zend_execute_scripts (type=8, retval=0x0, > file_count=3) at > /usr/src/php-4.3.8/Zend/zend.c:891 > #18 0x080f089c in php_execute_script (primary_file=0xfeec22b0) at > /usr/src/php-4.3.8/main/main.c:1734 > #19 0x081220b2 in main (argc=1, argv=0xfeec2374) at > /usr/src/php-4.3.8/sapi/cgi/cgi_main.c:1592 > > Basically, it seems that it takes very few simultaneous requests for > our system to fall behind. If it gets even more requests than that > minimum, it seems to be unable to recover for sometimes half an hour or more. > > I've seen people claiming very good performance of similar > applications on slower systems, so I'm trying to understand what could be causing this behaviour. > > Here's hoping the stack traces will at least help us pinpoint the > likely cuplrit(s). > > Doug > > From ed at TOPOZONE.COM Wed Nov 17 08:48:43 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 17 Nov 2004 11:48:43 -0500 Subject: Getting map extents using mode=map Message-ID: Randy - But the banding box would be drawn by client JavaScript code which needs to calculate the new extent to be requested, no? I don't see why that code couldn't simply calculate the correct extents with the same aspect ratio as the output image rectangle. - Ed -----Original Message----- From: Randy Page [mailto:randy.page at terraverge.com] Sent: Wednesday, November 17, 2004 11:45 AM To: 'Ed McNierney';MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Getting map extents using mode=map Ed, I realize the extents must be specified in the request. My concern is when a shape is requested that differs from the map size such as when a long skinny banding box is drawn. Thanks, Randy -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Wednesday, November 17, 2004 11:37 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Getting map extents using mode=map Randy - If you use mode=map you must SPECIFY the extents of the map when you make the request. You can't "retrieve" them since mode=map only returns an image, but you can try to remember the extents you specified when you made the request. Unless you requested an area of a different shape than your image, what you get is what you asked for. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy Page Sent: Wednesday, November 17, 2004 11:09 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Getting map extents using mode=map Hi All, I am using MapServer CGI, and have a questing regarding mode=map. In the past I have used mode=browse, which allowed me to return information such as the map extents and scale via the template. However, I now need to switch to mode=map, and need to know if there is a way to retrieve the extents and scale of the image produced. Any suggestions? Thanks, Randy Page From ealpert at DIGITALGLOBE.COM Wed Nov 17 08:50:25 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 17 Nov 2004 09:50:25 -0700 Subject: Getting map extents using mode=map Message-ID: Extents are defined in the mapfile so you're not required to provide extents in the URL. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Wednesday, November 17, 2004 9:37 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Getting map extents using mode=map Randy - If you use mode=map you must SPECIFY the extents of the map when you make the request. You can't "retrieve" them since mode=map only returns an image, but you can try to remember the extents you specified when you made the request. Unless you requested an area of a different shape than your image, what you get is what you asked for. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy Page Sent: Wednesday, November 17, 2004 11:09 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Getting map extents using mode=map Hi All, I am using MapServer CGI, and have a questing regarding mode=map. In the past I have used mode=browse, which allowed me to return information such as the map extents and scale via the template. However, I now need to switch to mode=map, and need to know if there is a way to retrieve the extents and scale of the image produced. Any suggestions? Thanks, Randy Page From ed at TOPOZONE.COM Wed Nov 17 08:56:03 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 17 Nov 2004 11:56:03 -0500 Subject: Getting map extents using mode=map Message-ID: Ethan - Well, you do if you want MapServer to generate more than one image ! And in any event, if you specified them in the mapfile and DON'T change them in the you shouldn't need MapServer to tell you what they are; they're constant. - Ed -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Wednesday, November 17, 2004 11:50 AM To: Ed McNierney;MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Getting map extents using mode=map Extents are defined in the mapfile so you're not required to provide extents in the URL. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Wednesday, November 17, 2004 9:37 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Getting map extents using mode=map Randy - If you use mode=map you must SPECIFY the extents of the map when you make the request. You can't "retrieve" them since mode=map only returns an image, but you can try to remember the extents you specified when you made the request. Unless you requested an area of a different shape than your image, what you get is what you asked for. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy Page Sent: Wednesday, November 17, 2004 11:09 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Getting map extents using mode=map Hi All, I am using MapServer CGI, and have a questing regarding mode=map. In the past I have used mode=browse, which allowed me to return information such as the map extents and scale via the template. However, I now need to switch to mode=map, and need to know if there is a way to retrieve the extents and scale of the image produced. Any suggestions? Thanks, Randy Page From ed at TOPOZONE.COM Wed Nov 17 08:57:07 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 17 Nov 2004 11:57:07 -0500 Subject: Getting map extents using mode=map Message-ID: Sorry - that should have been "DON'T change them in the URL querystring you...." - ed From ealpert at DIGITALGLOBE.COM Wed Nov 17 09:21:40 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 17 Nov 2004 10:21:40 -0700 Subject: Getting map extents using mode=map Message-ID: Ed, I agree but I guess we're not getting the whole picture of why extents aren't available to James. BTW, one possibility is to set up mapserver as a WMS server. This way you could do a GetCapabilities request and retrieve extent information. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Wednesday, November 17, 2004 9:56 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Getting map extents using mode=map Ethan - Well, you do if you want MapServer to generate more than one image ! And in any event, if you specified them in the mapfile and DON'T change them in the you shouldn't need MapServer to tell you what they are; they're constant. - Ed [snip] -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy Page Sent: Wednesday, November 17, 2004 11:09 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Getting map extents using mode=map Hi All, I am using MapServer CGI, and have a questing regarding mode=map. In the past I have used mode=browse, which allowed me to return information such as the map extents and scale via the template. However, I now need to switch to mode=map, and need to know if there is a way to retrieve the extents and scale of the image produced. Any suggestions? Thanks, Randy Page From warmerdam at POBOX.COM Wed Nov 17 09:26:57 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 17 Nov 2004 12:26:57 -0500 Subject: outputformat and default image format output In-Reply-To: <2576812186CDD411BF1500508B6DCE9508A7D658@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Kralidis,Tom [Burlington] wrote: > Hi, > > In my mapfile, I've defined: > > OUTPUTFORMAT > NAME GEOTIFF_RGB > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE RGB > EXTENSION "tif" > END > > ...for some raster data, which is fine. However, it seems to have taken > over my app/service as the default format. i.e. if I request: > > http://host/url?mode=legend&layers=roadlayer > > ..this gives me back a prompt to download a TIFF image. > > If I comment out the OUTPUTFORMAT object, I get back a GIF image, which > is web friendly. > > Any ideas on how to define OUTPUTFORMAT and making sure a web friendly > format is returned on requests? Tom, Use the IMAGETYPE keyword in the map object to select the default format. If you don't the first user defined outputformat is used by default. If there are no user defined output formats, the first built-in format will be used. So adding "IMAGETYPE GIF" should do the trick. Of course, I think all web browsers should have built-in GeoTIFF support but I may have a biased point of view. Best regards, -- ---------------------------------------+-------------------------------------- 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 Tom.Kralidis at EC.GC.CA Wed Nov 17 09:33:56 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 17 Nov 2004 12:33:56 -0500 Subject: outputformat and default image format output Message-ID: > -----Original Message----- > From: Frank Warmerdam [mailto:warmerdam at pobox.com] > Sent: Wednesday, 17 November, 2004 12:27 > To: Kralidis,Tom [Burlington] > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] outputformat and default > image format output > > > Kralidis,Tom [Burlington] wrote: > > Hi, > > > > In my mapfile, I've defined: > > > > OUTPUTFORMAT > > NAME GEOTIFF_RGB > > DRIVER "GDAL/GTiff" > > MIMETYPE "image/tiff" > > IMAGEMODE RGB > > EXTENSION "tif" > > END > > > > ...for some raster data, which is fine. However, it seems to have > > taken over my app/service as the default format. i.e. if I request: > > > > http://host/url?mode=legend&layers=roadlayer > > > > ..this gives me back a prompt to download a TIFF image. > > > > If I comment out the OUTPUTFORMAT object, I get back a GIF image, > > which is web friendly. > > > > Any ideas on how to define OUTPUTFORMAT and making sure a > web friendly > > format is returned on requests? > > Tom, > > Use the IMAGETYPE keyword in the map object to select the > default format. If you don't the first user defined > outputformat is used by default. If there are no user > defined output formats, the first built-in format will be used. > > So adding "IMAGETYPE GIF" should do the trick. > Works (I used PNG) -- thx. > Of course, I think all web browsers should have built-in > GeoTIFF support but I may have a biased point of view. > I second that motion. > Best regards, > -- > ---------------------------------------+---------------------- > ---------- > ---------------------------------------+------ > 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 martin426 at YAHOO.COM Wed Nov 17 09:26:47 2004 From: martin426 at YAHOO.COM (James Martin) Date: Wed, 17 Nov 2004 11:26:47 -0600 Subject: Postgis nquery returns the same result multiple times Message-ID: Hello, I'm trying to perform a nquery on a postgis layer and am recieving a weird result. If my DATA = "the_geom from place" the query works fine. However, when trying: DATA = "the_geom from (SELECT place.the_geom AS the_geom, place.gid AS gid, place.name AS name FROM place WHERE place.gid=9) AS foo USING UNIQUE place.gid USING SRID=-1" And then bound a point with &imgbox the query returns the correct record, but returns it 'N' times, where N is the number of rows in the table. The map itself shows only the one point specified in the WHERE clause. If I remove the WHERE clause so I can see the other points and bound two of them, the query returns the first record 2 * N times. If I do just a query with &imgxy it returns just the one result. Any help is greatly appreciated! -James From pramsey at REFRACTIONS.NET Wed Nov 17 09:37:50 2004 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 17 Nov 2004 09:37:50 -0800 Subject: Postgis nquery returns the same result multiple times In-Reply-To: Message-ID: James, if you make a bugzilla entry for this we will have a look at it, but be forwarned, it might be a while before we have the discretionary time to do this. Paul James Martin wrote: > I'm trying to perform a nquery on a postgis layer and am recieving a weird > result. If my DATA = "the_geom from place" the query works fine. However, > when trying: > > DATA = "the_geom from > (SELECT place.the_geom AS the_geom, > place.gid AS gid, > place.name AS name > FROM place > WHERE place.gid=9) > AS foo USING UNIQUE place.gid > USING SRID=-1" > > And then bound a point with &imgbox the query returns the correct record, > but returns it 'N' times, where N is the number of rows in the table. The > map itself shows only the one point specified in the WHERE clause. If I > remove the WHERE clause so I can see the other points and bound two of them, > the query returns the first record 2 * N times. > > If I do just a query with &imgxy it returns just the one result. > > Any help is greatly appreciated! > > -James From kenlord at GMAIL.COM Wed Nov 17 10:58:44 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 17 Nov 2004 10:58:44 -0800 Subject: Postgis nquery returns the same result multiple times In-Reply-To: Message-ID: Hi James, I think it is just a pesky syntax problem. Here's two DATA strings I use that may be of help. This example is the standard data string I use to draw all features in a table. DATA "the_geom from (select * from bh_tp_p) as foo using unique gid using SRID=2" This one, similar to yours, makes MapServer draw Only the features that pass the test. (In this case, draw only the drill holes that fall within a specific mineral claim) DATA "the_geom from (select * from bh_tp_p where within(bh_tp_p.the_geom,( select the_geom from mineral_tenure_a where mineral_tenure_a.claim='ML-5518' ))=true ) as foo using unique gid using SRID=2" In this case I had to include the ' =true ' term ... draw the features where the 'within' test returns true, a detail that took awhile for me to get right. You may want to simplify your query by using the ' * ' wildcard, the specific fields you need will still be in the recordset returned. Or, maybe there's a conflict where you define the alias ' place.gid AS gid ' but carry on to use the terms ' place.gid ' instead of its alias. Or maybe there's a conflict by testing ' WHERE place.gid=9 ', and then using the term ' USING UNIQUE place.gid ' instead of using the term ' USING UNIQUE gid ' Anyways, there's a couple ideas for you, good luck! Ken Lord On Wed, 17 Nov 2004 11:26:47 -0600, James Martin wrote: > Hello, > > I'm trying to perform a nquery on a postgis layer and am recieving a weird > result. If my DATA = "the_geom from place" the query works fine. However, > when trying: > > DATA = "the_geom from > (SELECT place.the_geom AS the_geom, > place.gid AS gid, > place.name AS name > FROM place > WHERE place.gid=9) > AS foo USING UNIQUE place.gid > USING SRID=-1" > > And then bound a point with &imgbox the query returns the correct record, > but returns it 'N' times, where N is the number of rows in the table. The > map itself shows only the one point specified in the WHERE clause. If I > remove the WHERE clause so I can see the other points and bound two of them, > the query returns the first record 2 * N times. > > If I do just a query with &imgxy it returns just the one result. > > Any help is greatly appreciated! > > -James > ============================== Ken Lord B.Sc., A.Dipl.T.H. Burnaby BC, V5E 4L1 kenlord (at) gmail.com klord (at) bgcengineering.com From ummmmm at MYREALBOX.COM Wed Nov 17 11:26:29 2004 From: ummmmm at MYREALBOX.COM (Doug) Date: Wed, 17 Nov 2004 13:26:29 -0600 Subject: Stack trace from timing out PHP MapScript CGI In-Reply-To: <6FF5CAC8-9E95-4E80-9067-B67B6E879410@topozone.com> Message-ID: Too many negatives in that sentence for me :-) You're saying that 100% CPU utilization is normal if the CPU is the bottleneeck or if it's something else? I checked and I think we have a single SCSI (/dev/sda) disk in use at this time. Looks like there are two disks on the system, but I don't think the second one is allocated at all. There really shouldn't be any other significant activity on the system other than the MapServer HTTP requests (and the subsequent HTTP requests for the generated map images). In addition to this PHP MapScript application, we do have two other "mapserv"-only applications using this same MapServer, one of which shares some of the same shapefiles. But that's pretty much all this machine is doing. Doug Ed McNierney wrote: > Doug - > > Having "top" not show 100% CPU use is "normal" if the CPU is NOT the problem. That would be the case, for example, if your disk subsystem were the bottleneck. You should definitely find out as much detail as you can about your disk arrangement. A single IDE drive will have a hard time handling a large number of random requests, for example, which seems to be consistent with the symptom you're seeing. There could be other causes, of course, but it's worth looking into this one. > > You should also know whether those disks are doing OTHER things at the same time, or if they're dedicated to MapServer data serving. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: +1 978 251-4242 Fax: +1 978 251-1396 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Doug > Sent: Wednesday, November 17, 2004 10:12 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Stack trace from timing out PHP MapScript CGI > > Thanks for the ideas. > > "top" does show 100% CPU use when the requests are being serviced.. Don't know if that's normal. Again, this is on Fedora Core 2 with a dual-CPU, 2GHz P4 machine. I'm not sure of the disk arrangement, but I can find that out. I'll also see if we can run the Postgres queries directly. > > Gregory S. Williamson wrote: > >>Doug, >> >>Don't know much about PHP or the possible issues of Mapserver itself, but I'd check the postgres side of things by running equivalent SQL with "EXPLAIN ANALYZE" to make sure that indexes are being used and that its returning an appropriate number of rows. You might also try running the same queries against postgres simultaneously and see if the response bottleneck is there. If it is you might post back the results; if the response is snappy from postgres itself then it would seem the delay might be elsewhere, or in a combination of postgres and mapserver fighting for disk i/o. >> >>You might also post some details about the server(s) being used, # of CPUS, OS, disk arrangement etc. Sometimes running top or other diagnostics will help isolate where the problem is. >> >>HTH, >> >>Greg Williamson >>DBA >>GlobeXplorer LLC >> >> >>-----Original Message----- >>From: Doug [mailto:ummmmm at MYREALBOX.COM] >>Sent: Tue 11/16/2004 2:02 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Cc: >>Subject: [UMN_MAPSERVER-USERS] Stack trace from timing out PHP MapScript CGI >>I posted here a couple of weeks ago asking about our CGI PHP MapScript >>application that appears to quit responding periodically. >>>=&X=30762F284AB96B2313&P=50619> >>Context refresher: >> >>MapServer/MapScript 4.2.5, PHP 4.3.8 (cgi), PostgreSQL 7.4.3, PostGIS >>0.8.2, Apache 2.0.51, Fedora Core 2 SMP (Dual CPU 2GHz P4). >> >>Application posts to PHP file, which does a map->draw() (of shapefile >>layers), followed by a couple of queryByRect() on non-shown (PostGIS) >>layers, manual >>point->draw()s with custom, numbered labels, then a map->save().. >> >>I had observed that regularly the PHP processes seem to hang or stall, >>so somebody on #Mapserver suggested that I compile with debug options >>and try to obtain a stack trace when this happens. >> >>Unfortunately, I've been unable to duplicate the exact situation, but >>I have seen some similar ones where client requests to the PHP CGIs >>stackup and time out. In fact, I can force that to happen simply by >>getting several clients to make a simultaneous request of the server. >>Today, I forced 7 such simultaneous requests, and every single one of >>them timed out. Normally, when this kind of condition occurs, the MapServer stderr also reports: >> >>[Mon Nov 15 21:17:39 2004] [error] [client 32.83.226.185] PHP Fatal error: >>Maximum execution time of 30 seconds exceeded in >>var/www/html/offender/map.php on line 87 >> >>But this didn't happen in my forced test today. i.e. my clients timed >>out, but the PHP CGIs didn't seem to. Obviously, I need to play with >>either my client or server timeouts, but can anything useful be >>determined by these stack traces?: >> >> From last night's "natural" slowdown (which was so bad that most/all >>requests during a 30 minute period timed out): >> >>#0 0x00ac8402 in ?? () >>#1 0x005e11ea in lseek64 () from /lib/tls/libc.so.6 >>#2 0x00581a37 in _IO_file_seek_internal () from /lib/tls/libc.so.6 >>#3 0x0058175a in _IO_new_file_seekoff () from /lib/tls/libc.so..6 >>#4 0x00578a2a in _IO_seekoff_unlocked () from /lib/tls/libc.so..6 >>#5 0x0057e08d in fseek () from /lib/tls/libc.so.6 >>#6 0x0030b5c2 in msSHPReadBounds (psSHP=0x8f0d858, hEntity=36339712, >>padBounds=0xfef2dd70) at mapshape.c:1163 >>#7 0x0030bb32 in msSHPWhichShapes (shpfile=0x8fcebc0, rect= {minx = >>511572.85125965299, miny = 3562542.8004036499, maxx = >>513272.85125965299, maxy = 3563562.8004036499}, debug=0) at >>mapshape.c:1338 >>#8 0x0032e14a in msLayerWhichShapes (layer=0x8d92198, rect= {minx = >>511572.85125965299, miny = 3562542.8004036499, maxx = >>513272.85125965299, maxy = 3563562.8004036499}) at maplayer.c:198 >>#9 0x00330a02 in msDrawVectorLayer (map=0xf6ff3008, layer=0x8d92198, >>image=0x8f0e7e0) at mapdraw.c:751 >>#10 0x00330711 in msDrawLayer (map=0xf6ff3008, layer=0x8d92198, >>image=0x8f0e7e0) at mapdraw.c:639 >>#11 0x00330028 in msDrawMap (map=0xf6ff3008) at mapdraw.c:317 >>#12 0x0030006f in mapObj_draw (self=0xf6ff3008) at mapscript_i.c:419 >>#13 0x002f2279 in php3_ms_map_draw (ht=0, return_value=0x8d550ac, >>this_ptr=0x8d5502c, return_value_used=1) at php_mapscript.c:3311 >>#14 0x0811dcfa in execute (op_array=0x8d650d4) at >>/usr/src/php-4.3.8/Zend/zend_execute.c:1635 >>#15 0x0811dac9 in execute (op_array=0x8d425dc) at >>/usr/src/php-4.3.8/Zend/zend_execute.c:1679 >>#16 0x0811dac9 in execute (op_array=0x8d3ef8c) at >>/usr/src/php-4.3.8/Zend/zend_execute.c:1679 >>#17 0x08112fd3 in zend_execute_scripts (type=8, retval=0x0, >>file_count=3) at >>/usr/src/php-4.3.8/Zend/zend.c:891 >>#18 0x080f089c in php_execute_script (primary_file=0xfef30780)at >>/usr/src/php-4.3.8/main/main.c:1734 >>#19 0x081220b2 in main (argc=1, argv=0xfef30844) at >>/usr/src/php-4.3.8/sapi/cgi/cgi_main.c:1592 >> >> From today's artificial one (which lasted less than a minute after >>the simultaneous requests were finished): >> >>#0 0x005fc7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 >>#1 0x0050f85a in lseek64 () from /lib/tls/libc.so.6 >>#2 0x004afbf7 in _IO_file_seek_internal () from /lib/tls/libc.so.6 >>#3 0x004af91a in _IO_new_file_seekoff () from /lib/tls/libc.so..6 >>#4 0x004a6bea in _IO_seekoff_unlocked () from /lib/tls/libc.so..6 >>#5 0x004ac24d in fseek () from /lib/tls/libc.so.6 >>#6 0x0080c5c2 in msSHPReadBounds (psSHP=0x9d5e190, hEntity=63127552, >>padBounds=0xfeebf8a0) at mapshape.c:1163 >>#7 0x0080cb32 in msSHPWhichShapes (shpfile=0x9e1f860, rect={minx = >>400998.78413511597, miny = 3697149.2200513999, maxx = >>402698.78413511597, maxy = 3698169.2200513999}, debug=0) at >>mapshape.c:1338 >>#8 0x0082f14a in msLayerWhichShapes (layer=0x9be1d60, rect={minx = >>400998.7841351597, miny = 3697149.2200513999, maxx = >>402698.78413511597, maxy = 3698169.2200513999}) at maplayer.c:198 >>#9 0x00831a02 in msDrawVectorLayer (map=0xf6fc4008, layer=0x9be1d60, >>image=0x9d5e388) at mapdraw.c:751 >>#10 0x00831711 in msDrawLayer (map=0xf6fc4008, layer=0x9be1d60, >>image=0x9d5e388) at mapdraw.c:639 >>#11 0x00831028 in msDrawMap (map=0xf6fc4008) at mapdraw.c:317 >>#12 0x0080106f in mapObj_draw (self=0xf6fc4008) at mapscript_i.c:419 >>#13 0x007f3279 in php3_ms_map_draw (ht=0, return_value=0x9ba4254, >> this_ptr=0x9ba41d4, return_value_used=1) at php_mapscript.c:3311 >>#14 0x0811dcfa in execute (op_array=0x9bb4c84) at >>/usr/src/php-4.3.8/Zend/zend_execute.c:1635 >>#15 0x0811dac9 in execute (op_array=0x9b917dc) at >>/usr/src/php-4.3.8/Zend/zend_execute.c:1679 >>#16 0x0811dac9 in execute (op_array=0x9b8deec) at >>/usr/src/php-4.3.8/Zend/zend_execute.c:1679 >>#17 0x08112fd3 in zend_execute_scripts (type=8, retval=0x0, >>file_count=3) at >>/usr/src/php-4.3.8/Zend/zend.c:891 >>#18 0x080f089c in php_execute_script (primary_file=0xfeec22b0) at >>/usr/src/php-4.3.8/main/main.c:1734 >>#19 0x081220b2 in main (argc=1, argv=0xfeec2374) at >>/usr/src/php-4.3.8/sapi/cgi/cgi_main.c:1592 >> >>Basically, it seems that it takes very few simultaneous requests for >>our system to fall behind. If it gets even more requests than that >>minimum, it seems to be unable to recover for sometimes half an hour or more. >> >>I've seen people claiming very good performance of similar >>applications on slower systems, so I'm trying to understand what could be causing this behaviour. >> >>Here's hoping the stack traces will at least help us pinpoint the >>likely cuplrit(s). >> >>Doug From grs at GRSGIS.COM Wed Nov 17 14:28:07 2004 From: grs at GRSGIS.COM (Geographic Resource Solutions) Date: Wed, 17 Nov 2004 14:28:07 -0800 Subject: MS 4.2 binariy with TIFF Input Support ? In-Reply-To: <419AAFB2.2060603@pobox.com> Message-ID: An HTML attachment was scrubbed... URL: From yecarrillo at YAHOO.COM Wed Nov 17 16:09:26 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Wed, 17 Nov 2004 18:09:26 -0600 Subject: OGR connection vs shp DATA Message-ID: Can somebody explain me benefits of using OGR as shapefile datasource vs. reading shp files directly? Thank You ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From ARyan at CO.LINN.OR.US Wed Nov 17 17:54:01 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 17 Nov 2004 17:54:01 -0800 Subject: Python struct and mapscript saveQuery Message-ID: Dear List, This is a picky little question concerning Python struct.pack and unpack methods, and mapscript saveQuery and loadQuery methods. I'm using Python Mapscript 4.4.0_beta2 on Windows XP and saving query files using map.saveQuery(). I subsequently manipulate the saved query file. When I read the shape, tile and class index values using struct.unpack, the only format that seems to work is "iib0i", which means two integers and a signed char aligned at the end to the requirements of three integers, I think. The issue is the class index value. Using "iii" or any other 12 byte format gives me bad class index values. The byte order is not declared in my format string, so it defaults to native byte order, size and alignment. Any declaration of byte order doesn't work with this format. Here's the snippet that reads the indexes: ... for r in range(nr): tup = struct.unpack("iib0i",f.read(struct.calcsize("iib0i"))) print str(tup[0]) + "," + str(tup[1]) + "," + str(tup[2]) ... Can anyone tell me why I can't just use "iii"? I can write query files using struct.pack("iii",... and mapserver will load them without a problem. Am I doing something wrong or is there something a little freaky in how mapserver writes class indexes out to file? Cheers, Adam From richard.greenwood at GMAIL.COM Wed Nov 17 18:44:01 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 17 Nov 2004 19:44:01 -0700 Subject: Getting map extents using mode=map In-Reply-To: Message-ID: On Wed, 17 Nov 2004 10:08:54 -0600, Randy Page wrote: > Hi All, > > I am using MapServer CGI, and have a questing regarding mode=map. In the > past I have used mode=browse, which allowed me to return information such > as the map extents and scale via the template. However, I now need to > switch to mode=map, and need to know if there is a way to retrieve the > extents and scale of the image produced. > > Any suggestions? > > Thanks, > > Randy Page > When you use mode=browse (or query, itemquery, etc.) mapserv processes the template file you have defined in your map file. Your template file can 'request' any number of things from mapserv by way of replacable variables (the stuff inside the [] braces) e.g. a map image, a scale bar image, a new map extent calculated from the request, a scale ratio, etc. Images are written to the server's hard disk, calculations like new map extents or scale are inserted into the template HTML file, replacing the [stuff]. mode=map is a different, and unique, mode. It returns a map image only. The image is not written to your server's hard disk. If you need a calculation of a new map extent or scale, you either need to do it yourself (with client side javascript, or server side mapscript) or you could make a second request to CGI mapserv using mode=browser&map=off and appropriate template to retreive the newly calculated extents. (Probably not a recommended method because you're making 2 requests to render on page). HTH -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From sgillies at FRII.COM Wed Nov 17 19:42:16 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 17 Nov 2004 20:42:16 -0700 Subject: Python struct and mapscript saveQuery In-Reply-To: Message-ID: On Nov 17, 2004, at 6:54 PM, Ryan, Adam wrote: > Dear List, > > This is a picky little question concerning Python struct.pack and > unpack > methods, and mapscript saveQuery and loadQuery methods. > > I'm using Python Mapscript 4.4.0_beta2 on Windows XP and saving query > files > using map.saveQuery(). I subsequently manipulate the saved query file. > When I read the shape, tile and class index values using > struct.unpack, the > only format that seems to work is "iib0i", which means two integers > and a > signed char aligned at the end to the requirements of three integers, I > think. The issue is the class index value. Using "iii" or any other > 12 > byte format gives me bad class index values. > > The byte order is not declared in my format string, so it defaults to > native > byte order, size and alignment. Any declaration of byte order doesn't > work > with this format. > > Here's the snippet that reads the indexes: > ... > for r in range(nr): > tup = struct.unpack("iib0i",f.read(struct.calcsize("iib0i"))) > print str(tup[0]) + "," + str(tup[1]) + "," + str(tup[2]) > ... > > Can anyone tell me why I can't just use "iii"? I can write query files > using struct.pack("iii",... and mapserver will load them without a > problem. > Am I doing something wrong or is there something a little freaky in how > mapserver writes class indexes out to file? > > Cheers, > > Adam > Adam, I can't reproduce your problem on Linux (i686) or with windows 2000. Am using Hobu's 4.4.0 beta 1 on the latter, but there haven't been any recent changes. Python 2.3.4 (#3, Oct 9 2004, 19:23:21) [GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mapscript >>> import struct >>> m = mapscript.mapObj('projects/ms_43/mapserver/tests/test.map') >>> l = m.getLayerByName('POLYGON') >>> l.template = 'foo' >>> l.queryByPoint(m, mapscript.pointObj(0.0, 51.5), 1, 0.0) >>> r = l.getResults() >>> m.saveQuery('foo.q') >>> q = open('foo.q','r').read(12) >>> q '\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00' >>> struct.unpack("iii", q) (1, 1, 1) You're not by any chance saving the queries from another machine are you? In that case you'd have to explicitly deal with endian-ness. See the end of this doc http://docs.python.org/lib/module-struct.html Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From gis at UNDPHAIS.ORG.NP Wed Nov 17 22:46:11 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Thu, 18 Nov 2004 12:31:11 +0545 Subject: wrong in extensions In-Reply-To: <419B5BB4.5000506@deprem.gov.tr> Message-ID: On Wed, 17 Nov 2004 16:09:56 +0200, temiz wrote: > hello > > my extent in map file: > EXTENT 419630 4510820 516250 4617510 > > my unzoomed -initial extent in php file gives: > Array ( [0] => 414562.225 [1] => 4510820 [2] => 521317.775 [3] => 4617510 ) > > could you possibly tell me why x values are different, but y are same ? > how can I make correction on x values ? > should x values in array same as in map file EXTENT ? > > kind regards > > Ahmet Temiz > > > ______________________________________ > Inflex - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > > ______________________________________ > The views and opinions expressed in this e-mail message are the sender's own > and do not necessarily represent the views and the opinions of Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. > > Mapserver adjusts the extents (either x or y) given in the mapfile to fit the image size that you specify in the map file. If you want the extents you get from $map->extent and the extent you set in the map file (for whatsoever reason) just change the extent in your map file to what you get from $map->extent. Regards. -- Sandeep Bashyal -- National GIS Officer Humanitarian Assistance Information System (HAIS) United Nations (NEP/01/008) UN House, Pulchowk G.P.O. Box 107 Kathmandu, Nepal Tel: (+977) 01 5543957 (+977) 01 5554304 Cell:(+977) 9841270854 Fax: (+977) 01 5528059 -------------------------------------------------- mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.un.org.np/ From gis at UNDPHAIS.ORG.NP Wed Nov 17 22:51:20 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Thu, 18 Nov 2004 12:36:20 +0545 Subject: outputformat and default image format output In-Reply-To: <2576812186CDD411BF1500508B6DCE9508A7D658@ecnwri1.ontario.int.ec.gc.ca> Message-ID: On Wed, 17 Nov 2004 10:45:07 -0500, Kralidis,Tom [Burlington] wrote: > Hi, > > In my mapfile, I've defined: > > OUTPUTFORMAT > NAME GEOTIFF_RGB > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE RGB > EXTENSION "tif" > END > > ...for some raster data, which is fine. However, it seems to have taken > over my app/service as the default format. i.e. if I request: > > http://host/url?mode=legend&layers=roadlayer > > ..this gives me back a prompt to download a TIFF image. > > If I comment out the OUTPUTFORMAT object, I get back a GIF image, which > is web friendly. > > Any ideas on how to define OUTPUTFORMAT and making sure a web friendly > format is returned on requests? > > Thanks > > ..Tom > > OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END or OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END HTH. -- Sandeep Bashyal -- National GIS Officer Humanitarian Assistance Information System (HAIS) United Nations (NEP/01/008) UN House, Pulchowk G.P.O. Box 107 Kathmandu, Nepal Tel: (+977) 01 5543957 (+977) 01 5554304 Cell:(+977) 9841270854 Fax: (+977) 01 5528059 -------------------------------------------------- mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.un.org.np From gis at UNDPHAIS.ORG.NP Wed Nov 17 23:02:02 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Thu, 18 Nov 2004 12:47:02 +0545 Subject: outputformat and default image format output In-Reply-To: Message-ID: On Thu, 18 Nov 2004 12:36:20 +0545, Sandeep Bashyal wrote: > On Wed, 17 Nov 2004 10:45:07 -0500, Kralidis,Tom [Burlington] wrote: > >> Hi, >> >> In my mapfile, I've defined: >> >> OUTPUTFORMAT >> NAME GEOTIFF_RGB >> DRIVER "GDAL/GTiff" >> MIMETYPE "image/tiff" >> IMAGEMODE RGB >> EXTENSION "tif" >> END >> >> ...for some raster data, which is fine. However, it seems to have taken >> over my app/service as the default format. i.e. if I request: >> >> http://host/url?mode=legend&layers=roadlayer >> >> ..this gives me back a prompt to download a TIFF image. >> >> If I comment out the OUTPUTFORMAT object, I get back a GIF image, which >> is web friendly. >> >> Any ideas on how to define OUTPUTFORMAT and making sure a web friendly >> format is returned on requests? >> >> Thanks >> >> ..Tom >> >> > > OUTPUTFORMAT > NAME gif > DRIVER "GD/GIF" > MIMETYPE "image/gif" > IMAGEMODE PC256 > EXTENSION "gif" > END > > or > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION "png" > END > > HTH. > -- > Sandeep Bashyal > -- > National GIS Officer > Humanitarian Assistance Information System (HAIS) > United Nations (NEP/01/008) > UN House, Pulchowk > G.P.O. Box 107 > Kathmandu, Nepal > Tel: (+977) 01 5543957 > (+977) 01 5554304 > Cell:(+977) 9841270854 > Fax: (+977) 01 5528059 > -------------------------------------------------- > mailto:gis at undphais.org.np > mailto:sandeep at earthmapping.com > http://www.un.org.np > > Oh. Sorry. Please disregard the above post. -- Sandeep Bashyal -- National GIS Officer Humanitarian Assistance Information System (HAIS) United Nations (NEP/01/008) UN House, Pulchowk G.P.O. Box 107 Kathmandu, Nepal Tel: (+977) 01 5543957 (+977) 01 5554304 Cell:(+977) 9841270854 Fax: (+977) 01 5528059 -------------------------------------------------- mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.undp.org.np From stisidore at GMAIL.COM Wed Nov 17 23:55:19 2004 From: stisidore at GMAIL.COM (Gayathri Swaminathan) Date: Thu, 18 Nov 2004 01:55:19 -0600 Subject: TIFF support Message-ID: Hello: Certainly the binary you downloaded from mapserver's website does not seem to have TIFF support enabled... You might check www2.dmsolutions.ca or maptools.org/webtools/dl to see if there is a binary that has this enabled. Compiling binaries have come long ways and it should be easy breezy now if you followed the instructions...per mapserver website and the Readme that comes with the source package... Let me know if you need any further assistance.. Also post out to the list (the chances of getting a faster..response is better) Cheers, Gayathri ------------------------------------------------------------------------------------------------------------------------------------------------------------ Hi Gayathri, Thanks for your reply I have dowloaded the binary from http://hypnos.cbs.umn.edu/projects/downloads/ms42pg.zip I have no idea how to compile from source to be used on windows XP Thanks a lot for your help ---------------------------------------------------- Habib BEN YAHYATEN De : Swaminathan, Gayathri [mailto:gayathri at ou.edu] Envoy? : mercredi 17 novembre 2004 17:13 ? : habib.benyahyaten at oss.org.tn Cc : mapserver-users at lists.umn.edu Objet : RE: TIFF support Hi Habib, You have two options to enable tiff support, 1) By using TIFF as an independent support and recompiling mapserver- Look in makefile of mapserver to uncomment tiff options 2) By using GDAL compiled with libtiff support. The mapserver binary you have got does not seem to have the libtiff enabled either way... Can yougive more details as to where your downloaded the binary from? That will help analyze this.. Gayathri From: Habib BEN YAHYATEN [mailto:habib.benyahyaten at oss.org.tn] Sent: Wed 11/17/2004 10:05 AM To: Swaminathan, Gayathri Subject: TIFF support Hi, I have installed mapserver 4.2.0 on windows XP with apache tomcat Tiffs are not shown; When executing mapserv ?v I have this: input=gdal ........ but not input=tiff Any idea please Thanks a lot ---------------------------------------------------- Habib BEN YAHYATEN From Andrea.Giacomelli at CH2M.COM Thu Nov 18 00:15:14 2004 From: Andrea.Giacomelli at CH2M.COM (Andrea Giacomelli) Date: Thu, 18 Nov 2004 09:15:14 +0100 Subject: imagemaps and Hi, I have managed to generated imagemaps following the basic wiki instructions. I would like to add the "mouseover balloon" function that the imagemap can replicate to a form where my map is used also for user input (with the standard zoom/pan/identify functions). I read that the tags may include a usemap=... parameter to make reference to a client-side imagemap; however the use of the imagemap with the input tag is reported to be 'poorly supported' by browsers in the docs I have, and -in fact- the imagemap is ignored in my application. Is it possible to combine the map used for zoom/pan/identify input with the imagemap using some other approach ? alternatively, hints to any other approach to have the 'mouseover balloon' would be appreciated. I am working with PHP mapscript for all of the above. Thanks! andrea -------------- next part -------------- An HTML attachment was scrubbed... URL: From maps at DSCHULTZSYSTEMS.COM Thu Nov 18 00:20:21 2004 From: maps at DSCHULTZSYSTEMS.COM (Dave S) Date: Thu, 18 Nov 2004 02:20:21 -0600 Subject: How can I get rid of half-filled circle symbols ????? Message-ID: OK. I'm a newbie but I've gotten pretty far and now I'm stumped with this stupid little thing. I can take a lat/long point and plot it on a map using the setXY method on a point object. I can do this succesfully with various symbols, except when I use a circle it appears half-filled instead of a solid color. What am I doing wrong? The map is here (note the dang half-circle): http://www.nms-i.com ############################################ MAPFILE IS HERE: ############################################ NAME AK STATUS on SIZE 500 500 EXTENT -117.593716 32.539857 -116.08103 33.503547 IMAGETYPE PNG IMAGECOLOR 255 255 255 SHAPEPATH "./data/" UNITS METERS LEGEND STATUS EMBED POSITION LR END WEB IMAGEPATH "/home/httpd/vhosts/nms-i.com/httpdocs/tmp/" IMAGEURL "/tmp/" END LAYER NAME "INLINE" TYPE POINT STATUS ON CLASS NAME "0" STYLE COLOR 0 0 255 SYMBOL 'square' SIZE 12 OUTLINECOLOR 0 0 0 END #style END #class CLASS NAME "1" STYLE COLOR 0 255 0 SYMBOL 'circle' SIZE 12 OUTLINECOLOR 0 0 0 END #style END #class END #layer LAYER GROUP roadCA NAME FENAME TYPE line STATUS DEFAULT DATA "tgr06073lkA" class backgroundcolor 128 128 128 color 255 000 000 name "Roads" OUTLINECOLOR 0 0 0 end END SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME 'square' TYPE VECTOR POINTS 0 0 0 1 1 1 1 0 END FILLED TRUE END END ############################################ PHP FILE: ############################################ setExtent(-117.238, 32.80, -117.18, 32.81); $img=$map->draw(); $layer = $map->getLayerByName('INLINE'); //THIS DRAWS THE SQUARE: $pt = ms_newPointObj(); $pt-> setXY(-117.190847, 32.828373); $pt->draw($map, $layer, $img, 0 ,'a'); //THIS DRAWS THE CIRCLE BUT IT IS HALF-FILLED: $pt = ms_newPointObj(); $pt-> setXY (-117.235008, 32.808819); $pt->draw($map, $layer, $img, 1 ,'b'); $image_url=$img->saveWebImage(); ?> US state boundaries From m.simonse at VICREA.NL Thu Nov 18 00:47:24 2004 From: m.simonse at VICREA.NL (Merlijn Simonse) Date: Thu, 18 Nov 2004 02:47:24 -0600 Subject: Performance with oraclespatial using ogr Message-ID: Hi all, I have some oracle layers in my map to which I connect using ogr. I use ogr because I also make selections on this layer. Everything performs very well until the Oracle table gets too many records. As soon as it has more than 10,000 records it can take up to a few minutes to make the map. Selecting a polygon from this layer takes even more time and selecting n polygons can take more than 5 minutes. My data parameter is looks like this. CONNECTIONTYPE ogr CONNECTION "oci: a/b at c" DATA "SELECT GEOM, LOCATIE_ID FROM LOCATIE where LOCATIESOORT_ID = 10" Is there anyway I can improve performance changing this query or other parameters? Thanks, Merlijn From bartvde at XS4ALL.NL Thu Nov 18 05:16:02 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 18 Nov 2004 14:16:02 +0100 Subject: Performance with oraclespatial using ogr In-Reply-To: Message-ID: Hi, see: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0404/msg00215.html in short, only by using DATA "tablename" the bbox is used in the query. Best regards, Bart > Hi all, > > I have some oracle layers in my map to which I connect using ogr. I use > ogr because I also make selections on this layer. Everything performs very > well until the Oracle table gets too many records. As soon as it has more > than 10,000 records it can take up to a few minutes to make the map. > Selecting a polygon from this layer takes even more time and selecting n > polygons can take more than 5 minutes. > > My data parameter is looks like this. > > CONNECTIONTYPE ogr > CONNECTION "oci: a/b at c" > DATA "SELECT GEOM, LOCATIE_ID FROM LOCATIE where LOCATIESOORT_ID = 10" > > Is there anyway I can improve performance changing this query or other > parameters? > > Thanks, > > Merlijn > From mandhare at STATE.PA.US Thu Nov 18 05:29:16 2004 From: mandhare at STATE.PA.US (Manjiri Andhare) Date: Thu, 18 Nov 2004 07:29:16 -0600 Subject: jBox Java applet Message-ID: Hi! I was looking for the functionality to draw a rectangle for zooming in on the map. I found jBox by Steve Lime on http://mapserver.gis.umn.edu/contributed.html I have Windows 2000 and I'm running mapserver 4.2 on IIS. I follwed the steps from jBox HOWTO 4.2 to test it with the workshop demo. But when i try to run the workshop demo with "Basic application" option, in the status bar of Browser(I'm using IE 6.0) I get the message as; Loading Java Applet Failed.. And I'm not getting the reason behind this.. Here is the changed portion of itasca_basic.html file: *************************************** MapServer - Itasca Application

MapServer - Itasca Application


scalebar (mi)

Browse map
Query feature
Query multiple features


Select Layers to Display:

Zoom In Pan Zoom Out

Zoom Size

Legend



*************************************************** I have placed the jBox as: c:\Inetpub\wwwroot\MapServer\java\jBox And I have placed the jar files, class files and java source files from lib,classes and src folders respectively under c:\Inetpub\wwwroot\MapServer\java\jBox If somebody could point out what i'm missing,it'll be great!! Thank you, Manjiri Andhare GIS Coordinator PA Fish & Boat Commission U.S.A. From paul.den.dulk at GEODAN.NL Thu Nov 18 05:32:01 2004 From: paul.den.dulk at GEODAN.NL (paul) Date: Thu, 18 Nov 2004 14:32:01 +0100 Subject: Performance with oraclespatial using ogr Message-ID: Hi Merlijn, You can also make selections with oraclespatial with queries like this: CONNECTIONTYPE oraclespatial CONNECTION " a/b at c" DATA "GEOM, LOCATIE_ID FROM (select * from LOCATIE where LOCATIESOORT_ID = 10)" Paul. ----- Original Message ----- From: "Merlijn Simonse" To: Sent: Thursday, November 18, 2004 9:47 AM Subject: [UMN_MAPSERVER-USERS] Performance with oraclespatial using ogr > Hi all, > > I have some oracle layers in my map to which I connect using ogr. I use > ogr because I also make selections on this layer. Everything performs very > well until the Oracle table gets too many records. As soon as it has more > than 10,000 records it can take up to a few minutes to make the map. > Selecting a polygon from this layer takes even more time and selecting n > polygons can take more than 5 minutes. > > My data parameter is looks like this. > > CONNECTIONTYPE ogr > CONNECTION "oci: a/b at c" > DATA "SELECT GEOM, LOCATIE_ID FROM LOCATIE where LOCATIESOORT_ID = 10" > > Is there anyway I can improve performance changing this query or other > parameters? > > Thanks, > > Merlijn > From bjoern.platzen at MOMATEC.DE Thu Nov 18 06:05:05 2004 From: bjoern.platzen at MOMATEC.DE (=?iso-8859-1?Q?Bj=F6rn_Platzen?=) Date: Thu, 18 Nov 2004 15:05:05 +0100 Subject: What do I write in DATA when working with mygis?? Message-ID: Hello List, I put some data from a shapefile into my mySQL database, using the shp2mysql.pl-Script. In the documentation (WIKI) it's said, that DATA has to be something like DATA "geometry from TELEFON_LINE feature, TELEFON_LINE_bin geometry" In my mySQL-database, I've got a table mydata_bin which has the columnsGID, XMIN, YMIN,XMAX,YMAX,GEOMETRY_WKB and I've got a table called mydata_num with some columns called X1,X2,Y1,Y2, GID, ESEQ, ETYPE, SEQ. So, I don't really know how to "translate" the example from the WIKI for my database... Can anyone point me to the right direction?? Thanks in advance, Bjoern. From ana.rosa.maretec at IST.UTL.PT Thu Nov 18 05:53:14 2004 From: ana.rosa.maretec at IST.UTL.PT (Ana Rosa Trancoso) Date: Thu, 18 Nov 2004 13:53:14 -0000 Subject: Visual Studio .NET and Java applet problem Message-ID: Hello, I made some mapserver applications in Microsoft Visual Studio .NET 2002 that use a java applet. I have Java 2 Platform Standard Edition (version 1.4.2_05) installed in my PC. Suddenly, I can no longer open with Visual Studio .NET the htm page that contains the code to the java applet. Can you help me to solve this problem? Upgrading to Visual Studio .NET is not an option since my old solutions would be lost. Thanks in advance, Rosa -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhou_naijun at HOTMAIL.COM Thu Nov 18 06:55:24 2004 From: zhou_naijun at HOTMAIL.COM (N Zhou) Date: Thu, 18 Nov 2004 08:55:24 -0600 Subject: WFS schemas In-Reply-To: Message-ID: Hi Bart, Thank you for the information. I updated my mapserver to 4.4 in order to add namespace. But namescape doesn't work for the application schema. We also learned that right now we cannot use application-level schema. Naijun >From: "Bart van den Eijnden" >To: "N Zhou" , MAPSERVER-USERS at lists.umn.edu >Subject: Re: [UMN_MAPSERVER-USERS] WFS schemas >Date: Mon, 15 Nov 2004 21:22:01 +0100 > >Hi, > >the following bugzilla reports might be of information to you: > >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=950 >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=884 > >In short, you cannot use your own schema with Mapserver for WFS at the >moment. You can change the namespace, by using wfs_namespace_prefix, see: > >http://mapserver.gis.umn.edu/doc/wfs-server-howto.html > >Hope this helps. > >Best regards, >Bart > >On Mon, 15 Nov 2004 14:13:17 -0600, N Zhou wrote: > >>Hi, >> >>I'd highly appreciate your help/suggestion on my question of applying a >>different schemas in WFS. >> >>I sent a WFS DescribeFeatureType request to map server and I got a >>response >>as: >> >>>xmlns:myns="http://www.ttt.org/myns" >>xmlns:wfs="http://www.opengis.net/wfs" >>xmlns:gml="http://www.opengis.net/gml" >>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>xsi:schemaLocation="http://www.opengis.net/wfs >>http://myhost/wfsschema/wfs/1.0.0/WFS-basic.xsd http://www.ttt.org/myns >>http://myhost/cgi-bin/mapserv?map=/myWFS/data/mywfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=ngs"> >> >schemaLocation="http://myhost/wfsschema/gml/2.1/feature.xsd" /> >> >substitutionGroup="gml:_Feature" >>/> >>- >>- >>- >>- >> >nillable="false" >>/> >> >> >> >> >> >> >> >> >> >>Here the feature type "ngs_type" contains a list of elements. I wonder >>how I >>can get a response with features and elements defined by a specific >>schema >>(.xsd). I see some wfs schemas under the ows_schemas_location, but I >>don't >>know where I can place my own schema. Do I need to change the >>xmlns="http://www.ttt.org/myns" to another namespace, and how? >>Information >>about how schemas in WFS are imported and refered are also appreciated. >> >>Thanks a lot! >> >>Yours, >> >>N. Zhou >> > > > >-- >Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From bartvde at XS4ALL.NL Thu Nov 18 06:58:00 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 18 Nov 2004 15:58:00 +0100 Subject: Performance with oraclespatial using og r In-Reply-To: Message-ID: Hi, I don't know if this will work with views, I never tried. Frank might be able to comment on this part ... You could try looking at the 4.4 beta release, as the mapserver query functions have been implemented in that release by Fernando Simon for the native Oracle Spatial support. Best regards, Bart > Dear Bart, > > I'v tried using DATA "viewname", but I received the following error: > > msDrawMap(): Image handling error. Failed to draw layer named > 'hectometerhok'. > msOGRFileOpen(): OGR error. GetLayer(LOCATIE10) failed for OGR connection > `oci: a/b at c'. > > I also tried to use DATA "SELECT GEOM FROM LOCATIE" but this does not > perform any better as with the where clause. > > As I my web client isn't a WMS client (yet) I am not using bbox in the map > request, but mapext instead. > > Do you have any other idea to make it use the spatial index? > > By making a selection I meant an interactive selection in the map (using > NQUERY) and not a selection in the where clause as Paul mentioned. > > > Thank and kind regards, > > Merlijn > >> -----Original Message----- >> From: bartvde at xs4all.nl [mailto:bartvde at xs4all.nl] >> Sent: Thursday, November 18, 2004 14:16 >> To: Merlijn Simonse >> Cc: mapserver-users at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Performance with >> oraclespatial using ogr >> >> >> Hi, >> >> see: >> http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0404/ > msg00215.html > > in short, only by using DATA "tablename" the bbox is used in the query. > > Best regards, > Bart > >> Hi all, >> >> I have some oracle layers in my map to which I connect using ogr. I >> use ogr because I also make selections on this layer. Everything >> performs very well until the Oracle table gets too many records. As >> soon as it has more than 10,000 records it can take up to a few >> minutes to make the map. Selecting a polygon from this layer takes >> even more time and selecting n polygons can take more than 5 minutes. >> >> My data parameter is looks like this. >> >> CONNECTIONTYPE ogr >> CONNECTION "oci: a/b at c" >> DATA "SELECT GEOM, LOCATIE_ID FROM LOCATIE where LOCATIESOORT_ID = >> 10" >> >> Is there anyway I can improve performance changing this query or other >> parameters? >> >> Thanks, >> >> Merlijn >> > > From warmerdam at POBOX.COM Thu Nov 18 06:57:19 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 18 Nov 2004 09:57:19 -0500 Subject: Performance with oraclespatial using ogr In-Reply-To: Message-ID: Merlijn Simonse wrote: > Hi all, > > I have some oracle layers in my map to which I connect using ogr. I use > ogr because I also make selections on this layer. Everything performs very > well until the Oracle table gets too many records. As soon as it has more > than 10,000 records it can take up to a few minutes to make the map. > Selecting a polygon from this layer takes even more time and selecting n > polygons can take more than 5 minutes. > > My data parameter is looks like this. > > CONNECTIONTYPE ogr > CONNECTION "oci: a/b at c" > DATA "SELECT GEOM, LOCATIE_ID FROM LOCATIE where LOCATIESOORT_ID = 10" > > Is there anyway I can improve performance changing this query or other > parameters? Merlijn, I think you are running into an unfortunate interaction of limitations. The MapServer query architecture uses a two pass method. First it reads the shapes and identifies which ones meet the criteria for the query. Then to do something with the query results they are fetched one at a time by their ids. However, if the OGR OCI driver cannot identify a column that it considers to be a unique FID it finds it very hard to fetch features by FID. In particular, it will assign sequential FIDs and if you fetch a feature by FID it essentially has to read the whole resultset counting its way through to the desired feature. This exhibits a quadratic performance in the number of features in the set. That is, operating on twice as many shapes will take 4 times as long. Do your records have a unique (ie. primary key) column that could be used as FID? If it is indexed then OGR can fetch individual records much faster, but you would still need a way to tell OGR what field to use. Currently it will automatically use a field called OGR_FID as the FID if it is found, and if you use OGR to load data into Oracle it creates such a column. In GDAL 1.2.4 and later you can set the OCI_FID configuration option with the name of a column that should be used as the FID. This can be set externally as an environment variables, or within a map file in a CONFIG line. However, I am not absolutely certain that fast feature fetching is possible on the results of a custom query in the DATA statement. In fact, scanning the code I see that the case of user supplied SELECT statements does not include support for the OCI_FID environment variable. This is a bug that can be corrected if you need, but even then you would need to include the target FID field in your select statement. Something like. ... in the MAP section of the map file ... CONFIG "OCI_FID" "ID" ... in layer definition ... CONNECTIONTYPE ogr CONNECTION "oci: a/b at c" DATA "SELECT GEOM, LOCATIE_ID, ID FROM LOCATIE where LOCATIESOORT_ID = 10" Let me know if you would like to pursue this approach, and would like me to fix OGR's OCI driver so that it honours the OCI_FID config option. Best regards, -- ---------------------------------------+-------------------------------------- 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 Tom.Kralidis at EC.GC.CA Thu Nov 18 07:00:35 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 18 Nov 2004 10:00:35 -0500 Subject: WFS schemas Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of N Zhou > Sent: Thursday, 18 November, 2004 09:55 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WFS schemas > > > Hi Bart, > > Thank you for the information. I updated my mapserver to 4.4 > in order to add namespace. But namescape doesn't work for the > application schema. We also learned that right now we cannot > use application-level schema. > You can also set "wfs_namespace_uri" to set the associated URI for the prefix. ..Tom > Naijun > > >From: "Bart van den Eijnden" > >To: "N Zhou" , MAPSERVER-USERS at lists.umn.edu > >Subject: Re: [UMN_MAPSERVER-USERS] WFS schemas > >Date: Mon, 15 Nov 2004 21:22:01 +0100 > > > >Hi, > > > >the following bugzilla reports might be of information to you: > > > >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=950 > >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=884 > > > >In short, you cannot use your own schema with Mapserver for > WFS at the > >moment. You can change the namespace, by using wfs_namespace_prefix, > >see: > > > >http://mapserver.gis.umn.edu/doc/wfs-server-howto.html > > > >Hope this helps. > > > >Best regards, > >Bart > > > >On Mon, 15 Nov 2004 14:13:17 -0600, N Zhou > >wrote: > > > >>Hi, > >> > >>I'd highly appreciate your help/suggestion on my question > of applying > >>a different schemas in WFS. > >> > >>I sent a WFS DescribeFeatureType request to map server and I got a > >>response > >>as: > >> > >> >>xmlns:myns="http://www.ttt.org/myns" > >>xmlns:wfs="http://www.opengis.net/wfs" > >>xmlns:gml="http://www.opengis.net/gml" > >>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >>xsi:schemaLocation="http://www.opengis.net/wfs > >>http://myhost/wfsschema/wfs/1.0.0/WFS-basic.xsd > >>http://www.ttt.org/myns > http://myhost/cgi-bin/mapserv?map=/myWFS/data/mywfs.map&SERVIC E=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=ngs"> >> >schemaLocation="http://myhost/wfsschema/gml/2.1/feature.xsd" /> >> >substitutionGroup="gml:_Feature" >>/> >>- >>- >>- >>- >> >nillable="false" /> >> >> >> >> >> >> >> >> >> >>Here the feature type "ngs_type" contains a list of elements. I wonder >>how I can get a response with features and elements defined by a >>specific schema >>(.xsd). I see some wfs schemas under the ows_schemas_location, but I >>don't >>know where I can place my own schema. Do I need to change the >>xmlns="http://www.ttt.org/myns" to another namespace, and how? >>Information >>about how schemas in WFS are imported and refered are also appreciated. >> >>Thanks a lot! >> >>Yours, >> >>N. Zhou >> > > > >-- >Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From warmerdam at POBOX.COM Thu Nov 18 07:08:32 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 18 Nov 2004 10:08:32 -0500 Subject: OGR connection vs shp DATA In-Reply-To: <20041118000926.36469.qmail@web12206.mail.yahoo.com> Message-ID: Eduin Carrillo wrote: > Can somebody explain me benefits of using OGR as shapefile datasource vs. > reading shp files directly? Eduin, Advantages of using OGR for shapefile access: o OGR is slower than built-in Shapefile support because of many extra layers of abstraction and conversion. o OGR is slower because it doesn't currently support use of spatial indexes for shapefiles while the built-in mapserver shapefile support does. (Note: I actually have support for mapserver style spatial indexes half implemented in my local development tree, but no ETA). o OGR supports "OGR SQL" in the DATA statement, though most effects you might accomplish that way can be simulated at least as efficiently using MapServer expressions and other mechanisms. o You can use OGR style joins, including the ability to join to some non-shapefile types of stuff as long as it is supported by OGR. I am not sure how OGR joining compares to the built-in mapserver joins that work for shapefiles. Basically, except for rare circumstances you are better off using the built-in shapefile support instead of accessing through OGR. Best regards, -- ---------------------------------------+-------------------------------------- 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 yecarrillo at YAHOO.COM Thu Nov 18 07:36:09 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Thu, 18 Nov 2004 09:36:09 -0600 Subject: OGR connection vs shp DATA In-Reply-To: <419CBAF0.8020800@pobox.com> Message-ID: > Eduin, > > Advantages of using OGR for shapefile access: > > o OGR is slower than built-in Shapefile support because of many extra > layers of abstraction and conversion. > o OGR is slower because it doesn't currently support use of spatial > indexes for shapefiles while the built-in mapserver shapefile support > does. (Note: I actually have support for mapserver style spatial indexes > half implemented in my local development tree, but no ETA). > o OGR supports "OGR SQL" in the DATA statement, though most effects you > might accomplish that way can be simulated at least as efficiently using > MapServer expressions and other mechanisms. > o You can use OGR style joins, including the ability to join to some > non-shapefile types of stuff as long as it is supported by OGR. I am > not sure how OGR joining compares to the built-in mapserver joins that > work for shapefiles. > > Basically, except for rare circumstances you are better off using the > built-in shapefile support instead of accessing through OGR. > > Best regards, > Thank You. It is the most clear answer. I'm thinking to support joined shapes tables and OGR connection format for the next release of Gix Export Tool. Eduin ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From maps at DSCHULTZSYSTEMS.COM Thu Nov 18 07:59:57 2004 From: maps at DSCHULTZSYSTEMS.COM (Dave S) Date: Thu, 18 Nov 2004 09:59:57 -0600 Subject: How do I get rid of half-filled circles??? Corrected URL Message-ID: 2nd post - had the wrong URL in the last one. Dang newbies. OK. I'm a newbie but I've gotten pretty far and now I'm stumped with this stupid little thing. I can take a lat/long point and plot it on a map using the setXY method on a point object. I can do this succesfully with various symbols, except when I use a circle it appears half-filled instead of a solid color. What am I doing wrong? The map is here (note the dang half-circle): http://www.nms-i.com/ca/ca.phtml ############################################ MAPFILE IS HERE: ############################################ NAME AK STATUS on SIZE 500 500 EXTENT -117.593716 32.539857 -116.08103 33.503547 IMAGETYPE PNG IMAGECOLOR 255 255 255 SHAPEPATH "./data/" UNITS METERS LEGEND STATUS EMBED POSITION LR END WEB IMAGEPATH "/home/httpd/vhosts/nms-i.com/httpdocs/tmp/" IMAGEURL "/tmp/" END LAYER NAME "INLINE" TYPE POINT STATUS ON CLASS NAME "0" STYLE COLOR 0 0 255 SYMBOL 'square' SIZE 12 OUTLINECOLOR 0 0 0 END #style END #class CLASS NAME "1" STYLE COLOR 0 255 0 SYMBOL 'circle' SIZE 12 OUTLINECOLOR 0 0 0 END #style END #class END #layer LAYER GROUP roadCA NAME FENAME TYPE line STATUS DEFAULT DATA "tgr06073lkA" class backgroundcolor 128 128 128 color 255 000 000 name "Roads" OUTLINECOLOR 0 0 0 end END SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME 'square' TYPE VECTOR POINTS 0 0 0 1 1 1 1 0 END FILLED TRUE END END ############################################ PHP FILE: ############################################ setExtent(-117.238, 32.80, -117.18, 32.81); $img=$map->draw(); $layer = $map->getLayerByName('INLINE'); //THIS DRAWS THE SQUARE: $pt = ms_newPointObj(); $pt-> setXY(-117.190847, 32.828373); $pt->draw($map, $layer, $img, 0 ,'a'); //THIS DRAWS THE CIRCLE BUT IT IS HALF-FILLED: $pt = ms_newPointObj(); $pt-> setXY (-117.235008, 32.808819); $pt->draw($map, $layer, $img, 1 ,'b'); $image_url=$img->saveWebImage(); ?> US state boundaries From ealpert at DIGITALGLOBE.COM Thu Nov 18 08:57:59 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 18 Nov 2004 09:57:59 -0700 Subject: TIFF support Message-ID: Does the downloaded binary have GDAL support though? GDAL input supports tiff -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gayathri Swaminathan Sent: Thursday, November 18, 2004 12:55 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] TIFF support Hello: Certainly the binary you downloaded from mapserver's website does not seem to have TIFF support enabled... You might check www2.dmsolutions.ca or maptools.org/webtools/dl to see if there is a binary that has this enabled. Compiling binaries have come long ways and it should be easy breezy now if you followed the instructions...per mapserver website and the Readme that comes with the source package... Let me know if you need any further assistance.. Also post out to the list (the chances of getting a faster..response is better) Cheers, Gayathri ------------------------------------------------------------------------------------------------------------------------------------------------------------ Hi Gayathri, Thanks for your reply I have dowloaded the binary from http://hypnos.cbs.umn.edu/projects/downloads/ms42pg.zip I have no idea how to compile from source to be used on windows XP Thanks a lot for your help ---------------------------------------------------- Habib BEN YAHYATEN De : Swaminathan, Gayathri [mailto:gayathri at ou.edu] Envoy? : mercredi 17 novembre 2004 17:13 ? : habib.benyahyaten at oss.org.tn Cc : mapserver-users at lists.umn.edu Objet : RE: TIFF support Hi Habib, You have two options to enable tiff support, 1) By using TIFF as an independent support and recompiling mapserver- Look in makefile of mapserver to uncomment tiff options 2) By using GDAL compiled with libtiff support. The mapserver binary you have got does not seem to have the libtiff enabled either way... Can yougive more details as to where your downloaded the binary from? That will help analyze this.. Gayathri From: Habib BEN YAHYATEN [mailto:habib.benyahyaten at oss.org.tn] Sent: Wed 11/17/2004 10:05 AM To: Swaminathan, Gayathri Subject: TIFF support Hi, I have installed mapserver 4.2.0 on windows XP with apache tomcat Tiffs are not shown; When executing mapserv -v I have this: input=gdal ........ but not input=tiff Any idea please Thanks a lot ---------------------------------------------------- Habib BEN YAHYATEN From bjoern.platzen at MOMATEC.DE Thu Nov 18 09:18:03 2004 From: bjoern.platzen at MOMATEC.DE (=?iso-8859-1?Q?Bj=F6rn_Platzen?=) Date: Thu, 18 Nov 2004 18:18:03 +0100 Subject: Strange GML-Output on GetFeatureInfo-Request Message-ID: Hello List, I have a WMS running with mapserver 4.2.5, OGR and Postgis on a SuSE Linux 9.1 machine. When I specify the INFO_FORMAT parameter in the GetFeatureInfo Request as INFO_FORMAT=application/vnd.ogc.gml, I only get a part of what I expected: http://wms.essen123.server4you.de/cgi-bin/mapserv425.cgi?map=/srv/www/ht docs/web7/html/geovip.map&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=Oe PNVBus,OePNVSchiene,SPNV,FlughafenUmriss,FlughafenPunkt&STYLES=,,,,&SRS= EPSG:31467&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=FALSE&WIDTH=711 &HEIGHT=525&BBOX=3468378.433407,5543992.8501566,3471295.6965638,5546146. 9474243&QUERY_LAYERS=OePNVBusHaltestelle,OePNVSchieneHaltestelle,SPNVHal testelle,FlughafenUmriss,FlughafenPunkt&INFO_FORMAT=application/vnd.ogc. gml&X=279&Y=76&FEATURE_COUNT=10&EXCEPTIONS=application/vnd.ogc.se_xml& When I don't specify the INFO_FORMAT, I get, what I thought: about two features... http://wms.essen123.server4you.de/cgi-bin/mapserv425.cgi?map=/srv/www/ht docs/web7/html/geovip.map&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=Oe PNVBus,OePNVSchiene,SPNV,FlughafenUmriss,FlughafenPunkt&STYLES=,,,,&SRS= EPSG:31467&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=FALSE&WIDTH=711 &HEIGHT=525&BBOX=3468378.433407,5543992.8501566,3471295.6965638,5546146. 9474243&QUERY_LAYERS=OePNVBusHaltestelle,OePNVSchieneHaltestelle,SPNVHal testelle,FlughafenUmriss,FlughafenPunkt&X=279&Y=76&FEATURE_COUNT=10&EXCE PTIONS=application/vnd.ogc.se_xml& GetFeatureInfo results: Layer 'FlughafenUmriss' Feature 95102: oid = '95102' flughafen_cat = '2' Feature 95101: oid = '95101' flughafen_cat = '1' In WEB-Section of the mapfile, I have: METADATA "wms_title" "GeoVip Mapserver" "wms_onlineresource" "http://wms.essen123.server4you.de/gevisWMS.py?" "wms_srs" "EPSG:31467 EPSG:32623" "wms_feature_mime_type" "application/vnd.ogc.gml" "wms_extent" "3385300 5458000 3632300 5665500" END Do I have to specify something else in the mapfile to make it going?? Thanks in advance for any help! Cheers, Bjoern From bjoern.platzen at MOMATEC.DE Thu Nov 18 09:28:43 2004 From: bjoern.platzen at MOMATEC.DE (=?iso-8859-1?Q?Bj=F6rn_Platzen?=) Date: Thu, 18 Nov 2004 18:28:43 +0100 Subject: Strange GML-Output on GetFeatureInfo-Request In-Reply-To: Message-ID: Uuuuhhhh... I'm so damned blind... > Do I have to specify something else in the mapfile to make it going?? I forgot the DUMP TRUE within the layerdefinition... Sorry, next time I'll look better before I penetrate the list... Bye, Bjoern. From sirronj at PACBELL.NET Thu Nov 18 09:43:40 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 18 Nov 2004 09:43:40 -0800 Subject: a questoin about the action="[program]" in the form Message-ID: Hello, Thanks to all my first maps are very successful for my purposes. I now continue on to make them better. When I do not give an action in my html that produces the map and I click on a polygon - naturally get an error but I also get the following query strings: img.x=291&img.y=274 My question is given that these are the x/y coordinates of the polygon that has been clicked on - how do I relate these back to the data that belongs to this polygon - in this case the zip 96504 so that I can do a lookup on my db to give the user information about this zip? Thanks #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From ealpert at DIGITALGLOBE.COM Thu Nov 18 10:06:28 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 18 Nov 2004 11:06:28 -0700 Subject: a questoin about the action="[program]" in the form Message-ID: You really need to start looking at mapscript queryByPoint() -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Thursday, November 18, 2004 10:44 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] a questoin about the action="[program]" in the form Hello, Thanks to all my first maps are very successful for my purposes. I now continue on to make them better. When I do not give an action in my html that produces the map and I click on a polygon - naturally get an error but I also get the following query strings: img.x=291&img.y=274 My question is given that these are the x/y coordinates of the polygon that has been clicked on - how do I relate these back to the data that belongs to this polygon - in this case the zip 96504 so that I can do a lookup on my db to give the user information about this zip? Thanks #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From ARyan at CO.LINN.OR.US Thu Nov 18 11:33:29 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 18 Nov 2004 11:33:29 -0800 Subject: Python struct and mapscript saveQuery Message-ID: Oops...I meant to post this to the masses... Adam > -----Original Message----- > From: Sean Gillies [mailto:sgillies at FRII.COM] > Sent: Wednesday, November 17, 2004 7:42 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Python struct and > mapscript saveQuery > > > On Nov 17, 2004, at 6:54 PM, Ryan, Adam wrote: > > > Dear List, > > > > This is a picky little question concerning Python struct.pack and > > unpack methods, and mapscript saveQuery and loadQuery methods. > > > > I'm using Python Mapscript 4.4.0_beta2 on Windows XP and > saving query > > files using map.saveQuery(). I subsequently manipulate the saved > > query file. When I read the shape, tile and class index values using > > struct.unpack, the > > only format that seems to work is "iib0i", which means two integers > > and a > > signed char aligned at the end to the requirements of three > integers, I > > think. The issue is the class index value. Using "iii" or > any other > > 12 > > byte format gives me bad class index values. > > > > The byte order is not declared in my format string, so it > defaults to > > native byte order, size and alignment. Any declaration of > byte order > > doesn't work > > with this format. > > > > Here's the snippet that reads the indexes: > > ... > > for r in range(nr): > > tup = > struct.unpack("iib0i",f.read(struct.calcsize("iib0i"))) > > print str(tup[0]) + "," + str(tup[1]) + "," + str(tup[2]) > > ... > > > > Can anyone tell me why I can't just use "iii"? I can write query > > files using struct.pack("iii",... and mapserver will load > them without > > a problem. Am I doing something wrong or is there something > a little > > freaky in how mapserver writes class indexes out to file? > > > > Cheers, > > > > Adam > > > > Adam, I can't reproduce your problem on Linux (i686) or with > windows 2000. Am using Hobu's 4.4.0 beta 1 on the latter, > but there haven't been any recent changes. > > Python 2.3.4 (#3, Oct 9 2004, 19:23:21) > [GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2 > Type "help", "copyright", "credits" or "license" for more > information. >>> import mapscript >>> import struct >>> m > = mapscript.mapObj('projects/ms_43/mapserver/tests/test.map') > >>> l = m.getLayerByName('POLYGON') > >>> l.template = 'foo' > >>> l.queryByPoint(m, mapscript.pointObj(0.0, 51.5), 1, 0.0) > >>> r = l.getResults() >>> m.saveQuery('foo.q') >>> q = > open('foo.q','r').read(12) >>> q > '\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00' > >>> struct.unpack("iii", q) > (1, 1, 1) > > You're not by any chance saving the queries from another > machine are you? In that case you'd have to explicitly deal > with endian-ness. See the end of this doc > > http://docs.python.org/lib/module-struct.html > > >Sean > >-- >Sean Gillies >sgillies at frii dot com >http://users.frii.com/sgillies Sean, Thanks for taking a look at this for me. I'm not sure if the command lines you sent were chronological, but if so, the first three integers of a query file are the number of layers in the query file, the index of the first one, and the number of records saved in the first one. For your query file, that may indeed be 1,1,1. It's the class index values that I'm having trouble with. Here is the routine I've got to test this: #-------------- import mapscript, struct m = mapscript.mapObj("C:/ryan/imap/website/Project1/maps/bas.map") l = m.getLayerByName("Taxlots") l.queryByRect(m,mapscript.rectObj(7550000,300000,7555000,310000)) m.saveQuery("foo.qy") qh = open("foo.qy","rb") n = struct.unpack("i",qh.read(struct.calcsize("i")))[0] print "numlayers:" + str(n) for l in range(n): lHead = struct.unpack("ii4d",qh.read(struct.calcsize("ii4d"))) print "index:" + str(lHead[0]) print "numrecs:" + str(lHead[1]) print "minx:" + str(lHead[2]) print "miny:" + str(lHead[3]) print "maxx:" + str(lHead[4]) print "maxy:" + str(lHead[5]) for r in range(lHead[1]): tup = struct.unpack("iib0i",qh.read(struct.calcsize("iib0i"))) print str(tup[0]) + "," + str(tup[1]) + "," + str(tup[2]) qh.close() #---------------- And here are my results: numlayers:1 index:3 numrecs:14 minx:7546410.49461 miny:298868.944762 maxx:7558144.86958 maxy:310504.828106 1017,-1,1 1018,-1,-1 36500,-1,-1 36537,-1,1 37081,-1,1 37096,-1,1 37454,-1,2 37494,-1,1 37496,-1,1 37657,-1,1 37766,-1,-1 37792,-1,1 37841,-1,0 37846,-1,0 And here are my results if I change the format in the third to last line from "iib0i" to "iii": numlayers:1 index:3 numrecs:14 minx:7546410.49461 miny:298868.944762 maxx:7558144.86958 maxy:310504.828106 1017,-1,1 1018,-1,255 36500,-1,255 36537,-1,1 37081,-1,1 37096,-1,1 37454,-1,2 37494,-1,1 37496,-1,1 37657,-1,1 37766,-1,1668507135 37792,-1,1869571841 37841,-1,809329664 37846,-1,892812544 And I'm doing all this on one machine, a Windows XP box, Intel processor. What do you make of this? Cheers, Adam From richard.greenwood at GMAIL.COM Thu Nov 18 11:36:16 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 18 Nov 2004 12:36:16 -0700 Subject: jBox Java applet In-Reply-To: <42529C60130B66428EE04284C47C1A27EAF223@enhbgpri17.backup> Message-ID: Looks like there are problems with your codebase and archive parameters. You have: codebase="java\jBox" archive="jBoxPNG.jar,png.jar" The way you have codebase, the 'java' directory will not be found. I assume that 'mapserver' is an IIS virtual directory, so try: 'codebase=/mapserver/java/jbox' Forward slashes, not back slashes, as this is a URI, not a DOS path. I'm a little unclear on the specification of two jar files in the archive parameter. Is that legal? Where'd you come up with that? And you have the .jar files in /mapserver/java/jbox/ not a subdirectory, right? You might want to start with GIFs and the standard jBox, rather than jBoxPNG which requries the sixlegs library. If you're using the Sun Java VM, you don't need six-legs anyway. I am cc'ing the mapserver-users list as others may spot something that I missed. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com On Thu, 18 Nov 2004 09:49:02 -0500, Andhare, Manjiri wrote: > Yes I have JVM and after running the demo, if I check the java console, > I get following: > ---------------------------------------------------- > load: class jBoxPNG.class not found. > > java.lang.ClassNotFoundException: jBoxPNG.class > > at sun.applet.AppletClassLoader.findClass(Unknown Source) > > at java.lang.ClassLoader.loadClass(Unknown Source) > > at sun.applet.AppletClassLoader.loadClass(Unknown Source) > > at java.lang.ClassLoader.loadClass(Unknown Source) > > at sun.applet.AppletClassLoader.loadCode(Unknown Source) > > at sun.applet.AppletPanel.createApplet(Unknown Source) > > at sun.plugin.AppletViewer.createApplet(Unknown Source) > > at sun.applet.AppletPanel.runLoader(Unknown Source) > > at sun.applet.AppletPanel.run(Unknown Source) > > at java.lang.Thread.run(Unknown Source) > > Caused by: java.io.IOException: open HTTP connection failed. > > at sun.applet.AppletClassLoader.getBytes(Unknown Source) > > at sun.applet.AppletClassLoader.access$100(Unknown Source) > > at sun.applet.AppletClassLoader$1.run(Unknown Source) > > at java.security.AccessController.doPrivileged(Native Method) > > ... 10 more > > Manjiri Andahre > GIS co-ordinator > PA Fish & Boat commission > tel: (814)3595182 > fax:(814)3595153 > > > > -----Original Message----- > From: Richard Greenwood [mailto:richard.greenwood at gmail.com] > Sent: Thursday, November 18, 2004 9:43 AM > To: Manjiri Andhare > Subject: Re: [UMN_MAPSERVER-USERS] jBox Java applet > > Do you have a Java Virtual machine installed? > Get one here: > > http://www.java.com/en/download/installed.jsp > > Rich > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > > On Thu, 18 Nov 2004 07:29:16 -0600, Manjiri Andhare > wrote: > > Hi! > > I was looking for the functionality to draw a rectangle for zooming in > on > > the map. I found jBox by Steve Lime on > > http://mapserver.gis.umn.edu/contributed.html > > I have Windows 2000 and I'm running mapserver 4.2 on IIS. > > I follwed the steps from jBox HOWTO 4.2 to test it with the workshop > demo. > > But when i try to run the workshop demo with "Basic application" > option, in > > the status bar of Browser(I'm using IE 6.0) I get the message as; > > Loading Java Applet Failed.. > > And I'm not getting the reason behind this.. > > Here is the changed portion of itasca_basic.html file: > > *************************************** > > > > > > > > MapServer - Itasca Application > > > > > > > > > >

MapServer - Itasca Application

> >
> > > > > >
> > > > > > > > > >
> > > align="center" bgcolor="#666666"> > > > > > > > > > >
> > > codebase="java\jBox" > > archive="jBoxPNG.jar,png.jar" > > code="jBoxPNG.class" > > width="600" > > height="600" > > name="jBox" > > MAYSCRIPT> > > > > > >
> > scalebar (mi) > >
> >
> > > >
> >
> >

> > > > > Browse > > map
> > Query > > feature
> > Query > multiple > > features > > > >


> > > >

> > Select Layers to Display:
> > > > > >

> > Zoom In [zoomdir_1_check]> > > Pan > > Zoom Out [zoomdir_-1_check]> > >

> > Zoom Size value=[zoomsize]> > >

> > > > Legend


> >
> > > >

> >

> > > border="0">
> >
> > > >
> >
> > > > > > *************************************************** > > > > I have placed the jBox as: > > c:\Inetpub\wwwroot\MapServer\java\jBox > > And I have placed the jar files, class files and java source files > from > > lib,classes and src folders respectively under > > c:\Inetpub\wwwroot\MapServer\java\jBox > > > > If somebody could point out what i'm missing,it'll be great!! > > Thank you, > > Manjiri Andhare > > GIS Coordinator > > PA Fish & Boat Commission > > U.S.A. > > > > From mapserver at GISMAP.CH Thu Nov 18 12:48:25 2004 From: mapserver at GISMAP.CH (Roman Meier) Date: Thu, 18 Nov 2004 21:48:25 +0100 Subject: expression string Message-ID: Hi list I've got a problem using the same expression string multiple times. It seems that a can use a specific expression only one single time within a map-File. When I use it a second time mapserver (4.0.2 and 4.2.5) returns an empty page. Is it possible to use the same expression multiple times? I'm using the following expression: [...] CLASS NAME "blabla" EXPRESSION ('[SYSTEM]' eq 'Schmutz') TEMPLATE "template/schacht.html" [...] Any ideas? Thanks in advance! Roman From warmerdam at POBOX.COM Thu Nov 18 13:41:10 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 18 Nov 2004 16:41:10 -0500 Subject: MS 4.2 binariy with TIFF Input Support ? In-Reply-To: <200411172233.iAHMXICl171914@pimout3-ext.prodigy.net> Message-ID: Geographic Resource Solutions wrote: > Frank, > > Yes, there is the reference to GDAL that you mention. > > I have my index (built with gdaltindex) working, as I have used it to > tell me which image mapserver 'thinks' it should draw and that looks > like it is working fine. I do have questions about where MapServer is > going to look for these images (IMAGEPATH ?). Is there anything else > out of the ordinary that I must specify or define to get them to draw > or should they draw when properly referenced through my map file raster > layer definition? Ken, MapServer will append the path found in the tileindex to the SHAPEPATH. If that doesn't work it will try doing it relative to the map and finally just using the path in the tileindex literally. If the path in the tileindex is absolute it will also be used directly. ... I think ... Best regards, -- ---------------------------------------+-------------------------------------- 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 sirronj at PACBELL.NET Thu Nov 18 14:25:22 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 18 Nov 2004 14:25:22 -0800 Subject: my app can not find template Message-ID: Hello, I am getting this message: mapserv(): Web application error. No template provided I have a hidden field Should my hidden field be the root relative or absolute path? No matter what I try my app is not finding my template. Thanks ahead of time. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From gireddy at GMAIL.COM Thu Nov 18 14:03:19 2004 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Thu, 18 Nov 2004 16:03:19 -0600 Subject: custom marking of cities Message-ID: Hi, I came up with a situation that i must show all county capitals with a circle and a dot in it and all other cities with a square, I am tigerline shape files from ESRI website, i am working on php/mapscript and i have no problem with it. does anybody has any idea about how to generate these kind of effects. I also have Arc GIS with me, will that be useful (i just need to generate images for this particular case). Thank you, shashi. -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, Department of Computer Science, University of Alabama. http://www.cs.ua.edu/shashi Home: 205-752-5137 Cell: 205-657-1438 From ummmmm at MYREALBOX.COM Thu Nov 18 14:37:29 2004 From: ummmmm at MYREALBOX.COM (Doug) Date: Thu, 18 Nov 2004 16:37:29 -0600 Subject: Stack trace from timing out PHP MapScript CGI In-Reply-To: <419A78DE.2030400@myrealbox.com> Message-ID: Interesting - it turns out that at least a significant part of our performance problems was that MapServer wasn't using the QIX index files for the shapefiles. I surprised it took this long to stumble across, so maybe some documentation can be added to warn about this situation. Here's what we finally found: Doug wrote: > I posted here a couple of weeks ago asking about our CGI PHP MapScript > application that appears to quit responding periodically. > > > Context refresher: > > MapServer/MapScript 4.2.5, PHP 4.3.8 (cgi), PostgreSQL 7.4.3, PostGIS > 0.8.2, > Apache 2.0.51, Fedora Core 2 SMP (Dual CPU 2GHz P4). > > Application posts to PHP file, which does a map->draw() (of shapefile > layers), > followed by a couple of queryByRect() on non-shown (PostGIS) layers, manual > point->draw()s with custom, numbered labels, then a map->save(). > > I had observed that regularly the PHP processes seem to hang or stall, so > somebody on #Mapserver suggested that I compile with debug options and > try to > obtain a stack trace when this happens. > > Unfortunately, I've been unable to duplicate the exact situation, but I > have > seen some similar ones where client requests to the PHP CGIs stack up > and time > out. In fact, I can force that to happen simply by getting several > clients to > make a simultaneous request of the server. Today, I forced 7 such > simultaneous requests, and every single one of them timed out. > Normally, when > this kind of condition occurs, the MapServer stderr also reports: > > [Mon Nov 15 21:17:39 2004] [error] [client 32.83.226.185] PHP Fatal error: > Maximum execution time of 30 seconds exceeded in > var/www/html/offender/map.php > on line 87 > > But this didn't happen in my forced test today. i.e. my clients timed out, > but the PHP CGIs didn't seem to. Obviously, I need to play with either my > client or server timeouts, but can anything useful be determined by these > stack traces?: > > From last night's "natural" slowdown (which was so bad that most/all > requests > during a 30 minute period timed out): > > #0 0x00ac8402 in ?? () > #1 0x005e11ea in lseek64 () from /lib/tls/libc.so.6 > #2 0x00581a37 in _IO_file_seek_internal () from /lib/tls/libc.so.6 > #3 0x0058175a in _IO_new_file_seekoff () from /lib/tls/libc.so.6 > #4 0x00578a2a in _IO_seekoff_unlocked () from /lib/tls/libc.so.6 > #5 0x0057e08d in fseek () from /lib/tls/libc.so.6 > #6 0x0030b5c2 in msSHPReadBounds (psSHP=0x8f0d858, hEntity=36339712, > padBounds=0xfef2dd70) at mapshape.c:1163 > #7 0x0030bb32 in msSHPWhichShapes (shpfile=0x8fcebc0, rect= {minx = > 511572.85125965299, miny = 3562542.8004036499, maxx = > 513272.85125965299, maxy > = 3563562.8004036499}, debug=0) at mapshape.c:1338 > #8 0x0032e14a in msLayerWhichShapes (layer=0x8d92198, rect= {minx = > 511572.85125965299, miny = 3562542.8004036499, maxx = > 513272.85125965299, maxy > = 3563562.8004036499}) at maplayer.c:198 > #9 0x00330a02 in msDrawVectorLayer (map=0xf6ff3008, layer=0x8d92198, > image=0x8f0e7e0) at mapdraw.c:751 > #10 0x00330711 in msDrawLayer (map=0xf6ff3008, layer=0x8d92198, > image=0x8f0e7e0) at mapdraw.c:639 > #11 0x00330028 in msDrawMap (map=0xf6ff3008) at mapdraw.c:317 > #12 0x0030006f in mapObj_draw (self=0xf6ff3008) at mapscript_i.c:419 > #13 0x002f2279 in php3_ms_map_draw (ht=0, return_value=0x8d550ac, > this_ptr=0x8d5502c, return_value_used=1) at php_mapscript.c:3311 > #14 0x0811dcfa in execute (op_array=0x8d650d4) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1635 > #15 0x0811dac9 in execute (op_array=0x8d425dc) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1679 > #16 0x0811dac9 in execute (op_array=0x8d3ef8c) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1679 > #17 0x08112fd3 in zend_execute_scripts (type=8, retval=0x0, > file_count=3) at > /usr/src/php-4.3.8/Zend/zend.c:891 > #18 0x080f089c in php_execute_script (primary_file=0xfef30780)at > /usr/src/php-4.3.8/main/main.c:1734 > #19 0x081220b2 in main (argc=1, argv=0xfef30844) at > /usr/src/php-4.3.8/sapi/cgi/cgi_main.c:1592 > > From today's artificial one (which lasted less than a minute after the > simultaneous requests were finished): > > #0 0x005fc7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 > #1 0x0050f85a in lseek64 () from /lib/tls/libc.so.6 > #2 0x004afbf7 in _IO_file_seek_internal () from /lib/tls/libc.so.6 > #3 0x004af91a in _IO_new_file_seekoff () from /lib/tls/libc.so.6 > #4 0x004a6bea in _IO_seekoff_unlocked () from /lib/tls/libc.so.6 > #5 0x004ac24d in fseek () from /lib/tls/libc.so.6 > #6 0x0080c5c2 in msSHPReadBounds (psSHP=0x9d5e190, hEntity=63127552, > padBounds=0xfeebf8a0) at mapshape.c:1163 > #7 0x0080cb32 in msSHPWhichShapes (shpfile=0x9e1f860, rect={minx = > 400998.78413511597, miny = 3697149.2200513999, maxx = > 402698.78413511597, maxy > = 3698169.2200513999}, debug=0) at mapshape.c:1338 > #8 0x0082f14a in msLayerWhichShapes (layer=0x9be1d60, rect={minx = > 400998.78413511597, miny = 3697149.2200513999, maxx = > 402698.78413511597, maxy > = 3698169.2200513999}) at maplayer.c:198 > #9 0x00831a02 in msDrawVectorLayer (map=0xf6fc4008, layer=0x9be1d60, > image=0x9d5e388) at mapdraw.c:751 > #10 0x00831711 in msDrawLayer (map=0xf6fc4008, layer=0x9be1d60, > image=0x9d5e388) at mapdraw.c:639 > #11 0x00831028 in msDrawMap (map=0xf6fc4008) at mapdraw.c:317 > #12 0x0080106f in mapObj_draw (self=0xf6fc4008) at mapscript_i.c:419 > #13 0x007f3279 in php3_ms_map_draw (ht=0, return_value=0x9ba4254, > this_ptr=0x9ba41d4, return_value_used=1) at php_mapscript.c:3311 > #14 0x0811dcfa in execute (op_array=0x9bb4c84) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1635 > #15 0x0811dac9 in execute (op_array=0x9b917dc) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1679 > #16 0x0811dac9 in execute (op_array=0x9b8deec) at > /usr/src/php-4.3.8/Zend/zend_execute.c:1679 > #17 0x08112fd3 in zend_execute_scripts (type=8, retval=0x0, > file_count=3) at > /usr/src/php-4.3.8/Zend/zend.c:891 > #18 0x080f089c in php_execute_script (primary_file=0xfeec22b0) at > /usr/src/php-4.3.8/main/main.c:1734 > #19 0x081220b2 in main (argc=1, argv=0xfeec2374) at > /usr/src/php-4.3.8/sapi/cgi/cgi_main.c:1592 > > Basically, it seems that it takes very few simultaneous requests for our > system to fall behind. If it gets even more requests than that minimum, it > seems to be unable to recover for sometimes half an hour or more. > > I've seen people claiming very good performance of similar applications on > slower systems, so I'm trying to understand what could be causing this > behaviour. > > Here's hoping the stack traces will at least help us pinpoint the likely > cuplrit(s). > > Doug > > From MHoward at SPACEIMAGING.COM Thu Nov 18 14:42:18 2004 From: MHoward at SPACEIMAGING.COM (Howard Mark) Date: Thu, 18 Nov 2004 15:42:18 -0700 Subject: WMS Getfeatureinfo Filter Request Problem Message-ID: Can someone tell me what I'm doing wrong in this request (filteritem and filter parameter formats)? I'm trying to filter features in the ikonos layer by the field MCCA_FULL. http://server_name/script_name?&request=GetFeatureInfo&map=map_name&srs=EPSG:4326&radius=1&width=328&height=281&query_layers=ikonos&layers=ikonos&bbox=-80.7779,24.7364,-80.458,25.0113&X=166&Y=142&wmtver=1.0&FEATURE_COUNT=3000&ikonos_filteritem=MCCA_FULL&ikonos_filter='/5/' I've also tried &ikonos_filter=/5/ &ikonos_filter=5 ....... I get a full set of features without filtering. TIA for any help rendered! Mark *************************************************************************** This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify Space Imaging immediately. *************************************************************************** From ARyan at CO.LINN.OR.US Thu Nov 18 15:02:24 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 18 Nov 2004 15:02:24 -0800 Subject: my app can not find template Message-ID: > -----Original Message----- > From: Joseph Norris [mailto:sirronj at PACBELL.NET] > Sent: Thursday, November 18, 2004 2:25 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] my app can not find template > > > Hello, > > I am getting this message: > > mapserv(): Web application error. No template provided > > I have a hidden field name="map_web_template" value=" this I am not sure of "> > > Should my hidden field be the root relative or absolute path? > > No matter what I try my app is not finding my template. > > Thanks ahead of time. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) > print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4, > -3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > Joseph, Just want to make sure your setting the value to a file, not just a path, and not a url. Give us the examples that you've used. Adam From Tom.Kralidis at EC.GC.CA Thu Nov 18 15:02:49 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 18 Nov 2004 18:02:49 -0500 Subject: WMS Getfeatureinfo Filter Request Problem Message-ID: You might be better off using OGC:WFS for this to do custom filtering to get *data* back: http://server_name/script_name?version=1.0.0&service=WFS&request=GetFeat ure&map=map _name&typename=ikonos&bbox=-80.7779,24.7364,-80.458,25.0113&X=166&Y=142& filter=some_field_name5& ..Tom > > Can someone tell me what I'm doing wrong in this request > (filteritem and filter parameter formats)? I'm trying to > filter features in the ikonos layer by the field MCCA_FULL. > > http://server_name/script_name?&request=GetFeatureInfo&map=map _name&srs=EPSG:4326&radius=1&width=328&height=281&query_layers=ikonos&la yers=ikonos&bbox=-80.7779,24.7364,-80.458,25.0113&X=166&Y=142&wmtver=1.0 &FEATURE_COUNT=3000&ikonos_filteritem=MCCA_FULL&ikonos_filter='/5/' I've also tried &ikonos_filter=/5/ &ikonos_filter=5 ....... I get a full set of features without filtering. TIA for any help rendered! Mark ************************************************************************ *** This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify Space Imaging immediately. ************************************************************************ *** From ealpert at DIGITALGLOBE.COM Thu Nov 18 15:18:56 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 18 Nov 2004 16:18:56 -0700 Subject: my app can not find template Message-ID: Your value should be the *absolute* path to your html template file. If you've tried the absolute path I'm not sure why your not finding it. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Thursday, November 18, 2004 3:25 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] my app can not find template Hello, I am getting this message: mapserv(): Web application error. No template provided I have a hidden field Should my hidden field be the root relative or absolute path? No matter what I try my app is not finding my template. Thanks ahead of time. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From MHoward at SPACEIMAGING.COM Thu Nov 18 15:28:57 2004 From: MHoward at SPACEIMAGING.COM (Howard Mark) Date: Thu, 18 Nov 2004 16:28:57 -0700 Subject: WMS Getfeatureinfo Filter Request Problem Message-ID: I have an existing application that depends on the data format from the GETFEATUREINFO request. I know this works - I've done it before. I just forget how :( Mark -----Original Message----- From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] Sent: Thursday, November 18, 2004 4:03 PM To: Howard Mark; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] WMS Getfeatureinfo Filter Request Problem You might be better off using OGC:WFS for this to do custom filtering to get *data* back: http://server_name/script_name?version=1.0.0&service=WFS&request=GetFeat ure&map=map _name&typename=ikonos&bbox=-80.7779,24.7364,-80.458,25.0113&X=166&Y=142& filter=some_field_name5& ..Tom > > Can someone tell me what I'm doing wrong in this request > (filteritem and filter parameter formats)? I'm trying to > filter features in the ikonos layer by the field MCCA_FULL. > > http://server_name/script_name?&request=GetFeatureInfo&map=map _name&srs=EPSG:4326&radius=1&width=328&height=281&query_layers=ikonos&la yers=ikonos&bbox=-80.7779,24.7364,-80.458,25.0113&X=166&Y=142&wmtver=1.0 &FEATURE_COUNT=3000&ikonos_filteritem=MCCA_FULL&ikonos_filter='/5/' I've also tried &ikonos_filter=/5/ &ikonos_filter=5 ....... I get a full set of features without filtering. TIA for any help rendered! Mark ************************************************************************ *** This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify Space Imaging immediately. ************************************************************************ *** ******************************************************************************** This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify Space Imaging immediately. ******************************************************************************** From sirronj at PACBELL.NET Thu Nov 18 16:44:18 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 18 Nov 2004 16:44:18 -0800 Subject: my app can not find template In-Reply-To: <8292E3D1E5E2EF4A94C36FE80D2443A85AF930@linnms.co.linn.or.us> Message-ID: Ok - here is what I have. I have a perl cgi that builds my primary page, builds the map file and uses the perl api to build the map image, then displays the page. In the initial page I have all of the hidden fields that will direct that are to be read by the mapserver to allow me to zoom into different polygons on my California zip map ( each polygon representing a zip ). The cgi produces the following html: MapServer - CS CGI Application

MapServer - CS CGI Application


Teacher Type:
The html consists of two forms one for selection of the criteria which rebuilds the map just fine. The second for looking at the polygons. My map file that is produced appears as follows on the initial display of the map: MAP NAME CalMap STATUS ON EXTENT 5890870.385 -192053.200 8943310.847 3226086.749 IMAGETYPE GIF SIZE 600 600 SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " IMAGECOLOR 255 255 255 SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME "cal_zp_st" TYPE POLYGON DATA "cal_zp_st" STATUS DEFAULT CLASSITEM "ZCTA" CLASS EXPRESSION /./ OUTLINECOLOR 204 204 204 END END END # end map from header And after selection of specific criteria: MAP NAME CalMap STATUS ON EXTENT 5890870.385 -192053.200 8943310.847 3226086.749 IMAGETYPE GIF SIZE 600 600 SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " IMAGECOLOR 255 255 255 SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME "cal_zp_st" TYPE POLYGON DATA "cal_zp_st" STATUS DEFAULT CLASSITEM "ZCTA" CLASS EXPRESSION /94087|90408|94107|95118|94530|94596|90037|91016|92024|94954|93901|92503/ STYLE SYMBOL 'circle' SIZE 2 COLOR 255 102 102 END END CLASS EXPRESSION /./ OUTLINECOLOR 204 204 204 END END END # end map from header My error condition comes about when I try to click on one of the polygons in the map. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ryan, Adam Sent: Thursday, November 18, 2004 3:02 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] my app can not find template > -----Original Message----- > From: Joseph Norris [mailto:sirronj at PACBELL.NET] > Sent: Thursday, November 18, 2004 2:25 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] my app can not find template > > > Hello, > > I am getting this message: > > mapserv(): Web application error. No template provided > > I have a hidden field name="map_web_template" value=" this I am not sure of "> > > Should my hidden field be the root relative or absolute path? > > No matter what I try my app is not finding my template. > > Thanks ahead of time. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) > print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4, > -3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > Joseph, Just want to make sure your setting the value to a file, not just a path, and not a url. Give us the examples that you've used. Adam From dmorissette at DMSOLUTIONS.CA Thu Nov 18 20:35:02 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Thu, 18 Nov 2004 23:35:02 -0500 Subject: How do I get rid of half-filled circles??? Corrected URL In-Reply-To: Message-ID: Dave S wrote: > > OK. I'm a newbie but I've gotten pretty far and now I'm stumped with this > stupid little thing. I can take a lat/long point and plot it on a map > using the setXY method on a point object. I can do this succesfully with > various symbols, except when I use a circle it appears half-filled instead > of a solid color. > > What am I doing wrong? The map is here (note the dang half-circle): > http://www.nms-i.com/ca/ca.phtml > A similar issue has been reported before. The problem was that the PHP was compiled using the bundled GD instead of the system GD. You must make sure that your PHP and your Mapserver (php_mapscript.so) are compiled using the exact same copy of GD. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Thu Nov 18 21:02:45 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Fri, 19 Nov 2004 00:02:45 -0500 Subject: [get_layers] template parameter In-Reply-To: Message-ID: Roman Stammbach wrote: > > We use the [get_layers] variable in our html template. Version 4.2.0 used to fill it with a string like: > > "&layer=lakespy2&layer=Lakes+and+Rivers" > > The more recent version 4.2.4 we're using now returns > > "lakespy2 Lakes and Rivers" > I know that this tag has been removed in 4.4. I'm not sure what you should use to replace it though. You may want to ask that question in the following bug: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1057 -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Thu Nov 18 21:25:56 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Fri, 19 Nov 2004 00:25:56 -0500 Subject: html legend order_metadata in [leg_group_html]? In-Reply-To: Message-ID: Ken Boss wrote: > > If order_metadata does not in fact apply to the [leg_group_html] tag, > is there some other means (other than physical ordering in the map > file) > available to control the order in which my groups appear in the > legend? > Um... haven't played with that in a while, but if I remember correctly, the order_metadata is used to reorder the layers globally in the map before producing the legend. So you can indirectly control the order of groups by controlling the order of occurence of the layers from each group. If you only care about group ordering then it should be enough to assign the same order metadata value to all layers in a given group, i.e. set it to 1 for all layers in group 1, set to 2 for all layers in group 2, etc. If the order of layers within groups also matters then you can assign layer order metadata in the range 100-199 for layers in group 1, 200-299 for layers in group 2, etc. I hope I'm not misleading you... once again, it was quite a while ago since I played with that. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From bjoern.platzen at MOMATEC.DE Thu Nov 18 23:28:37 2004 From: bjoern.platzen at MOMATEC.DE (=?iso-8859-1?Q?Bj=F6rn_Platzen?=) Date: Fri, 19 Nov 2004 08:28:37 +0100 Subject: What do I write in DATA when working with mygis?? In-Reply-To: Message-ID: Hello List, my problem is not yet solved, though I tried a lot since my last post... First of all I enabled debugging in my mapserver-compilation (btw. it's 4.4-beta2) and when I tried to define: DATA "GEOMETRY FROM mydata FEATURE, mydata_bin GEOMETRY" I got a long error-message that told me, I should only do DATA "geometry_column from spatial_table" (that would be "GEOMETRY_WKB from mydata_bin" in my case). But when I use the above statement in DATA, it seems as if the statement is not even fired in mysql. The connect is the only thing I can see in my mysql-logfile and the mapserver does not produce any error messages... Is there really nobody out there, who could help?? Cheers, Bjoern. P.S.: that was my last posting : > I put some data from a shapefile into my mySQL database, > using the shp2mysql.pl-Script. > > In the documentation (WIKI) it's said, that DATA has to be > something like DATA "geometry from TELEFON_LINE feature, > TELEFON_LINE_bin geometry" > > In my mySQL-database, I've got a table mydata_bin which has > the columnsGID, XMIN, YMIN,XMAX,YMAX,GEOMETRY_WKB and I've > got a table called mydata_num with some columns called > X1,X2,Y1,Y2, GID, ESEQ, ETYPE, SEQ. > > So, I don't really know how to "translate" the example from > the WIKI for my database... From giorgio.plazzotta at SARASRICERCHE.IT Fri Nov 19 00:35:01 2004 From: giorgio.plazzotta at SARASRICERCHE.IT (Giorgio Plazzotta) Date: Fri, 19 Nov 2004 09:35:01 +0100 Subject: PostGIS vs MyGis Message-ID: MAPSERVER-USERS Digest - 17 Nov 2004 to 18 Nov 2004 (#2004-117)Hello is there anybody who have already experienced a comparison between the PostGIS geotatabase environment and the new MySQL MyGis. I am especially interested in the performance issues but would also know if the MySQL environment is stable and if there are meaningful differences in the spatial functions. Thanx in advance Giorgio Plazzotta Saras Ricerche Assemini /CA) - Italy -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.simonse at VICREA.NL Fri Nov 19 02:07:40 2004 From: m.simonse at VICREA.NL (Merlijn Simonse) Date: Fri, 19 Nov 2004 04:07:40 -0600 Subject: Performance with oraclespatial using ogr Message-ID: Frank, Thanks for your respond. In my database I have about ten different tables with spatial data. The PK fields have a different name in every table. As the OCI_FID CONFIG parameter is the same for all tables I probably better add an OGR_FID field to the necessary tables. To test if a unique indexed OGR_FID column improves performance I added this column to my table and also changed my DATA parameter to: DATA "SELECT OGR_FID, GEOM, LOCATIE_ID from LOCATIE where LOCATIESOORT_ID = 10" (I was wondering if "SELECT LOCATIE_ID as OGR_FID..." could also work) I didn't notice any differencin performance. I also tried: DATA "SELECT OGR_FID, GEOM, LOCATIE_ID from LOCATIE" Without the where clause it's very slow as well. Am I not using the right DATA parameter to let it use my OGR_FID field? Kind regards, Merlijn > -----Original Message----- > From: Frank Warmerdam [mailto:warmerdam at pobox.com] > Sent: Thursday, November 18, 2004 15:57 > To: Merlijn Simonse > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Performance with > oraclespatial using ogr > > Merlijn, > > I think you are running into an unfortunate interaction of > limitations. The MapServer query architecture uses a two > pass method. First it reads the shapes and identifies which > ones meet the criteria for the query. Then to do something > with the query results they are fetched one at a time by their ids. > > However, if the OGR OCI driver cannot identify a column that > it considers to be a unique FID it finds it very hard to > fetch features by FID. In particular, it will assign > sequential FIDs and if you fetch a feature by FID it > essentially has to read the whole resultset counting its way > through to the desired feature. This exhibits a quadratic > performance in the number of features in the set. That is, > operating on twice as many shapes will take 4 times as long. > > Do your records have a unique (ie. primary key) column that > could be used as FID? If it is indexed then OGR can fetch > individual records much faster, but you would still need a > way to tell OGR what field to use. Currently it will > automatically use a field called OGR_FID as the FID if it is > found, and if you use OGR to load data into Oracle it creates > such a column. In GDAL 1.2.4 and later you can set the > OCI_FID configuration option with the name of a column that > should be used as the FID. This can be set externally as an > environment variables, or within a map file in a CONFIG line. > > However, I am not absolutely certain that fast feature > fetching is possible on the results of a custom query in the > DATA statement. In fact, scanning the code I see that the > case of user supplied SELECT statements does not include > support for the OCI_FID environment variable. This is a bug > that can be corrected if you need, but even then you would > need to include the target FID field in your select > statement. Something like. > > > ... in the MAP section of the map file ... > > CONFIG "OCI_FID" "ID" > > ... in layer definition ... > > CONNECTIONTYPE ogr > CONNECTION "oci: a/b at c" > DATA "SELECT GEOM, LOCATIE_ID, ID FROM LOCATIE where > LOCATIESOORT_ID = 10" > > Let me know if you would like to pursue this approach, and > would like me to fix OGR's OCI driver so that it honours the > OCI_FID config option. From bartvde at XS4ALL.NL Fri Nov 19 02:11:51 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 19 Nov 2004 11:11:51 +0100 Subject: PostGIS vs MyGis In-Reply-To: <004d01c4ce12$a901fef0$3744a8c0@GIS05> Message-ID: Hi, are you referring to the MySQL spatial extensions which have been released in MySQL 4.1, or are you talking about the MyGIS connector in Mapserver, which is storing geometries as WKB in MySQL? If you are referring to the first option, then this is a nice comparison by Refractions: http://postgis.refractions.net/pipermail/postgis-users/2003-June/002651.html Best regards, Bart > MAPSERVER-USERS Digest - 17 Nov 2004 to 18 Nov 2004 (#2004-117)Hello > is there anybody who have already experienced a comparison between the > PostGIS geotatabase environment and the new MySQL MyGis. > I am especially interested in the performance issues but would also know > if the MySQL environment is stable and if there are meaningful differences > in the spatial functions. > Thanx in advance > > Giorgio Plazzotta > Saras Ricerche > Assemini /CA) - Italy From gosia.rainer at T-ONLINE.DE Fri Nov 19 02:29:53 2004 From: gosia.rainer at T-ONLINE.DE (Rainer Spittel) Date: Fri, 19 Nov 2004 04:29:53 -0600 Subject: Programs using FILTER and QUERY on POSTGIS layers Message-ID: hi, I have a small problem with the mapserver and MapScript. I have stored my data into the PostGIS database and I am using the FILTER expression to select specific entities from the table, e.g. datasets fo a specific year. The mapserver shows the map correkt. I try to query on the layer by using the QueryByPoint function. But I am receiving entities which are not fitting to the filter... For example: I set the filter, using MapScript, to select a specific year: [...] $layer = $gpoMap->getLayerByName("Voyages_ASIA"); $layer->setFilter("decade_start=".$ms_filter); [...] When I query on this layer: [...] @ $layer->QUERY_POINTByPoint($oClickGeo, MS_SINGLE, 50); I receive datasets which are not fitting to the filter... What is wrong? HELP!!! ;-) How can I read the current filter? Cheers Rainer From bartvde at XS4ALL.NL Fri Nov 19 02:53:39 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 19 Nov 2004 11:53:39 +0100 Subject: PostGIS vs MyGis Message-ID: Hi Bjoern, the MyGIS datastore for Mapserver stores geometry in WKB format (or WKT) in a MySQL database field. It has its own Perl convertor to put the data into MySQL by using a shapefile as input. Mapserver has no support (as yet) for the MySQL spatial extensions which were released in MySQL 4.1. Best regards, Bart > Hi Bart, > >> are you referring to the MySQL spatial extensions which have >> been released in MySQL 4.1, or are you talking about the >> MyGIS connector in Mapserver, which is storing geometries as >> WKB in MySQL? > > Can you explain the difference to me? Mustn't I use CONNECTIONTYPE mygis > when I want to use the MySQL spatial extensions???? > If not, what _do_ I have to use?? > > Maybe that could solve an actual problem here... > > Bye, > > Bjoern. > > From bartvde at XS4ALL.NL Fri Nov 19 02:57:32 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 19 Nov 2004 11:57:32 +0100 Subject: PostGIS vs MyGis In-Reply-To: <006201c4ce24$b350d4a0$3744a8c0@GIS05> Message-ID: Hi Giorgi, I don't think there has been done much work on the spatial extensions by the MySQL team since Refractions reviewed the MySQL spatial extensions (June 2003). I posted a question about the spatial plans on the MySQL list back in 2003 but did not get any response. http://www.jsw4.net/info/list-archives/mysql/03-wk26/msg00341.html Best regards, Bart > thanx bart to be honest i didn't know that there were these two options. i > started to work with postgis almost 2 years ago when the mysql geodatabase > had just been released and there were comments saying that it was not > mature. After that i didn't follow the mysql evolution but i was curious > to > know if that product had evolved and how because i could still use it in > spite of postgis > Giorgio > > > ----- Original Message ----- > From: > To: "Giorgio Plazzotta" > Cc: > Sent: Friday, November 19, 2004 11:11 AM > Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs MyGis > > >> Hi, >> >> are you referring to the MySQL spatial extensions which have been >> released >> in MySQL 4.1, or are you talking about the MyGIS connector in Mapserver, >> which is storing geometries as WKB in MySQL? >> >> If you are referring to the first option, then this is a nice comparison >> by Refractions: >> >> http://postgis.refractions.net/pipermail/postgis-users/2003-June/002651.html >> >> Best regards, >> Bart >> >>> MAPSERVER-USERS Digest - 17 Nov 2004 to 18 Nov 2004 (#2004-117)Hello >>> is there anybody who have already experienced a comparison between the >>> PostGIS geotatabase environment and the new MySQL MyGis. >>> I am especially interested in the performance issues but would also >>> know >>> if the MySQL environment is stable and if there are meaningful >>> differences >>> in the spatial functions. >>> Thanx in advance >>> >>> Giorgio Plazzotta >>> Saras Ricerche >>> Assemini /CA) - Italy >> >> > > From bluetuna_goes_skying at YAHOO.CO.UK Fri Nov 19 03:00:16 2004 From: bluetuna_goes_skying at YAHOO.CO.UK (=?iso-8859-1?q?jo=FFffffffffffe3o=20Antunes?=) Date: Fri, 19 Nov 2004 11:00:16 +0000 Subject: MapFile CLASS Expression syntax Message-ID: Hi everyone I've been searching everywhere the syntax to compose an expression in a map file. Is there any document I could read about it? It would be handy for me if it could cope with SQL code. I am trying to build something like ... CLASSITEM 'cityame' CLASS NAME 'selected' EXPRESSION (('[cityame]') IN ('Paris','Roma')) Ok. I already noticed this does not work. But is there any other way to avoid the "code expensive" (('[cityame]')=('Paris') OR ('[cityame]')=('Roma')) ?... I know this one works.. Thanks in advance Joao Antunes --------------------------------- Moving house? Beach bar in Thailand? New Wardrobe? Win ?10k with Yahoo! Mail to make your dream a reality. -------------- next part -------------- An HTML attachment was scrubbed... URL: From edspremolla at ANTEL.COM.UY Fri Nov 19 03:14:30 2004 From: edspremolla at ANTEL.COM.UY (Eduardo Spremolla) Date: Fri, 19 Nov 2004 09:14:30 -0200 Subject: custom marking of cities In-Reply-To: <5f447e35041118140334ec0541@mail.gmail.com> Message-ID: You should look at OVERLAYSYMBOL in the Class object. Set a class for the capitals with a circle as symbol an a small one as the dot, and another class for the rest with a square. LALO El jue, 18-11-2004 a las 20:03, Shashi Gireddy escribi?: > Hi, > I came up with a situation that i must show all county capitals with a > circle and a dot in it and all other cities with a square, I am > tigerline shape files from ESRI website, i am working on php/mapscript > and i have no problem with it. does anybody has any idea about how to > generate these kind of effects. > I also have Arc GIS with me, will that be useful (i just need to > generate images for this particular case). > Thank you, > shashi. > > -- > Shashi Kiran Reddy. Gireddy, > Graduate Assistant, > Department of Computer Science, > University of Alabama. > http://www.cs.ua.edu/shashi > Home: 205-752-5137 Cell: 205-657-1438 -- Eduardo Spremolla Antel I+D From margottid at COMUNE.LUGO.RA.IT Fri Nov 19 03:20:13 2004 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Fri, 19 Nov 2004 05:20:13 -0600 Subject: Groups in legend Message-ID: Hi list, with an HTML Legend I can show groups of layer, with the name of the group and indented layers. How can I do this with an IMAGE Legend? Thank you, Daniele From bjoern.platzen at MOMATEC.DE Fri Nov 19 04:08:36 2004 From: bjoern.platzen at MOMATEC.DE (=?iso-8859-1?Q?Bj=F6rn_Platzen?=) Date: Fri, 19 Nov 2004 13:08:36 +0100 Subject: PostGIS vs MyGis In-Reply-To: Message-ID: Hi Bart, thanks for the response. I don't seem to get the MyGIS-thing running and so I thougt MySQL-Spatial would follow another approach to get the data out of the database (maybe in the "postgis-way"). > the MyGIS datastore for Mapserver stores geometry in WKB > format (or WKT) in a MySQL database field. It has its own > Perl convertor to put the data into MySQL by using a > shapefile as input. > Mapserver has no support (as yet) for the MySQL spatial > extensions which were released in MySQL 4.1. 8~((( Is there something on the Roadmap, concerning MySQL spatial?? Bye, Bjoern. From superbla3000 at GMX.NET Fri Nov 19 04:06:03 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Fri, 19 Nov 2004 13:06:03 +0100 Subject: line with arrows Message-ID: hello, I would like to draw a line with an arrow in it. ---->----->----->---- The arrow should always point in the line direction, so if the line goes up 30 degrees or so, the arrow does the same. Joerg From fx.gamoy at MAPXPLORE.COM Fri Nov 19 04:23:42 2004 From: fx.gamoy at MAPXPLORE.COM (fx gamoy) Date: Fri, 19 Nov 2004 13:23:42 +0100 Subject: line with arrows Message-ID: Hello, you should use this SYMBOL NAME 'test' TYPE TRUETYPE FONT 'webdings' CHARACTER "" FILLED true ANTIALIAS true GAP -25 # the negatation tells MapServer to honor the vector direction when computing the angle END you need to get a webdings.ttf file in your fonts.txt exemple of layer LAYER NAME 'a line' TYPE LINE STATUS ON CLASS STYLE COLOR 0 0 0 SYMBOL "circle" SIZE 1 END STYLE SYMBOL 'test' COLOR 0 0 0 SIZE 14 END END FEATURE POINTS 10 10 50 100 100 300 300 300 10 490 END END END this works with mapserver 4.0 & up fx ----- Original Message ----- From: "joerg pfeiffer" To: Sent: Friday, November 19, 2004 1:06 PM Subject: [UMN_MAPSERVER-USERS] line with arrows > hello, > > I would like to draw a line with an arrow in it. > ---->----->----->---- > > The arrow should always point in the line direction, so if the line goes > up 30 degrees or so, the arrow does the same. > > Joerg > -------------- next part -------------- A non-text attachment was scrubbed... Name: 110086681212841.gif Type: image/gif Size: 2440 bytes Desc: not available URL: From bartvde at XS4ALL.NL Fri Nov 19 04:33:33 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 19 Nov 2004 13:33:33 +0100 Subject: problem with postGIS and WMS capabilities if wms_extent not defined Message-ID: Hi list, I have a PostGIS layer in my MAP file and I am using the 4.4 beta2 windows binary from maptools.org. I am on Windows 2000 server. If I don't define a WMS_EXTENT in the METADATA section of my LAYER, I get a crash of the WMS capabilities (only 4 Kb of normally 5 Kb is sent). If I do define the WMS_EXTENT everything works fine. The last part of the capabilities received is: .... image/png image/gif image/jpeg image/wbmp application/x-shockwave-flash text/html application/x-pdf image/tiff > and >> my mapserver output didn't display the special characters, in fact the >> mapserver out was just "La Cigue"ña". Is there a way to display >> the special characters in a mapserver? >> >> >> >> I am running the mapserver version 4.0 in Windows XP, and using JBox to >> handle the mapserver requests. >> >> >> >> Thanks in advance!. >> >> >> >> Giri >> >> >> >> > > > > From superbla3000 at GMX.NET Fri Nov 19 06:23:28 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Fri, 19 Nov 2004 15:23:28 +0100 Subject: line with arrows In-Reply-To: <000801c4ce32$9bc7b660$0102a8c0@geodev0> Message-ID: thanks a lot! That's what I needed. First i had some probems with webdings, but then I changed the symbol to: SYMBOL NAME "arrow" TYPE TRUETYPE FONT verdana CHARACTER ">" FILLED true ANTIALIAS true GAP -70 END best regards Joerg fx gamoy wrote: > Hello, > you should use this > SYMBOL > NAME 'test' > TYPE TRUETYPE > FONT 'webdings' > CHARACTER "" > FILLED true > ANTIALIAS true > GAP -25 # the negatation tells MapServer to honor the vector direction > when computing the angle > END > you need to get a webdings.ttf file in your fonts.txt > > exemple of layer > LAYER > NAME 'a line' > TYPE LINE > STATUS ON > CLASS > > STYLE > COLOR 0 0 0 > SYMBOL "circle" > SIZE 1 > END > > STYLE > SYMBOL 'test' > COLOR 0 0 0 > > SIZE 14 > END > > END > FEATURE > POINTS 10 10 50 100 100 300 300 300 10 490 END > END > END > this works with mapserver 4.0 & up > fx > > ----- Original Message ----- > From: "joerg pfeiffer" > To: > Sent: Friday, November 19, 2004 1:06 PM > Subject: [UMN_MAPSERVER-USERS] line with arrows > > > >>hello, >> >>I would like to draw a line with an arrow in it. >>---->----->----->---- >> >>The arrow should always point in the line direction, so if the line goes >>up 30 degrees or so, the arrow does the same. >> >>Joerg >> >> >> >> ------------------------------------------------------------------------ >> From James.Shanton2 at NSCORP.COM Fri Nov 19 06:12:58 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Fri, 19 Nov 2004 09:12:58 -0500 Subject: Trouble with Projection - LCC Message-ID: I'm trying to plot a property parcel shp file, and it keeps plotting in Pennsylvania instead of North Carolina. It also prints out the wrong size. (much to big ) I've posted my parcel layer (from the .map file ) and the PRJ file that came with the shp file. What am I doing wrong ? My map file output projection is : PROJECTION "proj=longlat" "ellps=WGS84" END Thanks ! Jim ---------------------------------------------------------------------------- --------- LAYER # PARCELS NAME "parcel" DATA parcel STATUS ON TYPE POLYGON PROJECTION proj=lcc lat_0=33.75 #Latitude of False Origin lon_0=-79.0 #Longitude of Natural Origin (Central Meridian) lat_1=34.33333333333334 #Latitude of First Standard Parallel lat_2=36.16666666666666 x_0=2000000.002616666 # False Easting y_0=0.0 # False Northing ellps=GRS80 # SPHEROID a=6378137.0 # from SPHEROID["GRS_1980",6378137,298.257222101]], rf=298.257222101 #from SPHEROID["GRS_1980",6378137,298.257222101]], datum=NAD83 END CLASS OUTLINECOLOR 0 0 0 END END # end of Parcel layer Here is the PRJ file PROJCS["NAD_1983_StatePlane_North_Carolina_FIPS_3200_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",2000000.002616666], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-79.0], PARAMETER["Standard_Parallel_1",34.33333333333334], PARAMETER["Standard_Parallel_2",36.16666666666666], PARAMETER["Latitude_Of_Origin",33.75], UNIT["Foot_US",0.3048006096012192]] -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Shanton2 at NSCORP.COM Fri Nov 19 06:23:59 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Fri, 19 Nov 2004 09:23:59 -0500 Subject: Trouble with Projection - LCC Message-ID: -----Original Message----- From: Shanton, James A Sent: Friday, November 19, 2004 9:13 AM To: 'mapserver-users at lists.umn.edu' Subject: Trouble with Projection - LCC I'm trying to plot a property parcel shp file, and it keeps plotting in Pennsylvania instead of North Carolina. It also prints out the wrong size. (much to big ) I've posted my parcel layer (from the .map file ) and the PRJ file that came with the shp file. What am I doing wrong ? My map file output projection is : PROJECTION "proj=longlat" "ellps=WGS84" END Thanks ! Jim ---------------------------------------------------------------------------- --------- LAYER # PARCELS NAME "parcel" DATA parcel STATUS ON TYPE POLYGON PROJECTION proj=lcc lat_0=33.75 #Latitude of False Origin lon_0=-79.0 #Longitude of Natural Origin (Central Meridian) lat_1=34.33333333333334 #Latitude of First Standard Parallel lat_2=36.16666666666666 x_0=2000000.002616666 # False Easting y_0=0.0 # False Northing ellps=GRS80 # SPHEROID a=6378137.0 # from SPHEROID["GRS_1980",6378137,298.257222101]], rf=298.257222101 #from SPHEROID["GRS_1980",6378137,298.257222101]], datum=NAD83 END CLASS OUTLINECOLOR 0 0 0 END END # end of Parcel layer Here is the PRJ file PROJCS["NAD_1983_StatePlane_North_Carolina_FIPS_3200_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",2000000.002616666], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-79.0], PARAMETER["Standard_Parallel_1",34.33333333333334], PARAMETER["Standard_Parallel_2",36.16666666666666], PARAMETER["Latitude_Of_Origin",33.75], UNIT["Foot_US",0.3048006096012192]] -------------- next part -------------- An HTML attachment was scrubbed... URL: From james.shanton2 at NSCORP.COM Fri Nov 19 06:25:02 2004 From: james.shanton2 at NSCORP.COM (Jim Shanton) Date: Fri, 19 Nov 2004 08:25:02 -0600 Subject: Trouble with Projection Message-ID: I?m trying to plot a property parcel shp file, and it keeps plotting in Pennsylvania instead of North Carolina. It also prints out the wrong size. (much to big ) I?ve posted my parcel layer (from the .map file ) and the PRJ file that came with the shp file. What am I doing wrong ? My map file output projection is : PROJECTION "proj=longlat" "ellps=WGS84" END Thanks ! Jim --------------------------------------------------------------------------- ---------- LAYER # PARCELS NAME "parcel" DATA parcel STATUS ON TYPE POLYGON PROJECTION proj=lcc lat_0=33.75 #Latitude of False Origin lon_0=-79.0 #Longitude of Natural Origin (Central Meridian) lat_1=34.33333333333334 #Latitude of First Standard Parallel lat_2=36.16666666666666 x_0=2000000.002616666 # False Easting y_0=0.0 # False Northing ellps=GRS80 # SPHEROID a=6378137.0 # from SPHEROID ["GRS_1980",6378137,298.257222101]], rf=298.257222101 #from SPHEROID ["GRS_1980",6378137,298.257222101]], datum=NAD83 END CLASS OUTLINECOLOR 0 0 0 END END # end of Parcel layer Here is the PRJ file PROJCS["NAD_1983_StatePlane_North_Carolina_FIPS_3200_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",2000000.002616666], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-79.0], PARAMETER["Standard_Parallel_1",34.33333333333334], PARAMETER["Standard_Parallel_2",36.16666666666666], PARAMETER["Latitude_Of_Origin",33.75], UNIT["Foot_US",0.3048006096012192]] From sobomsawin at KASSINI.COM Fri Nov 19 06:50:41 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Fri, 19 Nov 2004 09:50:41 -0500 Subject: [UMN_MAPSERVER-USERS] Trouble with Projection - LCC In-Reply-To: Message-ID: Be sure to put UNITS DD in the map section and UNITS METERS in the layer section since LCC is in meters... Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Shanton, James A Envoy? : 19 novembre 2004 09:13 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Trouble with Projection - LCC I'm trying to plot a property parcel shp file, and it keeps plotting in Pennsylvania instead of North Carolina. It also prints out the wrong size. (much to big ) I've posted my parcel layer (from the .map file ) and the PRJ file that came with the shp file. What am I doing wrong ? My map file output projection is : PROJECTION "proj=longlat" "ellps=WGS84" END Thanks ! Jim ---------------------------------------------------------------------------- --------- LAYER # PARCELS NAME "parcel" DATA parcel STATUS ON TYPE POLYGON PROJECTION proj=lcc lat_0=33.75 #Latitude of False Origin lon_0=-79.0 #Longitude of Natural Origin (Central Meridian) lat_1=34.33333333333334 #Latitude of First Standard Parallel lat_2=36.16666666666666 x_0=2000000.002616666 # False Easting y_0=0.0 # False Northing ellps=GRS80 # SPHEROID a=6378137.0 # from SPHEROID["GRS_1980",6378137,298.257222101]], rf=298.257222101 #from SPHEROID["GRS_1980",6378137,298.257222101]], datum=NAD83 END CLASS OUTLINECOLOR 0 0 0 END END # end of Parcel layer Here is the PRJ file PROJCS["NAD_1983_StatePlane_North_Carolina_FIPS_3200_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",2000000.002616666], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-79.0], PARAMETER["Standard_Parallel_1",34.33333333333334], PARAMETER["Standard_Parallel_2",36.16666666666666], PARAMETER["Latitude_Of_Origin",33.75], UNIT["Foot_US",0.3048006096012192]] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Fri Nov 19 06:52:05 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 19 Nov 2004 09:52:05 -0500 Subject: Trouble with Projection In-Reply-To: Message-ID: Jim Shanton wrote: > I?m trying to plot a property parcel shp file, and it keeps plotting in > Pennsylvania instead of North Carolina. ... > PROJECTION > > proj=lcc > > lat_0=33.75 #Latitude of False Origin > > lon_0=-79.0 #Longitude of Natural Origin (Central > Meridian) > > lat_1=34.33333333333334 #Latitude of First Standard Parallel > > lat_2=36.16666666666666 > > x_0=2000000.002616666 # False Easting > > y_0=0.0 # False Northing > > ellps=GRS80 # SPHEROID > > a=6378137.0 # from SPHEROID > ["GRS_1980",6378137,298.257222101]], > > rf=298.257222101 #from SPHEROID > ["GRS_1980",6378137,298.257222101]], > > datum=NAD83 > > END ... > UNIT["Foot_US",0.3048006096012192]] Jim, I think your main problem is the linear units. The default units in PROJ.4 is meters, but you need US feet. Try adding a "units=us-ft" in your PROJECTION declaration for the layer. There is also some slight chance you will need to alter the x_0 parameter by multiplying (or dividing) by the meter/feet conversion ratio, but I doubt that will be needed. 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 ed at TOPOZONE.COM Fri Nov 19 06:55:22 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 19 Nov 2004 09:55:22 -0500 Subject: Trouble with Projection - LCC Message-ID: Jim - I suspect it's printing about 3.281 times larger in each dimension than you expect..... You're not telling MapServer that your input projection units are feet, rather than the default value of meters. Therefore, the coordinates are being read as if they were meters, moving them 3x further from the projection origin in X and Y. That's what the UNITS field in the PRJ file is telling you - what to multiply the coordinate values by to convert them to meters. You need to add: to_meter=0.3048006096012192 in your projection definition block. You don't need the a= and rf= lines and I suggest you remove them; ellps=GRS80 specifies the ellipsoid completely. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Shanton, James A Sent: Friday, November 19, 2004 9:13 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Trouble with Projection - LCC I'm trying to plot a property parcel shp file, and it keeps plotting in Pennsylvania instead of North Carolina. It also prints out the wrong size. (much to big ) I've posted my parcel layer (from the .map file ) and the PRJ file that came with the shp file. What am I doing wrong ? My map file output projection is : PROJECTION "proj=longlat" "ellps=WGS84" END Thanks ! Jim ------------------------------------------------------------------------------------- LAYER # PARCELS NAME "parcel" DATA parcel STATUS ON TYPE POLYGON PROJECTION proj=lcc lat_0=33.75 #Latitude of False Origin lon_0=-79.0 #Longitude of Natural Origin (Central Meridian) lat_1=34.33333333333334 #Latitude of First Standard Parallel lat_2=36.16666666666666 x_0=2000000.002616666 # False Easting y_0=0.0 # False Northing ellps=GRS80 # SPHEROID a=6378137.0 # from SPHEROID["GRS_1980",6378137,298.257222101]], rf=298.257222101 #from SPHEROID["GRS_1980",6378137,298.257222101]], datum=NAD83 END CLASS OUTLINECOLOR 0 0 0 END END # end of Parcel layer Here is the PRJ file PROJCS["NAD_1983_StatePlane_North_Carolina_FIPS_3200_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",2000000.002616666], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-79.0], PARAMETER["Standard_Parallel_1",34.33333333333334], PARAMETER["Standard_Parallel_2",36.16666666666666], PARAMETER["Latitude_Of_Origin",33.75], UNIT["Foot_US",0.3048006096012192]] -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Fri Nov 19 06:57:50 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 19 Nov 2004 09:57:50 -0500 Subject: [UMN_MAPSERVER-USERS] Trouble with Projection - LCC Message-ID: Jim / Skweda - No, in this case you DON'T want to put UNITS METERS in the layer section, because these units are not meters. The PRJ file indicates that this is a State Plane projection with units of US Feet. UNITS DD in the main MAP file section is a good idea, however - it's not the cause of this problem, but it will prevent other problems in the future. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Skweda O'Bomsawin Sent: Friday, November 19, 2004 9:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Trouble with Projection - LCC Be sure to put UNITS DD in the map section and UNITS METERS in the layer section since LCC is in meters... Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Shanton, James A Envoy? : 19 novembre 2004 09:13 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Trouble with Projection - LCC I'm trying to plot a property parcel shp file, and it keeps plotting in Pennsylvania instead of North Carolina. It also prints out the wrong size. (much to big ) I've posted my parcel layer (from the .map file ) and the PRJ file that came with the shp file. What am I doing wrong ? My map file output projection is : PROJECTION "proj=longlat" "ellps=WGS84" END Thanks ! Jim ------------------------------------------------------------------------------------- LAYER # PARCELS NAME "parcel" DATA parcel STATUS ON TYPE POLYGON PROJECTION proj=lcc lat_0=33.75 #Latitude of False Origin lon_0=-79.0 #Longitude of Natural Origin (Central Meridian) lat_1=34.33333333333334 #Latitude of First Standard Parallel lat_2=36.16666666666666 x_0=2000000.002616666 # False Easting y_0=0.0 # False Northing ellps=GRS80 # SPHEROID a=6378137.0 # from SPHEROID["GRS_1980",6378137,298.257222101]], rf=298.257222101 #from SPHEROID["GRS_1980",6378137,298.257222101]], datum=NAD83 END CLASS OUTLINECOLOR 0 0 0 END END # end of Parcel layer Here is the PRJ file PROJCS["NAD_1983_StatePlane_North_Carolina_FIPS_3200_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",2000000.002616666], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-79.0], PARAMETER["Standard_Parallel_1",34.33333333333334], PARAMETER["Standard_Parallel_2",36.16666666666666], PARAMETER["Latitude_Of_Origin",33.75], UNIT["Foot_US",0.3048006096012192]] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 -------------- next part -------------- An HTML attachment was scrubbed... URL: From maplist at AVIATION.NL Fri Nov 19 06:49:00 2004 From: maplist at AVIATION.NL (Hans de Bruin) Date: Fri, 19 Nov 2004 15:49:00 +0100 Subject: First steps in MapServer country Message-ID: Hi all, I've just recently ventured into the land of mapserving, and have installed mapserver on a local computer on our intranet. The server is running Win2K, with Apache 1.3.33, PHP 4.3.9 and I've installed the Mapserver win32 binaries version 4.2 . I've downloaded and installed the Mapserver Itasca application. It runs fine, so at least I did something right. But when I select the 'adds dhtml rubber band box' and click initialize, the map comes up red, with an image not found icon in the corner. After I zoom some 6 or 7 times, part of the map shows up. I can reproduce this. I've been fooling around with it, and it almost looks like it is somehow limited by the amount of data it's supposed to display. For instance, if I'm zoomed in to a certain scale that I see the map, if I then add layers to be displayed, it comes up red again. If I select the raster file the map does not show up at all, no matter how far I zoom in. Again, in the other modes, all works perfectly, even if I have all layers selected. Any ideas on this issue would be much appreciated. Also, this is all new to me, and I have yet to learn the basic structure of map files, web templates and how they work together. However the ultimate goal is to publish some 80 aerial photography ECW's . Is there maybe a simple map file / web template combination that takes one ECW and displays it ? I could then work and learn from that. Thanks for the help, Hans de Bruin From ed at TOPOZONE.COM Fri Nov 19 06:59:25 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 19 Nov 2004 09:59:25 -0500 Subject: Trouble with Projection Message-ID: Jim - Frank's making essentially the same suggestion I am, but I would recommend you use his solution instead. I had forgotten about that option and I always think it's safer to use defined constants rather than numeric values when you can - they're much less prone to typos! - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Friday, November 19, 2004 9:52 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Trouble with Projection Jim Shanton wrote: > I?m trying to plot a property parcel shp file, and it keeps plotting > in Pennsylvania instead of North Carolina. ... > PROJECTION > > proj=lcc > > lat_0=33.75 #Latitude of False Origin > > lon_0=-79.0 #Longitude of Natural Origin (Central > Meridian) > > lat_1=34.33333333333334 #Latitude of First Standard Parallel > > lat_2=36.16666666666666 > > x_0=2000000.002616666 # False Easting > > y_0=0.0 # False Northing > > ellps=GRS80 # SPHEROID > > a=6378137.0 # from SPHEROID > ["GRS_1980",6378137,298.257222101]], > > rf=298.257222101 #from SPHEROID > ["GRS_1980",6378137,298.257222101]], > > datum=NAD83 > > END ... > UNIT["Foot_US",0.3048006096012192]] Jim, I think your main problem is the linear units. The default units in PROJ.4 is meters, but you need US feet. Try adding a "units=us-ft" in your PROJECTION declaration for the layer. There is also some slight chance you will need to alter the x_0 parameter by multiplying (or dividing) by the meter/feet conversion ratio, but I doubt that will be needed. 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 warmerdam at POBOX.COM Fri Nov 19 07:07:05 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 19 Nov 2004 10:07:05 -0500 Subject: Performance with oraclespatial using ogr In-Reply-To: Message-ID: Merlijn Simonse wrote: > Frank, > > Thanks for your respond. In my database I have about ten different tables > with spatial data. The PK fields have a different name in every table. As > the OCI_FID CONFIG parameter is the same for all tables I probably better > add an OGR_FID field to the necessary tables. > > To test if a unique indexed OGR_FID column improves performance I added > this column to my table and also changed my DATA parameter to: > DATA "SELECT OGR_FID, GEOM, LOCATIE_ID from LOCATIE where LOCATIESOORT_ID > = 10" (I was wondering if "SELECT LOCATIE_ID as OGR_FID..." could also > work) > > I didn't notice any differencin performance. I also tried: > DATA "SELECT OGR_FID, GEOM, LOCATIE_ID from LOCATIE" > > Without the where clause it's very slow as well. > Am I not using the right DATA parameter to let it use my OGR_FID field? Merlijn, In fact, on reflection, I don't think OGR's OCI driver (nor any other driver for that matter) can do fast feature fetches from a user defined SQL operation. You could just use the table directly instead of providing your own SQL statement, and do the "winnowing" of results with normal MapServer mechanism (an EXPRESSION in a CLASS?). The downside of this is that all the records will be read the first time through, but the subsequent feature fetch should be fast. Generally speaking, when you use user defined SQL with OGR, you lose all benefits of it's own spatial searching and feature id based fetches. It is much better to "direct" table access letting OGR manage some of these things. But currently there is no mechanism via MapServer to pass off an attribute query when doing direct table access. What I really ought to do is change the MapServer OGR binding so that you can say " WHERE " in the DATA statement and have this be interpreted as direct table access, applying the requested query. This is really the case that OGR is optimized for. But currently there is no way to accomplish this. In fact, I could hack this in quite easily with a PROCESSING statement that could hold the spatial query. I wonder if Daniel would blow a gasket if I hacked that in today before beta3 is snapped! I would also echo the other response you got mentioning that the direct Oracle Spatial support in MapServer now apparently has query support. If that can do the job for you, it is likely to be faster than even an optimized OGR implementation. Best regards, -- ---------------------------------------+-------------------------------------- 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 superbla3000 at GMX.NET Fri Nov 19 07:35:13 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Fri, 19 Nov 2004 16:35:13 +0100 Subject: something next to me? Message-ID: hello, i have lot's of points, stored in mysql. When I draw them no the map at a small scale, some of them are lying upon each other, of course. Is this a reason to choose postgis? But then I would have to query for each point, if there's another next to it. How do you do this? regards J?rg From David.Fawcett at STATE.MN.US Fri Nov 19 07:53:48 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Fri, 19 Nov 2004 09:53:48 -0600 Subject: line with arrows Message-ID: Joerg or fx, If this works for you, please post the example in the Symbol Examples page of the Wiki http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?SymbolExamples Thanks, David. David J. Fawcett MN Office of Environmental Assistance >>> fx gamoy 11/19/2004 6:23:42 AM >>> Hello, you should use this SYMBOL NAME 'test' TYPE TRUETYPE FONT 'webdings' CHARACTER "" FILLED true ANTIALIAS true GAP -25 # the negatation tells MapServer to honor the vector direction when computing the angle END you need to get a webdings.ttf file in your fonts.txt exemple of layer LAYER NAME 'a line' TYPE LINE STATUS ON CLASS STYLE COLOR 0 0 0 SYMBOL "circle" SIZE 1 END STYLE SYMBOL 'test' COLOR 0 0 0 SIZE 14 END END FEATURE POINTS 10 10 50 100 100 300 300 300 10 490 END END END this works with mapserver 4.0 & up fx ----- Original Message ----- From: "joerg pfeiffer" To: Sent: Friday, November 19, 2004 1:06 PM Subject: [UMN_MAPSERVER-USERS] line with arrows > hello, > > I would like to draw a line with an arrow in it. > ---->----->----->---- > > The arrow should always point in the line direction, so if the line goes > up 30 degrees or so, the arrow does the same. > > Joerg > From maps at DSCHULTZSYSTEMS.COM Fri Nov 19 08:09:14 2004 From: maps at DSCHULTZSYSTEMS.COM (Dave S) Date: Fri, 19 Nov 2004 10:09:14 -0600 Subject: How do I get rid of half-filled circles??? Corrected URL Message-ID: Thanks - I am on a hosted server so I'll let the sys admin know. If it is better protocol to send "thank you" messages to the list, please let me know. I prefer not to clutter the forum. D From ealpert at DIGITALGLOBE.COM Fri Nov 19 08:29:09 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 19 Nov 2004 09:29:09 -0700 Subject: my app can not find template Message-ID: In this case you don't appear to need a TEMPLATE. I'm not sure but I think you can put the string "dummy" into your template line. The TEMPLATE option is really for calls where mode=browse and you only pass the mapfile name to the mapserv executable. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Thursday, November 18, 2004 5:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] my app can not find template Ok - here is what I have. I have a perl cgi that builds my primary page, builds the map file and uses the perl api to build the map image, then displays the page. In the initial page I have all of the hidden fields that will direct that are to be read by the mapserver to allow me to zoom into different polygons on my California zip map ( each polygon representing a zip ). The cgi produces the following html: MapServer - CS CGI Application

MapServer - CS CGI Application


Teacher Type:
The html consists of two forms one for selection of the criteria which rebuilds the map just fine. The second for looking at the polygons. My map file that is produced appears as follows on the initial display of the map: MAP NAME CalMap STATUS ON EXTENT 5890870.385 -192053.200 8943310.847 3226086.749 IMAGETYPE GIF SIZE 600 600 SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/t data " IMAGECOLOR 255 255 255 SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME "cal_zp_st" TYPE POLYGON DATA "cal_zp_st" STATUS DEFAULT CLASSITEM "ZCTA" CLASS EXPRESSION /./ OUTLINECOLOR 204 204 204 END END END # end map from header And after selection of specific criteria: MAP NAME CalMap STATUS ON EXTENT 5890870.385 -192053.200 8943310.847 3226086.749 IMAGETYPE GIF SIZE 600 600 SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/t data " IMAGECOLOR 255 255 255 SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME "cal_zp_st" TYPE POLYGON DATA "cal_zp_st" STATUS DEFAULT CLASSITEM "ZCTA" CLASS EXPRESSION /94087|90408|94107|95118|94530|94596|90037|91016|92024|94954|93901|92503 / STYLE SYMBOL 'circle' SIZE 2 COLOR 255 102 102 END END CLASS EXPRESSION /./ OUTLINECOLOR 204 204 204 END END END # end map from header My error condition comes about when I try to click on one of the polygons in the map. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ryan, Adam Sent: Thursday, November 18, 2004 3:02 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] my app can not find template > -----Original Message----- > From: Joseph Norris [mailto:sirronj at PACBELL.NET] > Sent: Thursday, November 18, 2004 2:25 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] my app can not find template > > > Hello, > > I am getting this message: > > mapserv(): Web application error. No template provided > > I have a hidden field value=" this I am not sure of "> > > Should my hidden field be the root relative or absolute path? > > No matter what I try my app is not finding my template. > > Thanks ahead of time. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4, > -3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > Joseph, Just want to make sure your setting the value to a file, not just a path, and not a url. Give us the examples that you've used. Adam From superbla3000 at GMX.NET Fri Nov 19 09:10:24 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Fri, 19 Nov 2004 18:10:24 +0100 Subject: line with arrows In-Reply-To: Message-ID: I posted it, under 4. A line with arrows ->->->-: But I have some problems to display the '>' correct as ascii or whatever it is. So at the moment I use: CHARACTER '&\#62;'# don't use the backslash! (the verdana greater than tag) hhmmmm.... how do I do this correct? Joerg David Fawcett wrote: > Joerg or fx, > > If this works for you, please post the example in the Symbol Examples > page of the Wiki > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?SymbolExamples > > Thanks, > > David. > > > > David J. Fawcett > MN Office of Environmental Assistance > > >>>>fx gamoy 11/19/2004 6:23:42 AM >>> > > Hello, > you should use this > SYMBOL > NAME 'test' > TYPE TRUETYPE > FONT 'webdings' > CHARACTER "" > FILLED true > ANTIALIAS true > GAP -25 # the negatation tells MapServer to honor the vector > direction > when computing the angle > END > you need to get a webdings.ttf file in your fonts.txt > > exemple of layer > LAYER > NAME 'a line' > TYPE LINE > STATUS ON > CLASS > > STYLE > COLOR 0 0 0 > SYMBOL "circle" > SIZE 1 > END > > STYLE > SYMBOL 'test' > COLOR 0 0 0 > > SIZE 14 > END > > END > FEATURE > POINTS 10 10 50 100 100 300 300 300 10 490 END > END > END > this works with mapserver 4.0 & up > fx > > ----- Original Message ----- > From: "joerg pfeiffer" > To: > Sent: Friday, November 19, 2004 1:06 PM > Subject: [UMN_MAPSERVER-USERS] line with arrows > > > >>hello, >> >>I would like to draw a line with an arrow in it. >>---->----->----->---- >> >>The arrow should always point in the line direction, so if the line > > goes > >>up 30 degrees or so, the arrow does the same. >> >>Joerg >> > > > From dbarron at DSWLLC.COM Fri Nov 19 10:49:28 2004 From: dbarron at DSWLLC.COM (Dan Barron) Date: Fri, 19 Nov 2004 10:49:28 -0800 Subject: thread support when compiling MS4.4b and libmapscript.so Message-ID: Sean, I have come back to this threading topic and hope I can put together a better question or two on MS 4.4b libmapscript.so thread support. Maybe this is obvious, but I want to make sure it is clear to me - when running configure for MS 4.4b compile should the "--with-threads=linkopt" option be used to enable threading in the resulting mapserv executable? In addition, when building the libmascript.so and mapscript.jar is threading support then built into the native library? Thanks, Dan From warmerdam at POBOX.COM Fri Nov 19 11:08:10 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 19 Nov 2004 14:08:10 -0500 Subject: thread support when compiling MS4.4b and libmapscript.so In-Reply-To: <6.0.0.22.0.20041119103703.038bd158@taz.dswllc.com> Message-ID: Dan Barron wrote: > Sean, > > I have come back to this threading topic and hope I can put together a > better question or two on MS 4.4b libmapscript.so thread support. Maybe > this is obvious, but I want to make sure it is clear to me - when running > configure for MS 4.4b compile should the "--with-threads=linkopt" option be > used to enable threading in the resulting mapserv executable? In addition, > when building the libmascript.so and mapscript.jar is threading support > then built into the native library? Dan, I'm sure that Sean can address this better from the mapscript point of view. But my belief is that the --with-threads just enables use of exclusion locks around a bunch of services in the libmap core. In particular, it ensures that only one thread at a time can be using the error stack, GDAL, PROJ.4, the parser and freetype at once. The application is also responsible for ensuring that only one thread at a time manipulates a map. That is, it is intended to make it possible to have different threads each rendering their own maps not for several threads to operate on a single mapObj. Best regards, -- ---------------------------------------+-------------------------------------- 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 sgillies at FRII.COM Fri Nov 19 11:08:18 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 19 Nov 2004 12:08:18 -0700 Subject: thread support when compiling MS4.4b and libmapscript.so In-Reply-To: Message-ID: On Nov 19, 2004, at 11:49 AM, Dan Barron wrote: > Sean, > > I have come back to this threading topic and hope I can put together a > better question or two on MS 4.4b libmapscript.so thread support. > Maybe > this is obvious, but I want to make sure it is clear to me - when > running > configure for MS 4.4b compile should the "--with-threads=linkopt" > option be > used to enable threading in the resulting mapserv executable? In > addition, > when building the libmascript.so and mapscript.jar is threading support > then built into the native library? > > Thanks, > > Dan > > Dan, Yes, you must configure --with-threads so that unsafe code is locked properly and so that errors are confined to individual threads. In the native library? You mean libmapscript.so? Yes. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From James.Shanton2 at NSCORP.COM Fri Nov 19 11:36:42 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Fri, 19 Nov 2004 14:36:42 -0500 Subject: Trouble with Projection Message-ID: Thank you very much for your help. The county is now the correct size. I did need to multiply the x_0 parameter by the feet conversion ratio. Jim -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Friday, November 19, 2004 9:59 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Trouble with Projection Jim - Frank's making essentially the same suggestion I am, but I would recommend you use his solution instead. I had forgotten about that option and I always think it's safer to use defined constants rather than numeric values when you can - they're much less prone to typos! - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Friday, November 19, 2004 9:52 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Trouble with Projection Jim Shanton wrote: > I'm trying to plot a property parcel shp file, and it keeps plotting > in Pennsylvania instead of North Carolina. ... > PROJECTION > > proj=lcc > > lat_0=33.75 #Latitude of False Origin > > lon_0=-79.0 #Longitude of Natural Origin (Central > Meridian) > > lat_1=34.33333333333334 #Latitude of First Standard Parallel > > lat_2=36.16666666666666 > > x_0=2000000.002616666 # False Easting > > y_0=0.0 # False Northing > > ellps=GRS80 # SPHEROID > > a=6378137.0 # from SPHEROID > ["GRS_1980",6378137,298.257222101]], > > rf=298.257222101 #from SPHEROID > ["GRS_1980",6378137,298.257222101]], > > datum=NAD83 > > END ... > UNIT["Foot_US",0.3048006096012192]] Jim, I think your main problem is the linear units. The default units in PROJ.4 is meters, but you need US feet. Try adding a "units=us-ft" in your PROJECTION declaration for the layer. There is also some slight chance you will need to alter the x_0 parameter by multiplying (or dividing) by the meter/feet conversion ratio, but I doubt that will be needed. 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 sobomsawin at KASSINI.COM Fri Nov 19 11:57:10 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Fri, 19 Nov 2004 14:57:10 -0500 Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Trouble with Projection - LCC In-Reply-To: Message-ID: Thanks Ed for the precisions I'm not dealing often with feets! Sorry! Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Ed McNierney Envoy? : 19 novembre 2004 09:58 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Trouble with Projection - LCC Jim / Skweda - No, in this case you DON'T want to put UNITS METERS in the layer section, because these units are not meters. The PRJ file indicates that this is a State Plane projection with units of US Feet. UNITS DD in the main MAP file section is a good idea, however - it's not the cause of this problem, but it will prevent other problems in the future. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Skweda O'Bomsawin Sent: Friday, November 19, 2004 9:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Trouble with Projection - LCC Be sure to put UNITS DD in the map section and UNITS METERS in the layer section since LCC is in meters... Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Shanton, James A Envoy? : 19 novembre 2004 09:13 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Trouble with Projection - LCC I'm trying to plot a property parcel shp file, and it keeps plotting in Pennsylvania instead of North Carolina. It also prints out the wrong size. (much to big ) I've posted my parcel layer (from the .map file ) and the PRJ file that came with the shp file. What am I doing wrong ? My map file output projection is : PROJECTION "proj=longlat" "ellps=WGS84" END Thanks ! Jim ---------------------------------------------------------------------------- --------- LAYER # PARCELS NAME "parcel" DATA parcel STATUS ON TYPE POLYGON PROJECTION proj=lcc lat_0=33.75 #Latitude of False Origin lon_0=-79.0 #Longitude of Natural Origin (Central Meridian) lat_1=34.33333333333334 #Latitude of First Standard Parallel lat_2=36.16666666666666 x_0=2000000.002616666 # False Easting y_0=0.0 # False Northing ellps=GRS80 # SPHEROID a=6378137.0 # from SPHEROID["GRS_1980",6378137,298.257222101]], rf=298.257222101 #from SPHEROID["GRS_1980",6378137,298.257222101]], datum=NAD83 END CLASS OUTLINECOLOR 0 0 0 END END # end of Parcel layer Here is the PRJ file PROJCS["NAD_1983_StatePlane_North_Carolina_FIPS_3200_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",2000000.002616666], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-79.0], PARAMETER["Standard_Parallel_1",34.33333333333334], PARAMETER["Standard_Parallel_2",36.16666666666666], PARAMETER["Latitude_Of_Origin",33.75], UNIT["Foot_US",0.3048006096012192]] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sirronj at PACBELL.NET Fri Nov 19 12:40:13 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Fri, 19 Nov 2004 12:40:13 -0800 Subject: my app can not find template In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB16017B191C@COMAIL01.digitalglobe.com> Message-ID: Thanks Ethan, The whole reason for going down this route is that I need the zoom feature in my map an I though that all add to was pass zoomsize to mapserver - that appears to be what is being done in the workshop demo. Am I wrong? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ethan Alpert Sent: Friday, November 19, 2004 8:29 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] my app can not find template In this case you don't appear to need a TEMPLATE. I'm not sure but I think you can put the string "dummy" into your template line. The TEMPLATE option is really for calls where mode=browse and you only pass the mapfile name to the mapserv executable. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Thursday, November 18, 2004 5:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] my app can not find template Ok - here is what I have. I have a perl cgi that builds my primary page, builds the map file and uses the perl api to build the map image, then displays the page. In the initial page I have all of the hidden fields that will direct that are to be read by the mapserver to allow me to zoom into different polygons on my California zip map ( each polygon representing a zip ). The cgi produces the following html: MapServer - CS CGI Application

MapServer - CS CGI Application


Teacher Type:
The html consists of two forms one for selection of the criteria which rebuilds the map just fine. The second for looking at the polygons. My map file that is produced appears as follows on the initial display of the map: MAP NAME CalMap STATUS ON EXTENT 5890870.385 -192053.200 8943310.847 3226086.749 IMAGETYPE GIF SIZE 600 600 SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/t data " IMAGECOLOR 255 255 255 SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME "cal_zp_st" TYPE POLYGON DATA "cal_zp_st" STATUS DEFAULT CLASSITEM "ZCTA" CLASS EXPRESSION /./ OUTLINECOLOR 204 204 204 END END END # end map from header And after selection of specific criteria: MAP NAME CalMap STATUS ON EXTENT 5890870.385 -192053.200 8943310.847 3226086.749 IMAGETYPE GIF SIZE 600 600 SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/t data " IMAGECOLOR 255 255 255 SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME "cal_zp_st" TYPE POLYGON DATA "cal_zp_st" STATUS DEFAULT CLASSITEM "ZCTA" CLASS EXPRESSION /94087|90408|94107|95118|94530|94596|90037|91016|92024|94954|93901|92503 / STYLE SYMBOL 'circle' SIZE 2 COLOR 255 102 102 END END CLASS EXPRESSION /./ OUTLINECOLOR 204 204 204 END END END # end map from header My error condition comes about when I try to click on one of the polygons in the map. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ryan, Adam Sent: Thursday, November 18, 2004 3:02 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] my app can not find template > -----Original Message----- > From: Joseph Norris [mailto:sirronj at PACBELL.NET] > Sent: Thursday, November 18, 2004 2:25 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] my app can not find template > > > Hello, > > I am getting this message: > > mapserv(): Web application error. No template provided > > I have a hidden field value=" this I am not sure of "> > > Should my hidden field be the root relative or absolute path? > > No matter what I try my app is not finding my template. > > Thanks ahead of time. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4, > -3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > Joseph, Just want to make sure your setting the value to a file, not just a path, and not a url. Give us the examples that you've used. Adam From behrooz at YORKU.CA Fri Nov 19 12:43:28 2004 From: behrooz at YORKU.CA (Behrooz Nourmohammadi) Date: Fri, 19 Nov 2004 15:43:28 -0500 Subject: starting WMS Message-ID: Hi all, I have just started using mapServer. I want to use WMS. I am in the process of studying documentations. My intention is to build a tempate and A map file and get some layers from different servers. Is there any sample code for template and map file that I can review. Thanks, Behrooz From ealpert at DIGITALGLOBE.COM Fri Nov 19 12:55:47 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 19 Nov 2004 13:55:47 -0700 Subject: my app can not find template Message-ID: I think all you're missing is a zoomdir parameter to tell mapserv which direction to apply the zoom size. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Friday, November 19, 2004 1:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] my app can not find template Thanks Ethan, The whole reason for going down this route is that I need the zoom feature in my map an I though that all add to was pass zoomsize to mapserver - that appears to be what is being done in the workshop demo. Am I wrong? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ethan Alpert Sent: Friday, November 19, 2004 8:29 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] my app can not find template In this case you don't appear to need a TEMPLATE. I'm not sure but I think you can put the string "dummy" into your template line. The TEMPLATE option is really for calls where mode=browse and you only pass the mapfile name to the mapserv executable. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Thursday, November 18, 2004 5:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] my app can not find template Ok - here is what I have. I have a perl cgi that builds my primary page, builds the map file and uses the perl api to build the map image, then displays the page. In the initial page I have all of the hidden fields that will direct that are to be read by the mapserver to allow me to zoom into different polygons on my California zip map ( each polygon representing a zip ). The cgi produces the following html: MapServer - CS CGI Application

MapServer - CS CGI Application


Teacher Type:
The html consists of two forms one for selection of the criteria which rebuilds the map just fine. The second for looking at the polygons. My map file that is produced appears as follows on the initial display of the map: MAP NAME CalMap STATUS ON EXTENT 5890870.385 -192053.200 8943310.847 3226086.749 IMAGETYPE GIF SIZE 600 600 SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/t data " IMAGECOLOR 255 255 255 SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME "cal_zp_st" TYPE POLYGON DATA "cal_zp_st" STATUS DEFAULT CLASSITEM "ZCTA" CLASS EXPRESSION /./ OUTLINECOLOR 204 204 204 END END END # end map from header And after selection of specific criteria: MAP NAME CalMap STATUS ON EXTENT 5890870.385 -192053.200 8943310.847 3226086.749 IMAGETYPE GIF SIZE 600 600 SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/t data " IMAGECOLOR 255 255 255 SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME "cal_zp_st" TYPE POLYGON DATA "cal_zp_st" STATUS DEFAULT CLASSITEM "ZCTA" CLASS EXPRESSION /94087|90408|94107|95118|94530|94596|90037|91016|92024|94954|93901|92503 / STYLE SYMBOL 'circle' SIZE 2 COLOR 255 102 102 END END CLASS EXPRESSION /./ OUTLINECOLOR 204 204 204 END END END # end map from header My error condition comes about when I try to click on one of the polygons in the map. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ryan, Adam Sent: Thursday, November 18, 2004 3:02 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] my app can not find template > -----Original Message----- > From: Joseph Norris [mailto:sirronj at PACBELL.NET] > Sent: Thursday, November 18, 2004 2:25 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] my app can not find template > > > Hello, > > I am getting this message: > > mapserv(): Web application error. No template provided > > I have a hidden field value=" this I am not sure of "> > > Should my hidden field be the root relative or absolute path? > > No matter what I try my app is not finding my template. > > Thanks ahead of time. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4, > -3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > Joseph, Just want to make sure your setting the value to a file, not just a path, and not a url. Give us the examples that you've used. Adam From dmorissette at DMSOLUTIONS.CA Fri Nov 19 13:02:17 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Fri, 19 Nov 2004 16:02:17 -0500 Subject: Groups in legend In-Reply-To: Message-ID: Daniele Margotti wrote: > Hi list, > with an HTML Legend I can show groups of layer, with the name of the group > and indented layers. > > How can I do this with an IMAGE Legend? > No you can't. This is specific to HTML legends. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Fri Nov 19 13:10:23 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Fri, 19 Nov 2004 16:10:23 -0500 Subject: problem with postGIS and WMS capabilities if wms_extent not defined In-Reply-To: <9608.212.238.227.182.1100867613.squirrel@212.238.227.182> Message-ID: Bart van den Eijnden wrote: > Hi list, > > I have a PostGIS layer in my MAP file and I am using the 4.4 beta2 windows > binary from maptools.org. I am on Windows 2000 server. > > If I don't define a WMS_EXTENT in the METADATA section of my LAYER, I get > a crash of the WMS capabilities (only 4 Kb of normally 5 Kb is sent). If I > do define the WMS_EXTENT everything works fine. > Did this use to work with 4.2? Some work was dont in this area after beta2, but I'm not aware of this issue. Perhaps you could also try with the latest source from CVS if you can. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From bartvde at XS4ALL.NL Fri Nov 19 13:20:35 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 19 Nov 2004 22:20:35 +0100 Subject: problem with postGIS and WMS capabilities if wms_extent not defined In-Reply-To: <419E613F.4020801@dmsolutions.ca> Message-ID: Hi Daniel, yes, both 4.2 and 4.3 binaries work. Also GetMap requests work with a 4.3 or 4.2 binary, but the 4.4 beta2 gives an internal server error. [Fri Nov 19 22:28:34 2004] [error] [client 192.168.3.4] Premature end of script headers: mapserv.exe So there seems to be something wrong with the PostGIS support in that one whenever it needs to go to the database for information. Anybody else experiencing this, or is it my specific setup? When will a 4.4 beta3 binary be released on maptools? As we never compile with PostGIS support unfortunately .... :( Best regards, Bart On Fri, 19 Nov 2004 16:10:23 -0500, Daniel Morissette wrote: > Bart van den Eijnden wrote: >> Hi list, >> >> I have a PostGIS layer in my MAP file and I am using the 4.4 beta2 >> windows >> binary from maptools.org. I am on Windows 2000 server. >> >> If I don't define a WMS_EXTENT in the METADATA section of my LAYER, I >> get >> a crash of the WMS capabilities (only 4 Kb of normally 5 Kb is sent). >> If I >> do define the WMS_EXTENT everything works fine. >> > > Did this use to work with 4.2? Some work was dont in this area after > beta2, but I'm not aware of this issue. Perhaps you could also try with > the latest source from CVS if you can. > > -- > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From sirronj at PACBELL.NET Fri Nov 19 13:29:15 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Fri, 19 Nov 2004 13:29:15 -0800 Subject: my app can not find template In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB16017B1920@COMAIL01.digitalglobe.com> Message-ID: Ethan, The HTML below shows what is being produced. However when I click on a polygon I am still getting the no template found error. I have tried several different ways - putting in absolute path, putting in dummy, taking out the map_web_template field completely and still I get the error. Please look and see if you something that I do not. Here is what I am producing: MapServer - CS CGI Application

MapServer - CS CGI Application


Teacher Type:
#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ethan Alpert Sent: Friday, November 19, 2004 12:56 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] my app can not find template I think all you're missing is a zoomdir parameter to tell mapserv which direction to apply the zoom size. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Friday, November 19, 2004 1:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] my app can not find template Thanks Ethan, The whole reason for going down this route is that I need the zoom feature in my map an I though that all add to was pass zoomsize to mapserver - that appears to be what is being done in the workshop demo. Am I wrong? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ethan Alpert Sent: Friday, November 19, 2004 8:29 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] my app can not find template In this case you don't appear to need a TEMPLATE. I'm not sure but I think you can put the string "dummy" into your template line. The TEMPLATE option is really for calls where mode=browse and you only pass the mapfile name to the mapserv executable. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Thursday, November 18, 2004 5:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] my app can not find template Ok - here is what I have. I have a perl cgi that builds my primary page, builds the map file and uses the perl api to build the map image, then displays the page. In the initial page I have all of the hidden fields that will direct that are to be read by the mapserver to allow me to zoom into different polygons on my California zip map ( each polygon representing a zip ). The cgi produces the following html: MapServer - CS CGI Application

MapServer - CS CGI Application


Teacher Type:
The html consists of two forms one for selection of the criteria which rebuilds the map just fine. The second for looking at the polygons. My map file that is produced appears as follows on the initial display of the map: MAP NAME CalMap STATUS ON EXTENT 5890870.385 -192053.200 8943310.847 3226086.749 IMAGETYPE GIF SIZE 600 600 SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/t data " IMAGECOLOR 255 255 255 SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME "cal_zp_st" TYPE POLYGON DATA "cal_zp_st" STATUS DEFAULT CLASSITEM "ZCTA" CLASS EXPRESSION /./ OUTLINECOLOR 204 204 204 END END END # end map from header And after selection of specific criteria: MAP NAME CalMap STATUS ON EXTENT 5890870.385 -192053.200 8943310.847 3226086.749 IMAGETYPE GIF SIZE 600 600 SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/t data " IMAGECOLOR 255 255 255 SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME "cal_zp_st" TYPE POLYGON DATA "cal_zp_st" STATUS DEFAULT CLASSITEM "ZCTA" CLASS EXPRESSION /94087|90408|94107|95118|94530|94596|90037|91016|92024|94954|93901|92503 / STYLE SYMBOL 'circle' SIZE 2 COLOR 255 102 102 END END CLASS EXPRESSION /./ OUTLINECOLOR 204 204 204 END END END # end map from header My error condition comes about when I try to click on one of the polygons in the map. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ryan, Adam Sent: Thursday, November 18, 2004 3:02 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] my app can not find template > -----Original Message----- > From: Joseph Norris [mailto:sirronj at PACBELL.NET] > Sent: Thursday, November 18, 2004 2:25 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] my app can not find template > > > Hello, > > I am getting this message: > > mapserv(): Web application error. No template provided > > I have a hidden field value=" this I am not sure of "> > > Should my hidden field be the root relative or absolute path? > > No matter what I try my app is not finding my template. > > Thanks ahead of time. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4, > -3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > Joseph, Just want to make sure your setting the value to a file, not just a path, and not a url. Give us the examples that you've used. Adam From dmorissette at DMSOLUTIONS.CA Fri Nov 19 13:34:05 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Fri, 19 Nov 2004 16:34:05 -0500 Subject: problem with postGIS and WMS capabilities if wms_extent not defined In-Reply-To: Message-ID: Bart van den Eijnden wrote: > > When will a 4.4 beta3 binary be released on maptools? As we never > compile with PostGIS support unfortunately .... :( > Beta3 is not out yet... should be tonight. I'm waiting to hear from Steve. Binaries will follow shortly, perhaps Monday morning? -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From jfletcher at LATITUDEGEO.COM Fri Nov 19 13:13:08 2004 From: jfletcher at LATITUDEGEO.COM (John Fletcher) Date: Fri, 19 Nov 2004 13:13:08 -0800 Subject: GetFeatureInfo Error - 'SE_stream_fetch_row(): Shape or row not found' Message-ID: Mapserver 4.4.0 beta1 Windows 2K SDE 8.3 I'm having difficulty with a GetFeatureInfo request to an SDE dataset. GetMap requests are fine, but I get an exception with the GetFeatureInfo request: msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Shape or row not found. (-22) It seemed to be related to Bug 536 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=536) since my Row ID column is named OBJECTID, but the report seems to suggest that it has been resolved. Has anybody experienced problems of this sort, and have they been resolved? It's possible that I've misconfigured something... I'll be using a WFS for queries eventually, but I'd like to get this working in the meantime. Thanks very much for any help. John For those interested, and in case it's relevant, my configuration is pasted below. If you don't need to see the configuration there's no need to continue reading. GetFeatureInfo request url: ************************** http://server/cgi-bin/mapserv.exe?map=C:/path/to/map.map&VERSION=1.1.1&R EQUEST=GetFeatureInfo&LAYERS=AIR_FLIGHT_LINES&STYLES=&SRS=EPSG%3A42102&B BOX=1161743.9011625813,410390.02947845805,1197542.6407875319,434059.0612 244898&WIDTH=667&HEIGHT=441&FORMAT=image/png&QUERY_LAYERS=AIR_FLIGHT_LIN ES&INFO_FORMAT=text/plain&FEATURE_COUNT=25&X=358&Y=103 Replace 'server' with my server name and 'C:/path/to/map.map' with the actual path to my mapfile. Mapfile layer definition: ************************ LAYER NAME 'AIR_FLIGHT_LINES' CONNECTIONTYPE sde CONNECTION 'sde.server.address,port:5151,sde,user,pass' DATA 'SCHEMA_NAME.TABLE_NAME,GEOMETRY' CLASS STYLE COLOR 105 135 191 END END TYPE line MAXSCALE 500000 PROJECTION #BC Albers "proj=aea" "ellps=GRS80" "lon_0=-126" "lat_0=45" "lat_1=50" "lat_2=58.5" "x_0=1000000" END #projection STATUS on METADATA wms_title 'AIR_FLIGHT_LINES' END #metadata PROCESSING 'CLOSE_CONNECTION=DEFER' DUMP true TEMPLATE 'set to make layer wms queryable' TOLERANCE 6 TOLERANCEUNITS pixels END Replace values in the connection string appropriately, and replace SCHEMA_NAME.TABLE_NAME with the fully qualified SDE data source name. Everything else is as the actual mapfile reads. Full Mapserver Error Message: **************************** GetFeatureInfo results: Layer 'AIR_FLIGHT_LINES' Content-type: application/vnd.ogc.se_xml msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Shape or row not found. (-22) From sirronj at PACBELL.NET Fri Nov 19 16:34:41 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Fri, 19 Nov 2004 16:34:41 -0800 Subject: Please look at this Message-ID: Everybody, http://mco.communityservers.com/cgi-bin/teacher/makmap.cgi I still can not figure out why when I click on a polygon I get the error message. The map_web_template is there - everything that I have read about to do this is there. All I want it to do is to be able to zoom in to a polygon when someone clicks on it. What am I doing wrong? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From ealpert at DIGITALGLOBE.COM Fri Nov 19 18:12:20 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 19 Nov 2004 19:12:20 -0700 Subject: Please look at this Message-ID: So my understand from the your many threads this week you are using mapscript to generate mapfiles. This is cofirmed by the clearly temporary name you've given the map file when I visited your link below: /tmp/file6XWjI2.map. So why are you using mode=browse? mode=map is what you need. The output of your cgi has the following line: I entered the following in my browser: http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs/mco.communityservers.com/htdocs/tmp/file6XWjI2.map&mode=map and it worked. The other thing which took me a while to realize is if you're using mapscript, you should consider the mapfile input instead of output. Once you make this connection you won't ever use calls directly to the mapserv executable. -e ________________________________ From: UMN MapServer Users List on behalf of Joseph Norris Sent: Fri 11/19/2004 5:34 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Please look at this Everybody, http://mco.communityservers.com/cgi-bin/teacher/makmap.cgi I still can not figure out why when I click on a polygon I get the error message. The map_web_template is there - everything that I have read about to do this is there. All I want it to do is to be able to zoom in to a polygon when someone clicks on it. What am I doing wrong? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenlord at GMAIL.COM Fri Nov 19 18:27:41 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri, 19 Nov 2004 20:27:41 -0600 Subject: Bug? MapServer as an html source Message-ID: I use mapserver to generate thumbnail images in query result pages, using mapserver as the source for an html tag. This has worked fine in MapServer 3.6 CGI without errors. I've used variables passed in the URL to layers with filteritems to have the queried features shown alone with background layers, used URL parameters to modify the map file dynamicaly to embed and resize the scalebar, and added a cross hair to center of the image using the map_webuser.. URL parameters. I'm now trying to do the same with MapServer 4.2.0 CGI. using the same polygon dataset as I was using in 3.6. It is not working consistantly. It will work generating an image for some polygons, fail - not returning an image when other polygons in the same layer are queried, and work for other polygons in the same layer if you click in just the right place within them. For all these queries, all the other attributes queried are being returned correctly in my template. Restarting the server had the effect of shuffling the polygons that would and wouldnt work. I have simplified the image source string down to only the problem layer, with no filtering, and only the parameters necessary to create the image. Simplified, the img tag looks like this: The mapext gets filled in by javascript. If I change it so that it displays some other background layer, but not the layer being queried, the image returns properly everytime. The layer within the mapfile looks like this: LAYER NAME Forest_Fires_1965-2003 TYPE POLYGON STATUS ON DATA "nt_FFIRES_a" HEADER "results/Forest_Fires_1965-2003_header.html" TEMPLATE "results/Forest_Fires_1965-2003_results.html" TOLERANCE 2 TOLERANCEUNITS pixels PROJECTION "init=EPSG:26910" END CLASS NAME "Forest Fire Areas" STYLE COLOR 200 110 110 END STYLE OUTLINECOLOR 100 100 100 END END END I can't figure out why it works sometimes ... instead of always or never. It is the identical dataset that works everytime for the same use with mapserver 3.6. The shapefile is about 9mb of very irregular polygons. Is this a new bug? has it already been fixed in 4.4? Will I have to keep a set of 3.6 files in place just to make the thumbnails? Any ideas would be appreciated, the thumbnails add a lot of power to the query result pages. Thanks, Ken Lord Vancouver BC From ealpert at DIGITALGLOBE.COM Fri Nov 19 18:39:14 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 19 Nov 2004 19:39:14 -0700 Subject: Bug? MapServer as an html source Message-ID: Two STYLE blocks in your LAYER definition seem suscpicious. What happens if you set up the class like: CLASS NAME "Forest Fire Areas" COLOR 200 110 110 OUTLINECOLOR 100 100 100 END BTW, If you get a red X when using a tag. Type the src part directly into the browser. ie: http://yourmachine/cgi-bin/mapserv.exe?&mode=map&mapext=XX XX XX XX&map=[map] &map_SIZE=125 75&layer=Forest_Fires_1965-2003' This way you get an error message (hopefully). If you don't you might need to look at your webbrowser error log. -e ________________________________ From: UMN MapServer Users List on behalf of Ken Lord Sent: Fri 11/19/2004 7:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Bug? MapServer as an html source I use mapserver to generate thumbnail images in query result pages, using mapserver as the source for an html tag. This has worked fine in MapServer 3.6 CGI without errors. I've used variables passed in the URL to layers with filteritems to have the queried features shown alone with background layers, used URL parameters to modify the map file dynamicaly to embed and resize the scalebar, and added a cross hair to center of the image using the map_webuser.. URL parameters. I'm now trying to do the same with MapServer 4.2.0 CGI. using the same polygon dataset as I was using in 3.6. It is not working consistantly. It will work generating an image for some polygons, fail - not returning an image when other polygons in the same layer are queried, and work for other polygons in the same layer if you click in just the right place within them. For all these queries, all the other attributes queried are being returned correctly in my template. Restarting the server had the effect of shuffling the polygons that would and wouldnt work. I have simplified the image source string down to only the problem layer, with no filtering, and only the parameters necessary to create the image. Simplified, the img tag looks like this: The mapext gets filled in by javascript. If I change it so that it displays some other background layer, but not the layer being queried, the image returns properly everytime. The layer within the mapfile looks like this: LAYER NAME Forest_Fires_1965-2003 TYPE POLYGON STATUS ON DATA "nt_FFIRES_a" HEADER "results/Forest_Fires_1965-2003_header.html" TEMPLATE "results/Forest_Fires_1965-2003_results.html" TOLERANCE 2 TOLERANCEUNITS pixels PROJECTION "init=EPSG:26910" END CLASS NAME "Forest Fire Areas" STYLE COLOR 200 110 110 END STYLE OUTLINECOLOR 100 100 100 END END END I can't figure out why it works sometimes ... instead of always or never. It is the identical dataset that works everytime for the same use with mapserver 3.6. The shapefile is about 9mb of very irregular polygons. Is this a new bug? has it already been fixed in 4.4? Will I have to keep a set of 3.6 files in place just to make the thumbnails? Any ideas would be appreciated, the thumbnails add a lot of power to the query result pages. Thanks, Ken Lord Vancouver BC -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Fri Nov 19 18:46:03 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 19 Nov 2004 19:46:03 -0700 Subject: Bug? MapServer as an html source Message-ID: Ugh I meant web server error log. -e ________________________________ From: UMN MapServer Users List on behalf of Ethan Alpert Sent: Fri 11/19/2004 7:39 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Bug? MapServer as an html source Two STYLE blocks in your LAYER definition seem suscpicious. What happens if you set up the class like: CLASS NAME "Forest Fire Areas" COLOR 200 110 110 OUTLINECOLOR 100 100 100 END BTW, If you get a red X when using a tag. Type the src part directly into the browser. ie: http://yourmachine/cgi-bin/mapserv.exe?&mode=map&mapext=XX XX XX XX&map=[map] &map_SIZE=125 75&layer=Forest_Fires_1965-2003' This way you get an error message (hopefully). If you don't you might need to look at your webbrowser error log. -e ________________________________ From: UMN MapServer Users List on behalf of Ken Lord Sent: Fri 11/19/2004 7:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Bug? MapServer as an html source I use mapserver to generate thumbnail images in query result pages, using mapserver as the source for an html tag. This has worked fine in MapServer 3.6 CGI without errors. I've used variables passed in the URL to layers with filteritems to have the queried features shown alone with background layers, used URL parameters to modify the map file dynamicaly to embed and resize the scalebar, and added a cross hair to center of the image using the map_webuser.. URL parameters. I'm now trying to do the same with MapServer 4.2.0 CGI. using the same polygon dataset as I was using in 3.6. It is not working consistantly. It will work generating an image for some polygons, fail - not returning an image when other polygons in the same layer are queried, and work for other polygons in the same layer if you click in just the right place within them. For all these queries, all the other attributes queried are being returned correctly in my template. Restarting the server had the effect of shuffling the polygons that would and wouldnt work. I have simplified the image source string down to only the problem layer, with no filtering, and only the parameters necessary to create the image. Simplified, the img tag looks like this: The mapext gets filled in by javascript. If I change it so that it displays some other background layer, but not the layer being queried, the image returns properly everytime. The layer within the mapfile looks like this: LAYER NAME Forest_Fires_1965-2003 TYPE POLYGON STATUS ON DATA "nt_FFIRES_a" HEADER "results/Forest_Fires_1965-2003_header.html" TEMPLATE "results/Forest_Fires_1965-2003_results.html" TOLERANCE 2 TOLERANCEUNITS pixels PROJECTION "init=EPSG:26910" END CLASS NAME "Forest Fire Areas" STYLE COLOR 200 110 110 END STYLE OUTLINECOLOR 100 100 100 END END END I can't figure out why it works sometimes ... instead of always or never. It is the identical dataset that works everytime for the same use with mapserver 3.6. The shapefile is about 9mb of very irregular polygons. Is this a new bug? has it already been fixed in 4.4? Will I have to keep a set of 3.6 files in place just to make the thumbnails? Any ideas would be appreciated, the thumbnails add a lot of power to the query result pages. Thanks, Ken Lord Vancouver BC -------------- next part -------------- An HTML attachment was scrubbed... URL: From sirronj at PACBELL.NET Sat Nov 20 06:35:32 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Sat, 20 Nov 2004 06:35:32 -0800 Subject: Please look at this In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB16147AE5@COMAIL01.digitalglobe.com> Message-ID: Ethan, Forgive my complete newbie approach to this situation and thank you for your help. I did begin to use the perl mapscript interface without creating mapfiles on-the-fly but there were certain calls that died because of not finding certain perl dependencies ( something that ended in .al of all things ). I need this stuff to work on as vanilla a server as possible so I went this route. I put into application your suggestion but now I am getting a return of: msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. So I need to capture the extents from the original mapfile and pass them through to the template? Or at this point am I using the template at all? Ah! Found it! I need to pass imgext - but when I do this I get a zoom of the map but with out my html formatting. Very confusing. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Friday, November 19, 2004 6:12 PM To: Joseph Norris; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Please look at this So my understand from the your many threads this week you are using mapscript to generate mapfiles. This is cofirmed by the clearly temporary name you've given the map file when I visited your link below: /tmp/file6XWjI2.map. So why are you using mode=browse? mode=map is what you need. The output of your cgi has the following line: I entered the following in my browser: http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs /mco.communityservers.com/htdocs/tmp/file6XWjI2.map&mode=map and it worked. The other thing which took me a while to realize is if you're using mapscript, you should consider the mapfile input instead of output. Once you make this connection you won't ever use calls directly to the mapserv executable. -e _____ From: UMN MapServer Users List on behalf of Joseph Norris Sent: Fri 11/19/2004 5:34 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Please look at this Everybody, http://mco.communityservers.com/cgi-bin/teacher/makmap.cgi I still can not figure out why when I click on a polygon I get the error message. The map_web_template is there - everything that I have read about to do this is there. All I want it to do is to be able to zoom in to a polygon when someone clicks on it. What am I doing wrong? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -------------- next part -------------- An HTML attachment was scrubbed... URL: From nasir_pcit at YAHOO.COM Sat Nov 20 06:37:23 2004 From: nasir_pcit at YAHOO.COM (nasir mahmood) Date: Sat, 20 Nov 2004 06:37:23 -0800 Subject: ArcView 3.1 Message-ID: Hi all, I have AreView 3.1. Windows XP is installed on my computer. The problem is that when I insert the CD to install it following error message appears C:/WINDOWS/SYSTEMS32/AUTOEXEC.NT. The system file is not suitable for running MS-DOS and Microsoft Windows applications. Can anyone tell me how to fix this problem. Regards, Nasir --------------------------------- Do you Yahoo!? Discover all that?s new in My Yahoo! -------------- next part -------------- An HTML attachment was scrubbed... URL: From maps at DSCHULTZSYSTEMS.COM Sat Nov 20 08:36:28 2004 From: maps at DSCHULTZSYSTEMS.COM (Dave S) Date: Sat, 20 Nov 2004 10:36:28 -0600 Subject: How do I get rid of half-filled circles??? Corrected URL Message-ID: Daniel - Thanks, thanks, thanks. For all on the list: The system administrator at my host recompiled per the suggestion and it fixed the problem. From mercutio at POBOX.COM Sat Nov 20 11:03:28 2004 From: mercutio at POBOX.COM (Aaron Craig) Date: Sat, 20 Nov 2004 20:03:28 +0100 Subject: Perl MapScript - newbie blues Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all. Can anyone point me to some working examples of using Perl to manipulate the map image? Specifically, I need to be able to draw lines, dots and other features on an existing map. Being able to dynamically create and display entire layers would also be great. I've looked high and low for examples, but find none. Also, it seems that the documentation for MapScript is not completely updated (no examples come to mind and I'm not on the computer that I am developing this project on), so I'm having some trouble getting things working. I can also post a code snippet of what I'm trying to do, but as this must be simply newbie madness, I'm assuming that if I can find some working examples of Perl MapScript, I'll be able to figure things out for myself. Thanks in advance! - -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== - -=-=- Asses are made to bear, and so are you. --The Taming of the Shrew, II:1 - -=-=- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3-nr1 (Windows 2000) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBn5UAoyEQRcU83p4RAnmlAJoDMaNJz+31tcimMfaB74L2LviXoACdG67J 48du8ARdlUtqq0p24IanLK8= =Nv2Y -----END PGP SIGNATURE----- From nasir_pcit at YAHOO.COM Sat Nov 20 11:47:50 2004 From: nasir_pcit at YAHOO.COM (nasir mahmood) Date: Sat, 20 Nov 2004 11:47:50 -0800 Subject: .PHTML problem Message-ID: Hi, I have added the following AddType instructions into the configuration file of Apache server AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php4 .php AddType application/x-httpd-php4 .phtml files with .html and .php extension are accessible but when I try to access http://localhost/hello.phtml. It is not accessed. Where could be a problem? Thanks a lot in advance.... Regards, Nasir --------------------------------- Do you Yahoo!? Meet the all-new My Yahoo! ? Try it today! -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at GOMOOS.ORG Sat Nov 20 13:53:58 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Sat, 20 Nov 2004 16:53:58 -0500 Subject: Perl MapScript - newbie blues In-Reply-To: <419F9500.80000@pobox.com> Message-ID: Have you discovered the mapserver wiki? There is a section on PerlMapscript and a page of examples: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35 At the very bottom of that page you'll find a Mapscript 4.2 example which should help you get started drawing points. I'd be happy to share additional code, I have several large Perl Mapscript applications. (Mostly 3.6). Eric At 08:03 PM 11/20/2004 +0100, Aaron Craig wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Hi all. > >Can anyone point me to some working examples of using Perl to >manipulate the map image? Specifically, I need to be able to draw >lines, dots and other features on an existing map. Being able to >dynamically create and display entire layers would also be great. > >I've looked high and low for examples, but find none. Also, it seems >that the documentation for MapScript is not completely updated (no >examples come to mind and I'm not on the computer that I am developing >this project on), so I'm having some trouble getting things working. > >I can also post a code snippet of what I'm trying to do, but as this >must be simply newbie madness, I'm assuming that if I can find some >working examples of Perl MapScript, I'll be able to figure things out >for myself. > >Thanks in advance! > >- -- >Aaron Craig >mercutio at pobox.com > >=========================================================== >Get Firefox! >http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 >=========================================================== > > > >- -=-=- >Asses are made to bear, and so are you. --The Taming of the Shrew, II:1 >- -=-=- >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.2.3-nr1 (Windows 2000) >Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > >iD8DBQFBn5UAoyEQRcU83p4RAnmlAJoDMaNJz+31tcimMfaB74L2LviXoACdG67J >48du8ARdlUtqq0p24IanLK8= >=Nv2Y >-----END PGP SIGNATURE----- From superbla3000 at GMX.NET Sun Nov 21 08:45:38 2004 From: superbla3000 at GMX.NET (Joerg P) Date: Sun, 21 Nov 2004 17:45:38 +0100 Subject: spamed wiki Message-ID: hello, it seems, some as**oles spamed a wiki entry: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI Is there a backup or something like that? exact the entry I need most at the moment: how to configure apache(2) to run phtml as cgi and php as module... I already posted about this problem long before, but still don't know where to write what in those apache2 config files... regards Joerg From nasir_pcit at YAHOO.COM Sun Nov 21 12:14:12 2004 From: nasir_pcit at YAHOO.COM (nasir mahmood) Date: Sun, 21 Nov 2004 12:14:12 -0800 Subject: European countries map data Message-ID: Hi, Can anybody help me by telling a source to download map data(.shx, .shp, dbf files) for europe/european coutries. Thanks alot in advance! Nasir --------------------------------- Do you Yahoo!? The all-new My Yahoo! ? Get yours free! -------------- next part -------------- An HTML attachment was scrubbed... URL: From nasir_pcit at YAHOO.COM Sun Nov 21 16:30:17 2004 From: nasir_pcit at YAHOO.COM (nasir mahmood) Date: Sun, 21 Nov 2004 16:30:17 -0800 Subject: [MapServer Error]: msCalculateScale(): Message-ID: Hi, when I tries to display a map, i get this error Warning: [MapServer Error]: msCalculateScale(): Invalid image extent. in C:\Program Files\Apache Group\Apache2\htdocs\programes\europe\europe.php on line 6 How can I come to extent of an image which I can draw with some given shape file. Thanks a lot in advance. Regards, Nasir --------------------------------- Do you Yahoo!? Discover all that?s new in My Yahoo! -------------- next part -------------- An HTML attachment was scrubbed... URL: From beny.santoso at GMAIL.COM Sun Nov 21 17:33:46 2004 From: beny.santoso at GMAIL.COM (beny santoso) Date: Mon, 22 Nov 2004 08:33:46 +0700 Subject: Edit map in Oracle Spatial Message-ID: Dear all, I need to edit my map in oracle spatial using phpmapserver (by web). Not just browse the map, but can edit the map (split poligon, draw line, combine poligon). Can anybody help me ? Thanks a lot. Regards, Beny. From nunoragil at YAHOO.COM Sun Nov 21 19:36:19 2004 From: nunoragil at YAHOO.COM (Nuno GIL) Date: Sun, 21 Nov 2004 19:36:19 -0800 Subject: some issues about the mapserver map files & HTTP POST Message-ID: Dear listers, Sorry for this long post, but I was trying to gather some thoughts/doubts... After reading again the mapserver documentation, I still have some doubts concerning the setup of a wms server. OUTPUTFORMAT I'm only providing two OUTPUTFORMATs in my map file, however, the capabilities file specifies much more outputs (I think all the formats supported by my mapserver). If it understands the supported OUTPUTFORMATs why do we need to include them in the map file? Is there any way of limiting the OUTPUTFORMATs to the ones I want instead of the ones supported by mapserver? PROJECTION I am still a bit confused with the PROJECTION object. I suppose that by declaring a PROJECTION object on the map file I am defining the supported output projections of the server and by declaring the projection inside each layer I am defining the original current projection of the data. Is that correct? I also suppose that any user could ask for any projection supported by mapserver in order to receive an on the fly projected map (even without any PROJECTION object included on the map file). So, is the PROJECTION object simply a definition of the mapserver supported output projections? By not declaring any PROJECTION object are we restraining the available ouput projections? TRANSPARENCY At the moment, the transparency of each layer of my wms is on and defined with OFFSITE. I would like to turn TRANSPARENCY on or off accordingly to the html wms user request. How can I do this? And a last question... Does Mapserver support HTTP/POST methods? How could I easily convert a HTTP/GET method like this: http://iceds.ge.ucl.ac.uk/cgi-bin/wms?map=wms_srtm.map&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-32,-35,101,60&WIDTH=600&HEIGHT=539&LAYERS=SRTM&FORMAT=image/jpeg&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage to a HTTP/POST one? Thank you very much for any help or comments. Regards, Nuno __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com From test at STIGASCORP.COM Sun Nov 21 20:23:08 2004 From: test at STIGASCORP.COM (Chris) Date: Sun, 21 Nov 2004 23:23:08 -0500 Subject: some issues about the mapserver map files & HTTP POST In-Reply-To: <20041122033619.76497.qmail@web53002.mail.yahoo.com> Message-ID: Hi Nuno, I will try to answer some of your questions: PROJECTIONS: You have to declare the Coordinate System (CS) of the data you are using, however you do not need to explicitly set your output CS. You can specify whatever output you want by setting the "SRS" parameter in your WMS query. As long as PROJ.4 supports your output CRS, then you should be fine. HTTP POST: Mapserver does support this. I think you have to send it as an XML request. I have done this and it works fine. The DTD is in the WMS spec. It would be nice if there was a SOAP interface to WMS. Regards, Chris -----Original Message----- From: Nuno GIL [mailto:nunoragil at YAHOO.COM] Sent: Sunday, November 21, 2004 10:36 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] some issues about the mapserver map files & HTTP POST Dear listers, Sorry for this long post, but I was trying to gather some thoughts/doubts... After reading again the mapserver documentation, I still have some doubts concerning the setup of a wms server. OUTPUTFORMAT I'm only providing two OUTPUTFORMATs in my map file, however, the capabilities file specifies much more outputs (I think all the formats supported by my mapserver). If it understands the supported OUTPUTFORMATs why do we need to include them in the map file? Is there any way of limiting the OUTPUTFORMATs to the ones I want instead of the ones supported by mapserver? PROJECTION I am still a bit confused with the PROJECTION object. I suppose that by declaring a PROJECTION object on the map file I am defining the supported output projections of the server and by declaring the projection inside each layer I am defining the original current projection of the data. Is that correct? I also suppose that any user could ask for any projection supported by mapserver in order to receive an on the fly projected map (even without any PROJECTION object included on the map file). So, is the PROJECTION object simply a definition of the mapserver supported output projections? By not declaring any PROJECTION object are we restraining the available ouput projections? TRANSPARENCY At the moment, the transparency of each layer of my wms is on and defined with OFFSITE. I would like to turn TRANSPARENCY on or off accordingly to the html wms user request. How can I do this? And a last question... Does Mapserver support HTTP/POST methods? How could I easily convert a HTTP/GET method like this: http://iceds.ge.ucl.ac.uk/cgi-bin/wms?map=wms_srtm.map&VERSION=1.1.1&REQUEST =GetMap&SRS=EPSG:4326&BBOX=-32,-35,101,60&WIDTH=600&HEIGHT=539&LAYERS=SRTM&F ORMAT=image/jpeg&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vn d.ogc.se_inimage to a HTTP/POST one? Thank you very much for any help or comments. Regards, Nuno __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com From tylermitchell at SHAW.CA Sun Nov 21 22:00:18 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Sun, 21 Nov 2004 22:00:18 -0800 Subject: spamed wiki In-Reply-To: <41A0C632.5030203@gmx.net> Message-ID: Looks like someone fixed it up now. Ah the joys of revision control eh? (Bob?) Tyler On November 21, 2004 08:45 am, Joerg P wrote: > hello, > > it seems, some as**oles spamed a wiki entry: > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI > Is there a backup or something like that? > > exact the entry I need most at the moment: > how to configure apache(2) to run phtml as cgi and php as module... > > I already posted about this problem long before, but still don't know > where to write what in those apache2 config files... > > regards > Joerg From tylermitchell at SHAW.CA Sun Nov 21 22:04:47 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Sun, 21 Nov 2004 22:04:47 -0800 Subject: WFS Metadata versus connection string (envdat WFS) Message-ID: I'm working with this WFS data: http://map.ns.ec.gc.ca/envdat/map.aspx?service=WFS&version=1.0.0&request=GetCapabilities It works, but I'm a bit confused when using the data in my map file. If I put the parameters manually into the connection string/URL, it works. But if I put parameters like wfs_version, wfs_request into the metadata section for the layer (and remove them from the URL) it doesn't seem to work anymore. Any pointers or problems a set of fresh eyes can see? Here are the two layer definitions. Anyone else using this data? LAYER GROUP testing NAME wfs_test STATUS DEFAULT TYPE POINT CONNECTIONTYPE WFS CONNECTION "http://map.ns.ec.gc.ca/envdat/map.aspx?service=WFS&version=1.0.0&request=GetFeature" CLASS COLOR 0 0 0 END PROJECTION "init=epsg:4326" END METADATA "wfs_typename" "envdat" "wfs_srs" "EPSG:4326" END END #------------------------- # This way doesn't work #------------------------- LAYER GROUP testing NAME wfs_test STATUS DEFAULT TYPE POINT CONNECTIONTYPE WFS CONNECTION "http://map.ns.ec.gc.ca/envdat/map.aspx?" CLASS COLOR 0 0 0 END PROJECTION "init=epsg:4326" END METADATA "wfs_service" "WFS" "wfs_typename" "envdat" "wfs_request" "GetFeature" "wfs_version" "1.0.0" "wfs_srs" "EPSG:4326" END END From sirronj at PACBELL.NET Sun Nov 21 23:11:27 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Sun, 21 Nov 2004 23:11:27 -0800 Subject: question about file names Message-ID: Hello, Progress is being made. But now I have something new. My initial gif is created for the initial html and I am able to get the mapserver to go to my template. But something is very different. The initial page contains my new gif -rw-r--r-- 1 nobody nobody 17641 Nov 21 22:45 fileEkskiB.gif But when I go to the template it cannot find the gif because mapserver has taken the initial gif file and adds its own naming from the map file with the mapserver numbering. My template is looking for [img] which is replaced with the gif file name less my on file name creation. -rw-r--r-- 1 nobody nobody 20642 Nov 21 22:45 fileEkskiB.gifCalMap110110594610464.gif How can I get map server to just leave out my initial gif file when going to the template? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From bartvde at XS4ALL.NL Sun Nov 21 23:35:01 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 22 Nov 2004 08:35:01 +0100 Subject: Edit map in Oracle Spatial In-Reply-To: <582b5a880411211733492551f9@mail.gmail.com> Message-ID: Hi, I don't think this is possible. For this kind of operations I would recommend looking into Geoserver (transactional Web Feature Server) next to using Mapserver, and maybe even then you will run into limitations ... Best regards, Bart > Dear all, > > I need to edit my map in oracle spatial using phpmapserver (by web). > Not just browse the map, but can edit the map (split poligon, draw > line, combine poligon). > > Can anybody help me ? > > Thanks a lot. > > Regards, > Beny. > From James.Shanton2 at NSCORP.COM Mon Nov 22 01:13:16 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Mon, 22 Nov 2004 09:13:16 -0000 Subject: Trouble with Projection - LCC[Scanned] Message-ID: -----Original Message----- From: Shanton, James A Sent: Friday, November 19, 2004 9:13 AM To: 'mapserver-users at lists.umn.edu' Subject: Trouble with Projection - LCC I'm trying to plot a property parcel shp file, and it keeps plotting in Pennsylvania instead of North Carolina. It also prints out the wrong size. (much to big ) I've posted my parcel layer (from the .map file ) and the PRJ file that came with the shp file. What am I doing wrong ? My map file output projection is : PROJECTION "proj=longlat" "ellps=WGS84" END Thanks ! Jim ---------------------------------------------------------------------------- --------- LAYER # PARCELS NAME "parcel" DATA parcel STATUS ON TYPE POLYGON PROJECTION proj=lcc lat_0=33.75 #Latitude of False Origin lon_0=-79.0 #Longitude of Natural Origin (Central Meridian) lat_1=34.33333333333334 #Latitude of First Standard Parallel lat_2=36.16666666666666 x_0=2000000.002616666 # False Easting y_0=0.0 # False Northing ellps=GRS80 # SPHEROID a=6378137.0 # from SPHEROID["GRS_1980",6378137,298.257222101]], rf=298.257222101 #from SPHEROID["GRS_1980",6378137,298.257222101]], datum=NAD83 END CLASS OUTLINECOLOR 0 0 0 END END # end of Parcel layer Here is the PRJ file PROJCS["NAD_1983_StatePlane_North_Carolina_FIPS_3200_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",2000000.002616666], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-79.0], PARAMETER["Standard_Parallel_1",34.33333333333334], PARAMETER["Standard_Parallel_2",36.16666666666666], PARAMETER["Latitude_Of_Origin",33.75], UNIT["Foot_US",0.3048006096012192]] -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Shanton2 at NSCORP.COM Mon Nov 22 01:13:16 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Mon, 22 Nov 2004 09:13:16 -0000 Subject: Trouble with Projection - LCC[Scanned] Message-ID: I'm trying to plot a property parcel shp file, and it keeps plotting in Pennsylvania instead of North Carolina. It also prints out the wrong size. (much to big ) I've posted my parcel layer (from the .map file ) and the PRJ file that came with the shp file. What am I doing wrong ? My map file output projection is : PROJECTION "proj=longlat" "ellps=WGS84" END Thanks ! Jim ---------------------------------------------------------------------------- --------- LAYER # PARCELS NAME "parcel" DATA parcel STATUS ON TYPE POLYGON PROJECTION proj=lcc lat_0=33.75 #Latitude of False Origin lon_0=-79.0 #Longitude of Natural Origin (Central Meridian) lat_1=34.33333333333334 #Latitude of First Standard Parallel lat_2=36.16666666666666 x_0=2000000.002616666 # False Easting y_0=0.0 # False Northing ellps=GRS80 # SPHEROID a=6378137.0 # from SPHEROID["GRS_1980",6378137,298.257222101]], rf=298.257222101 #from SPHEROID["GRS_1980",6378137,298.257222101]], datum=NAD83 END CLASS OUTLINECOLOR 0 0 0 END END # end of Parcel layer Here is the PRJ file PROJCS["NAD_1983_StatePlane_North_Carolina_FIPS_3200_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",2000000.002616666], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-79.0], PARAMETER["Standard_Parallel_1",34.33333333333334], PARAMETER["Standard_Parallel_2",36.16666666666666], PARAMETER["Latitude_Of_Origin",33.75], UNIT["Foot_US",0.3048006096012192]] -------------- next part -------------- An HTML attachment was scrubbed... URL: From kristjan at TARKVARASTUUDIO.EE Mon Nov 22 01:47:10 2004 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Mon, 22 Nov 2004 11:47:10 +0200 Subject: Edit map in Oracle Spatial In-Reply-To: <7409.212.238.227.182.1101108901.squirrel@212.238.227.182> Message-ID: Hi The main part of editing is to collect map clicks from user environment eg. (user is drawing a line) and then saving it is just an SQL statement. Of course there are limitations what is possible to do in the browser environment. For instance you can use jBox applet's line drawing/measuring functionality to collect points of edited line or polygon. Kristjan > > >>Dear all, >> >>I need to edit my map in oracle spatial using phpmapserver (by web). >>Not just browse the map, but can edit the map (split poligon, draw >>line, combine poligon). >> >>Can anybody help me ? >> >>Thanks a lot. >> >>Regards, >>Beny. >> >> >> From christian.schlatter at FIBL.ORG Mon Nov 22 02:31:35 2004 From: christian.schlatter at FIBL.ORG (Schlatter Christian) Date: Mon, 22 Nov 2004 11:31:35 +0100 Subject: AW: [UMN_MAPSERVER-USERS] European countries map data Message-ID: Hi Nasir Some data you can download directly from the ESRI-Homepage downloading service: E.G. http://arcdata.esri.com/data_downloader/DataDownloader?s=s&part=10200&se rvice=ESRI_World&minx=-11.500005&miny=35.299994999999996&maxx=43.2000050 00000004&maxy=81.40000500000001 YOu just have to follow the download instructions. (by the way: usually you get this free data with special data disks coming with the ESRI Software packages). I hope this can help you Best wishes Christian ________________________________ Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von nasir mahmood Gesendet: Sonntag, 21. November 2004 21:14 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] European countries map data Hi, Can anybody help me by telling a source to download map data(.shx, .shp, dbf files) for europe/european coutries. Thanks alot in advance! Nasir ________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! -------------- next part -------------- An HTML attachment was scrubbed... URL: From knozi at GMX.AT Mon Nov 22 03:22:07 2004 From: knozi at GMX.AT (Gernot Katzlberger) Date: Mon, 22 Nov 2004 12:22:07 +0100 Subject: symbols offset Message-ID: Hi list, I have two questions about the symbols in mapserver: 1. I have a point file and want to place symbols with an offset on the points (like drawn in the attachment). Can I change the position of the symbol like the offset in the label object? 2. I have a symbol file with 3000 different pixmap-symbols and one layer with 3000 classes in the mapfile. Each class has one symbol defined. I also changed the MS_MAXCLASS and the MS_MAXSYMBOLS in the map.h/mapsymbol.h file. Now Mapserver renders 700 classes in 1 second. With more than 700 classes Mapserver crashed. Is there another MS_MAX-SOMETHING to define? Thanks, Gernot -------------- next part -------------- A non-text attachment was scrubbed... Name: asymetric_symbol.gif Type: image/gif Size: 660 bytes Desc: not available URL: From margottid at COMUNE.LUGO.RA.IT Mon Nov 22 03:43:22 2004 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Mon, 22 Nov 2004 05:43:22 -0600 Subject: Changing template "on-the-fly" Message-ID: Hi list, I use CGI MapServer and I know that I can change "on-the-fly" parameter values of a mapfile using "&map_VARIABLE=NEW VALUE" in the browser address. Now, I want to change the template, and I thought I could use "&map_web_template=/path_to_my_data/new_template.html", but... MapServer still uses the template defined in the mapfile. How can I do? Thanks, Daniele From nunoragil at YAHOO.COM Mon Nov 22 03:44:53 2004 From: nunoragil at YAHOO.COM (Nuno GIL) Date: Mon, 22 Nov 2004 03:44:53 -0800 Subject: PROCESSING directive - scale Message-ID: Hi listers, I have a Landsat5 dataset for Africa tiled and in separate bands (1, 2 and 3). This dataset is not contrast stretched. With the PROCESSING directive SCALE I can automatically contrast stretch each band and serve them in a WMS as separate contrast stretched Landsat5 bands, but is there any way of joining the 3 bands on the fly to generate a composite RGB contrast stretched image? Can someone explain me how the PROCESSING BANDS directive work? I could not understand it quite well. In the raster document for MapServer it is first shown as BANDS=red_or_grey[,green,blue[,alpha]] and then the example is PROCESSING "BANDS=4,2,1". Where can I find more info on it? Onde again regards, Nuno __________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com From sebastian.boelling at GMX.DE Mon Nov 22 03:50:19 2004 From: sebastian.boelling at GMX.DE (=?ISO-8859-1?Q?=22Sebastian_B=F6lling=22?=) Date: Mon, 22 Nov 2004 12:50:19 +0100 Subject: Possibility to use the WFS of the UMN-MapServer as Gazetteer (WFS-G)? Message-ID: Dear list, is it possible to use the implemented OGC WFS of the UMN-MapServer as an Gazetter-Service - I mean the OGC WFS-G profile of the OGC WFS? Does anybody has experiences? Best regards, S. Boelling -- NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl GMX DSL-Netzanschluss + Tarif zum superg?nstigen Komplett-Preis! From mandhare at STATE.PA.US Mon Nov 22 07:10:33 2004 From: mandhare at STATE.PA.US (Andhare, Manjiri) Date: Mon, 22 Nov 2004 10:10:33 -0500 Subject: jBox Java applet Message-ID: Hi Rich, Thanks for correcting me the way I have specified the archive. I have changed the code base to "c:/Inetpub/wwwroot/MapServer/java/jBox" And archive to "jBoxPNG.jar. But after hitting the "initialize" button, when I looked at the generated source code , I found that the path to the png map image generated by Mapserver was incorrect. Previously,I had put the code for displaying the map image as: But my image was in heep://localhost/MapServer/Docs/tmp folder. So I changed that line to: But I'm not getting the way so that the mapserver could correctly get the path to the image. An after doing all these changes, I neither see the map in the browser not the java consol error. So, I'm not sure whether the java applet is being called and executed or not. If someone could point to the mistake I'm doing, please help me with this.. Thank you, Manjiri Andahre GIS co-ordinator PA Fish & Boat commission tel: (814)3595182 fax:(814)3595153 -----Original Message----- From: Richard Greenwood [mailto:richard.greenwood at gmail.com] Sent: Thursday, November 18, 2004 2:36 PM To: Andhare, Manjiri Cc: mapserver-users at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] jBox Java applet Looks like there are problems with your codebase and archive parameters. You have: codebase="java\jBox" archive="jBoxPNG.jar,png.jar" The way you have codebase, the 'java' directory will not be found. I assume that 'mapserver' is an IIS virtual directory, so try: 'codebase=/mapserver/java/jbox' Forward slashes, not back slashes, as this is a URI, not a DOS path. I'm a little unclear on the specification of two jar files in the archive parameter. Is that legal? Where'd you come up with that? And you have the .jar files in /mapserver/java/jbox/ not a subdirectory, right? You might want to start with GIFs and the standard jBox, rather than jBoxPNG which requries the sixlegs library. If you're using the Sun Java VM, you don't need six-legs anyway. I am cc'ing the mapserver-users list as others may spot something that I missed. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com On Thu, 18 Nov 2004 09:49:02 -0500, Andhare, Manjiri wrote: > Yes I have JVM and after running the demo, if I check the java console, > I get following: > ---------------------------------------------------- > load: class jBoxPNG.class not found. > > java.lang.ClassNotFoundException: jBoxPNG.class > > at sun.applet.AppletClassLoader.findClass(Unknown Source) > > at java.lang.ClassLoader.loadClass(Unknown Source) > > at sun.applet.AppletClassLoader.loadClass(Unknown Source) > > at java.lang.ClassLoader.loadClass(Unknown Source) > > at sun.applet.AppletClassLoader.loadCode(Unknown Source) > > at sun.applet.AppletPanel.createApplet(Unknown Source) > > at sun.plugin.AppletViewer.createApplet(Unknown Source) > > at sun.applet.AppletPanel.runLoader(Unknown Source) > > at sun.applet.AppletPanel.run(Unknown Source) > > at java.lang.Thread.run(Unknown Source) > > Caused by: java.io.IOException: open HTTP connection failed. > > at sun.applet.AppletClassLoader.getBytes(Unknown Source) > > at sun.applet.AppletClassLoader.access$100(Unknown Source) > > at sun.applet.AppletClassLoader$1.run(Unknown Source) > > at java.security.AccessController.doPrivileged(Native Method) > > ... 10 more > > Manjiri Andahre > GIS co-ordinator > PA Fish & Boat commission > tel: (814)3595182 > fax:(814)3595153 > > > > -----Original Message----- > From: Richard Greenwood [mailto:richard.greenwood at gmail.com] > Sent: Thursday, November 18, 2004 9:43 AM > To: Manjiri Andhare > Subject: Re: [UMN_MAPSERVER-USERS] jBox Java applet > > Do you have a Java Virtual machine installed? > Get one here: > > http://www.java.com/en/download/installed.jsp > > Rich > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > > On Thu, 18 Nov 2004 07:29:16 -0600, Manjiri Andhare > wrote: > > Hi! > > I was looking for the functionality to draw a rectangle for zooming in > on > > the map. I found jBox by Steve Lime on > > http://mapserver.gis.umn.edu/contributed.html > > I have Windows 2000 and I'm running mapserver 4.2 on IIS. > > I follwed the steps from jBox HOWTO 4.2 to test it with the workshop > demo. > > But when i try to run the workshop demo with "Basic application" > option, in > > the status bar of Browser(I'm using IE 6.0) I get the message as; > > Loading Java Applet Failed.. > > And I'm not getting the reason behind this.. > > Here is the changed portion of itasca_basic.html file: > > *************************************** > > > > > > > > MapServer - Itasca Application > > > > > > > > > >

MapServer - Itasca Application

> >
> > > > > >
> > > > > > > > > >
> > > align="center" bgcolor="#666666"> > > > > > > > > > >
> > > codebase="java\jBox" > > archive="jBoxPNG.jar,png.jar" > > code="jBoxPNG.class" > > width="600" > > height="600" > > name="jBox" > > MAYSCRIPT> > > > > > >
> > scalebar (mi) > >
> >
> > > >
> >
> >

> > > > > Browse > > map
> > Query > > feature
> > Query > multiple > > features > > > >


> > > >

> > Select Layers to Display:
> > > > > >

> > Zoom In [zoomdir_1_check]> > > Pan > > Zoom Out [zoomdir_-1_check]> > >

> > Zoom Size value=[zoomsize]> > >

> > > > Legend


> >
> > > >

> >

> > > border="0">
> >
> > > >
> >
> > > > > > *************************************************** > > > > I have placed the jBox as: > > c:\Inetpub\wwwroot\MapServer\java\jBox > > And I have placed the jar files, class files and java source files > from > > lib,classes and src folders respectively under > > c:\Inetpub\wwwroot\MapServer\java\jBox > > > > If somebody could point out what i'm missing,it'll be great!! > > Thank you, > > Manjiri Andhare > > GIS Coordinator > > PA Fish & Boat Commission > > U.S.A. > > > > From Tom.Kralidis at EC.GC.CA Mon Nov 22 07:16:49 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 22 Nov 2004 10:16:49 -0500 Subject: Possibility to use the WFS of the UMN-MapServer as Gazetteer (WFS-G)? Message-ID: > is it possible to use the implemented OGC WFS of the > UMN-MapServer as an Gazetter-Service - I mean the OGC WFS-G > profile of the OGC WFS? Does anybody has experiences? WFS-G is not currently implemented in MapServer. A couple of issues: 1./ The WFS-G Discussion Paper takes on a specific data model which would require hierarchical relationships in the data being served ("broader than", etc.) of placenames. You can use the existing MapServer as an "basic" OGC:WFS. 2./ The schemas prescribed by WFS-G are not implemented in MapServer. That is, MapServer outputs a 'default' GML model when responding to DescribeFeatureType and GetFeature. Even if they were implemented, issue #1 is still a requirement. Cheers ..Tom ========================= Tom Kralidis Systems Scientist Environment Canada Tel: +01-905-336-4409 http://www.ec.gc.ca/ From ivan.mjartan at GEOVAP.CZ Mon Nov 22 07:26:00 2004 From: ivan.mjartan at GEOVAP.CZ (Ivan Mjartan) Date: Mon, 22 Nov 2004 16:26:00 +0100 Subject: Add new symbol and item into the mapfile Message-ID: Hi everybody I have one question I need add one special symbol into mapfile and special item in to struct map_obj ...in object MAP for example symbol AUTOLOGIN I redefine 1) struct map_obj add this code char * autologin; in map.h file 2) function initMap in mafile.c add this line map->autologin=NULL; 3) function msFreeMap in mafile.c add this line free(map->autologin); 4) add this line: #define AUTOLOGIN 2000 into mapfile.h 5) add this code in function loadMapInternal mafile.c case(AUTOLOGIN): if((map->autologin = getString()) == NULL) return(NULL); break; When I compile mapserver and than run it I have still this error: msLoadMap(): Unknown identifier. Parsing error near (AUTOLOGIN):(line 11) I know that I have to redefine something in some lexer file .... but it is quite complicated form me :( Can someone know how can I do it? Thanks for your reply ivan mjartan -------------- next part -------------- An HTML attachment was scrubbed... URL: From tylermitchell at SHAW.CA Mon Nov 22 07:27:09 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 22 Nov 2004 07:27:09 -0800 Subject: Edit map in Oracle Spatial In-Reply-To: <582b5a880411211733492551f9@mail.gmail.com> Message-ID: This framework may help get you a bit further. I've heard of folks using it to create geographic features in PostGIS (unless I misheard them). http://datashare.gis.unbc.ca/openigf/index.php Tyler On November 21, 2004 05:33 pm, beny santoso wrote: > Dear all, > > I need to edit my map in oracle spatial using phpmapserver (by web). > Not just browse the map, but can edit the map (split poligon, draw > line, combine poligon). > > Can anybody help me ? > > Thanks a lot. > > Regards, > Beny. From warmerdam at POBOX.COM Mon Nov 22 07:26:30 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 22 Nov 2004 10:26:30 -0500 Subject: PROCESSING directive - scale In-Reply-To: <20041122114453.5862.qmail@web53007.mail.yahoo.com> Message-ID: Nuno GIL wrote: > Hi listers, > I have a Landsat5 dataset for Africa tiled and in > separate bands (1, 2 and 3). This dataset is not > contrast stretched. > With the PROCESSING directive SCALE I can > automatically contrast stretch each band and serve > them in a WMS as separate contrast stretched Landsat5 > bands, but is there any way of joining the 3 bands on > the fly to generate a composite RGB contrast stretched > image? > > Can someone explain me how the PROCESSING BANDS > directive work? I could not understand it quite well. > In the raster document for MapServer it is first shown > as BANDS=red_or_grey[,green,blue[,alpha]] and then the > example is PROCESSING "BANDS=4,2,1". Where can I find > more info on it? Nuno, What part don't you understand? The BANDS directive takes a list of band number as arguments. If you supply only a single band number it will be treated as a single greyscale band. If you support 3 they will be treated as an RGB composite. I suspect your problem is that you have the bands in seperate files. MapServer provides no mechanism to merge different files on the file into an RGB composite with red, green and blue coming from different sources. The obvious option is to build a multispectral file from your input files and then serve from that. You can use the gdal_merge.py script with the -separate switch to build a composite from a bunch of single band files. Another alternative is to build a GDAL "virtual file" that will virtually stack all the individual files into one multispectral virtual file without having to actually copy data. Then MapServer can use the virtual file for composites. I hope this helps. Best regards, -- ---------------------------------------+-------------------------------------- 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 James.Shanton2 at NSCORP.COM Mon Nov 22 07:28:22 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Mon, 22 Nov 2004 10:28:22 -0500 Subject: WMS Server and Proxy with v4.4 Message-ID: Is it possible to pass proxy settings to WMS layers in version 4.4 of mapserver? This is listed in bugzilla bug 571 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=571 ) with a target release of 4.4, but the bug is still open. I am having trouble using the http_proxy environment variable to do this, and was wondering if the new build would solve my problem. Thanks Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From sobomsawin at KASSINI.COM Mon Nov 22 07:54:35 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Mon, 22 Nov 2004 10:54:35 -0500 Subject: [UMN_MAPSERVER-USERS] ArcView 3.1 In-Reply-To: <20041120143723.27710.qmail@web14921.mail.yahoo.com> Message-ID: Think that's a question for ESRI support: HYPERLINK "http://support.esri.com/"http://support.esri.com Cheers! Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de nasir mahmood Envoy? : 20 novembre 2004 09:37 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] ArcView 3.1 Hi all, I have AreView 3.1. Windows XP is installed on my computer. The problem is that when I insert the CD to install it following error message appears C:/WINDOWS/SYSTEMS32/AUTOEXEC.NT. The system file is not suitable for running MS-DOS and Microsoft Windows applications. Can anyone tell me how to fix this problem. Regards, Nasir _____ Do you Yahoo!? Discover all that?s new in HYPERLINK "http://my.yahoo.com"My Yahoo! --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sobomsawin at KASSINI.COM Mon Nov 22 08:24:17 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Mon, 22 Nov 2004 11:24:17 -0500 Subject: [UMN_MAPSERVER-USERS] Trouble with Projection - LCC[Scanned] In-Reply-To: <01db01c4d073$802b3bf0$0f00000a@janus2.com> Message-ID: If you take a look at some last posted threads, you will see a discussion about this. I think your problem is that you didn't set the units in you layer like this UNITS FEET. Cheers! Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Shanton, James A Envoy? : 22 novembre 2004 04:13 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Trouble with Projection - LCC[Scanned] -----Original Message----- From: Shanton, James A Sent: Friday, November 19, 2004 9:13 AM To: 'mapserver-users at lists.umn.edu' Subject: Trouble with Projection - LCC I'm trying to plot a property parcel shp file, and it keeps plotting in Pennsylvania instead of North Carolina. It also prints out the wrong size. (much to big ) I've posted my parcel layer (from the .map file ) and the PRJ file that came with the shp file. What am I doing wrong ? My map file output projection is : PROJECTION "proj=longlat" "ellps=WGS84" END Thanks ! Jim ---------------------------------------------------------------------------- --------- LAYER # PARCELS NAME "parcel" DATA parcel STATUS ON TYPE POLYGON PROJECTION proj=lcc lat_0=33.75 #Latitude of False Origin lon_0=-79.0 #Longitude of Natural Origin (Central Meridian) lat_1=34.33333333333334 #Latitude of First Standard Parallel lat_2=36.16666666666666 x_0=2000000.002616666 # False Easting y_0=0.0 # False Northing ellps=GRS80 # SPHEROID a=6378137.0 # from SPHEROID["GRS_1980",6378137,298.257222101]], rf=298.257222101 #from SPHEROID["GRS_1980",6378137,298.257222101]], datum=NAD83 END CLASS OUTLINECOLOR 0 0 0 END END # end of Parcel layer Here is the PRJ file PROJCS["NAD_1983_StatePlane_North_Carolina_FIPS_3200_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting",2000000.002616666], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-79.0], PARAMETER["Standard_Parallel_1",34.33333333333334], PARAMETER["Standard_Parallel_2",36.16666666666666], PARAMETER["Latitude_Of_Origin",33.75], UNIT["Foot_US",0.3048006096012192]] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sirronj at PACBELL.NET Mon Nov 22 08:39:08 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 22 Nov 2004 08:39:08 -0800 Subject: ok - got zoom to work - another question Message-ID: Everyone, I have my zoom working but now I would like to tackle something else. I am putting an ellipse in the zip polygons if there is a 1-more teachers there. For each zip there maybe a max of 10 teachers. I would like an ellipse or symbol for each one so that when the user zooms into the polygon they can see a symbol for each teacher. Can I do this within the class? If so how or would be the best way to handle this? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From gerry.creager at TAMU.EDU Mon Nov 22 08:49:17 2004 From: gerry.creager at TAMU.EDU (Gerry Creager n5jxs) Date: Mon, 22 Nov 2004 10:49:17 -0600 Subject: [UMN_MAPSERVER-USERS] ArcView 3.1 In-Reply-To: <002c01c4d0ab$9365e4d0$6402a8c0@jebediah> Message-ID: Somehow, this doesn't sound like a bug-report to a Linux user... :-) gerry Skweda O'Bomsawin wrote: > Think that's a question for ESRI support: http://support.esri.com > > > > > Cheers! > > > > Skweda O'Bomsawin > > > > -----Message d'origine----- > *De :* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > *De la part de* nasir mahmood > *Envoy? :* 20 novembre 2004 09:37 > *? :* MAPSERVER-USERS at LISTS.UMN.EDU > *Objet :* [UMN_MAPSERVER-USERS] ArcView 3.1 > > > > Hi all, > > I have AreView 3.1. Windows XP is installed on my computer. The > problem is that when I insert the CD to install it following error > message appears > > > > C:/WINDOWS/SYSTEMS32/AUTOEXEC.NT. The system file is not suitable for > running MS-DOS and Microsoft Windows applications. > > > > Can anyone tell me how to fix this problem. > > > > Regards, > > Nasir > > ------------------------------------------------------------------------ > > Do you Yahoo!? > Discover all that?s new in My Yahoo! > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 > -- Gerry Creager -- gerry.creager at tamu.edu Network Engineering -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From dmorissette at DMSOLUTIONS.CA Mon Nov 22 09:05:29 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 22 Nov 2004 12:05:29 -0500 Subject: MapServer 4.4.0-beta3 released Message-ID: Hi Everyone, MapServer 4.4.0-beta3 is now available. Unless major issues are reported, this should be the last beta before the final 4.4.0 release in the next week or two. As usual, the source is available on the MapServer website: http://mapserver.gis.umn.edu/dload.html and Windows binaries should be available in the next day or so as well at the usual locations: The MapServer / PHP MapScript package on maptools.org: http://maptools.org/php_mapscript/index.phtml?page=downloads.html Howard Butler's win32 binaries at: http://hobu.stat.iastate.edu/mapserver/build_output/beta_4_4_0 Finally, I have copied below the complete list of fixes/changes since beta2. Best Regards, Daniel ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Version 4.4.0-beta3 (2004-11-22) -------------------------------- - Added tests to mimimize the threat of recursion problems when evaluating LAYER REQUIRES or LABELREQUIRES expressions. Note that via MapScript it is possible to circumvent that test by defining layers with problems after running prepareImage. Other things crop up in that case too (symbol scaling dies) so it should be considered bad programming practice.(bug 1059) - Added --with-sderaster configure option. - Make sure that msDrawWMSLayerLow calls msDrawLayer instead of msDrawRasterLayerLow directly ensuring that some logic (transparency) that are in msDrawLayer are applied (Bug 541). - Force GD/JPEG outputFormatObjects to IMAGEMODE RGB and TRANSPARENT OFF if they are RGBA or ON. Makes user error such as in bug 1703 less likely. - Advertize only gd and gdal formats for wms capabilities (Bug 455). - Pass config option GML_FIELDTYPES=ALWAYS_STRING to OGR so that all GML attributes are returned as strings to MapServer. This is most efficient and prevents problems with autodetection of some attribute types. (bug1043) - msOGCWKT2ProjectionObj() now uses the OGRSpatialReference::SetFromUserInput() method. This allows various convenient setting options, including the ability to handle ESRI WKT by prefixing the WKT string with "ESRI::". - Fixed GetLegendGraphic in WMS Capabilities that were missing the '?' or '&' separator if it was not included in wms_onlineresource (bug 1065) - Updated WMS/WFS client and server code to lookup "ows_*" metadata names in addition to the default "wms_*" (or "wfs_*") metadatas (WCS was already implemented this way). This reduces the amount of duplication in mapfiles that support multiple OGC interfaces since "ows_*" metadata can be used almost everywhere for common metadata items shared by multiple OGC interfaces. (bug 568) - Added ows_service_onlineresource metadata for WMS/WFS to distinguish between service and GetMap/Capabilities onlineresources (bug 375) - Added map->setSize() to PHP MapScript (bug 1066) - Re-enabled building PHP MapScript using PHP's bundled regex/*.o. This is needed to build in an environment with PHP configured as an Apache DSO (bugs 990, 520) - Fixed problem with raster dither support on windows (related to ascii encoding pointers). (bug 722) - Moved PHP/SWIG MapScript layer->getExtent() logic down to msLayerGetExtent() to avoid code duplication (bug 1051) - Added SDE Raster drawing support (experimental). - HTML legends: Added [leg_header_html] and [leg_footer_html] (bug 1032) - Added "z" support in SWIG MapScript for pointObj (bug 871) - In PHP Mpascript when using ms_newrectobj, the members minx, miny, maxx, maxy are initialized to -1 (Bug 788). - Write out proper world file with remote WMS result, it was off by half a pixel. (Bug 1050). - Send a warning in the wms capabilities if the layer status is set to default (Bug 638). - Fixed PHP MapScript compile warnings: dereferencing type-punned pointer will break strict-aliasing rules (bug 1053) - Added $layer->isVisible() to PHP MapScript (bug 539) - Ported $layer->getExtent() to PHP MapScript (bug 826) - wms_group_abstract can now be used in the capabilities (Bug 754) - If wms_stylelist is an empty string, do not output the tag for MapContexts (Bug 595). - Avoid passing FILE* to GD library by utilizing GD's gdIOCtx interface (bug 1047). - Output warning in wms/wfs capabilities document if layer,group,map names have space in them (bug 486, bug 646). - maporaclespatial.c: fixed declarations problems (bug 1044). - Allow use of msOWSPrintURLType with no metadata. In this case the default parameters will be used (bug 1001). - Ensure the outputFormatObj attached to msImageLoadGDStream() results reflect the interlacedness of the loaded image. Also ensure that the RGB PNG reference images work (make imagemode match gdImg) (bug 1039). - Fixed support for non-square pixels in WCS (bug 1014). - Expose only GD formats for GetLegendGraphic in the capabilities (bug 1001). - Check for supported formats when process a GetLegendGraphic request (bug 1030). - mapraster.c: fixed problem with leaks in tileindexed case where the tile index is missing (bug 713). - Oracle Spatial: implemented connection pool support for Oracle Spatial. New layer data parameters to support query functions, added "using unique ". Added "FILTER", "RELATE" and "GEOMRELATE" parameters, now permit users to choose the Oracle Spatial Filter. Modified the internal SQL to always apply FILTER function. And improve the Oracle Spatial performance. - Centralize "stdout binary mode setting" for win32 in msIO_needBinaryStdout(). Use it when writing GDAL files to stdout in mapgdal.c. Fixes problems with output of binary files from GDAL outputformat drivers on win32 via WMS/WCS. - MapServer now provides one default style named (default), title and LegendURL when generating capabilities. Added also the possibility to use the keyword default for STYLES parameter when doing a GetMap (..&STYLES=default,defeault,...) (bug 1001). - Add xlink:type="simple" in WMS MetadataURL (bug 1027). From richard.greenwood at GMAIL.COM Mon Nov 22 09:15:04 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 22 Nov 2004 10:15:04 -0700 Subject: jBox Java applet In-Reply-To: <42529C60130B66428EE04284C47C1A270139F65B@enhbgpri17.backup> Message-ID: On Mon, 22 Nov 2004 10:10:33 -0500, Andhare, Manjiri wrote: > Hi Rich, > Thanks for correcting me the way I have specified the archive. I have > changed the code base to "c:/Inetpub/wwwroot/MapServer/java/jBox" > And archive to "jBoxPNG.jar. That's not correct. The codebase has to point to an HTTP address, not to a file system directory. This is becasue the web page holding the java applet is fetching the applet. > But after hitting the "initialize" button, when I looked at the > generated source code , I found that the path to the png map image > generated by Mapserver was incorrect. Previously,I had put the code for > displaying the map image as: > > But my image was in heep://localhost/MapServer/Docs/tmp folder. > So I changed that line to: > But the problem is, when mapserver put the value for [img], it creates > it as: " \tmp\ITASCA11011353302004.png" > Therefore I'm getting the value for the map image in the source as: > value="http://localhost/MapServer/Docs/\tmp\ITASCA11011353302004.png"> > But I'm not getting the way so that the mapserver could correctly get > the path to the image. > An after doing all these changes, I neither see the map in the browser > not the java consol error. So, I'm not sure whether the java applet is > being called and executed or not. Again, I think you are confusing HTTP addresses with file system addresses. In your .map file you should have something like: IMAGEPATH c:/Inetpub/wwwroot/MapServer/Docs/tmp/ # this is the file system directory where mapserver puts the images, # it should also be an IIS virtual directory IMAGEURL /tmp/ # this is the HTTP address that the client browser reads from. I may not have those exactly right because I am guessing at your directory structure. But when set correctly should look something like this after being parced by mapserv.exe: You should be able to put the replaced values from [host][img] into your browser's address bar an see the image. If you can't do that, then you have an error in your .map file and/or your virtual directory assignments in IIS. If you can't fetch the image in this way, then there is no way that jBox will be able to get it either. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com > -----Original Message----- > From: Richard Greenwood [mailto:richard.greenwood at gmail.com] > Sent: Thursday, November 18, 2004 2:36 PM > To: Andhare, Manjiri > Cc: mapserver-users at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] jBox Java applet > > Looks like there are problems with your codebase and archive > parameters. You have: > codebase="java\jBox" > archive="jBoxPNG.jar,png.jar" > > The way you have codebase, the 'java' directory will not be found. I > assume that 'mapserver' is an IIS virtual directory, so try: > 'codebase=/mapserver/java/jbox' > Forward slashes, not back slashes, as this is a URI, not a DOS path. > > I'm a little unclear on the specification of two jar files in the > archive parameter. Is that legal? Where'd you come up with that? And > you have the .jar files in /mapserver/java/jbox/ not a subdirectory, > right? > > You might want to start with GIFs and the standard jBox, rather than > jBoxPNG which requries the sixlegs library. If you're using the Sun > Java VM, you don't need six-legs anyway. > > I am cc'ing the mapserver-users list as others may spot something that I > missed. > > Rich > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > > On Thu, 18 Nov 2004 09:49:02 -0500, Andhare, Manjiri > wrote: > > Yes I have JVM and after running the demo, if I check the java > console, > > I get following: > > ---------------------------------------------------- > > load: class jBoxPNG.class not found. > > > > java.lang.ClassNotFoundException: jBoxPNG.class > > > > at sun.applet.AppletClassLoader.findClass(Unknown Source) > > > > at java.lang.ClassLoader.loadClass(Unknown Source) > > > > at sun.applet.AppletClassLoader.loadClass(Unknown Source) > > > > at java.lang.ClassLoader.loadClass(Unknown Source) > > > > at sun.applet.AppletClassLoader.loadCode(Unknown Source) > > > > at sun.applet.AppletPanel.createApplet(Unknown Source) > > > > at sun.plugin.AppletViewer.createApplet(Unknown Source) > > > > at sun.applet.AppletPanel.runLoader(Unknown Source) > > > > at sun.applet.AppletPanel.run(Unknown Source) > > > > at java.lang.Thread.run(Unknown Source) > > > > Caused by: java.io.IOException: open HTTP connection failed. > > > > at sun.applet.AppletClassLoader.getBytes(Unknown Source) > > > > at sun.applet.AppletClassLoader.access$100(Unknown Source) > > > > at sun.applet.AppletClassLoader$1.run(Unknown Source) > > > > at java.security.AccessController.doPrivileged(Native Method) > > > > ... 10 more > > > > Manjiri Andahre > > GIS co-ordinator > > PA Fish & Boat commission > > tel: (814)3595182 > > fax:(814)3595153 > > > > > > > > -----Original Message----- > > From: Richard Greenwood [mailto:richard.greenwood at gmail.com] > > Sent: Thursday, November 18, 2004 9:43 AM > > To: Manjiri Andhare > > Subject: Re: [UMN_MAPSERVER-USERS] jBox Java applet > > > > Do you have a Java Virtual machine installed? > > Get one here: > > > > http://www.java.com/en/download/installed.jsp > > > > Rich > > -- > > Richard Greenwood > > richard.greenwood at gmail.com > > www.greenwoodmap.com > > > > On Thu, 18 Nov 2004 07:29:16 -0600, Manjiri Andhare > > wrote: > > > Hi! > > > I was looking for the functionality to draw a rectangle for zooming > in > > on > > > the map. I found jBox by Steve Lime on > > > http://mapserver.gis.umn.edu/contributed.html > > > I have Windows 2000 and I'm running mapserver 4.2 on IIS. > > > I follwed the steps from jBox HOWTO 4.2 to test it with the workshop > > demo. > > > But when i try to run the workshop demo with "Basic application" > > option, in > > > the status bar of Browser(I'm using IE 6.0) I get the message as; > > > Loading Java Applet Failed.. > > > And I'm not getting the reason behind this.. > > > Here is the changed portion of itasca_basic.html file: > > > *************************************** > > > > > > > > > > > > MapServer - Itasca Application > > > > > > > > > > > > > > >

MapServer - Itasca Application

> > >
> > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > align="center" bgcolor="#666666"> > > > > > > > > > > > > > > >
> > > > > codebase="java\jBox" > > > archive="jBoxPNG.jar,png.jar" > > > code="jBoxPNG.class" > > > width="600" > > > height="600" > > > name="jBox" > > > MAYSCRIPT> > > > > > > > > >
> > > scalebar (mi) src="[scalebar]"> > > >
> > >
> > > bgcolor="#ffffff"> > > >
> > >
> > >

> > > > > > > > Browse > > > map
> > > Query > > > feature
> > > Query > > multiple > > > features > > > > > >


> > > > > >

> > > Select Layers to Display:
> > > > > > > > >

> > > Zoom In > [zoomdir_1_check]> > > > Pan > > > Zoom Out > [zoomdir_-1_check]> > > >

> > > Zoom Size > value=[zoomsize]> > > >

> > > > > > Legend


> > >
> > > > > >

> > >

> > > > > border="0">
> > >
> > > > > >
> > >
> > > > > > > > > *************************************************** > > > > > > I have placed the jBox as: > > > c:\Inetpub\wwwroot\MapServer\java\jBox > > > And I have placed the jar files, class files and java source files > > from > > > lib,classes and src folders respectively under > > > c:\Inetpub\wwwroot\MapServer\java\jBox > > > > > > If somebody could point out what i'm missing,it'll be great!! > > > Thank you, > > > Manjiri Andhare > > > GIS Coordinator > > > PA Fish & Boat Commission > > > U.S.A. From dmorissette at DMSOLUTIONS.CA Mon Nov 22 09:36:10 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 22 Nov 2004 12:36:10 -0500 Subject: WMS Server and Proxy with v4.4 In-Reply-To: Message-ID: Shanton, James A wrote: > Is it possible to pass proxy settings to WMS layers in version 4.4 of > mapserver? This is listed in bugzilla bug 571 > (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=571) with a target > release of 4.4, but the bug is still open. I am having trouble using > the http_proxy environment variable to do this, and was wondering if the > new build would solve my problem. > Bug 571 has not been and won't be addressed in 4.4 (too late). The environment variables would be the only workaround for now. I've never tried using them myself so I can't help with that, but usually the CURL library is very reliable and well documented, so if you find the docs and follow them closely you should be able to get them to work. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From gireddy at GMAIL.COM Mon Nov 22 09:40:25 2004 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Mon, 22 Nov 2004 11:40:25 -0600 Subject: hyperlinks to a map Message-ID: hi everybody, I want to make each county as hyperlink so that it takes me to a different map, is it possible with php/mapscript. can we show different layers dynamically, like i have a state map where i show all my counties, then if a user clicks a county i want to show specific details of that perticulor county in zoomed map... is it possible or will there be any conflicts. thank you. -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, Department of Computer Science, University of Alabama. http://www.cs.ua.edu/shashi Home: 205-752-5137 Cell: 205-657-1438 From woodbri at SWOODBRIDGE.COM Mon Nov 22 09:48:58 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 22 Nov 2004 12:48:58 -0500 Subject: ok - got zoom to work - another question In-Reply-To: Message-ID: Joseph, This will be problematic if you are placing the ellipse at the zipcode centroid because all the ellipses will be located at the same location and you will only see the last one that is drawn. What you might want to do is make the ellipse a hot spot and do some javascript onRollover to pop up a box with the names in it. Or to place the number of teachers on a single ellipse, or to list all the teacher names in a single ellipse. These would need to be done in mapscript some way. but I don't think you will be able to get mapserver to do it automatically for you. -Steve W. Joseph Norris wrote: > Everyone, > > I have my zoom working but now I would like to tackle something else. I am > putting an ellipse in the zip polygons if there is a 1-more teachers there. > For each zip there maybe a max of 10 teachers. I would like an ellipse or > symbol for each one so that when the user zooms into the polygon they can > see a symbol for each teacher. Can I do this within the class? If so how or > would be the best way to handle this? > > Thanks. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From eric at GOMOOS.ORG Mon Nov 22 09:52:43 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Mon, 22 Nov 2004 12:52:43 -0500 Subject: ok - got zoom to work - another question In-Reply-To: Message-ID: At 08:39 AM 11/22/2004 -0800, Joseph Norris wrote: >Everyone, > >I have my zoom working but now I would like to tackle something else. I am >putting an ellipse in the zip polygons if there is a 1-more teachers there. >For each zip there maybe a max of 10 teachers. I would like an ellipse or >symbol for each one so that when the user zooms into the polygon they can >see a symbol for each teacher. Can I do this within the class? If so how or >would be the best way to handle this? You can do this in the map file by creating two layers and using MAXSCALE, MINSCALE. Layer 1 has one ellipse per zip wherever there are 1-10 teachers. MINSCALE is set so that it won't appear when you are zoomed in. Layer 2 has one ellipse for each teacher and has MAXSCALE set so that it turns on when Layer 1 is turned off. Of course if you are using Perl Mapscript you will need to calculate the scale yourself and turn on and off the layers yourself. Here's and example: my $current_scale = calculateScale($map, $imgext[0], $imgext[2]); # From mapserver3.6.4: mapscale.c msCalculateScale(). This is not a precision thing. We don't worry about # msAdjustExtent() since in all our maps, image SIZE has same aspect ratio as the map EXTENT. # $minx and $maxx are optional in which case the current extent of the map is used. # Be careful about the current map's extent. zoomMap() changes the extents. sub calculateScale{ my ($map, $minx, $maxx) = @_; if(!$minx){ $minx = $map->{extent}->{minx}; $maxx = $map->{extent}->{maxx}; } my @inchesPerUnit = (1, 12, 63360.0, 39.3701, 39370.1, 4374754); my $width = $map->{width}; my $units = $map->{units}; # index into unitsPerUnit array my $resolution = $map->{resolution}; my $md = $width / ($resolution * $inchesPerUnit[$units]); my $gd = $maxx - $minx; return($gd/$md); } Eric From sirronj at PACBELL.NET Mon Nov 22 09:53:28 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 22 Nov 2004 09:53:28 -0800 Subject: ok - got zoom to work - another question In-Reply-To: <41A2268A.7020607@swoodbridge.com> Message-ID: Steve, Right now it looks like I am getting the whole polygon covered with ellipses or I am not doing the ellipse correctly. For my demonstration I would like to put the number of teachers on a single ellipse - then the user could zoom in and see this. Sorry Steve - I do not see how to do this in the docs. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Stephen Woodbridge Sent: Monday, November 22, 2004 9:49 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question Joseph, This will be problematic if you are placing the ellipse at the zipcode centroid because all the ellipses will be located at the same location and you will only see the last one that is drawn. What you might want to do is make the ellipse a hot spot and do some javascript onRollover to pop up a box with the names in it. Or to place the number of teachers on a single ellipse, or to list all the teacher names in a single ellipse. These would need to be done in mapscript some way. but I don't think you will be able to get mapserver to do it automatically for you. -Steve W. Joseph Norris wrote: > Everyone, > > I have my zoom working but now I would like to tackle something else. I am > putting an ellipse in the zip polygons if there is a 1-more teachers there. > For each zip there maybe a max of 10 teachers. I would like an ellipse or > symbol for each one so that when the user zooms into the polygon they can > see a symbol for each teacher. Can I do this within the class? If so how or > would be the best way to handle this? > > Thanks. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From bigfoot at MAIN-TASK.COM Mon Nov 22 09:57:13 2004 From: bigfoot at MAIN-TASK.COM (=?ISO-8859-1?Q?Vladimir_Guzm=E1n?=) Date: Mon, 22 Nov 2004 12:57:13 -0500 Subject: MapServer 4.4.0-beta3 released In-Reply-To: <41A21C59.8080104@dmsolutions.ca> Message-ID: Hello. I've got a question: > - Re-enabled building PHP MapScript using PHP's bundled regex/*.o. > This is > needed to build in an environment with PHP configured as an Apache DSO > (bugs 990, 520) That means it is possible to compile phpmapscript as an Apache DSO again? Since what version? Thanks a lot, -- Vladimir Ilich Guzm?n R. ------------------------ http://maintask.com Daniel Morissette wrote: > Hi Everyone, > > MapServer 4.4.0-beta3 is now available. Unless major issues are > reported, this should be the last beta before the final 4.4.0 release in > the next week or two. > > As usual, the source is available on the MapServer website: > > http://mapserver.gis.umn.edu/dload.html > > and Windows binaries should be available in the next day or so as well > at the usual locations: > > The MapServer / PHP MapScript package on maptools.org: > http://maptools.org/php_mapscript/index.phtml?page=downloads.html > > Howard Butler's win32 binaries at: > http://hobu.stat.iastate.edu/mapserver/build_output/beta_4_4_0 > > Finally, I have copied below the complete list of fixes/changes since > beta2. > > Best Regards, > > Daniel > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > > > Version 4.4.0-beta3 (2004-11-22) > -------------------------------- > > - Added tests to mimimize the threat of recursion problems when > evaluating > LAYER REQUIRES or LABELREQUIRES expressions. Note that via MapScript it > is possible to circumvent that test by defining layers with problems > after running prepareImage. Other things crop up in that case too > (symbol > scaling dies) so it should be considered bad programming > practice.(bug 1059) > > - Added --with-sderaster configure option. > > - Make sure that msDrawWMSLayerLow calls msDrawLayer instead of > msDrawRasterLayerLow directly ensuring that some logic (transparency) > that > are in msDrawLayer are applied (Bug 541). > > - Force GD/JPEG outputFormatObjects to IMAGEMODE RGB and TRANSPARENT OFF > if they are RGBA or ON. Makes user error such as in bug 1703 less > likely. > > - Advertize only gd and gdal formats for wms capabilities (Bug 455). > > - Pass config option GML_FIELDTYPES=ALWAYS_STRING to OGR so that all GML > attributes are returned as strings to MapServer. This is most efficient > and prevents problems with autodetection of some attribute types. > (bug1043) > > - msOGCWKT2ProjectionObj() now uses the > OGRSpatialReference::SetFromUserInput() > method. This allows various convenient setting options, including the > ability to handle ESRI WKT by prefixing the WKT string with "ESRI::". > > - Fixed GetLegendGraphic in WMS Capabilities that were missing the '?' > or '&' separator if it was not included in wms_onlineresource (bug > 1065) > > - Updated WMS/WFS client and server code to lookup "ows_*" metadata names > in addition to the default "wms_*" (or "wfs_*") metadatas (WCS was > already > implemented this way). This reduces the amount of duplication in > mapfiles > that support multiple OGC interfaces since "ows_*" metadata can be used > almost everywhere for common metadata items shared by multiple OGC > interfaces. (bug 568) > > - Added ows_service_onlineresource metadata for WMS/WFS to distinguish > between service and GetMap/Capabilities onlineresources (bug 375) > > - Added map->setSize() to PHP MapScript (bug 1066) > > - Re-enabled building PHP MapScript using PHP's bundled regex/*.o. > This is > needed to build in an environment with PHP configured as an Apache DSO > (bugs 990, 520) > > - Fixed problem with raster dither support on windows (related to ascii > encoding pointers). (bug 722) > > - Moved PHP/SWIG MapScript layer->getExtent() logic down to > msLayerGetExtent() > to avoid code duplication (bug 1051) > > - Added SDE Raster drawing support (experimental). > > - HTML legends: Added [leg_header_html] and [leg_footer_html] (bug 1032) > > - Added "z" support in SWIG MapScript for pointObj (bug 871) > > - In PHP Mpascript when using ms_newrectobj, the members minx, miny, > maxx, maxy are initialized to -1 (Bug 788). > > - Write out proper world file with remote WMS result, it was off by half > a pixel. (Bug 1050). > > - Send a warning in the wms capabilities if the layer status is set > to default (Bug 638). > > - Fixed PHP MapScript compile warnings: dereferencing type-punned pointer > will break strict-aliasing rules (bug 1053) > > - Added $layer->isVisible() to PHP MapScript (bug 539) > > - Ported $layer->getExtent() to PHP MapScript (bug 826) > > - wms_group_abstract can now be used in the capabilities (Bug 754) > > - If wms_stylelist is an empty string, do not output the tag > for MapContexts (Bug 595). > > - Avoid passing FILE* to GD library by utilizing GD's gdIOCtx interface > (bug 1047). > > - Output warning in wms/wfs capabilities document if layer,group,map > names have > space in them (bug 486, bug 646). > > - maporaclespatial.c: fixed declarations problems (bug 1044). > > - Allow use of msOWSPrintURLType with no metadata. In this case the > default > parameters will be used (bug 1001). > > - Ensure the outputFormatObj attached to msImageLoadGDStream() results > reflect > the interlacedness of the loaded image. Also ensure that the RGB PNG > reference images work (make imagemode match gdImg) (bug 1039). > > - Fixed support for non-square pixels in WCS (bug 1014). > > - Expose only GD formats for GetLegendGraphic in the capabilities (bug > 1001). > > - Check for supported formats when process a GetLegendGraphic request > (bug 1030). > > - mapraster.c: fixed problem with leaks in tileindexed case where the > tile index is missing (bug 713). > > - Oracle Spatial: implemented connection pool support for Oracle Spatial. > New layer data parameters to support query functions, added > "using unique ". Added "FILTER", "RELATE" and > "GEOMRELATE" > parameters, now permit users to choose the Oracle Spatial Filter. > Modified > the internal SQL to always apply FILTER function. And improve the > Oracle > Spatial performance. > > - Centralize "stdout binary mode setting" for win32 in > msIO_needBinaryStdout(). > Use it when writing GDAL files to stdout in mapgdal.c. Fixes > problems with > output of binary files from GDAL outputformat drivers on win32 via > WMS/WCS. > > - MapServer now provides one default style named (default), title and > LegendURL when generating capabilities. Added also the possibility > to use > the keyword default for STYLES parameter when doing a GetMap > (..&STYLES=default,defeault,...) (bug 1001). > > - Add xlink:type="simple" in WMS MetadataURL (bug 1027). > > From dmorissette at DMSOLUTIONS.CA Mon Nov 22 09:58:41 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 22 Nov 2004 12:58:41 -0500 Subject: WFS Metadata versus connection string (envdat WFS) In-Reply-To: <200411212204.47896.tylermitchell@shaw.ca> Message-ID: Tyler Mitchell wrote: > I'm working with this WFS data: > http://map.ns.ec.gc.ca/envdat/map.aspx?service=WFS&version=1.0.0&request=GetCapabilities > > It works, but I'm a bit confused when using the data in my map file. If I put > the parameters manually into the connection string/URL, it works. But if I > put parameters like wfs_version, wfs_request into the metadata section for > the layer (and remove them from the URL) it doesn't seem to work anymore. > Are you using 4.2 or 4.4? If you are using 4.4, then wfs_* metadata should be supported (and the old method of passing everything in the CONNECTION string deprecated), but unfortunately the WFS Client HOWTO still hasn't been updated to reflect that. You may find some useful hints in bug 417: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=417 Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Mon Nov 22 10:01:13 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 22 Nov 2004 13:01:13 -0500 Subject: MapServer 4.4.0-beta3 released In-Reply-To: <41A22879.1050606@main-task.com> Message-ID: Vladimir Guzm?n wrote: > >> - Re-enabled building PHP MapScript using PHP's bundled regex/*.o. >> This is >> needed to build in an environment with PHP configured as an Apache DSO >> (bugs 990, 520) > > > That means it is possible to compile phpmapscript as an Apache DSO again? Yes, but that still hasn't been tested much. > Since what version? > This is new in 4.4.0-beta3. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From gireddy at GMAIL.COM Mon Nov 22 10:02:33 2004 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Mon, 22 Nov 2004 12:02:33 -0600 Subject: sh2mysql Message-ID: hi all, I want to download shp2mysql.pl file but the link given in Wiki is not working ( http://www.water.hut.fi/pub/Grid/Shape-0.04.tar.gz at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MySQL ). Can anybody help me, thank you. -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, Department of Computer Science, University of Alabama. http://www.cs.ua.edu/shashi Home: 205-752-5137 Cell: 205-657-1438 From Tom.Kralidis at EC.GC.CA Mon Nov 22 10:18:24 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 22 Nov 2004 13:18:24 -0500 Subject: WFS Metadata versus connection string (envdat WFS) Message-ID: > > Tyler Mitchell wrote: > > I'm working with this WFS data: > > > http://map.ns.ec.gc.ca/envdat/map.aspx?service=WFS&version=1.0.0&reque > > st=GetCapabilities > > > > It works, but I'm a bit confused when using the data in my > map file. > > If I put the parameters manually into the connection string/URL, it > > works. But if I put parameters like wfs_version, > wfs_request into the > > metadata section for the layer (and remove them from the URL) it > > doesn't seem to work anymore. > > > > Are you using 4.2 or 4.4? > > If you are using 4.4, then wfs_* metadata should be supported > (and the old method of passing everything in the CONNECTION > string deprecated), but unfortunately the WFS Client HOWTO > still hasn't been updated to reflect that. You may find some > useful hints in bug 417: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=417 Actually, I just tested this again with 4.4.0-beta2, and get the same issues Tyler has (parameters embedded in CONNECTION work, parameters as METADATA/wfs_* with no parameters in CONNECTION does not). When I try this, .gml files are written to my temp directory. Upon checking these w.r.t. this issue, they all come back as OGC service exceptions, like: "VERSION keyword missing" ..and so on. ..Tom From assefa at DMSOLUTIONS.CA Mon Nov 22 10:59:53 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 22 Nov 2004 13:59:53 -0500 Subject: WFS Metadata versus connection string (envdat WFS) In-Reply-To: <2576812186CDD411BF1500508B6DCE9507367AEE@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Note sure what the pb is. checking into this ... Tom is it possible to get your map file ? If not I will check it with test files that I have here. Kralidis,Tom [Burlington] wrote: >>Tyler Mitchell wrote: >> >>>I'm working with this WFS data: >>> >> >>http://map.ns.ec.gc.ca/envdat/map.aspx?service=WFS&version=1.0.0&reque >> >>>st=GetCapabilities >>> >>>It works, but I'm a bit confused when using the data in my >> >>map file. >> >>>If I put the parameters manually into the connection string/URL, it >>>works. But if I put parameters like wfs_version, >> >>wfs_request into the >> >>>metadata section for the layer (and remove them from the URL) it >>>doesn't seem to work anymore. >>> >> >>Are you using 4.2 or 4.4? >> >>If you are using 4.4, then wfs_* metadata should be supported >>(and the old method of passing everything in the CONNECTION >>string deprecated), but unfortunately the WFS Client HOWTO >>still hasn't been updated to reflect that. You may find some >>useful hints in bug 417: >>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=417 > > > Actually, I just tested this again with 4.4.0-beta2, and get the same > issues Tyler has (parameters embedded in CONNECTION work, parameters as > METADATA/wfs_* with no parameters in CONNECTION does not). > > When I try this, .gml files are written to my temp directory. Upon > checking these w.r.t. this issue, they all come back as OGC service > exceptions, like: > > "VERSION keyword missing" > > ..and so on. > > ..Tom > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From sctweedy at NRCAN.GC.CA Mon Nov 22 11:23:22 2004 From: sctweedy at NRCAN.GC.CA (Tweedy, Scott) Date: Mon, 22 Nov 2004 14:23:22 -0500 Subject: WMS Request Question Message-ID: I have a question about a WMS requestion respecting the STATUS parameter within a map file. I have a Mapfile that has numerous layers in it, some are initially turned on, some off using the STATUS object. The Mapfile works fine if I call it through a webpage, but if I call it using a WMS request this STATUS object seems to get ignored and all layers are turned on. Is this normal behaviour for Mapserver v. 4.3? If so is there any way around it? st Scott Tweedy Geoscience Database Analyst - Analyste de base des donn?es g?oscientifiques ESS Geoinformatics Division - Division SST G?oinformatique Earth Sciences Sector - Secteur des sciences de la terre Natural Resources Canada - Ressources naturelles Canada 580-615 Booth Street - 580-615 rue Booth Ottawa, ON Canada K1A 0E9 tel. (613) 947-0665 - t?l. (613) 947-0665 fax (613) 995-2520 - t?lc. (613) 995-2520 Email sctweedy at nrcan.gc.ca - Courriel sctweedy at nrcan.gc.ca From bartvde at XS4ALL.NL Mon Nov 22 11:29:05 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 22 Nov 2004 20:29:05 +0100 Subject: WMS Request Question In-Reply-To: <162B3F03E3AD224FA9F82DF351A15A8091D64C@S0-OTT-X10.NRCan.gc.ca> Message-ID: With WMS the client determines which layers are on by specifying the layer(s) it wants to see through the layers= parameter. So layers=A,B means it wants layer A and B displayed. Only exception is STATUS DEFAULT, which will always be on (for instance for copyright annotation). In 4.4 a warning is generated in the capabilities for this behaviour, to make sure the person who is setting up the WMS knows for sure what he/she is doing when using STATUS DEFAULT. Best regards, Bart On Mon, 22 Nov 2004 14:23:22 -0500, Tweedy, Scott wrote: > I have a question about a WMS requestion respecting the STATUS parameter > within a map file. > > I have a Mapfile that has numerous layers in it, some are initially > turned > on, some off using the STATUS object. The Mapfile works fine if I call > it > through a webpage, but if I call it using a WMS request this STATUS > object > seems to get ignored and all layers are turned on. Is this normal > behaviour > for Mapserver v. 4.3? If so is there any way around it? > > st > > Scott Tweedy > Geoscience Database Analyst - Analyste de base des donn?es > g?oscientifiques > ESS Geoinformatics Division - Division SST G?oinformatique > Earth Sciences Sector - Secteur des sciences de la terre > Natural Resources Canada - Ressources naturelles Canada > 580-615 Booth Street - 580-615 rue Booth > Ottawa, ON Canada K1A 0E9 > tel. (613) 947-0665 - t?l. (613) 947-0665 > fax (613) 995-2520 - t?lc. (613) 995-2520 > Email sctweedy at nrcan.gc.ca - Courriel sctweedy at nrcan.gc.ca > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From 39507 at MAIL.MUNI.CZ Mon Nov 22 11:41:16 2004 From: 39507 at MAIL.MUNI.CZ (=?iso-8859-2?Q?Michal_Krupi=E8ka?=) Date: Mon, 22 Nov 2004 20:41:16 +0100 Subject: OGR - abbreviation? Message-ID: Hi all, excuse me please for my stupid question, but does anyone know what exactly means abbreviation 'OGR'? I mean each letter {O, G, R}. I haven't found anything on its homepage. Thank you all for your time Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Mon Nov 22 12:37:49 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 22 Nov 2004 15:37:49 -0500 Subject: WFS Metadata versus connection string (envdat WFS) In-Reply-To: <2576812186CDD411BF1500508B6DCE9507367AEE@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tom, Ist it possible that the wfs *server* is running an older version of Mapserver (when the xml post requests were not yet supported) and that the client is runnign using a more recent version ? Later, Kralidis,Tom [Burlington] wrote: >>Tyler Mitchell wrote: >> >>>I'm working with this WFS data: >>> >> >>http://map.ns.ec.gc.ca/envdat/map.aspx?service=WFS&version=1.0.0&reque >> >>>st=GetCapabilities >>> >>>It works, but I'm a bit confused when using the data in my >> >>map file. >> >>>If I put the parameters manually into the connection string/URL, it >>>works. But if I put parameters like wfs_version, >> >>wfs_request into the >> >>>metadata section for the layer (and remove them from the URL) it >>>doesn't seem to work anymore. >>> >> >>Are you using 4.2 or 4.4? >> >>If you are using 4.4, then wfs_* metadata should be supported >>(and the old method of passing everything in the CONNECTION >>string deprecated), but unfortunately the WFS Client HOWTO >>still hasn't been updated to reflect that. You may find some >>useful hints in bug 417: >>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=417 > > > Actually, I just tested this again with 4.4.0-beta2, and get the same > issues Tyler has (parameters embedded in CONNECTION work, parameters as > METADATA/wfs_* with no parameters in CONNECTION does not). > > When I try this, .gml files are written to my temp directory. Upon > checking these w.r.t. this issue, they all come back as OGC service > exceptions, like: > > "VERSION keyword missing" > > ..and so on. > > ..Tom > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Tom.Kralidis at EC.GC.CA Mon Nov 22 12:40:15 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 22 Nov 2004 15:40:15 -0500 Subject: WFS Metadata versus connection string (envdat WFS) Message-ID: Assefa, This might the case. The server is running 4.2.0, client 4.4.0-beta2. I won't be pushing our people to update until 4.4.0 proper on the server side. ..Tom > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > Sent: Monday, 22 November, 2004 15:38 > To: Kralidis,Tom [Burlington] > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WFS Metadata versus > connection string (envdat WFS) > > > Tom, > > Ist it possible that the wfs *server* is running an older > version of > Mapserver (when the xml post requests were not yet supported) > and that > the client is runnign using a more recent version ? > > Later, > > Kralidis,Tom [Burlington] wrote: > > >>Tyler Mitchell wrote: > >> > >>>I'm working with this WFS data: > >>> > >> > >>http://map.ns.ec.gc.ca/envdat/map.aspx?service=WFS&version=1 > .0.0&reque > >> > >>>st=GetCapabilities > >>> > >>>It works, but I'm a bit confused when using the data in my > >> > >>map file. > >> > >>>If I put the parameters manually into the connection string/URL, it > >>>works. But if I put parameters like wfs_version, > >> > >>wfs_request into the > >> > >>>metadata section for the layer (and remove them from the URL) it > >>>doesn't seem to work anymore. > >>> > >> > >>Are you using 4.2 or 4.4? > >> > >>If you are using 4.4, then wfs_* metadata should be supported > >>(and the old method of passing everything in the CONNECTION > >>string deprecated), but unfortunately the WFS Client HOWTO > >>still hasn't been updated to reflect that. You may find some > >>useful hints in bug 417: > >>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=417 > > > > > > Actually, I just tested this again with 4.4.0-beta2, and > get the same > > issues Tyler has (parameters embedded in CONNECTION work, > parameters > > as > > METADATA/wfs_* with no parameters in CONNECTION does not). > > > > When I try this, .gml files are written to my temp directory. Upon > > checking these w.r.t. this issue, they all come back as OGC service > > exceptions, like: > > > > "VERSION keyword missing" > > > > ..and so on. > > > > ..Tom > > > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > From warmerdam at POBOX.COM Mon Nov 22 12:50:41 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 22 Nov 2004 15:50:41 -0500 Subject: OGR - abbreviation? In-Reply-To: <006901c4d0cb$3c2e9200$dcbf55c1@kompik> Message-ID: Michal Krupi?ka wrote: > Hi all, > excuse me please for my stupid question, but does anyone know what > exactly means abbreviation 'OGR'? I mean each letter {O, G, R}. I > haven't found anything on its homepage. > Thank you all for your time > Mike Mike, From deep in the main OGR page: --- OGR stands for "OGR"... its meaning is irrelevant today. The original name for the lib was "OpenGIS Simple Features Reference Implementation" and that's where OGR comes from. However, since OGR is not fully compliant with the Simple Feature specification and is not approved as a reference implementation of the spec the name was changed to "OGR Simple Features Library" ... and the only meaning of OGR in this name is historical. "OGR" is also the prefix used everywhere in the source of the library for class names, filenames, etc. --- In short "OpenGis Reference". But it isn't called that anymore. I would add that while I pronounce OGR "O-G-R", it is also (affectionately?) known in some circles as OGRe which is nicer now that we have the Shrek movies. Best regards, -- ---------------------------------------+-------------------------------------- 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 assefa at DMSOLUTIONS.CA Mon Nov 22 13:16:23 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 22 Nov 2004 16:16:23 -0500 Subject: WFS Metadata versus connection string (envdat WFS) In-Reply-To: <2576812186CDD411BF1500508B6DCE9507367AF8@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tom, You still can acheive what you want if you set on your layer "wfs_request_method" "GET" forcing mapserver to send a get request. I tried it your data and It seems to work. There was a small problem tough were the connection element in your demo map file for your layer was missing a trailing "?". There was no check done on this (Bug 1082 has been enered for this). Later, Kralidis,Tom [Burlington] wrote: > Assefa, > > This might the case. The server is running 4.2.0, client 4.4.0-beta2. > I won't be pushing our people to update until 4.4.0 proper on the server > side. > > ..Tom > > > >>-----Original Message----- >>From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] >>Sent: Monday, 22 November, 2004 15:38 >>To: Kralidis,Tom [Burlington] >>Cc: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] WFS Metadata versus >>connection string (envdat WFS) >> >> >>Tom, >> >> Ist it possible that the wfs *server* is running an older >>version of >>Mapserver (when the xml post requests were not yet supported) >>and that >>the client is runnign using a more recent version ? >> >>Later, >> >>Kralidis,Tom [Burlington] wrote: >> >> >>>>Tyler Mitchell wrote: >>>> >>>> >>>>>I'm working with this WFS data: >>>>> >>>> >>>>http://map.ns.ec.gc.ca/envdat/map.aspx?service=WFS&version=1 >> >>.0.0&reque >> >>>>>st=GetCapabilities >>>>> >>>>>It works, but I'm a bit confused when using the data in my >>>> >>>>map file. >>>> >>>> >>>>>If I put the parameters manually into the connection string/URL, it >>>>>works. But if I put parameters like wfs_version, >>>> >>>>wfs_request into the >>>> >>>> >>>>>metadata section for the layer (and remove them from the URL) it >>>>>doesn't seem to work anymore. >>>>> >>>> >>>>Are you using 4.2 or 4.4? >>>> >>>>If you are using 4.4, then wfs_* metadata should be supported >>>>(and the old method of passing everything in the CONNECTION >>>>string deprecated), but unfortunately the WFS Client HOWTO >>>>still hasn't been updated to reflect that. You may find some >>>>useful hints in bug 417: >>>>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=417 >>> >>> >>>Actually, I just tested this again with 4.4.0-beta2, and >> >>get the same >> >>>issues Tyler has (parameters embedded in CONNECTION work, >> >>parameters >> >>>as >>>METADATA/wfs_* with no parameters in CONNECTION does not). >>> >>>When I try this, .gml files are written to my temp directory. Upon >>>checking these w.r.t. this issue, they all come back as OGC service >>>exceptions, like: >>> >>>"VERSION keyword missing" >>> >>>..and so on. >>> >>>..Tom >>> >>> >> >> >>-- >>---------------------------------------------------------------- >>Assefa Yewondwossen >>Software Analyst >> >>Email: assefa at dmsolutions.ca >>http://www.dmsolutions.ca/ >> >>Phone: (613) 565-5056 (ext 14) >>Fax: (613) 565-0925 >>---------------------------------------------------------------- >> >> >> > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From warmerdam at POBOX.COM Mon Nov 22 13:43:10 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 22 Nov 2004 16:43:10 -0500 Subject: some issues about the mapserver map files & HTTP POST In-Reply-To: <20041122033619.76497.qmail@web53002.mail.yahoo.com> Message-ID: Nuno GIL wrote: > Dear listers, > > Sorry for this long post, but I was trying to gather > some thoughts/doubts... > After reading again the mapserver documentation, I > still have some doubts concerning the setup of a wms > server. > > OUTPUTFORMAT > I'm only providing two OUTPUTFORMATs in my map file, > however, the capabilities file specifies much more > outputs (I think all the formats supported by my > mapserver). If it understands the supported > OUTPUTFORMATs why do we need to include them in the > map file? Is there any way of limiting the > OUTPUTFORMATs to the ones I want instead of the ones > supported by mapserver? Nuno, I do not believe there is a way of limiting the available formats, though Assefa has added logic for the 4.4b3 release so that non raster formats (like html, swf) are not listed in WMS capabilities. There is discussion of providing an explicit way of controlling the exposed formats but it would not be done by 4.4 release. BTW, it can still be useful to define custom outputformats even for formats that have a define output format definition. The custom versions can use different options for transparency, render mode (ie. RGB vs. RGBA), interlacing and so forth. > PROJECTION > I am still a bit confused with the PROJECTION object. > I suppose that by declaring a PROJECTION object on the > map file I am defining the supported output > projections of the server and by declaring the > projection inside each layer I am defining the > original current projection of the data. Is that > correct? I believe the "map" projection is not used in WMS, unless it is a default when no SRS parameter is given. > TRANSPARENCY > At the moment, the transparency of each layer of my > wms is on and defined with OFFSITE. I would like to > turn TRANSPARENCY on or off accordingly to the html > wms user request. How can I do this? I don't really follow this. Note that the TRANSPARENCY flag for layer affects how it is overlayed on previous layers and is, I believe, a blending value from 0 to 100, not an off/on flag like the transparency flag passed in the WMS request. Best regards, -- ---------------------------------------+-------------------------------------- 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 39507 at MAIL.MUNI.CZ Mon Nov 22 14:09:29 2004 From: 39507 at MAIL.MUNI.CZ (=?iso-8859-2?Q?Michal_Krupi=E8ka?=) Date: Mon, 22 Nov 2004 23:09:29 +0100 Subject: OGR - abbreviation? Message-ID: Hi, ----- Original Message ----- From: "Frank Warmerdam" To: Sent: Monday, November 22, 2004 9:50 PM Subject: Re: [UMN_MAPSERVER-USERS] OGR - abbreviation? > Mike, > > From deep in the main OGR page: > > --- > OGR stands for "OGR"... its meaning is irrelevant today. The original name > for the lib was "OpenGIS Simple Features Reference Implementation" and that's > where OGR comes from. However, since OGR is not fully compliant with the Simple > Feature specification and is not approved as a reference implementation of the > spec the name was changed to "OGR Simple Features Library" ... and the only > meaning of OGR in this name is historical. "OGR" is also the prefix used > everywhere in the source of the library for class names, filenames, etc. > --- Thank you very much. It seems I am blind or my brain doesn't work as I expect... i saw it on that page, but... I am sorry for your wasted time. Mike From Timothy.Mackey at GA.GOV.AU Mon Nov 22 14:10:11 2004 From: Timothy.Mackey at GA.GOV.AU (Tim Mackey) Date: Tue, 23 Nov 2004 09:10:11 +1100 Subject: Changing template "on-the-fly" Message-ID: Hi Daniele, You will need to add "TEMPLATEPATTERN" to the "MAP" part of the map file: http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#map A line like this means "allow any template" TEMPLATEPATTERN ".*" A line like this means all any template where the file name contains ".html" (a bit more secure) TEMPLATEPATTERN ".html" If you don't have a "TEMPLATEPATTERN, then "&map_web_template=..." will not work. Regards, Tim Mackey Geoscience Australia -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniele Margotti Sent: Monday, 22 November 2004 10:43 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Changing template "on-the-fly" Hi list, I use CGI MapServer and I know that I can change "on-the-fly" parameter values of a mapfile using "&map_VARIABLE=NEW VALUE" in the browser address. Now, I want to change the template, and I thought I could use "&map_web_template=/path_to_my_data/new_template.html", but... MapServer still uses the template defined in the mapfile. How can I do? Thanks, Daniele From yecarrillo at YAHOO.COM Mon Nov 22 14:55:39 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Mon, 22 Nov 2004 16:55:39 -0600 Subject: WMS and 21892 srs namespace Message-ID: I configure my map with 21892 epsg code accordingly with epsg codes file (Bogota 1975 / Colombia Bogota zone) . WMS server response is: msWMSLoadGetMapParams(): Unsupporte SRS namespace (only EPSG and AUTO currently supported). MapServer version 4.2.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE MapFile: METADATA wms_extent "940000.00000000 1120000.00000000 1211820.35394300 1400000.00000000" wms_abstract "** Gix Generated MapFile" wms_encoding "ISO-8859-1" wms_opaque "1" wms_accesscontraints "none" wms_addresstype "" wms_address "" wms_city "" wms_stateorprovince "" wms_postcode "" wms_country "" wms_contactelectronicmailaddress "" wms_contactfacsimiletelephone "" wms_contactperson "" wms_contactorganization "" wms_contactposition "" wms_contactvoicetelephone "" wms_feature_info_mime_type "NONE" wms_fees "none" # wms_group_title "" wms_keywordlist "Prueba" wms_title "Prueba" wms_timeformat "YYYY-MM-DDTHH, YYYY-MM-DDTHH:MM, YYYY-MM-DD HH:MM:SS" wms_onlineresource "http://localhost/cgi-bin/mapserv?map=/mapas/Prueba.map&" wms_srs "21892" wfs_onlineresource "http://localhost/cgi-bin/mapserv?map=/mapas/Prueba.map&" END ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From Tom.Kralidis at EC.GC.CA Mon Nov 22 14:59:14 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 22 Nov 2004 17:59:14 -0500 Subject: WMS and 21892 srs namespace Message-ID: > > > I configure my map with 21892 epsg code accordingly with epsg > codes file (Bogota 1975 / Colombia Bogota zone) . WMS server > response is: > > msWMSLoadGetMapParams(): Unsupporte SRS namespace (only EPSG > and AUTO currently supported). > > MapServer version 4.2.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > MapFile: > > METADATA > wms_extent "940000.00000000 > 1120000.00000000 > 1211820.35394300 1400000.00000000" > wms_abstract "** Gix Generated MapFile" > wms_encoding "ISO-8859-1" > wms_opaque "1" > wms_accesscontraints "none" > wms_addresstype "" > wms_address "" > wms_city "" > wms_stateorprovince "" > wms_postcode "" > wms_country "" > wms_contactelectronicmailaddress "" > wms_contactfacsimiletelephone "" > wms_contactperson "" > wms_contactorganization "" > wms_contactposition "" > wms_contactvoicetelephone "" > wms_feature_info_mime_type "NONE" > wms_fees "none" > # wms_group_title "" > wms_keywordlist "Prueba" > wms_title "Prueba" > wms_timeformat "YYYY-MM-DDTHH, > YYYY-MM-DDTHH:MM, > YYYY-MM-DD HH:MM:SS" > wms_onlineresource > "http://localhost/cgi-bin/mapserv?map=/mapas/Prueba.map&" > wms_srs "21892" > wfs_onlineresource > "http://localhost/cgi-bin/mapserv?map=/mapas/Prueba.map&" > END > All "wms_srs" values must have the "EPSG" or "AUTO" prefix, i.e.: "wms_srs" "EPSG:21892" Cheers ..Tom From assefa at DMSOLUTIONS.CA Mon Nov 22 15:04:25 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 22 Nov 2004 18:04:25 -0500 Subject: WMS and 21892 srs namespace In-Reply-To: <20041122225539.4350.qmail@web12202.mail.yahoo.com> Message-ID: You should use something like "wms_srs" "espg:21892" Eduin Carrillo wrote: > I configure my map with 21892 epsg code accordingly with epsg codes file > (Bogota 1975 / Colombia Bogota zone) . WMS server response is: > > msWMSLoadGetMapParams(): Unsupporte SRS namespace (only EPSG and AUTO currently > supported). > > MapServer version 4.2.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > MapFile: > > METADATA > wms_extent "940000.00000000 1120000.00000000 > 1211820.35394300 1400000.00000000" > wms_abstract "** Gix Generated MapFile" > wms_encoding "ISO-8859-1" > wms_opaque "1" > wms_accesscontraints "none" > wms_addresstype "" > wms_address "" > wms_city "" > wms_stateorprovince "" > wms_postcode "" > wms_country "" > wms_contactelectronicmailaddress "" > wms_contactfacsimiletelephone "" > wms_contactperson "" > wms_contactorganization "" > wms_contactposition "" > wms_contactvoicetelephone "" > wms_feature_info_mime_type "NONE" > wms_fees "none" > # wms_group_title "" > wms_keywordlist "Prueba" > wms_title "Prueba" > wms_timeformat "YYYY-MM-DDTHH, YYYY-MM-DDTHH:MM, > YYYY-MM-DD HH:MM:SS" > wms_onlineresource > "http://localhost/cgi-bin/mapserv?map=/mapas/Prueba.map&" > wms_srs "21892" > wfs_onlineresource > "http://localhost/cgi-bin/mapserv?map=/mapas/Prueba.map&" > END > > ===== > Eduin Yesid Carrillo Vega > yecarrillo at yahoo.com > COLOMBIA > > _________________________________________________________ > Do You Yahoo!? > Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. > Vis?tanos en http://noticias.espanol.yahoo.com > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Tom.Kralidis at EC.GC.CA Mon Nov 22 15:15:30 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 22 Nov 2004 18:15:30 -0500 Subject: FW: Mapfile metadata escaping params Message-ID: Hi, I have some values like: "wms_abstract" "this is my "abstract"" ...which render parsing errors. Is it possible to 'escape' these in the mapfile? I've tried: "wms_abstract" "this is my \"abstract\"" ..with no success. Any ideas? Thanks ..Tom From yecarrillo at YAHOO.COM Mon Nov 22 15:20:01 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Mon, 22 Nov 2004 17:20:01 -0600 Subject: FW: Mapfile metadata escaping params In-Reply-To: <2576812186CDD411BF1500508B6DCE9507367AFE@ecnwri1.ontario.int.ec.gc.ca> Message-ID: --- "Kralidis,Tom [Burlington]" escribi?: > Hi, > > I have some values like: > > "wms_abstract" "this is my "abstract"" > > ...which render parsing errors. > > Is it possible to 'escape' these in the mapfile? I've tried: > > "wms_abstract" "this is my \"abstract\"" > > ..with no success. > > Any ideas? > > Thanks > > ..Tom > Try: "wms_abstract" "this is my "abstract"" Maybe works ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From yecarrillo at YAHOO.COM Mon Nov 22 15:22:28 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Mon, 22 Nov 2004 17:22:28 -0600 Subject: FW: Mapfile metadata escaping params In-Reply-To: <2576812186CDD411BF1500508B6DCE9507367AFE@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Sorry. Mail client removes the chars: Replace quotes with: &-#34; Remove the '-' ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From Tom.Kralidis at EC.GC.CA Mon Nov 22 19:05:27 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 22 Nov 2004 22:05:27 -0500 Subject: FW: Mapfile metadata escaping params Message-ID: > > Kralidis,Tom [Burlington] wrote: > > Hi, > > > > I have some values like: > > > > "wms_abstract" "this is my "abstract"" > > > > ...which render parsing errors. > > > > Is it possible to 'escape' these in the mapfile? I've tried: > > > > "wms_abstract" "this is my \"abstract\"" > > > > ..with no success. > > Tom, > > The .map file allows quoting with either single or double > quotes. So when I want double quotes in a string I quote with > single quotes. > > "wms_abstract" 'this is my "abstract"' > > I don't know what I would do if I needed both single and > double quotes in a string. It seems like backslash escape, > or at least some mechanism, should be enabled. > That's exactly what I need. I'm encoding a metadata value which has both. I tried the somewhat predicatable "\" escape, but no go. Looks like this will get address in 4.6, though. ..Tom From Tom.Kralidis at EC.GC.CA Mon Nov 22 15:36:52 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 22 Nov 2004 18:36:52 -0500 Subject: FW: Mapfile metadata escaping params Message-ID: > > > Sorry. Mail client removes the chars: > > Replace quotes with: &-#34; Remove the '-' That doesn't seem to work either. ..Tom From dmorissette at DMSOLUTIONS.CA Mon Nov 22 15:37:00 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 22 Nov 2004 18:37:00 -0500 Subject: FW: Mapfile metadata escaping params In-Reply-To: <2576812186CDD411BF1500508B6DCE9507367AFE@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Kralidis,Tom [Burlington] wrote: > > Is it possible to 'escape' these in the mapfile? I've tried: > > "wms_abstract" "this is my \"abstract\"" > > ..with no success. > Short answer: no. A few ideas have been discussed in bug 681, but nothing has been implemented yet: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=681 Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From warmerdam at POBOX.COM Mon Nov 22 18:49:26 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 22 Nov 2004 21:49:26 -0500 Subject: FW: Mapfile metadata escaping params In-Reply-To: <2576812186CDD411BF1500508B6DCE9507367AFE@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Kralidis,Tom [Burlington] wrote: > Hi, > > I have some values like: > > "wms_abstract" "this is my "abstract"" > > ...which render parsing errors. > > Is it possible to 'escape' these in the mapfile? I've tried: > > "wms_abstract" "this is my \"abstract\"" > > ..with no success. Tom, The .map file allows quoting with either single or double quotes. So when I want double quotes in a string I quote with single quotes. "wms_abstract" 'this is my "abstract"' I don't know what I would do if I needed both single and double quotes in a string. It seems like backslash escape, or at least some mechanism, should be enabled. Best regards, -- ---------------------------------------+-------------------------------------- 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 tylermitchell at SHAW.CA Mon Nov 22 21:38:39 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 22 Nov 2004 21:38:39 -0800 Subject: WFS Metadata versus connection string (envdat WFS) In-Reply-To: <41A228D1.6040804@dmsolutions.ca> Message-ID: > > It works, but I'm a bit confused when using the data in my map file. If > > I put the parameters manually into the connection string/URL, it works. > > But if I put parameters like wfs_version, wfs_request into the metadata > > section for the layer (and remove them from the URL) it doesn't seem to > > work anymore. > > Are you using 4.2 or 4.4? I'm using 4.4b3, actually I just grabbed from CVS tonight. > If you are using 4.4, then wfs_* metadata should be supported (and the I hear ya. Tom confirmed this WFS works at his end with the expected settings. I'm still getting stumped though, getting the message: " msDrawMap(): Image handling error. Failed to draw layer named 'wfs_test'. msWFSLayerWhichShapes(): WFS connection error. WFS request produced unexpected output (junk?) for layer wfs_test. " What I've found is that the temp GML file is actually a MapServer error message, what do you make of this: MapServer Message mapserv(): Web application error. No template provided.
From tylermitchell at SHAW.CA Mon Nov 22 21:42:41 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 22 Nov 2004 21:42:41 -0800 Subject: WFS Metadata versus connection string (envdat WFS) In-Reply-To: <41A25727.6000002@dmsolutions.ca> Message-ID: Ooops, just getting caught up on email and found this solution. Thanks for this Assefa-now I understand what you were talking about in the bug. Things are resolved on the WFS front me now. Tyler On November 22, 2004 01:16 pm, Yewondwossen Assefa wrote: > Tom, > > You still can acheive what you want if you set on your layer > "wfs_request_method" "GET" forcing mapserver to send a get request. I > tried it your data and It seems to work. There was a small problem tough > were the connection element in your demo map file for your layer was > missing a trailing "?". There was no check done on this (Bug 1082 has > been enered for this). > > Later, > > Kralidis,Tom [Burlington] wrote: > > Assefa, > > > > This might the case. The server is running 4.2.0, client 4.4.0-beta2. > > I won't be pushing our people to update until 4.4.0 proper on the server > > side. > > > > ..Tom > > > >>-----Original Message----- > >>From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > >>Sent: Monday, 22 November, 2004 15:38 > >>To: Kralidis,Tom [Burlington] > >>Cc: MAPSERVER-USERS at LISTS.UMN.EDU > >>Subject: Re: [UMN_MAPSERVER-USERS] WFS Metadata versus > >>connection string (envdat WFS) > >> > >> > >>Tom, > >> > >> Ist it possible that the wfs *server* is running an older > >>version of > >>Mapserver (when the xml post requests were not yet supported) > >>and that > >>the client is runnign using a more recent version ? > >> > >>Later, > >> > >>Kralidis,Tom [Burlington] wrote: > >>>>Tyler Mitchell wrote: > >>>>>I'm working with this WFS data: > >>>> > >>>>http://map.ns.ec.gc.ca/envdat/map.aspx?service=WFS&version=1 > >> > >>.0.0&reque > >> > >>>>>st=GetCapabilities > >>>>> > >>>>>It works, but I'm a bit confused when using the data in my > >>>> > >>>>map file. > >>>> > >>>>>If I put the parameters manually into the connection string/URL, it > >>>>>works. But if I put parameters like wfs_version, > >>>> > >>>>wfs_request into the > >>>> > >>>>>metadata section for the layer (and remove them from the URL) it > >>>>>doesn't seem to work anymore. > >>>> > >>>>Are you using 4.2 or 4.4? > >>>> > >>>>If you are using 4.4, then wfs_* metadata should be supported > >>>>(and the old method of passing everything in the CONNECTION > >>>>string deprecated), but unfortunately the WFS Client HOWTO > >>>>still hasn't been updated to reflect that. You may find some > >>>>useful hints in bug 417: > >>>>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=417 > >>> > >>>Actually, I just tested this again with 4.4.0-beta2, and > >> > >>get the same > >> > >>>issues Tyler has (parameters embedded in CONNECTION work, > >> > >>parameters > >> > >>>as > >>>METADATA/wfs_* with no parameters in CONNECTION does not). > >>> > >>>When I try this, .gml files are written to my temp directory. Upon > >>>checking these w.r.t. this issue, they all come back as OGC service > >>>exceptions, like: > >>> > >>>"VERSION keyword missing" > >>> > >>>..and so on. > >>> > >>>..Tom > >> > >>-- > >>---------------------------------------------------------------- > >>Assefa Yewondwossen > >>Software Analyst > >> > >>Email: assefa at dmsolutions.ca > >>http://www.dmsolutions.ca/ > >> > >>Phone: (613) 565-5056 (ext 14) > >>Fax: (613) 565-0925 > >>---------------------------------------------------------------- > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- From smichas at HYDROEX.GR Mon Nov 22 22:32:03 2004 From: smichas at HYDROEX.GR (Spyros Michas) Date: Tue, 23 Nov 2004 00:32:03 -0600 Subject: sh2mysql Message-ID: There is a shp2mysql.pl script in every distribution of mapserver. Look into your tar file and you will find one, unless you have a very old version Spyros Michas Athens, Greece From joseluismapserver at YAHOO.ES Tue Nov 23 01:44:05 2004 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Tue, 23 Nov 2004 10:44:05 +0100 Subject: mapserver java servlets Message-ID: Hi to all I would implement mapserver in tomcat as servlet but I have found a lot of problems in start with it! So: 1) is there sites that implement mapserver as servlet in tomcat that I can view? 2) Some one have a piece of basic code that I can compile as servlet in tomcat for view how it run? I have load the java Howto. Do you have examples so I can see how can I work with mapserver functions and servlets? I have been seeing the wiki, but I can not really find what I want. I have done the example of loading a library that apears in: http://www.unicolet.org/mapserver/tomcat.html and it works, but when I want to complete the JavaMapscript.java code with other mapserver comands, it doesn't work: import edu.umn.gis.mapscript.*; public class JavaMapscript { private static JavaMapscript instance=null; private JavaMapscript() { try { System.loadLibrary("mapscript"); } catch (Exception e) { e.printStackTrace(); System.err.println("* error loading native library *"); System.err.println("Error is: "+e); } System.out.println(" * mapscript native library loaded *"); mapObj map = new mapObj("test.map"); imageObj img = map.draw(); //img.save("result", map);*/ } public static JavaMapscript getInstance() { System.out.println("Try to instantiate Mapscript"); System.out.flush(); if ( instance == null ) { instance = new JavaMapscript(); } return instance; } } And even worse, when I do any modifications and I put the new .class file in the server, I have an error because it says that the library was already loaded, and my only solution now to solve it is to turn off the server and turn it on again. Hope someone can help me Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mercutio at POBOX.COM Tue Nov 23 02:31:48 2004 From: mercutio at POBOX.COM (Aaron Craig) Date: Tue, 23 Nov 2004 11:31:48 +0100 Subject: MapScript - Parsing templates Message-ID: I am just jumping into using MapScript (Perl) with MapServer. First of all, am I mistaken in thinking that if you use MapScript you must re-implement most of the functionality of the mapserv cgi program that comes with the mapserver package? Or is there a way to reuse some of that functionality? Specifically, I'm interested in getting the templates parsed with the variable strings (ie [variable_name]) replaced. It wouldn't be difficult to re-implement this in Perl, but it seems such a useful and common thing, that I wonder if the API already offers this functionality or if there's already a package that does it. I've looked at the API documentation but didn't find anything that looked hopeful. Thanks -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== From stephane.riff at CERENE.FR Tue Nov 23 03:12:55 2004 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Tue, 23 Nov 2004 12:12:55 +0100 Subject: Postgis point table Message-ID: I have a postgis point table, display GPS coordinate in WGS84. It works well with mapserver. But now i'd like to show those points in a LINE type layer with mapserver but i can't figure how to do it : i've tried this in mapfile : DATA "geometryfromtext(replace(astext(geomunion(geom)),'MULTIPOINT(','LINESTRING('),4326) from ;" but mapserver failed to draw the layer. Does somebody already do something like that ??? Thanks From temiz at DEPREM.GOV.TR Tue Nov 23 02:59:05 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Tue, 23 Nov 2004 12:59:05 +0200 Subject: reference map coordinates Message-ID: hello As I am dealing with reference map, I need to use javascript to get image coordinates of reference map. But I get different values from 0 as minimum x and y. How can I transfer minimum image coordinates to zero. Subtraction by hand gives wrong results in different browser. Is there any javascript command to do this ? kind regards Ahmet Temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From edspremolla at ANTEL.COM.UY Tue Nov 23 04:32:27 2004 From: edspremolla at ANTEL.COM.UY (Eduardo Spremolla) Date: Tue, 23 Nov 2004 10:32:27 -0200 Subject: Postgis point table In-Reply-To: <41A31B37.80203@cerene.fr> Message-ID: I never see how to tell postgis to convert a bunch of point into a polyline. You have to do it with mapscript. After you collect the point, do something like this: my $point = new mapscript::pointObj(); my $line = new mapscript::lineObj(); $layer = $map->getLayerByName('gps_route'); foreach my $q(@gps_points) { $point-> { x} = $q-> { lon}; $point-> { y} = $q-> { lat}; $line->add($point); } my $shape = new mapscript::shapeObj($mapscript::MS_SHAPE_LINE); $shape->add($line); $shape->draw($map, $layer, $img); $map->drawLabelCache($img); $img->saveImage($image_path.$image_id, $map-> { imagetype} , $map-> { transparent} , $map-> { interlace} , $map-> { imagequality}); $img=$map->drawScalebar(); $img->saveImage($image_path.$scalebar_id, $map-> { imagetype} , $map-> { transparent} , $map-> { interlace} , $map-> { imagequality}); I hope it helps. El mar, 23-11-2004 a las 09:12, St?phane RIFF escribi?: > I have a postgis point table, display GPS coordinate in WGS84. > It works well with mapserver. > But now i'd like to show those points in a LINE type layer with mapserver > but i can't figure how to do it : > > i've tried this in mapfile : > > DATA > "geometryfromtext(replace(astext(geomunion(geom)),'MULTIPOINT(','LINESTRING('),4326) > from ;" > > but mapserver failed to draw the layer. > Does somebody already do something like that ??? > Thanks -- Eduardo Spremolla Antel I+D From j_wenke at YAHOO.DE Tue Nov 23 04:37:43 2004 From: j_wenke at YAHOO.DE (wenke) Date: Tue, 23 Nov 2004 13:37:43 +0100 Subject: ms4w-installation: win98se-shutdown problem Message-ID: Hi, when I want to close win98se, I always get the error, that apache an php is still running. I think, I installed it as service. But now I (have to) put it out of the autostart-system-configuration. Anybody knows, what I have to change in any config-file, so that win is working normaly again?? Thanks for help, joerg start C:\ms4w\Apache\bin\apache.exe -n ApacheWebServer -k runservice (default) stop C:\ms4w\Apache\bin\apache.exe -k shutdown (default) monitor C:\ms4w\Apache\bin\ApacheMonitor.exe (default) ms4w Revision 1.02 |2004/07/21 * Apache 2.0.50 * PHP 4.3.7 From bluecarto at FREE.FR Tue Nov 23 05:10:11 2004 From: bluecarto at FREE.FR (GIRAUD Pierre) Date: Tue, 23 Nov 2004 14:10:11 +0100 Subject: SWF output developpement history and plan question Message-ID: Hi, Looking at the mapserver changelog text file, one can see that there has actually been no real update for swf output since the early 2003. Is there any reason for that : - no customer's demand needing that developpement ? - no improvements, upgrades of the ming library ? - no great interests to use flash outputs (MapServer/Ming performances, heavy files, ...) ? - technical limits ? - ... Thx Pierre GIRAUD camptocamp.com From lfilak at MEDINACO.ORG Tue Nov 23 05:15:56 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 23 Nov 2004 08:15:56 -0500 Subject: MapScript - Parsing templates Message-ID: The following message was sent by Aaron Craig on Tue, 23 Nov 2004 11:31:48 +0100. > I am just jumping into using MapScript (Perl) with MapServer. > > First of all, am I mistaken in thinking that if you use MapScript you > must re-implement most of the functionality of the mapserv cgi program > that comes with the mapserver package? Or is there a way to reuse some > of that functionality? > > Specifically, I'm interested in getting the templates parsed with the > variable strings (ie [variable_name]) replaced. > > It wouldn't be difficult to re-implement this in Perl, but it seems such > a useful and common thing, that I wonder if the API already offers this > functionality or if there's already a package that does it. > > I've looked at the API documentation but didn't find anything that > looked hopeful. > Aaron, The map->processTemplate will do what you want but not until the next release (at least for Perl). Currently there is at least one typemap missing to allow the method to work correctly. I was unable to get the changes made in time for 4.4 . Lowell From jmckenna at DMSOLUTIONS.CA Tue Nov 23 06:01:28 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 23 Nov 2004 09:01:28 -0500 Subject: next Ottawa-MapServer user meeting Message-ID: Hello everyone, This is a short invite to all MapServer users in the Ottawa (Ontario, Canada) region. The next Ottawa-MapServer user group meeting will take place a week from today (Tues Nov 30th). This will be an informal gathering after work hours (in a bar) and an excellent way to meet other MapServer users in the area. Here are the specific details of the meeting: Time: Tues Nov 30th, 6pm (for about an hour or so) Location: Patty's Pub (1186 Bank Street, corner of Ossington Ave and Bank, Ottawa South) Internet: wireless provided Parking: available in sidestreets Food: wing night (cheap wings!) Agenda: very informal gathering, topics include: 1) demo: Xiaoyuan Geng from Agriculture Canada has volunteered to show their work on GeoLinking and GDAS related geoprocessing (titled "Dynamically generate WMS using GDAS xml streams") 2) demo: Dean Gadoury from DM Solutions has volunteered to show the Gulf of Maine Mapping Portal, a system recently developed using the Chameleon service instance to allow organizations to easily publish data for other members, or build their own mapping applications. 3) open discussion: MUM3/OSGIS, mapserver 4.4 changes, .... There is a mailing list for this group, and you can join at: http://lists.dmsolutions.ca/mailman/listinfo/mapserver-ottawa A small website also exists for this group: http://www.omsug.ca/ We hope to see you out at this next meeting! jeff -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca From James.Shanton2 at NSCORP.COM Tue Nov 23 06:07:29 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Tue, 23 Nov 2004 09:07:29 -0500 Subject: jBox - Returning Grey Image instead of Map Message-ID: I'm trying to get jBox to work, but all it is returning is grey where the map image used to be. The maps are being generated in my tmp directory, but they just do not show up. I'm using Windows XP, and IE 6.0 I've added my code below. Thanks! Jim Shanton Here is what I get when I view the source... the resulting image path is a valid one. codebase='/java/jbox' archive='jBox.jar' code='jBox.class' width='600' height='496' name='jBox' MAYSCRIPT> From ealpert at DIGITALGLOBE.COM Tue Nov 23 06:35:15 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 23 Nov 2004 07:35:15 -0700 Subject: jBox - Returning Grey Image instead of Map Message-ID: Unfortunately that's what it looks like when you've made a mistake. There are several things that could go wrong. The most important thing to do is try to figure out what the URL you're passing to the mapserv executable. Look in your httpd logs. Take that URL and type it into your browser with mode=map. If that works and returns an image of what you expect then the problem is most likely a path problem (imagepath,imageurl,etc). If it doesn't work you should get an error message or another blank image. If you get a blank image with mode=map then your extents, projections, paths to your data or mapfile have a problem. Finally if there's nothing in your httpd log then it's likely you have your initial URL wrong. -e ________________________________ From: UMN MapServer Users List on behalf of Shanton, James A Sent: Tue 11/23/2004 7:07 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] jBox - Returning Grey Image instead of Map I'm trying to get jBox to work, but all it is returning is grey where the map image used to be. The maps are being generated in my tmp directory, but they just do not show up. I'm using Windows XP, and IE 6.0 I've added my code below. Thanks! Jim Shanton Here is what I get when I view the source... the resulting image path is a valid one. codebase='/java/jbox' archive='jBox.jar' code='jBox.class' width='600' height='496' name='jBox' MAYSCRIPT> -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Shanton2 at NSCORP.COM Tue Nov 23 07:18:56 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Tue, 23 Nov 2004 10:18:56 -0500 Subject: jBox - Returning Grey Image instead of Map Message-ID: I've noticed that I'm getting this message when I run my mouse over the window. Exception: com.ms.security.SecurityExceptionEx[jBox.get_image]: unable to check hostname "itraxdev.nscorp.comhttp". This is my hostname: "jimbobmap.comhttp" . But it is being appended with 'http' Where is that http coming from ? Jim -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Tuesday, November 23, 2004 9:35 AM To: Shanton, James A; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] jBox - Returning Grey Image instead of Map Unfortunately that's what it looks like when you've made a mistake. There are several things that could go wrong. The most important thing to do is try to figure out what the URL you're passing to the mapserv executable. Look in your httpd logs. Take that URL and type it into your browser with mode=map. If that works and returns an image of what you expect then the problem is most likely a path problem (imagepath,imageurl,etc). If it doesn't work you should get an error message or another blank image. If you get a blank image with mode=map then your extents, projections, paths to your data or mapfile have a problem. Finally if there's nothing in your httpd log then it's likely you have your initial URL wrong. -e _____ From: UMN MapServer Users List on behalf of Shanton, James A Sent: Tue 11/23/2004 7:07 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] jBox - Returning Grey Image instead of Map I'm trying to get jBox to work, but all it is returning is grey where the map image used to be. The maps are being generated in my tmp directory, but they just do not show up. I'm using Windows XP, and IE 6.0 I've added my code below. Thanks! Jim Shanton Here is what I get when I view the source... the resulting image path is a valid one. codebase='/java/jbox' archive='jBox.jar' code='jBox.class' width='600' height='496' name='jBox' MAYSCRIPT> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Tue Nov 23 07:52:22 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 23 Nov 2004 10:52:22 -0500 Subject: SWF output developpement history and plan question In-Reply-To: <41A336B3.4070705@free.fr> Message-ID: I guess It is a combination of the things that you listed, the main reason being that no customers/users have showed interest in finacing improvements/additions to the module. We try to maintain the module to an accptable level and do major bug corrections but no major development is scheduled AFAIK. Best Regards, GIRAUD Pierre wrote: > Hi, > > Looking at the mapserver changelog text file, one can see that there has > actually been no real update for swf output since the early 2003. > > Is there any reason for that : > - no customer's demand needing that developpement ? > - no improvements, upgrades of the ming library ? > - no great interests to use flash outputs (MapServer/Ming performances, > heavy files, ...) ? > - technical limits ? > - ... > > Thx > > Pierre GIRAUD > camptocamp.com > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Micheal.Arnold at NSCORP.COM Tue Nov 23 08:08:55 2004 From: Micheal.Arnold at NSCORP.COM (Arnold, Micheal B.) Date: Tue, 23 Nov 2004 11:08:55 -0500 Subject: wms layer zoom question Message-ID: I am having some difficulty with a WMS layer. I am retrieving topo maps from teraserver. I have added the minvalue entry to my mapfile so that I don't get errors if someone tries to zoom in too far. My problem is that these topo maps are only being displayed at a very specific scale. If someone zooms out at all, the topo will not display. I don't get any error messages, but that layer isn't shown at all. I tried messing around with MAXSCALE, but couldn't get it to work. I will paste the layer definition below. Thanks in advance for any suggestions. LAYER NAME topo METADATA "wms_title" "USGS Digital Topograph" "wms_srs" "EPSG:26917" "wms_name" "DRG" END GROUP "TOPOG DATA" STATUS ON TYPE RASTER MINSCALE 7500 #MAXSCALE 8000000 CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DRG&FO RMAT=jpeg&styles=" PROJECTION "init=epsg:26917" END END - Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcastil1 at TRAGSA.ES Tue Nov 23 08:19:00 2004 From: jcastil1 at TRAGSA.ES (Javier Castillejo Montes) Date: Tue, 23 Nov 2004 17:19:00 +0100 Subject: SWF output developpement history and plan question Message-ID: Hi there I don't know so much about the improvements/additions to hte swf module... even more I don't know so much about Falsh, but here at my office we are trying to develop an app using mapserver whit the swf output. We are not working full time on "mapserver-swf" 'cos our manager want first "mapserver/html" ended and ready to work. But our next step is to work with "mapserver-swf" (... actually I'm working in both ... :-) ) We don't know all the difficulties we will find due to our "non-experience" in flash but what it's sure is that we will attempt it. We are really interested in try with "mapserver-swf" as it provides us some usefull way to work with and our workers will be happy if we resolve our needs through "mapserver-swf". Our mapserver-html interface is quite nice, but when we showed our smalls progress in mapserver-swf, the mapserver-html option decrease in relevance. I know that we are only one user, but we will need help on this... so much help I think as they are not going to give us any kind of "flash curse" :-/, as usual Any way... we will try. In fact we have one big problem not resolve yet, we work with "air photos", high quality. But we cannot show them with "swfoutput"(the quality is very poor) so we have will calculate the next scale that the user has selected and change the output format to "jpgoutput". I asked it before, I think. Resuming, we will try with a full-time mapserver-swf attempt in the next two weeks. Idon't know if it's relevant but we use Oracle_Spatial which has some others problems wity the "DATA" statement in the map file as far as I can remember, for example. Best Regards Javier -----Mensaje original----- De: Yewondwossen Assefa [mailto:assefa at DMSOLUTIONS.CA] Enviado el: martes, 23 de noviembre de 2004 16:52 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: Re: [UMN_MAPSERVER-USERS] SWF output developpement history and plan question I guess It is a combination of the things that you listed, the main reason being that no customers/users have showed interest in finacing improvements/additions to the module. We try to maintain the module to an accptable level and do major bug corrections but no major development is scheduled AFAIK. Best Regards, GIRAUD Pierre wrote: > Hi, > > Looking at the mapserver changelog text file, one can see that there has > actually been no real update for swf output since the early 2003. > > Is there any reason for that : > - no customer's demand needing that developpement ? > - no improvements, upgrades of the ming library ? > - no great interests to use flash outputs (MapServer/Ming performances, > heavy files, ...) ? > - technical limits ? > - ... > > Thx > > Pierre GIRAUD > camptocamp.com > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From bartvde at XS4ALL.NL Tue Nov 23 08:36:31 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 23 Nov 2004 17:36:31 +0100 Subject: problem with postGIS and WMS capabilities if wms_extent not defined In-Reply-To: Message-ID: Hi list, All below-mentioned problems are solved in 4.4 beta3, good work :) Thanks. Best regards, Bart On Fri, 19 Nov 2004 22:20:35 +0100, Bart van den Eijnden wrote: > Hi Daniel, > > yes, both 4.2 and 4.3 binaries work. > > Also GetMap requests work with a 4.3 or 4.2 binary, but the 4.4 beta2 > gives an internal server error. > > [Fri Nov 19 22:28:34 2004] [error] [client 192.168.3.4] Premature end of > script headers: mapserv.exe > > So there seems to be something wrong with the PostGIS support in that > one whenever it needs to go to the database for information. Anybody > else experiencing this, or is it my specific setup? > > When will a 4.4 beta3 binary be released on maptools? As we never > compile with PostGIS support unfortunately .... :( > > Best regards, > Bart > > On Fri, 19 Nov 2004 16:10:23 -0500, Daniel Morissette > wrote: > >> Bart van den Eijnden wrote: >>> Hi list, >>> >>> I have a PostGIS layer in my MAP file and I am using the 4.4 beta2 >>> windows >>> binary from maptools.org. I am on Windows 2000 server. >>> >>> If I don't define a WMS_EXTENT in the METADATA section of my LAYER, I >>> get >>> a crash of the WMS capabilities (only 4 Kb of normally 5 Kb is sent). >>> If I >>> do define the WMS_EXTENT everything works fine. >>> >> >> Did this use to work with 4.2? Some work was dont in this area after >> beta2, but I'm not aware of this issue. Perhaps you could also try with >> the latest source from CVS if you can. >> >> -- >> ------------------------------------------------------------ >> Daniel Morissette dmorissette at dmsolutions.ca >> DM Solutions Group http://www.dmsolutions.ca/ >> ------------------------------------------------------------ >> > > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From sctweedy at NRCAN.GC.CA Tue Nov 23 08:38:50 2004 From: sctweedy at NRCAN.GC.CA (Tweedy, Scott) Date: Tue, 23 Nov 2004 11:38:50 -0500 Subject: WMS Request Question Message-ID: Thanks for your answer yesterday Bart, but here's the statement in the WMS Server HOWTO document (http://mapserver.gis.umn.edu/doc/wms-server-howto.html) that had me "confused" Option A: Use Only Parameters Required by MapServer Simply adding "VERSION=1.1.1&REQUEST=GetMap&LAYERS=yourlayername1,yourlayername2" to your server's URL should generate a map with the default map size and all the layers with STATUS ON or DEFAULT displayed, e.g. The statement is in the "Test With a GetMap Request" section. It seems to state that if STATUS is ON or DEFAULT the layer would be displayed, therefore conversely saying that if STATUS is OFF it won't. I konw the WMS call seems to ignore the STATUS of a layer, but this statement seems to suggest otherwise, which is correct (or better yet which should be correct)? Thanks in advance again, st -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Tweedy, Scott Sent: Monday, November 22, 2004 2:23 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WMS Request Question I have a question about a WMS requestion respecting the STATUS parameter within a map file. I have a Mapfile that has numerous layers in it, some are initially turned on, some off using the STATUS object. The Mapfile works fine if I call it through a webpage, but if I call it using a WMS request this STATUS object seems to get ignored and all layers are turned on. Is this normal behaviour for Mapserver v. 4.3? If so is there any way around it? st Scott Tweedy Geoscience Database Analyst - Analyste de base des donn?es g?oscientifiques ESS Geoinformatics Division - Division SST G?oinformatique Earth Sciences Sector - Secteur des sciences de la terre Natural Resources Canada - Ressources naturelles Canada 580-615 Booth Street - 580-615 rue Booth Ottawa, ON Canada K1A 0E9 tel. (613) 947-0665 - t?l. (613) 947-0665 fax (613) 995-2520 - t?lc. (613) 995-2520 Email sctweedy at nrcan.gc.ca - Courriel sctweedy at nrcan.gc.ca From bartvde at XS4ALL.NL Tue Nov 23 08:41:14 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 23 Nov 2004 17:41:14 +0100 Subject: WMS Request Question In-Reply-To: <162B3F03E3AD224FA9F82DF351A15A8091D65E@S0-OTT-X10.NRCan.gc.ca> Message-ID: Hi Scott, Mapserver has been changed recently so that it conforms to the WMS spec. This part of the documentation is a relic from the days that it was more leniant. Maybe we need to open up a documentation bug for this, or maybe it is already on the list or in bugzilla (Jeff?). Best regards, Bart On Tue, 23 Nov 2004 11:38:50 -0500, Tweedy, Scott wrote: > Thanks for your answer yesterday Bart, but here's the statement in the > WMS > Server HOWTO document > (http://mapserver.gis.umn.edu/doc/wms-server-howto.html) that had me > "confused" > > Option A: Use Only Parameters Required by MapServer > > Simply adding > "VERSION=1.1.1&REQUEST=GetMap&LAYERS=yourlayername1,yourlayername2" to > your > server's URL should generate a map with the default map size and all the > layers with STATUS ON or DEFAULT displayed, e.g. > > The statement is in the "Test With a GetMap Request" section. It seems > to > state that if STATUS is ON or DEFAULT the layer would be displayed, > therefore conversely saying that if STATUS is OFF it won't. > > I konw the WMS call seems to ignore the STATUS of a layer, but this > statement seems to suggest otherwise, which is correct (or better yet > which > should be correct)? > > Thanks in advance again, > st > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Tweedy, Scott > Sent: Monday, November 22, 2004 2:23 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] WMS Request Question > > > I have a question about a WMS requestion respecting the STATUS parameter > within a map file. > > I have a Mapfile that has numerous layers in it, some are initially > turned > on, some off using the STATUS object. The Mapfile works fine if I call > it > through a webpage, but if I call it using a WMS request this STATUS > object > seems to get ignored and all layers are turned on. Is this normal > behaviour > for Mapserver v. 4.3? If so is there any way around it? > > st > > Scott Tweedy > Geoscience Database Analyst - Analyste de base des donn?es > g?oscientifiques > ESS Geoinformatics Division - Division SST G?oinformatique > Earth Sciences Sector - Secteur des sciences de la terre > Natural Resources Canada - Ressources naturelles Canada > 580-615 Booth Street - 580-615 rue Booth > Ottawa, ON Canada K1A 0E9 > tel. (613) 947-0665 - t?l. (613) 947-0665 > fax (613) 995-2520 - t?lc. (613) 995-2520 > Email sctweedy at nrcan.gc.ca - Courriel sctweedy at nrcan.gc.ca > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From margottid at COMUNE.LUGO.RA.IT Tue Nov 23 09:08:24 2004 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Tue, 23 Nov 2004 11:08:24 -0600 Subject: How to create a legend containing ONLY classes shown in current map? Message-ID: Hi, I have another question about the legend... How can I tell CGI Mapserver to create a legend containing ONLY classes that are visible in the current map? Now I get a legend that contains ALL classes of the selected layer, even if I have zoomed to a very close scale (and I view only one class in the map). Can you help me? Is it possible? Thank you, Daniele From adams at TERRESTRIS.DE Tue Nov 23 09:15:14 2004 From: adams at TERRESTRIS.DE (Till Adams) Date: Tue, 23 Nov 2004 18:15:14 +0100 Subject: WMS GetLegendGraphic - Raster, Annotation AND GROUP In-Reply-To: Message-ID: Dear list, we've just implemented the "getlegendgraphic" URL in order to get an WMS based legend. Works fine for "normal" layers from umn v4.25. Good work to all who we're involved!! We don't receive a graphic for grouped layers (except the group has only one layer, but that makes no sense at all) and annotations. For pure raster layers there is no problem, because mapserver sends an empty image, but normaly rasters are often grouped layers for performance reasons, and then we get the "red cross" instead of an image :-(. Has anyone out there experinece with WMS and getlegendgraphic or is it just a bug and should we wait for umn v 4.4? I didn't try v4.4, maybe its done with that. Some examples on that: Works fine http://www.terrestris.de/cgi-bin/mapserv425?map=/var/www/html/webapps/recklinghausen/info.map&&format=image/png&REQUEST=getlegendgraphic&VERSION=1.1.1&SERVICE=WMS&layer=Info_und_Service Group does not work: http://www.terrestris.de/cgi-bin/mapserv425?map=/var/www/html/webapps/recklinghausen/hgk.map&&format=image/png&REQUEST=getlegendgraphic&VERSION=1.1.1&SERVICE=WMS&layer=Schienennetz Group and ANNOTATION does not work: http://www.terrestris.de/cgi-bin/mapserv425?map=/var/www/html/webapps/recklinghausen/hgk.map&&format=image/png&REQUEST=getlegendgraphic&VERSION=1.1.1&SERVICE=WMS&layer=Kreisgrenze sorry for the german ;-) and thanks in advance for any comment - Cheers, Till From Max.Boecke at INIT.DE Tue Nov 23 09:01:36 2004 From: Max.Boecke at INIT.DE (=?iso-8859-1?Q?B=F6cke=2C_Max_=28init=29?=) Date: Tue, 23 Nov 2004 18:01:36 +0100 Subject: Oraclspatial OGR+OCI FeatureInfoRequest Message-ID: Hello Community, I've got a little problem. I try to have a FeatureInfoRequest using .... Connectiontype OGR Connection "OCI:user/pw at db" .... My Mapfile_Layer_configuration: LAYER NAME "Badegew" TYPE POINT STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "OCI:xxxx/xxx at xxx" DATA "wab_staedte_umn" #MAXSCALE 300001 HEADER "Templates/staedte_header.html" FOOTER "Templates/staedte_footer.html" LABELITEM "Name" TOLERANCE 3 CLASS SYMBOL 7 COLOR 255 0 0 SIZE 5 TEMPLATE "Templates/staedte_query.html" LABEL COLOR 0 0 0 SIZE TINY POSITION UC END END END #End Layer When the InfoRequest is shown in the IE, the mapserver send back the first entry from the oracle spatial table, whatever I 've snapped in the Map. He shows the same entry of the DB table. Sorry for bad english.:-( regards from Berlin (Germany) Max B?cke [------------------------------------------------------------------ ]init[ Aktiengesellschaft Rosenthaler Strasse 13 f?r digitale Kommunikation D-10119 Berlin http://www.init.de/ tel: +49 (30) 97 006 259 mailto:Max.Boecke at init.de fax: +49 (30) 97 006 459 ------------------------------------------------------------------] From jcastil1 at TRAGSA.ES Tue Nov 23 09:09:52 2004 From: jcastil1 at TRAGSA.ES (Javier Castillejo Montes) Date: Tue, 23 Nov 2004 18:09:52 +0100 Subject: How to create a legend containing ONLY classes shown in current map? Message-ID: Hi Daniele just have a look at http://mapserver.gis.umn.edu/doc40/html-legend-howto.html is where you can find the answer to your question an more. Best Regards Javier -----Mensaje original----- De: Daniele Margotti [mailto:margottid at COMUNE.LUGO.RA.IT] Enviado el: martes, 23 de noviembre de 2004 18:08 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] How to create a legend containing ONLY classes shown in current map? Hi, I have another question about the legend... How can I tell CGI Mapserver to create a legend containing ONLY classes that are visible in the current map? Now I get a legend that contains ALL classes of the selected layer, even if I have zoomed to a very close scale (and I view only one class in the map). Can you help me? Is it possible? Thank you, Daniele From bartvde at XS4ALL.NL Tue Nov 23 09:19:47 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 23 Nov 2004 18:19:47 +0100 Subject: WMS GetLegendGraphic - Raster, Annotation AND GROUP In-Reply-To: <41A37022.102@terrestris.de> Message-ID: Hi, there was a discussion about the GROUP layers and GetLegendGraphic in bug 653, comments 9-12: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=653 I can't remember what happened to my setup with GROUP layers, but it shouldn't give back a red cross :), I will check with version 4.4 to see if I can reproduce your problem. Best regards, Bart On Tue, 23 Nov 2004 18:15:14 +0100, Till Adams wrote: > Dear list, > > we've just implemented the "getlegendgraphic" URL in order to get an WMS > based legend. Works fine for "normal" layers from umn v4.25. Good work > to all who we're involved!! > > We don't receive a graphic for grouped layers (except the group has only > one layer, but that makes no sense at all) and annotations. > > For pure raster layers there is no problem, because mapserver sends an > empty image, but normaly rasters are often grouped layers for > performance reasons, and then we get the "red cross" instead of an image > :-(. > > Has anyone out there experinece with WMS and getlegendgraphic or is it > just a bug and should we wait for umn v 4.4? I didn't try v4.4, maybe > its done with that. > > Some examples on that: > > Works fine > http://www.terrestris.de/cgi-bin/mapserv425?map=/var/www/html/webapps/recklinghausen/info.map&&format=image/png&REQUEST=getlegendgraphic&VERSION=1.1.1&SERVICE=WMS&layer=Info_und_Service > > Group does not work: > http://www.terrestris.de/cgi-bin/mapserv425?map=/var/www/html/webapps/recklinghausen/hgk.map&&format=image/png&REQUEST=getlegendgraphic&VERSION=1.1.1&SERVICE=WMS&layer=Schienennetz > > Group and ANNOTATION does not work: > http://www.terrestris.de/cgi-bin/mapserv425?map=/var/www/html/webapps/recklinghausen/hgk.map&&format=image/png&REQUEST=getlegendgraphic&VERSION=1.1.1&SERVICE=WMS&layer=Kreisgrenze > > sorry for the german ;-) and thanks in advance for any comment - > > Cheers, Till > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From bartvde at XS4ALL.NL Tue Nov 23 09:31:01 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 23 Nov 2004 18:31:01 +0100 Subject: WMS GetLegendGraphic - Raster, Annotation AND GROUP In-Reply-To: Message-ID: Hi, Version 4.4 beta 3 gives a ServiceException report as a response: msWMSGetLegendGraphic(): WMS server error. Invalid layer given in the LAYER parameter. If you want GetLegendGraphic to work for GROUP layers I would suggest filing an enhancement bug. Currently it is not implemented, and I see an issue with the implementation: -the OGC spec says that we can't provide layer titles in the legend images, so we can't distinguish the individual layers which are part of a group Best regards, Bart On Tue, 23 Nov 2004 18:19:47 +0100, Bart van den Eijnden wrote: > Hi, > > there was a discussion about the GROUP layers and GetLegendGraphic in bug > 653, comments 9-12: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=653 > > I can't remember what happened to my setup with GROUP layers, but it > shouldn't give back a red cross :), I will check with version 4.4 to see > if I can reproduce your problem. > > Best regards, > Bart > > On Tue, 23 Nov 2004 18:15:14 +0100, Till Adams > wrote: > >> Dear list, >> >> we've just implemented the "getlegendgraphic" URL in order to get an WMS >> based legend. Works fine for "normal" layers from umn v4.25. Good work >> to all who we're involved!! >> >> We don't receive a graphic for grouped layers (except the group has only >> one layer, but that makes no sense at all) and annotations. >> >> For pure raster layers there is no problem, because mapserver sends an >> empty image, but normaly rasters are often grouped layers for >> performance reasons, and then we get the "red cross" instead of an image >> :-(. >> >> Has anyone out there experinece with WMS and getlegendgraphic or is it >> just a bug and should we wait for umn v 4.4? I didn't try v4.4, maybe >> its done with that. >> >> Some examples on that: >> >> Works fine >> http://www.terrestris.de/cgi-bin/mapserv425?map=/var/www/html/webapps/recklinghausen/info.map&&format=image/png&REQUEST=getlegendgraphic&VERSION=1.1.1&SERVICE=WMS&layer=Info_und_Service >> >> Group does not work: >> http://www.terrestris.de/cgi-bin/mapserv425?map=/var/www/html/webapps/recklinghausen/hgk.map&&format=image/png&REQUEST=getlegendgraphic&VERSION=1.1.1&SERVICE=WMS&layer=Schienennetz >> >> Group and ANNOTATION does not work: >> http://www.terrestris.de/cgi-bin/mapserv425?map=/var/www/html/webapps/recklinghausen/hgk.map&&format=image/png&REQUEST=getlegendgraphic&VERSION=1.1.1&SERVICE=WMS&layer=Kreisgrenze >> >> sorry for the german ;-) and thanks in advance for any comment - >> >> Cheers, Till >> > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From bartvde at XS4ALL.NL Tue Nov 23 09:36:15 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 23 Nov 2004 18:36:15 +0100 Subject: How to create a legend containing ONLY classes shown in current map? In-Reply-To: Message-ID: Hi Daniele, I don't think this is possible at the moment. We are looking at similar functionality for OGC WMS GetLegendGraphic/GetLegend(?) operations at the moment. There was a thread about this in 2002, but I don't think anything has happened in the mean time: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0210/msg00158.html Best regards, Bart On Tue, 23 Nov 2004 11:08:24 -0600, Daniele Margotti wrote: > Hi, > I have another question about the legend... > > How can I tell CGI Mapserver to create a legend containing ONLY classes > that are visible in the current map? > > Now I get a legend that contains ALL classes of the selected layer, even > if I have zoomed to a very close scale (and I view only one class in the > map). > > Can you help me? > Is it possible? > > Thank you, > Daniele > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From jcastil1 at TRAGSA.ES Tue Nov 23 09:38:02 2004 From: jcastil1 at TRAGSA.ES (Javier Castillejo Montes) Date: Tue, 23 Nov 2004 18:38:02 +0100 Subject: How to create a legend containing ONLY classes shown in current map? Message-ID: Sorry I didn't read the message carefully, that's why I missed the ".. ONLY classes > that are visible in the current map?..." List... sorry for your wasted time :-( -----Mensaje original----- De: Bart van den Eijnden [mailto:bartvde at XS4ALL.NL] Enviado el: martes, 23 de noviembre de 2004 18:36 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: Re: [UMN_MAPSERVER-USERS] How to create a legend containing ONLY classes shown in current map? Hi Daniele, I don't think this is possible at the moment. We are looking at similar functionality for OGC WMS GetLegendGraphic/GetLegend(?) operations at the moment. There was a thread about this in 2002, but I don't think anything has happened in the mean time: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0210/msg00158.html Best regards, Bart On Tue, 23 Nov 2004 11:08:24 -0600, Daniele Margotti wrote: > Hi, > I have another question about the legend... > > How can I tell CGI Mapserver to create a legend containing ONLY classes > that are visible in the current map? > > Now I get a legend that contains ALL classes of the selected layer, even > if I have zoomed to a very close scale (and I view only one class in the > map). > > Can you help me? > Is it possible? > > Thank you, > Daniele > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From jmckenna at DMSOLUTIONS.CA Tue Nov 23 09:45:58 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 23 Nov 2004 12:45:58 -0500 Subject: ms4w-installation: win98se-shutdown problem In-Reply-To: <41A32F17.3060701@yahoo.de> Message-ID: Hello Joerg, (note that the proper email list for MS4W questions can be found at http://lists.maptools.org/mailman/listinfo/ms4w-users) I dug up an old win98 laptop and did some testing with ms4w v1.0. I also ran into problems stopping the service. I then did some digging and from what I've read Apache's use as a 'service' is extremely experimental in Windows 95/98 (http://www.phpfreaks.com/apache_manual/page/win_service.html#win95svc). I therefore have no easy solution for you. To get around this I would make a shortcut to apache.exe on my desktop and manually run it each time...sorry I don't have an easier solution. Maybe some other win98 user can help us. jeff wenke wrote: > Hi, > when I want to close win98se, I always get the error, that > apache an php is still running. > I think, I installed it as service. But now I (have to) put it out of > the autostart-system-configuration. > > Anybody knows, what I have to change in any config-file, so that > win is working normaly again?? > > Thanks for help, > joerg > > > start > C:\ms4w\Apache\bin\apache.exe -n ApacheWebServer -k runservice (default) > > stop > C:\ms4w\Apache\bin\apache.exe -k shutdown (default) > > monitor > C:\ms4w\Apache\bin\ApacheMonitor.exe (default) > > > ms4w Revision 1.02 |2004/07/21 > > * Apache 2.0.50 > * PHP 4.3.7 > -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca From john.cole at UAI.COM Tue Nov 23 11:46:40 2004 From: john.cole at UAI.COM (John Cole) Date: Tue, 23 Nov 2004 13:46:40 -0600 Subject: example map file with Terraserver wms layer Message-ID: I've searched the list and found lot's of broken map files trying to use terraserver data with wms, along with a lot of patches for those files. It seems that no one has posted a 'here this works' map file yet. Could someone post a working, simple mapfile that has a terraserver wms layer? I've tried to get the ones in the list working, and I don't know if I've got something wrong in the map file or a proxy/firewall problem. I'd like to confirm that my mapserver setup can actually work before spending more time trying to figure out what I'm doing wrong ;-) Thanks, John Cole From superbla3000 at GMX.NET Tue Nov 23 12:59:54 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Tue, 23 Nov 2004 21:59:54 +0100 Subject: problem after switching to linux Message-ID: hello, I built my map with mapscript on windows. Now, after installing it on linux, I get this error: Warning: [MapServer Error]: msProcessProjection(): unknown projection id in /home/JP/public_html/worldmap/include/mapclassesNeu3.php on line 58 Warning: Failed to open map file /home/JP/public_html/worldmap/mapfiles/worldmap4.map in /home/JP/public_html/worldmap/include/mapclassesNeu3.php on line 58 so, this error comes, when I process my .phtml mapscript file. If I call the worldmap4.map file direct with mapserv?map=....worldmap4.map, there is no problem. So it seem not to be the mapfile. And I double checked the path to worldmap4.map file, tried it relative and absolute, seems to be correct... regards Joerg From woodbri at SWOODBRIDGE.COM Tue Nov 23 14:04:26 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 23 Nov 2004 17:04:26 -0500 Subject: problem after switching to linux In-Reply-To: <41A3A4CA.6000506@gmx.net> Message-ID: Joerg, On linux in the apache http.conf file you need to enable user directories. LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so UserDir public_html # # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Order allow,deny Allow from all Order deny,allow Deny from all This apache 1.3, if your using 2.x you will need to do something similar. -Steve W. joerg pfeiffer wrote: > hello, > > I built my map with mapscript on windows. Now, after installing it on > linux, I get this error: > > Warning: [MapServer Error]: msProcessProjection(): unknown projection id > in /home/JP/public_html/worldmap/include/mapclassesNeu3.php on line 58 > > Warning: Failed to open map file > /home/JP/public_html/worldmap/mapfiles/worldmap4.map in > /home/JP/public_html/worldmap/include/mapclassesNeu3.php on line 58 > > so, this error comes, when I process my .phtml mapscript file. If I call > the worldmap4.map file direct with mapserv?map=....worldmap4.map, there > is no problem. So it seem not to be the mapfile. > > And I double checked the path to worldmap4.map file, tried it relative > and absolute, seems to be correct... > > regards > Joerg > From toddbirkey at YAHOO.COM Tue Nov 23 14:09:50 2004 From: toddbirkey at YAHOO.COM (Todd Birkenholtz) Date: Tue, 23 Nov 2004 14:09:50 -0800 Subject: Latitude and Longitude symbol Message-ID: I have been working on this for weeks and I am sure I am making this harder than it is. I would like to call a text file from my map file with a list of Latitude and Longitude points on a map. I would then like to display a symbol for each point and treat them like a layer. Thank you in advance for your help. --------------------------------- Do you Yahoo!? Meet the all-new My Yahoo! ? Try it today! -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Tue Nov 23 14:13:28 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Tue, 23 Nov 2004 16:13:28 -0600 Subject: Latitude and Longitude symbol Message-ID: Todd, Take a look at the Wiki entry for Virtual Spatial Data http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VirtualSpatialData Look for 'Create a Virtual Data File' about half way down the page. David. David J. Fawcett MN Office of Environmental Assistance >>> Todd Birkenholtz 11/23/2004 4:09:50 PM >>> I have been working on this for weeks and I am sure I am making this harder than it is. I would like to call a text file from my map file with a list of Latitude and Longitude points on a map. I would then like to display a symbol for each point and treat them like a layer. Thank you in advance for your help. --------------------------------- Do you Yahoo!? Meet the all-new My Yahoo! * Try it today! From sirronj at PACBELL.NET Tue Nov 23 14:15:57 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Tue, 23 Nov 2004 14:15:57 -0800 Subject: ok - got zoom to work - another question In-Reply-To: <4.3.2.7.2.20041122123948.00aeb4c0@mail.gomoos.org> Message-ID: Thanks Eric - so as I understand you: MAP NAME CalMap STATUS ON EXTENT 5890870.385 -192053.200 8943310.847 3226086.749 IMAGETYPE GIF SIZE 600 600 SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " IMAGECOLOR 255 255 255 TEMPLATEPATTERN "map" SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME "cal_zp_st" TYPE POLYGON DATA "cal_zp_st" STATUS DEFAULT CLASSITEM "ZCTA" CLASS EXPRESSION /94087|90408|94107|95118|94530|74580|95404|93711|94904|92030|94121|91042|961 01|94523|95548|95658|92057|92503/ STYLE SYMBOL 'circle' SIZE 2 COLOR 255 102 102 END END CLASS EXPRESSION /./ OUTLINECOLOR 204 204 204 END END LAYER NAME "poly_minscale" TYPE POLYGON DATA "cal_zp_st" STATUS DEFAULT MINSCALE ???? CLASS SYMBOL 'circle' SIZE 2 COLOR 255 102 102 END END LAYER NAME "poly_maxscale" TYPE POLYGON DATA "cal_zp_st" STATUS DEFAULT MAXSCALE???? I don't know what the class would be if any END END # end map from header How do I determine the minscale and maxscale? Thanks #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Eric Bridger Sent: Monday, November 22, 2004 9:53 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question At 08:39 AM 11/22/2004 -0800, Joseph Norris wrote: >Everyone, > >I have my zoom working but now I would like to tackle something else. I am >putting an ellipse in the zip polygons if there is a 1-more teachers there. >For each zip there maybe a max of 10 teachers. I would like an ellipse or >symbol for each one so that when the user zooms into the polygon they can >see a symbol for each teacher. Can I do this within the class? If so how or >would be the best way to handle this? You can do this in the map file by creating two layers and using MAXSCALE, MINSCALE. Layer 1 has one ellipse per zip wherever there are 1-10 teachers. MINSCALE is set so that it won't appear when you are zoomed in. Layer 2 has one ellipse for each teacher and has MAXSCALE set so that it turns on when Layer 1 is turned off. Of course if you are using Perl Mapscript you will need to calculate the scale yourself and turn on and off the layers yourself. Here's and example: my $current_scale = calculateScale($map, $imgext[0], $imgext[2]); # From mapserver3.6.4: mapscale.c msCalculateScale(). This is not a precision thing. We don't worry about # msAdjustExtent() since in all our maps, image SIZE has same aspect ratio as the map EXTENT. # $minx and $maxx are optional in which case the current extent of the map is used. # Be careful about the current map's extent. zoomMap() changes the extents. sub calculateScale{ my ($map, $minx, $maxx) = @_; if(!$minx){ $minx = $map->{extent}->{minx}; $maxx = $map->{extent}->{maxx}; } my @inchesPerUnit = (1, 12, 63360.0, 39.3701, 39370.1, 4374754); my $width = $map->{width}; my $units = $map->{units}; # index into unitsPerUnit array my $resolution = $map->{resolution}; my $md = $width / ($resolution * $inchesPerUnit[$units]); my $gd = $maxx - $minx; return($gd/$md); } Eric From kenlord at GMAIL.COM Tue Nov 23 15:22:06 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 23 Nov 2004 15:22:06 -0800 Subject: Postgis point table In-Reply-To: <41A31B37.80203@cerene.fr> Message-ID: If the data is not being dynamically generated/updated, I would suggest that rather than converting the points on the fly every time you view them, adding overhead to every transaction, that you try the following ... If you have access to ArcGIS, there are various free plug-in's (ETGeowizards for example) you can download that can convert a set of points into lines. Or if its not too big of a dataset, use a CAD program to connect the dots, then import the features back into PostGIS. Cheers, Ken Lord Vancouver BC On Tue, 23 Nov 2004 12:12:55 +0100, St?phane RIFF wrote: > I have a postgis point table, display GPS coordinate in WGS84. > It works well with mapserver. > But now i'd like to show those points in a LINE type layer with mapserver > but i can't figure how to do it : > > i've tried this in mapfile : > > DATA > "geometryfromtext(replace(astext(geomunion(geom)),'MULTIPOINT(','LINESTRING('),4326) > from ;" > > but mapserver failed to draw the layer. > Does somebody already do something like that ??? > Thanks > From kenlord at GMAIL.COM Tue Nov 23 15:30:36 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 23 Nov 2004 15:30:36 -0800 Subject: How to create a legend containing ONLY classes shown in current map? In-Reply-To: Message-ID: MapServer CGI will not hide individual classes based on map scale in the way that you are hoping to do. The way I have attacked this is to place the scale range at which the class is visible within the name of the class, so that the name of the class and its viewable scale range is listed in the legend. hypothetical example of names given to classes in a layer that displays highways/roads/trails at different scales: Highway < 1:50,000 Local Roads < 1:20,000 Trails < 1:5,000 Cheers, Ken Lord Vancouver BC On Tue, 23 Nov 2004 11:08:24 -0600, Daniele Margotti wrote: > Hi, > I have another question about the legend... > > How can I tell CGI Mapserver to create a legend containing ONLY classes > that are visible in the current map? > > Now I get a legend that contains ALL classes of the selected layer, even > if I have zoomed to a very close scale (and I view only one class in the > map). > > Can you help me? > Is it possible? > > Thank you, > Daniele > From assefa at DMSOLUTIONS.CA Tue Nov 23 16:10:07 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 23 Nov 2004 19:10:07 -0500 Subject: SLD filter with raster layers In-Reply-To: <4199DD57.4080203@aris.nl> Message-ID: Sorry for the late answer. I just check the problem and entered a Bug 1087 on it. There was effectivly a problem when a Filter was present in the sld. I corrected this in the Mapserver CVS so the the filter is ignored in this case. The way SLD Filter is implemented internally is that the Filter is converted in a query (or a series of Queries) and the resulting shapes of the query are returned using the drawquery functionnality of Mapserver. This does not direclty apply to raster layers. The way I see it, the only Filter that make sense for Raster layers is a BBOX Filter which can be used to modify the extents of the drawing area. This can also be acheived through the BBOX parameter of the WMS request. Do you think that the WMS BBOX parameter is enough or do you see other use for spaitial filters for rasters layers ? Later, Berend Veldkamp wrote: > Hi, > > I been experimenting with sld filters, and so far, I've been able to use > them with feature layers, but not with raster layers (GeoTIFF). > The WMS request goes like this: > http://localhost/cgi-bin/mapserv?map=../map/test.map&service=wms&version=1.0.0&request=getmap&layers=ras&sld=http://localhost/sld/raster.sld > > > where raster.sld contains: > > > > ras > > ras > > > > > Geometry > > 0,0 100000,512500 > > > > > > 1.0 > > > > > > > > > > > > > > When I leave out the part, the layer is drawn, so maybe > rasterlayers don't supports filters yet? > > I'm using a nightly build from sep 20. and as far as I can tell there > haven't been any changes in this area, at least not in mapogcsld.c. > > Thanks, Berend > > -- > ____________________________ > > Berend Veldkamp - ARIS > http://www.aris.nl/ > ____________________________ > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From gis at SCHNEGG.NET Tue Nov 23 23:35:24 2004 From: gis at SCHNEGG.NET (Frank Rittinger) Date: Wed, 24 Nov 2004 08:35:24 +0100 Subject: mapserver java servlets In-Reply-To: <20041123094405.37314.qmail@web25110.mail.ukl.yahoo.com> Message-ID: Hola Jose, On Tuesday 23 November 2004 10:44, Jose Luis Gonzalez wrote: > And even worse, when I do any modifications and I put the new .class file > in the server, I have an error because it says that the library was already > loaded, and my only solution now to solve it is to turn off the server and > turn it on again. External libraries can only be loaded once into Tomcat. One work-around would be to create an extra webapp that loads the mapscript library and never gets reloaded. I remember that there was a thread about this in this mailing list. Regards, Frank -- Frank Rittinger TERRAPLAN Geographische Informationssysteme Gewerbestr. 33 79227 Schallstadt Germany Tel.: 07664-505315 Fax.: 07664-505321 http://www.terraplan.com From berend.veldkamp at ARIS.NL Tue Nov 23 23:58:54 2004 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Wed, 24 Nov 2004 08:58:54 +0100 Subject: SLD filter with raster layers In-Reply-To: <41A3D15F.5020807@dmsolutions.ca> Message-ID: Yes BBOX is fine for now, but other spatial filters would certainly be a nice addition, for instance to be able to draw part of a raster layer that lies within a polygon. Don't know if this is part of the WMS/SLD specifications, though. Berend Yewondwossen Assefa wrote: > Sorry for the late answer. I just check the problem and entered a Bug > 1087 on it. There was effectivly a problem when a Filter was present in > the sld. I corrected this in the Mapserver CVS so the the filter is > ignored in this case. > > The way SLD Filter is implemented internally is that the Filter is > converted in a query (or a series of Queries) and the resulting shapes > of the query are returned using the drawquery functionnality of Mapserver. > This does not direclty apply to raster layers. The way I see it, the > only Filter that make sense for Raster layers is a BBOX Filter which can > be used to modify the extents of the drawing area. This can also be > acheived through the BBOX parameter of the WMS request. Do you think > that the WMS BBOX parameter is enough or do you see other use for > spaitial filters for rasters layers ? > > > Later, > > Berend Veldkamp wrote: > >> Hi, >> >> I been experimenting with sld filters, and so far, I've been able to use >> them with feature layers, but not with raster layers (GeoTIFF). From wesp at GDV.COM Wed Nov 24 00:52:37 2004 From: wesp at GDV.COM (Oliver Wesp) Date: Wed, 24 Nov 2004 09:52:37 +0100 Subject: mapserver java servlets In-Reply-To: <20041123094405.37314.qmail@web25110.mail.ukl.yahoo.com> Message-ID: Hi, you're on the right way to avoid the "Native library cannot be loaded twice" error. Your JavaMapscript-Class implements a singleton so it's loaded only once in Tomcat. But you should not add your mapscript code to this class. Whenever you change the class Tomcat tries to reload and complains about the library already loaded. Write a second class and load the library with JavaMapscript.getInstance(); Add your mapscript code to that class and you should be fine. best regards Oliver Jose Luis Gonzalez wrote: > Hi to all > I would implement mapserver in tomcat as servlet but I have found a lot of > problems in start with it! > > So: > 1) is there sites that implement mapserver as servlet in tomcat that I can > view? > 2) Some one have a piece of basic code that I can compile as servlet in > tomcat for view how it run? I have load the java Howto. > > Do you have examples so I can see how can I work > with mapserver functions and servlets? > I have been seeing the wiki, but I can not really find what I want. > > I have done the example of loading a library that apears in: > > http://www.unicolet.org/mapserver/tomcat.html > > > and it works, but when I want to complete the JavaMapscript.java code > with other > mapserver comands, it doesn't work: > > import edu.umn.gis.mapscript.*; > > public class JavaMapscript { > private static JavaMapscript instance=null; > > private JavaMapscript() { > try { > System.loadLibrary("mapscript"); > } catch (Exception e) { > e.printStackTrace(); > System.err.println("* error loading native library *"); > System.err.println("Error is: "+e); > } > System.out.println(" * mapscript native library loaded *"); > mapObj map = new mapObj("test.map"); > imageObj img = map.draw(); > //img.save("result", map);*/ > } > > public static JavaMapscript getInstance() { > System.out.println("Try to instantiate Mapscript"); > System.out.flush(); > if ( instance == null ) { > instance = new JavaMapscript(); > } > return instance; > } > } > > And even worse, when I do any modifications and I put the new .class > file in the > server, I have an error because it says that the library was already > loaded, and > my only solution now to solve it is to turn off the server and turn it > on again. > > Hope someone can help me > > Thank you > > Jose Luis > > ------------------------------------------------------------------------ > > Nuevo Correo Yahoo! > > -- Dipl.-Geogr. Oliver Wesp Gesellschaft fuer geografische Datenverarbeitung Binger Strasse 49-51 D-55218 Ingelheim fon: +49 6132 714818 fax: +49 6132 714828 http: www.gdv.com From joseluismapserver at YAHOO.ES Wed Nov 24 01:51:00 2004 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Wed, 24 Nov 2004 10:51:00 +0100 Subject: mapserver java servlets In-Reply-To: <41A44BD5.10604@gdv.com> Message-ID: Hi Oliver, I have just done what you recomended, leaving the JavaMapscript-Class so the only thing he does is to load the library. Then in another class, the one where I have my servlet, I wote in the: public void init (ServletConfig cfg){ JavaMapscript.getInstance(); and later in the: public void service (HttpServletRequest req, HttpServletResponse res){ I began writing my mapscript code, and it still gives me the same error: javax.servlet.ServletException: Native Library /opt/SUNappserver/domains/domain1/lib/ext/libmapscript.so already loaded in another classloader Do you know why? Thank you Jose Luis Oliver Wesp wrote: Hi, you're on the right way to avoid the "Native library cannot be loaded twice" error. Your JavaMapscript-Class implements a singleton so it's loaded only once in Tomcat. But you should not add your mapscript code to this class. Whenever you change the class Tomcat tries to reload and complains about the library already loaded. Write a second class and load the library with JavaMapscript.getInstance(); Add your mapscript code to that class and you should be fine. best regards Oliver Jose Luis Gonzalez wrote: > Hi to all > I would implement mapserver in tomcat as servlet but I have found a lot of > problems in start with it! > > So: > 1) is there sites that implement mapserver as servlet in tomcat that I can > view? > 2) Some one have a piece of basic code that I can compile as servlet in > tomcat for view how it run? I have load the java Howto. > > Do you have examples so I can see how can I work > with mapserver functions and servlets? > I have been seeing the wiki, but I can not really find what I want. > > I have done the example of loading a library that apears in: > > http://www.unicolet.org/mapserver/tomcat.html > > > and it works, but when I want to complete the JavaMapscript.java code > with other > mapserver comands, it doesn't work: > > import edu.umn.gis.mapscript.*; > > public class JavaMapscript { > private static JavaMapscript instance=null; > > private JavaMapscript() { > try { > System.loadLibrary("mapscript"); > } catch (Exception e) { > e.printStackTrace(); > System.err.println("* error loading native library *"); > System.err.println("Error is: "+e); > } > System.out.println(" * mapscript native library loaded *"); > mapObj map = new mapObj("test.map"); > imageObj img = map.draw(); > //img.save("result", map);*/ > } > > public static JavaMapscript getInstance() { > System.out.println("Try to instantiate Mapscript"); > System.out.flush(); > if ( instance == null ) { > instance = new JavaMapscript(); > } > return instance; > } > } > > And even worse, when I do any modifications and I put the new .class > file in the > server, I have an error because it says that the library was already > loaded, and > my only solution now to solve it is to turn off the server and turn it > on again. > > Hope someone can help me > > Thank you > > Jose Luis > > ------------------------------------------------------------------------ > > Nuevo Correo Yahoo! > > -- Dipl.-Geogr. Oliver Wesp Gesellschaft fuer geografische Datenverarbeitung Binger Strasse 49-51 D-55218 Ingelheim fon: +49 6132 714818 fax: +49 6132 714828 http: www.gdv.com --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bluecarto at FREE.FR Wed Nov 24 02:45:16 2004 From: bluecarto at FREE.FR (Pierre GIRAUD) Date: Wed, 24 Nov 2004 11:45:16 +0100 Subject: Oraclspatial OGR+OCI FeatureInfoRequest In-Reply-To: <6832E029DE22DC4D84AEC19887E07EA802EBB398@dcs02.init.de> Message-ID: A bug has been reported for the same issue I think. http://208.24.120.44/show_bug.cgi?id=657 Pierre GIRAUD camptocamp.com Selon "B?cke, Max (init)" : > Hello Community, > > I've got a little problem. I try to have a FeatureInfoRequest using > .... > Connectiontype OGR > Connection "OCI:user/pw at db" > .... > My Mapfile_Layer_configuration: > > LAYER > NAME "Badegew" > TYPE POINT > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION "OCI:xxxx/xxx at xxx" > DATA "wab_staedte_umn" > #MAXSCALE 300001 > HEADER "Templates/staedte_header.html" > FOOTER "Templates/staedte_footer.html" > LABELITEM "Name" > TOLERANCE 3 > CLASS > SYMBOL 7 > COLOR 255 0 0 > SIZE 5 > TEMPLATE "Templates/staedte_query.html" > > LABEL > COLOR 0 0 0 > SIZE TINY > POSITION UC > END > END > > END #End Layer > > When the InfoRequest is shown in the IE, the mapserver send back the first > entry from the oracle spatial table, whatever I 've snapped in the Map. He > shows the same entry of the DB table. > Sorry for bad english.:-( > > regards from Berlin (Germany) > > Max B?cke > [------------------------------------------------------------------ > ]init[ Aktiengesellschaft Rosenthaler Strasse 13 > f?r digitale Kommunikation D-10119 Berlin > http://www.init.de/ tel: +49 (30) 97 006 259 > mailto:Max.Boecke at init.de fax: +49 (30) 97 006 459 > ------------------------------------------------------------------] > From edspremolla at ANTEL.COM.UY Wed Nov 24 02:46:06 2004 From: edspremolla at ANTEL.COM.UY (Eduardo Spremolla) Date: Wed, 24 Nov 2004 08:46:06 -0200 Subject: How to create a legend containing ONLY classes shown in current map? In-Reply-To: <55dd01fa04112315303df048b1@mail.gmail.com> Message-ID: But what Daniele wants, if I understand ok, it to hide legends, not only based on scale, but on the extend. You may see the highway, but if you pan left you no longer see it, same scale, same layers. Difficult implementation :-( LALO El mar, 23-11-2004 a las 21:30, Ken Lord escribi?: > MapServer CGI will not hide individual classes based on map scale in > the way that you are hoping to do. > > The way I have attacked this is to place the scale range at which the > class is visible within the name of the class, so that the name of the > class and its viewable scale range is listed in the legend. > > hypothetical example of names given to classes in a layer that > displays highways/roads/trails at different scales: > > Highway < 1:50,000 > Local Roads < 1:20,000 > Trails < 1:5,000 > > Cheers, > Ken Lord > Vancouver BC > > > On Tue, 23 Nov 2004 11:08:24 -0600, Daniele Margotti > wrote: > > Hi, > > I have another question about the legend... > > > > How can I tell CGI Mapserver to create a legend containing ONLY classes > > that are visible in the current map? > > > > Now I get a legend that contains ALL classes of the selected layer, even > > if I have zoomed to a very close scale (and I view only one class in the > > map). > > > > Can you help me? > > Is it possible? > > > > Thank you, > > Daniele > > -- Eduardo Spremolla Antel I+D From Max.Boecke at INIT.DE Wed Nov 24 02:52:04 2004 From: Max.Boecke at INIT.DE (=?iso-8859-1?Q?B=F6cke=2C_Max_=28init=29?=) Date: Wed, 24 Nov 2004 11:52:04 +0100 Subject: AW: [UMN_MAPSERVER-USERS] Oraclspatial OGR+OCI FeatureInfoRequest Message-ID: Thanks. I've found the mistake. It was an error in the database table. Important is, that you have to write an entry in the database or mapfile. You need an Primary Key named OGR_FID in your table. Here my Configuration: LAYER NAME "Badeg" TYPE POINT STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "OCI:user/pass at DbName" DATA "select ID as OGR_FID, geometrie, Name, Gemeinde, Kreis from hydbasis_badegewaesser" #MAXSCALE 300001 HEADER "Templates/Badegewaesser_header.html" FOOTER "Templates/Badegewaesser_footer.html" TOLERANCE 10 CLASS SYMBOL 3 COLOR 0 0 200 SIZE 4 TEMPLATE "Templates/Badegewaesser_query.html" END END Greetings Max B?cke -----Urspr?ngliche Nachricht----- Von: bluecarto at free.fr [mailto:bluecarto at free.fr] Gesendet: Mittwoch, 24. November 2004 11:44 An: B?cke, Max (init) Betreff: Re: [UMN_MAPSERVER-USERS] Oraclspatial OGR+OCI FeatureInfoRequest A bug has been reported for the same issue I think. http://208.24.120.44/show_bug.cgi?id=657 Pierre GIRAUD camptocamp.com Selon "B?cke, Max (init)" : > Hello Community, > > I've got a little problem. I try to have a FeatureInfoRequest using > .... > Connectiontype OGR > Connection "OCI:user/pw at db" > .... > My Mapfile_Layer_configuration: > > LAYER > NAME "Badegew" > TYPE POINT > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION "OCI:xxxx/xxx at xxx" > DATA "wab_staedte_umn" > #MAXSCALE 300001 > HEADER "Templates/staedte_header.html" > FOOTER "Templates/staedte_footer.html" > LABELITEM "Name" > TOLERANCE 3 > CLASS > SYMBOL 7 > COLOR 255 0 0 > SIZE 5 > TEMPLATE "Templates/staedte_query.html" > > LABEL > COLOR 0 0 0 > SIZE TINY > POSITION UC > END > END > > END #End Layer > > When the InfoRequest is shown in the IE, the mapserver send back the first > entry from the oracle spatial table, whatever I 've snapped in the Map. He > shows the same entry of the DB table. > Sorry for bad english.:-( > > regards from Berlin (Germany) > > Max B?cke > [------------------------------------------------------------------ > ]init[ Aktiengesellschaft Rosenthaler Strasse 13 > f?r digitale Kommunikation D-10119 Berlin > http://www.init.de/ tel: +49 (30) 97 006 259 > mailto:Max.Boecke at init.de fax: +49 (30) 97 006 459 > ------------------------------------------------------------------] > From nunoragil at YAHOO.COM Wed Nov 24 04:20:35 2004 From: nunoragil at YAHOO.COM (Nuno GIL) Date: Wed, 24 Nov 2004 04:20:35 -0800 Subject: wcs data preparation - conversion from Unsigned to Signed Int Message-ID: Hi listers, I have converted some SRTM (.hgt) files in 16-bit signed int to GeoTiff 16-bit unsigned int. Does any of you know any way of converting a 16-bit unsigned GeoTIFF in a 16-bit signed one? Regards, Nuno __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail From kevin.sweeney at UNN.AC.UK Wed Nov 24 05:40:52 2004 From: kevin.sweeney at UNN.AC.UK (Kevin Sweeney) Date: Wed, 24 Nov 2004 07:40:52 -0600 Subject: Dynamic online maps Message-ID: Hello all. Perhaps a silly question but I am trying to create an online dynamic map of my universities bulildings. I also need it to show how to get from one building to another, showing time it takes and distances travelled. Will Mapserver do this for me? And if so would anyone know where a novice would start? Any help would be greatly appriceated. Many thanks. Kevin From eric at GOMOOS.ORG Wed Nov 24 05:50:06 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Wed, 24 Nov 2004 08:50:06 -0500 Subject: ok - got zoom to work - another question In-Reply-To: Message-ID: On Tue, 2004-11-23 at 17:15, Joseph Norris wrote: > Thanks Eric - so as I understand you: > > MAP > NAME CalMap > STATUS ON > EXTENT 5890870.385 -192053.200 8943310.847 3226086.749 > IMAGETYPE GIF > SIZE 600 600 > SHAPEPATH > "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata > " > IMAGECOLOR 255 255 255 > TEMPLATEPATTERN "map" > > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > > > LAYER > NAME "cal_zp_st" > TYPE POLYGON > DATA "cal_zp_st" > STATUS DEFAULT > CLASSITEM "ZCTA" > > CLASS > EXPRESSION > /94087|90408|94107|95118|94530|74580|95404|93711|94904|92030|94121|91042|961 > 01|94523|95548|95658|92057|92503/ > STYLE > SYMBOL 'circle' > SIZE 2 > COLOR 255 102 102 > END > > END > > CLASS > EXPRESSION /./ > OUTLINECOLOR 204 204 204 > END > END > LAYER > NAME "poly_minscale" > TYPE POLYGON > DATA "cal_zp_st" > STATUS DEFAULT > MINSCALE ???? > CLASS > SYMBOL 'circle' > SIZE 2 > COLOR 255 102 102 > END > END > LAYER > NAME "poly_maxscale" > TYPE POLYGON > DATA "cal_zp_st" > STATUS DEFAULT > MAXSCALE???? > I don't know what the class would be if any > END > > > END # end map from header > > How do I determine the minscale and maxscale? > > Thanks > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Eric Bridger > Sent: Monday, November 22, 2004 9:53 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question > > At 08:39 AM 11/22/2004 -0800, Joseph Norris wrote: > >Everyone, > > > >I have my zoom working but now I would like to tackle something else. I am > >putting an ellipse in the zip polygons if there is a 1-more teachers there. > >For each zip there maybe a max of 10 teachers. I would like an ellipse or > >symbol for each one so that when the user zooms into the polygon they can > >see a symbol for each teacher. Can I do this within the class? If so how > or > >would be the best way to handle this? > > > You can do this in the map file by creating two layers and using MAXSCALE, > MINSCALE. > Layer 1 has one ellipse per zip wherever there are 1-10 teachers. > MINSCALE is set so that it won't appear when you are zoomed in. > Layer 2 has one ellipse for each teacher and has MAXSCALE set so that it > turns on when Layer 1 is turned off. > > Of course if you are using Perl Mapscript you will need to calculate the > scale yourself and turn on and off the layers yourself. > Here's and example: > > my $current_scale = calculateScale($map, $imgext[0], $imgext[2]); > # From mapserver3.6.4: mapscale.c msCalculateScale(). This is not a > precision thing. We don't worry about > # msAdjustExtent() since in all our maps, image SIZE has same aspect ratio > as the map EXTENT. > # $minx and $maxx are optional in which case the current extent of the map > is used. > > # Be careful about the current map's extent. zoomMap() changes the extents. > > sub calculateScale{ > my ($map, $minx, $maxx) = @_; > if(!$minx){ > $minx = $map->{extent}->{minx}; > $maxx = $map->{extent}->{maxx}; > } > my @inchesPerUnit = (1, 12, 63360.0, 39.3701, 39370.1, 4374754); > my $width = $map->{width}; > my $units = $map->{units}; # index into unitsPerUnit array > my $resolution = $map->{resolution}; > my $md = $width / ($resolution * $inchesPerUnit[$units]); > my $gd = $maxx - $minx; > return($gd/$md); > } Joseph, I'm not exactly sure what your data looks like or what you are trying to achieve. But by using two layers you can control what exactly is displayed via different CLASS and EXPRESSION's at different scales. The scale is determined by the current map's extents, (AFTER any zooming in which you calculated new extents based on the zoom direction. (Actually this call: my $current_scale = calculateScale($map, $imgext[0], $imgext[2]); gets the scale of the map which was just submitted, based on: @imgext = split(' ', $q->param('imgext')); where imgext is the extent just submitted with the form.) Typically you'd want to call $scale = calculateScale($map) (after your zoom calculations have changed the map's extents. What MIXSCALE, MAXSCALE to use in your map file must be determined by trail and error. HTH. Eric From sobomsawin at KASSINI.COM Wed Nov 24 06:04:27 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 24 Nov 2004 09:04:27 -0500 Subject: [UMN_MAPSERVER-USERS] problem after switching to linux In-Reply-To: <41A3A4CA.6000506@gmx.net> Message-ID: Your Apache user must have access to the directories and files. Take a look at the permissions of files and folders where your mapfile and your php files are stored with the command ls -l. Just as a test, chmod -R 777 * the directory where your files are and try again your apps. Most of the time in Linux, the problem is too much security, a kind of problem you never deal with in Win (make your own conclusion...). Regards, Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de joerg pfeiffer Envoy??: 23 novembre 2004 16:00 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] problem after switching to linux hello, I built my map with mapscript on windows. Now, after installing it on linux, I get this error: Warning: [MapServer Error]: msProcessProjection(): unknown projection id in /home/JP/public_html/worldmap/include/mapclassesNeu3.php on line 58 Warning: Failed to open map file /home/JP/public_html/worldmap/mapfiles/worldmap4.map in /home/JP/public_html/worldmap/include/mapclassesNeu3.php on line 58 so, this error comes, when I process my .phtml mapscript file. If I call the worldmap4.map file direct with mapserv?map=....worldmap4.map, there is no problem. So it seem not to be the mapfile. And I double checked the path to worldmap4.map file, tried it relative and absolute, seems to be correct... regards Joerg --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 From test at STIGASCORP.COM Wed Nov 24 06:20:16 2004 From: test at STIGASCORP.COM (Chris) Date: Wed, 24 Nov 2004 09:20:16 -0500 Subject: mapserver java servlets In-Reply-To: <200411240835.25379.gis@schnegg.net> Message-ID: Hello, You can just use a singleton instead. It's a much more elegant solution. Chris -----Original Message----- From: Frank Rittinger [mailto:gis at SCHNEGG.NET] Sent: Wednesday, November 24, 2004 2:35 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver java servlets Hola Jose, On Tuesday 23 November 2004 10:44, Jose Luis Gonzalez wrote: > And even worse, when I do any modifications and I put the new .class file > in the server, I have an error because it says that the library was already > loaded, and my only solution now to solve it is to turn off the server and > turn it on again. External libraries can only be loaded once into Tomcat. One work-around would be to create an extra webapp that loads the mapscript library and never gets reloaded. I remember that there was a thread about this in this mailing list. Regards, Frank -- Frank Rittinger TERRAPLAN Geographische Informationssysteme Gewerbestr. 33 79227 Schallstadt Germany Tel.: 07664-505315 Fax.: 07664-505321 http://www.terraplan.com From mandhare at STATE.PA.US Wed Nov 24 06:26:39 2004 From: mandhare at STATE.PA.US (Andhare, Manjiri) Date: Wed, 24 Nov 2004 09:26:39 -0500 Subject: jBox Java applet Message-ID: Hello!! Since last 3 days I'm trying to make the jBox applet work with the Itasca workshop demo, but can't figure out whats goin wrong with it. One thing which I found is, before I had placed the java/jBox directory under my webroot, but in the documentation I found that I should put it under the web document tree, for me which is: c:/Inetpub/wwwroot/MapServer/Docs/tmp So I added the java/jBox directory under my web document tree. But still I can't see the map image while they are being created under Docs/tmp directory. When I click the initialize button on "index.html" with the "basic application" option selected, I can see the legend, scalebar, reference map. When I click on zoom in radio button and try to draw a rectangle on the map (which I don't see, just the gray area) and then if I click refresh button, I can see that the reference map changes, it shows red box on it. And here is what I get in the url: ***************************** 1. After hitting the "initialize" button on index.html: http://localhost/MapServer/cgi-bin/mapserv.exe?layer=lakespy2&layer=dlgs tln2&zoomsize=2&map=c%3A%5CInetpub%5Cwwwroot%5CMapServer%5Citasca.map&pr ogram=c%3A%5CInetpub%5Cwwwroot%5CMapServer%5Ccgi-bin%5Cmapserv.exe&root= c%3A%5CInetpub%5Cwwwroot%5CMapServer&map_web_imagepath=c%3A%5CInetpub%5C wwwroot%5CMapServer%5CDocs%5Ctmp%5C&map_web_imageurl=%5Ctmp%5C&map_web_t emplate=c%3A%5CInetpub%5Cwwwroot%5CMapServer%5Citasca_basic.html ************************************ 2. After selecting zoom in and trying to draw a rectangle on gray area and clicking the refresh button on Itasca_basic.html: http://localhost/MapServer/cgi-bin/mapserv.exe?mode=browse&layer=lakespy 2&layer=dlgstln2&zoomdir=1&zoomsize=2&imgbox=-1+-1+-1+-1&imgxy=299.5+299 .5&imgext=388107.634400+5200301.166444+500896.339020+5313063.023754&map= c%3A%5CInetpub%5Cwwwroot%5CMapServer%5Citasca.map&root=c%3A%5CInetpub%5C wwwroot%5CMapServer&savequery=true&program=c%3A%5CInetpub%5Cwwwroot%5CMa pserver%5Ccgi-bin%5Cmapserv.exe&map_web_imagepath=c%3A%5CInetpub%5Cwwwro ot%5CMapServer%5CDocs%5Ctmp%5C&map_web_imageurl=%5Ctmp%5C&map_web_templa te=c%3A%5CInetpub%5Cwwwroot%5CMapServer%5Citasca_basic.html ********************************************* I see that the value for imgbox has not changed, it's the same as initialized on the html page, i.e. -1 -1 -1 -1 I also tried to put the color parameter to check if I'm getting the rectangle or not, but I couldn't get the rectangle nor the map. I checked the directory permissions, also added the CLASSPATH variable mentioned in the jBOX HOWTo Document. Am doing the right direction? Could someone please tell me where is the possibility of making the mistake? Thank you all!! Manjiri Andahre GIS co-ordinator PA Fish & Boat commission tel: (814)3595182 fax:(814)3595153 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Richard Greenwood Sent: Monday, November 22, 2004 12:15 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] jBox Java applet On Mon, 22 Nov 2004 10:10:33 -0500, Andhare, Manjiri wrote: > Hi Rich, > Thanks for correcting me the way I have specified the archive. I have > changed the code base to "c:/Inetpub/wwwroot/MapServer/java/jBox" > And archive to "jBoxPNG.jar. That's not correct. The codebase has to point to an HTTP address, not to a file system directory. This is becasue the web page holding the java applet is fetching the applet. > But after hitting the "initialize" button, when I looked at the > generated source code , I found that the path to the png map image > generated by Mapserver was incorrect. Previously,I had put the code for > displaying the map image as: > > But my image was in heep://localhost/MapServer/Docs/tmp folder. > So I changed that line to: > But the problem is, when mapserver put the value for [img], it creates > it as: " \tmp\ITASCA11011353302004.png" > Therefore I'm getting the value for the map image in the source as: > value="http://localhost/MapServer/Docs/\tmp\ITASCA11011353302004.png"> > But I'm not getting the way so that the mapserver could correctly get > the path to the image. > An after doing all these changes, I neither see the map in the browser > not the java consol error. So, I'm not sure whether the java applet is > being called and executed or not. Again, I think you are confusing HTTP addresses with file system addresses. In your .map file you should have something like: IMAGEPATH c:/Inetpub/wwwroot/MapServer/Docs/tmp/ # this is the file system directory where mapserver puts the images, # it should also be an IIS virtual directory IMAGEURL /tmp/ # this is the HTTP address that the client browser reads from. I may not have those exactly right because I am guessing at your directory structure. But when set correctly should look something like this after being parced by mapserv.exe: You should be able to put the replaced values from [host][img] into your browser's address bar an see the image. If you can't do that, then you have an error in your .map file and/or your virtual directory assignments in IIS. If you can't fetch the image in this way, then there is no way that jBox will be able to get it either. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com > -----Original Message----- > From: Richard Greenwood [mailto:richard.greenwood at gmail.com] > Sent: Thursday, November 18, 2004 2:36 PM > To: Andhare, Manjiri > Cc: mapserver-users at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] jBox Java applet > > Looks like there are problems with your codebase and archive > parameters. You have: > codebase="java\jBox" > archive="jBoxPNG.jar,png.jar" > > The way you have codebase, the 'java' directory will not be found. I > assume that 'mapserver' is an IIS virtual directory, so try: > 'codebase=/mapserver/java/jbox' > Forward slashes, not back slashes, as this is a URI, not a DOS path. > > I'm a little unclear on the specification of two jar files in the > archive parameter. Is that legal? Where'd you come up with that? And > you have the .jar files in /mapserver/java/jbox/ not a subdirectory, > right? > > You might want to start with GIFs and the standard jBox, rather than > jBoxPNG which requries the sixlegs library. If you're using the Sun > Java VM, you don't need six-legs anyway. > > I am cc'ing the mapserver-users list as others may spot something that I > missed. > > Rich > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > > On Thu, 18 Nov 2004 09:49:02 -0500, Andhare, Manjiri > wrote: > > Yes I have JVM and after running the demo, if I check the java > console, > > I get following: > > ---------------------------------------------------- > > load: class jBoxPNG.class not found. > > > > java.lang.ClassNotFoundException: jBoxPNG.class > > > > at sun.applet.AppletClassLoader.findClass(Unknown Source) > > > > at java.lang.ClassLoader.loadClass(Unknown Source) > > > > at sun.applet.AppletClassLoader.loadClass(Unknown Source) > > > > at java.lang.ClassLoader.loadClass(Unknown Source) > > > > at sun.applet.AppletClassLoader.loadCode(Unknown Source) > > > > at sun.applet.AppletPanel.createApplet(Unknown Source) > > > > at sun.plugin.AppletViewer.createApplet(Unknown Source) > > > > at sun.applet.AppletPanel.runLoader(Unknown Source) > > > > at sun.applet.AppletPanel.run(Unknown Source) > > > > at java.lang.Thread.run(Unknown Source) > > > > Caused by: java.io.IOException: open HTTP connection failed. > > > > at sun.applet.AppletClassLoader.getBytes(Unknown Source) > > > > at sun.applet.AppletClassLoader.access$100(Unknown Source) > > > > at sun.applet.AppletClassLoader$1.run(Unknown Source) > > > > at java.security.AccessController.doPrivileged(Native Method) > > > > ... 10 more > > > > Manjiri Andahre > > GIS co-ordinator > > PA Fish & Boat commission > > tel: (814)3595182 > > fax:(814)3595153 > > > > > > > > -----Original Message----- > > From: Richard Greenwood [mailto:richard.greenwood at gmail.com] > > Sent: Thursday, November 18, 2004 9:43 AM > > To: Manjiri Andhare > > Subject: Re: [UMN_MAPSERVER-USERS] jBox Java applet > > > > Do you have a Java Virtual machine installed? > > Get one here: > > > > http://www.java.com/en/download/installed.jsp > > > > Rich > > -- > > Richard Greenwood > > richard.greenwood at gmail.com > > www.greenwoodmap.com > > > > On Thu, 18 Nov 2004 07:29:16 -0600, Manjiri Andhare > > wrote: > > > Hi! > > > I was looking for the functionality to draw a rectangle for zooming > in > > on > > > the map. I found jBox by Steve Lime on > > > http://mapserver.gis.umn.edu/contributed.html > > > I have Windows 2000 and I'm running mapserver 4.2 on IIS. > > > I follwed the steps from jBox HOWTO 4.2 to test it with the workshop > > demo. > > > But when i try to run the workshop demo with "Basic application" > > option, in > > > the status bar of Browser(I'm using IE 6.0) I get the message as; > > > Loading Java Applet Failed.. > > > And I'm not getting the reason behind this.. > > > Here is the changed portion of itasca_basic.html file: > > > *************************************** > > > > > > > > > > > > MapServer - Itasca Application > > > > > > > > > > > > > > >

MapServer - Itasca Application

> > >
> > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > align="center" bgcolor="#666666"> > > > > > > > > > > > > > > >
> > > > > codebase="java\jBox" > > > archive="jBoxPNG.jar,png.jar" > > > code="jBoxPNG.class" > > > width="600" > > > height="600" > > > name="jBox" > > > MAYSCRIPT> > > > > > > > > >
> > > scalebar (mi) src="[scalebar]"> > > >
> > >
> > > bgcolor="#ffffff"> > > >
> > >
> > >

> > > > > > > > Browse > > > map
> > > Query > > > feature
> > > Query > > multiple > > > features > > > > > >


> > > > > >

> > > Select Layers to Display:
> > > > > > > > >

> > > Zoom In > [zoomdir_1_check]> > > > Pan > > > Zoom Out > [zoomdir_-1_check]> > > >

> > > Zoom Size > value=[zoomsize]> > > >

> > > > > > Legend


> > >
> > > > > >

> > >

> > > > > border="0">
> > >
> > > > > >
> > >
> > > > > > > > > *************************************************** > > > > > > I have placed the jBox as: > > > c:\Inetpub\wwwroot\MapServer\java\jBox > > > And I have placed the jar files, class files and java source files > > from > > > lib,classes and src folders respectively under > > > c:\Inetpub\wwwroot\MapServer\java\jBox > > > > > > If somebody could point out what i'm missing,it'll be great!! > > > Thank you, > > > Manjiri Andhare > > > GIS Coordinator > > > PA Fish & Boat Commission > > > U.S.A. From test at STIGASCORP.COM Wed Nov 24 06:34:14 2004 From: test at STIGASCORP.COM (Chris) Date: Wed, 24 Nov 2004 09:34:14 -0500 Subject: mapserver java servlets In-Reply-To: <20041124095100.92800.qmail@web25102.mail.ukl.yahoo.com> Message-ID: Jose, what servlet container are you using? Try initializing the servlet first without calling it -- you can do this by putting it in web.xml like this: test {your class name} 1 This will force the init() to run without the service(). Also you should avoid lazy initialization in Singleton classes. Regards, Chris -----Original Message----- From: Jose Luis Gonzalez [mailto:joseluismapserver at YAHOO.ES] Sent: Wednesday, November 24, 2004 4:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver java servlets Hi Oliver, I have just done what you recomended, leaving the JavaMapscript-Class so the only thing he does is to load the library. Then in another class, the one where I have my servlet, I wote in the: public void init (ServletConfig cfg){ JavaMapscript.getInstance(); and later in the: public void service (HttpServletRequest req, HttpServletResponse res){ I began writing my mapscript code, and it still gives me the same error: javax.servlet.ServletException: Native Library /opt/SUNappserver/domains/domain1/lib/ext/libmapscript.so already loaded in another classloader Do you know why? Thank you Jose Luis Oliver Wesp wrote: Hi, you're on the right way to avoid the "Native library cannot be loaded twice" error. Your JavaMapscript-Class implements a singleton so it's loaded only once in Tomcat. But you should not add your mapscript code to this class. Whenever you change the class Tomcat tries to reload and complains about the library already loaded. Write a second class and load the library with JavaMapscript.getInstance(); Add your mapscript code to that class and you should be fine. best regards Oliver Jose Luis Gonzalez wrote: > Hi to all > I would implement mapserver in tomcat as servlet but I have found a lot of > problems in start with it! > > So: > 1) is there sites that implement mapserver as servlet in tomcat that I can > view? > 2) Some one have a piece of basic code that I can compile as servlet in > tomcat for view how it run? I have load the java Howto. > > Do you have examples so I can see how can I work > with mapserver functions and servlets? > I have been seeing the wiki, but I can not really find what I want. > > I have done the example of loading a library that apears in: > > http://www.unicolet.org/mapserver/tomcat.html > > > and it works, but when I want to complete the JavaMapscript.java code > with other > mapserver comands, it doesn't work: > > import edu.umn.gis.mapscript.*; > > public class JavaMapscript { > private static JavaMapscript instance=null; > > private JavaMapscript() { > try { > System.loadLibrary("mapscript"); > } catch (Exception e) { > e.printStackTrace(); > System.err.println("* error loading native library *"); > System.err.println("Error is: "+e); > } > System.out.println(" * mapscript native library loaded *"); > mapObj map = new mapObj("test.map"); > imageObj img = map.draw(); > //img.save("result", map);*/ > } > > public static JavaMapscript getInstance() { > System.out.println("Try to instantiate Mapscript"); > System.out.flush(); > if ( instance == null ) { > instance = new JavaMapscript(); > } > return instance; > } > } > > And even worse, when I do any modifications and I put the new .class > file in the > server, I have an error because it says that the library was already > loaded, and > my only solution now to solve it is to turn off the server and turn it > on again. > > Hope someone can help me > > Thank you > > Jose Luis > > ---------------------------------------------------------------------- -- > > Nuevo Correo Yahoo! > > -- Dipl.-Geogr. Oliver Wesp Gesellschaft fuer geografische Datenverarbeitung Binger Strasse 49-51 D-55218 Ingelheim fon: +49 6132 714818 fax: +49 6132 714828 http: www.gdv.com ---------------------------------------------------------------------------- -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Wed Nov 24 06:37:32 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 24 Nov 2004 15:37:32 +0100 Subject: WMS: not checking for required parameters Message-ID: Hi list, using mapserver 4.4 beta3, when not specifying width and height in a WMS request, I get back an image of the SIZE which is specified in the MAP file (a stretched image with 4.4, in 4.2 a non stretched image). This is not in accordance with the spec (width and height are required parameters). Best regards, Bart From David.Fawcett at STATE.MN.US Wed Nov 24 06:55:15 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Wed, 24 Nov 2004 08:55:15 -0600 Subject: How to create a legend containing ONLY classes shown in current map? Message-ID: Ken, So then based on your naming scheme, I assume that you use conditional statements in your html legend template to determine which classes should show? (html legend info at http://mapserver.gis.umn.edu/doc42/html-legend-howto.html) David. David J. Fawcett MN Office of Environmental Assistance >>> Ken Lord 11/23/2004 5:30:36 PM >>> MapServer CGI will not hide individual classes based on map scale in the way that you are hoping to do. The way I have attacked this is to place the scale range at which the class is visible within the name of the class, so that the name of the class and its viewable scale range is listed in the legend. hypothetical example of names given to classes in a layer that displays highways/roads/trails at different scales: Highway < 1:50,000 Local Roads < 1:20,000 Trails < 1:5,000 Cheers, Ken Lord Vancouver BC On Tue, 23 Nov 2004 11:08:24 -0600, Daniele Margotti wrote: > Hi, > I have another question about the legend... > > How can I tell CGI Mapserver to create a legend containing ONLY classes > that are visible in the current map? > > Now I get a legend that contains ALL classes of the selected layer, even > if I have zoomed to a very close scale (and I view only one class in the > map). > > Can you help me? > Is it possible? > > Thank you, > Daniele > From assefa at DMSOLUTIONS.CA Wed Nov 24 07:39:00 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 24 Nov 2004 10:39:00 -0500 Subject: WMS: not checking for required parameters In-Reply-To: <20606.212.238.227.182.1101307052.squirrel@212.238.227.182> Message-ID: Bug 1088 has been eneterd on this. To be adressed before 4.4 release. Bart van den Eijnden wrote: > Hi list, > > using mapserver 4.4 beta3, when not specifying width and height in a WMS > request, I get back an image of the SIZE which is specified in the MAP > file (a stretched image with 4.4, in 4.2 a non stretched image). > > This is not in accordance with the spec (width and height are required > parameters). > > Best regards, > Bart > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From warmerdam at POBOX.COM Wed Nov 24 07:44:32 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 24 Nov 2004 10:44:32 -0500 Subject: wcs data preparation - conversion from Unsigned to Signed Int In-Reply-To: <20041124122035.15032.qmail@web53001.mail.yahoo.com> Message-ID: Nuno GIL wrote: > Hi listers, > > I have converted some SRTM (.hgt) files in 16-bit > signed int to GeoTiff 16-bit unsigned int. > Does any of you know any way of converting a 16-bit > unsigned GeoTIFF in a 16-bit signed one? > > Regards, > Nuno Nuno, You can use gdal_translate to convert data types. For instance: gdal_translate -ot UInt16 in.tif out.tif Note that by default gdal_translate will just truncate values, so any value less than zero will be mapped to zero going through the above transformation. Best regards, -- ---------------------------------------+-------------------------------------- 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 dbarron at DSWLLC.COM Wed Nov 24 07:47:13 2004 From: dbarron at DSWLLC.COM (Dan Barron) Date: Wed, 24 Nov 2004 07:47:13 -0800 Subject: mapserver java servlets In-Reply-To: Message-ID: Jose, Here's what works well for me and can be used in a servlet or any jsp file - courtesy of Umberto btw. 1) >> file JavaMpascript.java << package mapserver.java.mapscript; /** * Created by user: umberto at unicolet.org * Date: May 23, 2004 * License: GPL */ public class JavaMapscript { private static JavaMapscript instance = null; private JavaMapscript() { try { System.loadLibrary("mapscript"); } catch (Exception e) { e.printStackTrace(); System.err.println("* error loading native library *"); System.err.println("Error is: "+e); } System.out.println(" * mapscript native library loaded *"); } public static JavaMapscript getInstance() { if ( instance == null ) { instance = new JavaMapscript(); } return instance; } } 2) >> Make an instance of this class somewhere else. mapserver.java.mapscript.JavaMapscript.getInstance(); Your library will only be loaded once, at least that is how it behaves for me and has been reliable so far. Dan At 06:34 AM 11/24/2004, Chris wrote: >Jose, what servlet container are you using? > >Try initializing the servlet first without calling it -- you can do this >by putting it in web.xml like this: > > > test > {your class name} > 1 > > >This will force the init() to run without the service(). Also you should >avoid lazy initialization in Singleton classes. > >Regards, > >Chris >-----Original Message----- >From: Jose Luis Gonzalez [mailto:joseluismapserver at YAHOO.ES] >Sent: Wednesday, November 24, 2004 4:51 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] mapserver java servlets > >Hi Oliver, >I have just done what you recomended, leaving the JavaMapscript-Class so >the only thing he does is to load the library. >Then in another class, the one where I have my servlet, I wote in the: >public void init (ServletConfig cfg){ > >JavaMapscript.getInstance(); > >and later in the: >public void service (HttpServletRequest req, HttpServletResponse res){ > >I began writing my mapscript code, and it still gives me the same error: > >javax.servlet.ServletException: Native Library >/opt/SUNappserver/domains/domain1/lib/ext/libmapscript.so already loaded >in another classloader > >Do you know why? > >Thank you > >Jose Luis > >Oliver Wesp wrote: >Hi, > >you're on the right way to avoid the "Native library cannot be loaded >twice" error. Your JavaMapscript-Class implements a singleton so it's >loaded only once in Tomcat. But you should not add your mapscript code >to this class. Whenever you change the class Tomcat tries to reload and >complains about the library already loaded. >Write a second class and load the library with > >JavaMapscript.getInstance(); > >Add your mapscript code to that class and you should be fine. > >best regards >Oliver > >Jose Luis Gonzalez wrote: > > Hi to all > > I would implement mapserver in tomcat as servlet but I have found a lot of > > problems in start with it! > > > > So: > > 1) is there sites that implement mapserver as servlet in tomcat that I can > > view? > > 2) Some one have a piece of basic code that I can compile as servlet in > > tomcat for view how it run? I have load the java Howto. > > > > Do you have examples so I can see how can I work > > with mapserver functions and servlets? > > I have been seeing the wiki, but I can not really find what I want. > > > > I have done the example of loading a library that apears in: > > > > http://www.unicolet.org/mapserver/tomcat.html > > > > > > and it works, but when I want to complete the JavaMapscript.java code > > with other > > mapserver comands, it doesn't work: > > > > import edu.umn.gis.mapscript.*; > > > > public class JavaMapscript { > > private static JavaMapscript instance=null; > > > > private JavaMapscript() { > > try { > > System.loadLibrary("mapscript"); > > } catch (Exception e) { > > e.printStackTrace(); > > System.err.println("* error loading native library *"); > > System.err.println("Error is: "+e); > > } > > System.out.println(" * mapscript native library loaded *"); > > mapObj map = new mapObj("test.map"); > > imageObj img = map.draw(); > > //img.save("result", map);*/ > > } > > > > public static JavaMapscript getInstance() { > > System.out.println("Try to instantiate Mapscript"); > > System.out.flush(); > > if ( instance == null ) { > > instance = new JavaMapscript(); > > } > > return instance; > > } > > } > > > > And even worse, when I do any modifications and I put the new .class > > file in the > > server, I have an error because it says that the library was already > > loaded, and > > my only solution now to solve it is to turn off the server and turn it > > on again. > > > > Hope someone can help me > > > > Thank you > > > > Jose Luis > > > > ------------------------------------------------------------------------ > > > > Nuevo Correo Yahoo! > > > > > > >-- >Dipl.-Geogr. Oliver Wesp >Gesellschaft fuer geografische Datenverarbeitung >Binger Strasse 49-51 >D-55218 Ingelheim >fon: +49 6132 714818 >fax: +49 6132 714828 >http: www.gdv.com > > > > >Nuevo Correo Yahoo! > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgillies at FRII.COM Wed Nov 24 08:05:55 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 24 Nov 2004 09:05:55 -0700 Subject: Attention java programmers: mapscript thread safety Message-ID: Hi all, I'm really happy to see more Java mapscript activity. This next release coming up should be a very good one, and can be made even better if you will all download and try the 4.4.0beta3 available from the mapserver web site: http://cvs.gis.umn.edu/dist/mapserver-4.4.0-beta3.tar.gz If you discover a problem, do not delay in reporting it to the MapServer bugzilla. Now, about thread safety. I've been stress testing a multi-threaded mapscript application (Python + Zope) and identified one problem yesterday. The following use of the mapscript.styleObj constructor is not safe (excuse the Python example, I'm sure you can translate :) # add a style to classObj 'co' and return reference so = mapscript.styleObj(co) I'm not exactly sure what's up, or what the fix will be. Instead, you should so something like the following safe code: # add a new style to classObj 'co', returns the index new_style_index = co.insertStyle(mapscript.styleObj()) # get reference to the added style so = co.getStyle(new_style_index) There is a bug, #1086, in bugzilla for tracking this issue. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From James.Shanton2 at NSCORP.COM Wed Nov 24 08:34:36 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Wed, 24 Nov 2004 11:34:36 -0500 Subject: More than 2 Layers within group causing error Message-ID: We're trying to use the teraserver wms layers in our mapserver gis system, and are getting a weird error when I try to include more than 2 UTM zone layers within the group. Thanks ! Jim Here is how we are designing our map layer. LAYER NAME ortho-19 METADATA "wms_title" "USGS Digital Ortho-Quadrangles" "wms_srs" "EPSG:26919" #NAD83 UTM zone 19N "wms_extent" "-72 0 -66 90" # all zones are 6 deg Long. in width END GROUP "ortho" OFFSITE 255 255 255 STATUS OFF TYPE RASTER #MINSCALE 1500 #MAXSCALE 80000 CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FO RMAT=jpeg&styles=" PROJECTION "init=epsg:26919" #NAD83 UTM zone 19N END END ----------------------------------- Error that occurs when we try to add more than two layers to the group. Content-type: text/html msDrawMap(): Image handling error. Failed to draw layer named 'ortho-19'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. D:/MAPS/itraxtmp/110131775316320.img.tmp is not an EPPL file. msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 0 () for http://wms.jpl.nasa.gov/wms.cgi?REQUEST=map&LAYERS=us_landsat7 &STYLES=&FORMAT=png&TRANSPARENT=true&LAYERS=us%5Flandsat7&REQUEST=map&WMTVER =1.0.0&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=&HEIGHT=500&SRS=epsg:4326&WIDTH =600&BBOX=%2D79%2E799206%2C37%2E819571%2C%2D79%2E741181%2C37%2E867857&TRANSP ARENT=TRUE&EXCEPTIONS=INIMAGE From superbla3000 at GMX.NET Wed Nov 24 08:53:12 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Wed, 24 Nov 2004 17:53:12 +0100 Subject: [UMN_MAPSERVER-USERS] problem after switching to linux In-Reply-To: <000801c4d22e$830fdd00$6402a8c0@jebediah> Message-ID: thanks for your answers, I already set 777 to everything, but it doesn't help. And I just copied the apache2 conf.d/maplab.conf which is installed with the lingis rpms, I think this should work... Could it be a proj4 problem? Do i have to embed something into my php files? I am still wondering, what this means: [MapServer Error]: msProcessProjection(): unknown projection id regards Joerg From sirronj at PACBELL.NET Wed Nov 24 08:53:30 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 24 Nov 2004 08:53:30 -0800 Subject: ok - got zoom to work - another question In-Reply-To: <1101304211.1541.32.camel@ubet.gomoos.org> Message-ID: Eric Thanks for the help so far. What am I trying to accomplish? 1) 1) Learn how to do simple data display from my Mysql database to a map - This I have achieved by coloring the polygons which represent where certain teachers are by their zip code within California 2) Add zoom capability to my map so that users can zoom into a polygon ( or zoom out ) - I have also achieved this 3) When user zooms into a colored polygon - I would like to put an ellipse for each teacher in that polygon - This I have not achieved and I am having no end of problems trying to achieve Since this whole deal is a proof of concept type project so that we will get the go-ahead for more advanced projects utilizing mapserver, I would like to do it as simply as possible. I have been more-or-less working on my own time to do this because I feel that it will be of great benefit to my shop. I am very familiar with ArcView and ArcIMS from installation to modification and extension and I have found it be a bit painful to use - little or no support for LAMP environments and very windows-centric and very very costly. I hope I have clarified my situation. As far as data goes - I have shape files of California with zip code data for the zip region polygons. Thanks again for putting up with me. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Eric Bridger Sent: Wednesday, November 24, 2004 5:50 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question On Tue, 2004-11-23 at 17:15, Joseph Norris wrote: > Thanks Eric - so as I understand you: > > MAP > NAME CalMap > STATUS ON > EXTENT 5890870.385 -192053.200 8943310.847 3226086.749 > IMAGETYPE GIF > SIZE 600 600 > SHAPEPATH > "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata > " > IMAGECOLOR 255 255 255 > TEMPLATEPATTERN "map" > > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > > > LAYER > NAME "cal_zp_st" > TYPE POLYGON > DATA "cal_zp_st" > STATUS DEFAULT > CLASSITEM "ZCTA" > > CLASS > EXPRESSION > /94087|90408|94107|95118|94530|74580|95404|93711|94904|92030|94121|91042|961 > 01|94523|95548|95658|92057|92503/ > STYLE > SYMBOL 'circle' > SIZE 2 > COLOR 255 102 102 > END > > END > > CLASS > EXPRESSION /./ > OUTLINECOLOR 204 204 204 > END > END > LAYER > NAME "poly_minscale" > TYPE POLYGON > DATA "cal_zp_st" > STATUS DEFAULT > MINSCALE ???? > CLASS > SYMBOL 'circle' > SIZE 2 > COLOR 255 102 102 > END > END > LAYER > NAME "poly_maxscale" > TYPE POLYGON > DATA "cal_zp_st" > STATUS DEFAULT > MAXSCALE???? > I don't know what the class would be if any > END > > > END # end map from header > > How do I determine the minscale and maxscale? > > Thanks > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Eric Bridger > Sent: Monday, November 22, 2004 9:53 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question > > At 08:39 AM 11/22/2004 -0800, Joseph Norris wrote: > >Everyone, > > > >I have my zoom working but now I would like to tackle something else. I am > >putting an ellipse in the zip polygons if there is a 1-more teachers there. > >For each zip there maybe a max of 10 teachers. I would like an ellipse or > >symbol for each one so that when the user zooms into the polygon they can > >see a symbol for each teacher. Can I do this within the class? If so how > or > >would be the best way to handle this? > > > You can do this in the map file by creating two layers and using MAXSCALE, > MINSCALE. > Layer 1 has one ellipse per zip wherever there are 1-10 teachers. > MINSCALE is set so that it won't appear when you are zoomed in. > Layer 2 has one ellipse for each teacher and has MAXSCALE set so that it > turns on when Layer 1 is turned off. > > Of course if you are using Perl Mapscript you will need to calculate the > scale yourself and turn on and off the layers yourself. > Here's and example: > > my $current_scale = calculateScale($map, $imgext[0], $imgext[2]); > # From mapserver3.6.4: mapscale.c msCalculateScale(). This is not a > precision thing. We don't worry about > # msAdjustExtent() since in all our maps, image SIZE has same aspect ratio > as the map EXTENT. > # $minx and $maxx are optional in which case the current extent of the map > is used. > > # Be careful about the current map's extent. zoomMap() changes the extents. > > sub calculateScale{ > my ($map, $minx, $maxx) = @_; > if(!$minx){ > $minx = $map->{extent}->{minx}; > $maxx = $map->{extent}->{maxx}; > } > my @inchesPerUnit = (1, 12, 63360.0, 39.3701, 39370.1, 4374754); > my $width = $map->{width}; > my $units = $map->{units}; # index into unitsPerUnit array > my $resolution = $map->{resolution}; > my $md = $width / ($resolution * $inchesPerUnit[$units]); > my $gd = $maxx - $minx; > return($gd/$md); > } Joseph, I'm not exactly sure what your data looks like or what you are trying to achieve. But by using two layers you can control what exactly is displayed via different CLASS and EXPRESSION's at different scales. The scale is determined by the current map's extents, (AFTER any zooming in which you calculated new extents based on the zoom direction. (Actually this call: my $current_scale = calculateScale($map, $imgext[0], $imgext[2]); gets the scale of the map which was just submitted, based on: @imgext = split(' ', $q->param('imgext')); where imgext is the extent just submitted with the form.) Typically you'd want to call $scale = calculateScale($map) (after your zoom calculations have changed the map's extents. What MIXSCALE, MAXSCALE to use in your map file must be determined by trail and error. HTH. Eric From jeff at PROPERTYKEY.COM Wed Nov 24 08:58:32 2004 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Wed, 24 Nov 2004 10:58:32 -0600 Subject: Attention java programmers: mapscript thread safety In-Reply-To: Message-ID: Sean Gillies wrote: > Hi all, > > I'm really happy to see more Java mapscript activity. This next > release coming up should be a very good one, and can be made even > better if you will all download and try the 4.4.0beta3 available > from the mapserver web site: > > http://cvs.gis.umn.edu/dist/mapserver-4.4.0-beta3.tar.gz > > If you discover a problem, do not delay in reporting it to the > MapServer bugzilla. Since this thread should catch the attention of the Java/MapServer contingent, I thought it'd be a good place for a request. Does anyone have a Windows binary with a Java MapScript library that they can share? Alternately, has anybody successfully done it? Can it be built with MinGW or some other free compiler? I'm not set up to compile something like this on Windows and the whole process seems like it could turn into a serious chore just for some experimenting. -- Jeff Hoffmann jeff at propertykey.com From sobomsawin at KASSINI.COM Wed Nov 24 09:29:21 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 24 Nov 2004 12:29:21 -0500 Subject: [UMN_MAPSERVER-USERS] problem after switching to linux In-Reply-To: <41A4BC78.7040201@gmx.net> Message-ID: You don't have to embed anything in your PHP, but you must compile Mapserver with proj4. You can verify that with phpinfo(), you will see a section about Mapscript if it is well installed, describing the extensions installed with Mapserver. Good luck! Skweda O'Bomsawin -----Message d'origine----- De?: joerg pfeiffer [mailto:superbla3000 at gmx.net] Envoy??: 24 novembre 2004 11:53 ??: Skweda O'Bomsawin; MAPSERVER-USERS at LISTS.UMN.EDU Objet?: RE : [UMN_MAPSERVER-USERS] problem after switching to linux thanks for your answers, I already set 777 to everything, but it doesn't help. And I just copied the apache2 conf.d/maplab.conf which is installed with the lingis rpms, I think this should work... Could it be a proj4 problem? Do i have to embed something into my php files? I am still wondering, what this means: [MapServer Error]: msProcessProjection(): unknown projection id regards Joerg --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 From eric at GOMOOS.ORG Wed Nov 24 09:29:56 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Wed, 24 Nov 2004 12:29:56 -0500 Subject: ok - got zoom to work - another question In-Reply-To: Message-ID: On Wed, 2004-11-24 at 11:53, Joseph Norris wrote: > > > 3) When user zooms into a colored polygon - I would like to put an ellipse > for each teacher in that polygon - This I have not achieved and I am having > no end of problems trying to achieve > This is still not clear to me. Sounds like the only shape files you have are zip code polygons. But an ellipse is a point. To put an ellipse (POINT) on the map you will need coordinates for each teacher. Doesn't sound to me like you have that data. There could be a number of ways to handle this. Pick some lat/lon within the polygon as a starting point, then increment the longitude or the CLASS OFFSET property for each succeeding point => OOOOO or O O O O Drawing the points after the polygons or putting your point layer after your polygon layer in the map file means the ellipses will appear over the polygon. Since you are using mapscript I'm sure it is solvable. Eric From daniel.faivre at CAMPTOCAMP.COM Wed Nov 24 09:45:53 2004 From: daniel.faivre at CAMPTOCAMP.COM (Daniel FAIVRE) Date: Wed, 24 Nov 2004 18:45:53 +0100 Subject: Number of users Message-ID: Hello, Is anybody have an idea of how many peoples use (and enjoy ;-) !) Mapserver ? For DM solutions: How many downloads ? Thank u for your help Daniel FAIVRE From David.Fawcett at STATE.MN.US Wed Nov 24 09:33:53 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Wed, 24 Nov 2004 11:33:53 -0600 Subject: ok - got zoom to work - another question Message-ID: Joseph, Does this accurately describe what you are trying to do? You have a map of California ZipCodes and you have classified them so that ZipCodes with teachers of interest are colored differently than ZipCodes where there are no teachers of interest. Once a user zooms to minimum scale, you want the ZipCode polygons with teachers of interest to be symbolized with a 'dot' for each teacher. It looks like you have successfully set up two complimentary scale-dependent layers. From kenlord at GMAIL.COM Wed Nov 24 09:57:54 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 24 Nov 2004 09:57:54 -0800 Subject: How to create a legend containing ONLY classes shown in current map? In-Reply-To: Message-ID: Dave, I do use conditional statements in my html legend templates for other purposes ... the mapserver cgi conditional statements combined with javascript to colour the table rows of a dynamic legend according to groups of layers, but otherwise no, as long as any part of a layer is within a scale at which it could be drawn on the map, all the classes of a layer will still be shown in the legend. The naming scheme I use simply puts the burden on the user of the map to understand that a layer may be on, but that some of the classes may not be visible at a particular range of scales ... but at least the user can see in the class names at what scales the different classes will be visible and zoom in or out accordingly. I could imagine a more complicated package of javascript in the templates, that could detect the layer names and hide them when appropriate, but it would add work, hardcoding layer names in the javascript, for you any time you add a new layer to the map file, probably not worth the effort, and the user may never even realize that there is more data available to be seen if he/she zooms in or out. Eduardo, I have also had the problem you describe, wanting to hide the layers off the legend if you are panned out of the extent of the layer. Perhaps if you were storing all the features in PostGIS, and worked some extra queries of the database into your system you could accomplish this, but again, probably not worth the effort in my opinion and it might lead to unneeded confusion for the user if its a dynamic legend that also switches the layers on and off. Either way, there are lots of ways availble to customize how the legend is implemented. For example, a simple ASP page on the side that modifies '&layer=xxx' variables in the mapserver URL will give you controls in the legend to turn groups of layers on and off together. Cheers, Ken Lord Vancouver BC On Wed, 24 Nov 2004 08:55:15 -0600, David Fawcett wrote: > > > Ken, > > So then based on your naming scheme, I assume that you use conditional > statements in your html legend template to determine which classes > should show? > > (html legend info at > http://mapserver.gis.umn.edu/doc42/html-legend-howto.html) > > David. > > David J. Fawcett > MN Office of Environmental Assistance > > >>> Ken Lord 11/23/2004 5:30:36 PM >>> > MapServer CGI will not hide individual classes based on map scale in > the way that you are hoping to do. > > The way I have attacked this is to place the scale range at which the > class is visible within the name of the class, so that the name of the > class and its viewable scale range is listed in the legend. > > hypothetical example of names given to classes in a layer that > displays highways/roads/trails at different scales: > > Highway < 1:50,000 > Local Roads < 1:20,000 > Trails < 1:5,000 > > Cheers, > Ken Lord > Vancouver BC > > On Tue, 23 Nov 2004 11:08:24 -0600, Daniele Margotti > wrote: > > Hi, > > I have another question about the legend... > > > > How can I tell CGI Mapserver to create a legend containing ONLY > classes > > that are visible in the current map? > > > > Now I get a legend that contains ALL classes of the selected layer, > even > > if I have zoomed to a very close scale (and I view only one class in > the > > map). > > > > Can you help me? > > Is it possible? > > > > Thank you, > > Daniele > > > From sirronj at PACBELL.NET Wed Nov 24 10:13:51 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 24 Nov 2004 10:13:51 -0800 Subject: ok - got zoom to work - another question In-Reply-To: Message-ID: David, Thank you for your insight into my scenario. You have perceived correctly on what I am trying to do. I agree with your point about dot-density maps. This scenario is only meant to be a "dog-and-pony" show and so the dots would have no real earth relevance other than to say - wow within this zip polygon there are 5 teachers, 6 teachers, etc.... ( very small data set - no more than 0-20 teachers per zip area ). I have successfully been able to show a list of teachers by polygon - in another bit of html by the map. The lengthy that you mention is something I would like to avoid due to the nature of the project. So that leaves me with the open-ended question to all - what suggestions do any and all have with regard to the last part of what I am trying to accomplish - namely - allow the user to zoom into a polygon and see some representation of what's there - a label of the actual number of teachers? I am opened to that but at this point in my mapserver education, I am limited in my understanding of Labeling. Can a label be placed within the minscale/maxscale scenario so that when you zoom in you see the label and when you zoom out it disappears? Please bare with me - I have made a lot of progress in the past three days - a lot more than I thought I would and I would like to see this through to the end. Thanks again. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of David Fawcett Sent: Wednesday, November 24, 2004 9:34 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question Joseph, Does this accurately describe what you are trying to do? You have a map of California ZipCodes and you have classified them so that ZipCodes with teachers of interest are colored differently than ZipCodes where there are no teachers of interest. Once a user zooms to minimum scale, you want the ZipCode polygons with teachers of interest to be symbolized with a 'dot' for each teacher. It looks like you have successfully set up two complimentary scale-dependent layers. From sirronj at PACBELL.NET Wed Nov 24 10:17:39 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 24 Nov 2004 10:17:39 -0800 Subject: ok - got zoom to work - another question In-Reply-To: <1101317402.1540.48.camel@ubet.gomoos.org> Message-ID: Eric, From keon at NACSE.ORG Wed Nov 24 10:31:35 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Wed, 24 Nov 2004 10:31:35 -0800 Subject: ok - got zoom to work - another question In-Reply-To: Message-ID: On 11/24/2004 10:13 AM, Joseph Norris wrote: > The lengthy that you mention is something I would like > to avoid due to the nature of the project. So that leaves me with the > open-ended question to all - what suggestions do any and all have with > regard to the last part of what I am trying to accomplish - namely - allow > the user to zoom into a polygon and see some representation of what's > there - a label of the actual number of teachers? I am opened to that but at > this point in my mapserver education, I am limited in my understanding of > Labeling. Can a label be placed within the minscale/maxscale scenario so > that when you zoom in you see the label and when you zoom out it disappears? Yes. Look for LABELMINSCALE and LABELMAXSCALE at http://mapserver.gis.umn.edu/doc42/mapfile-reference.html. Just store the desired label as an attribute within the shapefile. There are also ways to apply labels dynamically via mapscript. --Dylan From bob.basques at CI.STPAUL.MN.US Wed Nov 24 10:40:33 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 24 Nov 2004 12:40:33 -0600 Subject: Utilities Message-ID: All, I've used the tileindexing utility a couple of times. It there something available to actually tile up a large raster and or SHP file into the individual tiles? A combination program would be good too, where the tileindex is generated at the same time. Thanks bobb From dmorissette at DMSOLUTIONS.CA Wed Nov 24 10:34:55 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 24 Nov 2004 13:34:55 -0500 Subject: Twiki vulnerability Message-ID: Hi, If you are running Twiki on any of your servers then please read this: We've found that Twiki has a vulnerability and that's how maptools.org has been compromised last week (and another bunch of attempts made since we brought the server back up). This is a very serious threats and lots of sites seem to have been attacked in the last few days so I would encourage anyone with Twiki on their server to take it down until they install a patch. For more details: http://twiki.org/cgi-bin/view/Codev/SecurityAlertExecuteCommandsWithSearchHackReports You could also search your Apache logs for the string "__BEGIN__" to find out if your server may have been attacked/compromised already. Daniel P.S. This also explains why the Chameleon Twiki on maptools.org is currently unavailable. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From woodbri at SWOODBRIDGE.COM Wed Nov 24 10:34:29 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 24 Nov 2004 13:34:29 -0500 Subject: ok - got zoom to work - another question In-Reply-To: Message-ID: Joseph, The easiest way to get a feel for scale is to use an html template and cgi mode of mapserver, where you display the scale in html. you could also add a non-scalling label to the map where you set the text to be the mapserver scale then every time you zoom you will see the scale of the image. then turn off the layer in production. If you only have 10 max teachers per zipcode them just draw a circle at the zipcode x/y and set the size = #teacher*2 so you will get circles between 2 and 20 and see the relative number of teachers. You can do both of these in Mapscript, maybe some of the Perl Monks would be willing to offer some snippets on how to do these. -Steve Joseph Norris wrote: > Eric, > >>From observations of other mapserver users, I am beginning to think that it > might be a better show if I could just put a label of the number of teachers > that would appear within the polygon when the user zooms into it. > > The min/max scale thing is still a point of contention - especially when the > phrase "trial and error" is used. With what number to I start? With what > number to I finish? So that I might get something within the trial and error > boundaries at least to make some change. > > Thanks again. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Eric Bridger > Sent: Wednesday, November 24, 2004 9:30 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question > > On Wed, 2004-11-24 at 11:53, Joseph Norris wrote: > >> >>3) When user zooms into a colored polygon - I would like to put an ellipse >>for each teacher in that polygon - This I have not achieved and I am > > having > >>no end of problems trying to achieve >> > > This is still not clear to me. Sounds like the only shape files you have > are zip code polygons. But an ellipse is a point. > > To put an ellipse (POINT) on the map you will need coordinates for each > teacher. Doesn't sound to me like you have that data. > > There could be a number of ways to handle this. Pick some lat/lon within > the polygon as a starting point, then increment the longitude or the > CLASS OFFSET property for each succeeding point => > OOOOO or > O > O > O > O > Drawing the points after the polygons or putting your point layer after > your polygon layer in the map file means the ellipses will appear over > the polygon. > > Since you are using mapscript I'm sure it is solvable. > > Eric > From keon at NACSE.ORG Wed Nov 24 10:43:21 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Wed, 24 Nov 2004 10:43:21 -0800 Subject: Utilities In-Reply-To: <41A4D5A1.10202@ci.stpaul.mn.us> Message-ID: On 11/24/2004 10:40 AM, Bob Basques wrote: > All, > > I've used the tileindexing utility a couple of times. It there > something available to actually tile up a large raster and or SHP file > into the individual tiles? > > A combination program would be good too, where the tileindex is > generated at the same time. If you have access to ArcInfo, you can use the following AML to split a raster into tiles: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?CreatingTiles Here is an Avenue script that will split a shapefile: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VectorTileIndex There is also this: http://xserve.flids.com/pipermail/gdal-dev/2004-September/007049.html which I haven't played around with yet. There may be some other "splitting" methods mentioned in the mapserver-users archives... For creating the tileindexes, use gdaltindex for rasters and tile4ms for shapefiles. --Dylan From grs at GRSGIS.COM Wed Nov 24 10:41:15 2004 From: grs at GRSGIS.COM (Geographic Resource Solutions) Date: Wed, 24 Nov 2004 10:41:15 -0800 Subject: itemnquery and EXPRESSION Documentation Message-ID: An HTML attachment was scrubbed... URL: From superbla3000 at GMX.NET Wed Nov 24 10:51:49 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Wed, 24 Nov 2004 19:51:49 +0100 Subject: msProcessProjection(): unknown projection id Message-ID: hello, i installed mapserver with the lingis rpms. Everything seemed to be fine, but when I am running my .phtml files I get the error: msProcessProjection(): unknown projection id I tried to change the projection, I completely deleted the projection, I completely deleted all the contents of the whole file, but nothing happens. I always get this error. all directories have 777 the paths are ok I installed all lingis packages mapserv -v: MapServer version 4.2.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE MapServer version 4.2.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE .phtml runs successfuly as cgi the cmplete error Warning: [MapServer Error]: msProcessProjection(): unknown projection id in /home/JP/public_html/worldmap/include/mapclassesNeu3.php on line 58 Warning: Failed to open map file /home/JP/public_html/worldmap/mapfiles/worldmap4.map in /home/JP/public_html/worldmap/include/mapclassesNeu3.php on line 58 But the mapfile is there, it has 777, the directory has 777 and if I write readfile($this->mapfile) in my class, it writes the complete mapfile......! In XP everything worked fine, I have no idea anymore, thanks for your help Joerg From sirronj at PACBELL.NET Wed Nov 24 11:11:55 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 24 Nov 2004 11:11:55 -0800 Subject: ok - got zoom to work - another question In-Reply-To: <41A4D387.7000506@nacse.org> Message-ID: Thanks Dylan, A question: I have found these parms labelminscale and labelmaxscale. How do I set the label for "23 teachers" or "10 teachers" so that - as I understand when the user zooms into a polygon, the see this label. Does that have something to do with Feature object? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Dylan Keon [mailto:keon at nacse.org] Sent: Wednesday, November 24, 2004 10:32 AM To: Joseph Norris Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question On 11/24/2004 10:13 AM, Joseph Norris wrote: > The lengthy that you mention is something I would like > to avoid due to the nature of the project. So that leaves me with the > open-ended question to all - what suggestions do any and all have with > regard to the last part of what I am trying to accomplish - namely - allow > the user to zoom into a polygon and see some representation of what's > there - a label of the actual number of teachers? I am opened to that but at > this point in my mapserver education, I am limited in my understanding of > Labeling. Can a label be placed within the minscale/maxscale scenario so > that when you zoom in you see the label and when you zoom out it disappears? Yes. Look for LABELMINSCALE and LABELMAXSCALE at http://mapserver.gis.umn.edu/doc42/mapfile-reference.html. Just store the desired label as an attribute within the shapefile. There are also ways to apply labels dynamically via mapscript. --Dylan From warmerdam at POBOX.COM Wed Nov 24 11:17:06 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 24 Nov 2004 14:17:06 -0500 Subject: msProcessProjection(): unknown projection id In-Reply-To: <41A4D845.9070205@gmx.net> Message-ID: joerg pfeiffer wrote: > hello, > > i installed mapserver with the lingis rpms. Everything seemed to be > fine, but when I am running my .phtml files I get the error: > > msProcessProjection(): unknown projection id > > I tried to change the projection, I completely deleted the projection, I > completely deleted all the contents of the whole file, but nothing > happens. I always get this error. Joerg, The message means an unrecognised value was passed to pj_init() for the proj= argument of a projection definition. This is quite unusual. It is almost certain that somewhere in your .map file or your PHP script there will be something setting a projection and for some reason doing so improperly. If you are willing to try it out, you might want to add a debug message in proj/src/pj_init.c near the line: if (!s) { pj_errno = -5; goto bum_call; } Change this to: if (!s) { fprintf( stderr, "unknown proj=%s\n", name); pj_errno = -5; goto bum_call; } Of course, you will need to download, build and install a new PROJ.4 from source to make this change. 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 eric at GOMOOS.ORG Wed Nov 24 11:19:40 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Wed, 24 Nov 2004 14:19:40 -0500 Subject: ok - got zoom to work - another question In-Reply-To: Message-ID: On Wed, 2004-11-24 at 13:17, Joseph Norris wrote: > Eric, > > >From observations of other mapserver users, I am beginning to think that it > might be a better show if I could just put a label of the number of teachers > that would appear within the polygon when the user zooms into it. > > The min/max scale thing is still a point of contention - especially when the > phrase "trial and error" is used. With what number to I start? With what > number to I finish? So that I might get something within the trial and error > boundaries at least to make some change. > > Thanks again. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); By trial and error what I meant was to set your perl script to write the scale to say, your Apache log or web log, or some temp file, every time the script runs. Zoom in N times and you've got a list of scales from the maximum down to a far as your zoom. Then use those values in your map file. Re: the label. You can easily create two layers, one with no lablel for your maximum to mid scale. And one with a label for the smaller scales. From keon at NACSE.ORG Wed Nov 24 11:28:08 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Wed, 24 Nov 2004 11:28:08 -0800 Subject: ok - got zoom to work - another question In-Reply-To: Message-ID: > On 11/24/2004 10:13 AM, Joseph Norris wrote: > >> The lengthy that you mention is something I would > > like > >>to avoid due to the nature of the project. So that leaves me with the >>open-ended question to all - what suggestions do any and all have with >>regard to the last part of what I am trying to accomplish - namely - allow >>the user to zoom into a polygon and see some representation of what's >>there - a label of the actual number of teachers? I am opened to that but > > at > >>this point in my mapserver education, I am limited in my understanding of >>Labeling. Can a label be placed within the minscale/maxscale scenario so >>that when you zoom in you see the label and when you zoom out it > > disappears? > > Yes. Look for LABELMINSCALE and LABELMAXSCALE at > http://mapserver.gis.umn.edu/doc42/mapfile-reference.html. Just store > the desired label as an attribute within the shapefile. There are also > ways to apply labels dynamically via mapscript. > > --Dylan > > On 11/24/2004 11:11 AM, Joseph Norris wrote: >> Thanks Dylan, >> >> A question: I have found these parms labelminscale and labelmaxscale. How >> do I set the label for "23 teachers" or "10 teachers" so that - as I >> understand when the user zooms into a polygon, the see this label. Does that >> have something to do with Feature object? >> Do you currently have those values (number of teachers) associated with the polygons as an attribute in the shapefile? If so, it will be easy to do the labeling via the mapfile. If not, you will need to figure out a way to make the values available to mapserver/mapscript (not sure which you're using). I did see you mention something about extracting data from MySQL - is that where you're storing the values? If you want to do it via the mapfile, you could use the TEXT attribute to help with the labeling. In your case it would be something like TEXT ([NUM_TEACH] teachers) Example: LAYER NAME counties TYPE POLYGON DATA orcnty24 STATUS ON LABELITEM "COUNTY_NAM" LABELMINSCALE 540000 LABELMAXSCALE 2400000 CLASS NAME "Counties" OUTLINECOLOR 50 50 50 COLOR -1 -1 -1 TEXT ([COUNTY_NAM] CO) LABEL TYPE BITMAP SIZE SMALL POSITION CC WRAP " " COLOR 0 0 0 END END END --Dylan From bob.basques at CI.STPAUL.MN.US Wed Nov 24 11:41:53 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 24 Nov 2004 13:41:53 -0600 Subject: Utilities In-Reply-To: <41A4D649.4090302@nacse.org> Message-ID: Dylan Keon wrote: > On 11/24/2004 10:40 AM, Bob Basques wrote: > >> All, >> >> I've used the tileindexing utility a couple of times. It there >> something available to actually tile up a large raster and or SHP file >> into the individual tiles? >> >> A combination program would be good too, where the tileindex is >> generated at the same time. > > > If you have access to ArcInfo, you can use the following AML to split > a raster into tiles: > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?CreatingTiles > > Here is an Avenue script that will split a shapefile: > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VectorTileIndex > > There is also this: > http://xserve.flids.com/pipermail/gdal-dev/2004-September/007049.html > which I haven't played around with yet. > > There may be some other "splitting" methods mentioned in the > mapserver-users archives... > > For creating the tileindexes, use gdaltindex for rasters and tile4ms > for shapefiles. This is the first time I've seen the refence to "tile4ms" before. I actually have a RASTER tiler that I built to run inside of AutoCAD. It works well. But I didn't have anything for SHP files. I could modify a DWG tiler that i have to output SHPs. I was just wondering about what was available already. Thanks for the info. bobb > > --Dylan > From David.Fawcett at STATE.MN.US Wed Nov 24 11:34:30 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Wed, 24 Nov 2004 13:34:30 -0600 Subject: ok - got zoom to work - another question Message-ID: Joseph, The most simple way to do this is to have a field in your shapefile with text for each label. (e.g. 23 teachers, 10 teachers, etc.) Call it something like 'labeltext'. Then in the Layer Object in the Map File for the layer that you want to label, place a LABELITEM. LABELITEM 'labeltext' If you are just storing the number of teachers in a ZipCode in the shapefile, you can concatonate a label together by using. TEXT ([NUM_TEACHERS] Teachers) in your class. David. >>> Joseph Norris 11/24/2004 1:11:55 PM >>> Thanks Dylan, A question: I have found these parms labelminscale and labelmaxscale. How do I set the label for "23 teachers" or "10 teachers" so that - as I understand when the user zooms into a polygon, the see this label. Does that have something to do with Feature object? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Dylan Keon [mailto:keon at nacse.org] Sent: Wednesday, November 24, 2004 10:32 AM To: Joseph Norris Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question On 11/24/2004 10:13 AM, Joseph Norris wrote: > The lengthy that you mention is something I would like > to avoid due to the nature of the project. So that leaves me with the > open-ended question to all - what suggestions do any and all have with > regard to the last part of what I am trying to accomplish - namely - allow > the user to zoom into a polygon and see some representation of what's > there - a label of the actual number of teachers? I am opened to that but at > this point in my mapserver education, I am limited in my understanding of > Labeling. Can a label be placed within the minscale/maxscale scenario so > that when you zoom in you see the label and when you zoom out it disappears? Yes. Look for LABELMINSCALE and LABELMAXSCALE at http://mapserver.gis.umn.edu/doc42/mapfile-reference.html. Just store the desired label as an attribute within the shapefile. There are also ways to apply labels dynamically via mapscript. --Dylan From sctweedy at NRCAN.GC.CA Wed Nov 24 11:40:47 2004 From: sctweedy at NRCAN.GC.CA (Tweedy, Scott) Date: Wed, 24 Nov 2004 14:40:47 -0500 Subject: WMS Request Question - possible BBOX bug. Message-ID: Leave it to other users to bring something up. I'm feeding information to MapServer through a PHP form (for demonstration purposes) and a user tried this combination for the BBOX -89,50,-78.35x,60.0xxxx (my regular expression didn't pick up the letters properly). The WMS request after this is correct and it produced the proper image, is this a bug in MapServer? I don't know of any projection system that accepts letters for a bounding box. Why didn't the letters crash MapServer or simply produce no image? I'm using MapServer 4.3: MapServer version 4.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE here's the actual request format: SERVERNAME?version=1.1.1&Layers=Mineral%20Deposits%20of%20Canada&BBOX=-89,50 ,-78.35x,60.0xxxx&request=getMap Thanks in advance once again. st From sirronj at PACBELL.NET Wed Nov 24 13:38:17 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 24 Nov 2004 13:38:17 -0800 Subject: ok - got zoom to work - another question In-Reply-To: Message-ID: Thanks for this information. And as always it leads to another question. When you say add a field to your shapefile - are you referring to just the dbf file or is there something I have to do to the shp file itself? This would be a general type question on adding any type data to shapefiles - what is the process for doing this? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of David Fawcett Sent: Wednesday, November 24, 2004 11:35 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question Joseph, The most simple way to do this is to have a field in your shapefile with text for each label. (e.g. 23 teachers, 10 teachers, etc.) Call it something like 'labeltext'. Then in the Layer Object in the Map File for the layer that you want to label, place a LABELITEM. LABELITEM 'labeltext' If you are just storing the number of teachers in a ZipCode in the shapefile, you can concatonate a label together by using. TEXT ([NUM_TEACHERS] Teachers) in your class. David. >>> Joseph Norris 11/24/2004 1:11:55 PM >>> Thanks Dylan, A question: I have found these parms labelminscale and labelmaxscale. How do I set the label for "23 teachers" or "10 teachers" so that - as I understand when the user zooms into a polygon, the see this label. Does that have something to do with Feature object? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Dylan Keon [mailto:keon at nacse.org] Sent: Wednesday, November 24, 2004 10:32 AM To: Joseph Norris Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question On 11/24/2004 10:13 AM, Joseph Norris wrote: > The lengthy that you mention is something I would like > to avoid due to the nature of the project. So that leaves me with the > open-ended question to all - what suggestions do any and all have with > regard to the last part of what I am trying to accomplish - namely - allow > the user to zoom into a polygon and see some representation of what's > there - a label of the actual number of teachers? I am opened to that but at > this point in my mapserver education, I am limited in my understanding of > Labeling. Can a label be placed within the minscale/maxscale scenario so > that when you zoom in you see the label and when you zoom out it disappears? Yes. Look for LABELMINSCALE and LABELMAXSCALE at http://mapserver.gis.umn.edu/doc42/mapfile-reference.html. Just store the desired label as an attribute within the shapefile. There are also ways to apply labels dynamically via mapscript. --Dylan From David.Fawcett at STATE.MN.US Wed Nov 24 13:48:32 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Wed, 24 Nov 2004 15:48:32 -0600 Subject: ok - got zoom to work - another question Message-ID: Just another column in the shapefile .dbf >>> "Joseph Norris" 11/24/2004 3:38:17 PM >>> Thanks for this information. And as always it leads to another question. When you say add a field to your shapefile - are you referring to just the dbf file or is there something I have to do to the shp file itself? This would be a general type question on adding any type data to shapefiles - what is the process for doing this? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of David Fawcett Sent: Wednesday, November 24, 2004 11:35 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question Joseph, The most simple way to do this is to have a field in your shapefile with text for each label. (e.g. 23 teachers, 10 teachers, etc.) Call it something like 'labeltext'. Then in the Layer Object in the Map File for the layer that you want to label, place a LABELITEM. LABELITEM 'labeltext' If you are just storing the number of teachers in a ZipCode in the shapefile, you can concatonate a label together by using. TEXT ([NUM_TEACHERS] Teachers) in your class. David. >>> Joseph Norris 11/24/2004 1:11:55 PM >>> Thanks Dylan, A question: I have found these parms labelminscale and labelmaxscale. How do I set the label for "23 teachers" or "10 teachers" so that - as I understand when the user zooms into a polygon, the see this label. Does that have something to do with Feature object? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Dylan Keon [mailto:keon at nacse.org] Sent: Wednesday, November 24, 2004 10:32 AM To: Joseph Norris Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question On 11/24/2004 10:13 AM, Joseph Norris wrote: > The lengthy that you mention is something I would like > to avoid due to the nature of the project. So that leaves me with the > open-ended question to all - what suggestions do any and all have with > regard to the last part of what I am trying to accomplish - namely - allow > the user to zoom into a polygon and see some representation of what's > there - a label of the actual number of teachers? I am opened to that but at > this point in my mapserver education, I am limited in my understanding of > Labeling. Can a label be placed within the minscale/maxscale scenario so > that when you zoom in you see the label and when you zoom out it disappears? Yes. Look for LABELMINSCALE and LABELMAXSCALE at http://mapserver.gis.umn.edu/doc42/mapfile-reference.html. Just store the desired label as an attribute within the shapefile. There are also ways to apply labels dynamically via mapscript. --Dylan From woodbri at SWOODBRIDGE.COM Wed Nov 24 14:06:36 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 24 Nov 2004 17:06:36 -0500 Subject: ok - got zoom to work - another question In-Reply-To: Message-ID: Joseph, You can write a Perl script to read the file.dbf using the XBase.pm module in perl and write a new one with more columns in it. As long as you don't delete and records and change the order of the records (you can change the order and the number of the fields in a record) you can rename it to file.dbf and the shapefile will now work with this new attribute information. An attribute field in a shapefile IS the dbf records associated to the shape records. The association is done by record numbers. i.e. shape #1 is record number one and it's attributes are in record number one of the dbf file. Regarding you teachers issue, if you have the number of teachers, and lat/lon in mysql, then you can dynamically place the markers using mapscript without needing a shapefile. For each record in mysql, you would dynamically construct a point object and set the lat/lon position to the value in mysql and set the text of the label object to "$num teachers" there have been lots a posts about how to do this along with perl and php snippets. Or you can dynamically set the size of a marked based on the number of teachers as I suggested in an earlier post. -Steve Joseph Norris wrote: > Thanks for this information. And as always it leads to another question. > When you say add a field to your shapefile - are you referring to just the > dbf file or is there something I have to do to the shp file itself? This > would be a general type question on adding any type data to shapefiles - > what is the process for doing this? > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of David Fawcett > Sent: Wednesday, November 24, 2004 11:35 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question > > Joseph, > > The most simple way to do this is to have a field in your shapefile > with text for each label. (e.g. 23 teachers, 10 teachers, etc.) > Call it something like 'labeltext'. > > Then in the Layer Object in the Map File for the layer that you want to > label, place a LABELITEM. > > LABELITEM 'labeltext' > > If you are just storing the number of teachers in a ZipCode in the > shapefile, you can concatonate a label together by using. > > TEXT ([NUM_TEACHERS] Teachers) in your class. > > > David. > > > > > >>>>Joseph Norris 11/24/2004 1:11:55 PM >>> > > Thanks Dylan, > > A question: I have found these parms labelminscale and labelmaxscale. > How > do I set the label for "23 teachers" or "10 teachers" so that - as I > understand when the user zooms into a polygon, the see this label. Does > that > have something to do with Feature object? > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: Dylan Keon [mailto:keon at nacse.org] > Sent: Wednesday, November 24, 2004 10:32 AM > To: Joseph Norris > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another > question > > On 11/24/2004 10:13 AM, Joseph Norris wrote: > > >> The lengthy that you mention is something I > > would > like > >>to avoid due to the nature of the project. So that leaves me with > > the > >>open-ended question to all - what suggestions do any and all have > > with > >>regard to the last part of what I am trying to accomplish - namely - > > allow > >>the user to zoom into a polygon and see some representation of > > what's > >>there - a label of the actual number of teachers? I am opened to that > > but > at > >>this point in my mapserver education, I am limited in my > > understanding of > >>Labeling. Can a label be placed within the minscale/maxscale scenario > > so > >>that when you zoom in you see the label and when you zoom out it > > disappears? > > Yes. Look for LABELMINSCALE and LABELMAXSCALE at > http://mapserver.gis.umn.edu/doc42/mapfile-reference.html. Just store > the desired label as an attribute within the shapefile. There are > also > ways to apply labels dynamically via mapscript. > > --Dylan > From dmorissette at DMSOLUTIONS.CA Wed Nov 24 15:55:22 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 24 Nov 2004 18:55:22 -0500 Subject: Utilities In-Reply-To: <41A4D5A1.10202@ci.stpaul.mn.us> Message-ID: Bob Basques wrote: > All, > > I've used the tileindexing utility a couple of times. It there > something available to actually tile up a large raster and or SHP file > into the individual tiles? > Not sure about rasters, GDAL may be able to do that. With respect to tiling a shapefile, there is shp2tile, it's even smart enough to balance the number of shapes per tile: http://imaptools.com/?tab=4 Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Wed Nov 24 16:01:01 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 24 Nov 2004 19:01:01 -0500 Subject: WMS Request Question - possible BBOX bug. In-Reply-To: <162B3F03E3AD224FA9F82DF351A15A8091D672@S0-OTT-X10.NRCan.gc.ca> Message-ID: Tweedy, Scott wrote: > Leave it to other users to bring something up. I'm feeding information to > MapServer through a PHP form (for demonstration purposes) and a user tried > this combination for the BBOX -89,50,-78.35x,60.0xxxx (my regular expression > didn't pick up the letters properly). > > The WMS request after this is correct and it produced the proper image, is > this a bug in MapServer? I don't know of any projection system that accepts > letters for a bounding box. Why didn't the letters crash MapServer or > simply produce no image? > This is the standard behavior of the atof() function which is used to parse numbers internally: it stops parsing when it reaches a space or a non-numeric character (except in the case of the exponential format (e.g. 1.234e+05) where the letter 'e' can be in the middle of a numeric value). So basically what you get there is the expected behavior, not really a bug. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From superbla3000 at GMX.NET Wed Nov 24 16:13:30 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Thu, 25 Nov 2004 01:13:30 +0100 Subject: msProcessProjection(): unknown projection id In-Reply-To: <41A4DE32.8010400@pobox.com> Message-ID: Frank Warmerdam wrote: > joerg pfeiffer wrote: > >> hello, >> >> i installed mapserver with the lingis rpms. Everything seemed to be >> fine, but when I am running my .phtml files I get the error: >> >> msProcessProjection(): unknown projection id >> >> I tried to change the projection, I completely deleted the projection, I >> completely deleted all the contents of the whole file, but nothing >> happens. I always get this error. > > > Joerg, > > The message means an unrecognised value was passed to pj_init() for the > proj= argument of a projection definition. This is quite unusual. > It is almost certain that somewhere in your .map file or your PHP script > there will be something setting a projection and for some reason doing > so improperly. before I recompile - When I call the mapfile directly with mapserv?map=worldmap.map there is no problem. So it shouldn't be the mapfile!? But, up to when the error occurs, I do almost nothing with php. It's just: $neuemap = new roadMap; $neuemap->mapfile = "worldmap4.map"; $neuemap->mapInit(); function mapInit(){ $this->map = ms_newMapObj($this->mapfile); and in this first line the error occurs. So I don't set any projection in php. Where is the problem? that's quite strange... Any idea helps Joerg From sirronj at PACBELL.NET Wed Nov 24 16:48:39 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 24 Nov 2004 16:48:39 -0800 Subject: In the feature object Message-ID: Hello again, In the feature object at http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#feature Can the points be lat/long? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From test at STIGASCORP.COM Wed Nov 24 17:03:37 2004 From: test at STIGASCORP.COM (Chris) Date: Wed, 24 Nov 2004 20:03:37 -0500 Subject: mapserver java servlets In-Reply-To: <6.0.0.22.0.20041124074159.03c327b8@taz.dswllc.com> Message-ID: The safest way to write a singleton is described below. You could also put a synchronized code segment within the getInstance() call, but this way is easier. public class JavaMapscript { private static JavaMapscript instance = new JavaMapscript(); // constructor private JavaMapscript() { ... your code here } public static JavaMapscript getInstance(){ return instance; } } -----Original Message----- From: Dan Barron [mailto:dbarron at dswllc.com] Sent: Wednesday, November 24, 2004 10:47 AM To: Chris; Jose Luis Gonzalez; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] mapserver java servlets Jose, Here's what works well for me and can be used in a servlet or any jsp file - courtesy of Umberto btw. 1) >> file JavaMpascript.java << package mapserver.java.mapscript; /** * Created by user: umberto at unicolet.org * Date: May 23, 2004 * License: GPL */ public class JavaMapscript { private static JavaMapscript instance = null; private JavaMapscript() { try { System.loadLibrary("mapscript"); } catch (Exception e) { e.printStackTrace(); System.err.println("* error loading native library *"); System.err.println("Error is: "+e); } System.out.println(" * mapscript native library loaded *"); } public static JavaMapscript getInstance() { if ( instance == null ) { instance = new JavaMapscript(); } return instance; } } 2) >> Make an instance of this class somewhere else. mapserver.java.mapscript.JavaMapscript.getInstance(); Your library will only be loaded once, at least that is how it behaves for me and has been reliable so far. Dan At 06:34 AM 11/24/2004, Chris wrote: Jose, what servlet container are you using? Try initializing the servlet first without calling it -- you can do this by putting it in web.xml like this: test {your class name} 1 This will force the init() to run without the service(). Also you should avoid lazy initialization in Singleton classes. Regards, Chris -----Original Message----- From: Jose Luis Gonzalez [mailto:joseluismapserver at YAHOO.ES] Sent: Wednesday, November 24, 2004 4:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver java servlets Hi Oliver, I have just done what you recomended, leaving the JavaMapscript-Class so the only thing he does is to load the library. Then in another class, the one where I have my servlet, I wote in the: public void init (ServletConfig cfg){ JavaMapscript.getInstance(); and later in the: public void service (HttpServletRequest req, HttpServletResponse res){ I began writing my mapscript code, and it still gives me the same error: javax.servlet.ServletException: Native Library /opt/SUNappserver/domains/domain1/lib/ext/libmapscript.so already loaded in another classloader Do you know why? Thank you Jose Luis Oliver Wesp wrote: Hi, you're on the right way to avoid the "Native library cannot be loaded twice" error. Your JavaMapscript-Class implements a singleton so it's loaded only once in Tomcat. But you should not add your mapscript code to this class. Whenever you change the class Tomcat tries to reload and complains about the library already loaded. Write a second class and load the library with JavaMapscript.getInstance(); Add your mapscript code to that class and you should be fine. best regards Oliver Jose Luis Gonzalez wrote: > Hi to all > I would implement mapserver in tomcat as servlet but I have found a lot of > problems in start with it! > > So: > 1) is there sites that implement mapserver as servlet in tomcat that I can > view? > 2) Some one have a piece of basic code that I can compile as servlet in > tomcat for view how it run? I have load the java Howto. > > Do you have examples so I can see how can I work > with mapserver functions and servlets? > I have been seeing the wiki, but I can not really find what I want. > > I have done the example of loading a library that apears in: > > http://www.unicolet.org/mapserver/tomcat.html > > > and it works, but when I want to complete the JavaMapscript.java code > with other > mapserver comands, it doesn't work: > > import edu.umn.gis.mapscript.*; > > public class JavaMapscript { > private static JavaMapscript instance=null; > > private JavaMapscript() { > try { > System.loadLibrary("mapscript"); > } catch (Exception e) { > e.printStackTrace(); > System.err.println("* error loading native library *"); > System.err.println("Error is: "+e); > } > System.out.println(" * mapscript native library loaded *"); > mapObj map = new mapObj("test.map"); > imageObj img = map.draw(); > //img.save("result", map);*/ > } > > public static JavaMapscript getInstance() { > System.out.println("Try to instantiate Mapscript"); > System.out.flush(); > if ( instance == null ) { > instance = new JavaMapscript(); > } > return instance; > } > } > > And even worse, when I do any modifications and I put the new .class > file in the > server, I have an error because it says that the library was already > loaded, and > my only solution now to solve it is to turn off the server and turn it > on again. > > Hope someone can help me > > Thank you > > Jose Luis > > -------------------------------------------------------------------- ---- > > Nuevo Correo Yahoo! > > -- Dipl.-Geogr. Oliver Wesp Gesellschaft fuer geografische Datenverarbeitung Binger Strasse 49-51 D-55218 Ingelheim fon: +49 6132 714818 fax: +49 6132 714828 http: www.gdv.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Wed Nov 24 17:09:29 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 24 Nov 2004 20:09:29 -0500 Subject: In the feature object In-Reply-To: Message-ID: Joseph, The simple answer is yes. The more complete answer is that you need all your data to be in the same projection OR you need to specify the projections. So if you data for Calif. is in some projection then you would need to specify the that projection in in the mapfile before any layer definitions, this will be the output projection of the image. Then in each layer you would include a PROJECTION ... END block define what the projection that that layer is defined in. And finally in your feature LAYER you would define the projection as: PROJECTION "proj=latlong" END And mapserver shoudl take care of the rest. -Steve Joseph Norris wrote: > Hello again, > > In the feature object at > http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#feature > > Can the points be lat/long? > > Thanks. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From ma_morin at SYMPATICO.CA Wed Nov 24 19:03:50 2004 From: ma_morin at SYMPATICO.CA (=?us-ascii?Q?Marc-Andre_Morin?=) Date: Wed, 24 Nov 2004 23:03:50 -0400 Subject: label object In-Reply-To: <41A530C9.4030509@swoodbridge.com> Message-ID: Hi folks, I'm trying to figure out how I could configure my mapfile to have a label where all letters would be shown in uppercase... e.g. Toronto -> TORONTO Is there a way to get that? Thanks in advance for any hint. cheers, Marc-Andre From mweinelt at PLANIGLOBE.COM Thu Nov 25 01:17:04 2004 From: mweinelt at PLANIGLOBE.COM (Martin Weinelt) Date: Thu, 25 Nov 2004 10:17:04 +0100 Subject: Utilities In-Reply-To: <41A4D5A1.10202@ci.stpaul.mn.us> Message-ID: On Wednesday 24 November 2004 19:40, Bob Basques wrote: > All, > > I've used the tileindexing utility a couple of times. It there > something available to actually tile up a large raster and or SHP file > into the individual tiles? > > A combination program would be good too, where the tileindex is > generated at the same time. > > Thanks > > bobb For rasters you can make use of the excellent gdal utilities. Wrap - for instance - gdalwarp in a shellscript. Or in a perl script similar to the the geotiff tiler below (watch out for unintentional line breaks). Cheers, Martin ############################ #!/usr/bin/perl -w # Martin Weinelt 20030627 use strict; my ($src_gtiff,$dimens,$p_x, $p_y, $width, $length, $t_i, $t_dir, $wd,$x_win,$y_win, $tmpname, $basename); my @tiffinfo; &usage unless (($dimens = $ARGV[0]) && ($src_gtiff = $ARGV[1])); &usage unless ((($p_x, $p_y) = split (/x/,$dimens)) && ($src_gtiff)); ($basename = $src_gtiff) =~ s/\..+//; # or use File::Basename print STDERR "\n ---> Calling gdalinfo ...\n"; @tiffinfo = `gdalinfo $src_gtiff`; foreach (@tiffinfo) { if (/^Size is (\d+), (\d+)/) { ($width, $length) = ($1,$2); last; } } ($width && $length) || die " Cannot figure $ARGV[0] dimensions with 'gdalinfo': $! \n"; # create dir for the tiles $t_dir = 'tls'; if (!-e $t_dir) {mkdir ($t_dir) || die " Application 'unknown' has unexpectedly quit .... : error 30 $!\n";} unlink <$t_dir/*>; # figure where we are for absolute paths in index shp chomp($wd = `pwd`); $t_i = 0; $x_win=$p_x; $y_win=$p_y; for (my $i=0; $i< $width;$i+= $p_x) { # x offset for tiles (($i + $x_win) > $width)?($x_win= $width -$i):($x_win=$p_x); for (my $k=0; $k < $length; $k+=$p_y) { # y offset for tiles (($k + $y_win) > $length)?($y_win= $length -$k):($y_win=$p_y); $tmpname = $wd.'/tls/'.$t_i. '.tif'; # tiling with 'gdalwarp -te xmin ymin xmax ymax ' print STDERR " ---> generating tile: $tmpname bounds: $i $k $p_x $p_y \n"; system " nice -n 19 gdal_translate -srcwin $i $k $x_win $y_win $src_gtiff $tmpname \n"; $t_i++; } } # clean up previous runs of gdaltindex unlink (<'index.'*>) if (-e 'index.shp'); print STDERR "\n ---> Calling gdaltindex ...\n "; system "gdaltindex index ". $wd . "/tls/*.tif"; # generating index print STDERR "\n ---> Calling shptree ...\n "; system "shptree index"; print STDERR "\n ---> Done \n\n"; ########################################################### sub usage { print <<"EOF"; gdaltiler.pl x geotiff_filename Example: 'gdaltiler.pl 2000x3000 newgeo.tiff' EOF exit; } From maplist at AVIATION.NL Thu Nov 25 01:31:06 2004 From: maplist at AVIATION.NL (Hans de Bruin) Date: Thu, 25 Nov 2004 10:31:06 +0100 Subject: Still having trouble getting demo to work Message-ID: Hi all, Ok, this one still has me stunned. I'm trying to run the Itasca demo set, but no matter what I try, it will not work properly. What happens is this : - The Itasca application gives 5 options of complexity. The top 4 work perfectly. - The last one, the rubberband dhtml demo fails. The map comes up with a red screen. The image is missing. - The log file (debug = on in mapfile) does not give any error. - When you select *only* cities as a layer and click refresh, it works. A combination of some layers may work, or it may fail. Also when it fails, zooming in helps sometimes. Selecting the raster layer lets it fail *all* the time. All in all, it looks like a memory problem, in that it fails when a certain amount of data has to be processed. But there's enough memory available. My demo is here : http://84.119.191.151 (this is just my desktop PC. Your mileage may vary) The system is win2k pro with Apache 1.3.33 and Mapserver 4.2 Any hints or ideas are greatly appreciated. Thanks, Hans de Bruin From unicoletti at PROMETEO.IT Thu Nov 25 01:45:41 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Thu, 25 Nov 2004 10:45:41 +0100 Subject: mapserver java servlets In-Reply-To: <200411240835.25379.gis@schnegg.net> Message-ID: Quoting Frank Rittinger : > Hola Jose, > > On Tuesday 23 November 2004 10:44, Jose Luis Gonzalez wrote: > > And even worse, when I do any modifications and I put the new .class file > > in the server, I have an error because it says that the library was > already > > loaded, and my only solution now to solve it is to turn off the server and > > turn it on again. > > External libraries can only be loaded once into Tomcat. The document on my web explains exactly how to deal this situation. You must be at least experienced with java web programming as it is not quite the same as php/asp or cgi (fortunately). If you find the document difficult to read please let me know and i'll try to improve it. I will eventually move it to the wiki sooner or after.... Umberto One work-around > would > be to create an extra webapp that loads the mapscript library and never gets > reloaded. I remember that there was a thread about this in this mailing > list. > > Regards, Frank > > -- > Frank Rittinger > > TERRAPLAN Geographische Informationssysteme > Gewerbestr. 33 > 79227 Schallstadt > Germany > > Tel.: 07664-505315 > Fax.: 07664-505321 > > http://www.terraplan.com > From joseluismapserver at YAHOO.ES Thu Nov 25 01:56:20 2004 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Thu, 25 Nov 2004 10:56:20 +0100 Subject: java error Message-ID: Hi to everyone. Every time I wat to instance a new object from a mapserver class (for example: itemObj item = new itemObj();), I obtain this error: java.lang.UnsatisfiedLinkError: new_item_Obj at edu.umn.gis.mapscript.mapscriptJNI.new_itemObj(Native Method) at edu.umn.gis.mapscript.itemObj.(itemObj.java:78) at javamaps.JavaMapscript1.(JavaMapscript1.java:24) at javamaps.JavaMapscript1.getInstance(JavaMapscript1.java:37) at test1.init(test1.java:49) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:500) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:997) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:670) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:150) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107) at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107) at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107) at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109) at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647) at java.lang.Thread.run(Thread.java:534) |#] Could anyone tell me why this happens?What am I doing wrong? Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From unicoletti at PROMETEO.IT Thu Nov 25 01:58:31 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Thu, 25 Nov 2004 10:58:31 +0100 Subject: mapserver java servlets In-Reply-To: <20041124095100.92800.qmail@web25102.mail.ukl.yahoo.com> Message-ID: Jose, the point is that in tomcat (as in every servlet container) you have more THAN ONE class loader so making a class a singleton does not guarantee that it will be loaded once (since a different class loader could load it again)! The following doc will be an interesting reading on this issue: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html (if you use tomcat 5, then go to the relative section on the web site). The point is that you have to put the class in a directory that is handled by the COMMON classloader. This will guarantee that you class will be loaded once and only once during the lifecycle of tomcat. If you put it in WEB-INF/lib or classes your web-application-specific-class-loader will reload it if it thinks it has to or maybe because you webadmin decides it should be so (that it also possibile), no matter what you do to prevent it (web.xml tricks and *immutable* servlets included). Happy coding, Umberto Quoting Jose Luis Gonzalez : > Hi Oliver, > I have just done what you recomended, leaving the JavaMapscript-Class so the > only thing he does is to load the library. > Then in another class, the one where I have my servlet, I wote in the: public > void init (ServletConfig cfg){ > > JavaMapscript.getInstance(); > > and later in the: > public void service (HttpServletRequest req, HttpServletResponse res){ > > I began writing my mapscript code, and it still gives me the same error: > > javax.servlet.ServletException: Native Library > /opt/SUNappserver/domains/domain1/lib/ext/libmapscript.so already loaded in > another classloader > > Do you know why? > > Thank you > > Jose Luis > > Oliver Wesp wrote: > Hi, > > you're on the right way to avoid the "Native library cannot be loaded > twice" error. Your JavaMapscript-Class implements a singleton so it's > loaded only once in Tomcat. But you should not add your mapscript code > to this class. Whenever you change the class Tomcat tries to reload and > complains about the library already loaded. > Write a second class and load the library with > > JavaMapscript.getInstance(); > > Add your mapscript code to that class and you should be fine. > > best regards > Oliver > > Jose Luis Gonzalez wrote: > > Hi to all > > I would implement mapserver in tomcat as servlet but I have found a lot of > > problems in start with it! > > > > So: > > 1) is there sites that implement mapserver as servlet in tomcat that I can > > view? > > 2) Some one have a piece of basic code that I can compile as servlet in > > tomcat for view how it run? I have load the java Howto. > > > > Do you have examples so I can see how can I work > > with mapserver functions and servlets? > > I have been seeing the wiki, but I can not really find what I want. > > > > I have done the example of loading a library that apears in: > > > > http://www.unicolet.org/mapserver/tomcat.html > > > > > > and it works, but when I want to complete the JavaMapscript.java code > > with other > > mapserver comands, it doesn't work: > > > > import edu.umn.gis.mapscript.*; > > > > public class JavaMapscript { > > private static JavaMapscript instance=null; > > > > private JavaMapscript() { > > try { > > System.loadLibrary("mapscript"); > > } catch (Exception e) { > > e.printStackTrace(); > > System.err.println("* error loading native library *"); > > System.err.println("Error is: "+e); > > } > > System.out.println(" * mapscript native library loaded *"); > > mapObj map = new mapObj("test.map"); > > imageObj img = map.draw(); > > //img.save("result", map);*/ > > } > > > > public static JavaMapscript getInstance() { > > System.out.println("Try to instantiate Mapscript"); > > System.out.flush(); > > if ( instance == null ) { > > instance = new JavaMapscript(); > > } > > return instance; > > } > > } > > > > And even worse, when I do any modifications and I put the new .class > > file in the > > server, I have an error because it says that the library was already > > loaded, and > > my only solution now to solve it is to turn off the server and turn it > > on again. > > > > Hope someone can help me > > > > Thank you > > > > Jose Luis > > > > ------------------------------------------------------------------------ > > > > Nuevo Correo Yahoo! > > > > > > > -- > Dipl.-Geogr. Oliver Wesp > Gesellschaft fuer geografische Datenverarbeitung > Binger Strasse 49-51 > D-55218 Ingelheim > fon: +49 6132 714818 > fax: +49 6132 714828 > http: www.gdv.com > > > --------------------------------- > > From bartvde at XS4ALL.NL Thu Nov 25 02:23:47 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 25 Nov 2004 11:23:47 +0100 Subject: msRASTERLayerOpen(): General error message. Attempt to open a RASTER layer, but this is only supported after a raster query Message-ID: Hi list, if I use a wfs_filter in my METADATA section for a WMS layer in php_mapscript_44 I get the following error message, and the map comes back fully red (the color depends on the color defined in my only class). If I use php_mapscript_42 the right selection comes back (INWONERS < 35000), but php_mapscript_42 probably ignored the wfs_filter I guess? If I comment out the wfs_filter I get back my selection in red. What could be the problem? Is it a bug, or am I doing something wrong? LAYER CONNECTION "http://myserver/cgi-bin/44beta3/mapserv.exe?map=/mymap.map&" CONNECTIONTYPE WMS DUMP TRUE METADATA "wms_srs" "EPSG:28992 EPSG:4326" "wfs_filter" "Name196744.44444448536,531411.1111111111 276400.000000136,595433.3333333334" "wms_name" "Gemeentes" "wms_format" "image/png" "wms_sld_body" "auto" "wms_server_version" "1.1.0" "wms_style" "" "wms_title" "Gemeentes" END NAME "ExpressionBuilderAnnotation" PROJECTION "init=epsg:28992" END SIZEUNITS PIXELS STATUS ON TEMPLATE "blank.html" TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POLYGON UNITS METERS CLASS EXPRESSION ( ([INWONERS] < 35000) ) METADATA END STYLE COLOR 255 0 0 MAXSIZE 500 MINSIZE 1 SYMBOL 0 END END END Thanks in advance. Best regards, Bart From wesp at GDV.COM Thu Nov 25 02:36:28 2004 From: wesp at GDV.COM (Oliver Wesp) Date: Thu, 25 Nov 2004 11:36:28 +0100 Subject: Attention java programmers: mapscript thread safety In-Reply-To: <41A4BDB8.4090505@propertykey.com> Message-ID: Jeff Hoffmann wrote: > Since this thread should catch the attention of the Java/MapServer > contingent, I thought it'd be a good place for a request. Does anyone > have a Windows binary with a Java MapScript library that they can share? > Alternately, has anybody successfully done it? Can it be built with > MinGW or some other free compiler? I'm not set up to compile something > like this on Windows and the whole process seems like it could turn into > a serious chore just for some experimenting. I aggree that a Windows binary with Java MapScript would be a great addition and can increase the usage of Java MapScript within the community. I also aggree that building on windows is a challenge. We worked with MinGW for quite some time but had no success in building everthing we needed. Some things worked, some not. We didn't gave up yet so maybe sometime we get it done and we would be happy to share it with erverybody who is interested. But in order to say it clearly if anybody has a working Java Mapscript library for windows we would have a serious celebration about it. best regards Oliver -- Dipl.-Geogr. Oliver Wesp Gesellschaft fuer geografische Datenverarbeitung Binger Strasse 49-51 D-55218 Ingelheim fon: +49 6132 714818 fax: +49 6132 714828 http: www.gdv.com From maplist at AVIATION.NL Thu Nov 25 05:26:29 2004 From: maplist at AVIATION.NL (Hans de Bruin) Date: Thu, 25 Nov 2004 14:26:29 +0100 Subject: ECW full color ? Message-ID: Hi all, Quick question: Is it possible to view full color ECW's ? I've been experimenting with a 24 bit ECW, but it shows up in distorted colors, probably because it is turning it into 256 color on the fly. Regards, Hans From temiz at DEPREM.GOV.TR Thu Nov 25 05:26:51 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Thu, 25 Nov 2004 15:26:51 +0200 Subject: road format Message-ID: hello I was wondering if anyone could tell me how we form a line which looks like solid and unsolid repetetion for road regards Ahmet Temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From bartvde at XS4ALL.NL Thu Nov 25 05:34:17 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 25 Nov 2004 14:34:17 +0100 Subject: ECW full color ? In-Reply-To: <5.2.0.9.0.20041125142435.00c03bf0@mail.aviation.nl> Message-ID: You should use IMAGEMODE RGBA in your OUTPUTFORMAT. e.g. OUTPUTFORMAT NAME png MIMETYPE image/png DRIVER GD/PNG EXTENSION png IMAGEMODE RGBA TRANSPARENT TRUE END Best regards, Bart > > Hi all, > > Quick question: Is it possible to view full color ECW's ? I've been > experimenting with a 24 bit ECW, but > it shows up in distorted colors, probably because it is turning it into > 256 > color on the fly. > > Regards, > > Hans > From Frank.Broniewski at MNHA.ETAT.LU Thu Nov 25 05:37:52 2004 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Thu, 25 Nov 2004 14:37:52 +0100 Subject: [UMN_MAPSERVER-USERS] road format In-Reply-To: <41A5DD9B.6010502@deprem.gov.tr> Message-ID: What do you mean with solid and unsolid? Usually you draw two lines which overlap, but have different widths; see example: Symbolfile: SYMBOL NAME "simple line" TYPE ELLIPSE POINTS 1 1 END FILLED true END Mapfile: Style SYMBOL "simple line" Color 0 0 0 Size 7 End Style Symbol "simple line" Color 0 108 211 Size 5 End Style Symbol "simple line" color 0 0 0 Size 1 End Draws a line which has black outline, blue filling and a black line in center Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de temiz Envoy? : Donnerstag, 25. November 2004 14:27 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] road format hello I was wondering if anyone could tell me how we form a line which looks like solid and unsolid repetetion for road regards Ahmet Temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From sobomsawin at KASSINI.COM Thu Nov 25 05:48:54 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Thu, 25 Nov 2004 08:48:54 -0500 Subject: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question In-Reply-To: Message-ID: If you are on Linux, try the QGIS application which will ease a lot your work with shapefiles. You can see and change information easily and look at the properties of your shapefile (extents, etc.). http://qgis.sourceforge.net/ Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Joseph Norris Envoy??: 24 novembre 2004 16:38 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question Thanks for this information. And as always it leads to another question. When you say add a field to your shapefile - are you referring to just the dbf file or is there something I have to do to the shp file itself? This would be a general type question on adding any type data to shapefiles - what is the process for doing this? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of David Fawcett Sent: Wednesday, November 24, 2004 11:35 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question Joseph, The most simple way to do this is to have a field in your shapefile with text for each label. (e.g. 23 teachers, 10 teachers, etc.) Call it something like 'labeltext'. Then in the Layer Object in the Map File for the layer that you want to label, place a LABELITEM. LABELITEM 'labeltext' If you are just storing the number of teachers in a ZipCode in the shapefile, you can concatonate a label together by using. TEXT ([NUM_TEACHERS] Teachers) in your class. David. >>> Joseph Norris 11/24/2004 1:11:55 PM >>> Thanks Dylan, A question: I have found these parms labelminscale and labelmaxscale. How do I set the label for "23 teachers" or "10 teachers" so that - as I understand when the user zooms into a polygon, the see this label. Does that have something to do with Feature object? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Dylan Keon [mailto:keon at nacse.org] Sent: Wednesday, November 24, 2004 10:32 AM To: Joseph Norris Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question On 11/24/2004 10:13 AM, Joseph Norris wrote: > The lengthy that you mention is something I would like > to avoid due to the nature of the project. So that leaves me with the > open-ended question to all - what suggestions do any and all have with > regard to the last part of what I am trying to accomplish - namely - allow > the user to zoom into a polygon and see some representation of what's > there - a label of the actual number of teachers? I am opened to that but at > this point in my mapserver education, I am limited in my understanding of > Labeling. Can a label be placed within the minscale/maxscale scenario so > that when you zoom in you see the label and when you zoom out it disappears? Yes. Look for LABELMINSCALE and LABELMAXSCALE at http://mapserver.gis.umn.edu/doc42/mapfile-reference.html. Just store the desired label as an attribute within the shapefile. There are also ways to apply labels dynamically via mapscript. --Dylan --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 From sobomsawin at KASSINI.COM Thu Nov 25 05:58:06 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Thu, 25 Nov 2004 08:58:06 -0500 Subject: [UMN_MAPSERVER-USERS] label object In-Reply-To: Message-ID: Bonjour Marc-Andr?, As far as I know, Mapserver is not case sensitive. As an example, my data is stored in a PostGIS table which is case sensitive, and I cannot query a field name which contains capital letters. Maybe there is a regex which can be used to counter this issue... Cheers! Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Marc-Andre Morin Envoy??: 24 novembre 2004 22:04 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] label object Hi folks, I'm trying to figure out how I could configure my mapfile to have a label where all letters would be shown in uppercase... e.g. Toronto -> TORONTO Is there a way to get that? Thanks in advance for any hint. cheers, Marc-Andre --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 From sobomsawin at KASSINI.COM Thu Nov 25 06:09:03 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Thu, 25 Nov 2004 09:09:03 -0500 Subject: [UMN_MAPSERVER-USERS] Still having trouble getting demo to work In-Reply-To: <5.2.0.9.0.20041125102202.00be0d88@mail.aviation.nl> Message-ID: Maybe you can consider to upgrade Apache to 2.0 which is more capable and have improved performances. Since you have a 500 error when trying to load the map, I may recommend to check at the error log of Apache (c:\program files\apache group\apache\logs) which can sometimes help you. Most of the time, a 500 error is due to a syntax error in the map file. Could you post your mapfile for analysis? Hope this will help... Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Hans de Bruin Envoy??: 25 novembre 2004 04:31 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] Still having trouble getting demo to work Hi all, Ok, this one still has me stunned. I'm trying to run the Itasca demo set, but no matter what I try, it will not work properly. What happens is this : - The Itasca application gives 5 options of complexity. The top 4 work perfectly. - The last one, the rubberband dhtml demo fails. The map comes up with a red screen. The image is missing. - The log file (debug = on in mapfile) does not give any error. - When you select *only* cities as a layer and click refresh, it works. A combination of some layers may work, or it may fail. Also when it fails, zooming in helps sometimes. Selecting the raster layer lets it fail *all* the time. All in all, it looks like a memory problem, in that it fails when a certain amount of data has to be processed. But there's enough memory available. My demo is here : http://84.119.191.151 (this is just my desktop PC. Your mileage may vary) The system is win2k pro with Apache 1.3.33 and Mapserver 4.2 Any hints or ideas are greatly appreciated. Thanks, Hans de Bruin --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.784 / Virus Database: 530 - Release Date: 2004-10-27 From trondmm-mapserver at CRUSADERS.NO Thu Nov 25 06:09:29 2004 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Thu, 25 Nov 2004 15:09:29 +0100 Subject: Antialiasing layers Message-ID: Hi. Can mapserver antialias raster layers? I'm combining a lot of raster layers with mapserver, and many of these consists mainly of thin lines. They all seem to be in the right spot, but when I zoom out, the lines breaks up or dissappears. -- Trond Michelsen From Frank.Broniewski at MNHA.ETAT.LU Thu Nov 25 06:43:22 2004 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Thu, 25 Nov 2004 15:43:22 +0100 Subject: [UMN_MAPSERVER-USERS] road format In-Reply-To: <41A5EB49.4080109@deprem.gov.tr> Message-ID: Look at this document here: http://www.mapmedia.de/dokumente/umn_signaturen_howto/index.html#linien Its in german, but you will get something similar what you are searching for (if I understand you right). Take a look at the box where the definitions are made, left part is for mapfile, right part is for symbol file. And please also reply to the list, not just to one single user Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC -----Message d'origine----- De : temiz [mailto:temiz at deprem.gov.tr] Envoy? : Donnerstag, 25. November 2004 15:25 ? : Frank Broniewski Objet : Re: RE : [UMN_MAPSERVER-USERS] road format Frank Broniewski wrote: >What do you mean with solid and unsolid? > >Usually you draw two lines which overlap, but have different widths; >see >example: >Symbolfile: > SYMBOL > NAME "simple line" > TYPE ELLIPSE > POINTS 1 1 END > FILLED true > END > >Mapfile: > Style > SYMBOL "simple line" > Color 0 0 0 > Size 7 > End > > Style > Symbol "simple line" > Color 0 108 211 > Size 5 > End > > Style > Symbol "simple line" > color 0 0 0 > Size 1 > End > >Draws a line which has black outline, blue filling and a black line in >center > > >Frank Broniewski >Mus?e National d'Histoire et d'Art >Section Pr?histoire / Projet EPC > > >-----Message d'origine----- >De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De >la part de temiz Envoy? : Donnerstag, 25. November 2004 14:27 >? : MAPSERVER-USERS at LISTS.UMN.EDU >Objet : [UMN_MAPSERVER-USERS] road format > > >hello > >I was wondering if anyone could tell me how we form a line which looks >like solid and unsolid repetetion for road > > > >regards > >Ahmet Temiz > >______________________________________ >Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: >postmaster at deprem.gov.tr > >______________________________________ >The views and opinions expressed in this e-mail message are the >sender's own and do not necessarily represent the views and the >opinions of Earthquake Research Dept. of General Directorate of >Disaster Affairs. > >Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal >olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni >baglayici nitelikte degildir. > > > > > > thank you for your help I asked this type road : __________________ _llllllllllll llllllllll lllllllll _ in road one dark rectangle follows white rectangle . Outer part has a solid line best wishes ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From warmerdam at POBOX.COM Thu Nov 25 07:01:16 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 25 Nov 2004 10:01:16 -0500 Subject: Antialiasing layers In-Reply-To: <20041125140929.GH29502@crusaders.no> Message-ID: Trond Michelsen wrote: > Hi. > > Can mapserver antialias raster layers? I'm combining a lot of raster > layers with mapserver, and many of these consists mainly of thin > lines. They all seem to be in the right spot, but when I zoom out, the > lines breaks up or dissappears. Trond, No, MapServer does not include any support for antialiasing of raster layers itself. However, you can moderate these effects by pre-build "averaged" overview levels. Averaged overview levels will tend to produce an anti-aliasing sort of effect for scanned linework. Averaged overviews can be added to many GDAL supported raster formats using the gdaladdo utility like this: gdaladdo -r average work.tif 2 4 8 16 32 64 128 The default downsampling technique in MapServer (and gdaladdo for that matter) is decimation, where at 1/4 resolution one of the pixels from the 4x4 input pattern would be selected - practically at random. For narrow line work this results in spottiness that can be quite disturbing. Averaging will give varying levels of grayness depending on how many pixels in the decimated area are set originally. Best regards, -- ---------------------------------------+-------------------------------------- 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 warmerdam at POBOX.COM Thu Nov 25 07:11:14 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 25 Nov 2004 10:11:14 -0500 Subject: msRASTERLayerOpen(): General error message. Attempt to open a RASTER layer, but this is only supported after a raster query In-Reply-To: <7098.212.238.227.182.1101378227.squirrel@212.238.227.182> Message-ID: Bart van den Eijnden wrote: > Hi list, > > if I use a wfs_filter in my METADATA section for a WMS layer in > php_mapscript_44 I get the following error message, and the map comes back > fully red (the color depends on the color defined in my only class). If I > use php_mapscript_42 the right selection comes back (INWONERS < 35000), > but php_mapscript_42 probably ignored the wfs_filter I guess? > > If I comment out the wfs_filter I get back my selection in red. ... > LAYER > CONNECTION "http://myserver/cgi-bin/44beta3/mapserv.exe?map=/mymap.map&" > CONNECTIONTYPE WMS ... > CLASS > EXPRESSION ( ([INWONERS] < 35000) ) > METADATA > END > STYLE > COLOR 255 0 0 > MAXSIZE 500 > MINSIZE 1 > SYMBOL 0 > END Bart, I read this message originally because you included msRasterLayerOpen() in the subject line. Did you get the error message in the subject line at some point? What is the CLASS definition supposed to accomplish in a WMS layer? The msRasterLayerOpen() is the open/close code I recently wrote for raster layers so that query results could be accessed. If you are getting that error message, it might be because WMS layers are also being treated like raster layers for some purposes that they should not. If you can submit a bug report for a situation where that message is issued when it should not, perhaps you should submit a bug report on the issue so that I can fix it. I haven't looked to close at the WMS layer code, but in general the results of the WMS query are fetched back as a raster file which is then passed off to the normal raster layer rendering code to overlay. If the WMS layer definition is passed in unaltered to the raster code (I think it works this way) then of course everything will be painted red. There is no [INWONERS] attribute as far as the raster classification code is concerned, so the expression would presumably always evaluate as true and everything would be set to red. If you did a test like "[INWONERS] < 2500 and [INWONDERS] ne 0" I suspect the class definition would be ignored by the raster code. But even then the low level raster code would still try to "classify" the WMS result which I doubt you really want. Best regards, -- ---------------------------------------+-------------------------------------- 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 tylermitchell at SHAW.CA Thu Nov 25 07:13:01 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Thu, 25 Nov 2004 07:13:01 -0800 Subject: OSGIS2004 Photos Message-ID: Some more photos from the conference are available at: http://spatialguru.com/OSGIS2004_Photos/ Can you guess who the secret superstar is who occurs the most in the photos? Don't like an incriminating photo of yourself? Drop me a note and I'll remove it - my rates are reasonable :) Tyler From bjoern.platzen at MOMATEC.DE Thu Nov 25 07:17:39 2004 From: bjoern.platzen at MOMATEC.DE (=?iso-8859-1?Q?Bj=F6rn_Platzen?=) Date: Thu, 25 Nov 2004 16:17:39 +0100 Subject: road format In-Reply-To: Message-ID: Hello Ahmet, > I was wondering if anyone could tell me how we form a line > which looks like solid and unsolid repetetion for road I'm not sure, if this answers your question, but this way works for me to visualize the roads as a yellow line with black outlines and a dashed middleline: In your street-layer: CLASS STYLE SYMBOL 'simple_line' SIZE 5 COLOR 50 50 50 END STYLE SYMBOL 'simple_line' SIZE 3 COLOR 238 214 8 END STYLE SYMBOL 'dashed' SIZE 1 COLOR 50 50 50 END END in your symbol-file: SYMBOL NAME 'simple_line' TYPE ELLIPSE POINTS 1 1 END END SYMBOL NAME 'dashed' TYPE ELLIPSE POINTS 1 1 END FILLED true STYLE 5 5 5 5 END END hth, Bjoern. -- momatec GmbH www.momatec.de From bartvde at XS4ALL.NL Thu Nov 25 07:30:46 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 25 Nov 2004 16:30:46 +0100 Subject: msRASTERLayerOpen(): General error message. Attempt to open a RASTER layer, but this is only supported after a raster query In-Reply-To: <41A5F953.9070204@dmsolutions.ca> Message-ID: Hi Assefa, Gemeentes is a polygon shapefile layer on the WMS server. But the Chameleon querybuilder works on the Gemeentes layer through a CONNECTIONTYPE WMS type of layer (so a raster layer ...). This layer definition is generated by the Chameleon querybuilder (so it does apply an SLD), and includes an attribute selection together with a spatial (bbox) selection. Best regards, Bart > I suspect it is a similar/related bug filed in bug 1087. I suspect that > It is trying to apply an SLD with a spatial filter to a raster layer on > the server (Is Gemeentes layer on the server side set as a raster layer > ?). I need to add a check on the layer type before doing a query. I have > corrected this locally but could you confirm on the layer type of > Gemeentes. > > Later, > > Bart van den Eijnden wrote: > >> Hi list, >> >> if I use a wfs_filter in my METADATA section for a WMS layer in >> php_mapscript_44 I get the following error message, and the map comes >> back >> fully red (the color depends on the color defined in my only class). If >> I >> use php_mapscript_42 the right selection comes back (INWONERS < 35000), >> but php_mapscript_42 probably ignored the wfs_filter I guess? >> >> If I comment out the wfs_filter I get back my selection in red. >> >> What could be the problem? Is it a bug, or am I doing something wrong? >> >> LAYER >> CONNECTION >> "http://myserver/cgi-bin/44beta3/mapserv.exe?map=/mymap.map&" >> CONNECTIONTYPE WMS >> DUMP TRUE >> METADATA >> "wms_srs" "EPSG:28992 EPSG:4326" >> "wfs_filter" "Name> srsName=''>196744.44444448536,531411.1111111111 >> 276400.000000136,595433.3333333334" >> "wms_name" "Gemeentes" >> "wms_format" "image/png" >> "wms_sld_body" "auto" >> "wms_server_version" "1.1.0" >> "wms_style" "" >> "wms_title" "Gemeentes" >> END >> NAME "ExpressionBuilderAnnotation" >> PROJECTION >> "init=epsg:28992" >> END >> SIZEUNITS PIXELS >> STATUS ON >> TEMPLATE "blank.html" >> TOLERANCE 0 >> TOLERANCEUNITS PIXELS >> TYPE POLYGON >> UNITS METERS >> CLASS >> EXPRESSION ( ([INWONERS] < 35000) ) >> METADATA >> END >> STYLE >> COLOR 255 0 0 >> MAXSIZE 500 >> MINSIZE 1 >> SYMBOL 0 >> END >> END >> END >> >> Thanks in advance. >> >> Best regards, >> Bart >> > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > From maplist at AVIATION.NL Thu Nov 25 07:50:17 2004 From: maplist at AVIATION.NL (Hans de Bruin) Date: Thu, 25 Nov 2004 16:50:17 +0100 Subject: ECW full color ? In-Reply-To: <14618.212.238.227.182.1101389657.squirrel@212.238.227.182> Message-ID: You are my hero. Thanks ! Hans At 14:34 25/11/2004 +0100, bartvde at xs4all.nl wrote: >You should use IMAGEMODE RGBA in your OUTPUTFORMAT. > >e.g. > > OUTPUTFORMAT > NAME png > MIMETYPE image/png > DRIVER GD/PNG > EXTENSION png > IMAGEMODE RGBA > TRANSPARENT TRUE > END > > >Best regards, >Bart > > > > > Hi all, > > > > Quick question: Is it possible to view full color ECW's ? I've been > > experimenting with a 24 bit ECW, but > > it shows up in distorted colors, probably because it is turning it into > > 256 > > color on the fly. > > > > Regards, > > > > Hans > > From stephane.riff at CERENE.FR Thu Nov 25 08:42:04 2004 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Thu, 25 Nov 2004 17:42:04 +0100 Subject: PNG transparency in ie Message-ID: I want to generate png with transparent background because i want to display two image at the same position. I works great when visiting the url with mozilla, firefox but ie doesn't render the transparence. I know that png image to be transparent in ie must be in indexed color mode Is yhere something to do other than change outputformat to gif Thanks From bjoern.platzen at MOMATEC.DE Thu Nov 25 08:51:00 2004 From: bjoern.platzen at MOMATEC.DE (=?iso-8859-1?Q?Bj=F6rn_Platzen?=) Date: Thu, 25 Nov 2004 17:51:00 +0100 Subject: PNG transparency in ie In-Reply-To: Message-ID: Hi Stephane, wich Version of mapserver do you use? I am using 4.2.5 and my png-images work in IE. I only have TRANSPARENT on IMAGETYPE png in the "map"-section of my mapfile. I just know that there is a problem with 24bit-png-images and IE. But with 8 bit, 256 colours and index-transparency everything should work just fine. Bye, Bjoern. > I want to generate png with transparent background because i > want to display two image at the same position. I works great > when visiting the url with mozilla, firefox but ie doesn't > render the transparence. I know that png image to be > transparent in ie must be in indexed color mode Is yhere > something to do other than change outputformat to gif Thanks > From dmorissette at DMSOLUTIONS.CA Thu Nov 25 08:53:01 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Thu, 25 Nov 2004 11:53:01 -0500 Subject: msProcessProjection(): unknown projection id In-Reply-To: <41A523AA.2070704@gmx.net> Message-ID: joerg pfeiffer wrote: > > before I recompile - > > When I call the mapfile directly with > mapserv?map=worldmap.map > there is no problem. So it shouldn't be the mapfile!? > > But, up to when the error occurs, I do almost nothing with php. It's just: > $neuemap = new roadMap; > $neuemap->mapfile = "worldmap4.map"; > $neuemap->mapInit(); > > function mapInit(){ > $this->map = ms_newMapObj($this->mapfile); > and in this first line the error occurs. > > So I don't set any projection in php. > It could just be that PHP does some extra steps internally that the CGI doesn't do when you just call mapserv?map=worldmap.map. That doesn't mean that there is not a problem in your mapfile. Did you really only pass the map argument and nothing else? Did you try browsing the map with the CGI? You should check all your projection definitions in your mapfile, or send a copy of a stripped down copy of the mapfile that reproduces this. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From cord at LUPINEX.COM Thu Nov 25 09:47:24 2004 From: cord at LUPINEX.COM (Cord Thomas) Date: Thu, 25 Nov 2004 09:47:24 -0800 Subject: Creating IDW grids of point data for Mapserver Message-ID: Hello, Has anyone experience creating inverse distance weighted (IDW) graphs for use with mapserver? I am working in Linux. I have data collected in PostGIS, some street centerlines, and would like to calculate IDW raster grids to present in transparent mode over the street data. There are two approaches i could use - 1 - calculate the IDW grids as a scheduled process - what tools are there available to do this? 2 - calculate the IDW grids live given user parameters - though i could imagine this would be very expensive. Anyone have suggestions on how to do this? What tools i might have to do this? I see GRASS has some surface calculation methods - I know nothing about GRASS - can one automate calls to it? I am interested in open source means only. Thank you From BEHROOZ at YORKU.CA Thu Nov 25 11:31:15 2004 From: BEHROOZ at YORKU.CA (Behrooz Nourmohammadi) Date: Thu, 25 Nov 2004 14:31:15 -0500 Subject: WMS Message-ID: Hi All, I am trying to get a layer from a server, following tutorials in the mapServer site. in example 1-6 I am getting the following error message. (examples 1-6 and 1-7 do not work on the server as well) ERROR 4: `c:/ms4w/apache/htdocs/tmp/110140829337160.img.tmp' not recognised as a supported file format.\r, referer: http://localhost/tutorial/example1- 6.html any suggestions? thanks Behrooz From warmerdam at POBOX.COM Thu Nov 25 11:59:17 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 25 Nov 2004 14:59:17 -0500 Subject: WMS In-Reply-To: <1101411075.41a63303382bd@mymail.yorku.ca> Message-ID: Behrooz Nourmohammadi wrote: > Hi All, > I am trying to get a layer from a server, following tutorials in the mapServer > site. in example 1-6 I am getting the following error message. (examples 1-6 > and 1-7 do not work on the server as well) > ERROR 4: `c:/ms4w/apache/htdocs/tmp/110140829337160.img.tmp' not recognised > as a supported file format.\r, referer: http://localhost/tutorial/example1- > 6.html Behrooz, This normally would mean that the image downloaded from the remote WMS server was in a format not supported by GDAL. If you add a "DEBUG ON" line in your WMS layer it should leave the temporary files after a run, then you can try and inspect them to verify they are in a supported format. By default GDAL should support GIF, PNG and JPEG. Perhaps the remote WMS server returned an error message in XML? That would cause this sort of error. Best regards, -- ---------------------------------------+-------------------------------------- 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 warmerdam at POBOX.COM Thu Nov 25 12:35:57 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 25 Nov 2004 15:35:57 -0500 Subject: PNG transparency in ie In-Reply-To: <41A60B5C.7010000@cerene.fr> Message-ID: St?phane RIFF wrote: > I want to generate png with transparent background because i > want to display two image at the same position. > I works great when visiting the url with mozilla, firefox but ie doesn't > render the transparence. > I know that png image to be transparent in ie must be in indexed color mode > Is yhere something to do other than change outputformat to gif Stephane, Is the problem that you can't seem to force MapServer to produce an indexed color mode PNG file, or that even when you do it doesn't seem to set the transparency value properly? There may be something we need to alter in our handling of PNG generation in MapServer. But not knowing too much about the quirks of different browsers in this regard, it isn't clear to me yet what is wrong with the pngs generated by MapServer. Best regards, -- ---------------------------------------+-------------------------------------- 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 siki at AGT.BME.HU Thu Nov 25 15:11:35 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Thu, 25 Nov 2004 22:11:35 -0100 Subject: Creating IDW grids of point data for Mapserver {Scanned} {Scanned} In-Reply-To: <1360.4.27.1.222.1101404844.squirrel@www.elem.com> Message-ID: Hi, You should check GMT (General Mapping Tool) or GRASS. Both are open source and you can write scripts to automate tasks. Bye Zoltan On Thu, 25 Nov 2004, Cord Thomas wrote: > Hello, > > Has anyone experience creating inverse distance weighted (IDW) graphs for > use with mapserver? > > I am working in Linux. I have data collected in PostGIS, some street > centerlines, and would like to calculate IDW raster grids to present in > transparent mode over the street data. > > There are two approaches i could use - > 1 - calculate the IDW grids as a scheduled process - what tools are there > available to do this? > 2 - calculate the IDW grids live given user parameters - though i could > imagine this would be very expensive. > > Anyone have suggestions on how to do this? What tools i might have to do > this? > > I see GRASS has some surface calculation methods - I know nothing about > GRASS - can one automate calls to it? > > I am interested in open source means only. > > Thank you > From assefa at DMSOLUTIONS.CA Thu Nov 25 13:43:35 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 25 Nov 2004 16:43:35 -0500 Subject: msRASTERLayerOpen(): General error message. Attempt to open a RASTER layer, but this is only supported after a raster query In-Reply-To: <11629.212.238.227.182.1101396646.squirrel@212.238.227.182> Message-ID: Bart, I have corrected bug 1087. As for your bug, I could not really reproduce it with the same setting using local test data. I am using php_mapscript and the mapserver cgi to draw a layer setup as yours (WMS client to a polygon layer with wms_sld_auto and wfs_filter set). I though that your layer on the server side was set as RASTER, that's why it was related to bug1087. If it is set as a Polygon, I really do not understand what the problem is. What I have tried is : - php_mapscript : open your wms client map and draw that layer - mapserv.cgi : mode=map Is it problem happening inside chameleon or you can reprodice it with simple php scr4ipt or using mapserver cgi ? If that is the case would you provide me with your cleint and server map/data files ? Later, Bart van den Eijnden wrote: > Hi Assefa, > > Gemeentes is a polygon shapefile layer on the WMS server. But the > Chameleon querybuilder works on the Gemeentes layer through a > CONNECTIONTYPE WMS type of layer (so a raster layer ...). > I am not following all you are saying here (probably because I do not know much about the querybuilder of Chameleon). But the fact is that this error should only be generated if on the server side the Gemeentes layer's type is set as raster and we try to apply a spatial filter (queries) on it. The test I have added simply checks that spatial filter are only applied on vector layers. > This layer definition is generated by the Chameleon querybuilder (so it > does apply an SLD), and includes an attribute selection together with a > spatial (bbox) selection. > > Best regards, > Bart > > >>I suspect it is a similar/related bug filed in bug 1087. I suspect that >>It is trying to apply an SLD with a spatial filter to a raster layer on >>the server (Is Gemeentes layer on the server side set as a raster layer >>?). I need to add a check on the layer type before doing a query. I have >>corrected this locally but could you confirm on the layer type of >>Gemeentes. >> >>Later, >> >>Bart van den Eijnden wrote: >> >> >>>Hi list, >>> >>>if I use a wfs_filter in my METADATA section for a WMS layer in >>>php_mapscript_44 I get the following error message, and the map comes >>>back >>>fully red (the color depends on the color defined in my only class). If >>>I >>>use php_mapscript_42 the right selection comes back (INWONERS < 35000), >>>but php_mapscript_42 probably ignored the wfs_filter I guess? >>> >>>If I comment out the wfs_filter I get back my selection in red. >>> >>>What could be the problem? Is it a bug, or am I doing something wrong? >>> >>> LAYER >>> CONNECTION >>>"http://myserver/cgi-bin/44beta3/mapserv.exe?map=/mymap.map&" >>> CONNECTIONTYPE WMS >>> DUMP TRUE >>> METADATA >>> "wms_srs" "EPSG:28992 EPSG:4326" >>> "wfs_filter" "Name>>srsName=''>196744.44444448536,531411.1111111111 >>>276400.000000136,595433.3333333334" >>> "wms_name" "Gemeentes" >>> "wms_format" "image/png" >>> "wms_sld_body" "auto" >>> "wms_server_version" "1.1.0" >>> "wms_style" "" >>> "wms_title" "Gemeentes" >>> END >>> NAME "ExpressionBuilderAnnotation" >>> PROJECTION >>> "init=epsg:28992" >>> END >>> SIZEUNITS PIXELS >>> STATUS ON >>> TEMPLATE "blank.html" >>> TOLERANCE 0 >>> TOLERANCEUNITS PIXELS >>> TYPE POLYGON >>> UNITS METERS >>> CLASS >>> EXPRESSION ( ([INWONERS] < 35000) ) >>> METADATA >>> END >>> STYLE >>> COLOR 255 0 0 >>> MAXSIZE 500 >>> MINSIZE 1 >>> SYMBOL 0 >>> END >>> END >>> END >>> >>>Thanks in advance. >>> >>>Best regards, >>>Bart >>> >> >> >>-- >>---------------------------------------------------------------- >>Assefa Yewondwossen >>Software Analyst >> >>Email: assefa at dmsolutions.ca >>http://www.dmsolutions.ca/ >> >>Phone: (613) 565-5056 (ext 14) >>Fax: (613) 565-0925 >>---------------------------------------------------------------- >> >> >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From superbla3000 at GMX.NET Thu Nov 25 13:48:45 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Thu, 25 Nov 2004 22:48:45 +0100 Subject: msProcessProjection(): unknown projection id In-Reply-To: <41A60DED.9080809@dmsolutions.ca> Message-ID: I think it's a php mapscript problem of the lingis rpms. Even the maplab, which comes with the lingis installation, doesn't work. I get the same error. So I tried some really simple things: This is my .phtml My simpleTest.map file: MAP IMAGETYPE png EXTENT -180 -90 180 90 UNITS DD SIZE 400 300 IMAGECOLOR 112 135 148 DEBUG ON END I also tried some different projections, it's all the time the same: msProcessProjection(): unknown projection id So I think I have to deinstall lingis.... regards Joerg From kenlord at GMAIL.COM Thu Nov 25 15:07:06 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Thu, 25 Nov 2004 15:07:06 -0800 Subject: MS 4.2 query results bug Message-ID: Hi List, Perhaps this is fixed in later versions, please respond if you've heard of this. It is not a serious problem, if your data is clean you won't see this happen but this might explain a strange occurance for someone out there ... This was discovered upon migrating from mapserver 3.6 to 4.2. The error does not occur in 3.6. Mapserver 4.2, CGI, A layer based on a shapefile, type line. The shapefile had an error where there was a record in it's table without a corresponding spatial feature. (this error probably happened by editing the shapefile dbf file in excel, adding a new record by mistake) A mapserver query of the map always returned a result for this feature no matter where you clicked so long as you clicked within the bounding box of that shapefile. Tolerance settings in the map file made no difference. Clicking on a real feature in that layer returns the correct resuts, plus a result for the broken feature. ... as if any coordinates within the bounding box was allowed to correspond to the feature that really had no coordinates at all. The same dataset used with mapserver 3.6 did not show this problem. Cheers, Ken Lord Vancouver BC From Frank.Broniewski at MNHA.ETAT.LU Fri Nov 26 00:41:08 2004 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Fri, 26 Nov 2004 09:41:08 +0100 Subject: [UMN_MAPSERVER-USERS] PNG transparency in ie In-Reply-To: <41A60B5C.7010000@cerene.fr> Message-ID: Hello I never got IE to render png's correctly, it is well known that the ie browser has problems with pngs. For some info look here: http://www.libpng.org/pub/png/pngfaq.html#msie Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de St?phane RIFF Envoy? : Donnerstag, 25. November 2004 17:42 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] PNG transparency in ie I want to generate png with transparent background because i want to display two image at the same position. I works great when visiting the url with mozilla, firefox but ie doesn't render the transparence. I know that png image to be transparent in ie must be in indexed color mode Is yhere something to do other than change outputformat to gif Thanks From Frank.Broniewski at MNHA.ETAT.LU Fri Nov 26 00:44:57 2004 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Fri, 26 Nov 2004 09:44:57 +0100 Subject: [UMN_MAPSERVER-USERS] PNG transparency in ie In-Reply-To: <41A60B5C.7010000@cerene.fr> Message-ID: I forgot to mention that there are several issues in the microsoft knowledge base, just do a search with "png" Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de St?phane RIFF Envoy? : Donnerstag, 25. November 2004 17:42 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] PNG transparency in ie I want to generate png with transparent background because i want to display two image at the same position. I works great when visiting the url with mozilla, firefox but ie doesn't render the transparence. I know that png image to be transparent in ie must be in indexed color mode Is yhere something to do other than change outputformat to gif Thanks From bartvde at XS4ALL.NL Fri Nov 26 01:47:46 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 26 Nov 2004 10:47:46 +0100 Subject: msRASTERLayerOpen(): General error message. Attempt to open a RASTER layer, but this is only supported after a raster query Message-ID: Hi Assefa, I have created bug 1092 about this issue, which inludes a test script, map file and the output from shp2img which differs largely from the output from php_mapscript_44 beta3. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1092 Thanks in advance for looking into this. Best regards, Bart Bart, I have corrected bug 1087. As for your bug, I could not really reproduce it with the same setting using local test data. I am using php_mapscript and the mapserver cgi to draw a layer setup as yours (WMS client to a polygon layer with wms_sld_auto and wfs_filter set). I though that your layer on the server side was set as RASTER, that's why it was related to bug1087. If it is set as a Polygon, I really do not understand what the problem is. What I have tried is : - php_mapscript : open your wms client map and draw that layer - mapserv.cgi : mode=map Is it problem happening inside chameleon or you can reprodice it with simple php scr4ipt or using mapserver cgi ? If that is the case would you provide me with your cleint and server map/data files ? Later, From 0098klbe at EDU.FH-KAERNTEN.AC.AT Fri Nov 26 02:40:47 2004 From: 0098klbe at EDU.FH-KAERNTEN.AC.AT (Bernhard Klingseisen) Date: Fri, 26 Nov 2004 04:40:47 -0600 Subject: Base Technology for WMS Message-ID: Hi folks, I'm new at Mapserver and want to implement a webmapping environment with database access. I've decided to use mapserver to visualize and query shapefiles and data stored in Postgis. First I want to start with a viewer for shapefiles with navigation functionality (rectangle zoom), measuring tools (line and area), layer management (set visible) and qery tools (e.g. get waterquality information for a zip code area). Now I've found information about using php/mapscript, javascript/dhtml (itasca example) or java. It would be very thankful for any suggestions hwo to realize the navigation and measuring in a rubber-band manner. Cheers Bernie From bartvde at XS4ALL.NL Fri Nov 26 02:54:45 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 26 Nov 2004 11:54:45 +0100 Subject: Base Technology for WMS In-Reply-To: Message-ID: Hi Bernie, I would also suggest looking into Chameleon, it is a flexible, fully-featured WMS client technology based on php/mapscript, made by DM Solutions Group, see: http://www.maptools.org/chameleon/index.phtml Best regards, Bart > Hi folks, > > I'm new at Mapserver and want to implement a webmapping environment with > database access. I've decided to use mapserver to visualize and query > shapefiles and data stored in Postgis. > First I want to start with a viewer for shapefiles with navigation > functionality (rectangle zoom), measuring tools (line and area), layer > management (set visible) and qery tools (e.g. get waterquality information > for a zip code area). > > Now I've found information about using php/mapscript, javascript/dhtml > (itasca example) or java. It would be very thankful for any suggestions > hwo > to realize the navigation and measuring in a rubber-band manner. > > Cheers > > Bernie > From jcastil1 at TRAGSA.ES Fri Nov 26 03:22:58 2004 From: jcastil1 at TRAGSA.ES (Javier Castillejo) Date: Fri, 26 Nov 2004 05:22:58 -0600 Subject: datapattern and OGR connectiontype Message-ID: Hi there, I'm wondering if there is any methos related or notr with DATAPATTER that allow to chande the "DATA". Tyler Mitchell wrote one year ago "Can the datapattern method be used for other data sources than simple shape file references (i.e. used in the sql for a postgis layer?)." I've been seraching the archives with not results...my question is just that . I'm using mapserv4.2 IIS php OracleSpatia on Oralce8.1.7 I would like to change the DATA 'cos I have to select the data depending on some parameters from the users. I've tried with "DATAPATTERN ".*" (and all it's different ways) + "map_layername_data" but no results, no errors and the DATA comes from the mapfile definition!!! It works find with shp+bdf files!!!! It works find with CONNECTIONTYPE oraclespatial!!!! (but I will have problems when query the map--> "msOracleSpatialLayerGetShape(): OracleSpatial error. Function not implemented yet") It fails with CONNECTIONTYPE OGR here is an mapfile scratch: MAP NAME Frames_ IMAGETYPE png24 SIZE 800 600 EXTENT -450000 3800000 1200000 4870000 SHAPEPATH "../data/" SYMBOLSET "../symbols/symbols35.sym" FONTSET "../fonts/fonts.list" UNITS METERS DATAPATTERN ".*" . . . . LAYER # Autonomias NAME autonomias STATUS DEFAULT TYPE POLYGON GROUP NOLEYENDA CONNECTIONTYPE OGR CONNECTION "OCI:XXX/XXXXX at XXX" DATA "SELECT * FROM AUTONOMIAS_vw" . . . Any Idea? Thanks in advance From bartvde at XS4ALL.NL Fri Nov 26 03:24:42 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 26 Nov 2004 12:24:42 +0100 Subject: AW: [UMN_MAPSERVER-USERS] Base Technology for WMS In-Reply-To: <93FE3B3E4C47C04795C65DA3C90C1C192B597E@exchange03.technikum.local> Message-ID: Hi Bernie, this is part of Chameleon. You can zoom in with a box. For further questions I would suggest posting them to the Chameleon list ... Best regards, Bart > Thanks Bart. > > Could you give me any tips how to realize zoom in a rubber-band style so I > can draw a rectangle on screen? > > Regards > Bernie > > -----Urspr?ngliche Nachricht----- > Von: UMN MapServer Users List im Auftrag von Bart van den Eijnden > Gesendet: Fr 26.11.2004 11:54 > An: MAPSERVER-USERS at LISTS.UMN.EDU > Cc: > Betreff: Re: [UMN_MAPSERVER-USERS] Base Technology for WMS > > > > Hi Bernie, > > I would also suggest looking into Chameleon, it is a flexible, > fully-featured WMS client technology based on php/mapscript, made by DM > Solutions Group, see: > > http://www.maptools.org/chameleon/index.phtml > > Best regards, > Bart > > > Hi folks, > > > > I'm new at Mapserver and want to implement a webmapping environment > with > > database access. I've decided to use mapserver to visualize and query > > shapefiles and data stored in Postgis. > > First I want to start with a viewer for shapefiles with navigation > > functionality (rectangle zoom), measuring tools (line and area), layer > > management (set visible) and qery tools (e.g. get waterquality > information > > for a zip code area). > > > > Now I've found information about using php/mapscript, javascript/dhtml > > (itasca example) or java. It would be very thankful for any suggestions > > hwo > > to realize the navigation and measuring in a rubber-band manner. > > > > Cheers > > > > Bernie > > > > > From stisidore at GMAIL.COM Fri Nov 26 07:55:21 2004 From: stisidore at GMAIL.COM (Gayathri Swaminathan) Date: Fri, 26 Nov 2004 09:55:21 -0600 Subject: [UMN_MAPSERVER-USERS] PNG transparency in ie In-Reply-To: <000101c4d394$35439aa0$aa696e94@EPCCARTOGIS> Message-ID: I use this for achieving transparency in PNG in IE... http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html On Fri, 26 Nov 2004 09:44:57 +0100, Frank Broniewski wrote: > I forgot to mention that there are several issues in the microsoft knowledge > base, just do a search with "png" > > > > > Frank Broniewski > Mus?e National d'Histoire et d'Art > Section Pr?histoire / Projet EPC > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > part de St?phane RIFF > Envoy? : Donnerstag, 25. November 2004 17:42 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : [UMN_MAPSERVER-USERS] PNG transparency in ie > > I want to generate png with transparent background because i want to display > two image at the same position. I works great when visiting the url with > mozilla, firefox but ie doesn't render the transparence. I know that png > image to be transparent in ie must be in indexed color mode Is yhere > something to do other than change outputformat to gif Thanks > From unicoletti at PROMETEO.IT Fri Nov 26 09:03:12 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Fri, 26 Nov 2004 18:03:12 +0100 Subject: Attention java programmers: mapscript thread safety In-Reply-To: <41A5B5AC.1030901@gdv.com> Message-ID: I don't do windows (tm). cygwin anyone? It has anything a decent *nix box has, including all gcc stuff and even X. I think the major problem will be in setting up all paths correctly, but that should be a one time job and not too difficult for an average programmer. I am REALLY BUSY (another tm) these days, so I am not going to try soon, but after I have taken care of bug 1064 and have managed to deliver my first java mapscript application ever I might be drunk, err 'crazy' enough to dive into it! best regards, Umberto Quoting Oliver Wesp : > Jeff Hoffmann wrote: > > > Since this thread should catch the attention of the Java/MapServer > > contingent, I thought it'd be a good place for a request. Does anyone > > have a Windows binary with a Java MapScript library that they can share? > > Alternately, has anybody successfully done it? Can it be built with > > MinGW or some other free compiler? I'm not set up to compile something > > like this on Windows and the whole process seems like it could turn into > > a serious chore just for some experimenting. > > > I aggree that a Windows binary with Java MapScript would be a great > addition and can increase the usage of Java MapScript within the community. > I also aggree that building on windows is a challenge. We worked with > MinGW for quite some time but had no success in building everthing we > needed. Some things worked, some not. We didn't gave up yet so maybe > sometime we get it done and we would be happy to share it with > erverybody who is interested. But in order to say it clearly if anybody > has a working Java Mapscript library for windows we would have a serious > celebration about it. > > best regards > Oliver > > -- > Dipl.-Geogr. Oliver Wesp > Gesellschaft fuer geografische Datenverarbeitung > Binger Strasse 49-51 > D-55218 Ingelheim > fon: +49 6132 714818 > fax: +49 6132 714828 > http: www.gdv.com > From sirronj at PACBELL.NET Fri Nov 26 09:24:21 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Fri, 26 Nov 2004 09:24:21 -0800 Subject: Can not find this when I use mapscript perl interface Message-ID: Everyone, I am getting this error when I try to use the mapscript perl interface: Can't locate auto/mapscript/imageObj/saveImage.al in @INC (@INC contains: /usr/lib/perl5/5.8.4/i686-linux /usr/lib/perl5/5.8.4 /usr/lib/perl5/site_perl/5.8.4/i686-linux /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /usr/local/apache/htdocs/mco.communityservers.com/cgi-bin/teacher/sample.cgi line 148 Am I missing a perl module? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From sgillies at FRII.COM Fri Nov 26 09:33:55 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 26 Nov 2004 10:33:55 -0700 Subject: Can not find this when I use mapscript perl interface In-Reply-To: Message-ID: On Nov 26, 2004, at 10:24 AM, Joseph Norris wrote: > Everyone, > > I am getting this error when I try to use the mapscript perl interface: > > Can't locate auto/mapscript/imageObj/saveImage.al in @INC (@INC > contains: > /usr/lib/perl5/5.8.4/i686-linux /usr/lib/perl5/5.8.4 > /usr/lib/perl5/site_perl/5.8.4/i686-linux > /usr/lib/perl5/site_perl/5.8.4 > /usr/lib/perl5/site_perl/5.8.0/i686-linux > /usr/lib/perl5/site_perl/5.8.0 > /usr/lib/perl5/site_perl .) at > /usr/local/apache/htdocs/mco.communityservers.com/cgi-bin/teacher/ > sample.cgi > line 148 > > Am I missing a perl module? > Joseph, The imageObj::saveImage method has been gone for a long time. Deprecated in 4.0 and eliminated in 4.2 if I remember correctly. See mapscript.txt under mapserver/mapscript/docs for an API reference. These days, it's imageObj::save. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From ace at SUARES.NL Fri Nov 26 12:21:39 2004 From: ace at SUARES.NL (Ace Suares) Date: Fri, 26 Nov 2004 16:21:39 -0400 Subject: Feeble attempt to documentation Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I chalked up my experiences with php/mapscript. http://www.suares.nl/?page_id=46 Ace - -- Ace Suares' Internet Consultancy mail: PObox 2599, 4800 CN Breda, The Netherlands phone: +31 6 244 33 608 (Jan Veuger, support Netherlands) emergency: +5999 786 23 73 voicemail & fax: +31 848 707 705 web: http://www.suares.nl email: support at suares.nl -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBp5BUy7boE8xtIjURAmbdAJ9u4e7i3LN5NdW4BIGnWA/jGfcgYACgk7ld xyBNsoWhdVPoGAqSIzRRvuA= =t+XO -----END PGP SIGNATURE----- From sirronj at PACBELL.NET Fri Nov 26 13:09:34 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Fri, 26 Nov 2004 13:09:34 -0800 Subject: Ok - something else missing Message-ID: I am building a class via perl - I have the expression part set up but the color deal is giving me a problem: my $class = new mapscript::classObj($layerObj); $class->setExpression("/$zip_expression/"); $class->{color} = '102 0 255'; I know I am not doing this right because I am getting the following error: Can't locate auto/mapscript/classObj/swig_color_.al Help - thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From warmerdam at POBOX.COM Fri Nov 26 13:31:45 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 26 Nov 2004 16:31:45 -0500 Subject: FWTools 0.9.4 Released Message-ID: Folks, I have prepared FWTools 0.9.4 binaries for win32 and linux and made them available for download at: http://www.gdal.org/dl/fwtools/ FWTools 0.9.4 essentially corresponds to MapServer 4.4 beta3 and GDAL 1.2.5. It includes full Python support, and a variety of extras built in. OpenEV is also included. See the FWTools web site for more information on FWTools. http://fwtools.maptools.org/ Best regards, -- ---------------------------------------+-------------------------------------- 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 saengpole at YAHOO.COM Fri Nov 26 13:30:46 2004 From: saengpole at YAHOO.COM (Krung Saengpole) Date: Fri, 26 Nov 2004 13:30:46 -0800 Subject: Ok - something else missing In-Reply-To: Message-ID: Joseph, If I'm not wrong, the following style has been changed since 4.0. But I didn't use perl mapscript for a long time, so please re-check in the 3rd line's syntax. (actually I use PHPMapscript and translate it to perl for you) my $class = new mapscript::classObj($layerObj); my $style=new mapscript::styleObj($class); $style->{color}->setRGB(10,0,255); HTH Krung. Joseph Norris wrote: I am building a class via perl - I have the expression part set up but the color deal is giving me a problem: my $class = new mapscript::classObj($layerObj); $class->setExpression("/$zip_expression/"); $class->{color} = '102 0 255'; I know I am not doing this right because I am getting the following error: Can't locate auto/mapscript/classObj/swig_color_.al Help - thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); --------------------------------- Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Fri Nov 26 16:37:03 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 26 Nov 2004 23:37:03 -0100 Subject: change layer template on the fly {Scanned} Message-ID: Hi, I would like to change the layer template on the fly, using cgi mapserver. Is it possible? I can't find the cgi variable name. The layer name is parcel, I tried layer_parcel_template parcel_template without success. Any idea Tanx Zoltan From tylermitchell at SHAW.CA Sat Nov 27 07:17:40 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Sat, 27 Nov 2004 07:17:40 -0800 Subject: change layer template on the fly {Scanned} In-Reply-To: Message-ID: How about map_layer_parcel_template ? Tyler On November 26, 2004 04:37 pm, Siki Zoltan wrote: > Hi, > > I would like to change the layer template on the fly, using cgi mapserver. > Is it possible? I can't find the cgi variable name. > The layer name is parcel, I tried > layer_parcel_template > parcel_template > without success. > > Any idea > > Tanx > Zoltan From siki at AGT.BME.HU Sat Nov 27 10:22:53 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sat, 27 Nov 2004 17:22:53 -0100 Subject: change layer template on the fly {Scanned} In-Reply-To: <200411270717.40888.tylermitchell@shaw.ca> Message-ID: Hi, Thanks Tyler, but it doesn't work for me. Bye Zoltan On Sat, 27 Nov 2004, Tyler Mitchell wrote: > How about map_layer_parcel_template ? > > Tyler > > On November 26, 2004 04:37 pm, Siki Zoltan wrote: > > Hi, > > > > I would like to change the layer template on the fly, using cgi mapserver. > > Is it possible? I can't find the cgi variable name. > > The layer name is parcel, I tried > > layer_parcel_template > > parcel_template > > without success. > > > > Any idea > > > > Tanx > > Zoltan > From tylermitchell at SHAW.CA Sat Nov 27 14:40:40 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Sat, 27 Nov 2004 14:40:40 -0800 Subject: change layer template on the fly {Scanned} In-Reply-To: Message-ID: Can you show us exactly how you are using, i.e. an example URL. Tyler On November 26, 2004 04:37 pm, Siki Zoltan wrote: > Hi, > > I would like to change the layer template on the fly, using cgi mapserver. > Is it possible? I can't find the cgi variable name. > The layer name is parcel, I tried > layer_parcel_template > parcel_template > without success. > > Any idea > > Tanx > Zoltan From thomaschesky at YAHOO.COM Sat Nov 27 15:10:42 2004 From: thomaschesky at YAHOO.COM (Thomas Chesky) Date: Sat, 27 Nov 2004 15:10:42 -0800 Subject: bounding polygon Message-ID: Hello, Is there a tool out there to create a shapefile containing one polygon, which is the combined boundary of another shapefiles's shapes? For example, I have a shapefile containing parcel polygons for a county. I want to create another shapefile based on these parcel shapes which describes the combined boundary of parcels (e.g. to be able to effetively check if a point is in the bounding polygon) Pls. let me know what is the best approach to get such bounding shape. Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tylermitchell at SHAW.CA Sat Nov 27 17:12:45 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Sat, 27 Nov 2004 17:12:45 -0800 Subject: bounding polygon In-Reply-To: <20041127231042.60733.qmail@web54207.mail.yahoo.com> Message-ID: Hi Thomas, You could do it a few ways. The one I'm most familiar with is to load the shapefile into PostGIS and then use an SQL query to aggregate/combine the features. Then export it back into a shapefile. The other way is to use the OGR libraries and write a small script in Python. Both of these methods use the GEOS libraries behind the scenes. If you'd like to dig further into either of these ideas let us know, or better yet, get in touch with the PostGIS, GDAL/OGR and GEOS mailing lists. Sorry for no simple answer, I'd love to hear about other ways of doing this that are simpler. Anyone have a python script to do this already? Tyler On November 27, 2004 03:10 pm, Thomas Chesky wrote: > Hello, > > Is there a tool out there to create a shapefile containing one polygon, > which is the combined boundary of another shapefiles's shapes? > > For example, I have a shapefile containing parcel polygons for a county. I > want to create another shapefile based on these parcel shapes which > describes the combined boundary of parcels (e.g. to be able to effetively > check if a point is in the bounding polygon) > > Pls. let me know what is the best approach to get such bounding shape. > > Thanks > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com From nhv at CAPE.COM Sat Nov 27 17:37:30 2004 From: nhv at CAPE.COM (Norman Vine) Date: Sat, 27 Nov 2004 20:37:30 -0500 Subject: bounding polygon In-Reply-To: <200411271712.45614.tylermitchell@shaw.ca> Message-ID: Tyler Mitchell writes: > > Thomas Chesky wrote: > > > > Is there a tool out there to create a shapefile containing one polygon, > > which is the combined boundary of another shapefiles's shapes? > > > > You could do it a few ways. The one I'm most familiar with is to load the > shapefile into PostGIS and then use an SQL query to aggregate/combine the > features. Then export it back into a shapefile. > > The other way is to use the OGR libraries and write a small script in Python. > > Sorry for no simple answer, I'd love to hear about other ways of doing this > that are simpler. Anyone have a python script to do this already? If I understand the question correctly this should be fairly easy todo by exploiting the fact that all interior boundaries will be represented twice in the original shapefile whereas the exterior boundaries will only be represented once. Note the interior boundaries will probably be represented in inverse order i.e a line segment ptA -> ptB in poly1 will most likely be represented as a line segment ptB - > ptA in poly2 HTH Norman From woodbri at SWOODBRIDGE.COM Sat Nov 27 18:35:54 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 27 Nov 2004 21:35:54 -0500 Subject: bounding polygon In-Reply-To: <20041127231042.60733.qmail@web54207.mail.yahoo.com> Message-ID: tile4ms will do this if you pass in the name of your shapefile the output shapefile will have one record with the bounding box. -Steve Thomas Chesky wrote: > Hello, > > Is there a tool out there to create a shapefile containing one polygon, which is the combined boundary of another shapefiles's shapes? > > For example, I have a shapefile containing parcel polygons for a county. I want to create another shapefile based on these parcel shapes which describes the combined boundary of parcels (e.g. to be able to effetively check if a point is in the bounding polygon) > > Pls. let me know what is the best approach to get such bounding shape. > > Thanks > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com From sirronj at PACBELL.NET Sat Nov 27 22:03:16 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Sat, 27 Nov 2004 22:03:16 -0800 Subject: going crazy on setting the colors of my zip polygons via perl mapscript Message-ID: Group, I have found several samples of setting the color of a polygon based upon class that I come up with this: $zip_expression =~ s/\|$//; my $class = new mapscript::classObj($layerObj); $class->setExpression("/$zip_expression/"); $class->{styles}->{color}->{red} = 255; $class->{styles}->{color}->{green} = 153; $class->{styles}->{color}->{blue} = 153; $layerObj->draw($map, $img); However - this is not working. I am getting the right zip codes but no matter what I do I can not get my mapscript to set the color based upon the expression. When I was build the map file via perl I could set these just fine but now I would like to use the perl->mapscript interface to do this. What is wrong with the above snippet? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From siki at AGT.BME.HU Sun Nov 28 05:08:24 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 28 Nov 2004 12:08:24 -0100 Subject: change layer template on the fly {Scanned} In-Reply-To: <200411271440.40241.tylermitchell@shaw.ca> Message-ID: Hi, I only try to insert [map_layer_parcel_template] into my main html template, and other variants. It works for several cgi variables, is this different? Tanx Zoltan On Sat, 27 Nov 2004, Tyler Mitchell wrote: > Can you show us exactly how you are using, i.e. an example URL. > > Tyler > > On November 26, 2004 04:37 pm, Siki Zoltan wrote: > > Hi, > > > > I would like to change the layer template on the fly, using cgi mapserver. > > Is it possible? I can't find the cgi variable name. > > The layer name is parcel, I tried > > layer_parcel_template > > parcel_template > > without success. > > > > Any idea > > > > Tanx > > Zoltan > From cord at LUPINEX.COM Sun Nov 28 09:18:51 2004 From: cord at LUPINEX.COM (Cord Thomas) Date: Sun, 28 Nov 2004 09:18:51 -0800 Subject: People using the Next_Generation_API? Message-ID: Hello, I see mixed results when querying google about issues like getShapes() where it appears some people are using the next generation API? I am unclear - is this meant to be used now, or as place holder for future interfaces? I am working on a Perl mapserver application and would like to use the getShape(shapeindex) function, but it does not appear to be available in perl/mapscript_wrap.c - would this be available if i compiled mapserver with the NEXT_GENERATION_API directive? and how do i do that? Thank you Cord From sgillies at FRII.COM Sun Nov 28 09:24:44 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Sun, 28 Nov 2004 10:24:44 -0700 Subject: People using the Next_Generation_API? In-Reply-To: Message-ID: On Nov 28, 2004, at 10:18 AM, Cord Thomas wrote: > Hello, > > I see mixed results when querying google about issues like getShapes() > where it appears some people are using the next generation API? I am > unclear - is this meant to be used now, or as place holder for future > interfaces? > > I am working on a Perl mapserver application and would like to use the > getShape(shapeindex) function, but it does not appear to be available > in > perl/mapscript_wrap.c - would this be available if i compiled mapserver > with the NEXT_GENERATION_API directive? and how do i do that? > > Thank you > > Cord > > Cord, The next generation API experiment is over. The useful parts are now incorporated into the 4.4 mapscript API. layerObj::getFeature is the method that returns instances of shapeObj. See the API reference at mapserver/mapscript/doc/mapscript.txt for details. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From cord at LUPINEX.COM Sun Nov 28 09:29:37 2004 From: cord at LUPINEX.COM (Cord Thomas) Date: Sun, 28 Nov 2004 09:29:37 -0800 Subject: Sorry - found doc on NEXT_GEN API Message-ID: http://mapserver.gis.umn.edu/doc42/nextgen-appendix.html#layerobj-getshape From cord at LUPINEX.COM Sun Nov 28 09:38:26 2004 From: cord at LUPINEX.COM (Cord Thomas) Date: Sun, 28 Nov 2004 09:38:26 -0800 Subject: People using the Next_Generation_API? In-Reply-To: <657FFACC-4162-11D9-88FF-000D9329D732@frii.com> Message-ID: Sean, Thank you. Would you then recommend i pull the beta mapserver, rather than latest stabl e (4.2.x)? Most of the docs are for 4.2.x (and some these are outdated) - i am really quite impressed with progress that has been made on mapserver (used it 3-4 years ago to make simple maps) - but a little unclear on the development road map. As mapserver continues to grow, it would be great to see the unm home page present some of this information. Having worked on a number of OS projects, I know this is a hastle, but sure would be nice. Cord > On Nov 28, 2004, at 10:18 AM, Cord Thomas wrote: > >> Hello, >> >> I see mixed results when querying google about issues like getShapes() >> where it appears some people are using the next generation API? I am >> unclear - is this meant to be used now, or as place holder for future >> interfaces? >> >> I am working on a Perl mapserver application and would like to use the >> getShape(shapeindex) function, but it does not appear to be available >> in >> perl/mapscript_wrap.c - would this be available if i compiled mapserver >> with the NEXT_GENERATION_API directive? and how do i do that? >> >> Thank you >> >> Cord >> >> > > Cord, > > The next generation API experiment is over. The useful parts are > now incorporated into the 4.4 mapscript API. layerObj::getFeature > is the method that returns instances of shapeObj. See the API > reference at mapserver/mapscript/doc/mapscript.txt for details. > > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > > From sgillies at FRII.COM Sun Nov 28 10:07:18 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Sun, 28 Nov 2004 11:07:18 -0700 Subject: People using the Next_Generation_API? In-Reply-To: Message-ID: On Nov 28, 2004, at 10:38 AM, Cord Thomas wrote: > Sean, > > Thank you. > > Would you then recommend i pull the beta mapserver, rather than latest > stabl e (4.2.x)? Most of the docs are for 4.2.x (and some these are > outdated) - i am really quite impressed with progress that has been > made > on mapserver (used it 3-4 years ago to make simple maps) - but a little > unclear on the development road map. > > As mapserver continues to grow, it would be great to see the unm home > page > present some of this information. Having worked on a number of OS > projects, I know this is a hastle, but sure would be nice. > > Cord Yes, please try the 4.4 beta. Mapscript documentation for this version is better, see the API reference and HOWTOs under mapserver/mapscript/doc. Don't get me started about the website ... cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From cord at LUPINEX.COM Sun Nov 28 10:29:57 2004 From: cord at LUPINEX.COM (Cord Thomas) Date: Sun, 28 Nov 2004 10:29:57 -0800 Subject: Trying to review archived mail list - cannot get authorized Message-ID: I have tried several times to submit a request to get authorized to view the archived mail lists for documentation and user mail lists, but each time i try, the list server claims i am not authorized. I have tried with IE and firefox, made sure cookies allowed, reset and retried cookies - no luck. Each time, i get the message: "Sorry, you are not authorized to browse the archives of the MAPSERVER-DOCS list from the address you entered in the login screen." I have resubmitted my email address several times and gotten the confirmation that it is activated. Thoughts? From thomaschesky at YAHOO.COM Sun Nov 28 12:33:48 2004 From: thomaschesky at YAHOO.COM (Thomas Chesky) Date: Sun, 28 Nov 2004 12:33:48 -0800 Subject: bounding polygon In-Reply-To: <41A9398A.9040206@swoodbridge.com> Message-ID: tile4ms returned a rectangle on the county parcel shapefile as the bounding box. what I'd like to achive is to get the "real" bounding polygon. On county level, the county boundary is exactly what I am looking for. The problem is when I have shapes overlapping counties and I can not simply use the county boundary as the overall bounding polygon. I'll try the other options and let you guys know how it goes. thanks for the replies T. Stephen Woodbridge wrote: tile4ms will do this if you pass in the name of your shapefile the output shapefile will have one record with the bounding box. -Steve Thomas Chesky wrote: > Hello, > > Is there a tool out there to create a shapefile containing one polygon, which is the combined boundary of another shapefiles's shapes? > > For example, I have a shapefile containing parcel polygons for a county. I want to create another shapefile based on these parcel shapes which describes the combined boundary of parcels (e.g. to be able to effetively check if a point is in the bounding polygon) > > Pls. let me know what is the best approach to get such bounding shape. > > Thanks > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com --------------------------------- Do you Yahoo!? Yahoo! Mail - You care about security. So do we. -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at GEOSIGNAL.FR Sun Nov 28 14:04:47 2004 From: guillaume.sueur at GEOSIGNAL.FR (Guillaume SUEUR) Date: Sun, 28 Nov 2004 23:04:47 +0100 Subject: going crazy on setting the colors of my zip polygons via perl mapscript In-Reply-To: Message-ID: Hi, I've experienced the same kind of problem : $oClass = ms_newClassObj($oLayer); $oStyle = ms_newStyleObj($oClass); $oStyle->symbolname = "city"; $oStyle->size = 10; didn't work... but $oClass = ms_newClassObj($oLayer); $oStyle = ms_newStyleObj($oClass); $oStyle->set('symbolname','city'); $oStyle->set('size',10); did. So I think you should try accessing the properties that way. Hope that helps Guillaume Selon Joseph Norris : > Group, > > I have found several samples of setting the color of a polygon based upon > class that I come up with this: > > $zip_expression =~ s/\|$//; > my $class = new mapscript::classObj($layerObj); > $class->setExpression("/$zip_expression/"); > $class->{styles}->{color}->{red} = 255; > $class->{styles}->{color}->{green} = 153; > $class->{styles}->{color}->{blue} = 153; > $layerObj->draw($map, $img); > > However - this is not working. I am getting the right zip codes but no > matter what I do I can not get my mapscript to set the color based upon the > expression. When I was build the map file via perl I could set these just > fine but now I would like to use the perl->mapscript interface to do this. > > What is wrong with the above snippet? > > Thanks. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From jacob.delfos at MAUNSELL.COM Sun Nov 28 16:02:22 2004 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Mon, 29 Nov 2004 08:02:22 +0800 Subject: Applying security to individual layers or classes Message-ID: Hi All, Lately we have had a few scenarios where we need to limit the level of information for particular users. In one instance, we even had to set up over 20 different levels of access. So far I used server-side scripting, or created separate mapfiles. But this is not flexible, and can get very complex (especially with querying using chameleon). I thought it could be very useful to have a "security" attribute in classes and layers. You could imagine this as a layer or a class simply being ignored when the mapobject is built. Or perhaps a temporary copy of the mapfile is created, stripped of all objects that don't satisfy the security-level. The security attribute could be a delimited list of the users that are allowed to view the information. The username could be picked up from the web-server (in PHP I use the REDIRECT_REMOTE_USER server-variable in Apache 2.52; this would allow a nice integration with existing security mechanisms). I thought this would be a very convenient and flexible way to have different levels of access. Of course the original mapfile can not be publically accessable when security is applied. Does anyone have any other approach to applying different levels of security? I'd be very happy to hear about other solutions. regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, WA 6007 PO Box 81, WA 6902 Leederville Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at CI.STPAUL.MN.US Sun Nov 28 16:14:05 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Sun, 28 Nov 2004 18:14:05 -0600 Subject: Applying security to individual layers or classes In-Reply-To: Message-ID: All, I've had some thoughts centered around this as well. I've personally been leaning towards a database solution, where in the Layers are defined seperately as records in a DB and read into a semi dynamix MAPFILE from the database based on Login. The end product would be CGI based. with the operation MAPFILE being built on the fly. Another reason this is an attractive idea is that we have seperate Mapfiles now for each Layer and use DHTML to bring things together at the client by stacking Backgrounds and overlays. The MapFiles are also administered by the individual data custodians. This is only an idea at this point, but it seems like a logical approach to the security issue. The Template mapfile can then be set up with the basic (unsecured) layers and the sercure layers can be added in at will via a simple DB call based on login. bobb Jacob Delfos wrote: >Hi All, > >Lately we have had a few scenarios where we need to limit the level of = >information for particular users. In one instance, we even had to set up = >over 20 different levels of access. So far I used server-side scripting, = >or created separate mapfiles. But this is not flexible, and can get very = >complex (especially with querying using chameleon). > >I thought it could be very useful to have a "security" attribute in = >classes and layers. You could imagine this as a layer or a class simply = >being ignored when the mapobject is built. Or perhaps a temporary copy = >of the mapfile is created, stripped of all objects that don't satisfy = >the security-level. The security attribute could be a delimited list of = >the users that are allowed to view the information. The username could = >be picked up from the web-server (in PHP I use the REDIRECT_REMOTE_USER = >server-variable in Apache 2.52; this would allow a nice integration with = >existing security mechanisms). I thought this would be a very = >convenient and flexible way to have different levels of access. Of = >course the original mapfile can not be publically accessable when = >security is applied. > >Does anyone have any other approach to applying different levels of = >security? I'd be very happy to hear about other solutions. > >regards, > >Jacob > > > From sirronj at PACBELL.NET Sun Nov 28 16:47:52 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Sun, 28 Nov 2004 16:47:52 -0800 Subject: going crazy on setting the colors of my zip polygons via perl mapscript In-Reply-To: Message-ID: Come on!!!! Does anyone out there set color with perl/mapscript? I can do a class->setExpression("/lkasjdfkj/") - at least I think it is working - no errors however I can not set the color so that my map reflects that the regex was found? I just know that someone out there has got it to work. Please and thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Joseph Norris Sent: Saturday, November 27, 2004 10:03 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my zip polygons via perl mapscript Group, I have found several samples of setting the color of a polygon based upon class that I come up with this: $zip_expression =~ s/\|$//; my $class = new mapscript::classObj($layerObj); $class->setExpression("/$zip_expression/"); $class->{styles}->{color}->{red} = 255; $class->{styles}->{color}->{green} = 153; $class->{styles}->{color}->{blue} = 153; $layerObj->draw($map, $img); However - this is not working. I am getting the right zip codes but no matter what I do I can not get my mapscript to set the color based upon the expression. When I was build the map file via perl I could set these just fine but now I would like to use the perl->mapscript interface to do this. What is wrong with the above snippet? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From m.meier at SPIEKERMANN.DE Sun Nov 28 21:01:39 2004 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Mon, 29 Nov 2004 06:01:39 +0100 Subject: going crazy on setting the colors of my zip polygons via perl mapscript In-Reply-To: Message-ID: I don't know if that helps, i tried a long time ago something like: my $c = new mapscript::colorObj(255,0,0); $class->{styles}->{color} = $c; This did it for me and when I remember right, the setting with ->{red}, ->{green} and ->{blue} didn't work. Joseph Norris schrieb: > Come on!!!! Does anyone out there set color with perl/mapscript? I can do a > class->setExpression("/lkasjdfkj/") - at least I think it is working - no > errors however I can not set the color so that my map reflects that the > regex was found? I just know that someone out there has got it to work. > Please and thanks. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Joseph Norris > Sent: Saturday, November 27, 2004 10:03 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my zip > polygons via perl mapscript > > Group, > > I have found several samples of setting the color of a polygon based upon > class that I come up with this: > > $zip_expression =~ s/\|$//; > my $class = new mapscript::classObj($layerObj); > $class->setExpression("/$zip_expression/"); > $class->{styles}->{color}->{red} = 255; > $class->{styles}->{color}->{green} = 153; > $class->{styles}->{color}->{blue} = 153; > $layerObj->draw($map, $img); > > However - this is not working. I am getting the right zip codes but no > matter what I do I can not get my mapscript to set the color based upon the > expression. When I was build the map file via perl I could set these just > fine but now I would like to use the perl->mapscript interface to do this. > > What is wrong with the above snippet? > > Thanks. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From unicoletti at PROMETEO.IT Mon Nov 29 00:52:33 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Mon, 29 Nov 2004 09:52:33 +0100 Subject: Performance with oraclespatial using ogr In-Reply-To: <419E0C19.8040102@pobox.com> Message-ID: On Fri, 2004-11-19 at 10:07 -0500, Frank Warmerdam wrote: > Merlijn Simonse wrote: > > Frank, > > > > Thanks for your respond. In my database I have about ten different tables > > with spatial data. The PK fields have a different name in every table. As > > the OCI_FID CONFIG parameter is the same for all tables I probably better > > add an OGR_FID field to the necessary tables. > > > > To test if a unique indexed OGR_FID column improves performance I added > > this column to my table and also changed my DATA parameter to: > > DATA "SELECT OGR_FID, GEOM, LOCATIE_ID from LOCATIE where LOCATIESOORT_ID > > = 10" (I was wondering if "SELECT LOCATIE_ID as OGR_FID..." could also > > work) > > > > I didn't notice any differencin performance. I also tried: > > DATA "SELECT OGR_FID, GEOM, LOCATIE_ID from LOCATIE" > > > > Without the where clause it's very slow as well. > > Am I not using the right DATA parameter to let it use my OGR_FID field? > > Merlijn, > > In fact, on reflection, I don't think OGR's OCI driver (nor any other driver > for that matter) can do fast feature fetches from a user defined SQL operation. > > You could just use the table directly instead of providing your own SQL statement, > and do the "winnowing" of results with normal MapServer mechanism (an EXPRESSION > in a CLASS?). The downside of this is that all the records will be read the > first time through, but the subsequent feature fetch should be fast. > Couldn't one use a view instead of a custom query? To OGR it will look like it is accessing a table directly. Regards, Umberto > Generally speaking, when you use user defined SQL with OGR, you lose all benefits > of it's own spatial searching and feature id based fetches. It is much better > to "direct" table access letting OGR manage some of these things. But currently > there is no mechanism via MapServer to pass off an attribute query when doing > direct table access. What I really ought to do is change the MapServer OGR > binding so that you can say " WHERE " in the DATA statement > and have this be interpreted as direct table access, applying the requested > query. This is really the case that OGR is optimized for. But currently there > is no way to accomplish this. > > In fact, I could hack this in quite easily with a PROCESSING statement that > could hold the spatial query. I wonder if Daniel would blow a gasket if I > hacked that in today before beta3 is snapped! > > I would also echo the other response you got mentioning that the direct > Oracle Spatial support in MapServer now apparently has query support. If that > can do the job for you, it is likely to be faster than even an optimized > OGR implementation. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > 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 -- Umberto Nicoletti Prometeo SRL From joseluismapserver at YAHOO.ES Mon Nov 29 03:26:38 2004 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Mon, 29 Nov 2004 12:26:38 +0100 Subject: simple mapserver instrucctions don't work!! Message-ID: This is my code: First of all I have this file: package javamaps; public class MapserverLibLoad{ public static void loadLibrary() throws UnsatisfiedLinkError{ System.loadLibrary("mapscript"); } } Then this is the principal program, as you see it is a servlet: import javamaps.*; import edu.umn.gis.mapscript.*; import javax.ejb.*; import javax.xml.parsers.*; import javax.xml.transform.*; import javax.xml.transform.dom.*; import org.w3c.dom.*; import java.sql.*; import javax.sql.*; import javax.naming.*; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class test2 extends HttpServlet{ InitialContext initialContext=null; static{ try{ MapserverLibLoad.loadLibrary(); }catch(UnsatisfiedLinkError e){ e.printStackTrace(); System.out.println("CONTINUE"); } } //---------------------------------------------------------------------------------------------------------------------------- private Connection createDatabaseConnection()throws EJBException{ DataSource dataSource; Connection connection; PreparedStatement stmt; try{ dataSource = (DataSource) initialContext.lookup("jdbc/lbs"); connection= dataSource.getConnection(); //System.out.println(" DATABSE:::::"+connection.getMetaData().getUserName()); return connection; }catch (SQLException e){ throw (new EJBException(e)); }catch (NamingException e){ throw (new EJBException(e)); } } //---------------------------------------------------------------------------------------------------------------------------- public void init (ServletConfig cfg){ try{ System.out.println("Try to init servlet"); System.out.flush(); initialContext= new InitialContext(); }catch(Exception e){ throw (new EJBException(e)); } }//fin init public void service (HttpServletRequest req, HttpServletResponse res){ Connection conexion=null; String imei=null; PrintWriter out=null; Statement orden=null; ResultSet rs=null; String SQL=null; try{ itemObj item = new itemObj(); System.out.println(" BIG NAME :>>"+item.getName()+"<<"); conexion=this.createDatabaseConnection(); imei=req.getParameter("IMEI"); out=res.getWriter(); SQL="SELECT * FROM Client WHERE Name="; SQL=SQL+"'"+imei+"'"; orden=conexion.createStatement(); rs=orden.executeQuery(SQL); res.setContentType("text/html"); out.println(""); out.println(""); rs.next();//I move to the first row out.println(""); out.println(""); while (rs.next()){ out.println(""); } out.println("
"); out.println("
"+rs.getString("Name")); out.println(""+rs.getString("Mobile")); out.println(""+rs.getString("Telephone_Number")); out.println("
"+rs.getString("Name")); out.println(""+rs.getString("Mobile")); out.println(""+rs.getString("Telephone_Number")); out.println("
"); }//fin try catch (Exception e){ System.out.println(e); }catch (Throwable e){ System.out.println("WRONGG POINT"); e.printStackTrace(); }finally{ try{ out.close(); rs.close(); conexion.close(); orden.close(); }catch(Exception e){ throw (new EJBException(e)); } }//fin service } } It seems as like he can't reach the mapserver librarys and I don't know why.It gives me this error: java.lang.UnsatisfiedLinkError: new_itemObj Can someone help me? Know what I'm doing wrong? Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From valls at AMB.ES Mon Nov 29 03:36:18 2004 From: valls at AMB.ES (Jordi Valls Alseda) Date: Mon, 29 Nov 2004 05:36:18 -0600 Subject: display quality of scanned maps Message-ID: Hello mapserver users, I am working with mapserver and I am very satisfied with the software. Now I have a problem: my organization is interested in showing scanned maps from historical urban planing. The scanned maps, in jpg format, look fine with Arcmap(the esri product). But when I put them in mapserver, using the tileindex utility, the quality of the image is not good. What can I do to improve the quality of the image?. The map file looks like this: OUTPUTFORMAT NAME JPEG DRIVER "GD/JPEG" MIMETYPE "image/JPEG" FORMATOPTION "QUALITY=100" IMAGEMODE RGBA END IMAGETYPE JPEG LAYER # PGM 1:2000 NAME "PGM_2000" MINSCALE 0 MAXSCALE 60000 PROCESSING "DITHER=YES" TILEINDEX "c:\Archivos de programa\Apache Group\Apache2 \htdocs\PGMFulls\pasadas.shp" TILEITEM LOCATION TYPE RASTER STATUS OFF END # fi del layer Many Thanks, Jordi Valls i Alsed? www.amb.es email: valls at amb.es From James.Shanton2 at NSCORP.COM Mon Nov 29 04:25:24 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Mon, 29 Nov 2004 07:25:24 -0500 Subject: More than 2 Layers within group causing error Message-ID: We're trying to use the teraserver wms layers in our mapserver gis system, and are getting a weird error when I try to include more than 2 UTM zone layers within the group. Thanks ! Jim Here is how we are designing our map layer. LAYER NAME ortho-19 METADATA "wms_title" "USGS Digital Ortho-Quadrangles" "wms_srs" "EPSG:26919" #NAD83 UTM zone 19N "wms_extent" "-72 0 -66 90" # all zones are 6 deg Long. in width END GROUP "ortho" OFFSITE 255 255 255 STATUS OFF TYPE RASTER #MINSCALE 1500 #MAXSCALE 80000 CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FO RMAT=jpeg&styles=" PROJECTION "init=epsg:26919" #NAD83 UTM zone 19N END END ----------------------------------- Error that occurs when we try to add more than two layers to the group. Content-type: text/html msDrawMap(): Image handling error. Failed to draw layer named 'ortho-19'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. D:/MAPS/itraxtmp/110131775316320.img.tmp is not an EPPL file. msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 0 () for http://wms.jpl.nasa.gov/wms.cgi?REQUEST=map&LAYERS=us_landsat7 &STYLES=&FORMAT=png&TRANSPARENT=true&LAYERS=us%5Flandsat7&REQUEST=map&WMTVER =1.0.0&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=&HEIGHT=500&SRS=epsg:4326&WIDTH =600&BBOX=%2D79%2E799206%2C37%2E819571%2C%2D79%2E741181%2C37%2E867857&TRANSP ARENT=TRUE&EXCEPTIONS=INIMAGE From superbla3000 at GMX.NET Mon Nov 29 04:31:49 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Mon, 29 Nov 2004 13:31:49 +0100 Subject: compiling php mapscript Message-ID: hello, how do I compile php mapscript? Where do I find the source or packages? thanks Joerg From james.shanton2 at NSCORP.COM Mon Nov 29 04:42:27 2004 From: james.shanton2 at NSCORP.COM (Jim Shanton) Date: Mon, 29 Nov 2004 06:42:27 -0600 Subject: More than 2 Layers within group causing error Message-ID: We're trying to use the teraserver wms layers in our mapserver gis system, and are getting a weird error when I try to include more than 2 UTM zone layers within the group. Thanks ! Jim Here is how we are designing our map layer. LAYER NAME ortho-19 METADATA "wms_title" "USGS Digital Ortho-Quadrangles" "wms_srs" "EPSG:26919" #NAD83 UTM zone 19N "wms_extent" "-72 0 -66 90" # all zones are 6 deg Long. in width END GROUP "ortho" OFFSITE 255 255 255 STATUS OFF TYPE RASTER #MINSCALE 1500 #MAXSCALE 80000 CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/ogcmap.ashx? VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FORMAT=jpeg&styles=" PROJECTION "init=epsg:26919" #NAD83 UTM zone 19N END END ----------------------------------- Error that occurs when we try to add more than two layers to the group. Content-type: text/html msDrawMap(): Image handling error. Failed to draw layer named 'ortho-19'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. D:/MAPS/itraxtmp/110131775316320.img.tmp is not an EPPL file. msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 0 () for http://wms.jpl.nasa.gov/wms.cgi? REQUEST=map&LAYERS=us_landsat7 &STYLES=&FORMAT=png&TRANSPARENT=true&LAYERS=us% 5Flandsat7&REQUEST=map&WMTVER=1.0.0&SERVICE=WMS&FORMAT=image% 2Fpng&STYLES=&HEIGHT=500&SRS=epsg:4326&WIDTH=600&BBOX=%2D79%2E799206%2C37% 2E819571%2C%2D79%2E741181%2C37%2E867857&TRANSPARENT=TRUE&EXCEPTIONS=INIMAGE From asimpson at I-55.COM Mon Nov 29 05:06:06 2004 From: asimpson at I-55.COM (Simpson) Date: Mon, 29 Nov 2004 07:06:06 -0600 Subject: going crazy on setting the colors of my zip polygons via perl mapscript In-Reply-To: Message-ID: I think if you dynamically create your class objects you need to manually keep track of the 'numstyles' property. Try setting 'numstyles' to 1 like so: $class->{numstyles} = 1; Drew. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Joseph Norris Sent: Sunday, November 28, 2004 6:48 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my zip polygons via perl mapscript Come on!!!! Does anyone out there set color with perl/mapscript? I can do a class->setExpression("/lkasjdfkj/") - at least I think it is working - no errors however I can not set the color so that my map reflects that the regex was found? I just know that someone out there has got it to work. Please and thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Joseph Norris Sent: Saturday, November 27, 2004 10:03 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my zip polygons via perl mapscript Group, I have found several samples of setting the color of a polygon based upon class that I come up with this: $zip_expression =~ s/\|$//; my $class = new mapscript::classObj($layerObj); $class->setExpression("/$zip_expression/"); $class->{styles}->{color}->{red} = 255; $class->{styles}->{color}->{green} = 153; $class->{styles}->{color}->{blue} = 153; $layerObj->draw($map, $img); However - this is not working. I am getting the right zip codes but no matter what I do I can not get my mapscript to set the color based upon the expression. When I was build the map file via perl I could set these just fine but now I would like to use the perl->mapscript interface to do this. What is wrong with the above snippet? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From eric at GOMOOS.ORG Mon Nov 29 06:32:40 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Mon, 29 Nov 2004 09:32:40 -0500 Subject: going crazy on setting the colors of my zip polygons via perl mapscript In-Reply-To: <41AAAD33.1080902@spiekermann.de> Message-ID: I have used Manfred's method, but only after doing a: my $style = $class->getStyle(0); $style->{color} = $c; since there can be more than one style per class. You can also use: $style->{color}->setRGB(0,0,0); On Mon, 2004-11-29 at 00:01, Manfred Meier wrote: > I don't know if that helps, i tried a long time ago something like: > > my $c = new mapscript::colorObj(255,0,0); > $class->{styles}->{color} = $c; > > This did it for me and when I remember right, the setting with ->{red}, > ->{green} and ->{blue} didn't work. > > > > Joseph Norris schrieb: > > > Come on!!!! Does anyone out there set color with perl/mapscript? I can do a > > class->setExpression("/lkasjdfkj/") - at least I think it is working - no > > errors however I can not set the color so that my map reflects that the > > regex was found? I just know that someone out there has got it to work. > > Please and thanks. > > > > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > > Behalf Of Joseph Norris > > Sent: Saturday, November 27, 2004 10:03 PM > > To: MAPSERVER-USERS at lists.umn.edu > > Subject: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my zip > > polygons via perl mapscript > > > > Group, > > > > I have found several samples of setting the color of a polygon based upon > > class that I come up with this: > > > > $zip_expression =~ s/\|$//; > > my $class = new mapscript::classObj($layerObj); > > $class->setExpression("/$zip_expression/"); > > $class->{styles}->{color}->{red} = 255; > > $class->{styles}->{color}->{green} = 153; > > $class->{styles}->{color}->{blue} = 153; > > $layerObj->draw($map, $img); > > > > However - this is not working. I am getting the right zip codes but no > > matter what I do I can not get my mapscript to set the color based upon the > > expression. When I was build the map file via perl I could set these just > > fine but now I would like to use the perl->mapscript interface to do this. > > > > What is wrong with the above snippet? > > > > Thanks. > > > > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > > From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Mon Nov 29 06:42:09 2004 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Jean-Francois Doyon) Date: Mon, 29 Nov 2004 09:42:09 -0500 Subject: change layer template on the fly {Scann ed} Message-ID: Zoltan, To change the template used by the layer on the fly in a request, one of these should work: &map_parcel_template=mytemplate.html If that doesn't work, you may need to set TEMPLATEPATTERN (As documented). Inserting [map_layer_parcel_template] into your main template shouldn't work however. The template set for a layer is used when in query or nquery mode, in combination with the header and footer. J.F. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Siki Zoltan Sent: November 28, 2004 8:08 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] change layer template on the fly {Scanned} Hi, I only try to insert [map_layer_parcel_template] into my main html template, and other variants. It works for several cgi variables, is this different? Tanx Zoltan On Sat, 27 Nov 2004, Tyler Mitchell wrote: > Can you show us exactly how you are using, i.e. an example URL. > > Tyler > > On November 26, 2004 04:37 pm, Siki Zoltan wrote: > > Hi, > > > > I would like to change the layer template on the fly, using cgi mapserver. > > Is it possible? I can't find the cgi variable name. > > The layer name is parcel, I tried > > layer_parcel_template > > parcel_template > > without success. > > > > Any idea > > > > Tanx > > Zoltan > From sgillies at FRII.COM Mon Nov 29 06:42:59 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 29 Nov 2004 07:42:59 -0700 Subject: going crazy on setting the colors of my zip polygons via perl mapscript In-Reply-To: Message-ID: Everybody, do yourselves a big favor and upgrade to MapServer 4.2.5 or the 4.4 beta. The 4.0 mapscript had some real useablity problems and you are only making it worse by referring to ancient 3.5 and 3.6 examples! This is how you do it (4.2+). Add noise to translate into Perl :) new_class = mapscript.classObj(layer) # Add a style since a new class has 0 styles new_style = mapscript.styleObj(new_class) # Set the color using setRGB new_style.color.setRGB(255, 153, 153) Sean On Nov 29, 2004, at 6:06 AM, Simpson wrote: > I think if you dynamically create your class objects you need to > manually > keep track of the 'numstyles' property. > Try setting 'numstyles' to 1 like so: > > $class->{numstyles} = 1; > > Drew. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Joseph Norris > Sent: Sunday, November 28, 2004 6:48 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] going crazy on setting the colors of > my zip polygons via perl mapscript > > > Come on!!!! Does anyone out there set color with perl/mapscript? I can > do a > class->setExpression("/lkasjdfkj/") - at least I think it is working - > no > errors however I can not set the color so that my map reflects that the > regex was found? I just know that someone out there has got it to > work. > Please and thanks. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3, > -1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Joseph Norris > Sent: Saturday, November 27, 2004 10:03 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my > zip > polygons via perl mapscript > > Group, > > I have found several samples of setting the color of a polygon based > upon > class that I come up with this: > > $zip_expression =~ s/\|$//; > my $class = new mapscript::classObj($layerObj); > $class->setExpression("/$zip_expression/"); > $class->{styles}->{color}->{red} = 255; > $class->{styles}->{color}->{green} = 153; > $class->{styles}->{color}->{blue} = 153; > $layerObj->draw($map, $img); > > However - this is not working. I am getting the right zip codes but no > matter what I do I can not get my mapscript to set the color based > upon the > expression. When I was build the map file via perl I could set these > just > fine but now I would like to use the perl->mapscript interface to do > this. > > What is wrong with the above snippet? > > Thanks. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3, > -1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From sgillies at FRII.COM Mon Nov 29 06:56:16 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 29 Nov 2004 07:56:16 -0700 Subject: simple mapserver instrucctions don't work!! In-Reply-To: Message-ID: On Nov 29, 2004, at 4:26 AM, Jose Luis Gonzalez wrote: > --0-82611386-1101727598=:30831 > Content-Type: text/plain; charset=iso-8859-1 > Content-Transfer-Encoding: 8bit > > This is my code: > First of all I have this file: > > package javamaps; > > public class MapserverLibLoad{ > public static void loadLibrary() throws UnsatisfiedLinkError{ > System.loadLibrary("mapscript"); > } > } > > Then this is the principal program, as you see it is a servlet: > > import javamaps.*; > import edu.umn.gis.mapscript.*; > import javax.ejb.*; > import javax.xml.parsers.*; > import javax.xml.transform.*; > import javax.xml.transform.dom.*; > import org.w3c.dom.*; > import java.sql.*; > import javax.sql.*; > import javax.naming.*; > > import javax.servlet.*; > import javax.servlet.http.*; > import java.io.*; > public class test2 extends HttpServlet{ > > InitialContext initialContext=null; > > static{ > try{ > MapserverLibLoad.loadLibrary(); > }catch(UnsatisfiedLinkError e){ > e.printStackTrace(); > System.out.println("CONTINUE"); > } > } > > > / > /---------------------------------------------------------------------- > ------------------------------------------------------ > > private Connection createDatabaseConnection()throws EJBException{ > DataSource dataSource; > Connection connection; > PreparedStatement stmt; > try{ > dataSource = (DataSource) initialContext.lookup("jdbc/lbs"); > connection= dataSource.getConnection(); > //System.out.println(" > DATABSE:::::"+connection.getMetaData().getUserName()); > return connection; > }catch (SQLException e){ > throw (new EJBException(e)); > }catch (NamingException e){ > throw (new EJBException(e)); > } > } > > > > / > /---------------------------------------------------------------------- > ------------------------------------------------------ > public void init (ServletConfig cfg){ > try{ > System.out.println("Try to init servlet"); > System.out.flush(); > initialContext= new InitialContext(); > }catch(Exception e){ > throw (new EJBException(e)); > } > > }//fin init > > public void service (HttpServletRequest req, HttpServletResponse res){ > Connection conexion=null; > String imei=null; > PrintWriter out=null; > Statement orden=null; > ResultSet rs=null; > String SQL=null; > > try{ itemObj item = new itemObj(); > System.out.println(" BIG NAME > :>>"+item.getName()+"<<"); > > conexion=this.createDatabaseConnection(); > imei=req.getParameter("IMEI"); > out=res.getWriter(); > SQL="SELECT * FROM Client WHERE Name="; > SQL=SQL+"'"+imei+"'"; > orden=conexion.createStatement(); > rs=orden.executeQuery(SQL); > res.setContentType("text/html"); > out.println(""); > out.println(""); > rs.next();//I move to the first row > out.println(""); > out.println(""); > while (rs.next()){ > out.println(""); > } > out.println("
"); > out.println("
"+rs.getString("Name")); > out.println(""+rs.getString("Mobile")); > > out.println(""+rs.getString("Telephone_Number")); > out.println("
"+rs.getString("Name")); > out.println(""+rs.getString("Mobile")); > > out.println(""+rs.getString("Telephone_Number")); > out.println("
"); > > > > }//fin try > catch (Exception e){ > System.out.println(e); > }catch (Throwable e){ > System.out.println("WRONGG POINT"); > e.printStackTrace(); > }finally{ > try{ > out.close(); > rs.close(); > conexion.close(); > orden.close(); > }catch(Exception e){ > throw (new EJBException(e)); > } > > }//fin service > > } > } > > It seems as like he can't reach the mapserver librarys and I don't > know why.It gives me this error: > > java.lang.UnsatisfiedLinkError: new_itemObj > > Can someone help me? > Know what I'm doing wrong? > > Thank you > > Jose Luis > Jose Luis, 1) it is *very* important that you mention which version of MapServer you use! The mapscript module has changed very much from 3.6 to 4.4. 2) do not try to use itemObj, it is not functional. We use SWIG to generate the mapscript wrapper for Java, and it is very permissive, with the result that non-functional classes can be accidently added to mapscript. I'm going to shut itemObj out of the final 4.4 release. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From sirronj at PACBELL.NET Mon Nov 29 06:57:20 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 29 Nov 2004 06:57:20 -0800 Subject: going crazy on setting the colors of my zip polygons via perl mapscript In-Reply-To: Message-ID: Sean and everyone who has responded - thank you all but still no color! Here is what I have: #!/usr/bin/perl use URI::Escape; use mapscript; use POSIX qw(tmpnam); use CGI; use Data::Dumper; use lib q(/usr/local/cs/lib/); use CS; my $cs = new CS( domain => 'mco.communityservers.com' ); my $cfg = $cs->cfg; my $dbh = $cfg->dbhandle; my $cgi = new CGI; print "Content-type: text/html\n\n"; my $action = $cgi->param('action'); my $type = $cgi->param('type'); my $z = $cgi->param('zdir'); my $layers; if ($action eq 'submit'){ if ($type ne 'none'){ my $sql = qq! select cs_rid, firstname,lastname,zip,lat,lon from u where type = '$type'!; my %f = ( cs_rid=>1,firstname=>1,lastname=>1,zip=>1,lat=>1,lon=>1); my $cmd = $dbh->prepare( $sql ); $cmd->execute; my $i; my $rec = $cmd->fetchall_arrayref( {%f} ); foreach my $r (@{$rec}){ my $id = join '~', $r->{cs_rid}, $r->{zip}; $layers->{$id}->{firstname} = $r->{firstname}; $layers->{$id}->{lastname} = $r->{lastname}; $layers->{$id}->{lat} = $r->{lat}; $layers->{$id}->{lon} = $r->{lon}; } my ($map_file, $gif_file_location, $template_location) = &build_map($layers); &run_mapserver($map_file, $gif_file_location, $template_location, $z); } } else { print < MapServer - CS CGI Application EOD } exit(0); sub run_mapserver{ my ($map_file, $gif_file_location, $template_location, $zdir) = @_; my $url = qq!http://mco.communityservers.com/cgi-bin/mapserv!; $url .= "?map_web_template=$template_location/map_template.html"; $url .= "&zoomsize=2"; $url .= "&zoomdir=1"; $url .= "&zoom=2"; $url .= "&map=$map_file"; $url .= "&map_web_imagepath=$gif_file_location"; $url .= "&map_web_imageurl=/maps/tmp/"; $url .= "&map_web_template=$template_location/map_template.html"; $url .= "&root=/maps/teacher"; $url .= "&program=/cgi-bin/mapserv"; $url .= "&imgext=5890870.385 -192053.200 8943310.847 3226086.749"; $url .= "&mode=browse"; print qq!!; } sub build_map{ my ($point_hash) = @_; my $template_location = '/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/templ ates'; my $gif_location = '/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/tmp/'; my $mapfile = "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/zip.m ap"; my $map = new mapscript::mapObj("$mapfile"); if(!$map){ warn "New mapObj() error: $mapscript::ms_error->{message}\n"; } my $img = $map->prepareImage(); if(!$img){ warn "prepareImage() error: $mapscript::ms_error->{message}\n"; } $layerObj = undef; $layerObj = $map->getLayerByName('calzip'); if(!$layerObj){ warn "layerObj() error: $mapscript::ms_error->{message}\n"; } my $point = new mapscript::pointObj(); my @point_lookup = (); my $i = 0; my %zips; my $zip_expression; foreach my $point_id (keys %{$point_hash}){ my ($cs_rid, $zip) = split /~/, $point_id; next if (!$point_hash->{$point_id}->{lon} && !$point_hash->{$point_id}->{lat}); if (! (exists $zips{$zip}) ){ $zips{$zip} = 1; $zip_expression .= "$zip|"; } $point->{x} = $point_hash->{$point_id}->{lon}; $point->{y} = $point_hash->{$point_id}->{lat}; my $line = new mapscript::lineObj(); $line->add($point); my $shp = new mapscript::shapeObj($mapscript::MS_SHAPE_POINT); $shp->add($line); $shp->setBounds(); $shp->{text} = "$point_hash->{$point_id}->{firstname} $point_hash->{$point_id}->{lastname}"; $shp->{index} = $i; push @point_lookup, $point_id; $i++; } $zip_expression =~ s/\|$//; my $class = new mapscript::classObj($layerObj); $class->setExpression("/$zip_expression/"); my $style = new mapscript::styleObj($class); $style->{color}->setRGB(255,102,102); # $class->{numstyles} = 1; # $class->{styles}->{color}->{red} = 255; # $class->{styles}->{color}->{green} = 102; # $class->{styles}->{color}->{blue} = 102; $layerObj->draw($map, $img); my $image_name = POSIX::tmpnam(); $image_name .= '.gif'; $image_name =~ s/\///; my $img_loc = $gif_location . $image_name; # $map->drawLabelCache($img); $img->save($img_loc, $map); $img->free(); $image_name = '/maps/' . $image_name; return ($mapfile, $gif_location, $template_location); } Forget the point stuff - I am not even there yet - I just want the color now - my kingdom for colored polygons! Here is my map file: map name calmap status on extent 5890870.385 -192053.200 8943310.847 3226086.749 imagetype gif size 500 500 units dd shapepath "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " imagecolor 255 255 255 templatepattern "map" layer name "calzip" type polygon data "cal_zp_st" status default classitem "zcta" class expression /./ outlinecolor 204 204 204 end end end # end map from header All I need to do - I think - is add my class for selection of zip polygons - which is what I think that I am doing. I wish that there were more concrete examples! Thanks again. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Sean Gillies Sent: Monday, November 29, 2004 6:43 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my zip polygons via perl mapscript Everybody, do yourselves a big favor and upgrade to MapServer 4.2.5 or the 4.4 beta. The 4.0 mapscript had some real useablity problems and you are only making it worse by referring to ancient 3.5 and 3.6 examples! This is how you do it (4.2+). Add noise to translate into Perl :) new_class = mapscript.classObj(layer) # Add a style since a new class has 0 styles new_style = mapscript.styleObj(new_class) # Set the color using setRGB new_style.color.setRGB(255, 153, 153) Sean On Nov 29, 2004, at 6:06 AM, Simpson wrote: > I think if you dynamically create your class objects you need to > manually > keep track of the 'numstyles' property. > Try setting 'numstyles' to 1 like so: > > $class->{numstyles} = 1; > > Drew. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Joseph Norris > Sent: Sunday, November 28, 2004 6:48 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] going crazy on setting the colors of > my zip polygons via perl mapscript > > > Come on!!!! Does anyone out there set color with perl/mapscript? I can > do a > class->setExpression("/lkasjdfkj/") - at least I think it is working - > no > errors however I can not set the color so that my map reflects that the > regex was found? I just know that someone out there has got it to > work. > Please and thanks. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3, > -1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Joseph Norris > Sent: Saturday, November 27, 2004 10:03 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my > zip > polygons via perl mapscript > > Group, > > I have found several samples of setting the color of a polygon based > upon > class that I come up with this: > > $zip_expression =~ s/\|$//; > my $class = new mapscript::classObj($layerObj); > $class->setExpression("/$zip_expression/"); > $class->{styles}->{color}->{red} = 255; > $class->{styles}->{color}->{green} = 153; > $class->{styles}->{color}->{blue} = 153; > $layerObj->draw($map, $img); > > However - this is not working. I am getting the right zip codes but no > matter what I do I can not get my mapscript to set the color based > upon the > expression. When I was build the map file via perl I could set these > just > fine but now I would like to use the perl->mapscript interface to do > this. > > What is wrong with the above snippet? > > Thanks. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3, > -1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From sirronj at PACBELL.NET Mon Nov 29 07:01:20 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 29 Nov 2004 07:01:20 -0800 Subject: going crazy on setting the colors of my zip polygons via perl mapscript In-Reply-To: Message-ID: Also - I need to mention that I am on the latest and greatest mapserver - mapserver-4.4.0-beta3 #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Joseph Norris Sent: Monday, November 29, 2004 6:57 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my zip polygons via perl mapscript Sean and everyone who has responded - thank you all but still no color! Here is what I have: #!/usr/bin/perl use URI::Escape; use mapscript; use POSIX qw(tmpnam); use CGI; use Data::Dumper; use lib q(/usr/local/cs/lib/); use CS; my $cs = new CS( domain => 'mco.communityservers.com' ); my $cfg = $cs->cfg; my $dbh = $cfg->dbhandle; my $cgi = new CGI; print "Content-type: text/html\n\n"; my $action = $cgi->param('action'); my $type = $cgi->param('type'); my $z = $cgi->param('zdir'); my $layers; if ($action eq 'submit'){ if ($type ne 'none'){ my $sql = qq! select cs_rid, firstname,lastname,zip,lat,lon from u where type = '$type'!; my %f = ( cs_rid=>1,firstname=>1,lastname=>1,zip=>1,lat=>1,lon=>1); my $cmd = $dbh->prepare( $sql ); $cmd->execute; my $i; my $rec = $cmd->fetchall_arrayref( {%f} ); foreach my $r (@{$rec}){ my $id = join '~', $r->{cs_rid}, $r->{zip}; $layers->{$id}->{firstname} = $r->{firstname}; $layers->{$id}->{lastname} = $r->{lastname}; $layers->{$id}->{lat} = $r->{lat}; $layers->{$id}->{lon} = $r->{lon}; } my ($map_file, $gif_file_location, $template_location) = &build_map($layers); &run_mapserver($map_file, $gif_file_location, $template_location, $z); } } else { print < MapServer - CS CGI Application EOD } exit(0); sub run_mapserver{ my ($map_file, $gif_file_location, $template_location, $zdir) = @_; my $url = qq!http://mco.communityservers.com/cgi-bin/mapserv!; $url .= "?map_web_template=$template_location/map_template.html"; $url .= "&zoomsize=2"; $url .= "&zoomdir=1"; $url .= "&zoom=2"; $url .= "&map=$map_file"; $url .= "&map_web_imagepath=$gif_file_location"; $url .= "&map_web_imageurl=/maps/tmp/"; $url .= "&map_web_template=$template_location/map_template.html"; $url .= "&root=/maps/teacher"; $url .= "&program=/cgi-bin/mapserv"; $url .= "&imgext=5890870.385 -192053.200 8943310.847 3226086.749"; $url .= "&mode=browse"; print qq!!; } sub build_map{ my ($point_hash) = @_; my $template_location = '/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/templ ates'; my $gif_location = '/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/tmp/'; my $mapfile = "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/zip.m ap"; my $map = new mapscript::mapObj("$mapfile"); if(!$map){ warn "New mapObj() error: $mapscript::ms_error->{message}\n"; } my $img = $map->prepareImage(); if(!$img){ warn "prepareImage() error: $mapscript::ms_error->{message}\n"; } $layerObj = undef; $layerObj = $map->getLayerByName('calzip'); if(!$layerObj){ warn "layerObj() error: $mapscript::ms_error->{message}\n"; } my $point = new mapscript::pointObj(); my @point_lookup = (); my $i = 0; my %zips; my $zip_expression; foreach my $point_id (keys %{$point_hash}){ my ($cs_rid, $zip) = split /~/, $point_id; next if (!$point_hash->{$point_id}->{lon} && !$point_hash->{$point_id}->{lat}); if (! (exists $zips{$zip}) ){ $zips{$zip} = 1; $zip_expression .= "$zip|"; } $point->{x} = $point_hash->{$point_id}->{lon}; $point->{y} = $point_hash->{$point_id}->{lat}; my $line = new mapscript::lineObj(); $line->add($point); my $shp = new mapscript::shapeObj($mapscript::MS_SHAPE_POINT); $shp->add($line); $shp->setBounds(); $shp->{text} = "$point_hash->{$point_id}->{firstname} $point_hash->{$point_id}->{lastname}"; $shp->{index} = $i; push @point_lookup, $point_id; $i++; } $zip_expression =~ s/\|$//; my $class = new mapscript::classObj($layerObj); $class->setExpression("/$zip_expression/"); my $style = new mapscript::styleObj($class); $style->{color}->setRGB(255,102,102); # $class->{numstyles} = 1; # $class->{styles}->{color}->{red} = 255; # $class->{styles}->{color}->{green} = 102; # $class->{styles}->{color}->{blue} = 102; $layerObj->draw($map, $img); my $image_name = POSIX::tmpnam(); $image_name .= '.gif'; $image_name =~ s/\///; my $img_loc = $gif_location . $image_name; # $map->drawLabelCache($img); $img->save($img_loc, $map); $img->free(); $image_name = '/maps/' . $image_name; return ($mapfile, $gif_location, $template_location); } Forget the point stuff - I am not even there yet - I just want the color now - my kingdom for colored polygons! Here is my map file: map name calmap status on extent 5890870.385 -192053.200 8943310.847 3226086.749 imagetype gif size 500 500 units dd shapepath "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " imagecolor 255 255 255 templatepattern "map" layer name "calzip" type polygon data "cal_zp_st" status default classitem "zcta" class expression /./ outlinecolor 204 204 204 end end end # end map from header All I need to do - I think - is add my class for selection of zip polygons - which is what I think that I am doing. I wish that there were more concrete examples! Thanks again. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Sean Gillies Sent: Monday, November 29, 2004 6:43 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my zip polygons via perl mapscript Everybody, do yourselves a big favor and upgrade to MapServer 4.2.5 or the 4.4 beta. The 4.0 mapscript had some real useablity problems and you are only making it worse by referring to ancient 3.5 and 3.6 examples! This is how you do it (4.2+). Add noise to translate into Perl :) new_class = mapscript.classObj(layer) # Add a style since a new class has 0 styles new_style = mapscript.styleObj(new_class) # Set the color using setRGB new_style.color.setRGB(255, 153, 153) Sean On Nov 29, 2004, at 6:06 AM, Simpson wrote: > I think if you dynamically create your class objects you need to > manually > keep track of the 'numstyles' property. > Try setting 'numstyles' to 1 like so: > > $class->{numstyles} = 1; > > Drew. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Joseph Norris > Sent: Sunday, November 28, 2004 6:48 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] going crazy on setting the colors of > my zip polygons via perl mapscript > > > Come on!!!! Does anyone out there set color with perl/mapscript? I can > do a > class->setExpression("/lkasjdfkj/") - at least I think it is working - > no > errors however I can not set the color so that my map reflects that the > regex was found? I just know that someone out there has got it to > work. > Please and thanks. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3, > -1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Joseph Norris > Sent: Saturday, November 27, 2004 10:03 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my > zip > polygons via perl mapscript > > Group, > > I have found several samples of setting the color of a polygon based > upon > class that I come up with this: > > $zip_expression =~ s/\|$//; > my $class = new mapscript::classObj($layerObj); > $class->setExpression("/$zip_expression/"); > $class->{styles}->{color}->{red} = 255; > $class->{styles}->{color}->{green} = 153; > $class->{styles}->{color}->{blue} = 153; > $layerObj->draw($map, $img); > > However - this is not working. I am getting the right zip codes but no > matter what I do I can not get my mapscript to set the color based > upon the > expression. When I was build the map file via perl I could set these > just > fine but now I would like to use the perl->mapscript interface to do > this. > > What is wrong with the above snippet? > > Thanks. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3, > -1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From Micheal.Arnold at NSCORP.COM Mon Nov 29 07:42:49 2004 From: Micheal.Arnold at NSCORP.COM (Arnold, Micheal B.) Date: Mon, 29 Nov 2004 10:42:49 -0500 Subject: jbox area Message-ID: For some reason, the area that I am getting back for polygons using jbox seems to be off. The segment length and total length seem to be fine, but the area is off by a factor of about 5. Does anybody have any ideas or suggestions? Below are the measure_handler functions I am using. Thanks for the help! Mike Arnold micheal.arnold at nscorp.com function measure_handler(name, s, t, n, a) { // c = 1 / 72dpi / 12inches_per_foot * 1.0003state_plane_scale_factor var c = 0.0011577546296296; // constant var f = [scale] * c; // scale factor if ((s>0) || (t>0)) { if (n < 3) { defaultStatus = "This segment = " + distFormat(s*f) + ", Total = " + distFormat(t*f) + ", Number of vertices = " + n ; } else { defaultStatus = "This segment = " + distFormat(s*f) + ", Total = " + distFormat(t*f) + ", Number of vertices = " + n + ", Area = " + distFormat(a*f) ; } } } function roundFeet(x) { var fpp = ([maxx] - [minx]) / [mapwidth]; // resolution (feet per pixel) if (fpp < 4) return (Math.round(x)); if (fpp < 8) return (Math.round(x/5)*5); if (fpp < 17) return (Math.round(x/10)*10); if (fpp < 40) return (Math.round(x/25)*25); if (fpp < 80) return (Math.round(x/50)*50); return (Math.round(x/100)*100); } function distFormat(x) { var d; if (x > 7920) return ((Math.round(x/5280*10)/10) + " miles"); d = roundFeet(x); if (d > 2640) return (d + " ft (" + (Math.round(x/5280*10)/10) + ")mile"); return (d + " ft"); } -------------- next part -------------- An HTML attachment was scrubbed... URL: From maplist at AVIATION.NL Mon Nov 29 07:52:22 2004 From: maplist at AVIATION.NL (Hans de Bruin) Date: Mon, 29 Nov 2004 16:52:22 +0100 Subject: Grid disappearing when zoomed in Message-ID: Hi all, I've made a viewer in which I've incorporated several ECW's and a simple vector map. I've also added a GRID layer, defined to display a grid of 500 x 500 meters. This works fine, right up to the point where you zoom in beyond a size of 500 meters on the screen, at which point the grid disappears. Is this normal behaviour ? Best regards, Hans From umn at KARSTEN-LESSING.DE Mon Nov 29 07:56:13 2004 From: umn at KARSTEN-LESSING.DE (K. Lessing) Date: Mon, 29 Nov 2004 16:56:13 +0100 Subject: WFS Problems Message-ID: An HTML attachment was scrubbed... URL: From asimpson at I-55.COM Mon Nov 29 08:04:48 2004 From: asimpson at I-55.COM (Simpson) Date: Mon, 29 Nov 2004 10:04:48 -0600 Subject: going crazy on setting the colors of my zip polygons via perl mapscript In-Reply-To: Message-ID: Joe, Try saving your map object out to a file, via: $map->save("some file name"); You can then review, what you think you've configured vs what was actually configured. Also, you can instantiate a map object with edited versions of this map file. Drew. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Joseph Norris Sent: Monday, November 29, 2004 9:01 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my zip polygons via perl mapscript Also - I need to mention that I am on the latest and greatest mapserver - mapserver-4.4.0-beta3 #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Joseph Norris Sent: Monday, November 29, 2004 6:57 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my zip polygons via perl mapscript Sean and everyone who has responded - thank you all but still no color! Here is what I have: #!/usr/bin/perl use URI::Escape; use mapscript; use POSIX qw(tmpnam); use CGI; use Data::Dumper; use lib q(/usr/local/cs/lib/); use CS; my $cs = new CS( domain => 'mco.communityservers.com' ); my $cfg = $cs->cfg; my $dbh = $cfg->dbhandle; my $cgi = new CGI; print "Content-type: text/html\n\n"; my $action = $cgi->param('action'); my $type = $cgi->param('type'); my $z = $cgi->param('zdir'); my $layers; if ($action eq 'submit'){ if ($type ne 'none'){ my $sql = qq! select cs_rid, firstname,lastname,zip,lat,lon from u where type = '$type'!; my %f = ( cs_rid=>1,firstname=>1,lastname=>1,zip=>1,lat=>1,lon=>1); my $cmd = $dbh->prepare( $sql ); $cmd->execute; my $i; my $rec = $cmd->fetchall_arrayref( {%f} ); foreach my $r (@{$rec}){ my $id = join '~', $r->{cs_rid}, $r->{zip}; $layers->{$id}->{firstname} = $r->{firstname}; $layers->{$id}->{lastname} = $r->{lastname}; $layers->{$id}->{lat} = $r->{lat}; $layers->{$id}->{lon} = $r->{lon}; } my ($map_file, $gif_file_location, $template_location) = &build_map($layers); &run_mapserver($map_file, $gif_file_location, $template_location, $z); } } else { print < MapServer - CS CGI Application EOD } exit(0); sub run_mapserver{ my ($map_file, $gif_file_location, $template_location, $zdir) = @_; my $url = qq!http://mco.communityservers.com/cgi-bin/mapserv!; $url .= "?map_web_template=$template_location/map_template.html"; $url .= "&zoomsize=2"; $url .= "&zoomdir=1"; $url .= "&zoom=2"; $url .= "&map=$map_file"; $url .= "&map_web_imagepath=$gif_file_location"; $url .= "&map_web_imageurl=/maps/tmp/"; $url .= "&map_web_template=$template_location/map_template.html"; $url .= "&root=/maps/teacher"; $url .= "&program=/cgi-bin/mapserv"; $url .= "&imgext=5890870.385 -192053.200 8943310.847 3226086.749"; $url .= "&mode=browse"; print qq!!; } sub build_map{ my ($point_hash) = @_; my $template_location = '/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/templ ates'; my $gif_location = '/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/tmp/'; my $mapfile = "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/zip.m ap"; my $map = new mapscript::mapObj("$mapfile"); if(!$map){ warn "New mapObj() error: $mapscript::ms_error->{message}\n"; } my $img = $map->prepareImage(); if(!$img){ warn "prepareImage() error: $mapscript::ms_error->{message}\n"; } $layerObj = undef; $layerObj = $map->getLayerByName('calzip'); if(!$layerObj){ warn "layerObj() error: $mapscript::ms_error->{message}\n"; } my $point = new mapscript::pointObj(); my @point_lookup = (); my $i = 0; my %zips; my $zip_expression; foreach my $point_id (keys %{$point_hash}){ my ($cs_rid, $zip) = split /~/, $point_id; next if (!$point_hash->{$point_id}->{lon} && !$point_hash->{$point_id}->{lat}); if (! (exists $zips{$zip}) ){ $zips{$zip} = 1; $zip_expression .= "$zip|"; } $point->{x} = $point_hash->{$point_id}->{lon}; $point->{y} = $point_hash->{$point_id}->{lat}; my $line = new mapscript::lineObj(); $line->add($point); my $shp = new mapscript::shapeObj($mapscript::MS_SHAPE_POINT); $shp->add($line); $shp->setBounds(); $shp->{text} = "$point_hash->{$point_id}->{firstname} $point_hash->{$point_id}->{lastname}"; $shp->{index} = $i; push @point_lookup, $point_id; $i++; } $zip_expression =~ s/\|$//; my $class = new mapscript::classObj($layerObj); $class->setExpression("/$zip_expression/"); my $style = new mapscript::styleObj($class); $style->{color}->setRGB(255,102,102); # $class->{numstyles} = 1; # $class->{styles}->{color}->{red} = 255; # $class->{styles}->{color}->{green} = 102; # $class->{styles}->{color}->{blue} = 102; $layerObj->draw($map, $img); my $image_name = POSIX::tmpnam(); $image_name .= '.gif'; $image_name =~ s/\///; my $img_loc = $gif_location . $image_name; # $map->drawLabelCache($img); $img->save($img_loc, $map); $img->free(); $image_name = '/maps/' . $image_name; return ($mapfile, $gif_location, $template_location); } Forget the point stuff - I am not even there yet - I just want the color now - my kingdom for colored polygons! Here is my map file: map name calmap status on extent 5890870.385 -192053.200 8943310.847 3226086.749 imagetype gif size 500 500 units dd shapepath "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " imagecolor 255 255 255 templatepattern "map" layer name "calzip" type polygon data "cal_zp_st" status default classitem "zcta" class expression /./ outlinecolor 204 204 204 end end end # end map from header All I need to do - I think - is add my class for selection of zip polygons - which is what I think that I am doing. I wish that there were more concrete examples! Thanks again. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Sean Gillies Sent: Monday, November 29, 2004 6:43 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my zip polygons via perl mapscript Everybody, do yourselves a big favor and upgrade to MapServer 4.2.5 or the 4.4 beta. The 4.0 mapscript had some real useablity problems and you are only making it worse by referring to ancient 3.5 and 3.6 examples! This is how you do it (4.2+). Add noise to translate into Perl :) new_class = mapscript.classObj(layer) # Add a style since a new class has 0 styles new_style = mapscript.styleObj(new_class) # Set the color using setRGB new_style.color.setRGB(255, 153, 153) Sean On Nov 29, 2004, at 6:06 AM, Simpson wrote: > I think if you dynamically create your class objects you need to > manually > keep track of the 'numstyles' property. > Try setting 'numstyles' to 1 like so: > > $class->{numstyles} = 1; > > Drew. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Joseph Norris > Sent: Sunday, November 28, 2004 6:48 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] going crazy on setting the colors of > my zip polygons via perl mapscript > > > Come on!!!! Does anyone out there set color with perl/mapscript? I can > do a > class->setExpression("/lkasjdfkj/") - at least I think it is working - > no > errors however I can not set the color so that my map reflects that the > regex was found? I just know that someone out there has got it to > work. > Please and thanks. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3, > -1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Joseph Norris > Sent: Saturday, November 27, 2004 10:03 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my > zip > polygons via perl mapscript > > Group, > > I have found several samples of setting the color of a polygon based > upon > class that I come up with this: > > $zip_expression =~ s/\|$//; > my $class = new mapscript::classObj($layerObj); > $class->setExpression("/$zip_expression/"); > $class->{styles}->{color}->{red} = 255; > $class->{styles}->{color}->{green} = 153; > $class->{styles}->{color}->{blue} = 153; > $layerObj->draw($map, $img); > > However - this is not working. I am getting the right zip codes but no > matter what I do I can not get my mapscript to set the color based > upon the > expression. When I was build the map file via perl I could set these > just > fine but now I would like to use the perl->mapscript interface to do > this. > > What is wrong with the above snippet? > > Thanks. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3, > -1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From sirronj at PACBELL.NET Mon Nov 29 08:34:01 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 29 Nov 2004 08:34:01 -0800 Subject: going crazy on setting the colors of my zip polygons via perl mapscript In-Reply-To: Message-ID: Three Cheers for Drew!!!!!!!!! This revealed a bunch of stuff that I was not doing correctly and I am now drawing my map with proper colors - yeah!!!!!! Now on to setting points in my polygon! And you all thought that you heard the last of me - hehe!!! Thanks again to Drew and all of you who have been putting up with a newbie like me. Sorry for the consternation. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Simpson Sent: Monday, November 29, 2004 8:05 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my zip polygons via perl mapscript Joe, Try saving your map object out to a file, via: $map->save("some file name"); You can then review, what you think you've configured vs what was actually configured. Also, you can instantiate a map object with edited versions of this map file. Drew. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Joseph Norris Sent: Monday, November 29, 2004 9:01 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my zip polygons via perl mapscript Also - I need to mention that I am on the latest and greatest mapserver - mapserver-4.4.0-beta3 #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Joseph Norris Sent: Monday, November 29, 2004 6:57 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my zip polygons via perl mapscript Sean and everyone who has responded - thank you all but still no color! Here is what I have: #!/usr/bin/perl use URI::Escape; use mapscript; use POSIX qw(tmpnam); use CGI; use Data::Dumper; use lib q(/usr/local/cs/lib/); use CS; my $cs = new CS( domain => 'mco.communityservers.com' ); my $cfg = $cs->cfg; my $dbh = $cfg->dbhandle; my $cgi = new CGI; print "Content-type: text/html\n\n"; my $action = $cgi->param('action'); my $type = $cgi->param('type'); my $z = $cgi->param('zdir'); my $layers; if ($action eq 'submit'){ if ($type ne 'none'){ my $sql = qq! select cs_rid, firstname,lastname,zip,lat,lon from u where type = '$type'!; my %f = ( cs_rid=>1,firstname=>1,lastname=>1,zip=>1,lat=>1,lon=>1); my $cmd = $dbh->prepare( $sql ); $cmd->execute; my $i; my $rec = $cmd->fetchall_arrayref( {%f} ); foreach my $r (@{$rec}){ my $id = join '~', $r->{cs_rid}, $r->{zip}; $layers->{$id}->{firstname} = $r->{firstname}; $layers->{$id}->{lastname} = $r->{lastname}; $layers->{$id}->{lat} = $r->{lat}; $layers->{$id}->{lon} = $r->{lon}; } my ($map_file, $gif_file_location, $template_location) = &build_map($layers); &run_mapserver($map_file, $gif_file_location, $template_location, $z); } } else { print < MapServer - CS CGI Application EOD } exit(0); sub run_mapserver{ my ($map_file, $gif_file_location, $template_location, $zdir) = @_; my $url = qq!http://mco.communityservers.com/cgi-bin/mapserv!; $url .= "?map_web_template=$template_location/map_template.html"; $url .= "&zoomsize=2"; $url .= "&zoomdir=1"; $url .= "&zoom=2"; $url .= "&map=$map_file"; $url .= "&map_web_imagepath=$gif_file_location"; $url .= "&map_web_imageurl=/maps/tmp/"; $url .= "&map_web_template=$template_location/map_template.html"; $url .= "&root=/maps/teacher"; $url .= "&program=/cgi-bin/mapserv"; $url .= "&imgext=5890870.385 -192053.200 8943310.847 3226086.749"; $url .= "&mode=browse"; print qq!!; } sub build_map{ my ($point_hash) = @_; my $template_location = '/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/templ ates'; my $gif_location = '/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/tmp/'; my $mapfile = "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/zip.m ap"; my $map = new mapscript::mapObj("$mapfile"); if(!$map){ warn "New mapObj() error: $mapscript::ms_error->{message}\n"; } my $img = $map->prepareImage(); if(!$img){ warn "prepareImage() error: $mapscript::ms_error->{message}\n"; } $layerObj = undef; $layerObj = $map->getLayerByName('calzip'); if(!$layerObj){ warn "layerObj() error: $mapscript::ms_error->{message}\n"; } my $point = new mapscript::pointObj(); my @point_lookup = (); my $i = 0; my %zips; my $zip_expression; foreach my $point_id (keys %{$point_hash}){ my ($cs_rid, $zip) = split /~/, $point_id; next if (!$point_hash->{$point_id}->{lon} && !$point_hash->{$point_id}->{lat}); if (! (exists $zips{$zip}) ){ $zips{$zip} = 1; $zip_expression .= "$zip|"; } $point->{x} = $point_hash->{$point_id}->{lon}; $point->{y} = $point_hash->{$point_id}->{lat}; my $line = new mapscript::lineObj(); $line->add($point); my $shp = new mapscript::shapeObj($mapscript::MS_SHAPE_POINT); $shp->add($line); $shp->setBounds(); $shp->{text} = "$point_hash->{$point_id}->{firstname} $point_hash->{$point_id}->{lastname}"; $shp->{index} = $i; push @point_lookup, $point_id; $i++; } $zip_expression =~ s/\|$//; my $class = new mapscript::classObj($layerObj); $class->setExpression("/$zip_expression/"); my $style = new mapscript::styleObj($class); $style->{color}->setRGB(255,102,102); # $class->{numstyles} = 1; # $class->{styles}->{color}->{red} = 255; # $class->{styles}->{color}->{green} = 102; # $class->{styles}->{color}->{blue} = 102; $layerObj->draw($map, $img); my $image_name = POSIX::tmpnam(); $image_name .= '.gif'; $image_name =~ s/\///; my $img_loc = $gif_location . $image_name; # $map->drawLabelCache($img); $img->save($img_loc, $map); $img->free(); $image_name = '/maps/' . $image_name; return ($mapfile, $gif_location, $template_location); } Forget the point stuff - I am not even there yet - I just want the color now - my kingdom for colored polygons! Here is my map file: map name calmap status on extent 5890870.385 -192053.200 8943310.847 3226086.749 imagetype gif size 500 500 units dd shapepath "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " imagecolor 255 255 255 templatepattern "map" layer name "calzip" type polygon data "cal_zp_st" status default classitem "zcta" class expression /./ outlinecolor 204 204 204 end end end # end map from header All I need to do - I think - is add my class for selection of zip polygons - which is what I think that I am doing. I wish that there were more concrete examples! Thanks again. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Sean Gillies Sent: Monday, November 29, 2004 6:43 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my zip polygons via perl mapscript Everybody, do yourselves a big favor and upgrade to MapServer 4.2.5 or the 4.4 beta. The 4.0 mapscript had some real useablity problems and you are only making it worse by referring to ancient 3.5 and 3.6 examples! This is how you do it (4.2+). Add noise to translate into Perl :) new_class = mapscript.classObj(layer) # Add a style since a new class has 0 styles new_style = mapscript.styleObj(new_class) # Set the color using setRGB new_style.color.setRGB(255, 153, 153) Sean On Nov 29, 2004, at 6:06 AM, Simpson wrote: > I think if you dynamically create your class objects you need to > manually > keep track of the 'numstyles' property. > Try setting 'numstyles' to 1 like so: > > $class->{numstyles} = 1; > > Drew. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Joseph Norris > Sent: Sunday, November 28, 2004 6:48 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] going crazy on setting the colors of > my zip polygons via perl mapscript > > > Come on!!!! Does anyone out there set color with perl/mapscript? I can > do a > class->setExpression("/lkasjdfkj/") - at least I think it is working - > no > errors however I can not set the color so that my map reflects that the > regex was found? I just know that someone out there has got it to > work. > Please and thanks. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3, > -1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Joseph Norris > Sent: Saturday, November 27, 2004 10:03 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] going crazy on setting the colors of my > zip > polygons via perl mapscript > > Group, > > I have found several samples of setting the color of a polygon based > upon > class that I come up with this: > > $zip_expression =~ s/\|$//; > my $class = new mapscript::classObj($layerObj); > $class->setExpression("/$zip_expression/"); > $class->{styles}->{color}->{red} = 255; > $class->{styles}->{color}->{green} = 153; > $class->{styles}->{color}->{blue} = 153; > $layerObj->draw($map, $img); > > However - this is not working. I am getting the right zip codes but no > matter what I do I can not get my mapscript to set the color based > upon the > expression. When I was build the map file via perl I could set these > just > fine but now I would like to use the perl->mapscript interface to do > this. > > What is wrong with the above snippet? > > Thanks. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3, > -1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From warmerdam at POBOX.COM Mon Nov 29 08:49:34 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 29 Nov 2004 11:49:34 -0500 Subject: Performance with oraclespatial using ogr In-Reply-To: <1101718353.4342.6.camel@friedrich.prometeo.it> Message-ID: Umberto Nicoletti wrote: > Couldn't one use a view instead of a custom query? To OGR it will look > like it is accessing a table directly. Umberto, Yes, in fact, I think a view would work just like a regular table as long as it is listed in the all_sdo_geom_metadata table or is specifically requested via the table list in the datasource name. Best regards, -- ---------------------------------------+-------------------------------------- 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 jmckenna at DMSOLUTIONS.CA Mon Nov 29 09:19:22 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 29 Nov 2004 12:19:22 -0500 Subject: Reminder: Next Ottawa MapServer User Group Meeting Message-ID: Hello everyone, Please don't forget that the next Ottawa MapServer user meeting is tomorrow night at Patty's Pub on Bank Street. cya there! jeff ----- Time: Tues Nov 30th, 6pm Location: Patty's Pub (1186 Bank Street, corner of Ossington Ave and Bank, Ottawa South) Internet: wireless provided Parking: available in sidestreets Food: wing night (cheap wings!) Agenda: very informal gathering, topics include: 1) demo: Xiaoyuan Geng from Agriculture Canada has volunteered to show their work on GeoLinking and GDAS related geoprocessing (titled "Dynamically generate WMS using GDAS xml streams") 2) demo: Dean Gadoury from DM Solutions has volunteered to show the Gulf of Maine Mapping Portal, a system recently developed using the Chameleon service instance to allow organizations to easily publish data for other members, or build their own mapping applications. 3) open discussion: MUM3/OSGIS, mapserver 4.4 changes, .... 4) eat cheap & yummy wings so we hope to see you there! -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca From bartvde at XS4ALL.NL Mon Nov 29 09:21:18 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 29 Nov 2004 18:21:18 +0100 Subject: WFS Problems In-Reply-To: <41AB469D.3060405@karsten-lessing.de> Message-ID: Hi, could you try using a connection string without parameters. The typename you set through metadata differs from the typename you specify in the connection. The preferred way to do this now is to set all the variables through the METADATA and not in the connection string. CONNECTION "http://babyz.uni-muenster.de/wfs/WFS?" Also, does your WFS server support HTTP POST requests? Are there any error messages in your error logs? Is the gml actually being downloaded to the tmp directory? Best regards, Bart On Mon, 29 Nov 2004 16:56:13 +0100, K. Lessing wrote: > Dear List member, > > I am new with the work on mapserver as wfs-client. > I am running Mapserver 4.2.5. with the support of all necessary > libraries on > Suse 9.1. > I read the How2 instruction page for setting up an WFS-Layer. > Unfortunatelly it does not work. > Does anybody maybe have a clue what could be wrong? > Please have a look on the following map file. > > thanx beforehand > K. Lessing > > > MAP > NAME "wfs_client" > SIZE 500 700 > IMAGECOLOR 50 50 50 > EXTENT 9000 5500000 1000000 5600000 > STATUS ON > PROJECTION > "init=epsg:32632" > END > > WEB > TEMPLATE "template5.html" > IMAGEPATH "/srv/www/htdocs/tmp/" > IMAGEURL "/tmp/" > END > > OUTPUTFORMAT > NAME "Farbenfroh" > DRIVER "GDAL/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpeg" > END > > LAYER > NAME "WaterLevel" > TYPE LINE > STATUS DEFAULT > CONNECTION > "http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&VERSION=1.0.0&Typename=WLIS_UTM32&" > CONNECTIONTYPE WFS > PROJECTION > "init=epsg:32632" > END > METADATA > "wfs_version" "1.0.0" > "wfs_typename" "bafg2" > "wfs_service" "WFS" > "wfs_connectiontimeout" "60" > "wfs_latlonboundingbox" "9000 5500000 1000000 5600000" > "wfs_latlonboundingbox" "4.608 46.879 9.725 52.077" > END > CLASSITEM "lineId" > CLASS > EXPRESSION '124.0' > Color 200 200 200 > END > END > END -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From nasir_pcit at YAHOO.COM Mon Nov 29 09:43:52 2004 From: nasir_pcit at YAHOO.COM (nasir mahmood) Date: Mon, 29 Nov 2004 09:43:52 -0800 Subject: Shape file info Message-ID: Hi all, How can I know EXTENT, UNITS etc attributes for MAP tag if I have a shapefile. thx in advance Nasir --------------------------------- Do you Yahoo!? The all-new My Yahoo! ? Get yours free! -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Mon Nov 29 09:51:23 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 29 Nov 2004 18:51:23 +0100 Subject: Shape file info In-Reply-To: <20041129174352.72480.qmail@web14922.mail.yahoo.com> Message-ID: Hi, Use ogrinfo, a utility program which comes with fwtools for instance. http://fwtools.maptools.org/ Best regards, Bart On Mon, 29 Nov 2004 09:43:52 -0800, nasir mahmood wrote: > Hi all, > > How can I know EXTENT, UNITS etc attributes for MAP tag if I have a > shapefile. > > thx in advance > Nasir > > > --------------------------------- > Do you Yahoo!? > The all-new My Yahoo! ? Get yours free! -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From sirronj at PACBELL.NET Mon Nov 29 11:12:40 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 29 Nov 2004 11:12:40 -0800 Subject: Things are comming along but .... please look at this mapfile dump Message-ID: Hello again, I am now on the quest to add points to my map of zips in California. I have the following map file but the points are not showing up in the layer. If you can see anything that I need to change - please let me know. I have found that it is easier to work from a dump of the mapfile - make adjustments then return to my perl script and make sure that these adjustments happen. Thanks to all. MAP EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 TEMPLATEPATTERN "map" IMAGECOLOR 255 255 255 IMAGETYPE gif SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " SIZE 600 600 STATUS ON UNITS DD NAME "calmap" OUTPUTFORMAT NAME gif MIMETYPE image/gif DRIVER GD/GIF EXTENSION gif IMAGEMODE PC256 TRANSPARENT FALSE END SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END SYMBOL NAME "plus" TYPE VECTOR POINTS 0.5 0 0.5 1 -99 -99 0 0.5 1 0.5 END END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END POSITION LL STATUS EMBED END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END SCALEBAR COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 UNITS MILES END WEB IMAGEPATH "" IMAGEURL "" QUERYFORMAT text/html END LAYER NAME "points" SIZEUNITS PIXELS STATUS ON TEMPLATE "bogus.html" TOLERANCE 10 TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS CLASS NAME "buoy" LABEL SIZE MEDIUM TYPE BITMAP BUFFER 2 COLOR 255 102 102 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS FALSE POSITION AUTO END STYLE COLOR 255 102 102 MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 255 255 255 SIZE 8 SYMBOL "circle" END END FEATURE POINTS -121.507 38.5263 END TEXT "Mary Lyn Kagan" END FEATURE POINTS -122.451 37.7752 END TEXT "Greg D'Amico" END FEATURE POINTS -119.646 36.3426 END TEXT "Leslie Steffen" END FEATURE POINTS -122.54 38.0065 END TEXT "john antico" END FEATURE POINTS -116.976 32.7712 END TEXT "SWANSONG BRAHMAN" END END LAYER CLASSITEM "zcta" DATA "cal_zp_st" NAME "calzip" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POLYGON UNITS METERS CLASS NAME "Zip Boundries" EXPRESSION /./ STYLE MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 204 204 204 SIZE 1 SYMBOL 0 END END END END #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From woodbri at SWOODBRIDGE.COM Mon Nov 29 11:25:47 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 29 Nov 2004 14:25:47 -0500 Subject: Things are comming along but .... please look at this mapfile dump In-Reply-To: Message-ID: Joseph, I seem to remember a bug a while back about symbols defined in the mapfile not always working that the you needed to move them in to a separate symbol file that you reference in the mapfile. Also, I believe that "symbol 0" is a predefined mapserver symbol that is the same as circle. Somebody please correct this if the above assumptions are wrong. -Steve W. Joseph Norris wrote: > Hello again, > > I am now on the quest to add points to my map of zips in California. I have > the following map file but the points are not showing up in the layer. If > you can see anything that I need to change - please let me know. I have > found that it is easier to work from a dump of the mapfile - make > adjustments then return to my perl script and make sure that these > adjustments happen. > > Thanks to all. > > > MAP > EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 > TEMPLATEPATTERN "map" > IMAGECOLOR 255 255 255 > IMAGETYPE gif > SHAPEPATH > "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata > " > SIZE 600 600 > STATUS ON > UNITS DD > NAME "calmap" > > OUTPUTFORMAT > NAME gif > MIMETYPE image/gif > DRIVER GD/GIF > EXTENSION gif > IMAGEMODE PC256 > TRANSPARENT FALSE > END > > SYMBOL > NAME "circle" > TYPE ELLIPSE > FILLED TRUE > POINTS > 1 1 > END > END > > SYMBOL > NAME "plus" > TYPE VECTOR > POINTS > 0.5 0 > 0.5 1 > -99 -99 > 0 0.5 > 1 0.5 > END > END > > LEGEND > IMAGECOLOR 255 255 255 > KEYSIZE 20 10 > KEYSPACING 5 5 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > POSITION CC > END > POSITION LL > STATUS EMBED > END > > QUERYMAP > COLOR 255 255 0 > SIZE -1 -1 > STATUS OFF > STYLE HILITE > END > > SCALEBAR > COLOR 0 0 0 > IMAGECOLOR 255 255 255 > INTERVALS 4 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > END > POSITION LL > SIZE 200 3 > STATUS OFF > STYLE 0 > UNITS MILES > END > > WEB > IMAGEPATH "" > IMAGEURL "" > QUERYFORMAT text/html > END > > LAYER > NAME "points" > SIZEUNITS PIXELS > STATUS ON > TEMPLATE "bogus.html" > TOLERANCE 10 > TOLERANCEUNITS PIXELS > TYPE POINT > UNITS METERS > CLASS > NAME "buoy" > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 2 > COLOR 255 102 102 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS FALSE > POSITION AUTO > END > STYLE > COLOR 255 102 102 > MAXSIZE 100 > MINSIZE 1 > OUTLINECOLOR 255 255 255 > SIZE 8 > SYMBOL "circle" > END > END > FEATURE > POINTS > -121.507 38.5263 > END > TEXT "Mary Lyn Kagan" > END > FEATURE > POINTS > -122.451 37.7752 > END > TEXT "Greg D'Amico" > END > FEATURE > POINTS > -119.646 36.3426 > END > TEXT "Leslie Steffen" > END > FEATURE > POINTS > -122.54 38.0065 > END > TEXT "john antico" > END > FEATURE > POINTS > -116.976 32.7712 > END > TEXT "SWANSONG BRAHMAN" > END > END > > > LAYER > CLASSITEM "zcta" > DATA "cal_zp_st" > NAME "calzip" > SIZEUNITS PIXELS > STATUS DEFAULT > TOLERANCE 0 > TOLERANCEUNITS PIXELS > TYPE POLYGON > UNITS METERS > CLASS > NAME "Zip Boundries" > EXPRESSION /./ > STYLE > MAXSIZE 100 > MINSIZE 1 > OUTLINECOLOR 204 204 204 > SIZE 1 > SYMBOL 0 > END > > END > END > > > END > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From David.Fawcett at STATE.MN.US Mon Nov 29 11:26:05 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Mon, 29 Nov 2004 13:26:05 -0600 Subject: Things are comming along but .... please look at this mapfile dump Message-ID: Joseph, A few things that I noticed that are probably related to your problem: It looks like your EXTENT is in meters suggesting a UTM projection. Your UNITS specify DD, suggesting that your data is in Lat Long. It also looks like you are creating your new points using Lat Long. If all of your data is truly unprojected (lat/long), then all you should need to do is change your extent to the appropriate boundaries for your data in lat/long. My guess is that you got your EXTENT from your Zip Code shapefile, which suggests that it is projected to something like UTM. If this is the case, you will have to add a PROJECTION block for the map and PROJECTION information for each layer in your map file. David. David J. Fawcett MN Office of Environmental Assistance >>> Joseph Norris 11/29/2004 1:12:40 PM >>> Hello again, I am now on the quest to add points to my map of zips in California. I have the following map file but the points are not showing up in the layer. If you can see anything that I need to change - please let me know. I have found that it is easier to work from a dump of the mapfile - make adjustments then return to my perl script and make sure that these adjustments happen. Thanks to all. MAP EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 TEMPLATEPATTERN "map" IMAGECOLOR 255 255 255 IMAGETYPE gif SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " SIZE 600 600 STATUS ON UNITS DD NAME "calmap" OUTPUTFORMAT NAME gif MIMETYPE image/gif DRIVER GD/GIF EXTENSION gif IMAGEMODE PC256 TRANSPARENT FALSE END SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END SYMBOL NAME "plus" TYPE VECTOR POINTS 0.5 0 0.5 1 -99 -99 0 0.5 1 0.5 END END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END POSITION LL STATUS EMBED END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END SCALEBAR COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 UNITS MILES END WEB IMAGEPATH "" IMAGEURL "" QUERYFORMAT text/html END LAYER NAME "points" SIZEUNITS PIXELS STATUS ON TEMPLATE "bogus.html" TOLERANCE 10 TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS CLASS NAME "buoy" LABEL SIZE MEDIUM TYPE BITMAP BUFFER 2 COLOR 255 102 102 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS FALSE POSITION AUTO END STYLE COLOR 255 102 102 MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 255 255 255 SIZE 8 SYMBOL "circle" END END FEATURE POINTS -121.507 38.5263 END TEXT "Mary Lyn Kagan" END FEATURE POINTS -122.451 37.7752 END TEXT "Greg D'Amico" END FEATURE POINTS -119.646 36.3426 END TEXT "Leslie Steffen" END FEATURE POINTS -122.54 38.0065 END TEXT "john antico" END FEATURE POINTS -116.976 32.7712 END TEXT "SWANSONG BRAHMAN" END END LAYER CLASSITEM "zcta" DATA "cal_zp_st" NAME "calzip" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POLYGON UNITS METERS CLASS NAME "Zip Boundries" EXPRESSION /./ STYLE MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 204 204 204 SIZE 1 SYMBOL 0 END END END END #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From siki at AGT.BME.HU Mon Nov 29 13:42:46 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 29 Nov 2004 20:42:46 -0100 Subject: change layer template on the fly {Scann ed} {Scanned} {Scanned} In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7798@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: Dear Jean-Francois, Thank you for your help, map_parcel_template works in the url, and map_parcel_header and map_parcel_footer does too. Bye Zoltan On Mon, 29 Nov 2004, Jean-Francois Doyon wrote: > Zoltan, > > To change the template used by the layer on the fly in a request, one of > these should work: > > &map_parcel_template=mytemplate.html > > If that doesn't work, you may need to set TEMPLATEPATTERN (As documented). > > Inserting [map_layer_parcel_template] into your main template shouldn't work > however. > > The template set for a layer is used when in query or nquery mode, in > combination with the header and footer. > > J.F. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Siki Zoltan > Sent: November 28, 2004 8:08 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] change layer template on the fly > {Scanned} > > > Hi, > > I only try to insert [map_layer_parcel_template] into my main html > template, and other variants. > It works for several cgi variables, is this different? > > Tanx > Zoltan > > On Sat, 27 Nov 2004, Tyler Mitchell wrote: > > > Can you show us exactly how you are using, i.e. an example URL. > > > > Tyler > > > > On November 26, 2004 04:37 pm, Siki Zoltan wrote: > > > Hi, > > > > > > I would like to change the layer template on the fly, using cgi > mapserver. > > > Is it possible? I can't find the cgi variable name. > > > The layer name is parcel, I tried > > > layer_parcel_template > > > parcel_template > > > without success. > > > > > > Any idea > > > > > > Tanx > > > Zoltan > > > From sirronj at PACBELL.NET Mon Nov 29 11:48:04 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 29 Nov 2004 11:48:04 -0800 Subject: Things are comming along but .... please look at this mapfile dump In-Reply-To: Message-ID: Thanks for responding David, I follow you on most of this except for the following: If all of your data is truly unprojected (lat/long), then all you should need to do is change your extent to the appropriate boundaries for your data in lat/long. How do I find out what my extent should be for lat/long? Here is my modified file - taking into account - I think - what you have specified. MAP EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 TEMPLATEPATTERN "map" IMAGECOLOR 255 255 255 IMAGETYPE gif SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " SIZE 600 600 STATUS ON UNITS DD NAME "calmap" PROJECTION "proj=latlong" END OUTPUTFORMAT NAME gif MIMETYPE image/gif DRIVER GD/GIF EXTENSION gif IMAGEMODE PC256 TRANSPARENT FALSE END SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END POSITION LL STATUS EMBED END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END SCALEBAR COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 UNITS MILES END WEB IMAGEPATH "" IMAGEURL "" QUERYFORMAT text/html END LAYER CLASSITEM "zcta" DATA "cal_zp_st" NAME "calzip" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POLYGON UNITS DD PROJECTION "proj=latlong" END CLASS NAME "Zip Boundries" EXPRESSION /./ STYLE MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 204 204 204 SIZE 1 SYMBOL 0 END END END LAYER NAME "points" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POINT UNITS DD PROJECTION "proj=latlong" END CLASS NAME "teacher" LABEL SIZE MEDIUM TYPE BITMAP BUFFER 2 COLOR 255 102 102 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS FALSE POSITION AUTO END STYLE COLOR 255 102 102 MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 255 255 255 SIZE 8 SYMBOL "circle" END END FEATURE POINTS -121.507 38.5263 END TEXT "Mary Lyn Kagan" END FEATURE POINTS -122.451 37.7752 END TEXT "Greg D'Amico" END FEATURE POINTS -119.646 36.3426 END TEXT "Leslie Steffen" END FEATURE POINTS -122.54 38.0065 END TEXT "john antico" END FEATURE POINTS -116.976 32.7712 END TEXT "SWANSONG BRAHMAN" END END END #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of David Fawcett Sent: Monday, November 29, 2004 11:26 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... please look at this mapfile dump Joseph, A few things that I noticed that are probably related to your problem: It looks like your EXTENT is in meters suggesting a UTM projection. Your UNITS specify DD, suggesting that your data is in Lat Long. It also looks like you are creating your new points using Lat Long. If all of your data is truly unprojected (lat/long), then all you should need to do is change your extent to the appropriate boundaries for your data in lat/long. My guess is that you got your EXTENT from your Zip Code shapefile, which suggests that it is projected to something like UTM. If this is the case, you will have to add a PROJECTION block for the map and PROJECTION information for each layer in your map file. David. David J. Fawcett MN Office of Environmental Assistance >>> Joseph Norris 11/29/2004 1:12:40 PM >>> Hello again, I am now on the quest to add points to my map of zips in California. I have the following map file but the points are not showing up in the layer. If you can see anything that I need to change - please let me know. I have found that it is easier to work from a dump of the mapfile - make adjustments then return to my perl script and make sure that these adjustments happen. Thanks to all. MAP EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 TEMPLATEPATTERN "map" IMAGECOLOR 255 255 255 IMAGETYPE gif SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " SIZE 600 600 STATUS ON UNITS DD NAME "calmap" OUTPUTFORMAT NAME gif MIMETYPE image/gif DRIVER GD/GIF EXTENSION gif IMAGEMODE PC256 TRANSPARENT FALSE END SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END SYMBOL NAME "plus" TYPE VECTOR POINTS 0.5 0 0.5 1 -99 -99 0 0.5 1 0.5 END END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END POSITION LL STATUS EMBED END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END SCALEBAR COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 UNITS MILES END WEB IMAGEPATH "" IMAGEURL "" QUERYFORMAT text/html END LAYER NAME "points" SIZEUNITS PIXELS STATUS ON TEMPLATE "bogus.html" TOLERANCE 10 TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS CLASS NAME "buoy" LABEL SIZE MEDIUM TYPE BITMAP BUFFER 2 COLOR 255 102 102 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS FALSE POSITION AUTO END STYLE COLOR 255 102 102 MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 255 255 255 SIZE 8 SYMBOL "circle" END END FEATURE POINTS -121.507 38.5263 END TEXT "Mary Lyn Kagan" END FEATURE POINTS -122.451 37.7752 END TEXT "Greg D'Amico" END FEATURE POINTS -119.646 36.3426 END TEXT "Leslie Steffen" END FEATURE POINTS -122.54 38.0065 END TEXT "john antico" END FEATURE POINTS -116.976 32.7712 END TEXT "SWANSONG BRAHMAN" END END LAYER CLASSITEM "zcta" DATA "cal_zp_st" NAME "calzip" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POLYGON UNITS METERS CLASS NAME "Zip Boundries" EXPRESSION /./ STYLE MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 204 204 204 SIZE 1 SYMBOL 0 END END END END #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From David.Fawcett at STATE.MN.US Mon Nov 29 12:18:30 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Mon, 29 Nov 2004 14:18:30 -0600 Subject: Things are comming along but .... please look at this mapfile dump Message-ID: Joseph, Your first objective is to find out more about your California Zips shapefile. Is it projected, if so, what is the projection? Where did you get it from, is there any metadata or documentation there? Where did you get the values for EXTENT in your map file? If you got these values from your Zips shapefile, I would guess that your data is in UTM, you would then have to determine what UTM zone it is. If you run shpdump, shpinfo, or gdalinfo on the shapefile, you can get it's extent. Take a look at the mapfile documentation regarding projections. http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#projection To use projections in MapServer, you define a PROJECTION block in the MAP object to set the projection for the map to be created. You then create PROJECTION blocks in each layer, defining the projection that the layer data exists in. In your map file, you have set the projections in both your MAP object and your 'calzip' layer to be 'latlong'. You need to set the projection for the 'calzip' layer to the definition for whatever projection it is in. David J. Fawcett MN Office of Environmental Assistance >>>How do I find out what my extent should be for lat/long? -figure out what projection you want your final map to be in. It can be in the same projection as any of your layers, or something completely different. There are trade-offs for every projection (or lack of one). Once you figure out what output projection you want, set the EXTENT, UNITS, and PROJECTION object in the MAP file to match that projection. If your 'calzip' polygon really is in UTM (my assumption) and you like the way that it looks, you may choose to use UTM as the output projection and project your lat/long teacher points to UTM. David. >>> Joseph Norris 11/29/2004 1:48:04 PM >>> Thanks for responding David, I follow you on most of this except for the following: If all of your data is truly unprojected (lat/long), then all you should need to do is change your extent to the appropriate boundaries for your data in lat/long. How do I find out what my extent should be for lat/long? Here is my modified file - taking into account - I think - what you have specified. MAP EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 TEMPLATEPATTERN "map" IMAGECOLOR 255 255 255 IMAGETYPE gif SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " SIZE 600 600 STATUS ON UNITS DD NAME "calmap" PROJECTION "proj=latlong" END OUTPUTFORMAT NAME gif MIMETYPE image/gif DRIVER GD/GIF EXTENSION gif IMAGEMODE PC256 TRANSPARENT FALSE END SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END POSITION LL STATUS EMBED END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END SCALEBAR COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 UNITS MILES END WEB IMAGEPATH "" IMAGEURL "" QUERYFORMAT text/html END LAYER CLASSITEM "zcta" DATA "cal_zp_st" NAME "calzip" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POLYGON UNITS DD PROJECTION "proj=latlong" END CLASS NAME "Zip Boundries" EXPRESSION /./ STYLE MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 204 204 204 SIZE 1 SYMBOL 0 END END END LAYER NAME "points" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POINT UNITS DD PROJECTION "proj=latlong" END CLASS NAME "teacher" LABEL SIZE MEDIUM TYPE BITMAP BUFFER 2 COLOR 255 102 102 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS FALSE POSITION AUTO END STYLE COLOR 255 102 102 MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 255 255 255 SIZE 8 SYMBOL "circle" END END FEATURE POINTS -121.507 38.5263 END TEXT "Mary Lyn Kagan" END FEATURE POINTS -122.451 37.7752 END TEXT "Greg D'Amico" END FEATURE POINTS -119.646 36.3426 END TEXT "Leslie Steffen" END FEATURE POINTS -122.54 38.0065 END TEXT "john antico" END FEATURE POINTS -116.976 32.7712 END TEXT "SWANSONG BRAHMAN" END END END #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of David Fawcett Sent: Monday, November 29, 2004 11:26 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... please look at this mapfile dump Joseph, A few things that I noticed that are probably related to your problem: It looks like your EXTENT is in meters suggesting a UTM projection. Your UNITS specify DD, suggesting that your data is in Lat Long. It also looks like you are creating your new points using Lat Long. If all of your data is truly unprojected (lat/long), then all you should need to do is change your extent to the appropriate boundaries for your data in lat/long. My guess is that you got your EXTENT from your Zip Code shapefile, which suggests that it is projected to something like UTM. If this is the case, you will have to add a PROJECTION block for the map and PROJECTION information for each layer in your map file. David. David J. Fawcett MN Office of Environmental Assistance >>> Joseph Norris 11/29/2004 1:12:40 PM >>> Hello again, I am now on the quest to add points to my map of zips in California. I have the following map file but the points are not showing up in the layer. If you can see anything that I need to change - please let me know. I have found that it is easier to work from a dump of the mapfile - make adjustments then return to my perl script and make sure that these adjustments happen. Thanks to all. MAP EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 TEMPLATEPATTERN "map" IMAGECOLOR 255 255 255 IMAGETYPE gif SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " SIZE 600 600 STATUS ON UNITS DD NAME "calmap" OUTPUTFORMAT NAME gif MIMETYPE image/gif DRIVER GD/GIF EXTENSION gif IMAGEMODE PC256 TRANSPARENT FALSE END SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END SYMBOL NAME "plus" TYPE VECTOR POINTS 0.5 0 0.5 1 -99 -99 0 0.5 1 0.5 END END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END POSITION LL STATUS EMBED END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END SCALEBAR COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 UNITS MILES END WEB IMAGEPATH "" IMAGEURL "" QUERYFORMAT text/html END LAYER NAME "points" SIZEUNITS PIXELS STATUS ON TEMPLATE "bogus.html" TOLERANCE 10 TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS CLASS NAME "buoy" LABEL SIZE MEDIUM TYPE BITMAP BUFFER 2 COLOR 255 102 102 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS FALSE POSITION AUTO END STYLE COLOR 255 102 102 MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 255 255 255 SIZE 8 SYMBOL "circle" END END FEATURE POINTS -121.507 38.5263 END TEXT "Mary Lyn Kagan" END FEATURE POINTS -122.451 37.7752 END TEXT "Greg D'Amico" END FEATURE POINTS -119.646 36.3426 END TEXT "Leslie Steffen" END FEATURE POINTS -122.54 38.0065 END TEXT "john antico" END FEATURE POINTS -116.976 32.7712 END TEXT "SWANSONG BRAHMAN" END END LAYER CLASSITEM "zcta" DATA "cal_zp_st" NAME "calzip" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POLYGON UNITS METERS CLASS NAME "Zip Boundries" EXPRESSION /./ STYLE MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 204 204 204 SIZE 1 SYMBOL 0 END END END END #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From sirronj at PACBELL.NET Mon Nov 29 12:26:02 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 29 Nov 2004 12:26:02 -0800 Subject: Things are comming along but .... please look at this mapfile dump In-Reply-To: Message-ID: I got the extents from shpdump of shape file. I do have projection information on the file: PROJCS["NAD_1983_StatePlane_California_II_FIPS_0402_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980", 6378137, 298.257222101]], PRIMEM["Greenwich", 0], UNIT["Degree", 0.017453292519943295]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting", 6561666.666666666], PARAMETER["False_Northing", 1640416.666666667], PARAMETER["Central_Meridian", -122], PARAMETER["Standard_Parallel_1", 38.33333333333334], PARAMETER["Standard_Parallel_2", 39.83333333333334], PARAMETER["Latitude_Of_Origin", 37.66666666666666], UNIT["Foot_US", 0.30480060960121924]] #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of David Fawcett Sent: Monday, November 29, 2004 12:19 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... please look at this mapfile dump Joseph, Your first objective is to find out more about your California Zips shapefile. Is it projected, if so, what is the projection? Where did you get it from, is there any metadata or documentation there? Where did you get the values for EXTENT in your map file? If you got these values from your Zips shapefile, I would guess that your data is in UTM, you would then have to determine what UTM zone it is. If you run shpdump, shpinfo, or gdalinfo on the shapefile, you can get it's extent. Take a look at the mapfile documentation regarding projections. http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#projection To use projections in MapServer, you define a PROJECTION block in the MAP object to set the projection for the map to be created. You then create PROJECTION blocks in each layer, defining the projection that the layer data exists in. In your map file, you have set the projections in both your MAP object and your 'calzip' layer to be 'latlong'. You need to set the projection for the 'calzip' layer to the definition for whatever projection it is in. David J. Fawcett MN Office of Environmental Assistance >>>How do I find out what my extent should be for lat/long? -figure out what projection you want your final map to be in. It can be in the same projection as any of your layers, or something completely different. There are trade-offs for every projection (or lack of one). Once you figure out what output projection you want, set the EXTENT, UNITS, and PROJECTION object in the MAP file to match that projection. If your 'calzip' polygon really is in UTM (my assumption) and you like the way that it looks, you may choose to use UTM as the output projection and project your lat/long teacher points to UTM. David. >>> Joseph Norris 11/29/2004 1:48:04 PM >>> Thanks for responding David, I follow you on most of this except for the following: If all of your data is truly unprojected (lat/long), then all you should need to do is change your extent to the appropriate boundaries for your data in lat/long. How do I find out what my extent should be for lat/long? Here is my modified file - taking into account - I think - what you have specified. MAP EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 TEMPLATEPATTERN "map" IMAGECOLOR 255 255 255 IMAGETYPE gif SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " SIZE 600 600 STATUS ON UNITS DD NAME "calmap" PROJECTION "proj=latlong" END OUTPUTFORMAT NAME gif MIMETYPE image/gif DRIVER GD/GIF EXTENSION gif IMAGEMODE PC256 TRANSPARENT FALSE END SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END POSITION LL STATUS EMBED END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END SCALEBAR COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 UNITS MILES END WEB IMAGEPATH "" IMAGEURL "" QUERYFORMAT text/html END LAYER CLASSITEM "zcta" DATA "cal_zp_st" NAME "calzip" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POLYGON UNITS DD PROJECTION "proj=latlong" END CLASS NAME "Zip Boundries" EXPRESSION /./ STYLE MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 204 204 204 SIZE 1 SYMBOL 0 END END END LAYER NAME "points" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POINT UNITS DD PROJECTION "proj=latlong" END CLASS NAME "teacher" LABEL SIZE MEDIUM TYPE BITMAP BUFFER 2 COLOR 255 102 102 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS FALSE POSITION AUTO END STYLE COLOR 255 102 102 MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 255 255 255 SIZE 8 SYMBOL "circle" END END FEATURE POINTS -121.507 38.5263 END TEXT "Mary Lyn Kagan" END FEATURE POINTS -122.451 37.7752 END TEXT "Greg D'Amico" END FEATURE POINTS -119.646 36.3426 END TEXT "Leslie Steffen" END FEATURE POINTS -122.54 38.0065 END TEXT "john antico" END FEATURE POINTS -116.976 32.7712 END TEXT "SWANSONG BRAHMAN" END END END #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of David Fawcett Sent: Monday, November 29, 2004 11:26 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... please look at this mapfile dump Joseph, A few things that I noticed that are probably related to your problem: It looks like your EXTENT is in meters suggesting a UTM projection. Your UNITS specify DD, suggesting that your data is in Lat Long. It also looks like you are creating your new points using Lat Long. If all of your data is truly unprojected (lat/long), then all you should need to do is change your extent to the appropriate boundaries for your data in lat/long. My guess is that you got your EXTENT from your Zip Code shapefile, which suggests that it is projected to something like UTM. If this is the case, you will have to add a PROJECTION block for the map and PROJECTION information for each layer in your map file. David. David J. Fawcett MN Office of Environmental Assistance >>> Joseph Norris 11/29/2004 1:12:40 PM >>> Hello again, I am now on the quest to add points to my map of zips in California. I have the following map file but the points are not showing up in the layer. If you can see anything that I need to change - please let me know. I have found that it is easier to work from a dump of the mapfile - make adjustments then return to my perl script and make sure that these adjustments happen. Thanks to all. MAP EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 TEMPLATEPATTERN "map" IMAGECOLOR 255 255 255 IMAGETYPE gif SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " SIZE 600 600 STATUS ON UNITS DD NAME "calmap" OUTPUTFORMAT NAME gif MIMETYPE image/gif DRIVER GD/GIF EXTENSION gif IMAGEMODE PC256 TRANSPARENT FALSE END SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END SYMBOL NAME "plus" TYPE VECTOR POINTS 0.5 0 0.5 1 -99 -99 0 0.5 1 0.5 END END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END POSITION LL STATUS EMBED END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END SCALEBAR COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 UNITS MILES END WEB IMAGEPATH "" IMAGEURL "" QUERYFORMAT text/html END LAYER NAME "points" SIZEUNITS PIXELS STATUS ON TEMPLATE "bogus.html" TOLERANCE 10 TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS CLASS NAME "buoy" LABEL SIZE MEDIUM TYPE BITMAP BUFFER 2 COLOR 255 102 102 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS FALSE POSITION AUTO END STYLE COLOR 255 102 102 MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 255 255 255 SIZE 8 SYMBOL "circle" END END FEATURE POINTS -121.507 38.5263 END TEXT "Mary Lyn Kagan" END FEATURE POINTS -122.451 37.7752 END TEXT "Greg D'Amico" END FEATURE POINTS -119.646 36.3426 END TEXT "Leslie Steffen" END FEATURE POINTS -122.54 38.0065 END TEXT "john antico" END FEATURE POINTS -116.976 32.7712 END TEXT "SWANSONG BRAHMAN" END END LAYER CLASSITEM "zcta" DATA "cal_zp_st" NAME "calzip" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POLYGON UNITS METERS CLASS NAME "Zip Boundries" EXPRESSION /./ STYLE MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 204 204 204 SIZE 1 SYMBOL 0 END END END END #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From eric at GOMOOS.ORG Mon Nov 29 13:25:06 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Mon, 29 Nov 2004 16:25:06 -0500 Subject: Things are comming along but .... please look at this mapfile dump In-Reply-To: Message-ID: On Mon, 2004-11-29 at 15:26, Joseph Norris wrote: > I got the extents from shpdump of shape file. I do have projection > information on the file: > > PROJCS["NAD_1983_StatePlane_California_II_FIPS_0402_Feet", > GEOGCS["GCS_North_American_1983", > DATUM["D_North_American_1983", > SPHEROID["GRS_1980", 6378137, 298.257222101]], > PRIMEM["Greenwich", 0], > UNIT["Degree", 0.017453292519943295]], > PROJECTION["Lambert_Conformal_Conic"], > PARAMETER["False_Easting", 6561666.666666666], > PARAMETER["False_Northing", 1640416.666666667], > PARAMETER["Central_Meridian", -122], > PARAMETER["Standard_Parallel_1", 38.33333333333334], > PARAMETER["Standard_Parallel_2", 39.83333333333334], > PARAMETER["Latitude_Of_Origin", 37.66666666666666], > UNIT["Foot_US", 0.30480060960121924]] Joseph, By looking in my epsg file (which comes with the proj4 install, on my freeBSD system: /usr/local/share/proj it looks like your shape file has an EPSG code of 26942.(California Zone 2) You can use the following PROJECTION: PROJECTION "init=epsg:26942" END For UNITS you would use "feet" not DD. HTH. From sirronj at PACBELL.NET Mon Nov 29 13:31:29 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 29 Nov 2004 13:31:29 -0800 Subject: Things are comming along but .... pleaselook at this mapfile dump In-Reply-To: <1101763511.1535.35.camel@ubet.gomoos.org> Message-ID: Thanks Eric, I set the projections as you indicate below in my map and in each layer - I still see now points for the list of features that I have. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Eric Bridger [mailto:eric at gomoos.org] Sent: Monday, November 29, 2004 1:25 PM To: Joseph Norris Cc: UMN MapServerList Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... pleaselook at this mapfile dump On Mon, 2004-11-29 at 15:26, Joseph Norris wrote: > I got the extents from shpdump of shape file. I do have projection > information on the file: > > PROJCS["NAD_1983_StatePlane_California_II_FIPS_0402_Feet", > GEOGCS["GCS_North_American_1983", > DATUM["D_North_American_1983", > SPHEROID["GRS_1980", 6378137, 298.257222101]], > PRIMEM["Greenwich", 0], > UNIT["Degree", 0.017453292519943295]], > PROJECTION["Lambert_Conformal_Conic"], > PARAMETER["False_Easting", 6561666.666666666], > PARAMETER["False_Northing", 1640416.666666667], > PARAMETER["Central_Meridian", -122], > PARAMETER["Standard_Parallel_1", 38.33333333333334], > PARAMETER["Standard_Parallel_2", 39.83333333333334], > PARAMETER["Latitude_Of_Origin", 37.66666666666666], > UNIT["Foot_US", 0.30480060960121924]] Joseph, By looking in my epsg file (which comes with the proj4 install, on my freeBSD system: /usr/local/share/proj it looks like your shape file has an EPSG code of 26942.(California Zone 2) You can use the following PROJECTION: PROJECTION "init=epsg:26942" END For UNITS you would use "feet" not DD. HTH. From woodbri at SWOODBRIDGE.COM Mon Nov 29 13:40:12 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 29 Nov 2004 16:40:12 -0500 Subject: Things are comming along but .... pleaselook at this mapfile dump In-Reply-To: Message-ID: Joseph, For you point layer, it needs the projection set to PROJECTION "init=latlong" END -Steve W Joseph Norris wrote: > Thanks Eric, > > I set the projections as you indicate below in my map and in each layer - I > still see now points for the list of features that I have. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: Eric Bridger [mailto:eric at gomoos.org] > Sent: Monday, November 29, 2004 1:25 PM > To: Joseph Norris > Cc: UMN MapServerList > Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... > pleaselook at this mapfile dump > > On Mon, 2004-11-29 at 15:26, Joseph Norris wrote: > >>I got the extents from shpdump of shape file. I do have projection >>information on the file: >> >>PROJCS["NAD_1983_StatePlane_California_II_FIPS_0402_Feet", >>GEOGCS["GCS_North_American_1983", >>DATUM["D_North_American_1983", >>SPHEROID["GRS_1980", 6378137, 298.257222101]], >>PRIMEM["Greenwich", 0], >>UNIT["Degree", 0.017453292519943295]], >>PROJECTION["Lambert_Conformal_Conic"], >>PARAMETER["False_Easting", 6561666.666666666], >>PARAMETER["False_Northing", 1640416.666666667], >>PARAMETER["Central_Meridian", -122], >>PARAMETER["Standard_Parallel_1", 38.33333333333334], >>PARAMETER["Standard_Parallel_2", 39.83333333333334], >>PARAMETER["Latitude_Of_Origin", 37.66666666666666], >>UNIT["Foot_US", 0.30480060960121924]] > > > Joseph, > > By looking in my epsg file (which comes with the proj4 install, on my > freeBSD system: /usr/local/share/proj it looks like your shape file has > an EPSG code of 26942.(California Zone 2) You can use the following > PROJECTION: > > PROJECTION > "init=epsg:26942" > END > > For UNITS you would use "feet" not DD. > > HTH. > From eric at GOMOOS.ORG Mon Nov 29 13:46:53 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Mon, 29 Nov 2004 16:46:53 -0500 Subject: Things are comming along but .... pleaselook at this mapfile dump In-Reply-To: Message-ID: On Mon, 2004-11-29 at 16:31, Joseph Norris wrote: > Thanks Eric, > > I set the projections as you indicate below in my map and in each layer - I > still see now points for the list of features that I have. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: Eric Bridger [mailto:eric at gomoos.org] > Sent: Monday, November 29, 2004 1:25 PM > To: Joseph Norris > Cc: UMN MapServerList > Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... > pleaselook at this mapfile dump > > On Mon, 2004-11-29 at 15:26, Joseph Norris wrote: > > I got the extents from shpdump of shape file. I do have projection > > information on the file: > > > > PROJCS["NAD_1983_StatePlane_California_II_FIPS_0402_Feet", > > GEOGCS["GCS_North_American_1983", > > DATUM["D_North_American_1983", > > SPHEROID["GRS_1980", 6378137, 298.257222101]], > > PRIMEM["Greenwich", 0], > > UNIT["Degree", 0.017453292519943295]], > > PROJECTION["Lambert_Conformal_Conic"], > > PARAMETER["False_Easting", 6561666.666666666], > > PARAMETER["False_Northing", 1640416.666666667], > > PARAMETER["Central_Meridian", -122], > > PARAMETER["Standard_Parallel_1", 38.33333333333334], > > PARAMETER["Standard_Parallel_2", 39.83333333333334], > > PARAMETER["Latitude_Of_Origin", 37.66666666666666], > > UNIT["Foot_US", 0.30480060960121924]] > > Joseph, > > By looking in my epsg file (which comes with the proj4 install, on my > freeBSD system: /usr/local/share/proj it looks like your shape file has > an EPSG code of 26942.(California Zone 2) You can use the following > PROJECTION: > > PROJECTION > "init=epsg:26942" > END > > For UNITS you would use "feet" not DD. > > HTH. The projection above is only for your California shape file. Your point layer with the features must use "proj=latlong". From sirronj at PACBELL.NET Mon Nov 29 13:52:48 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 29 Nov 2004 13:52:48 -0800 Subject: Things are comming along but .... pleaselook at this mapfile dump In-Reply-To: <41AB973C.3060002@swoodbridge.com> Message-ID: Steve, Tried this and it did not make a change. Nothing so far has made a change: When I put in init=latlong I get an error. Here is what I have so far: MAP EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 TEMPLATEPATTERN "map" IMAGECOLOR 255 255 255 IMAGETYPE gif SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " SIZE 600 600 STATUS ON UNITS FEET NAME "calmap" PROJECTION "init=epsg:26942" END OUTPUTFORMAT NAME gif MIMETYPE image/gif DRIVER GD/GIF EXTENSION gif IMAGEMODE PC256 TRANSPARENT FALSE END SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END POSITION LL STATUS EMBED END WEB IMAGEPATH "" IMAGEURL "" QUERYFORMAT text/html END LAYER CLASSITEM "zcta" DATA "cal_zp_st" NAME "calzip" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POLYGON UNITS FEET PROJECTION "init=epsg:26942" END CLASS NAME "Zip Boundries" EXPRESSION /./ STYLE MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 204 204 204 SIZE 1 END END END LAYER NAME "points" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POINT UNITS FEET PROJECTION "proj=latlong" END CLASS NAME "Teacher" LABEL SIZE LARGE TYPE BITMAP BUFFER 2 COLOR 255 102 102 MINFEATURESIZE AUTO POSITION AUTO END STYLE COLOR 255 102 102 MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 255 153 51 SIZE 10 SYMBOL "circle" END END FEATURE POINTS -121.507 38.5263 END TEXT "Mary Lyn Kagan" END FEATURE POINTS -122.451 37.7752 END TEXT "Greg D'Amico" END #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Monday, November 29, 2004 1:40 PM To: Joseph Norris Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... pleaselook at this mapfile dump Joseph, For you point layer, it needs the projection set to PROJECTION "init=latlong" END -Steve W Joseph Norris wrote: > Thanks Eric, > > I set the projections as you indicate below in my map and in each layer - I > still see now points for the list of features that I have. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: Eric Bridger [mailto:eric at gomoos.org] > Sent: Monday, November 29, 2004 1:25 PM > To: Joseph Norris > Cc: UMN MapServerList > Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... > pleaselook at this mapfile dump > > On Mon, 2004-11-29 at 15:26, Joseph Norris wrote: > >>I got the extents from shpdump of shape file. I do have projection >>information on the file: >> >>PROJCS["NAD_1983_StatePlane_California_II_FIPS_0402_Feet", >>GEOGCS["GCS_North_American_1983", >>DATUM["D_North_American_1983", >>SPHEROID["GRS_1980", 6378137, 298.257222101]], >>PRIMEM["Greenwich", 0], >>UNIT["Degree", 0.017453292519943295]], >>PROJECTION["Lambert_Conformal_Conic"], >>PARAMETER["False_Easting", 6561666.666666666], >>PARAMETER["False_Northing", 1640416.666666667], >>PARAMETER["Central_Meridian", -122], >>PARAMETER["Standard_Parallel_1", 38.33333333333334], >>PARAMETER["Standard_Parallel_2", 39.83333333333334], >>PARAMETER["Latitude_Of_Origin", 37.66666666666666], >>UNIT["Foot_US", 0.30480060960121924]] > > > Joseph, > > By looking in my epsg file (which comes with the proj4 install, on my > freeBSD system: /usr/local/share/proj it looks like your shape file has > an EPSG code of 26942.(California Zone 2) You can use the following > PROJECTION: > > PROJECTION > "init=epsg:26942" > END > > For UNITS you would use "feet" not DD. > > HTH. > From woodbri at SWOODBRIDGE.COM Mon Nov 29 14:16:17 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 29 Nov 2004 17:16:17 -0500 Subject: Things are comming along but .... pleaselook at this mapfile dump In-Reply-To: Message-ID: Joseph, In layer "points" change UNITS to "UNITS DD" What is the error you are getting? -Steve Joseph Norris wrote: > Steve, > > Tried this and it did not make a change. Nothing so far has made a change: > > When I put in init=latlong I get an error. > > Here is what I have so far: > > MAP > EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 > TEMPLATEPATTERN "map" > IMAGECOLOR 255 255 255 > IMAGETYPE gif > SHAPEPATH > "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata > " > SIZE 600 600 > STATUS ON > UNITS FEET > NAME "calmap" > > PROJECTION > "init=epsg:26942" > END > > OUTPUTFORMAT > NAME gif > MIMETYPE image/gif > DRIVER GD/GIF > EXTENSION gif > IMAGEMODE PC256 > TRANSPARENT FALSE > END > > SYMBOL > NAME "circle" > TYPE ELLIPSE > FILLED TRUE > POINTS > 1 1 > END > END > > LEGEND > IMAGECOLOR 255 255 255 > KEYSIZE 20 10 > KEYSPACING 5 5 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > POSITION CC > END > POSITION LL > STATUS EMBED > END > > WEB > IMAGEPATH "" > IMAGEURL "" > QUERYFORMAT text/html > END > > LAYER > CLASSITEM "zcta" > DATA "cal_zp_st" > NAME "calzip" > SIZEUNITS PIXELS > STATUS DEFAULT > TOLERANCE 0 > TOLERANCEUNITS PIXELS > TYPE POLYGON > UNITS FEET > PROJECTION > "init=epsg:26942" > END > > CLASS > NAME "Zip Boundries" > EXPRESSION /./ > STYLE > MAXSIZE 100 > MINSIZE 1 > OUTLINECOLOR 204 204 204 > SIZE 1 > END > > END > END > > LAYER > NAME "points" > SIZEUNITS PIXELS > STATUS DEFAULT > TOLERANCE 0 > TOLERANCEUNITS PIXELS > TYPE POINT > UNITS FEET > > PROJECTION > "proj=latlong" > END > > CLASS > NAME "Teacher" > LABEL > SIZE LARGE > TYPE BITMAP > BUFFER 2 > COLOR 255 102 102 > MINFEATURESIZE AUTO > POSITION AUTO > END > STYLE > COLOR 255 102 102 > MAXSIZE 100 > MINSIZE 1 > OUTLINECOLOR 255 153 51 > SIZE 10 > SYMBOL "circle" > END > END > FEATURE > POINTS > -121.507 38.5263 > END > TEXT "Mary Lyn Kagan" > END > FEATURE > POINTS > -122.451 37.7752 > END > TEXT "Greg D'Amico" > END > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Monday, November 29, 2004 1:40 PM > To: Joseph Norris > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... > pleaselook at this mapfile dump > > Joseph, > > For you point layer, it needs the projection set to > > PROJECTION > "init=latlong" > END > > -Steve W > > Joseph Norris wrote: > >>Thanks Eric, >> >>I set the projections as you indicate below in my map and in each layer - > > I > >>still see now points for the list of features that I have. >> >>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > > chr > > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > >>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >> >>-----Original Message----- >>From: Eric Bridger [mailto:eric at gomoos.org] >>Sent: Monday, November 29, 2004 1:25 PM >>To: Joseph Norris >>Cc: UMN MapServerList >>Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... >>pleaselook at this mapfile dump >> >>On Mon, 2004-11-29 at 15:26, Joseph Norris wrote: >> >> >>>I got the extents from shpdump of shape file. I do have projection >>>information on the file: >>> >>>PROJCS["NAD_1983_StatePlane_California_II_FIPS_0402_Feet", >>>GEOGCS["GCS_North_American_1983", >>>DATUM["D_North_American_1983", >>>SPHEROID["GRS_1980", 6378137, 298.257222101]], >>>PRIMEM["Greenwich", 0], >>>UNIT["Degree", 0.017453292519943295]], >>>PROJECTION["Lambert_Conformal_Conic"], >>>PARAMETER["False_Easting", 6561666.666666666], >>>PARAMETER["False_Northing", 1640416.666666667], >>>PARAMETER["Central_Meridian", -122], >>>PARAMETER["Standard_Parallel_1", 38.33333333333334], >>>PARAMETER["Standard_Parallel_2", 39.83333333333334], >>>PARAMETER["Latitude_Of_Origin", 37.66666666666666], >>>UNIT["Foot_US", 0.30480060960121924]] >> >> >>Joseph, >> >>By looking in my epsg file (which comes with the proj4 install, on my >>freeBSD system: /usr/local/share/proj it looks like your shape file has >>an EPSG code of 26942.(California Zone 2) You can use the following >>PROJECTION: >> >>PROJECTION >> "init=epsg:26942" >>END >> >>For UNITS you would use "feet" not DD. >> >>HTH. >> > > From sirronj at PACBELL.NET Mon Nov 29 14:28:45 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 29 Nov 2004 14:28:45 -0800 Subject: Things are comming along but .... pleaselook at this mapfile dump In-Reply-To: <41AB9FB1.4090207@swoodbridge.com> Message-ID: I did that Steve - no change. What's really strange is that I know that mapserver is recognizing my Teacher class because its coming up in the legend. But no circle symbols are showing up in my map. The features are not showing. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Monday, November 29, 2004 2:16 PM To: Joseph Norris Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... pleaselook at this mapfile dump Joseph, In layer "points" change UNITS to "UNITS DD" What is the error you are getting? -Steve Joseph Norris wrote: > Steve, > > Tried this and it did not make a change. Nothing so far has made a change: > > When I put in init=latlong I get an error. > > Here is what I have so far: > > MAP > EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 > TEMPLATEPATTERN "map" > IMAGECOLOR 255 255 255 > IMAGETYPE gif > SHAPEPATH > "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata > " > SIZE 600 600 > STATUS ON > UNITS FEET > NAME "calmap" > > PROJECTION > "init=epsg:26942" > END > > OUTPUTFORMAT > NAME gif > MIMETYPE image/gif > DRIVER GD/GIF > EXTENSION gif > IMAGEMODE PC256 > TRANSPARENT FALSE > END > > SYMBOL > NAME "circle" > TYPE ELLIPSE > FILLED TRUE > POINTS > 1 1 > END > END > > LEGEND > IMAGECOLOR 255 255 255 > KEYSIZE 20 10 > KEYSPACING 5 5 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > POSITION CC > END > POSITION LL > STATUS EMBED > END > > WEB > IMAGEPATH "" > IMAGEURL "" > QUERYFORMAT text/html > END > > LAYER > CLASSITEM "zcta" > DATA "cal_zp_st" > NAME "calzip" > SIZEUNITS PIXELS > STATUS DEFAULT > TOLERANCE 0 > TOLERANCEUNITS PIXELS > TYPE POLYGON > UNITS FEET > PROJECTION > "init=epsg:26942" > END > > CLASS > NAME "Zip Boundries" > EXPRESSION /./ > STYLE > MAXSIZE 100 > MINSIZE 1 > OUTLINECOLOR 204 204 204 > SIZE 1 > END > > END > END > > LAYER > NAME "points" > SIZEUNITS PIXELS > STATUS DEFAULT > TOLERANCE 0 > TOLERANCEUNITS PIXELS > TYPE POINT > UNITS FEET > > PROJECTION > "proj=latlong" > END > > CLASS > NAME "Teacher" > LABEL > SIZE LARGE > TYPE BITMAP > BUFFER 2 > COLOR 255 102 102 > MINFEATURESIZE AUTO > POSITION AUTO > END > STYLE > COLOR 255 102 102 > MAXSIZE 100 > MINSIZE 1 > OUTLINECOLOR 255 153 51 > SIZE 10 > SYMBOL "circle" > END > END > FEATURE > POINTS > -121.507 38.5263 > END > TEXT "Mary Lyn Kagan" > END > FEATURE > POINTS > -122.451 37.7752 > END > TEXT "Greg D'Amico" > END > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Monday, November 29, 2004 1:40 PM > To: Joseph Norris > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... > pleaselook at this mapfile dump > > Joseph, > > For you point layer, it needs the projection set to > > PROJECTION > "init=latlong" > END > > -Steve W > > Joseph Norris wrote: > >>Thanks Eric, >> >>I set the projections as you indicate below in my map and in each layer - > > I > >>still see now points for the list of features that I have. >> >>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > > chr > > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > >>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >> >>-----Original Message----- >>From: Eric Bridger [mailto:eric at gomoos.org] >>Sent: Monday, November 29, 2004 1:25 PM >>To: Joseph Norris >>Cc: UMN MapServerList >>Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... >>pleaselook at this mapfile dump >> >>On Mon, 2004-11-29 at 15:26, Joseph Norris wrote: >> >> >>>I got the extents from shpdump of shape file. I do have projection >>>information on the file: >>> >>>PROJCS["NAD_1983_StatePlane_California_II_FIPS_0402_Feet", >>>GEOGCS["GCS_North_American_1983", >>>DATUM["D_North_American_1983", >>>SPHEROID["GRS_1980", 6378137, 298.257222101]], >>>PRIMEM["Greenwich", 0], >>>UNIT["Degree", 0.017453292519943295]], >>>PROJECTION["Lambert_Conformal_Conic"], >>>PARAMETER["False_Easting", 6561666.666666666], >>>PARAMETER["False_Northing", 1640416.666666667], >>>PARAMETER["Central_Meridian", -122], >>>PARAMETER["Standard_Parallel_1", 38.33333333333334], >>>PARAMETER["Standard_Parallel_2", 39.83333333333334], >>>PARAMETER["Latitude_Of_Origin", 37.66666666666666], >>>UNIT["Foot_US", 0.30480060960121924]] >> >> >>Joseph, >> >>By looking in my epsg file (which comes with the proj4 install, on my >>freeBSD system: /usr/local/share/proj it looks like your shape file has >>an EPSG code of 26942.(California Zone 2) You can use the following >>PROJECTION: >> >>PROJECTION >> "init=epsg:26942" >>END >> >>For UNITS you would use "feet" not DD. >> >>HTH. >> > > From nhv at CAPE.COM Mon Nov 29 14:43:16 2004 From: nhv at CAPE.COM (Norman Vine) Date: Mon, 29 Nov 2004 17:43:16 -0500 Subject: Things are comming along but .... pleaselook at this mapfile dump In-Reply-To: Message-ID: Joseph Norris writes: > > I did that Steve - no change. What's really strange is that I know that > mapserver is recognizing my Teacher class because its coming up in the > legend. But no circle symbols are showing up in my map. The features are > not showing. Not sure tht this is your problem but TIP: When developing / troubleshooting map rendering make sure your marker logic is SIMPLE and LARGE see below > > > > LAYER > > NAME "points" > > SIZEUNITS PIXELS > > STATUS DEFAULT > > TOLERANCE 0 > > TOLERANCEUNITS PIXELS > > TYPE POINT > > UNITS FEET > > > > PROJECTION > > "proj=latlong" > > END > > > > CLASS > > NAME "Teacher" > > LABEL > > SIZE LARGE > > TYPE BITMAP > > BUFFER 2 > > COLOR 255 102 102 > > MINFEATURESIZE AUTO > > POSITION AUTO > > END > > STYLE > > COLOR 255 102 102 ###> > MAXSIZE 100 ####> > MINSIZE 1 > > OUTLINECOLOR 255 153 51 ####> > SIZE 10 SIZE = 25 > > SYMBOL "circle" > > END > > END > > FEATURE > > POINTS > > -121.507 38.5263 > > END > > TEXT "Mary Lyn Kagan" > > END > > FEATURE > > POINTS > > -122.451 37.7752 > > END > > TEXT "Greg D'Amico" > > END > From sirronj at PACBELL.NET Mon Nov 29 15:02:39 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 29 Nov 2004 15:02:39 -0800 Subject: Things are comming along but .... pleaselook at this mapfile dump In-Reply-To: Message-ID: Norman, Thanks - but what do you mean? - in my symbol circle do I change the type to simple? Where do I change the size? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Norman Vine Sent: Monday, November 29, 2004 2:43 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... pleaselook at this mapfile dump Joseph Norris writes: > > I did that Steve - no change. What's really strange is that I know that > mapserver is recognizing my Teacher class because its coming up in the > legend. But no circle symbols are showing up in my map. The features are > not showing. Not sure tht this is your problem but TIP: When developing / troubleshooting map rendering make sure your marker logic is SIMPLE and LARGE see below > > > > LAYER > > NAME "points" > > SIZEUNITS PIXELS > > STATUS DEFAULT > > TOLERANCE 0 > > TOLERANCEUNITS PIXELS > > TYPE POINT > > UNITS FEET > > > > PROJECTION > > "proj=latlong" > > END > > > > CLASS > > NAME "Teacher" > > LABEL > > SIZE LARGE > > TYPE BITMAP > > BUFFER 2 > > COLOR 255 102 102 > > MINFEATURESIZE AUTO > > POSITION AUTO > > END > > STYLE > > COLOR 255 102 102 ###> > MAXSIZE 100 ####> > MINSIZE 1 > > OUTLINECOLOR 255 153 51 ####> > SIZE 10 SIZE = 25 > > SYMBOL "circle" > > END > > END > > FEATURE > > POINTS > > -121.507 38.5263 > > END > > TEXT "Mary Lyn Kagan" > > END > > FEATURE > > POINTS > > -122.451 37.7752 > > END > > TEXT "Greg D'Amico" > > END > From woodbri at SWOODBRIDGE.COM Mon Nov 29 14:42:40 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 29 Nov 2004 17:42:40 -0500 Subject: Things are comming along but .... pleaselook at this mapfile dump In-Reply-To: Message-ID: I would remove the MAXSIZE and MINSIZE lines from your CLASS till you get it working and I would try it with only one feature to start with (I'm not sure you can do multiple features but I never tried. and make sure you are view the area where the one point is being placed. This can be a little hard to figure out with multiple projection spaces so view is zoomed out. Good Luck, -Steve W Joseph Norris wrote: > I did that Steve - no change. What's really strange is that I know that > mapserver is recognizing my Teacher class because its coming up in the > legend. But no circle symbols are showing up in my map. The features are > not showing. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Monday, November 29, 2004 2:16 PM > To: Joseph Norris > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... > pleaselook at this mapfile dump > > Joseph, > > In layer "points" change UNITS to "UNITS DD" > > What is the error you are getting? > > -Steve > > Joseph Norris wrote: > >>Steve, >> >>Tried this and it did not make a change. Nothing so far has made a > > change: > >>When I put in init=latlong I get an error. >> >>Here is what I have so far: >> >>MAP >> EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 >> TEMPLATEPATTERN "map" >> IMAGECOLOR 255 255 255 >> IMAGETYPE gif >> SHAPEPATH >> > > "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata > >>" >> SIZE 600 600 >> STATUS ON >> UNITS FEET >> NAME "calmap" >> >> PROJECTION >> "init=epsg:26942" >> END >> >> OUTPUTFORMAT >> NAME gif >> MIMETYPE image/gif >> DRIVER GD/GIF >> EXTENSION gif >> IMAGEMODE PC256 >> TRANSPARENT FALSE >> END >> >> SYMBOL >> NAME "circle" >> TYPE ELLIPSE >> FILLED TRUE >> POINTS >> 1 1 >> END >> END >> >> LEGEND >> IMAGECOLOR 255 255 255 >> KEYSIZE 20 10 >> KEYSPACING 5 5 >> LABEL >> SIZE MEDIUM >> TYPE BITMAP >> BUFFER 0 >> COLOR 0 0 0 >> FORCE FALSE >> MINDISTANCE -1 >> MINFEATURESIZE -1 >> OFFSET 0 0 >> PARTIALS TRUE >> POSITION CC >> END >> POSITION LL >> STATUS EMBED >> END >> >> WEB >> IMAGEPATH "" >> IMAGEURL "" >> QUERYFORMAT text/html >> END >> >> LAYER >> CLASSITEM "zcta" >> DATA "cal_zp_st" >> NAME "calzip" >> SIZEUNITS PIXELS >> STATUS DEFAULT >> TOLERANCE 0 >> TOLERANCEUNITS PIXELS >> TYPE POLYGON >> UNITS FEET >> PROJECTION >> "init=epsg:26942" >> END >> >> CLASS >> NAME "Zip Boundries" >> EXPRESSION /./ >> STYLE >> MAXSIZE 100 >> MINSIZE 1 >> OUTLINECOLOR 204 204 204 >> SIZE 1 >> END >> >> END >> END >> >> LAYER >> NAME "points" >> SIZEUNITS PIXELS >> STATUS DEFAULT >> TOLERANCE 0 >> TOLERANCEUNITS PIXELS >> TYPE POINT >> UNITS FEET >> >> PROJECTION >> "proj=latlong" >> END >> >> CLASS >> NAME "Teacher" >> LABEL >> SIZE LARGE >> TYPE BITMAP >> BUFFER 2 >> COLOR 255 102 102 >> MINFEATURESIZE AUTO >> POSITION AUTO >> END >> STYLE >> COLOR 255 102 102 >> MAXSIZE 100 >> MINSIZE 1 >> OUTLINECOLOR 255 153 51 >> SIZE 10 >> SYMBOL "circle" >> END >> END >> FEATURE >> POINTS >> -121.507 38.5263 >> END >> TEXT "Mary Lyn Kagan" >> END >> FEATURE >> POINTS >> -122.451 37.7752 >> END >> TEXT "Greg D'Amico" >> END >> >>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > > chr > > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > >>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >> >>-----Original Message----- >>From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] >>Sent: Monday, November 29, 2004 1:40 PM >>To: Joseph Norris >>Cc: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... >>pleaselook at this mapfile dump >> >>Joseph, >> >>For you point layer, it needs the projection set to >> >>PROJECTION >> "init=latlong" >>END >> >>-Steve W >> >>Joseph Norris wrote: >> >> >>>Thanks Eric, >>> >>>I set the projections as you indicate below in my map and in each layer - >> >>I >> >> >>>still see now points for the list of features that I have. >>> >>>#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map >> >>chr >> >> > > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > >>>68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); >>> >>>-----Original Message----- >>>From: Eric Bridger [mailto:eric at gomoos.org] >>>Sent: Monday, November 29, 2004 1:25 PM >>>To: Joseph Norris >>>Cc: UMN MapServerList >>>Subject: Re: [UMN_MAPSERVER-USERS] Things are comming along but .... >>>pleaselook at this mapfile dump >>> >>>On Mon, 2004-11-29 at 15:26, Joseph Norris wrote: >>> >>> >>> >>>>I got the extents from shpdump of shape file. I do have projection >>>>information on the file: >>>> >>>>PROJCS["NAD_1983_StatePlane_California_II_FIPS_0402_Feet", >>>>GEOGCS["GCS_North_American_1983", >>>>DATUM["D_North_American_1983", >>>>SPHEROID["GRS_1980", 6378137, 298.257222101]], >>>>PRIMEM["Greenwich", 0], >>>>UNIT["Degree", 0.017453292519943295]], >>>>PROJECTION["Lambert_Conformal_Conic"], >>>>PARAMETER["False_Easting", 6561666.666666666], >>>>PARAMETER["False_Northing", 1640416.666666667], >>>>PARAMETER["Central_Meridian", -122], >>>>PARAMETER["Standard_Parallel_1", 38.33333333333334], >>>>PARAMETER["Standard_Parallel_2", 39.83333333333334], >>>>PARAMETER["Latitude_Of_Origin", 37.66666666666666], >>>>UNIT["Foot_US", 0.30480060960121924]] >>> >>> >>>Joseph, >>> >>>By looking in my epsg file (which comes with the proj4 install, on my >>>freeBSD system: /usr/local/share/proj it looks like your shape file has >>>an EPSG code of 26942.(California Zone 2) You can use the following >>>PROJECTION: >>> >>>PROJECTION >>> "init=epsg:26942" >>>END >>> >>>For UNITS you would use "feet" not DD. >>> >>>HTH. >>> >> >> > > > From mike.merrett at CITY.WHITEHORSE.YK.CA Mon Nov 29 13:32:22 2004 From: mike.merrett at CITY.WHITEHORSE.YK.CA (Merrett, Mike) Date: Mon, 29 Nov 2004 13:32:22 -0800 Subject: is there a command line tool to rotate large(huge) TIFFs? Message-ID: Hi: Does anyone know of a command line tool that will rotate tiff's 24.9degrees counter clockwise? I have the 4 tiffs which I have rotated with Photoshop - but when I try to combine them (and then rotate them) Photoshop blows says too big I believe I can combine them and then split them up again with GDAL tiff tools - but how to rotate them? Thanks, Mike Merrett GIS/ Database Specialist City of Whitehorse -------------- next part -------------- An HTML attachment was scrubbed... URL: From cord at LUPINEX.COM Mon Nov 29 15:55:03 2004 From: cord at LUPINEX.COM (Cord Thomas) Date: Mon, 29 Nov 2004 15:55:03 -0800 Subject: Question on queryByAttributes - multiple fields In-Reply-To: <41ABA5E0.4070405@swoodbridge.com> Message-ID: Hello all Using MapServer 4.4x and Perl Mapscript on Linux against a PostGIS database, i am having difficulty with the queryByAttributes method on a polygon layer. I include my MAP snippet below, but basically, my code is this: my $res = $mapLayer->queryByAttributes($map, $qryFlds, $qryVals, $mapscript::MS_MULTIPLE); where $qryFlds = "stateid,name" and $qryVals = "(stateid='ME' and name='Knox')" Is this the valid way to specify multiple fields - how can i get mapserver to dump the full query string to the log file? i have a log file setup, and if i screw up the query string, it throws an error, but these criteria are right and mapserver reports this: - msQueryByAttributes(): Search returned no results. No matching record(s) found. thanks in advance .MAP snippet: LAYER NAME "counties" STATUS OFF TYPE POLYGON DATA "wkb_geometry from county" CONNECTION "user=tiger password=[somepassword] dbname=tiger host=localhost port=543 2" CONNECTIONTYPE POSTGIS PROJECTION "proj=latlong" "datum=NAD83" END UNITS DD CLASS COLOR 74 135 33 OUTLINECOLOR 28 55 11 TEMPLATE /var/www/cellsign/map/states_sm.html END END MAP snippet From sgillies at FRII.COM Mon Nov 29 16:21:15 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 29 Nov 2004 17:21:15 -0700 Subject: Question on queryByAttributes - multiple fields In-Reply-To: Message-ID: On Nov 29, 2004, at 4:55 PM, Cord Thomas wrote: > Hello all > > Using MapServer 4.4x and Perl Mapscript on Linux against a PostGIS > database, i am having difficulty with the queryByAttributes method on a > polygon layer. > > I include my MAP snippet below, but basically, my code is this: > > my $res = $mapLayer->queryByAttributes($map, $qryFlds, > $qryVals, > $mapscript::MS_MULTIPLE); > > where $qryFlds = "stateid,name" > and $qryVals = "(stateid='ME' and name='Knox')" > > Is this the valid way to specify multiple fields - how can i get > mapserver > to dump the full query string to the log file? i have a log file > setup, > and if i screw up the query string, it throws an error, but these > criteria > are right and mapserver reports this: > > - msQueryByAttributes(): Search returned no results. No matching > record(s) > found. > > thanks in advance > Thomas, The query mode argument (MS_MULTIPLE) refers to how many *results* you want, not how many attributes. You can only query by one attribute at a time, the method should have been named "queryByAttribute" singular not plural. I don't know the history of the name. Adam Ryan has this trick he uses to AND attribute queries. It involves making a query, then saving it to a file with 'saveQuery', making a new query and then adding the results from the saved query using queryByIndex. Maybe he'll see this thread and explain. Thanks for trying out the 4.4 beta. What do you think so far? Are the mapscript docs under mapscript/doc helpful? In the final 4.4.0 release there will be three HOWTOs: imagery, querying, and mapfile. cheers, Sean From yecarrillo at YAHOO.COM Mon Nov 29 16:48:19 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Mon, 29 Nov 2004 18:48:19 -0600 Subject: Question on queryByAttributes - multiple fields In-Reply-To: <61054.66.15.156.209.1101772503.squirrel@www.elem.com> Message-ID: --- Cord Thomas escribi?: > Hello all > > Using MapServer 4.4x and Perl Mapscript on Linux against a PostGIS > database, i am having difficulty with the queryByAttributes method on a > polygon layer. > > I include my MAP snippet below, but basically, my code is this: > > my $res = $mapLayer->queryByAttributes($map, $qryFlds, > $qryVals, $mapscript::MS_MULTIPLE); > > where $qryFlds = "stateid,name" > and $qryVals = "(stateid='ME' and name='Knox')" > > Is this the valid way to specify multiple fields - how can i get mapserver > to dump the full query string to the log file? i have a log file setup, > and if i screw up the query string, it throws an error, but these criteria > are right and mapserver reports this: > > - msQueryByAttributes(): Search returned no results. No matching record(s) > found. > > thanks in advance > > .MAP snippet: > > LAYER > NAME "counties" > STATUS OFF > TYPE POLYGON > DATA "wkb_geometry from county" > CONNECTION "user=tiger password=[somepassword] dbname=tiger > host=localhost port=543 > 2" > CONNECTIONTYPE POSTGIS > PROJECTION > "proj=latlong" > "datum=NAD83" > END > UNITS DD > > CLASS > COLOR 74 135 33 > OUTLINECOLOR 28 55 11 > TEMPLATE /var/www/cellsign/map/states_sm.html > END > END > > > It's really bad MS do not support native query in more than one field. This behavior has not ever so. I developed at 2003 a like ArcView "Query Bulder" based on Php and a complex javascript code using oMap->queryByAttribute() function, but at version 3.7, MS no longer supports query multiple fields, so my querybuilder were lost. ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From cord at LUPINEX.COM Mon Nov 29 17:15:02 2004 From: cord at LUPINEX.COM (Cord Thomas) Date: Mon, 29 Nov 2004 17:15:02 -0800 Subject: Question on queryByAttributes - multiple fields In-Reply-To: Message-ID: Hey Sean Thank you for this definitive answer. I have a few observations: 1 - as i said, if i see the query dump from mapserver when i forgot to give my account select permissions, i saw the following statement: DECLARE mycursor BINARY CURSOR FOR SELECT stateid,name::text,asbinary(force_collection(force_2d(wkb_geometry)),'NDR'),OID::text from incorpbound WHERE (stateid='ME' and name='Camden') and (wkb_geometry && setSRID( 'BOX3D(-125 23,-66 50.5)'::BOX3D,find_srid('','incorpbound','wkb_geometry') )) this would imply mapserver is correctly parsing my query - AND - if i try to execute this query against postgresql, it does return results - i get all excited by this. 2 - since query parsing is not left to mapserver (we have to provide the exact syntax) - there is no reason MS couldnt handle multiple field criteria. 3 - i see no performance issues or other technical hurdles that would prevent the execution by MS of this request - unless actually it is tied to how this information gets back into the TEMPLATE object or is used by LABELs - both issues i am unclear on (like why a TEMPLATE is /required/ by MS for queries) 4 - I understood the MS_SINGLE vs MULTIPLE - though i still need to learn how best to work with this (one problem i have is that a city's boundaries may come in more than 1 record - but i really just want 1 result - something i have to tinker with on my end) - thanks for the explanation. I look forward to reading more on documentation and if i can help, please let me know. I am working on a prototype public participation web application and i need a feature like this to work, and work quickly (application performance, not how quickly i need 4.4 released). The two fields are indexed and i really can't imagine that saving a query and reloading it is going to be efficient, but i look forward to possibly hearing from Adam. As an alternative, i could query on the most restrictive field and then iterate over the results until i find the value of the less restrictive field - though ugly, i guess that is an alternative. As I have said, i am really impressed with the work that has gone into MS - and this is a much more involved user community than it was 3 years ago - great to see. Thank you again, Cord > > Thomas, > > The query mode argument (MS_MULTIPLE) refers to how many *results* you > want, not how many attributes. You can only query by one attribute > at a time, the method should have been named "queryByAttribute" singular > not plural. I don't know the history of the name. > > Adam Ryan has this trick he uses to AND attribute queries. It involves > making a query, then saving it to a file with 'saveQuery', making a new > query and then adding the results from the saved query using > queryByIndex. > > Maybe he'll see this thread and explain. > > Thanks for trying out the 4.4 beta. What do you think so far? Are the > mapscript docs under mapscript/doc helpful? In the final 4.4.0 release > there will be three HOWTOs: imagery, querying, and mapfile. > > cheers, > Sean > From pramsey at REFRACTIONS.NET Mon Nov 29 17:33:49 2004 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Mon, 29 Nov 2004 17:33:49 -0800 Subject: is there a command line tool to rotate large(huge) TIFFs? In-Reply-To: <0FE9FD8D9717A5448CA544F8BD27A07208F2E5@duke.CITY.local> Message-ID: How about imagemagick? If you're on Linux it's probably already installed. Confusingly, the main program in ImageMagick is named, simply 'convert'. P. On 29-Nov-04, at 1:32 PM, Merrett, Mike wrote: > > > Hi: > ??????? Does anyone know of a command line tool that will rotate > tiff's 24.9degrees counter clockwise? > > ??????? I have the 4 tiffs which I have rotated with Photoshop - but > when I try to combine them (and then rotate them) Photoshop blows says > too big > > ??????? I believe I can combine them and then split them up again with > GDAL tiff tools - but how to rotate them? > > Thanks, > ???? Mike Merrett > ????? GIS/ Database Specialist > ????? City of Whitehorse > ?? From tylermitchell at SHAW.CA Mon Nov 29 18:30:00 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 29 Nov 2004 18:30:00 -0800 Subject: is there a command line tool to rotate large(huge) TIFFs? In-Reply-To: <0FE9FD8D9717A5448CA544F8BD27A07208F2E5@duke.CITY.local> Message-ID: Hi Mike, I'm guessing that you don't care about the georeferencing of the images anymore, right? Or are you really trying to reproject the image coordinates? I'd try ImageMagick (http://imagemagick.org/). Its command line program can be used like this: > convert -rotate -24.9 .tif .tif I'm not sure how large 'huge' is for you, but I'm trying a 52MB image right now :) Tyler p.s. Do you make it to Prince George much? On November 29, 2004 01:32 pm, Merrett, Mike wrote: > Hi: > Does anyone know of a command line tool that will rotate tiff's > 24.9degrees counter clockwise? > > I have the 4 tiffs which I have rotated with Photoshop - but when I > try to combine them (and then rotate them) Photoshop blows says too big > > I believe I can combine them and then split them up again with GDAL > tiff tools - but how to rotate them? > > Thanks, > Mike Merrett > GIS/ Database Specialist > City of Whitehorse From warmerdam at POBOX.COM Mon Nov 29 18:35:41 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 29 Nov 2004 21:35:41 -0500 Subject: is there a command line tool to rotate large(huge) TIFFs? In-Reply-To: <0FE9FD8D9717A5448CA544F8BD27A07208F2E5@duke.CITY.local> Message-ID: Merrett, Mike wrote: > > Hi: > Does anyone know of a command line tool that will rotate tiff's > 24.9degrees counter clockwise? > > I have the 4 tiffs which I have rotated with Photoshop - but > when I try to combine them (and then rotate them) Photoshop blows says > too big > > I believe I can combine them and then split them up again with > GDAL tiff tools - but how to rotate them? Mike, If you can associate world files with them that describe the rotation you want undone then you can use gdalwarp to rotate them. Alternatively if you can associate control points with the corners, GDAL can work from that. But there isn't any pure "rotate by angle" type operation conveniently available in GDAL. You can contact me directly if you have questions about how to associate GCPs with an image, or how to setup a world file. Best regards, -- ---------------------------------------+-------------------------------------- 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 tylermitchell at SHAW.CA Mon Nov 29 18:39:41 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 29 Nov 2004 18:39:41 -0800 Subject: is there a command line tool to rotate large(huge) TIFFs? In-Reply-To: <41ABDC7D.50505@pobox.com> Message-ID: Bizarre, how come when I search for something I know nothing about, I end up finding an email from myself (sometimes with the solution). Wow. Anyway, these were interesting pages: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RotatingImages http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapRotation Tyler On November 29, 2004 06:35 pm, Frank Warmerdam wrote: > Merrett, Mike wrote: > > Hi: > > Does anyone know of a command line tool that will rotate tiff's > > 24.9degrees counter clockwise? > > > > I have the 4 tiffs which I have rotated with Photoshop - but > > when I try to combine them (and then rotate them) Photoshop blows says > > too big > > > > I believe I can combine them and then split them up again with > > GDAL tiff tools - but how to rotate them? > > Mike, > > If you can associate world files with them that describe the rotation you > want undone then you can use gdalwarp to rotate them. Alternatively if you > can associate control points with the corners, GDAL can work from that. > But there isn't any pure "rotate by angle" type operation conveniently > available in GDAL. > > You can contact me directly if you have questions about how to associate > GCPs with an image, or how to setup a world file. > > Best regards, > > -- > ---------------------------------------+----------------------------------- >--- 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 warmerdam at POBOX.COM Mon Nov 29 18:43:13 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 29 Nov 2004 21:43:13 -0500 Subject: is there a command line tool to rotate large(huge) TIFFs? In-Reply-To: <200411291839.41650.tylermitchell@shaw.ca> Message-ID: Tyler Mitchell wrote: > Bizarre, how come when I search for something I know nothing about, I end up > finding an email from myself (sometimes with the solution). Wow. Anyway, > these were interesting pages: > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RotatingImages > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapRotation Tyler / Mike, I would note that MapServer loads the image in memory at the resolution it is to be rendered, so it will generally take more memory than double the size of the input image to rotate it at full resolution. This will likely make it unsuitable for rotating a very large image (larger than can be held in RAM). Gdalwarp on the other hand is explicitly intended to work in chunks and has been used on images at least up to 100GB. Best regards, -- ---------------------------------------+-------------------------------------- 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 dmorissette at DMSOLUTIONS.CA Mon Nov 29 20:59:00 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 29 Nov 2004 23:59:00 -0500 Subject: MapServer 4.4.0 released Message-ID: Good evening, The MapServer 4.4.0 release is now officially available, thanks to the hard work of everyone involved. Here is a very quick summary of what's new in version 4.4: * Added WCS support (server only) * Added support for Time dimension in WMS * Lots of fixes/improvements to the OGC WMS and WFS interfaces (too many to list here). MapServer 4.4 passes all the tests of the OGC WMS 1.1.1 test suite and is ready to be certified (Formal "WMS Compliance" certification with OGC is in the works). * Added FastCGI support * Lots of fixes to allow running in long-lived processes and multithreaded environments (memory leaks, mutex locking, etc.). * Added connection pooling (implemented for SDE and PostGIS). * Lots of improvements to SWIG MapScript API and docs. * Support for i18n encodings in map labels. Tested with Chinese, Japanese and Thai. * Added ability to produce rotated maps (i.e. North is not at the top) * Completion of SDE versioned query support ... and many many more fixes and enhancements. See the HISTORY.TXT that comes with the source package for the complete list (relevant parts included below). The source code package is available for download on the MapServer download page at http://mapserver.gis.umn.edu/dload.html and the default documentation pages should be switched to use version 4.4 documents shortly. Windows binaries should also be available shortly at the usual locations. I would invite those producing prebuilt binaries to please reply to this email and announce the availability of their binaries and their URL. As we've done for previous releases, we will produce 4.4.x bugfix releases as required in the coming months. With respect to 4.2.x: we will not produce any more 4.2.x releases unless major issues (e.g. security issues) are ever found in 4.2.5. What about the next release? The consensus seems to be to aim for a 4.6 release in the next 4-6 months. There are no major changes or new features planned for 4.6 at this point, mostly improvements of existing features. We'll try to document our plan for 4.6 and share it with this list when it's available. Enjoy! Daniel ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Complete list of changes since 4.2 (excerpt from HISTORY.TXT) Version 4.4.0 (2004-11-29) -------------------------- - Fixed WMS GetCapabilities 1.1.0 crash when wms_style_<...>_legendurl_* metadata were used (bug 1096) - WCS GetCapabilities : Added ResponsibleParty support. - WMS GetCapabilities : Service online resource was not url encoded (bug 1093) - Fixed php mapscript problem with wfs_filter selection : Bug 1092. - Fixed encoding problem with WFS server when wfs_service_onlineresource was not explicitly specified (bug 1082) - Add trailing "?" or "&" to connection string when required in WFS client layers using GET method (bug 1082) - Fixed : SLD rasters was failing when there was Spatial Filter (Bug 1087) - Fixed mapwfslayer.c build error when WFS was not enabled (bug 1083) - Check that we have vsnprintf in mapimagemap.c before using it. Version 4.4.0-beta3 (2004-11-22) -------------------------------- - Added tests to mimimize the threat of recursion problems when evaluating LAYER REQUIRES or LABELREQUIRES expressions. Note that via MapScript it is possible to circumvent that test by defining layers with problems after running prepareImage. Other things crop up in that case too (symbol scaling dies) so it should be considered bad programming practice (bug 1059). - Added --with-sderaster configure option. - Make sure that msDrawWMSLayerLow calls msDrawLayer instead of msDrawRasterLayerLow directly ensuring that some logic (transparency) that are in msDrawLayer are applied (bug 541). - Force GD/JPEG outputFormatObjects to IMAGEMODE RGB and TRANSPARENT OFF if they are RGBA or ON. Makes user error such as in bug 1703 less likely. - Advertize only gd and gdal formats for wms capabilities (bug 455). - Pass config option GML_FIELDTYPES=ALWAYS_STRING to OGR so that all GML attributes are returned as strings to MapServer. This is most efficient and prevents problems with autodetection of some attribute types (bug 1043). - msOGCWKT2ProjectionObj() now uses the OGRSpatialReference::SetFromUserInput() method. This allows various convenient setting options, including the ability to handle ESRI WKT by prefixing the WKT string with "ESRI::". - Fixed GetLegendGraphic in WMS Capabilities that were missing the '?' or '&' separator if it was not included in wms_onlineresource (bug 1065). - Updated WMS/WFS client and server code to lookup "ows_*" metadata names in addition to the default "wms_*" (or "wfs_*") metadatas (WCS was already implemented this way). This reduces the amount of duplication in mapfiles that support multiple OGC interfaces since "ows_*" metadata can be used almost everywhere for common metadata items shared by multiple OGC interfaces (bug 568). - Added ows_service_onlineresource metadata for WMS/WFS to distinguish between service and GetMap/Capabilities onlineresources (bug 375). - Added map->setSize() to PHP MapScript (bug 1066). - Re-enabled building PHP MapScript using PHP's bundled regex/*.o. This is needed to build in an environment with PHP configured as an Apache DSO (bugs 990, 520). - Fixed problem with raster dither support on windows (related to ascii encoding pointers) (bug 722). - Moved PHP/SWIG MapScript layer->getExtent() logic down to msLayerGetExtent() to avoid code duplication (bug 1051). - Added SDE Raster drawing support (experimental). - HTML legends: Added [leg_header_html] and [leg_footer_html] (bug 1032). - Added "z" support in SWIG MapScript for pointObj (bug 871). - In PHP Mpascript when using ms_newrectobj, the members minx, miny, maxx, maxy are initialized to -1 (bug 788). - Write out proper world file with remote WMS result, it was off by half a pixel (bug 1050). - Send a warning in the wms capabilities if the layer status is set to default (bug 638). - Fixed PHP MapScript compile warnings: dereferencing type-punned pointer will break strict-aliasing rules (bug 1053). - Added $layer->isVisible() to PHP MapScript (bug 539). - Ported $layer->getExtent() to PHP MapScript (bug 826). - wms_group_abstract can now be used in the capabilities (bug 754). - If wms_stylelist is an empty string, do not output the tag for MapContexts (bug 595). - Avoid passing FILE* to GD library by utilizing GD's gdIOCtx interface (bug 1047). - Output warning in wms/wfs capabilities document if layer,group,map names have space in them (bug 486, bug 646). - maporaclespatial.c: fixed declarations problems (bug 1044). - Allow use of msOWSPrintURLType with no metadata. In this case the default parameters will be used (bug 1001). - Ensure the outputFormatObj attached to msImageLoadGDStream() results reflect the interlacedness of the loaded image. Also ensure that the RGB PNG reference images work (make imagemode match gdImg) (bug 1039). - Fixed support for non-square pixels in WCS (bug 1014). - Expose only GD formats for GetLegendGraphic in the capabilities (bug 1001). - Check for supported formats when process a GetLegendGraphic request (bug 1030). - mapraster.c: fixed problem with leaks in tileindexed case where the tile index is missing (bug 713). - Oracle Spatial: implemented connection pool support for Oracle Spatial. New layer data parameters to support query functions, added "using unique ". Added "FILTER", "RELATE" and "GEOMRELATE" parameters, now permit users to choose the Oracle Spatial Filter. Modified the internal SQL to always apply FILTER function. And improve the Oracle Spatial performance. - Centralize "stdout binary mode setting" for win32 in msIO_needBinaryStdout(). Use it when writing GDAL files to stdout in mapgdal.c. Fixes problems with output of binary files from GDAL outputformat drivers on win32 via WMS/WCS. - MapServer now provides one default style named (default), title and LegendURL when generating capabilities. Added also the possibility to use the keyword default for STYLES parameter when doing a GetMap (..&STYLES=default,defeault,...) (bug 1001). - Add xlink:type="simple" in WMS MetadataURL (bug 1027). Version 4.4.0-beta2 (2004-11-03) -------------------------------- - free mapServObj properly in mapserv.c in OWS dispatch case to fix minor memory leaks. - modified msCloseConnections() to also close raster layers so that held raster query results will be freed. - modified raster queries to properly set the classindex in the resultcache. - modified msDrawQueryCache() to be very careful to not try and lookup information on out-of-range classindex values. This seems to occur when default shapes come back witha classindex of 0 even if there are no classes. (ie. raster query results). - the loadmapcontext function has changed it behaviour. Before the 4.4 relase when loading layers from a map context, the layer name was built using a unique prefix + the name found in the context (eg for the 2nd layer in map context named park, the layer name generated would possibly be l:2:park). Now the loadmapcontext takes a 2nd optional argument to force the creation of the unique names. The default behaviour is now to have the layer name equals to the name found in the context file (bug 1023). - Fixed problem with WMS GetCapabilities aborting when wms_layer_group is used for some layers but not for all (bug 1024). - Changed raster queries to return the list of all pixel values as an attribute named "value_list" rather than "values" to avoid conflict with special [values] substitution rule in maptemplate.c. - Fixed raster queries to reproject results back to map projection, and to do point queries distance checking against the correct projection (bug 1021). - Get rid of WMS 1.0.8 support. It's not an officially supported verison of the spec anyway: it's synonymous for 1.1.0 (bug 1022). - Allow use of '=' inside HTML template tag parser (bug 978). - Use metadata ows_schema_location for WMS/WFS/WCS/SLD (bugs 999, 1013, 938). The default value if metadata is not found is http://schemas.opengeospatial.net. - Generate a RULE tag when generating an SLD (bug 1010). - WMS GetLegendGraphic uses now the RULE value to return an icon for a class that has the same name as the RULE value (bug 843). - Add msOWSPrintURLType: This funciton is a generic URL printing fuction for OGC specification metadata (WMS, WFS, WCS, WMC, etc.) (bug 944). - Support MetadataURL, DataURL and LegendURL tags in WMS capabilities document and MetadataURL in WFS capabilities. - SWIG mapscript: clone methods for layerObj, classObj, styleObj (bug 1012). - Implemented an intarray helper class for SWIG mapscript which allows for multi-language manipulation of layer drawing order (bugs 853, 1005). - Fixed WMS GetLegendGraphic which was returning an exception (GD error) when requested layer was out of scale (bug 1006). - Fixed maplexer.l to work with flex 2.5.31 (bug 975). - WMS GetMap requests now have MS_NONSQUARE enabled by default. This means that if the width/height ratio doesn't match the extent's x/y ratio then the map is stretched as stated in the WMS specification (bug 862). - In WMS, layers with no explicit projection defined will receive a copy of the map's projectionObj if a new SRS is specified in the GetMap request or if MS_NONSQUARE is enabled. This will prevent the problem with layers that don't show up in WMS request when the server administrator forgets to explicitly set projections on all the layers in a WMS mapfile (bug 947). - Implemented FastCGI cleanup support for win32 and unix in mapserv.c. - Solved configure/compile issues with libiconv (bugs 909, 1017). Version 4.4.0-beta1 (2004-10-21) -------------------------------- - "shared" compilation target now supports some kind of versioning, should at least prevent libmap.so version collisions when upgrading MapServer on a server (bug 982). - When no RULE parameter has been specified in the WMS request a legend should be returned with all classes for the specified LAYER. Changes has been made in mapwms.c (bug 653). Also if the SCALE parameter is provided in the WMS request is will be used to determine whether the legend of the specified layer should be drawn in the case that the layer is scale dependant (big 809). - Nested layers in the capabilities are supported by using a new metadata tag WMS_LAYER_GROUP (bug 776). - Added greyscale+alpha render support if mapdrawgdal.c (bug 965). - Added --with-fastcgi support to configure. - support OGC mapcontext through mapserver cgi (bug 946). - support for reading 3d shape file (z) (bug 869). - add php mapscript functions to expose the z element (bug 870). - imageObj::write() method for SWIG mapscript (bug 941). - Protect users from 3 potential sources of threading problems: parsing expression strings outside of msLoadMap, evaluating mapserver logical expressions, and loading symbol set files outside of msLoadMap (bug 339). - Various fixes allowing unit tests to run leak free under valgrind on i686. Memory is now properly freed when exiting from common error states (bug 927). - Restored ability to render transparent (indexed or alpha) pixmap symbols on RGB map images, including annotation layers and embedded scalebars. This feature remains OFF by default for map layers and is enabled by specifying TRANSPARENCY ALPHA (bugs 926, 490). - mapserv_fcgi.c removed. Committed new comprehensive FastCGI support. - New mapserver exceptions for Java mapscript thanks to Umberto Nicoletti (bug 895). - Removed mapindex.c, mapindex.h, shpindex.c components of old unused shapefile indexing method. - Use the symbol size instead of 1 for the default style size value. This is done by setting the default size to -1 and adding msSymbolGetDefaultSize() everywhere to get the default symbolsize (Bug 751). - Correct Bug with GML BBOX output when using a with a GetFeature request (Bug 913). - Encode all metadatas and mapfile parameters outputed in a xml document (Bug 802). - Implement the ENCODING label parameter to support internationalization. Note this require the iconv library (Bug 858). - New and improved Java mapscript build provided by unicoletti at prometeo.it and examples by Y.K. Choo (bug 876). - MapContext: Cleanup code to make future integration more easily and output SRS and DataURL in the order required by the spec. - Fixed issue with polygon outline colors and brush caching (bug 868). - New C# mapscript makefiles and examples provided by Y.K. Choo committed under mapscript/csharp/ (bug 867). - Renamed 'string' member of labelCacheMemberObj to 'text' to avoid conflicts in SWIG mapscript with C# and Java types (bug 852). - Fixed Bug 866 : problem when generating an sld on a pplygon layer - SWIG mapscript: map's output image width and height should be set simultaneously using new mapObj::setSize() method. This performs necessary map geotransform computation. Direct setting of map width and height is deprecated (bug 836). - Fixed bug 832 (validate srs value) : When the SRS parameter in a GetMap request contains a SRS that is valid for some, but not all of the layers being requested, then the server shall throw a Service Exception (code = "InvalidSRS"). Before this fix, mapserver use to reproject the layers to the requested SRS. - Fixed bug 834: SE_ROW_ID in SDE not initialized for unregistered SDE tables - Fixed bug 823 : adding a validation of the SRS parameter when doing a GetMap request on a wms server. Here is the OGC statement : 'When the SRS parameter in a GetMap request contains a SRS that is valid for some, but not all of the layers being requested, then the server shall throw a Service Exception (code = "InvalidSRS").' - Set the background color of polygons or circles when using transparent PIXMAP symbol. - SWIG mapscript class extensions are completely moved from mapscript.i into separate interface files under mapscript/swiginc. - Overhaul of mapscript unit testing framework with a comprehensive test runner mapscript/python/tests/runtests.py. - Modified the MS_VALID_EXTENT macro to take an extent as its argument instead of the quartet of members. MapServer now checks that extents input through the mapfile are valid in mapfile.c (web, map, reference, and layer). Modified msMapSetExtent in mapobject.c to use the new macro instead of its home-grown version. Modified all cases that used MS_VALID_EXTENT to the new use case. - Layers now accept an EXTENT through the mapfile (bug 786). Nothing is done with it at this point, and getExtent still queries the datasource rather than getting information from the mapfile-specified extent. - Fixed problem with WMS GetFeatureInfo when map was reprojected. Was a problem with msProjectRect and zero-size search rectangles (bug 794) - MapServer version now output to mapscriptvars and read by Perl Makefile.PL and Python setup.py (bug 795). - Map.web, layer, and class metadata are exposed in SWIG mapscript as first-class objects (bug 737). - Add support for spatial filters in the SLD (Bug 782) - A few fixes to allow php_mapscript to work with both PHP4 and PHP5. PHP5 support should still be considered experimental. (bug 718) - Fixed SDE only recognizing SE_ROW_ID as the unique column (bug 536). The code now autosenses the unique row id column. - Enhanced SDE support to include support for queries against user-specified versions. The version name can be specified as the last parameter of the CONNECTION string. - Fixed automated generation of onlineresource in OWS GetCapabilities when the xxx_onlineresource metadata is not specified: the map= parameter used to be omitted and is now included in the default onlineresource if it was explicitly set in QUERY_STRING (bug 643) - Fixed possible crash when producing WMS errors INIMAGE (bug 644) - Fixed automated generation of onlineresource in OWS GetCapabilities when the xxx_onlineresource metadata is not specified: the map= parameter used to be omitted and is now included in the default onlineresource if it was explicitly set in QUERY_STRING (bug 643) - Fixed an issue with annotation label overlap. There was an issue with the way msRectToPolygon was computing it's bounding box. (bug 618) - Removed "xbasewohoo" debug output when using JOINs and fixed a few error messages related to MySQL joins (bug 652) - Fixed "raster cracking" problem (bug 493) - Improvements to Makefile.vc, and nmake.opt so that a mapscriptvars file can be produced on windows. - Updated setup.py so Python MapScript builds on win32. - Added preliminary raster query support. - No more Python-stopping but otherwise benign errors raised from msDrawWMSLayer() (bug 650). - Finished prototyping all MapServer functions used by SWIG-Mapscript and added 'void' to prototypes of no-arg functions, eliminating all but two SWIG-Mapscript build warnings (bug 658). - Mapscript: resolved issue with pens and dynamic drawing of points (bug 663). - Mapscript: fixes to tests of shape copying and new image symbols. - Mapscript: new OWSRequest class based on cgiRequestObj structure in cgiutil.h is a first step to allow programming with MapServer's OWS dispatching (bug 670). - Mapscript: styles member of classObj structure is no longer exposed to SWIG (bug 611). - Implementation geotransform/rotation support in cgi core, and mapscript.i. - Testing: fixed syntax error, 'EPSG' -> 'epsg' in test.map (bug 687). Added an embedded scalebar which demonstrates that bug 519 is fixed. The test data package is also made more complete by including two fonts from Bitstream's open Vera fonts (bug 694). - Mapscript (SWIG): remove promote and demote methods from layerObj. Use of container's moveLayerUp/moveLayerDown is better, and this brings the module nearer to PHP-Mapscript (bug 692). - mapogr.cpp: Now echos CPLGetLastErrorMsg() results if OGR open fails. - mapraster.c: fixed tile index corruption problem (bug 698) - Mladen Turk's map copying macros in mapcopy.h clean up map cloning and allow for copying of fontset and symbolset. Added cloning tests in python/tests/testCloneMap.py and refactored testing suite (bugs 640 & 701). - Mapscript: removing obsolete python/setup_wnone.py file. - CONFIG MS_NONSQUARE YES now enables non-square pixel mode (mostly for WMS). Changes in mapdraw.c (msDrawMap()) to use the geotransform "hack" to allow non-square pixels. - When using the text/html mime type in a GetFeature request, if the layer's template is not set to a valid file, errors occur. Correction is : the text/html is not advertized by default and will only be advertized if the user has defined "WMS_FEATURE_INFO_MIME_TYPE" "text/html" (bug 736) - Make PHP MapScript's layer->open() produce a PHP Warning instead of a Fatal error (bug 742) - MapServer hash tables are now a structure containing a items pointer to hashObj. See maphash.h for new prototypes of hash table functions. In SWIG mapscript, Map, Layer, and Class metadata are now instances of the new hashTableObj class. fontset.fonts and Map.configoptions are also instances of hashTableObj. The older getMetaData/setMetaData and metadata iterator methods can be deprecated (bug 737). - Mapscript-SWIG: made the arguments of mapObj and layerObj constructors optional. A layerObj can now exist outside of a map and can be added to a mapObj using the insertLayer method. mapObj.removeLayer now returns a copy of the removed Layer rather than an integer (bug 759). - Fixed $map->processTemplate() which was always returning NULL. Bug introduced in version 4.0 in all flavours of MapScript (bug 410) Version 4.2-beta1 (2004-04-17) ------------------------------ - Added support for WMS 1.1.1 in the WMS interface. - Added support for WMS-SLD in client and server mode. - Added support for attribute filters in the WFS interface. - WMS Interface: several fixes to address issues found in running tests against the OGC testsuite. One of the side-effects is that incomplete GetMap requests that used to work in previous versions will produce errors now (see bug 622). - Modified configure scripts to be able to configure/build PHP MapScript using an installed PHP instead of requiring the full source tree. - Added ability to combine multiple WMS connections to the same server into a single request when the layers are adjacent and compatible. (bug 116) - Support POSTed requests without Content-Length set. - Added support for proper classification of non-8bit rasters. - Added support for BYTE rawmode output type. - Added support for multiple bands of output in rawmode. - MySQL joins available - Fixed problems with detection of OGRRegisterAll() with GDAL 1.1.9 in configure due to GDAL's library name change. Fixed a few other minor issues with GDAL/OGR in configure. - Modified configure to disable native TIFF/PNG/JPEG/GIF support by default if GDAL is enabled. You can still enable them explicitly if you like. - Replace wms_style_%s_legendurl, wms_logourl, wms_descriptionurl, wms_dataurl and wms_metadataurl metadata by four new metadata by metadata replaced. The new metadata are called legendurl_width, legendurl_height, legendurl_format, legendurl_href, logourl_width, etc... Old dependancy to the metadata with four value in it , space separated, are not kept. - Implement DataURL, MetadataURL and DescriptionURL metadata in mapcontext.c (bug 523) - PHP MapScript's pasteImage() now takes a hex color value (e.g. 0xrrggbb) for the transparent color instead of a color index. (bug 463) - OGR data sources with relative paths are now checked relative to SHAPEPATH first, and if not found then we try again relative to the mapfile location. (bug 295) - There is a new mapObj parameter called MAXSIZE to control maximum image size to serve via the CGI and WMS interfaces. The default is 2048 as before but it can be changed in the map file now. (bug 435) - Added simple dataset for unit and regression tests (bug 453) - PostGIS: added postresql_NOTICE_HANDLER() sending output via msDebug() and only when layer->debug is set (bug 418) - Added Apache version detection in configure and added non-blocking flag on stderr in msDebug() to work around Apache 2.x bug (bug 458) - MapScript rectObj: added optional bounding value args to constructor and extended rectObj class with a toPolygon method (bug 508). - MapScript pointObj: added optional x/y args to constructor (bug 508). - MapScript colorObj: added optional RGB color value args to colorObj constructor, and extended colorObj class with setRGB, setHex, and toHex methods. The hex methods use hex color strings like '#ffffff' rather than '0xffffff' for compatibility with HTML (bug 509). - MapScript outputFormatObj: extended with a getOption method (bug 510). - MapScript imageObj: added optional mapObj argument to the save method resolving bug 549 without breaking current API. Also added optional driver and filename arguments to constructor which allows imageObj instances to be created with a specified driver or from files on disk (bug 530). Added new code to Python MapScript which extends the filename option to Python file-like objects (bug 550). This means StringIO and urllib's network objects! - MapScript classObj and styleObj: added a new styleObj shadow class and extended classObj with getStyle, insertStyle, and removeStyle methods. MapScript now supports multiple styles for dynamically created classes (bug 548). - MapScript layerObj: added getExtent, getNumFeatures extension methods, allowing getShape to access inline features (bug 562). - Added fixes for AMD64/Linux in configure (bug 565) - Removed OGR_STATIC stuff in configure script that used to allow us to build with OGR statically by pointing to the OGR source tree. That means you can only build with OGR when *installed* as part of GDAL, but that's what everyone is doing these days anyway. - Mapscript outputFormatObj: extended constructor to allow format names, and mapObj methods to append and remove output formats from the outputformatlist (bug 511). - New SWIG mapscript development documentation in the spirit of the PHP-Mapscript readme file, but using reST (bug 576). - Paving way for future changes to SWIG mapscript API with new features enabled by NEXT_GENERATION_API symbol (bug 586). - Added ability to set string member variables to NULL in PHP MapScript (bug 591) - New key iterators for map, layer, and class metadata hash tables (bug 434) and fontset fonts hash table (bug 439). - Fixed potential crash when using nquery with a querymap enabled and some layers have a template set at the layer level instead of inside classes (bug 569). - New CONFIG keyword in the MAP object in a .map file to be used to set external configuration parameters such as PROJ_LIB and control of some GDAL and OGR driver behaviours (bug 619) From cord at LUPINEX.COM Mon Nov 29 21:10:55 2004 From: cord at LUPINEX.COM (Cord Thomas) Date: Mon, 29 Nov 2004 21:10:55 -0800 Subject: MapServer 4.4.0 released In-Reply-To: <41ABFE14.6070709@dmsolutions.ca> Message-ID: Great news. Keep up the good work. Cord > Good evening, > > The MapServer 4.4.0 release is now officially available, thanks to the > hard work of everyone involved. > > Here is a very quick summary of what's new in version 4.4: > > * Added WCS support (server only) > > * Added support for Time dimension in WMS > > * Lots of fixes/improvements to the OGC WMS and WFS interfaces (too many > to list here). MapServer 4.4 passes all the tests of the OGC WMS 1.1.1 > test suite and is ready to be certified (Formal "WMS Compliance" > certification with OGC is in the works). > > * Added FastCGI support > > * Lots of fixes to allow running in long-lived processes and > multithreaded environments (memory leaks, mutex locking, etc.). > > * Added connection pooling (implemented for SDE and PostGIS). > > * Lots of improvements to SWIG MapScript API and docs. > > * Support for i18n encodings in map labels. Tested with Chinese, > Japanese and Thai. > > * Added ability to produce rotated maps (i.e. North is not at the top) > > * Completion of SDE versioned query support > > ... and many many more fixes and enhancements. See the HISTORY.TXT that > comes with the source package for the complete list (relevant parts > included below). > > The source code package is available for download on the MapServer > download page at http://mapserver.gis.umn.edu/dload.html and the default > documentation pages should be switched to use version 4.4 documents > shortly. > > Windows binaries should also be available shortly at the usual > locations. I would invite those producing prebuilt binaries to please > reply to this email and announce the availability of their binaries and > their URL. > > As we've done for previous releases, we will produce 4.4.x bugfix > releases as required in the coming months. With respect to 4.2.x: we > will not produce any more 4.2.x releases unless major issues (e.g. > security issues) are ever found in 4.2.5. > > What about the next release? The consensus seems to be to aim for a 4.6 > release in the next 4-6 months. There are no major changes or new > features planned for 4.6 at this point, mostly improvements of existing > features. We'll try to document our plan for 4.6 and share it with this > list when it's available. > > Enjoy! > > Daniel > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > > > > Complete list of changes since 4.2 (excerpt from HISTORY.TXT) > > > Version 4.4.0 (2004-11-29) > -------------------------- > > - Fixed WMS GetCapabilities 1.1.0 crash when wms_style_<...>_legendurl_* > metadata were used (bug 1096) > > - WCS GetCapabilities : Added ResponsibleParty support. > > - WMS GetCapabilities : Service online resource was not url encoded (bug > 1093) > > - Fixed php mapscript problem with wfs_filter selection : Bug 1092. > > - Fixed encoding problem with WFS server when wfs_service_onlineresource > was not explicitly specified (bug 1082) > > - Add trailing "?" or "&" to connection string when required in WFS > client layers using GET method (bug 1082) > > - Fixed : SLD rasters was failing when there was Spatial Filter (Bug 1087) > > - Fixed mapwfslayer.c build error when WFS was not enabled (bug 1083) > > - Check that we have vsnprintf in mapimagemap.c before using it. > > > Version 4.4.0-beta3 (2004-11-22) > -------------------------------- > > - Added tests to mimimize the threat of recursion problems when evaluating > LAYER REQUIRES or LABELREQUIRES expressions. Note that via MapScript it > is possible to circumvent that test by defining layers with problems > after running prepareImage. Other things crop up in that case too > (symbol > scaling dies) so it should be considered bad programming practice > (bug 1059). > > - Added --with-sderaster configure option. > > - Make sure that msDrawWMSLayerLow calls msDrawLayer instead of > msDrawRasterLayerLow directly ensuring that some logic (transparency) > that > are in msDrawLayer are applied (bug 541). > > - Force GD/JPEG outputFormatObjects to IMAGEMODE RGB and TRANSPARENT OFF > if they are RGBA or ON. Makes user error such as in bug 1703 less > likely. > > - Advertize only gd and gdal formats for wms capabilities (bug 455). > > - Pass config option GML_FIELDTYPES=ALWAYS_STRING to OGR so that all GML > attributes are returned as strings to MapServer. This is most efficient > and prevents problems with autodetection of some attribute types (bug > 1043). > > - msOGCWKT2ProjectionObj() now uses the > OGRSpatialReference::SetFromUserInput() > method. This allows various convenient setting options, including the > ability to handle ESRI WKT by prefixing the WKT string with "ESRI::". > > - Fixed GetLegendGraphic in WMS Capabilities that were missing the '?' > or '&' separator if it was not included in wms_onlineresource (bug > 1065). > > - Updated WMS/WFS client and server code to lookup "ows_*" metadata names > in addition to the default "wms_*" (or "wfs_*") metadatas (WCS was > already > implemented this way). This reduces the amount of duplication in > mapfiles > that support multiple OGC interfaces since "ows_*" metadata can be used > almost everywhere for common metadata items shared by multiple OGC > interfaces (bug 568). > > - Added ows_service_onlineresource metadata for WMS/WFS to distinguish > between service and GetMap/Capabilities onlineresources (bug 375). > > - Added map->setSize() to PHP MapScript (bug 1066). > > - Re-enabled building PHP MapScript using PHP's bundled regex/*.o. This is > needed to build in an environment with PHP configured as an Apache DSO > (bugs 990, 520). > > - Fixed problem with raster dither support on windows (related to ascii > encoding pointers) (bug 722). > > - Moved PHP/SWIG MapScript layer->getExtent() logic down to > msLayerGetExtent() > to avoid code duplication (bug 1051). > > - Added SDE Raster drawing support (experimental). > > - HTML legends: Added [leg_header_html] and [leg_footer_html] (bug 1032). > > - Added "z" support in SWIG MapScript for pointObj (bug 871). > > - In PHP Mpascript when using ms_newrectobj, the members minx, miny, > maxx, maxy are initialized to -1 (bug 788). > > - Write out proper world file with remote WMS result, it was off by half > a pixel (bug 1050). > > - Send a warning in the wms capabilities if the layer status is set > to default (bug 638). > > - Fixed PHP MapScript compile warnings: dereferencing type-punned pointer > will break strict-aliasing rules (bug 1053). > > - Added $layer->isVisible() to PHP MapScript (bug 539). > > - Ported $layer->getExtent() to PHP MapScript (bug 826). > > - wms_group_abstract can now be used in the capabilities (bug 754). > > - If wms_stylelist is an empty string, do not output the tag > for MapContexts (bug 595). > > - Avoid passing FILE* to GD library by utilizing GD's gdIOCtx interface > (bug 1047). > > - Output warning in wms/wfs capabilities document if layer,group,map > names have > space in them (bug 486, bug 646). > > - maporaclespatial.c: fixed declarations problems (bug 1044). > > - Allow use of msOWSPrintURLType with no metadata. In this case the > default > parameters will be used (bug 1001). > > - Ensure the outputFormatObj attached to msImageLoadGDStream() results > reflect > the interlacedness of the loaded image. Also ensure that the RGB PNG > reference images work (make imagemode match gdImg) (bug 1039). > > - Fixed support for non-square pixels in WCS (bug 1014). > > - Expose only GD formats for GetLegendGraphic in the capabilities (bug > 1001). > > - Check for supported formats when process a GetLegendGraphic request > (bug 1030). > > - mapraster.c: fixed problem with leaks in tileindexed case where the > tile index is missing (bug 713). > > - Oracle Spatial: implemented connection pool support for Oracle Spatial. > New layer data parameters to support query functions, added > "using unique ". Added "FILTER", "RELATE" and > "GEOMRELATE" > parameters, now permit users to choose the Oracle Spatial Filter. > Modified > the internal SQL to always apply FILTER function. And improve the > Oracle > Spatial performance. > > - Centralize "stdout binary mode setting" for win32 in > msIO_needBinaryStdout(). > Use it when writing GDAL files to stdout in mapgdal.c. Fixes > problems with > output of binary files from GDAL outputformat drivers on win32 via > WMS/WCS. > > - MapServer now provides one default style named (default), title and > LegendURL when generating capabilities. Added also the possibility > to use > the keyword default for STYLES parameter when doing a GetMap > (..&STYLES=default,defeault,...) (bug 1001). > > - Add xlink:type="simple" in WMS MetadataURL (bug 1027). > > > Version 4.4.0-beta2 (2004-11-03) > -------------------------------- > > - free mapServObj properly in mapserv.c in OWS dispatch case to fix minor > memory leaks. > > - modified msCloseConnections() to also close raster layers so that > held raster query results will be freed. > > - modified raster queries to properly set the classindex in the > resultcache. > > - modified msDrawQueryCache() to be very careful to not try and lookup > information on out-of-range classindex values. This seems to occur > when > default shapes come back witha classindex of 0 even if there are no > classes. > (ie. raster query results). > > - the loadmapcontext function has changed it behaviour. Before the 4.4 > relase > when loading layers from a map context, the layer name was built using > a unique prefix + the name found in the context (eg for the 2nd layer > in > map context named park, the layer name generated would possibly be > l:2:park). > Now the loadmapcontext takes a 2nd optional argument to force the > creation > of the unique names. The default behaviour is now to have the layer > name > equals to the name found in the context file (bug 1023). > > - Fixed problem with WMS GetCapabilities aborting when wms_layer_group is > used for some layers but not for all (bug 1024). > > - Changed raster queries to return the list of all pixel values as an > attribute named "value_list" rather than "values" to avoid conflict > with > special [values] substitution rule in maptemplate.c. > > - Fixed raster queries to reproject results back to map projection, and to > do point queries distance checking against the correct projection > (bug 1021). > > - Get rid of WMS 1.0.8 support. It's not an officially supported verison > of the spec anyway: it's synonymous for 1.1.0 (bug 1022). > > - Allow use of '=' inside HTML template tag parser (bug 978). > > - Use metadata ows_schema_location for WMS/WFS/WCS/SLD (bugs 999, 1013, > 938). > The default value if metadata is not found is > http://schemas.opengeospatial.net. > > - Generate a RULE tag when generating an SLD (bug 1010). > > - WMS GetLegendGraphic uses now the RULE value to return an icon for > a class that has the same name as the RULE value (bug 843). > > - Add msOWSPrintURLType: This funciton is a generic URL printing fuction > for > OGC specification metadata (WMS, WFS, WCS, WMC, etc.) (bug 944). > > - Support MetadataURL, DataURL and LegendURL tags in WMS capabilities > document and MetadataURL in WFS capabilities. > > - SWIG mapscript: clone methods for layerObj, classObj, styleObj (bug > 1012). > > - Implemented an intarray helper class for SWIG mapscript which allows for > multi-language manipulation of layer drawing order (bugs 853, 1005). > > - Fixed WMS GetLegendGraphic which was returning an exception (GD error) > when requested layer was out of scale (bug 1006). > > - Fixed maplexer.l to work with flex 2.5.31 (bug 975). > > - WMS GetMap requests now have MS_NONSQUARE enabled by default. This means > that if the width/height ratio doesn't match the extent's x/y ratio > then > the map is stretched as stated in the WMS specification (bug 862). > > - In WMS, layers with no explicit projection defined will receive a copy > of the map's projectionObj if a new SRS is specified in the GetMap > request > or if MS_NONSQUARE is enabled. This will prevent the problem with > layers > that don't show up in WMS request when the server administrator forgets > to explicitly set projections on all the layers in a WMS mapfile (bug > 947). > > - Implemented FastCGI cleanup support for win32 and unix in mapserv.c. > > - Solved configure/compile issues with libiconv (bugs 909, 1017). > > > Version 4.4.0-beta1 (2004-10-21) > -------------------------------- > > - "shared" compilation target now supports some kind of versioning, > should at least prevent libmap.so version collisions when upgrading > MapServer on a server (bug 982). > > - When no RULE parameter has been specified in the WMS request > a legend should be returned with all classes for the specified LAYER. > Changes has been made in mapwms.c (bug 653). Also if the SCALE > parameter > is provided in the WMS request is will be used to determine whether > the legend of the specified layer should be drawn in the case that the > layer is scale dependant (big 809). > > - Nested layers in the capabilities are supported by using a new metadata > tag WMS_LAYER_GROUP (bug 776). > > - Added greyscale+alpha render support if mapdrawgdal.c (bug 965). > > - Added --with-fastcgi support to configure. > > - support OGC mapcontext through mapserver cgi (bug 946). > > - support for reading 3d shape file (z) (bug 869). > > - add php mapscript functions to expose the z element (bug 870). > > - imageObj::write() method for SWIG mapscript (bug 941). > > - Protect users from 3 potential sources of threading problems: parsing > expression strings outside of msLoadMap, evaluating mapserver logical > expressions, and loading symbol set files outside of msLoadMap (bug > 339). > > - Various fixes allowing unit tests to run leak free under valgrind on > i686. Memory is now properly freed when exiting from common error > states (bug 927). > > - Restored ability to render transparent (indexed or alpha) pixmap symbols > on RGB map images, including annotation layers and embedded scalebars. > This feature remains OFF by default for map layers and is enabled by > specifying TRANSPARENCY ALPHA (bugs 926, 490). > > - mapserv_fcgi.c removed. Committed new comprehensive FastCGI support. > > - New mapserver exceptions for Java mapscript thanks to Umberto Nicoletti > (bug 895). > > - Removed mapindex.c, mapindex.h, shpindex.c components of old unused > shapefile indexing method. > > - Use the symbol size instead of 1 for the default style size value. This > is > done by setting the default size to -1 and adding > msSymbolGetDefaultSize() > everywhere to get the default symbolsize (Bug 751). > > - Correct Bug with GML BBOX output when using a with a > GetFeature request (Bug 913). > > - Encode all metadatas and mapfile parameters outputed in a xml document > (Bug 802). > > - Implement the ENCODING label parameter to support internationalization. > Note this require the iconv library (Bug 858). > > - New and improved Java mapscript build provided by unicoletti at prometeo.it > and examples by Y.K. Choo (bug 876). > > - MapContext: Cleanup code to make future integration more easily and > output > SRS and DataURL in the order required by the spec. > > - Fixed issue with polygon outline colors and brush caching (bug 868). > > - New C# mapscript makefiles and examples provided by Y.K. Choo > committed under mapscript/csharp/ (bug 867). > > - Renamed 'string' member of labelCacheMemberObj to 'text' to avoid > conflicts in SWIG mapscript with C# and Java types (bug 852). > > - Fixed Bug 866 : problem when generating an sld on a pplygon layer > > - SWIG mapscript: map's output image width and height should be set > simultaneously using new mapObj::setSize() method. This performs > necessary map geotransform computation. Direct setting of map width > and height is deprecated (bug 836). > > - Fixed bug 832 (validate srs value) : When the SRS parameter in a GetMap > request contains a SRS that is valid for some, but not all of the > layers > being requested, then the server shall throw a Service Exception > (code = "InvalidSRS"). Before this fix, mapserver use to reproject > the layers to the requested SRS. > > - Fixed bug 834: SE_ROW_ID in SDE not initialized for unregistered SDE > tables > > - Fixed bug 823 : adding a validation of the SRS parameter when doing > a GetMap request on a wms server. Here is the OGC statement : > 'When the SRS parameter in a GetMap request contains a SRS > that is valid for some, but not all of the layers being requested, > then the server shall throw a Service Exception (code = "InvalidSRS").' > > - Set the background color of polygons or circles when using transparent > PIXMAP symbol. > > - SWIG mapscript class extensions are completely moved from mapscript.i > into separate interface files under mapscript/swiginc. > > - Overhaul of mapscript unit testing framework with a comprehensive test > runner mapscript/python/tests/runtests.py. > > - Modified the MS_VALID_EXTENT macro to take an extent as its argument > instead of the quartet of members. MapServer now checks that extents > input > through the mapfile are valid in mapfile.c (web, map, reference, > and layer). Modified msMapSetExtent in mapobject.c to use the new > macro instead of its home-grown version. Modified all cases that used > MS_VALID_EXTENT to the new use case. > > - Layers now accept an EXTENT through the mapfile (bug 786). Nothing > is done with it at this point, and getExtent still queries the > datasource rather than getting information from the mapfile-specified > extent. > > - Fixed problem with WMS GetFeatureInfo when map was reprojected. Was a > problem with msProjectRect and zero-size search rectangles (bug 794) > > - MapServer version now output to mapscriptvars and read by Perl > Makefile.PL > and Python setup.py (bug 795). > > - Map.web, layer, and class metadata are exposed in SWIG mapscript as > first-class objects (bug 737). > > - Add support for spatial filters in the SLD (Bug 782) > > - A few fixes to allow php_mapscript to work with both PHP4 and PHP5. > PHP5 support should still be considered experimental. (bug 718) > > - Fixed SDE only recognizing SE_ROW_ID as the unique column (bug 536). > The code now autosenses the unique row id column. > > - Enhanced SDE support to include support for queries against > user-specified versions. The version name can be specified as the > last parameter of the CONNECTION string. > > - Fixed automated generation of onlineresource in OWS GetCapabilities > when the xxx_onlineresource metadata is not specified: the map= > parameter > used to be omitted and is now included in the default onlineresource if > it was explicitly set in QUERY_STRING (bug 643) > > - Fixed possible crash when producing WMS errors INIMAGE (bug 644) > > - Fixed automated generation of onlineresource in OWS GetCapabilities > when the xxx_onlineresource metadata is not specified: the map= > parameter > used to be omitted and is now included in the default onlineresource if > it was explicitly set in QUERY_STRING (bug 643) > > - Fixed an issue with annotation label overlap. There was an issue with > the way msRectToPolygon was computing it's bounding box. (bug 618) > > - Removed "xbasewohoo" debug output when using JOINs and fixed a few > error messages related to MySQL joins (bug 652) > > - Fixed "raster cracking" problem (bug 493) > > - Improvements to Makefile.vc, and nmake.opt so that a mapscriptvars file > can be produced on windows. > > - Updated setup.py so Python MapScript builds on win32. > > - Added preliminary raster query support. > > - No more Python-stopping but otherwise benign errors raised from > msDrawWMSLayer() (bug 650). > > - Finished prototyping all MapServer functions used by SWIG-Mapscript > and added 'void' to prototypes of no-arg functions, eliminating all > but two SWIG-Mapscript build warnings (bug 658). > > - Mapscript: resolved issue with pens and dynamic drawing of points (bug > 663). > > - Mapscript: fixes to tests of shape copying and new image symbols. > > - Mapscript: new OWSRequest class based on cgiRequestObj structure in > cgiutil.h is a first step to allow programming with MapServer's OWS > dispatching (bug 670). > > - Mapscript: styles member of classObj structure is no longer exposed to > SWIG (bug 611). > > - Implementation geotransform/rotation support in cgi core, and > mapscript.i. > > - Testing: fixed syntax error, 'EPSG' -> 'epsg' in test.map (bug 687). > Added an embedded scalebar which demonstrates that bug 519 is fixed. > The test data package is also made more complete by including two fonts > from Bitstream's open Vera fonts (bug 694). > > - Mapscript (SWIG): remove promote and demote methods from layerObj. Use > of container's moveLayerUp/moveLayerDown is better, and this brings > the module nearer to PHP-Mapscript (bug 692). > > - mapogr.cpp: Now echos CPLGetLastErrorMsg() results if OGR open fails. > > - mapraster.c: fixed tile index corruption problem (bug 698) > > - Mladen Turk's map copying macros in mapcopy.h clean up map cloning and > allow for copying of fontset and symbolset. Added cloning tests in > python/tests/testCloneMap.py and refactored testing suite (bugs 640 & > 701). > > - Mapscript: removing obsolete python/setup_wnone.py file. > > - CONFIG MS_NONSQUARE YES now enables non-square pixel mode (mostly for > WMS). > Changes in mapdraw.c (msDrawMap()) to use the geotransform "hack" to > allow > non-square pixels. > > - When using the text/html mime type in a GetFeature request, if the > layer's template is not set to a valid file, errors occur. > Correction is : the text/html is not advertized by default and > will only be advertized if the user has defined > "WMS_FEATURE_INFO_MIME_TYPE" "text/html" (bug 736) > > - Make PHP MapScript's layer->open() produce a PHP Warning instead of a > Fatal error (bug 742) > > - MapServer hash tables are now a structure containing a items pointer > to hashObj. See maphash.h for new prototypes of hash table functions. > In SWIG mapscript, Map, Layer, and Class metadata are now instances > of the > new hashTableObj class. fontset.fonts and Map.configoptions are also > instances of hashTableObj. The older getMetaData/setMetaData and > metadata iterator methods can be deprecated (bug 737). > > - Mapscript-SWIG: made the arguments of mapObj and layerObj constructors > optional. A layerObj can now exist outside of a map and can be added > to a mapObj using the insertLayer method. mapObj.removeLayer now > returns a copy of the removed Layer rather than an integer (bug 759). > > - Fixed $map->processTemplate() which was always returning NULL. > Bug introduced in version 4.0 in all flavours of MapScript (bug 410) > > > Version 4.2-beta1 (2004-04-17) > ------------------------------ > > - Added support for WMS 1.1.1 in the WMS interface. > > - Added support for WMS-SLD in client and server mode. > > - Added support for attribute filters in the WFS interface. > > - WMS Interface: several fixes to address issues found in running tests > against the OGC testsuite. One of the side-effects is that incomplete > GetMap requests that used to work in previous versions will produce > errors now (see bug 622). > > - Modified configure scripts to be able to configure/build PHP MapScript > using an installed PHP instead of requiring the full source tree. > > - Added ability to combine multiple WMS connections to the same server > into a single request when the layers are adjacent and compatible. > (bug 116) > > - Support POSTed requests without Content-Length set. > > - Added support for proper classification of non-8bit rasters. > > - Added support for BYTE rawmode output type. > > - Added support for multiple bands of output in rawmode. > > - MySQL joins available > > - Fixed problems with detection of OGRRegisterAll() with GDAL 1.1.9 in > configure due to GDAL's library name change. Fixed a few other minor > issues with GDAL/OGR in configure. > > - Modified configure to disable native TIFF/PNG/JPEG/GIF support by > default > if GDAL is enabled. You can still enable them explicitly if you like. > > - Replace wms_style_%s_legendurl, wms_logourl, wms_descriptionurl, > wms_dataurl > and wms_metadataurl metadata by four new metadata by metadata > replaced. The > new metadata are called legendurl_width, legendurl_height, > legendurl_format, > legendurl_href, logourl_width, etc... > Old dependancy to the metadata with four value in it , space > separated, are > not kept. > > - Implement DataURL, MetadataURL and DescriptionURL metadata in > mapcontext.c (bug 523) > > - PHP MapScript's pasteImage() now takes a hex color value (e.g. 0xrrggbb) > for the transparent color instead of a color index. (bug 463) > > - OGR data sources with relative paths are now checked relative to > SHAPEPATH first, and if not found then we try again relative to the > mapfile location. (bug 295) > > - There is a new mapObj parameter called MAXSIZE to control maximum image > size to serve via the CGI and WMS interfaces. The default is 2048 as > before but it can be changed in the map file now. (bug 435) > > - Added simple dataset for unit and regression tests (bug 453) > > - PostGIS: added postresql_NOTICE_HANDLER() sending output via msDebug() > and only when layer->debug is set (bug 418) > > - Added Apache version detection in configure and added non-blocking flag > on stderr in msDebug() to work around Apache 2.x bug (bug 458) > > - MapScript rectObj: added optional bounding value args to constructor and > extended rectObj class with a toPolygon method (bug 508). > > - MapScript pointObj: added optional x/y args to constructor (bug 508). > > - MapScript colorObj: added optional RGB color value args to colorObj > constructor, and extended colorObj class with setRGB, setHex, and toHex > methods. The hex methods use hex color strings like '#ffffff' rather > than '0xffffff' for compatibility with HTML (bug 509). > > - MapScript outputFormatObj: extended with a getOption method (bug 510). > > - MapScript imageObj: added optional mapObj argument to the save method > resolving bug 549 without breaking current API. Also added optional > driver and filename arguments to constructor which allows imageObj > instances to be created with a specified driver or from files on disk > (bug 530). Added new code to Python MapScript which extends the > filename option to Python file-like objects (bug 550). This means > StringIO and urllib's network objects! > > - MapScript classObj and styleObj: added a new styleObj shadow class and > extended classObj with getStyle, insertStyle, and removeStyle methods. > MapScript now supports multiple styles for dynamically created classes > (bug 548). > > - MapScript layerObj: added getExtent, getNumFeatures extension methods, > allowing getShape to access inline features (bug 562). > > - Added fixes for AMD64/Linux in configure (bug 565) > > - Removed OGR_STATIC stuff in configure script that used to allow us to > build with OGR statically by pointing to the OGR source tree. That > means you can only build with OGR when *installed* as part of GDAL, > but that's what everyone is doing these days anyway. > > - Mapscript outputFormatObj: extended constructor to allow format names, > and mapObj methods to append and remove output formats from the > outputformatlist (bug 511). > > - New SWIG mapscript development documentation in the spirit of the > PHP-Mapscript readme file, but using reST (bug 576). > > - Paving way for future changes to SWIG mapscript API with new features > enabled by NEXT_GENERATION_API symbol (bug 586). > > - Added ability to set string member variables to NULL in PHP MapScript > (bug 591) > > - New key iterators for map, layer, and class metadata hash tables > (bug 434) and fontset fonts hash table (bug 439). > > - Fixed potential crash when using nquery with a querymap enabled and > some layers have a template set at the layer level instead of inside > classes (bug 569). > > - New CONFIG keyword in the MAP object in a .map file to be used > to set external configuration parameters such as PROJ_LIB and control > of some GDAL and OGR driver behaviours (bug 619) > From javiermartin at NETSYSTEMSI.COM Tue Nov 30 02:37:10 2004 From: javiermartin at NETSYSTEMSI.COM (Javier Mart=?ISO-8859-1?Q?=EDn?=) Date: Tue, 30 Nov 2004 04:37:10 -0600 Subject: adding point on-line Message-ID: Hi all, I'm working with phpMapScript 4.2.5, maplab 2.2 and gmapfactory. I'm trying to add a point in my map, but it is no showed. My Map File: LAYER NAME "puntos" STATUS ON TYPE POINT CLASS NAME "puntos" STYLE SYMBOL 2 COLOR 0 0 0 SIZE 10 MINSIZE 10 MAXSIZE 100 END END END And my Code: $mapa = $oMapSession->oMap; $capa = $mapa->getLayerByName("puntos"); $img = $mapa->draw(); $punto = ms_newPointObj(); $punto->setXY($pxX,$pyY); $punto->draw($mapa,$capa,$img,0,''); $szCurrentState = $oMapSession->saveState(); What wrong in than code??? If i do: $mapa = $oMapSession->oMap; $capa = $mapa->getLayerByName("puntos"); $img = $mapa->draw(); $punto = ms_newPointObj(); $punto->setXY($pxX,$pyY); $punto->draw($mapa,$capa,$img,0,'hola'); echo $img->saveWebImage(); the image generated by: $img->saveWebImage(); not show either the point. why??????? Thanks to all. From superbla3000 at GMX.NET Tue Nov 30 04:53:39 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Tue, 30 Nov 2004 13:53:39 +0100 Subject: Romolo Manfredini RPMs Message-ID: hello Romolo, some posts ago, you offered to download rpms for Suse 9.1. I would really like to work with your rpms and would be very happy to download them somewhere... best regards Joerg From joseluismapserver at YAHOO.ES Tue Nov 30 06:13:24 2004 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Tue, 30 Nov 2004 15:13:24 +0100 Subject: simple mapserver instrucctions don't work!! Message-ID: I am using mapserver 4.2.4. All I wanted to do is to do any simple mapserver instructions to see that everything works. I have tried the demos that apear when you install mapserver, but I wanted to see it work with my own code and deploying my archives to the server. For example it will be great if i could manage to just draw a .map file for instance as a response to the client. Does anyone know how to do this, or what easy instructions I can use to see if it works? Thank you Jose Luis wrote: On Nov 29, 2004, at 4:26 AM, Jose Luis Gonzalez wrote: > --0-82611386-1101727598=:30831 > Content-Type: text/plain; charset=iso-8859-1 > Content-Transfer-Encoding: 8bit > > This is my code: > First of all I have this file: > > package javamaps; > > public class MapserverLibLoad{ > public static void loadLibrary() throws UnsatisfiedLinkError{ > System.loadLibrary("mapscript"); > } > } > > Then this is the principal program, as you see it is a servlet: > > import javamaps.*; > import edu.umn.gis.mapscript.*; > import javax.ejb.*; > import javax.xml.parsers.*; > import javax.xml.transform.*; > import javax.xml.transform.dom.*; > import org.w3c.dom.*; > import java.sql.*; > import javax.sql.*; > import javax.naming.*; > > import javax.servlet.*; > import javax.servlet.http.*; > import java.io.*; > public class test2 extends HttpServlet{ > > InitialContext initialContext=null; > > static{ > try{ > MapserverLibLoad.loadLibrary(); > }catch(UnsatisfiedLinkError e){ > e.printStackTrace(); > System.out.println("CONTINUE"); > } > } > > > / > /---------------------------------------------------------------------- > ------------------------------------------------------ > > private Connection createDatabaseConnection()throws EJBException{ > DataSource dataSource; > Connection connection; > PreparedStatement stmt; > try{ > dataSource = (DataSource) initialContext.lookup("jdbc/lbs"); > connection= dataSource.getConnection(); > //System.out.println(" > DATABSE:::::"+connection.getMetaData().getUserName()); > return connection; > }catch (SQLException e){ > throw (new EJBException(e)); > }catch (NamingException e){ > throw (new EJBException(e)); > } > } > > > > / > /---------------------------------------------------------------------- > ------------------------------------------------------ > public void init (ServletConfig cfg){ > try{ > System.out.println("Try to init servlet"); > System.out.flush(); > initialContext= new InitialContext(); > }catch(Exception e){ > throw (new EJBException(e)); > } > > }//fin init > > public void service (HttpServletRequest req, HttpServletResponse res){ > Connection conexion=null; > String imei=null; > PrintWriter out=null; > Statement orden=null; > ResultSet rs=null; > String SQL=null; > > try{ itemObj item = new itemObj(); > System.out.println(" BIG NAME > :>>"+item.getName()+"<<"); > > conexion=this.createDatabaseConnection(); > imei=req.getParameter("IMEI"); > out=res.getWriter(); > SQL="SELECT * FROM Client WHERE Name="; > SQL=SQL+"'"+imei+"'"; > orden=conexion.createStatement(); > rs=orden.executeQuery(SQL); > res.setContentType("text/html"); > out.println(""); > out.println(" "); > rs.next();//I move to the first row > out.println(" "); > out.println(""); > out.println(" "+rs.getString("Name")); > out.println(""+rs.getString("Mobile")); > > out.println(""+rs.getString("Telephone_Number")); > out.println(""); > while (rs.next()){ > out.println(" "+rs.getString("Name")); > out.println(""+rs.getString("Mobile")); > > out.println(""+rs.getString("Telephone_Number")); > out.println(""); > } > out.println(""); > > > > }//fin try > catch (Exception e){ > System.out.println(e); > }catch (Throwable e){ > System.out.println("WRONGG POINT"); > e.printStackTrace(); > }finally{ > try{ > out.close(); > rs.close(); > conexion.close(); > orden.close(); > }catch(Exception e){ > throw (new EJBException(e)); > } > > }//fin service > > } > } > > It seems as like he can't reach the mapserver librarys and I don't > know why.It gives me this error: > > java.lang.UnsatisfiedLinkError: new_itemObj > > Can someone help me? > Know what I'm doing wrong? > > Thank you > > Jose Luis > Jose Luis, 1) it is *very* important that you mention which version of MapServer you use! The mapscript module has changed very much from 3.6 to 4.4. 2) do not try to use itemObj, it is not functional. We use SWIG to generate the mapscript wrapper for Java, and it is very permissive, with the result that non-functional classes can be accidently added to mapscript. I'm going to shut itemObj out of the final 4.4 release. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies --------------------------------- --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Tue Nov 30 06:27:55 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 30 Nov 2004 07:27:55 -0700 Subject: jbox area In-Reply-To: Message-ID: On Mon, 29 Nov 2004 10:42:49 -0500, Arnold, Micheal B. wrote: > > > > For some reason, the area that I am getting back for polygons using jbox > seems to be off. The segment length and total length seem to be fine, but > the area is off by a factor of about 5. Does anybody have any ideas or > suggestions? Below are the measure_handler functions I am using. > > > > Thanks for the help! > > > > Mike Arnold > > micheal.arnold at nscorp.com > > > > function measure_handler(name, s, t, n, a) > > { > > // c = 1 / 72dpi / 12inches_per_foot * > 1.0003state_plane_scale_factor > > var c = 0.0011577546296296; // constant > > var f = [scale] * c; // scale factor > > if ((s>0) || (t>0)) > > { > > if (n < 3) > > { > > defaultStatus = "This > segment = " + distFormat(s*f) + ", Total = " + distFormat(t*f) + ", Number > of vertices = " + n ; > > } > > else > > { > > defaultStatus = "This > segment = " + distFormat(s*f) + ", Total = " + distFormat(t*f) + ", Number > of vertices = " + n + ", Area = " + distFormat(a*f) ; > > } > > } > > } > > > > function roundFeet(x) > > { > > var fpp = ([maxx] - [minx]) / [mapwidth]; // resolution > (feet per pixel) > > if (fpp < 4) return (Math.round(x)); > > if (fpp < 8) return (Math.round(x/5)*5); > > if (fpp < 17) return (Math.round(x/10)*10); > > if (fpp < 40) return (Math.round(x/25)*25); > > if (fpp < 80) return (Math.round(x/50)*50); > > return (Math.round(x/100)*100); > > } > > > > function distFormat(x) > > { > > var d; > > if (x > 7920) return ((Math.round(x/5280*10)/10) + " miles"); > > d = roundFeet(x); > > if (d > 2640) > > return (d + " ft (" + (Math.round(x/5280*10)/10) + ")mile"); > > return (d + " ft"); > > } jBox returns an area in screen pixels. You must convert it to sq feet, sq meters, sq miles, or whatever you like. I wrote the above functions to convert to sq feet and/or acres for a state plane coordinate system in US Survey Feet. You need to modify them for your coordinate system, resloution setting (if not 72), and desired output units. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From robertohorst at GMAIL.COM Tue Nov 30 06:26:11 2004 From: robertohorst at GMAIL.COM (Roberto Horst) Date: Tue, 30 Nov 2004 11:26:11 -0300 Subject: Problem compiling MapServer/MapScript Message-ID: Hello guys! I had tried several times to compile MapServer(many versions) with PHP on a Solaris 2.8, but it never generates the shared object "php_mapscript.so"!! I compiled PHP-4.3.5 with this options: './configure' '--with-regex=system' '--with-mysql' '--with-zlib' '--enable-force-cgi-redirect' '--enable-dbase' '--enable-shared' '--enable-vars-track' Apache 1.3.24: ./configure \ "--with-layout=Apache" \ "--prefix=/www_map" \ "--enable-module=rewrite" \ "--enable-shared=rewrite" \ And MapServer 4.x '--with-png=/usr/local' '--with-proj=/usr/local/' '--with-gdal=/usr/local/gdal-1.2.0/bin/gdal-config' '--with-php=/usr/local/php-4.3.5' '--with-gd=/usr/local/gd-2.0.22' '--with-freetype=/usr/local/freetype-2.1.7' '--with-wmsclient' '--with-jpeg=/usr/local/' I compiled this programs on a Fedora1 system and it works fine, but with Solaris 8 it doesn't!!! Does someone know what I'm doing wrong? Thanks for helping!!! Roberto Horst From sobomsawin at KASSINI.COM Tue Nov 30 06:37:29 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Tue, 30 Nov 2004 09:37:29 -0500 Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.0 released In-Reply-To: <41ABFE14.6070709@dmsolutions.ca> Message-ID: Great! I was just wondering when the FastCGI support will be available!! Keep going with your excellent work! Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Daniel Morissette Envoy??: 29 novembre 2004 23:59 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] MapServer 4.4.0 released Good evening, The MapServer 4.4.0 release is now officially available, thanks to the hard work of everyone involved. Here is a very quick summary of what's new in version 4.4: * Added WCS support (server only) * Added support for Time dimension in WMS * Lots of fixes/improvements to the OGC WMS and WFS interfaces (too many to list here). MapServer 4.4 passes all the tests of the OGC WMS 1.1.1 test suite and is ready to be certified (Formal "WMS Compliance" certification with OGC is in the works). * Added FastCGI support * Lots of fixes to allow running in long-lived processes and multithreaded environments (memory leaks, mutex locking, etc.). * Added connection pooling (implemented for SDE and PostGIS). * Lots of improvements to SWIG MapScript API and docs. * Support for i18n encodings in map labels. Tested with Chinese, Japanese and Thai. * Added ability to produce rotated maps (i.e. North is not at the top) * Completion of SDE versioned query support ... and many many more fixes and enhancements. See the HISTORY.TXT that comes with the source package for the complete list (relevant parts included below). The source code package is available for download on the MapServer download page at http://mapserver.gis.umn.edu/dload.html and the default documentation pages should be switched to use version 4.4 documents shortly. Windows binaries should also be available shortly at the usual locations. I would invite those producing prebuilt binaries to please reply to this email and announce the availability of their binaries and their URL. As we've done for previous releases, we will produce 4.4.x bugfix releases as required in the coming months. With respect to 4.2.x: we will not produce any more 4.2.x releases unless major issues (e.g. security issues) are ever found in 4.2.5. What about the next release? The consensus seems to be to aim for a 4.6 release in the next 4-6 months. There are no major changes or new features planned for 4.6 at this point, mostly improvements of existing features. We'll try to document our plan for 4.6 and share it with this list when it's available. Enjoy! Daniel ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Complete list of changes since 4.2 (excerpt from HISTORY.TXT) Version 4.4.0 (2004-11-29) -------------------------- - Fixed WMS GetCapabilities 1.1.0 crash when wms_style_<...>_legendurl_* metadata were used (bug 1096) - WCS GetCapabilities : Added ResponsibleParty support. - WMS GetCapabilities : Service online resource was not url encoded (bug 1093) - Fixed php mapscript problem with wfs_filter selection : Bug 1092. - Fixed encoding problem with WFS server when wfs_service_onlineresource was not explicitly specified (bug 1082) - Add trailing "?" or "&" to connection string when required in WFS client layers using GET method (bug 1082) - Fixed : SLD rasters was failing when there was Spatial Filter (Bug 1087) - Fixed mapwfslayer.c build error when WFS was not enabled (bug 1083) - Check that we have vsnprintf in mapimagemap.c before using it. Version 4.4.0-beta3 (2004-11-22) -------------------------------- - Added tests to mimimize the threat of recursion problems when evaluating LAYER REQUIRES or LABELREQUIRES expressions. Note that via MapScript it is possible to circumvent that test by defining layers with problems after running prepareImage. Other things crop up in that case too (symbol scaling dies) so it should be considered bad programming practice (bug 1059). - Added --with-sderaster configure option. - Make sure that msDrawWMSLayerLow calls msDrawLayer instead of msDrawRasterLayerLow directly ensuring that some logic (transparency) that are in msDrawLayer are applied (bug 541). - Force GD/JPEG outputFormatObjects to IMAGEMODE RGB and TRANSPARENT OFF if they are RGBA or ON. Makes user error such as in bug 1703 less likely. - Advertize only gd and gdal formats for wms capabilities (bug 455). - Pass config option GML_FIELDTYPES=ALWAYS_STRING to OGR so that all GML attributes are returned as strings to MapServer. This is most efficient and prevents problems with autodetection of some attribute types (bug 1043). - msOGCWKT2ProjectionObj() now uses the OGRSpatialReference::SetFromUserInput() method. This allows various convenient setting options, including the ability to handle ESRI WKT by prefixing the WKT string with "ESRI::". - Fixed GetLegendGraphic in WMS Capabilities that were missing the '?' or '&' separator if it was not included in wms_onlineresource (bug 1065). - Updated WMS/WFS client and server code to lookup "ows_*" metadata names in addition to the default "wms_*" (or "wfs_*") metadatas (WCS was already implemented this way). This reduces the amount of duplication in mapfiles that support multiple OGC interfaces since "ows_*" metadata can be used almost everywhere for common metadata items shared by multiple OGC interfaces (bug 568). - Added ows_service_onlineresource metadata for WMS/WFS to distinguish between service and GetMap/Capabilities onlineresources (bug 375). - Added map->setSize() to PHP MapScript (bug 1066). - Re-enabled building PHP MapScript using PHP's bundled regex/*.o. This is needed to build in an environment with PHP configured as an Apache DSO (bugs 990, 520). - Fixed problem with raster dither support on windows (related to ascii encoding pointers) (bug 722). - Moved PHP/SWIG MapScript layer->getExtent() logic down to msLayerGetExtent() to avoid code duplication (bug 1051). - Added SDE Raster drawing support (experimental). - HTML legends: Added [leg_header_html] and [leg_footer_html] (bug 1032). - Added "z" support in SWIG MapScript for pointObj (bug 871). - In PHP Mpascript when using ms_newrectobj, the members minx, miny, maxx, maxy are initialized to -1 (bug 788). - Write out proper world file with remote WMS result, it was off by half a pixel (bug 1050). - Send a warning in the wms capabilities if the layer status is set to default (bug 638). - Fixed PHP MapScript compile warnings: dereferencing type-punned pointer will break strict-aliasing rules (bug 1053). - Added $layer->isVisible() to PHP MapScript (bug 539). - Ported $layer->getExtent() to PHP MapScript (bug 826). - wms_group_abstract can now be used in the capabilities (bug 754). - If wms_stylelist is an empty string, do not output the tag for MapContexts (bug 595). - Avoid passing FILE* to GD library by utilizing GD's gdIOCtx interface (bug 1047). - Output warning in wms/wfs capabilities document if layer,group,map names have space in them (bug 486, bug 646). - maporaclespatial.c: fixed declarations problems (bug 1044). - Allow use of msOWSPrintURLType with no metadata. In this case the default parameters will be used (bug 1001). - Ensure the outputFormatObj attached to msImageLoadGDStream() results reflect the interlacedness of the loaded image. Also ensure that the RGB PNG reference images work (make imagemode match gdImg) (bug 1039). - Fixed support for non-square pixels in WCS (bug 1014). - Expose only GD formats for GetLegendGraphic in the capabilities (bug 1001). - Check for supported formats when process a GetLegendGraphic request (bug 1030). - mapraster.c: fixed problem with leaks in tileindexed case where the tile index is missing (bug 713). - Oracle Spatial: implemented connection pool support for Oracle Spatial. New layer data parameters to support query functions, added "using unique ". Added "FILTER", "RELATE" and "GEOMRELATE" parameters, now permit users to choose the Oracle Spatial Filter. Modified the internal SQL to always apply FILTER function. And improve the Oracle Spatial performance. - Centralize "stdout binary mode setting" for win32 in msIO_needBinaryStdout(). Use it when writing GDAL files to stdout in mapgdal.c. Fixes problems with output of binary files from GDAL outputformat drivers on win32 via WMS/WCS. - MapServer now provides one default style named (default), title and LegendURL when generating capabilities. Added also the possibility to use the keyword default for STYLES parameter when doing a GetMap (..&STYLES=default,defeault,...) (bug 1001). - Add xlink:type="simple" in WMS MetadataURL (bug 1027). Version 4.4.0-beta2 (2004-11-03) -------------------------------- - free mapServObj properly in mapserv.c in OWS dispatch case to fix minor memory leaks. - modified msCloseConnections() to also close raster layers so that held raster query results will be freed. - modified raster queries to properly set the classindex in the resultcache. - modified msDrawQueryCache() to be very careful to not try and lookup information on out-of-range classindex values. This seems to occur when default shapes come back witha classindex of 0 even if there are no classes. (ie. raster query results). - the loadmapcontext function has changed it behaviour. Before the 4.4 relase when loading layers from a map context, the layer name was built using a unique prefix + the name found in the context (eg for the 2nd layer in map context named park, the layer name generated would possibly be l:2:park). Now the loadmapcontext takes a 2nd optional argument to force the creation of the unique names. The default behaviour is now to have the layer name equals to the name found in the context file (bug 1023). - Fixed problem with WMS GetCapabilities aborting when wms_layer_group is used for some layers but not for all (bug 1024). - Changed raster queries to return the list of all pixel values as an attribute named "value_list" rather than "values" to avoid conflict with special [values] substitution rule in maptemplate.c. - Fixed raster queries to reproject results back to map projection, and to do point queries distance checking against the correct projection (bug 1021). - Get rid of WMS 1.0.8 support. It's not an officially supported verison of the spec anyway: it's synonymous for 1.1.0 (bug 1022). - Allow use of '=' inside HTML template tag parser (bug 978). - Use metadata ows_schema_location for WMS/WFS/WCS/SLD (bugs 999, 1013, 938). The default value if metadata is not found is http://schemas.opengeospatial.net. - Generate a RULE tag when generating an SLD (bug 1010). - WMS GetLegendGraphic uses now the RULE value to return an icon for a class that has the same name as the RULE value (bug 843). - Add msOWSPrintURLType: This funciton is a generic URL printing fuction for OGC specification metadata (WMS, WFS, WCS, WMC, etc.) (bug 944). - Support MetadataURL, DataURL and LegendURL tags in WMS capabilities document and MetadataURL in WFS capabilities. - SWIG mapscript: clone methods for layerObj, classObj, styleObj (bug 1012). - Implemented an intarray helper class for SWIG mapscript which allows for multi-language manipulation of layer drawing order (bugs 853, 1005). - Fixed WMS GetLegendGraphic which was returning an exception (GD error) when requested layer was out of scale (bug 1006). - Fixed maplexer.l to work with flex 2.5.31 (bug 975). - WMS GetMap requests now have MS_NONSQUARE enabled by default. This means that if the width/height ratio doesn't match the extent's x/y ratio then the map is stretched as stated in the WMS specification (bug 862). - In WMS, layers with no explicit projection defined will receive a copy of the map's projectionObj if a new SRS is specified in the GetMap request or if MS_NONSQUARE is enabled. This will prevent the problem with layers that don't show up in WMS request when the server administrator forgets to explicitly set projections on all the layers in a WMS mapfile (bug 947). - Implemented FastCGI cleanup support for win32 and unix in mapserv.c. - Solved configure/compile issues with libiconv (bugs 909, 1017). Version 4.4.0-beta1 (2004-10-21) -------------------------------- - "shared" compilation target now supports some kind of versioning, should at least prevent libmap.so version collisions when upgrading MapServer on a server (bug 982). - When no RULE parameter has been specified in the WMS request a legend should be returned with all classes for the specified LAYER. Changes has been made in mapwms.c (bug 653). Also if the SCALE parameter is provided in the WMS request is will be used to determine whether the legend of the specified layer should be drawn in the case that the layer is scale dependant (big 809). - Nested layers in the capabilities are supported by using a new metadata tag WMS_LAYER_GROUP (bug 776). - Added greyscale+alpha render support if mapdrawgdal.c (bug 965). - Added --with-fastcgi support to configure. - support OGC mapcontext through mapserver cgi (bug 946). - support for reading 3d shape file (z) (bug 869). - add php mapscript functions to expose the z element (bug 870). - imageObj::write() method for SWIG mapscript (bug 941). - Protect users from 3 potential sources of threading problems: parsing expression strings outside of msLoadMap, evaluating mapserver logical expressions, and loading symbol set files outside of msLoadMap (bug 339). - Various fixes allowing unit tests to run leak free under valgrind on i686. Memory is now properly freed when exiting from common error states (bug 927). - Restored ability to render transparent (indexed or alpha) pixmap symbols on RGB map images, including annotation layers and embedded scalebars. This feature remains OFF by default for map layers and is enabled by specifying TRANSPARENCY ALPHA (bugs 926, 490). - mapserv_fcgi.c removed. Committed new comprehensive FastCGI support. - New mapserver exceptions for Java mapscript thanks to Umberto Nicoletti (bug 895). - Removed mapindex.c, mapindex.h, shpindex.c components of old unused shapefile indexing method. - Use the symbol size instead of 1 for the default style size value. This is done by setting the default size to -1 and adding msSymbolGetDefaultSize() everywhere to get the default symbolsize (Bug 751). - Correct Bug with GML BBOX output when using a with a GetFeature request (Bug 913). - Encode all metadatas and mapfile parameters outputed in a xml document (Bug 802). - Implement the ENCODING label parameter to support internationalization. Note this require the iconv library (Bug 858). - New and improved Java mapscript build provided by unicoletti at prometeo.it and examples by Y.K. Choo (bug 876). - MapContext: Cleanup code to make future integration more easily and output SRS and DataURL in the order required by the spec. - Fixed issue with polygon outline colors and brush caching (bug 868). - New C# mapscript makefiles and examples provided by Y.K. Choo committed under mapscript/csharp/ (bug 867). - Renamed 'string' member of labelCacheMemberObj to 'text' to avoid conflicts in SWIG mapscript with C# and Java types (bug 852). - Fixed Bug 866 : problem when generating an sld on a pplygon layer - SWIG mapscript: map's output image width and height should be set simultaneously using new mapObj::setSize() method. This performs necessary map geotransform computation. Direct setting of map width and height is deprecated (bug 836). - Fixed bug 832 (validate srs value) : When the SRS parameter in a GetMap request contains a SRS that is valid for some, but not all of the layers being requested, then the server shall throw a Service Exception (code = "InvalidSRS"). Before this fix, mapserver use to reproject the layers to the requested SRS. - Fixed bug 834: SE_ROW_ID in SDE not initialized for unregistered SDE tables - Fixed bug 823 : adding a validation of the SRS parameter when doing a GetMap request on a wms server. Here is the OGC statement : 'When the SRS parameter in a GetMap request contains a SRS that is valid for some, but not all of the layers being requested, then the server shall throw a Service Exception (code = "InvalidSRS").' - Set the background color of polygons or circles when using transparent PIXMAP symbol. - SWIG mapscript class extensions are completely moved from mapscript.i into separate interface files under mapscript/swiginc. - Overhaul of mapscript unit testing framework with a comprehensive test runner mapscript/python/tests/runtests.py. - Modified the MS_VALID_EXTENT macro to take an extent as its argument instead of the quartet of members. MapServer now checks that extents input through the mapfile are valid in mapfile.c (web, map, reference, and layer). Modified msMapSetExtent in mapobject.c to use the new macro instead of its home-grown version. Modified all cases that used MS_VALID_EXTENT to the new use case. - Layers now accept an EXTENT through the mapfile (bug 786). Nothing is done with it at this point, and getExtent still queries the datasource rather than getting information from the mapfile-specified extent. - Fixed problem with WMS GetFeatureInfo when map was reprojected. Was a problem with msProjectRect and zero-size search rectangles (bug 794) - MapServer version now output to mapscriptvars and read by Perl Makefile.PL and Python setup.py (bug 795). - Map.web, layer, and class metadata are exposed in SWIG mapscript as first-class objects (bug 737). - Add support for spatial filters in the SLD (Bug 782) - A few fixes to allow php_mapscript to work with both PHP4 and PHP5. PHP5 support should still be considered experimental. (bug 718) - Fixed SDE only recognizing SE_ROW_ID as the unique column (bug 536). The code now autosenses the unique row id column. - Enhanced SDE support to include support for queries against user-specified versions. The version name can be specified as the last parameter of the CONNECTION string. - Fixed automated generation of onlineresource in OWS GetCapabilities when the xxx_onlineresource metadata is not specified: the map= parameter used to be omitted and is now included in the default onlineresource if it was explicitly set in QUERY_STRING (bug 643) - Fixed possible crash when producing WMS errors INIMAGE (bug 644) - Fixed automated generation of onlineresource in OWS GetCapabilities when the xxx_onlineresource metadata is not specified: the map= parameter used to be omitted and is now included in the default onlineresource if it was explicitly set in QUERY_STRING (bug 643) - Fixed an issue with annotation label overlap. There was an issue with the way msRectToPolygon was computing it's bounding box. (bug 618) - Removed "xbasewohoo" debug output when using JOINs and fixed a few error messages related to MySQL joins (bug 652) - Fixed "raster cracking" problem (bug 493) - Improvements to Makefile.vc, and nmake.opt so that a mapscriptvars file can be produced on windows. - Updated setup.py so Python MapScript builds on win32. - Added preliminary raster query support. - No more Python-stopping but otherwise benign errors raised from msDrawWMSLayer() (bug 650). - Finished prototyping all MapServer functions used by SWIG-Mapscript and added 'void' to prototypes of no-arg functions, eliminating all but two SWIG-Mapscript build warnings (bug 658). - Mapscript: resolved issue with pens and dynamic drawing of points (bug 663). - Mapscript: fixes to tests of shape copying and new image symbols. - Mapscript: new OWSRequest class based on cgiRequestObj structure in cgiutil.h is a first step to allow programming with MapServer's OWS dispatching (bug 670). - Mapscript: styles member of classObj structure is no longer exposed to SWIG (bug 611). - Implementation geotransform/rotation support in cgi core, and mapscript.i. - Testing: fixed syntax error, 'EPSG' -> 'epsg' in test.map (bug 687). Added an embedded scalebar which demonstrates that bug 519 is fixed. The test data package is also made more complete by including two fonts from Bitstream's open Vera fonts (bug 694). - Mapscript (SWIG): remove promote and demote methods from layerObj. Use of container's moveLayerUp/moveLayerDown is better, and this brings the module nearer to PHP-Mapscript (bug 692). - mapogr.cpp: Now echos CPLGetLastErrorMsg() results if OGR open fails. - mapraster.c: fixed tile index corruption problem (bug 698) - Mladen Turk's map copying macros in mapcopy.h clean up map cloning and allow for copying of fontset and symbolset. Added cloning tests in python/tests/testCloneMap.py and refactored testing suite (bugs 640 & 701). - Mapscript: removing obsolete python/setup_wnone.py file. - CONFIG MS_NONSQUARE YES now enables non-square pixel mode (mostly for WMS). Changes in mapdraw.c (msDrawMap()) to use the geotransform "hack" to allow non-square pixels. - When using the text/html mime type in a GetFeature request, if the layer's template is not set to a valid file, errors occur. Correction is : the text/html is not advertized by default and will only be advertized if the user has defined "WMS_FEATURE_INFO_MIME_TYPE" "text/html" (bug 736) - Make PHP MapScript's layer->open() produce a PHP Warning instead of a Fatal error (bug 742) - MapServer hash tables are now a structure containing a items pointer to hashObj. See maphash.h for new prototypes of hash table functions. In SWIG mapscript, Map, Layer, and Class metadata are now instances of the new hashTableObj class. fontset.fonts and Map.configoptions are also instances of hashTableObj. The older getMetaData/setMetaData and metadata iterator methods can be deprecated (bug 737). - Mapscript-SWIG: made the arguments of mapObj and layerObj constructors optional. A layerObj can now exist outside of a map and can be added to a mapObj using the insertLayer method. mapObj.removeLayer now returns a copy of the removed Layer rather than an integer (bug 759). - Fixed $map->processTemplate() which was always returning NULL. Bug introduced in version 4.0 in all flavours of MapScript (bug 410) Version 4.2-beta1 (2004-04-17) ------------------------------ - Added support for WMS 1.1.1 in the WMS interface. - Added support for WMS-SLD in client and server mode. - Added support for attribute filters in the WFS interface. - WMS Interface: several fixes to address issues found in running tests against the OGC testsuite. One of the side-effects is that incomplete GetMap requests that used to work in previous versions will produce errors now (see bug 622). - Modified configure scripts to be able to configure/build PHP MapScript using an installed PHP instead of requiring the full source tree. - Added ability to combine multiple WMS connections to the same server into a single request when the layers are adjacent and compatible. (bug 116) - Support POSTed requests without Content-Length set. - Added support for proper classification of non-8bit rasters. - Added support for BYTE rawmode output type. - Added support for multiple bands of output in rawmode. - MySQL joins available - Fixed problems with detection of OGRRegisterAll() with GDAL 1.1.9 in configure due to GDAL's library name change. Fixed a few other minor issues with GDAL/OGR in configure. - Modified configure to disable native TIFF/PNG/JPEG/GIF support by default if GDAL is enabled. You can still enable them explicitly if you like. - Replace wms_style_%s_legendurl, wms_logourl, wms_descriptionurl, wms_dataurl and wms_metadataurl metadata by four new metadata by metadata replaced. The new metadata are called legendurl_width, legendurl_height, legendurl_format, legendurl_href, logourl_width, etc... Old dependancy to the metadata with four value in it , space separated, are not kept. - Implement DataURL, MetadataURL and DescriptionURL metadata in mapcontext.c (bug 523) - PHP MapScript's pasteImage() now takes a hex color value (e.g. 0xrrggbb) for the transparent color instead of a color index. (bug 463) - OGR data sources with relative paths are now checked relative to SHAPEPATH first, and if not found then we try again relative to the mapfile location. (bug 295) - There is a new mapObj parameter called MAXSIZE to control maximum image size to serve via the CGI and WMS interfaces. The default is 2048 as before but it can be changed in the map file now. (bug 435) - Added simple dataset for unit and regression tests (bug 453) - PostGIS: added postresql_NOTICE_HANDLER() sending output via msDebug() and only when layer->debug is set (bug 418) - Added Apache version detection in configure and added non-blocking flag on stderr in msDebug() to work around Apache 2.x bug (bug 458) - MapScript rectObj: added optional bounding value args to constructor and extended rectObj class with a toPolygon method (bug 508). - MapScript pointObj: added optional x/y args to constructor (bug 508). - MapScript colorObj: added optional RGB color value args to colorObj constructor, and extended colorObj class with setRGB, setHex, and toHex methods. The hex methods use hex color strings like '#ffffff' rather than '0xffffff' for compatibility with HTML (bug 509). - MapScript outputFormatObj: extended with a getOption method (bug 510). - MapScript imageObj: added optional mapObj argument to the save method resolving bug 549 without breaking current API. Also added optional driver and filename arguments to constructor which allows imageObj instances to be created with a specified driver or from files on disk (bug 530). Added new code to Python MapScript which extends the filename option to Python file-like objects (bug 550). This means StringIO and urllib's network objects! - MapScript classObj and styleObj: added a new styleObj shadow class and extended classObj with getStyle, insertStyle, and removeStyle methods. MapScript now supports multiple styles for dynamically created classes (bug 548). - MapScript layerObj: added getExtent, getNumFeatures extension methods, allowing getShape to access inline features (bug 562). - Added fixes for AMD64/Linux in configure (bug 565) - Removed OGR_STATIC stuff in configure script that used to allow us to build with OGR statically by pointing to the OGR source tree. That means you can only build with OGR when *installed* as part of GDAL, but that's what everyone is doing these days anyway. - Mapscript outputFormatObj: extended constructor to allow format names, and mapObj methods to append and remove output formats from the outputformatlist (bug 511). - New SWIG mapscript development documentation in the spirit of the PHP-Mapscript readme file, but using reST (bug 576). - Paving way for future changes to SWIG mapscript API with new features enabled by NEXT_GENERATION_API symbol (bug 586). - Added ability to set string member variables to NULL in PHP MapScript (bug 591) - New key iterators for map, layer, and class metadata hash tables (bug 434) and fontset fonts hash table (bug 439). - Fixed potential crash when using nquery with a querymap enabled and some layers have a template set at the layer level instead of inside classes (bug 569). - New CONFIG keyword in the MAP object in a .map file to be used to set external configuration parameters such as PROJ_LIB and control of some GDAL and OGR driver behaviours (bug 619) --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.801 / Virus Database: 544 - Release Date: 2004-11-24 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.801 / Virus Database: 544 - Release Date: 2004-11-24 From dmorissette at DMSOLUTIONS.CA Tue Nov 30 06:38:03 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Tue, 30 Nov 2004 09:38:03 -0500 Subject: MapServer 4.4.0 released In-Reply-To: <41ABFE14.6070709@dmsolutions.ca> Message-ID: Yesterday, in the release announcement, I wrote: > > * Added connection pooling (implemented for SDE and PostGIS). > And Fernando Simon correctly pointed out that: > But just one little thing about the connection pool, was implemented > for Oracle Spatial too. Sorry about this. I was working from an old summary of 4.4 features that was written before the connection pool was completed for Oracle Spatial. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From tburton at HOLONICS.CA Tue Nov 30 06:34:28 2004 From: tburton at HOLONICS.CA (Trent Burton) Date: Tue, 30 Nov 2004 08:34:28 -0600 Subject: Get Map Request with SLD gives 500 Internal Server error on Oracle Spatial layer Message-ID: I am trying to use an SLD with my GetMap request. It seems to work fine for a simple Filter with just one , but if I try to add a second, using an , I get back a 500 Internal Server error. You can see my SLD below. I look in the server log and see: [Tue Nov 30 08:43:16 2004] [error] [client 192.168.1.2] Premature end of script headers: mapserv.exe Is of a supported with mapserver 4.2.3? Thanks, Trent Burton Holonics Data Management Group Ltd. KCG_APP_DEVELOPMENT_POINTS xxx APPLICATION_ID 20 MAP_TYPE 1 star #ff0000 10.0 From bartvde at XS4ALL.NL Tue Nov 30 07:11:18 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 30 Nov 2004 16:11:18 +0100 Subject: Get Map Request with SLD gives 500 Internal Server error on Oracle Spatial layer In-Reply-To: Message-ID: Hi, XML elements are case-sensitive, try And instead of AND. Best regards, Bart > I am trying to use an SLD with my GetMap request. It seems to work fine > for a simple Filter with just one , but if I try to add > a second, using an , I get back a 500 Internal Server error. You can > see my SLD below. > > I look in the server log and see: > > [Tue Nov 30 08:43:16 2004] [error] [client 192.168.1.2] Premature end of > script headers: mapserv.exe > > Is of a supported with mapserver 4.2.3? > > Thanks, > > Trent Burton > Holonics Data Management Group Ltd. > > > > > > KCG_APP_DEVELOPMENT_POINTS > > xxx > > > > > > APPLICATION_ID > 20 > > > MAP_TYPE > 1 > > > > > > > star > > #ff0000 > > > 10.0 > > > > > > > > From sgillies at FRII.COM Tue Nov 30 07:27:40 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 30 Nov 2004 08:27:40 -0700 Subject: Question on queryByAttributes - multiple fields In-Reply-To: Message-ID: My responses inline ... On Nov 29, 2004, at 6:15 PM, Cord Thomas wrote: > Hey Sean > > Thank you for this definitive answer. I have a few observations: > > 1 - as i said, if i see the query dump from mapserver when i forgot to > give my account select permissions, i saw the following statement: > > DECLARE mycursor BINARY CURSOR FOR SELECT > stateid,name:: > text,asbinary(force_collection(force_2d(wkb_geometry)),'NDR'),OID:: > text > from incorpbound WHERE (stateid='ME' and name='Camden') and > (wkb_geometry > && setSRID( 'BOX3D(-125 23,-66 > 50.5)'::BOX3D,find_srid('','incorpbound','wkb_geometry') )) > > this would imply mapserver is correctly parsing my query - AND - if i > try > to execute this query against postgresql, it does return results - i > get > all excited by this. > > 2 - since query parsing is not left to mapserver (we have to provide > the > exact syntax) - there is no reason MS couldnt handle multiple field > criteria. > I looked again at the code underneath mapserver queries. Here's what goes on under the hood: the queried layer has its 'filteritem' temporarily set to the 'qitem' from the query method, and its 'filter' temporarily set to the 'qstring'. Then the features are filtered and indexes to the features become the query result set. So yes, you can do a multi-attribute query. For a RDBMS data source, your qstring can be almost any SQL where clause, and for shapefile or OGR sources you can do complicated mapserver expressions like qstring = "([att1] > 0 and [att2] > 0)" I guess my querying HOWTO needs major revision already :) > 3 - i see no performance issues or other technical hurdles that would > prevent the execution by MS of this request - unless actually it is > tied > to how this information gets back into the TEMPLATE object or is used > by > LABELs - both issues i am unclear on (like why a TEMPLATE is > /required/ by > MS for queries) > The template is an artifact from the CGI mode, since that's how the results are delivered. I'm constantly debating with other developers over eliminating this artifact from mapscript. > 4 - I understood the MS_SINGLE vs MULTIPLE - though i still need to > learn > how best to work with this (one problem i have is that a city's > boundaries > may come in more than 1 record - but i really just want 1 result - > something i have to tinker with on my end) - thanks for the > explanation. > > > I look forward to reading more on documentation and if i can help, > please > let me know. I am working on a prototype public participation web > application and i need a feature like this to work, and work quickly > (application performance, not how quickly i need 4.4 released). The > two > fields are indexed and i really can't imagine that saving a query and > reloading it is going to be efficient, but i look forward to possibly > hearing from Adam. As an alternative, i could query on the most > restrictive field and then iterate over the results until i find the > value > of the less restrictive field - though ugly, i guess that is an > alternative. > Since your data is in PostgreSQL/PostGIS, you can always go directly to the database when you need. cheers, Sean From nicolas.fortin at EC.GC.CA Tue Nov 30 07:34:00 2004 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Tue, 30 Nov 2004 10:34:00 -0500 Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.0 released Message-ID: Hi Daniel and list, Here's my current mapserver: MapServer version 4.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I downloaded it from Maptools.org some time ago (Thanks DM Solutions for this great site!) and I'm glad to see that the version 4.4 is now an official realease but I have to wait the day it'll be compile with the same support as above to get it since most of our data are from Oracle 9.2 (...soon 10g) So, if someone finally compile it with Oracle Spatial support, please give me a way to download it, I will be really really grateful! Also, I remember that Fernando's team has worked on the Oracle Spatial query support for mapserver ... Is it done and included in this realease? Thanks and keep your great work! Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Daniel Morissette Envoy? : Tuesday, November 30, 2004 9:38 AM ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] MapServer 4.4.0 released Yesterday, in the release announcement, I wrote: > > * Added connection pooling (implemented for SDE and PostGIS). > And Fernando Simon correctly pointed out that: > But just one little thing about the connection pool, was > implemented for Oracle Spatial too. Sorry about this. I was working from an old summary of 4.4 features that was written before the connection pool was completed for Oracle Spatial. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From assefa at DMSOLUTIONS.CA Tue Nov 30 07:35:15 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 30 Nov 2004 10:35:15 -0500 Subject: windows for 4.4.0 release. Message-ID: Hi There, Windows binaries are available for mapserver/php-mapscript 4.4.0 release on maptools : http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html Best Regards, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From simon at INF.UNIVALI.BR Tue Nov 30 06:02:04 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Tue, 30 Nov 2004 14:02:04 +0000 Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.0 released In-Reply-To: <118A9CF846431048B65C4AFB0E57C0ED03744E@ECQCSTFMAIL1.quebec.int.ec.gc.ca> Message-ID: Hi Nicolas, Yes, the query support has was included in this release. We will update the Oracle Spatial wiki page this week. I tested the query support using Mapscript and CGI query modes. Sorry but I didn't compiled the Windows version. Thanks. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Fortin,Nicolas [SteFoy] wrote: >Hi Daniel and list, > >Here's my current mapserver: >MapServer version 4.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > >I downloaded it from Maptools.org some time ago (Thanks DM Solutions for this great site!) and I'm glad to see that the version 4.4 is now an official realease but I have to wait the day it'll be compile with the same support as above to get it since most of our data are from Oracle 9.2 (...soon 10g) > >So, if someone finally compile it with Oracle Spatial support, please give me a way to download it, I will be really really grateful! > >Also, I remember that Fernando's team has worked on the Oracle Spatial query support for mapserver ... Is it done and included in this realease? > >Thanks and keep your great work! > >Nicolas > > From cord at LUPINEX.COM Tue Nov 30 08:14:22 2004 From: cord at LUPINEX.COM (Cord Thomas) Date: Tue, 30 Nov 2004 08:14:22 -0800 Subject: Question on queryByAttributes - multiple fields In-Reply-To: <5F9DB920-42E4-11D9-B446-000D9329D732@frii.com> Message-ID: Sean, Thank you. If you'd like participation in the howTo, let me know. I would like to contribute non-trivial examples as i put them together. Given your discovery - i feel there may be a bug in implementation then. I am unsure why my query results in getNumResults() = 0 though when executed directly against the database, it returns 1 record. Cord > My responses inline ... > > On Nov 29, 2004, at 6:15 PM, Cord Thomas wrote: > >> Hey Sean >> >> Thank you for this definitive answer. I have a few observations: >> >> 1 - as i said, if i see the query dump from mapserver when i forgot to >> give my account select permissions, i saw the following statement: >> >> DECLARE mycursor BINARY CURSOR FOR SELECT >> stateid,name:: >> text,asbinary(force_collection(force_2d(wkb_geometry)),'NDR'),OID:: >> text >> from incorpbound WHERE (stateid='ME' and name='Camden') and >> (wkb_geometry >> && setSRID( 'BOX3D(-125 23,-66 >> 50.5)'::BOX3D,find_srid('','incorpbound','wkb_geometry') )) >> >> this would imply mapserver is correctly parsing my query - AND - if i >> try >> to execute this query against postgresql, it does return results - i >> get >> all excited by this. >> >> 2 - since query parsing is not left to mapserver (we have to provide >> the >> exact syntax) - there is no reason MS couldnt handle multiple field >> criteria. >> > > I looked again at the code underneath mapserver queries. Here's what > goes on under the hood: the queried layer has its 'filteritem' > temporarily > set to the 'qitem' from the query method, and its 'filter' temporarily > set to the 'qstring'. Then the features are filtered and indexes to the > features become the query result set. > > So yes, you can do a multi-attribute query. For a RDBMS data source, > your qstring can be almost any SQL where clause, and for shapefile or > OGR sources you can do complicated mapserver expressions like > > qstring = "([att1] > 0 and [att2] > 0)" > > I guess my querying HOWTO needs major revision already :) > >> 3 - i see no performance issues or other technical hurdles that would >> prevent the execution by MS of this request - unless actually it is >> tied >> to how this information gets back into the TEMPLATE object or is used >> by >> LABELs - both issues i am unclear on (like why a TEMPLATE is >> /required/ by >> MS for queries) >> > > The template is an artifact from the CGI mode, since that's how the > results are delivered. I'm constantly debating with other developers > over eliminating this artifact from mapscript. > >> 4 - I understood the MS_SINGLE vs MULTIPLE - though i still need to >> learn >> how best to work with this (one problem i have is that a city's >> boundaries >> may come in more than 1 record - but i really just want 1 result - >> something i have to tinker with on my end) - thanks for the >> explanation. >> >> >> I look forward to reading more on documentation and if i can help, >> please >> let me know. I am working on a prototype public participation web >> application and i need a feature like this to work, and work quickly >> (application performance, not how quickly i need 4.4 released). The >> two >> fields are indexed and i really can't imagine that saving a query and >> reloading it is going to be efficient, but i look forward to possibly >> hearing from Adam. As an alternative, i could query on the most >> restrictive field and then iterate over the results until i find the >> value >> of the less restrictive field - though ugly, i guess that is an >> alternative. >> > > Since your data is in PostgreSQL/PostGIS, you can always go directly > to the database when you need. > > cheers, > Sean > From stevem at SPATIALMAPPING.COM Tue Nov 30 08:25:00 2004 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Tue, 30 Nov 2004 10:25:00 -0600 Subject: MapServer 4.4.0 released Message-ID: Hello, A quick question about the new v4.4.0 release: Scanning through the extensive changelog (wow, somebody's been busy!), I see entries which lead me to hope that, with this version, it might now be safe to use PHP/Mapscript with PHP loaded as an apache module, rather than as an external CGI executable. Am I being overly optimistic? Thanks, -SM -- From sgillies at FRII.COM Tue Nov 30 08:41:19 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 30 Nov 2004 09:41:19 -0700 Subject: MapServer 4.4.0 released In-Reply-To: Message-ID: On Nov 30, 2004, at 9:25 AM, Steven Monai wrote: > Hello, > > A quick question about the new v4.4.0 release: > > Scanning through the extensive changelog (wow, somebody's been busy!), > I > see entries which lead me to hope that, with this version, it might > now be > safe to use PHP/Mapscript with PHP loaded as an apache module, rather > than > as an external CGI executable. Am I being overly optimistic? > > Thanks, > -SM SM, I can't say for sure about PHP, but I'm finding that the Python mapscript module is safe for use with a multi-threaded Zope. Your mileage may vary because of differences between Python threads (and the interpreter lock) vs PHP's C (I assume) threads, but MapServer 4.4 has not failed me under heavy loads (JMeter) and is not leaking memory. I think you should go ahead and try it, if you succeed you will become like a godling to PHP mapscript users, and will never have to buy beer at a users meeting again. :) cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From sgillies at FRII.COM Tue Nov 30 09:00:16 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 30 Nov 2004 10:00:16 -0700 Subject: Question on queryByAttributes - multiple fields In-Reply-To: Message-ID: Cord, Here's something to try (python example): # execute queryByAttributes ... results = layer.getResults() The 'results' variable will either be a reference to the layer's result set or be NULL if the query returned nothing. The reason why it returned nothing may be found in the mapserver error stack if results == None: error = mapscript.errorObj() if error: print error.code, error.message, error.routine # continue into the stack while 1: error = error.next() if error == None: break else: print error.code, error.message, error.routine Actually, for Python/Java/Ruby, MapServer errors become language exceptions. For Perl, which has no built-in exceptions, users have to program their own error stack inspection. Sean On Nov 30, 2004, at 9:14 AM, Cord Thomas wrote: > Sean, > > Thank you. If you'd like participation in the howTo, let me know. I > would like to contribute non-trivial examples as i put them together. > > Given your discovery - i feel there may be a bug in implementation > then. > I am unsure why my query results in getNumResults() = 0 though when > executed directly against the database, it returns 1 record. > > Cord > >> My responses inline ... >> >> On Nov 29, 2004, at 6:15 PM, Cord Thomas wrote: >> >>> Hey Sean >>> >>> Thank you for this definitive answer. I have a few observations: >>> >>> 1 - as i said, if i see the query dump from mapserver when i forgot >>> to >>> give my account select permissions, i saw the following statement: >>> >>> DECLARE mycursor BINARY CURSOR FOR SELECT >>> stateid,name:: >>> text,asbinary(force_collection(force_2d(wkb_geometry)),'NDR'),OID:: >>> text >>> from incorpbound WHERE (stateid='ME' and name='Camden') and >>> (wkb_geometry >>> && setSRID( 'BOX3D(-125 23,-66 >>> 50.5)'::BOX3D,find_srid('','incorpbound','wkb_geometry') )) >>> >>> this would imply mapserver is correctly parsing my query - AND - if i >>> try >>> to execute this query against postgresql, it does return results - i >>> get >>> all excited by this. >>> >>> 2 - since query parsing is not left to mapserver (we have to provide >>> the >>> exact syntax) - there is no reason MS couldnt handle multiple field >>> criteria. >>> >> >> I looked again at the code underneath mapserver queries. Here's what >> goes on under the hood: the queried layer has its 'filteritem' >> temporarily >> set to the 'qitem' from the query method, and its 'filter' temporarily >> set to the 'qstring'. Then the features are filtered and indexes to >> the >> features become the query result set. >> >> So yes, you can do a multi-attribute query. For a RDBMS data source, >> your qstring can be almost any SQL where clause, and for shapefile or >> OGR sources you can do complicated mapserver expressions like >> >> qstring = "([att1] > 0 and [att2] > 0)" >> >> I guess my querying HOWTO needs major revision already :) >> >>> 3 - i see no performance issues or other technical hurdles that would >>> prevent the execution by MS of this request - unless actually it is >>> tied >>> to how this information gets back into the TEMPLATE object or is used >>> by >>> LABELs - both issues i am unclear on (like why a TEMPLATE is >>> /required/ by >>> MS for queries) >>> >> >> The template is an artifact from the CGI mode, since that's how the >> results are delivered. I'm constantly debating with other developers >> over eliminating this artifact from mapscript. >> >>> 4 - I understood the MS_SINGLE vs MULTIPLE - though i still need to >>> learn >>> how best to work with this (one problem i have is that a city's >>> boundaries >>> may come in more than 1 record - but i really just want 1 result - >>> something i have to tinker with on my end) - thanks for the >>> explanation. >>> >>> >>> I look forward to reading more on documentation and if i can help, >>> please >>> let me know. I am working on a prototype public participation web >>> application and i need a feature like this to work, and work quickly >>> (application performance, not how quickly i need 4.4 released). The >>> two >>> fields are indexed and i really can't imagine that saving a query and >>> reloading it is going to be efficient, but i look forward to possibly >>> hearing from Adam. As an alternative, i could query on the most >>> restrictive field and then iterate over the results until i find the >>> value >>> of the less restrictive field - though ugly, i guess that is an >>> alternative. >>> >> >> Since your data is in PostgreSQL/PostGIS, you can always go directly >> to the database when you need. >> >> cheers, >> Sean >> > From yecarrillo at YAHOO.COM Tue Nov 30 09:33:56 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Tue, 30 Nov 2004 11:33:56 -0600 Subject: Previous Messages in List not indexed for search? In-Reply-To: <64662.66.15.156.209.1101831262.squirrel@www.elem.com> Message-ID: I'm trying to make trivial searches like "mapserver" ,"query" and other simple word in the "Previous Messages" with "Restrict matched files" to Aug2003-Aug2004, but returns always "Found 0 matches in 0 files." Is not this search form working now? Thank You ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From cord at LUPINEX.COM Tue Nov 30 09:33:58 2004 From: cord at LUPINEX.COM (Cord Thomas) Date: Tue, 30 Nov 2004 09:33:58 -0800 Subject: Question on queryByAttributes - multiple fields In-Reply-To: <4EFBCBE5-42F1-11D9-B446-000D9329D732@frii.com> Message-ID: Ahh, yes, something in your documentation that has not made it to the SWIG Mapscript web site yet - good stuff - thanks. I now get an error: Can't locate auto/mapscript/resultCacheObj/swig_shapei.al in @INC Which means SWIG didnt compile something right in my mapscript. I am using MapServer 4.4.0-beta3 and will try pulling the release version now to see if it compiles differently - but while i am working on this - a word on why i might have gotten this error despite compiling mapscript just a week ago? Cord > Cord, > > Here's something to try (python example): > > # execute queryByAttributes ... > results = layer.getResults() > > The 'results' variable will either be a reference to the > layer's result set or be NULL if the query returned nothing. > The reason why it returned nothing may be found in the > mapserver error stack > > if results == None: > error = mapscript.errorObj() > if error: > print error.code, error.message, error.routine > > # continue into the stack > while 1: > error = error.next() > if error == None: break > else: > print error.code, error.message, error.routine > > Actually, for Python/Java/Ruby, MapServer errors become language > exceptions. For Perl, which has no built-in exceptions, users > have to program their own error stack inspection. > > Sean > From sgillies at FRII.COM Tue Nov 30 09:55:39 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 30 Nov 2004 10:55:39 -0700 Subject: Question on queryByAttributes - multiple fields In-Reply-To: Message-ID: Don't know. Old module lying around? Sean On Nov 30, 2004, at 10:33 AM, Cord Thomas wrote: > Ahh, yes, something in your documentation that has not made it to the > SWIG > Mapscript web site yet - good stuff - thanks. > > I now get an error: Can't locate > auto/mapscript/resultCacheObj/swig_shapei.al in @INC > > Which means SWIG didnt compile something right in my mapscript. I am > using MapServer 4.4.0-beta3 and will try pulling the release version > now > to see if it compiles differently - but while i am working on this - a > word on why i might have gotten this error despite compiling mapscript > just a week ago? > > Cord > >> Cord, >> >> Here's something to try (python example): >> >> # execute queryByAttributes ... >> results = layer.getResults() >> >> The 'results' variable will either be a reference to the >> layer's result set or be NULL if the query returned nothing. >> The reason why it returned nothing may be found in the >> mapserver error stack >> >> if results == None: >> error = mapscript.errorObj() >> if error: >> print error.code, error.message, error.routine >> >> # continue into the stack >> while 1: >> error = error.next() >> if error == None: break >> else: >> print error.code, error.message, error.routine >> >> Actually, for Python/Java/Ruby, MapServer errors become language >> exceptions. For Perl, which has no built-in exceptions, users >> have to program their own error stack inspection. >> >> Sean >> > From bt at CCGIS.DE Tue Nov 30 10:36:42 2004 From: bt at CCGIS.DE (Benjamin Thelen) Date: Tue, 30 Nov 2004 19:36:42 +0100 Subject: gdal above 1.2.3 not building Message-ID: Hi list, hello Frank, I have a SuSE 9.0 with gcc-3.3.1 running and try to install gdal-1.2.5. I receive the following error at the end of ./configure. I suppose, that this is the reason why "make" stops. The same ist true for gdal-1.2.4. configure: creating ./config.status config.status: creating GDALmake.opt sed: file ./confstatuuF913/subs-3.sed line 16: Unterminated `s' command config.status: creating port/cpl_config.h config.status: port/cpl_config.h is unchanged GDAL is now configured for i686-pc-linux-gnu GDALmake.opt is empty!? It is no problem to build gdal-1.2.3 and it is also no problem to build newer versions than 1.2.3 on debian with gcc-2.95. I hope to get Mr.SID support compiled successfully into the newer versions, because this files on 1.2.3 and earlier. Any help is appreciated! Best Regards, Benjamin From fwarmerdam at GMAIL.COM Tue Nov 30 10:38:24 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 30 Nov 2004 13:38:24 -0500 Subject: gdal above 1.2.3 not building In-Reply-To: <41ACBDBA.7020508@ccgis.de> Message-ID: On Tue, 30 Nov 2004 19:36:42 +0100, Benjamin Thelen wrote: > Hi list, hello Frank, > > I have a SuSE 9.0 with gcc-3.3.1 running and try to install > gdal-1.2.5. I receive the following error at the end of ./configure. I > suppose, that this is the reason why "make" stops. The same ist true > for gdal-1.2.4. > > configure: creating ./config.status > config.status: creating GDALmake.opt > sed: file ./confstatuuF913/subs-3.sed line 16: Unterminated `s' command > config.status: creating port/cpl_config.h > config.status: port/cpl_config.h is unchanged > > GDAL is now configured for i686-pc-linux-gnu > > GDALmake.opt is empty!? > > It is no problem to build gdal-1.2.3 and it is also no problem to > build newer versions than 1.2.3 on debian with gcc-2.95. > > I hope to get Mr.SID support compiled successfully into the newer > versions, because this files on 1.2.3 and earlier. Benjamin, This is a bug with the mysql autoconfiguration logic. Just add --without-mysql to the configure line. This should be fixed in CVS though, apparently the fix did not make it into the 1.2.5 version. Best regards, -- ---------------------------------------+-------------------------------------- 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 David.Fawcett at STATE.MN.US Tue Nov 30 10:54:09 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Tue, 30 Nov 2004 12:54:09 -0600 Subject: Previous Messages in List not indexed for search? Message-ID: My impression is that there was always something funky with the date parameters in the search. Often, I would search within one or two months and get results, but then broaden the same search out to something like 9 months and it wouldn't return any results. For the old list archive, it may be best to use Google with the 'site:mapserver.gis.umn.edu' argument. David. David J. Fawcett MN Office of Environmental Assistance >>> Eduin Carrillo 11/30/2004 11:33:56 AM >>> I'm trying to make trivial searches like "mapserver" ,"query" and other simple word in the "Previous Messages" with "Restrict matched files" to Aug2003-Aug2004, but returns always "Found 0 matches in 0 files." Is not this search form working now? Thank You ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From bt at CCGIS.DE Tue Nov 30 11:13:14 2004 From: bt at CCGIS.DE (Benjamin Thelen) Date: Tue, 30 Nov 2004 20:13:14 +0100 Subject: gdal above 1.2.3 not building In-Reply-To: <931f8ea90411301038306fd58e@mail.gmail.com> Message-ID: Frank Warmerdam wrote: > On Tue, 30 Nov 2004 19:36:42 +0100, Benjamin Thelen wrote: > >>Hi list, hello Frank, >> >>I have a SuSE 9.0 with gcc-3.3.1 running and try to install >>gdal-1.2.5. I receive the following error at the end of ./configure. I >>suppose, that this is the reason why "make" stops. The same ist true >>for gdal-1.2.4. >> >>configure: creating ./config.status >>config.status: creating GDALmake.opt >>sed: file ./confstatuuF913/subs-3.sed line 16: Unterminated `s' command >>config.status: creating port/cpl_config.h >>config.status: port/cpl_config.h is unchanged >> >>GDAL is now configured for i686-pc-linux-gnu >> >>GDALmake.opt is empty!? >> >>It is no problem to build gdal-1.2.3 and it is also no problem to >>build newer versions than 1.2.3 on debian with gcc-2.95. >> >>I hope to get Mr.SID support compiled successfully into the newer >>versions, because this files on 1.2.3 and earlier. > > > Benjamin, > > This is a bug with the mysql autoconfiguration logic. > Just add --without-mysql to the configure line. This > should be fixed in CVS though, apparently the fix did > not make it into the 1.2.5 version. > > Best regards, Well, thanks Frank, that did help! But now I run into another error. Something with ogr. Please see below. --without-ogr worked fine, but I need ogr! I read something about adding s57featuredefns.o into a makefile, but that was already there. Thanks again, Ben make[1]: Entering directory `/data/src/gdal-1.2.5/ogr' /bin/sh ../libtool --mode=compile g++ -Wall -O2 -Iogrsf_frmts -I. -I../po rt -I../gcore -I../ogr -I../alg -DHAVE_GEOS=1 -I/usr/local/include -I../por t -c -o ogrinfo.o ogrinfo.cpp g++ -Wall -O2 -Iogrsf_frmts -I. -I../port -I../gcore -I../ogr -I../alg -DHAV E_GEOS=1 -I/usr/local/include -I../port -c ogrinfo.cpp -fPIC -DPIC -o .libs/ ogrinfo.o g++ -Wall -O2 -Iogrsf_frmts -I. -I../port -I../gcore -I../ogr -I../alg -DHAV E_GEOS=1 -I/usr/local/include -I../port -c ogrinfo.cpp -o ogrinfo.o >/dev/nul l 2>&1 /bin/sh ../libtool --mode=link g++ ogrinfo.o ../libgdal.la -o ogrinfo g++ ogrinfo.o -o .libs/ogrinfo ../.libs/libgdal.so -L/usr/local/lib /usr/loc al/lib/libgeos.so /usr/lib/libjpeg.so -lpng -lz -ldl -L/usr/lib -lpq /usr/lib /libstdc++.so ../.libs/libgdal.so: undefined reference to `GDALCopyWords' ../.libs/libgdal.so: undefined reference to `GDALDataset::IRasterIO(GDALRWFla g, int, int, int, int, void*, int, int, GDALDataType, int, int*, int, int, in t)' ../.libs/libgdal.so: undefined reference to `typeinfo for GDALRasterBand' ../.libs/libgdal.so: undefined reference to `GDALMajorObject::SetMetadataItem (char const*, char const*, char const*)' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetDataset()' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetRasterDataTyp e()' ../.libs/libgdal.so: undefined reference to `GDALColorTable::Clone() const' ../.libs/libgdal.so: undefined reference to `GDALDataset::GetGCPProjection()' ../.libs/libgdal.so: undefined reference to `GDALDataset::Dereference()' ../.libs/libgdal.so: undefined reference to `GDALDataset::IBuildOverviews(cha r const*, int, int*, int, int*, int (*)(double, char const*, void*), void*)' ../.libs/libgdal.so: undefined reference to `GDALDataset::GetRasterCount()' ../.libs/libgdal.so: undefined reference to `GDALInitGCPs' ../.libs/libgdal.so: undefined reference to `GDALDestroyScaledProgress' ../.libs/libgdal.so: undefined reference to `GDALMajorObject::GetMetadataItem (char const*, char const*)' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetOverview(int) ' ../.libs/libgdal.so: undefined reference to `GDALColorTable::GetColorEntryAsR GB(int, GDALColorEntry*) const' ../.libs/libgdal.so: undefined reference to `GDALDataset::GetRasterXSize()' ../.libs/libgdal.so: undefined reference to `GDALWarpOperation::Initialize(GD ALWarpOptions const*)' ../.libs/libgdal.so: undefined reference to `GDALDriver::~GDALDriver [not-in- charge]()' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::ReadBlock(int, i nt, void*)' ../.libs/libgdal.so: undefined reference to `GDALDataset::GetGCPCount()' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::~GDALRasterBand [not-in-charge]()' ../.libs/libgdal.so: undefined reference to `GDALWarpOperation::WarpRegionToB uffer(int, int, int, int, void*, GDALDataType, int, int, int, int)' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetScale(int*)' ../.libs/libgdal.so: undefined reference to `typeinfo for GDALMajorObject' ../.libs/libgdal.so: undefined reference to `GDALGetRasterBandYSize' ../.libs/libgdal.so: undefined reference to `GDALGetGeoTransform' ../.libs/libgdal.so: undefined reference to `GDALDataset::GetRasterYSize()' ../.libs/libgdal.so: undefined reference to `GDALDataset::GetInternalHandle(c har const*)' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::HasArbitraryOver views()' ../.libs/libgdal.so: undefined reference to `GDALDataset::SetProjection(char const*)' ../.libs/libgdal.so: undefined reference to `GDALApproxTransform' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::SetColorInterpre tation(GDALColorInterp)' ../.libs/libgdal.so: undefined reference to `GDALDataset::GetGCPs()' ../.libs/libgdal.so: undefined reference to `GDALDataset::GDALDataset[not-in- charge]()' ../.libs/libgdal.so: undefined reference to `GDALMajorObject::~GDALMajorObjec t [not-in-charge]()' ../.libs/libgdal.so: undefined reference to `GDALWarpOperation::GDALWarpOpera tion[in-charge]()' ../.libs/libgdal.so: undefined reference to `GDALGetDataTypeSize' ../.libs/libgdal.so: undefined reference to `GDALColorTable::~GDALColorTable [in-charge]()' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::IsBlockCached(in t, int)' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::IWriteBlock(int, int, void*)' ../.libs/libgdal.so: undefined reference to `GDALGCPsToGeoTransform' ../.libs/libgdal.so: undefined reference to `GDALDataset::~GDALDataset [not-i n-charge]()' ../.libs/libgdal.so: undefined reference to `GDALDestroyWarpOptions' ../.libs/libgdal.so: undefined reference to `GDALMajorObject::SetMetadata(cha r**, char const*)' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetUnitType()' ../.libs/libgdal.so: undefined reference to `GDALGetRasterBandXSize' ../.libs/libgdal.so: undefined reference to `GDALDataset::SetGCPs(int, GDAL_G CP const*, char const*)' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetXSize()' ../.libs/libgdal.so: undefined reference to `GDALDereferenceDataset' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetBlockRef(int, int, int)' ../.libs/libgdal.so: undefined reference to `GDALColorTable::GetColorEntryCou nt() const' ../.libs/libgdal.so: undefined reference to `GDALDuplicateGCPs' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::SetColorTable(GD ALColorTable*)' ../.libs/libgdal.so: undefined reference to `GDALCreateGenImgProjTransformer' ../.libs/libgdal.so: undefined reference to `GDALDriver::GDALDriver[in-charge ]()' ../.libs/libgdal.so: undefined reference to `GDALCreateApproxTransformer' ../.libs/libgdal.so: undefined reference to `GDALDriver::Delete(char const*)' ../.libs/libgdal.so: undefined reference to `GDALSwapWords' ../.libs/libgdal.so: undefined reference to `GDALGetGCPProjection' ../.libs/libgdal.so: undefined reference to `GDALDummyProgress' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetAccess()' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::WriteBlock(int, int, void*)' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetCategoryNames ()' ../.libs/libgdal.so: undefined reference to `GDALReadWorldFile' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetBand()' ../.libs/libgdal.so: undefined reference to `GDALDefaultOverviews::Initialize (GDALDataset*, char const*, int)' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::BuildOverviews(c har const*, int, int*, int (*)(double, char const*, void*), void*)' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GDALRasterBand[n ot-in-charge]()' ../.libs/libgdal.so: undefined reference to `GDALMajorObject::GetMetadata(cha r const*)' ../.libs/libgdal.so: undefined reference to `GDALDataset::BlockBasedRasterIO( GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, int, int*, int , int, int)' ../.libs/libgdal.so: undefined reference to `GDALRegenerateOverviews' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetYSize()' ../.libs/libgdal.so: undefined reference to `GDALMajorObject::SetDescription( char const*)' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetOverviewCount ()' ../.libs/libgdal.so: undefined reference to `GDALRasterIO' ../.libs/libgdal.so: undefined reference to `GDALDataset::Reference()' ../.libs/libgdal.so: undefined reference to `GDALOpen' ../.libs/libgdal.so: undefined reference to `GDALMajorObject::GDALMajorObject [not-in-charge]()' ../.libs/libgdal.so: undefined reference to `GDALDriver::Create(char const*, int, int, int, GDALDataType, char**)' ../.libs/libgdal.so: undefined reference to `GDALDataset::AddBand(GDALDataTyp e, char**)' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::OverviewRasterIO (GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, int, int)' ../.libs/libgdal.so: undefined reference to `GDALWarpOperation::GetOptions()' ../.libs/libgdal.so: undefined reference to `GDALDataset::FlushCache()' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::SetCategoryNames (char**)' ../.libs/libgdal.so: undefined reference to `GDALDataTypeUnion' ../.libs/libgdal.so: undefined reference to `GDALDataset::GetShared()' ../.libs/libgdal.so: undefined reference to `GDALDataset::GetProjectionRef()' ../.libs/libgdal.so: undefined reference to `GDALGetRasterBand' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::SetNoDataValue(d ouble)' ../.libs/libgdal.so: undefined reference to `GDALSerializeWarpOptions' ../.libs/libgdal.so: undefined reference to `GDALCreateScaledProgress' ../.libs/libgdal.so: undefined reference to `GDALReprojectImage' ../.libs/libgdal.so: undefined reference to `GDALSetProjection' ../.libs/libgdal.so: undefined reference to `GDALWriteWorldFile' ../.libs/libgdal.so: undefined reference to `typeinfo for GDALDataset' ../.libs/libgdal.so: undefined reference to `GDALCreateWarpOptions' ../.libs/libgdal.so: undefined reference to `GDALScaledProgress' ../.libs/libgdal.so: undefined reference to `GDALDriver::GDALDriver[not-in-ch arge]()' ../.libs/libgdal.so: undefined reference to `GDALDeinitGCPs' ../.libs/libgdal.so: undefined reference to `GDALCloneWarpOptions' ../.libs/libgdal.so: undefined reference to `GDALDataset::GetDriver()' ../.libs/libgdal.so: undefined reference to `GDALSetGenImgProjTransformerDstG eoTransform' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::IRasterIO(GDALRW Flag, int, int, int, int, void*, int, int, GDALDataType, int, int)' ../.libs/libgdal.so: undefined reference to `GDALDataset::RasterInitialize(in t, int)' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetColorInterpre tation()' ../.libs/libgdal.so: undefined reference to `GDALGetRasterCount' ../.libs/libgdal.so: undefined reference to `GDALReferenceDataset' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetOffset(int*)' ../.libs/libgdal.so: undefined reference to `GDALGetProjectionRef' ../.libs/libgdal.so: undefined reference to `GDALVersionInfo' ../.libs/libgdal.so: undefined reference to `GDALDataset::RasterIO(GDALRWFlag , int, int, int, int, void*, int, int, GDALDataType, int, int*, int, int, int )' ../.libs/libgdal.so: undefined reference to `GDALDataset::GetGeoTransform(dou ble*)' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetNoDataValue(i nt*)' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::RasterIO(GDALRWF lag, int, int, int, int, void*, int, int, GDALDataType, int, int)' ../.libs/libgdal.so: undefined reference to `GDALGetGCPCount' ../.libs/libgdal.so: undefined reference to `GDALDataset::GetRasterBand(int)' ../.libs/libgdal.so: undefined reference to `GDALDataset::SetGeoTransform(dou ble*)' ../.libs/libgdal.so: undefined reference to `GDALGetColorInterpretationName' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetColorTable()' ../.libs/libgdal.so: undefined reference to `GDALOpenShared' ../.libs/libgdal.so: undefined reference to `GDALDataset::SetBand(int, GDALRa sterBand*)' ../.libs/libgdal.so: undefined reference to `GDALMajorObject::GetDescription( ) const' ../.libs/libgdal.so: undefined reference to `GDALGetDataTypeName' ../.libs/libgdal.so: undefined reference to `GDALDeserializeWarpOptions' ../.libs/libgdal.so: undefined reference to `GDALDataset::BuildOverviews(char const*, int, int*, int, int*, int (*)(double, char const*, void*), void*)' ../.libs/libgdal.so: undefined reference to `GDALColorTable::GDALColorTable[i n-charge](GDALPaletteInterp)' ../.libs/libgdal.so: undefined reference to `GDALColorTable::SetColorEntry(in t, GDALColorEntry const*)' ../.libs/libgdal.so: undefined reference to `GDALSuggestedWarpOutput' ../.libs/libgdal.so: undefined reference to `GDALGetBandDataset' ../.libs/libgdal.so: undefined reference to `typeinfo for GDALDriver' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetMaximum(int*) ' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetBlockSize(int *, int*)' ../.libs/libgdal.so: undefined reference to `GDALDataTypeIsComplex' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::Fill(double, dou ble)' ../.libs/libgdal.so: undefined reference to `GDALGenImgProjTransform' ../.libs/libgdal.so: undefined reference to `GDALClose' ../.libs/libgdal.so: undefined reference to `GDALReadTabFile' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetMinimum(int*) ' ../.libs/libgdal.so: undefined reference to `GDALRasterBand::FlushCache()' collect2: ld returned 1 exit status make[1]: *** [ogrinfo] Error 1 make[1]: Leaving directory `/data/src/gdal-1.2.5/ogr' make: *** [ogr-apps] Error 2 From dmorissette at DMSOLUTIONS.CA Tue Nov 30 11:28:37 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Tue, 30 Nov 2004 14:28:37 -0500 Subject: MapServer 4.4.0 released In-Reply-To: Message-ID: Sean Gillies wrote: > > I think you should go ahead and try it, if you succeed you will become > like a godling to PHP mapscript users, and will never have to buy beer > at a users meeting again. :) > As Sean wrote, everything is in place, but not much testing has been done on the PHP MapScript front. So the best would be to give it a try and report your results to this list, or bugs via bugzilla. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From Marc-Andre.Morin at DRDC-RDDC.GC.CA Tue Nov 30 11:22:54 2004 From: Marc-Andre.Morin at DRDC-RDDC.GC.CA (=?iso-8859-1?Q?=22Morin=2C_Marc-Andr=E9=22?=) Date: Tue, 30 Nov 2004 14:22:54 -0500 Subject: Premature end of script headers Message-ID: Hi folks, I made a mapfile with over 20 layers (polygons and polylines)... At the beginning, all was working fine! After having added some other layers, I now seem to get an out of memory error. Actually, after some clicks (zoom in, zoom out or pan) in the view, I get an internal server error. Here is what I extracted from the error.log file: [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe, referer: a certain url... and from access.log: 127.0.0.1 - - [30/Nov/2004:13:46:22 -0500] "GET ...the same url... HTTP/1.1" 500 616 Should I increase the limit of the memory assigned to mapserver? If so, could you give me some tips to do so? Any help to fix that problem would be appreciated. Thanks in advance. regards, Marc-Andr? From bt at CCGIS.DE Tue Nov 30 11:43:05 2004 From: bt at CCGIS.DE (Benjamin Thelen) Date: Tue, 30 Nov 2004 20:43:05 +0100 Subject: gdal above 1.2.3 not building (solved) In-Reply-To: <41ACC64A.90205@ccgis.de> Message-ID: Sorry, my fault, forgot "make clean"!! Benjamin Thelen wrote: > > > Frank Warmerdam wrote: > >> On Tue, 30 Nov 2004 19:36:42 +0100, Benjamin Thelen wrote: >> >>> Hi list, hello Frank, >>> >>> I have a SuSE 9.0 with gcc-3.3.1 running and try to install >>> gdal-1.2.5. I receive the following error at the end of ./configure. I >>> suppose, that this is the reason why "make" stops. The same ist true >>> for gdal-1.2.4. >>> >>> configure: creating ./config.status >>> config.status: creating GDALmake.opt >>> sed: file ./confstatuuF913/subs-3.sed line 16: Unterminated `s' command >>> config.status: creating port/cpl_config.h >>> config.status: port/cpl_config.h is unchanged >>> >>> GDAL is now configured for i686-pc-linux-gnu >>> >>> GDALmake.opt is empty!? >>> >>> It is no problem to build gdal-1.2.3 and it is also no problem to >>> build newer versions than 1.2.3 on debian with gcc-2.95. >>> >>> I hope to get Mr.SID support compiled successfully into the newer >>> versions, because this files on 1.2.3 and earlier. >> >> >> >> Benjamin, >> This is a bug with the mysql autoconfiguration logic. Just add >> --without-mysql to the configure line. This should be fixed in CVS >> though, apparently the fix did >> not make it into the 1.2.5 version. >> Best regards, > > > > Well, thanks Frank, that did help! But now I run into another error. > Something with ogr. Please see below. > > --without-ogr worked fine, but I need ogr! > > > I read something about adding s57featuredefns.o into a makefile, but > that was already there. > > > > > Thanks again, > Ben > > make[1]: Entering directory `/data/src/gdal-1.2.5/ogr' > /bin/sh ../libtool --mode=compile g++ -Wall -O2 -Iogrsf_frmts -I. > -I../po > rt -I../gcore -I../ogr -I../alg -DHAVE_GEOS=1 -I/usr/local/include > -I../por > t -c -o ogrinfo.o ogrinfo.cpp > g++ -Wall -O2 -Iogrsf_frmts -I. -I../port -I../gcore -I../ogr -I../alg > -DHAV > E_GEOS=1 -I/usr/local/include -I../port -c ogrinfo.cpp -fPIC -DPIC -o > .libs/ > ogrinfo.o > g++ -Wall -O2 -Iogrsf_frmts -I. -I../port -I../gcore -I../ogr -I../alg > -DHAV > E_GEOS=1 -I/usr/local/include -I../port -c ogrinfo.cpp -o ogrinfo.o > >/dev/nul > l 2>&1 > /bin/sh ../libtool --mode=link g++ ogrinfo.o ../libgdal.la -o ogrinfo > g++ ogrinfo.o -o .libs/ogrinfo ../.libs/libgdal.so -L/usr/local/lib > /usr/loc > al/lib/libgeos.so /usr/lib/libjpeg.so -lpng -lz -ldl -L/usr/lib -lpq > /usr/lib > /libstdc++.so > ../.libs/libgdal.so: undefined reference to `GDALCopyWords' > ../.libs/libgdal.so: undefined reference to > `GDALDataset::IRasterIO(GDALRWFla > g, int, int, int, int, void*, int, int, GDALDataType, int, int*, int, > int, in > t)' > ../.libs/libgdal.so: undefined reference to `typeinfo for GDALRasterBand' > ../.libs/libgdal.so: undefined reference to > `GDALMajorObject::SetMetadataItem > (char const*, char const*, char const*)' > ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetDataset()' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::GetRasterDataTyp > e()' > ../.libs/libgdal.so: undefined reference to `GDALColorTable::Clone() const' > ../.libs/libgdal.so: undefined reference to > `GDALDataset::GetGCPProjection()' > ../.libs/libgdal.so: undefined reference to `GDALDataset::Dereference()' > ../.libs/libgdal.so: undefined reference to > `GDALDataset::IBuildOverviews(cha > r const*, int, int*, int, int*, int (*)(double, char const*, void*), > void*)' > ../.libs/libgdal.so: undefined reference to `GDALDataset::GetRasterCount()' > ../.libs/libgdal.so: undefined reference to `GDALInitGCPs' > ../.libs/libgdal.so: undefined reference to `GDALDestroyScaledProgress' > ../.libs/libgdal.so: undefined reference to > `GDALMajorObject::GetMetadataItem > (char const*, char const*)' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::GetOverview(int) > ' > ../.libs/libgdal.so: undefined reference to > `GDALColorTable::GetColorEntryAsR > GB(int, GDALColorEntry*) const' > ../.libs/libgdal.so: undefined reference to `GDALDataset::GetRasterXSize()' > ../.libs/libgdal.so: undefined reference to > `GDALWarpOperation::Initialize(GD > ALWarpOptions const*)' > ../.libs/libgdal.so: undefined reference to `GDALDriver::~GDALDriver > [not-in- > charge]()' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::ReadBlock(int, i > nt, void*)' > ../.libs/libgdal.so: undefined reference to `GDALDataset::GetGCPCount()' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::~GDALRasterBand > [not-in-charge]()' > ../.libs/libgdal.so: undefined reference to > `GDALWarpOperation::WarpRegionToB > uffer(int, int, int, int, void*, GDALDataType, int, int, int, int)' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::GetScale(int*)' > ../.libs/libgdal.so: undefined reference to `typeinfo for GDALMajorObject' > ../.libs/libgdal.so: undefined reference to `GDALGetRasterBandYSize' > ../.libs/libgdal.so: undefined reference to `GDALGetGeoTransform' > ../.libs/libgdal.so: undefined reference to `GDALDataset::GetRasterYSize()' > ../.libs/libgdal.so: undefined reference to > `GDALDataset::GetInternalHandle(c > har const*)' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::HasArbitraryOver > views()' > ../.libs/libgdal.so: undefined reference to > `GDALDataset::SetProjection(char > const*)' > ../.libs/libgdal.so: undefined reference to `GDALApproxTransform' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::SetColorInterpre > tation(GDALColorInterp)' > ../.libs/libgdal.so: undefined reference to `GDALDataset::GetGCPs()' > ../.libs/libgdal.so: undefined reference to > `GDALDataset::GDALDataset[not-in- > charge]()' > ../.libs/libgdal.so: undefined reference to > `GDALMajorObject::~GDALMajorObjec > t [not-in-charge]()' > ../.libs/libgdal.so: undefined reference to > `GDALWarpOperation::GDALWarpOpera > tion[in-charge]()' > ../.libs/libgdal.so: undefined reference to `GDALGetDataTypeSize' > ../.libs/libgdal.so: undefined reference to > `GDALColorTable::~GDALColorTable > [in-charge]()' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::IsBlockCached(in > t, int)' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::IWriteBlock(int, > int, void*)' > ../.libs/libgdal.so: undefined reference to `GDALGCPsToGeoTransform' > ../.libs/libgdal.so: undefined reference to `GDALDataset::~GDALDataset > [not-i > n-charge]()' > ../.libs/libgdal.so: undefined reference to `GDALDestroyWarpOptions' > ../.libs/libgdal.so: undefined reference to > `GDALMajorObject::SetMetadata(cha > r**, char const*)' > ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetUnitType()' > ../.libs/libgdal.so: undefined reference to `GDALGetRasterBandXSize' > ../.libs/libgdal.so: undefined reference to `GDALDataset::SetGCPs(int, > GDAL_G > CP const*, char const*)' > ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetXSize()' > ../.libs/libgdal.so: undefined reference to `GDALDereferenceDataset' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::GetBlockRef(int, > int, int)' > ../.libs/libgdal.so: undefined reference to > `GDALColorTable::GetColorEntryCou > nt() const' > ../.libs/libgdal.so: undefined reference to `GDALDuplicateGCPs' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::SetColorTable(GD > ALColorTable*)' > ../.libs/libgdal.so: undefined reference to > `GDALCreateGenImgProjTransformer' > ../.libs/libgdal.so: undefined reference to > `GDALDriver::GDALDriver[in-charge > ]()' > ../.libs/libgdal.so: undefined reference to `GDALCreateApproxTransformer' > ../.libs/libgdal.so: undefined reference to `GDALDriver::Delete(char > const*)' > ../.libs/libgdal.so: undefined reference to `GDALSwapWords' > ../.libs/libgdal.so: undefined reference to `GDALGetGCPProjection' > ../.libs/libgdal.so: undefined reference to `GDALDummyProgress' > ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetAccess()' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::WriteBlock(int, > int, void*)' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::GetCategoryNames > ()' > ../.libs/libgdal.so: undefined reference to `GDALReadWorldFile' > ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetBand()' > ../.libs/libgdal.so: undefined reference to > `GDALDefaultOverviews::Initialize > (GDALDataset*, char const*, int)' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::BuildOverviews(c > har const*, int, int*, int (*)(double, char const*, void*), void*)' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::GDALRasterBand[n > ot-in-charge]()' > ../.libs/libgdal.so: undefined reference to > `GDALMajorObject::GetMetadata(cha > r const*)' > ../.libs/libgdal.so: undefined reference to > `GDALDataset::BlockBasedRasterIO( > GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, int, > int*, int > , int, int)' > ../.libs/libgdal.so: undefined reference to `GDALRegenerateOverviews' > ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetYSize()' > ../.libs/libgdal.so: undefined reference to > `GDALMajorObject::SetDescription( > char const*)' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::GetOverviewCount > ()' > ../.libs/libgdal.so: undefined reference to `GDALRasterIO' > ../.libs/libgdal.so: undefined reference to `GDALDataset::Reference()' > ../.libs/libgdal.so: undefined reference to `GDALOpen' > ../.libs/libgdal.so: undefined reference to > `GDALMajorObject::GDALMajorObject > [not-in-charge]()' > ../.libs/libgdal.so: undefined reference to `GDALDriver::Create(char > const*, > int, int, int, GDALDataType, char**)' > ../.libs/libgdal.so: undefined reference to > `GDALDataset::AddBand(GDALDataTyp > e, char**)' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::OverviewRasterIO > (GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, int, int)' > ../.libs/libgdal.so: undefined reference to > `GDALWarpOperation::GetOptions()' > ../.libs/libgdal.so: undefined reference to `GDALDataset::FlushCache()' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::SetCategoryNames > (char**)' > ../.libs/libgdal.so: undefined reference to `GDALDataTypeUnion' > ../.libs/libgdal.so: undefined reference to `GDALDataset::GetShared()' > ../.libs/libgdal.so: undefined reference to > `GDALDataset::GetProjectionRef()' > ../.libs/libgdal.so: undefined reference to `GDALGetRasterBand' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::SetNoDataValue(d > ouble)' > ../.libs/libgdal.so: undefined reference to `GDALSerializeWarpOptions' > ../.libs/libgdal.so: undefined reference to `GDALCreateScaledProgress' > ../.libs/libgdal.so: undefined reference to `GDALReprojectImage' > ../.libs/libgdal.so: undefined reference to `GDALSetProjection' > ../.libs/libgdal.so: undefined reference to `GDALWriteWorldFile' > ../.libs/libgdal.so: undefined reference to `typeinfo for GDALDataset' > ../.libs/libgdal.so: undefined reference to `GDALCreateWarpOptions' > ../.libs/libgdal.so: undefined reference to `GDALScaledProgress' > ../.libs/libgdal.so: undefined reference to > `GDALDriver::GDALDriver[not-in-ch > arge]()' > ../.libs/libgdal.so: undefined reference to `GDALDeinitGCPs' > ../.libs/libgdal.so: undefined reference to `GDALCloneWarpOptions' > ../.libs/libgdal.so: undefined reference to `GDALDataset::GetDriver()' > ../.libs/libgdal.so: undefined reference to > `GDALSetGenImgProjTransformerDstG > eoTransform' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::IRasterIO(GDALRW > Flag, int, int, int, int, void*, int, int, GDALDataType, int, int)' > ../.libs/libgdal.so: undefined reference to > `GDALDataset::RasterInitialize(in > t, int)' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::GetColorInterpre > tation()' > ../.libs/libgdal.so: undefined reference to `GDALGetRasterCount' > ../.libs/libgdal.so: undefined reference to `GDALReferenceDataset' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::GetOffset(int*)' > ../.libs/libgdal.so: undefined reference to `GDALGetProjectionRef' > ../.libs/libgdal.so: undefined reference to `GDALVersionInfo' > ../.libs/libgdal.so: undefined reference to > `GDALDataset::RasterIO(GDALRWFlag > , int, int, int, int, void*, int, int, GDALDataType, int, int*, int, > int, int > )' > ../.libs/libgdal.so: undefined reference to > `GDALDataset::GetGeoTransform(dou > ble*)' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::GetNoDataValue(i > nt*)' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::RasterIO(GDALRWF > lag, int, int, int, int, void*, int, int, GDALDataType, int, int)' > ../.libs/libgdal.so: undefined reference to `GDALGetGCPCount' > ../.libs/libgdal.so: undefined reference to > `GDALDataset::GetRasterBand(int)' > ../.libs/libgdal.so: undefined reference to > `GDALDataset::SetGeoTransform(dou > ble*)' > ../.libs/libgdal.so: undefined reference to > `GDALGetColorInterpretationName' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::GetColorTable()' > ../.libs/libgdal.so: undefined reference to `GDALOpenShared' > ../.libs/libgdal.so: undefined reference to `GDALDataset::SetBand(int, > GDALRa > sterBand*)' > ../.libs/libgdal.so: undefined reference to > `GDALMajorObject::GetDescription( > ) const' > ../.libs/libgdal.so: undefined reference to `GDALGetDataTypeName' > ../.libs/libgdal.so: undefined reference to `GDALDeserializeWarpOptions' > ../.libs/libgdal.so: undefined reference to > `GDALDataset::BuildOverviews(char > const*, int, int*, int, int*, int (*)(double, char const*, void*), void*)' > ../.libs/libgdal.so: undefined reference to > `GDALColorTable::GDALColorTable[i > n-charge](GDALPaletteInterp)' > ../.libs/libgdal.so: undefined reference to > `GDALColorTable::SetColorEntry(in > t, GDALColorEntry const*)' > ../.libs/libgdal.so: undefined reference to `GDALSuggestedWarpOutput' > ../.libs/libgdal.so: undefined reference to `GDALGetBandDataset' > ../.libs/libgdal.so: undefined reference to `typeinfo for GDALDriver' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::GetMaximum(int*) > ' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::GetBlockSize(int > *, int*)' > ../.libs/libgdal.so: undefined reference to `GDALDataTypeIsComplex' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::Fill(double, dou > ble)' > ../.libs/libgdal.so: undefined reference to `GDALGenImgProjTransform' > ../.libs/libgdal.so: undefined reference to `GDALClose' > ../.libs/libgdal.so: undefined reference to `GDALReadTabFile' > ../.libs/libgdal.so: undefined reference to > `GDALRasterBand::GetMinimum(int*) > ' > ../.libs/libgdal.so: undefined reference to `GDALRasterBand::FlushCache()' > collect2: ld returned 1 exit status > make[1]: *** [ogrinfo] Error 1 > make[1]: Leaving directory `/data/src/gdal-1.2.5/ogr' > make: *** [ogr-apps] Error 2 > > From maplist at AVIATION.NL Tue Nov 30 11:44:27 2004 From: maplist at AVIATION.NL (Hans de Bruin) Date: Tue, 30 Nov 2004 20:44:27 +0100 Subject: Premature end of script headers In-Reply-To: <85F883EB8B41D61181C80002A541DB9602847349@valcartierex.drdc -rddc.gc.ca> Message-ID: Did you by chance add any GRID layers ? I had this when I was zoomed out too much with a GRID layer active. Eventually the server (win2k) gave up with a 'not enough virtual memory' message. Hans At 14:22 30/11/2004 -0500, Morin, Marc-Andr? wrote: >Hi folks, > >I made a mapfile with over 20 layers (polygons and polylines)... At the >beginning, all was working fine! >After having added some other layers, I now seem to get an out of memory >error. >Actually, after some clicks (zoom in, zoom out or pan) in the view, I get an >internal server error. > >Here is what I extracted from the error.log file: > >[error] [client 127.0.0.1] Premature end of script headers: mapserv.exe, >referer: a certain url... > >and from access.log: > >127.0.0.1 - - [30/Nov/2004:13:46:22 -0500] "GET ...the same url... HTTP/1.1" >500 616 > >Should I increase the limit of the memory assigned to mapserver? If so, >could you give me some tips to do so? > >Any help to fix that problem would be appreciated. > >Thanks in advance. > >regards, > >Marc-Andr? From dmorissette at DMSOLUTIONS.CA Tue Nov 30 11:55:56 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Tue, 30 Nov 2004 14:55:56 -0500 Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.0 released In-Reply-To: <118A9CF846431048B65C4AFB0E57C0ED03744E@ECQCSTFMAIL1.quebec.int.ec.gc.ca> Message-ID: Fortin,Nicolas [SteFoy] wrote: > > So, if someone finally compile it with Oracle Spatial support, please give me a way to download it, I will be really really grateful! > I think Howard will have a build with Oracle soon. Unless you're using PHP MapScript (his builds don't include PHP)? > Also, I remember that Fernando's team has worked on the Oracle Spatial query support for mapserver ... Is it done and included in this realease? > I'm not sure if Fernando follows this list, but he added the following entry in the HISTORY.TXT that suggests that the query enhancements are there: - Oracle Spatial: implemented connection pool support for Oracle Spatial. New layer data parameters to support query functions, added "using unique ". Added "FILTER", "RELATE" and "GEOMRELATE" parameters, now permit users to choose the Oracle Spatial Filter. Modified the internal SQL to always apply FILTER function. And improve the Oracle Spatial performance. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From bigfoot at MAIN-TASK.COM Tue Nov 30 11:56:26 2004 From: bigfoot at MAIN-TASK.COM (=?ISO-8859-1?Q?Vladimir_Guzm=E1n?=) Date: Tue, 30 Nov 2004 14:56:26 -0500 Subject: MapServer 4.4.0 released In-Reply-To: Message-ID: Steven Monai wrote: >Hello, > >A quick question about the new v4.4.0 release: > >Scanning through the extensive changelog (wow, somebody's been busy!), I >see entries which lead me to hope that, with this version, it might now be >safe to use PHP/Mapscript with PHP loaded as an apache module, rather than >as an external CGI executable. Am I being overly optimistic? > >Thanks, >-SM >-- > > > > I've been using phpmapscript for 3 days or so, and everything seems to work pretty well. I'm working with: Apache_1.3.33 php-5.0.2 mapserver-4.4.0-beta3 In fedora. Php5 is compiled as an Apache DSO. Best regards, -- Vladimir Ilich Guzm?n R. ------------------------ http://maintask.com From umn at KARSTEN-LESSING.DE Tue Nov 30 12:22:13 2004 From: umn at KARSTEN-LESSING.DE (K. Lessing) Date: Tue, 30 Nov 2004 21:22:13 +0100 Subject: WFS Problems In-Reply-To: Message-ID: Hi Bart, (and dear List Members), first of all I would like to apologize my late response on your quick answer! Unfortunatelly I was too busy to spend time on my WFS problem the last couple of hours. Regarding your answer I chanched the string: CONNECTION "http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&VERSION=1.0.0&Typename=WLIS_UTM32&" to: CONNECTION "http://babyz.uni-muenster.de?/wfs/WFS?" (you find the whole mapfile at the bottom of my answer) This resulted in the following gml-file which was stored in the /tmp directory: 404 Not Found

Not Found

The requested URL /wfs/wfs was not found on this server.


Oracle HTTP Server Powered by Apache/1.3.22 Server at BabyZ.geoinformatik.geo.uni-muenster.de Port 80
Than I chanced the CONNECTION string to: CONNECTION "http://babyz.uni-muenster.de?" This resulted in the message of following gml-file: 405 Method Not Allowed

Method Not Allowed

The requested method POST is not allowed for the URL /index.html.


Oracle HTTP Server Powered by Apache/1.3.22 Server at BabyZ.geoinformatik.geo.uni-muenster.de Port 80
As you mentioned earlier the WFS Server does not seem to be able to cope with the POST request. What does this mean ... and what can I do now? For the first steps with WFS it might be an more promissing way to start with another WFS server which is able to work with POST requests? Would you - Or anybody else - know another WFS server and would also be able to give me the necessary coordinates? many thanks beforehand Karsten (the changed mapfile) MAP NAME "wfs_client" SIZE 500 600 IMAGECOLOR 255 255 255 EXTENT 9000 5500000 1000000 5600000 STATUS ON PROJECTION "init=epsg:4326" END WEB LOG "wfs_client.log" TEMPLATE "/srv/www/cgi-bin/docs/template5.htm" IMAGEPATH /var/tmp/ IMAGEURL tmp END OUTPUTFORMAT NAME PNG DRIVER "GDAL/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END LAYER NAME "WaterLevel" TYPE LINE STATUS ON CONNECTION "http://babyz.uni-muenster.de?" CONNECTIONTYPE WFS PROJECTION "init=epsg:4326" END METADATA "wfs_version" "1.0.0" "wfs_typename" "bafg2" "wfs_service" "WFS" "wfs_connectiontimeout" "2000" "wfs_latlonboundingbox" "9000 5500000 1000000 5600000" "wfs_latlonboundingbox" "4.608 46.879 9.725 52.077" END # CLASSITEM "lineId" CLASS # EXPRESSION '124.0' Color 200 200 200 END END END Bart van den Eijnden schrieb: > Hi, > > could you try using a connection string without parameters. The typename > you set through metadata differs from the typename you specify in the > connection. The preferred way to do this now is to set all the variables > through the METADATA and not in the connection string. > > CONNECTION "http://babyz.uni-muenster.de/wfs/WFS?" > > Also, does your WFS server support HTTP POST requests? > > Are there any error messages in your error logs? Is the gml actually > being > downloaded to the tmp directory? > > Best regards, > Bart > > On Mon, 29 Nov 2004 16:56:13 +0100, K. Lessing > wrote: > >> Dear List member, >> >> I am new with the work on mapserver as wfs-client. >> I am running Mapserver 4.2.5. with the support of all necessary >> libraries on >> Suse 9.1. >> I read the How2 instruction page for setting up an WFS-Layer. >> Unfortunatelly it does not work. >> Does anybody maybe have a clue what could be wrong? >> Please have a look on the following map file. >> >> thanx beforehand >> K. Lessing >> >> >> MAP >> NAME "wfs_client" >> SIZE 500 700 >> IMAGECOLOR 50 50 50 >> EXTENT 9000 5500000 1000000 5600000 >> STATUS ON >> PROJECTION >> "init=epsg:32632" >> END >> >> WEB >> TEMPLATE "template5.html" >> IMAGEPATH "/srv/www/htdocs/tmp/" >> IMAGEURL "/tmp/" >> END >> >> OUTPUTFORMAT >> NAME "Farbenfroh" >> DRIVER "GDAL/JPEG" >> MIMETYPE "image/jpeg" >> IMAGEMODE RGB >> EXTENSION "jpeg" >> END >> >> LAYER >> NAME "WaterLevel" >> TYPE LINE >> STATUS DEFAULT >> CONNECTION >> "http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&VERSION=1.0.0&Typename=WLIS_UTM32&" >> >> CONNECTIONTYPE WFS >> PROJECTION >> "init=epsg:32632" >> END >> METADATA >> "wfs_version" "1.0.0" >> "wfs_typename" "bafg2" >> "wfs_service" "WFS" >> "wfs_connectiontimeout" "60" >> "wfs_latlonboundingbox" "9000 5500000 1000000 5600000" >> "wfs_latlonboundingbox" "4.608 46.879 9.725 52.077" >> END >> CLASSITEM "lineId" >> CLASS >> EXPRESSION '124.0' >> Color 200 200 200 >> END >> END >> END > > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > From hobu at IASTATE.EDU Tue Nov 30 12:31:34 2004 From: hobu at IASTATE.EDU (Howard Butler) Date: Tue, 30 Nov 2004 14:31:34 -0600 Subject: 4.4 Windows Binaries (Oracle, SDE, and others) Message-ID: All, I have compiled what I am calling the "kitchen sink" Windows binaries and made them available for download. They are located at . Here is a quick rundown of what is available for support: Outputs: GIF, JPEG, PNG, PDF, and SWF Inputs: GDAL, OGR, PostGIS, and Shapefile. (SDE and/or Oracle, depending on build type). Servers: WCS, WFS, and WMS Clients: WFS and WMS GDAL formats: NetCDF, JPEG2000, ECW, TIFF, GeoTIFF, & MrSID (plus many more) OGR formats: PostGIS, GML, & ODBC (plus many more) There are 4 build types, and you will need to choose the one that appropriately does what you want with respect to Oracle and SDE as the DLLs required to use those are not freely available. SDE and Oracle builds require your own DLLs. SDE was built against ArcSDE 9.0, and will require the 9.0 DLLs. Oracle was built against the Oracle 9.2 client libraries and will require a 9.2 oci.dll. MapScript Python MapScript for Python 2.3 and Java MapScript for JDK 1.5 are also available at this website in the same 4 configurations. The Java MapScript is known to pass the test cases that exist in CVS, but I am not a Java programmer, so I don't know of the rest of their utility. I'd be interested in hearing reports of how well they work for you. Congrats to all those who helped work on a great release. Howard From msmith at SANANGELOMPO.ORG Tue Nov 30 13:13:16 2004 From: msmith at SANANGELOMPO.ORG (Michael Smith) Date: Tue, 30 Nov 2004 15:13:16 -0600 Subject: labeling with multiple fields Message-ID: Hi, Can I label my maps with multiple fields. labelitem "street" what is the correct syntax for this if I want to put the direction field on my streets labels along with street name. is it: labelitem "dir" + "street" ###also how can put a space between the two labels. I can seem to get this right. Any suggestions? thanks. From woodbri at SWOODBRIDGE.COM Tue Nov 30 13:36:27 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 30 Nov 2004 16:36:27 -0500 Subject: labeling with multiple fields In-Reply-To: <200411301614833.SM02572@PLANGIS> Message-ID: Michael, Try something like CLASS ... TEXT ([dir] [street]) LABEL ... END END TEXT overrides the LABELITEM tag. Any text chars inside the () and not part of the [fieldname] is used as text in the label, so the space between the fields will be included in the label. -Steve W Michael Smith wrote: > Hi, > > Can I label my maps with multiple fields. > > labelitem "street" > > what is the correct syntax for this if I want to put the direction field on > my streets labels along with street name. > > is it: > labelitem "dir" + "street" ###also how can put a space between the two > labels. > > I can seem to get this right. Any suggestions? thanks. > From David.Fawcett at STATE.MN.US Tue Nov 30 13:41:50 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Tue, 30 Nov 2004 15:41:50 -0600 Subject: labeling with multiple fields Message-ID: Michael, Take a look at this list message from five days ago. http://lists.umn.edu/cgi-bin/wa?A2=ind0411&L=mapserver-users&P=R57946&I=-3&X=6341F8111D836CFBD5&Y=david.fawcett at moea.state.mn.us Dylan wrote a much more complete example than I did on this one.... I assume that you could take his example LAYER NAME counties TYPE POLYGON DATA orcnty24 STATUS ON LABELITEM "COUNTY_NAM" LABELMINSCALE 540000 LABELMAXSCALE 2400000 CLASS NAME "Counties" OUTLINECOLOR 50 50 50 COLOR -1 -1 -1 TEXT ([COUNTY_NAM] CO) LABEL TYPE BITMAP SIZE SMALL POSITION CC WRAP " " COLOR 0 0 0 END END END And extend it to include two fields TEXT ([DIR] [STREET]) David. David J. Fawcett MN Office of Environmental Assistance >>> Michael Smith 11/30/2004 3:13:16 PM >>> Hi, Can I label my maps with multiple fields. labelitem "street" what is the correct syntax for this if I want to put the direction field on my streets labels along with street name. is it: labelitem "dir" + "street" ###also how can put a space between the two labels. I can seem to get this right. Any suggestions? thanks. From msmith at SANANGELOMPO.ORG Tue Nov 30 13:49:42 2004 From: msmith at SANANGELOMPO.ORG (Michael Smith) Date: Tue, 30 Nov 2004 15:49:42 -0600 Subject: labeling with multiple fields In-Reply-To: <41ACE7DB.2050208@swoodbridge.com> Message-ID: Thanks Stephen that did the trick!!! -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Tuesday, November 30, 2004 3:36 PM To: Michael Smith Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] labeling with multiple fields Michael, Try something like CLASS ... TEXT ([dir] [street]) LABEL ... END END TEXT overrides the LABELITEM tag. Any text chars inside the () and not part of the [fieldname] is used as text in the label, so the space between the fields will be included in the label. -Steve W Michael Smith wrote: > Hi, > > Can I label my maps with multiple fields. > > labelitem "street" > > what is the correct syntax for this if I want to put the direction > field on my streets labels along with street name. > > is it: > labelitem "dir" + "street" ###also how can put a space between the two > labels. > > I can seem to get this right. Any suggestions? thanks. > From cord at LUPINEX.COM Tue Nov 30 14:20:17 2004 From: cord at LUPINEX.COM (Cord Thomas) Date: Tue, 30 Nov 2004 14:20:17 -0800 Subject: Question on queryByAttributes - multiple fields In-Reply-To: <4EFBCBE5-42F1-11D9-B446-000D9329D732@frii.com> Message-ID: Alright, this is finally what worked for me - though i guess i am unsure of why it worked... Again, i am working with MapServer 4.4.0 and perl SWIG Mapscript on a Linux Machine querying spatial data maintained in PostGIS compiled against PostgreSQL 7.4.x Problem - query a layer using multiple field criteria - could not get results Answer - following is code snippet (please forgive my poor perl - i have never used it before): earlier in code: my $lo = "ME|Knox"; ... my $layerName = "counties"; my $qryFlds="stateid"; my @loa = split(/\|/,$lo); my $qryVals="(stateid='" . $loa[0] . "' and (name='" . $loa[1] . "'))"; my $mapLayer = $map->getLayerByName($layerName); $mapLayer->{status} = $mapscript::MS_ON; my $res = $mapLayer->queryByAttributes($map, $qryFlds, $qryVals, $mapscript::MS_SINGLE); $mapLayer->open(); my $shapeObj = new mapscript::shapeObj($mapscript::MS_SHAPE_POLYGON); my $oRes = $mapLayer->getResults(); if ($oRes->{numresults} > 0) { $shapeObj = $mapLayer->getFeature($oRes->getResult(0)->{shapeindex}); } $mapLayer->close(); return $shapeObj; I battled for hours with the following: my $qryFlds = "stateid,name"; - this you would think is necessary - but doesnt work. various permutations of the $qryVals - setting case (lower, upper), trimming, etc... - the query was right - it was the field parameter that was wrong. the extra parentheses around the two field criteria may not be necessary, but it was all part of my vain attempt to get results... Next - i am not sure i am using the getResults() and getFeature() quite right, but, hey, it works. Thank you for help Sean. > Cord, > > Here's something to try (python example): > > # execute queryByAttributes ... > results = layer.getResults() > > The 'results' variable will either be a reference to the > layer's result set or be NULL if the query returned nothing. > The reason why it returned nothing may be found in the > mapserver error stack > > if results == None: > error = mapscript.errorObj() > if error: > print error.code, error.message, error.routine > > # continue into the stack > while 1: > error = error.next() > if error == None: break > else: > print error.code, error.message, error.routine > > Actually, for Python/Java/Ruby, MapServer errors become language > exceptions. For Perl, which has no built-in exceptions, users > have to program their own error stack inspection. > > Sean > > On Nov 30, 2004, at 9:14 AM, Cord Thomas wrote: > >> Sean, >> >> Thank you. If you'd like participation in the howTo, let me know. I >> would like to contribute non-trivial examples as i put them together. >> >> Given your discovery - i feel there may be a bug in implementation >> then. >> I am unsure why my query results in getNumResults() = 0 though when >> executed directly against the database, it returns 1 record. >> >> Cord >> >>> My responses inline ... >>> >>> On Nov 29, 2004, at 6:15 PM, Cord Thomas wrote: >>> >>>> Hey Sean >>>> >>>> Thank you for this definitive answer. I have a few observations: >>>> >>>> 1 - as i said, if i see the query dump from mapserver when i forgot >>>> to >>>> give my account select permissions, i saw the following statement: >>>> >>>> DECLARE mycursor BINARY CURSOR FOR SELECT >>>> stateid,name:: >>>> text,asbinary(force_collection(force_2d(wkb_geometry)),'NDR'),OID:: >>>> text >>>> from incorpbound WHERE (stateid='ME' and name='Camden') and >>>> (wkb_geometry >>>> && setSRID( 'BOX3D(-125 23,-66 >>>> 50.5)'::BOX3D,find_srid('','incorpbound','wkb_geometry') )) >>>> >>>> this would imply mapserver is correctly parsing my query - AND - if i >>>> try >>>> to execute this query against postgresql, it does return results - i >>>> get >>>> all excited by this. >>>> >>>> 2 - since query parsing is not left to mapserver (we have to provide >>>> the >>>> exact syntax) - there is no reason MS couldnt handle multiple field >>>> criteria. >>>> >>> >>> I looked again at the code underneath mapserver queries. Here's what >>> goes on under the hood: the queried layer has its 'filteritem' >>> temporarily >>> set to the 'qitem' from the query method, and its 'filter' temporarily >>> set to the 'qstring'. Then the features are filtered and indexes to >>> the >>> features become the query result set. >>> >>> So yes, you can do a multi-attribute query. For a RDBMS data source, >>> your qstring can be almost any SQL where clause, and for shapefile or >>> OGR sources you can do complicated mapserver expressions like >>> >>> qstring = "([att1] > 0 and [att2] > 0)" >>> >>> I guess my querying HOWTO needs major revision already :) >>> >>>> 3 - i see no performance issues or other technical hurdles that would >>>> prevent the execution by MS of this request - unless actually it is >>>> tied >>>> to how this information gets back into the TEMPLATE object or is used >>>> by >>>> LABELs - both issues i am unclear on (like why a TEMPLATE is >>>> /required/ by >>>> MS for queries) >>>> >>> >>> The template is an artifact from the CGI mode, since that's how the >>> results are delivered. I'm constantly debating with other developers >>> over eliminating this artifact from mapscript. >>> >>>> 4 - I understood the MS_SINGLE vs MULTIPLE - though i still need to >>>> learn >>>> how best to work with this (one problem i have is that a city's >>>> boundaries >>>> may come in more than 1 record - but i really just want 1 result - >>>> something i have to tinker with on my end) - thanks for the >>>> explanation. >>>> >>>> >>>> I look forward to reading more on documentation and if i can help, >>>> please >>>> let me know. I am working on a prototype public participation web >>>> application and i need a feature like this to work, and work quickly >>>> (application performance, not how quickly i need 4.4 released). The >>>> two >>>> fields are indexed and i really can't imagine that saving a query and >>>> reloading it is going to be efficient, but i look forward to possibly >>>> hearing from Adam. As an alternative, i could query on the most >>>> restrictive field and then iterate over the results until i find the >>>> value >>>> of the less restrictive field - though ugly, i guess that is an >>>> alternative. >>>> >>> >>> Since your data is in PostgreSQL/PostGIS, you can always go directly >>> to the database when you need. >>> >>> cheers, >>> Sean >>> >> > > From yecarrillo at YAHOO.COM Tue Nov 30 14:57:46 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Tue, 30 Nov 2004 16:57:46 -0600 Subject: Question on queryByAttributes - multiple fields In-Reply-To: <62435.66.15.156.209.1101853217.squirrel@www.elem.com> Message-ID: This is my code snipped for Php/MapScript. I sent it previously, but cant find it: Make queries as index.php?QATTLAYER=mylayer&QATTFIELD=myfield&QATTSTRING=value It works for this queries like "myfield=value" QATTFIELD=myfield QATTSTRING=value But can't figure how make it work for queries like "myfield=value AND otherfield=othervalue" Note that queries are saved for future use and a cookie is set to show the same queried shapes in the next screen. $mapPrefix = "mymap_" //=================== //QUERY BY ATTRIBUTES //=================== if (strlen($_REQUEST['QATTLAYER']) > 0 and strlen($_REQUEST['QATTFIELD']) > 0 and strlen($_REQUEST['QATTSTRING']) > 0) { mt_srand((double)microtime()*1000000); $qfn = mt_rand() . ".gix"; //Query in all map extension $mapMinXTmp = floatval($oMap->extent->minx); $mapMinYTmp = floatval($oMap->extent->miny); $mapMaxXTmp = floatval($oMap->extent->maxx); $mapMaxYTmp = floatval($oMap->extent->maxy); $oMap->setextent($mapMinX0, $mapMinY0, $mapMaxX0, $mapMaxY0); $qLayer = $oMap->getLayerByName(stripslashes($_REQUEST['QATTLAYER'])); //Do query, prevent showing errors $qresult = @$qLayer->queryByAttributes(stripslashes($_REQUEST['QATTFIELD']), stripslashes($_REQUEST['QATTSTRING']), MS_MULTIPLE); //Restore previous extent $oMap->setextent($mapMinXTmp, $mapMinYTmp, $mapMaxXTmp, $mapMaxYTmp); //Save query for future use if ($qresult == MS_SUCCESS) { $successQuery = TRUE; @$oMap->savequery(strval($oMap->web->imagepath) . $qfn); setcookie($mapPrefix . "_QFILE", $qfn); } else { setcookie($mapPrefix . "_QFILE", ''); } } ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From jeff at PROPERTYKEY.COM Tue Nov 30 15:14:49 2004 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Tue, 30 Nov 2004 17:14:49 -0600 Subject: 4.4 Windows Binaries (Oracle, SDE, and others) In-Reply-To: <6.1.2.0.2.20041130142159.01ba1220@hobu.mail.iastate.edu> Message-ID: Howard Butler wrote: > All, > > I have compiled what I am calling the "kitchen sink" Windows binaries and > made them available for download. They are located at > . Here is a quick rundown of what > is available for support: I'm pretty excited about this -- I was asking just the other day about a Windows binary Java MapScript. I had just started in with MinGW trying to compile all of the dependencies when this message appeared, so you may have saved a lot of hair-pulling. I'm trying the "normal" java build & and the only problem so far is that I got an unresolved dependency on my first try -- your GDAL was compiled with MrSID support & the DLL for it wasn't included in the package. I went out and grabbed the MrSID SDK, though, and now I'm off and running. It'd be nice to warn people that they'll need the SDK and tell them how to get it. -- Jeff Hoffmann jeff at propertykey.com From dmorissette at DMSOLUTIONS.CA Tue Nov 30 16:45:30 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Tue, 30 Nov 2004 19:45:30 -0500 Subject: wms layer zoom question In-Reply-To: Message-ID: Arnold, Micheal B. wrote: > I am having some difficulty with a WMS layer. I am retrieving topo maps > from teraserver. I have added the minvalue entry to my mapfile so that > I don't get errors if someone tries to zoom in too far. My problem is > that these topo maps are only being displayed at a very specific scale. > If someone zooms out at all, the topo will not display. I don't get any > error messages, but that layer isn't shown at all. I tried messing > around with MAXSCALE, but couldn't get it to work. I will paste the > layer definition below. Thanks in advance for any suggestions. > If I understand your problem correctly, you'd like the layer to show up as you zoom out even if the remote WMS server doesn't allow returning the data at that scale, am I right? Using MINSCALE/MAXSCALE is the right way to indicate to MapServer that the remote server doesn't want to return a valid image outside of that scale range, but unfortunately there is currently no way to tell MapServer that you'd like to still get an image out of those scales. One possible way to do this would be to have MapServer produce a GetMap request internally at a resolution that the remote server will accept (by using fake width/height), and then resample the image it gets from terraserver internally... that's not supported at the moment. You could always file that as an enhancement in bugzilla, ya never know. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From yecarrillo at YAHOO.COM Tue Nov 30 18:09:50 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Tue, 30 Nov 2004 20:09:50 -0600 Subject: 4.4 Windows Binaries (Oracle, SDE, and others) In-Reply-To: <6.1.2.0.2.20041130142159.01ba1220@hobu.mail.iastate.edu> Message-ID: --- Howard Butler escribi?: > All, > > I have compiled what I am calling the "kitchen sink" Windows binaries and > made them available for download. They are located at > . Here is a quick rundown of what > is available for support: > > Outputs: GIF, JPEG, PNG, PDF, and SWF > Inputs: GDAL, OGR, PostGIS, and Shapefile. (SDE and/or Oracle, depending on > build type). > Servers: WCS, WFS, and WMS > Clients: WFS and WMS > GDAL formats: NetCDF, JPEG2000, ECW, TIFF, GeoTIFF, & MrSID (plus many more) > OGR formats: PostGIS, GML, & ODBC (plus many more) > > There are 4 build types, and you will need to choose the one that > appropriately does what you want with respect to Oracle and SDE as the DLLs > required to use those are not freely available. SDE and Oracle builds > require your own DLLs. SDE was built against ArcSDE 9.0, and will require > the 9.0 DLLs. Oracle was built against the Oracle 9.2 client libraries and > will require a 9.2 oci.dll. > > MapScript > Python MapScript for Python 2.3 and Java MapScript for JDK 1.5 are also > available at this website in the same 4 configurations. The Java MapScript > is known to pass the test cases that exist in CVS, but I am not a Java > programmer, so I don't know of the rest of their utility. I'd be > interested in hearing reports of how well they work for you. > > Congrats to all those who helped work on a great release. > > Howard > This binary do not works in my system (WINXP SP2). Warning is " System can't find lti_dsdk_dll.dll" ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From dmorissette at DMSOLUTIONS.CA Tue Nov 30 21:11:33 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 1 Dec 2004 00:11:33 -0500 Subject: Number of users In-Reply-To: <41A4C8D1.5080602@camptocamp.com> Message-ID: Daniel FAIVRE wrote: > Hello, > > Is anybody have an idea of how many peoples use (and enjoy ;-) !) > Mapserver ? > > For DM solutions: How many downloads ? > Um... your question made me realize that we didn't have stats for our maptools downloads any more. :( One more thing for the ToDo list. It would definitely be nice to have those stats for the 4.4 release, and perhaps combine them with downloads from UMN and from other locations offering prebuilt binaries. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Tue Nov 30 21:44:09 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 1 Dec 2004 00:44:09 -0500 Subject: Problem compiling MapServer/MapScript In-Reply-To: <5e86201004113006263c28b3e4@mail.gmail.com> Message-ID: Roberto Horst wrote: > Hello guys! > > I had tried several times to compile MapServer(many versions) with PHP > on a Solaris 2.8, but it never generates the shared object > "php_mapscript.so"!! > Do you get any error message when you type make? Could you please tell us what you get for the values of CC, LD, CFLAGS and PHP_SRC_DIR at the top of mapscript/php3/Makefile? The php_mapscript.so is the last thing that is built by the makefiles, so you could look at the end of the 'make' output for the command that builds it and see if any error message is produced or if you notice anything that could help in figuring what is happening (or not happening). Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From janeks.kamerovskis at SILVA.LV Tue Nov 30 23:49:46 2004 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Wed, 1 Dec 2004 09:49:46 +0200 Subject: MapServer 4.4.0 released Message-ID: In readme I found: The php_mapscript_44.dll was compiled with libconv library to be able to support internayional languages. Where could I find more details regarding this international language support? I tried PHP extension of 4.4.0. and got following message when call dl('php_mapscript_44.dll'): Warning: dl(): Unable to load dynamic library 'c:\php\extensions\php_mapscript_44.dll' - The specified procedure could not be found. in E:\webFolders\ipasumi\test1.php on line 10 Also I tested mapserv.exe and got the message: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: When I launch mapserv.exe directly I got message attached in error.gif. My system Win2000. I copied all dlls from 440 package. And mapserver beta1 is working... Looking forward for replay... Janeks > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Daniel Morissette > Sent: Tuesday, November 30, 2004 6:59 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.0 released > > > Good evening, > > The MapServer 4.4.0 release is now officially available, thanks to the > hard work of everyone involved. > > Here is a very quick summary of what's new in version 4.4: > > * Added WCS support (server only) > > * Added support for Time dimension in WMS > > * Lots of fixes/improvements to the OGC WMS and WFS interfaces (too many > to list here). MapServer 4.4 passes all the tests of the OGC WMS 1.1.1 > test suite and is ready to be certified (Formal "WMS Compliance" > certification with OGC is in the works). > > * Added FastCGI support > > * Lots of fixes to allow running in long-lived processes and > multithreaded environments (memory leaks, mutex locking, etc.). > > * Added connection pooling (implemented for SDE and PostGIS). > > * Lots of improvements to SWIG MapScript API and docs. > > * Support for i18n encodings in map labels. Tested with Chinese, > Japanese and Thai. > > * Added ability to produce rotated maps (i.e. North is not at the top) > > * Completion of SDE versioned query support > > ... and many many more fixes and enhancements. See the HISTORY.TXT that > comes with the source package for the complete list (relevant parts > included below). > > The source code package is available for download on the MapServer > download page at http://mapserver.gis.umn.edu/dload.html and the default > documentation pages should be switched to use version 4.4 > documents shortly. > > Windows binaries should also be available shortly at the usual > locations. I would invite those producing prebuilt binaries to please > reply to this email and announce the availability of their binaries and > their URL. > > As we've done for previous releases, we will produce 4.4.x bugfix > releases as required in the coming months. With respect to 4.2.x: we > will not produce any more 4.2.x releases unless major issues (e.g. > security issues) are ever found in 4.2.5. > > What about the next release? The consensus seems to be to aim for a 4.6 > release in the next 4-6 months. There are no major changes or new > features planned for 4.6 at this point, mostly improvements of existing > features. We'll try to document our plan for 4.6 and share it with this > list when it's available. > > Enjoy! > > Daniel > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > > > > Complete list of changes since 4.2 (excerpt from HISTORY.TXT) > > > Version 4.4.0 (2004-11-29) > -------------------------- > > - Fixed WMS GetCapabilities 1.1.0 crash when wms_style_<...>_legendurl_* > metadata were used (bug 1096) > > - WCS GetCapabilities : Added ResponsibleParty support. > > - WMS GetCapabilities : Service online resource was not url encoded (bug > 1093) > > - Fixed php mapscript problem with wfs_filter selection : Bug 1092. > > - Fixed encoding problem with WFS server when wfs_service_onlineresource > was not explicitly specified (bug 1082) > > - Add trailing "?" or "&" to connection string when required in WFS > client layers using GET method (bug 1082) > > - Fixed : SLD rasters was failing when there was Spatial Filter (Bug 1087) > > - Fixed mapwfslayer.c build error when WFS was not enabled (bug 1083) > > - Check that we have vsnprintf in mapimagemap.c before using it. > > > Version 4.4.0-beta3 (2004-11-22) > -------------------------------- > > - Added tests to mimimize the threat of recursion problems when evaluating > LAYER REQUIRES or LABELREQUIRES expressions. Note that via MapScript it > is possible to circumvent that test by defining layers with problems > after running prepareImage. Other things crop up in that case too > (symbol > scaling dies) so it should be considered bad programming practice > (bug 1059). > > - Added --with-sderaster configure option. > > - Make sure that msDrawWMSLayerLow calls msDrawLayer instead of > msDrawRasterLayerLow directly ensuring that some logic (transparency) > that > are in msDrawLayer are applied (bug 541). > > - Force GD/JPEG outputFormatObjects to IMAGEMODE RGB and TRANSPARENT OFF > if they are RGBA or ON. Makes user error such as in bug 1703 less > likely. > > - Advertize only gd and gdal formats for wms capabilities (bug 455). > > - Pass config option GML_FIELDTYPES=ALWAYS_STRING to OGR so that all GML > attributes are returned as strings to MapServer. This is most efficient > and prevents problems with autodetection of some attribute types (bug > 1043). > > - msOGCWKT2ProjectionObj() now uses the > OGRSpatialReference::SetFromUserInput() > method. This allows various convenient setting options, including the > ability to handle ESRI WKT by prefixing the WKT string with "ESRI::". > > - Fixed GetLegendGraphic in WMS Capabilities that were missing the '?' > or '&' separator if it was not included in wms_onlineresource > (bug 1065). > > - Updated WMS/WFS client and server code to lookup "ows_*" metadata names > in addition to the default "wms_*" (or "wfs_*") metadatas (WCS was > already > implemented this way). This reduces the amount of duplication > in mapfiles > that support multiple OGC interfaces since "ows_*" metadata can be used > almost everywhere for common metadata items shared by multiple OGC > interfaces (bug 568). > > - Added ows_service_onlineresource metadata for WMS/WFS to distinguish > between service and GetMap/Capabilities onlineresources (bug 375). > > - Added map->setSize() to PHP MapScript (bug 1066). > > - Re-enabled building PHP MapScript using PHP's bundled regex/*.o. This is > needed to build in an environment with PHP configured as an Apache DSO > (bugs 990, 520). > > - Fixed problem with raster dither support on windows (related to ascii > encoding pointers) (bug 722). > > - Moved PHP/SWIG MapScript layer->getExtent() logic down to > msLayerGetExtent() > to avoid code duplication (bug 1051). > > - Added SDE Raster drawing support (experimental). > > - HTML legends: Added [leg_header_html] and [leg_footer_html] (bug 1032). > > - Added "z" support in SWIG MapScript for pointObj (bug 871). > > - In PHP Mpascript when using ms_newrectobj, the members minx, miny, > maxx, maxy are initialized to -1 (bug 788). > > - Write out proper world file with remote WMS result, it was off by half > a pixel (bug 1050). > > - Send a warning in the wms capabilities if the layer status is set > to default (bug 638). > > - Fixed PHP MapScript compile warnings: dereferencing type-punned pointer > will break strict-aliasing rules (bug 1053). > > - Added $layer->isVisible() to PHP MapScript (bug 539). > > - Ported $layer->getExtent() to PHP MapScript (bug 826). > > - wms_group_abstract can now be used in the capabilities (bug 754). > > - If wms_stylelist is an empty string, do not output the tag > for MapContexts (bug 595). > > - Avoid passing FILE* to GD library by utilizing GD's gdIOCtx interface > (bug 1047). > > - Output warning in wms/wfs capabilities document if layer,group,map > names have > space in them (bug 486, bug 646). > > - maporaclespatial.c: fixed declarations problems (bug 1044). > > - Allow use of msOWSPrintURLType with no metadata. In this case > the default > parameters will be used (bug 1001). > > - Ensure the outputFormatObj attached to msImageLoadGDStream() results > reflect > the interlacedness of the loaded image. Also ensure that the RGB PNG > reference images work (make imagemode match gdImg) (bug 1039). > > - Fixed support for non-square pixels in WCS (bug 1014). > > - Expose only GD formats for GetLegendGraphic in the capabilities (bug > 1001). > > - Check for supported formats when process a GetLegendGraphic request > (bug 1030). > > - mapraster.c: fixed problem with leaks in tileindexed case where the > tile index is missing (bug 713). > > - Oracle Spatial: implemented connection pool support for Oracle Spatial. > New layer data parameters to support query functions, added > "using unique ". Added "FILTER", "RELATE" and > "GEOMRELATE" > parameters, now permit users to choose the Oracle Spatial Filter. > Modified > the internal SQL to always apply FILTER function. And improve > the Oracle > Spatial performance. > > - Centralize "stdout binary mode setting" for win32 in > msIO_needBinaryStdout(). > Use it when writing GDAL files to stdout in mapgdal.c. Fixes > problems with > output of binary files from GDAL outputformat drivers on win32 via > WMS/WCS. > > - MapServer now provides one default style named (default), title and > LegendURL when generating capabilities. Added also the possibility > to use > the keyword default for STYLES parameter when doing a GetMap > (..&STYLES=default,defeault,...) (bug 1001). > > - Add xlink:type="simple" in WMS MetadataURL (bug 1027). > > > Version 4.4.0-beta2 (2004-11-03) > -------------------------------- > > - free mapServObj properly in mapserv.c in OWS dispatch case to fix minor > memory leaks. > > - modified msCloseConnections() to also close raster layers so that > held raster query results will be freed. > > - modified raster queries to properly set the classindex in the > resultcache. > > - modified msDrawQueryCache() to be very careful to not try and lookup > information on out-of-range classindex values. This seems to > occur when > default shapes come back witha classindex of 0 even if there are no > classes. > (ie. raster query results). > > - the loadmapcontext function has changed it behaviour. Before the 4.4 > relase > when loading layers from a map context, the layer name was built using > a unique prefix + the name found in the context (eg for the > 2nd layer in > map context named park, the layer name generated would possibly be > l:2:park). > Now the loadmapcontext takes a 2nd optional argument to force the > creation > of the unique names. The default behaviour is now to have the > layer name > equals to the name found in the context file (bug 1023). > > - Fixed problem with WMS GetCapabilities aborting when wms_layer_group is > used for some layers but not for all (bug 1024). > > - Changed raster queries to return the list of all pixel values as an > attribute named "value_list" rather than "values" to avoid > conflict with > special [values] substitution rule in maptemplate.c. > > - Fixed raster queries to reproject results back to map projection, and to > do point queries distance checking against the correct projection > (bug 1021). > > - Get rid of WMS 1.0.8 support. It's not an officially supported verison > of the spec anyway: it's synonymous for 1.1.0 (bug 1022). > > - Allow use of '=' inside HTML template tag parser (bug 978). > > - Use metadata ows_schema_location for WMS/WFS/WCS/SLD (bugs 999, 1013, > 938). > The default value if metadata is not found is > http://schemas.opengeospatial.net. > > - Generate a RULE tag when generating an SLD (bug 1010). > > - WMS GetLegendGraphic uses now the RULE value to return an icon for > a class that has the same name as the RULE value (bug 843). > > - Add msOWSPrintURLType: This funciton is a generic URL printing fuction > for > OGC specification metadata (WMS, WFS, WCS, WMC, etc.) (bug 944). > > - Support MetadataURL, DataURL and LegendURL tags in WMS capabilities > document and MetadataURL in WFS capabilities. > > - SWIG mapscript: clone methods for layerObj, classObj, styleObj > (bug 1012). > > - Implemented an intarray helper class for SWIG mapscript which allows for > multi-language manipulation of layer drawing order (bugs 853, 1005). > > - Fixed WMS GetLegendGraphic which was returning an exception (GD error) > when requested layer was out of scale (bug 1006). > > - Fixed maplexer.l to work with flex 2.5.31 (bug 975). > > - WMS GetMap requests now have MS_NONSQUARE enabled by default. This means > that if the width/height ratio doesn't match the extent's x/y > ratio then > the map is stretched as stated in the WMS specification (bug 862). > > - In WMS, layers with no explicit projection defined will receive a copy > of the map's projectionObj if a new SRS is specified in the GetMap > request > or if MS_NONSQUARE is enabled. This will prevent the problem > with layers > that don't show up in WMS request when the server administrator forgets > to explicitly set projections on all the layers in a WMS mapfile (bug > 947). > > - Implemented FastCGI cleanup support for win32 and unix in mapserv.c. > > - Solved configure/compile issues with libiconv (bugs 909, 1017). > > > Version 4.4.0-beta1 (2004-10-21) > -------------------------------- > > - "shared" compilation target now supports some kind of versioning, > should at least prevent libmap.so version collisions when upgrading > MapServer on a server (bug 982). > > - When no RULE parameter has been specified in the WMS request > a legend should be returned with all classes for the specified LAYER. > Changes has been made in mapwms.c (bug 653). Also if the SCALE > parameter > is provided in the WMS request is will be used to determine whether > the legend of the specified layer should be drawn in the case that the > layer is scale dependant (big 809). > > - Nested layers in the capabilities are supported by using a new metadata > tag WMS_LAYER_GROUP (bug 776). > > - Added greyscale+alpha render support if mapdrawgdal.c (bug 965). > > - Added --with-fastcgi support to configure. > > - support OGC mapcontext through mapserver cgi (bug 946). > > - support for reading 3d shape file (z) (bug 869). > > - add php mapscript functions to expose the z element (bug 870). > > - imageObj::write() method for SWIG mapscript (bug 941). > > - Protect users from 3 potential sources of threading problems: parsing > expression strings outside of msLoadMap, evaluating mapserver logical > expressions, and loading symbol set files outside of msLoadMap > (bug 339). > > - Various fixes allowing unit tests to run leak free under valgrind on > i686. Memory is now properly freed when exiting from common error > states (bug 927). > > - Restored ability to render transparent (indexed or alpha) pixmap symbols > on RGB map images, including annotation layers and embedded scalebars. > This feature remains OFF by default for map layers and is enabled by > specifying TRANSPARENCY ALPHA (bugs 926, 490). > > - mapserv_fcgi.c removed. Committed new comprehensive FastCGI support. > > - New mapserver exceptions for Java mapscript thanks to Umberto Nicoletti > (bug 895). > > - Removed mapindex.c, mapindex.h, shpindex.c components of old unused > shapefile indexing method. > > - Use the symbol size instead of 1 for the default style size > value. This is > done by setting the default size to -1 and adding > msSymbolGetDefaultSize() > everywhere to get the default symbolsize (Bug 751). > > - Correct Bug with GML BBOX output when using a with a > GetFeature request (Bug 913). > > - Encode all metadatas and mapfile parameters outputed in a xml document > (Bug 802). > > - Implement the ENCODING label parameter to support internationalization. > Note this require the iconv library (Bug 858). > > - New and improved Java mapscript build provided by unicoletti at prometeo.it > and examples by Y.K. Choo (bug 876). > > - MapContext: Cleanup code to make future integration more easily and > output > SRS and DataURL in the order required by the spec. > > - Fixed issue with polygon outline colors and brush caching (bug 868). > > - New C# mapscript makefiles and examples provided by Y.K. Choo > committed under mapscript/csharp/ (bug 867). > > - Renamed 'string' member of labelCacheMemberObj to 'text' to avoid > conflicts in SWIG mapscript with C# and Java types (bug 852). > > - Fixed Bug 866 : problem when generating an sld on a pplygon layer > > - SWIG mapscript: map's output image width and height should be set > simultaneously using new mapObj::setSize() method. This performs > necessary map geotransform computation. Direct setting of map width > and height is deprecated (bug 836). > > - Fixed bug 832 (validate srs value) : When the SRS parameter in a GetMap > request contains a SRS that is valid for some, but not all of > the layers > being requested, then the server shall throw a Service Exception > (code = "InvalidSRS"). Before this fix, mapserver use to reproject > the layers to the requested SRS. > > - Fixed bug 834: SE_ROW_ID in SDE not initialized for unregistered SDE > tables > > - Fixed bug 823 : adding a validation of the SRS parameter when doing > a GetMap request on a wms server. Here is the OGC statement : > 'When the SRS parameter in a GetMap request contains a SRS > that is valid for some, but not all of the layers being requested, > then the server shall throw a Service Exception (code = "InvalidSRS").' > > - Set the background color of polygons or circles when using transparent > PIXMAP symbol. > > - SWIG mapscript class extensions are completely moved from mapscript.i > into separate interface files under mapscript/swiginc. > > - Overhaul of mapscript unit testing framework with a comprehensive test > runner mapscript/python/tests/runtests.py. > > - Modified the MS_VALID_EXTENT macro to take an extent as its argument > instead of the quartet of members. MapServer now checks that extents > input > through the mapfile are valid in mapfile.c (web, map, reference, > and layer). Modified msMapSetExtent in mapobject.c to use the new > macro instead of its home-grown version. Modified all cases that used > MS_VALID_EXTENT to the new use case. > > - Layers now accept an EXTENT through the mapfile (bug 786). Nothing > is done with it at this point, and getExtent still queries the > datasource rather than getting information from the mapfile-specified > extent. > > - Fixed problem with WMS GetFeatureInfo when map was reprojected. Was a > problem with msProjectRect and zero-size search rectangles (bug 794) > > - MapServer version now output to mapscriptvars and read by Perl > Makefile.PL > and Python setup.py (bug 795). > > - Map.web, layer, and class metadata are exposed in SWIG mapscript as > first-class objects (bug 737). > > - Add support for spatial filters in the SLD (Bug 782) > > - A few fixes to allow php_mapscript to work with both PHP4 and PHP5. > PHP5 support should still be considered experimental. (bug 718) > > - Fixed SDE only recognizing SE_ROW_ID as the unique column (bug 536). > The code now autosenses the unique row id column. > > - Enhanced SDE support to include support for queries against > user-specified versions. The version name can be specified as the > last parameter of the CONNECTION string. > > - Fixed automated generation of onlineresource in OWS GetCapabilities > when the xxx_onlineresource metadata is not specified: the > map= parameter > used to be omitted and is now included in the default onlineresource if > it was explicitly set in QUERY_STRING (bug 643) > > - Fixed possible crash when producing WMS errors INIMAGE (bug 644) > > - Fixed automated generation of onlineresource in OWS GetCapabilities > when the xxx_onlineresource metadata is not specified: the > map= parameter > used to be omitted and is now included in the default onlineresource if > it was explicitly set in QUERY_STRING (bug 643) > > - Fixed an issue with annotation label overlap. There was an issue with > the way msRectToPolygon was computing it's bounding box. (bug 618) > > - Removed "xbasewohoo" debug output when using JOINs and fixed a few > error messages related to MySQL joins (bug 652) > > - Fixed "raster cracking" problem (bug 493) > > - Improvements to Makefile.vc, and nmake.opt so that a mapscriptvars file > can be produced on windows. > > - Updated setup.py so Python MapScript builds on win32. > > - Added preliminary raster query support. > > - No more Python-stopping but otherwise benign errors raised from > msDrawWMSLayer() (bug 650). > > - Finished prototyping all MapServer functions used by SWIG-Mapscript > and added 'void' to prototypes of no-arg functions, eliminating all > but two SWIG-Mapscript build warnings (bug 658). > > - Mapscript: resolved issue with pens and dynamic drawing of points (bug > 663). > > - Mapscript: fixes to tests of shape copying and new image symbols. > > - Mapscript: new OWSRequest class based on cgiRequestObj structure in > cgiutil.h is a first step to allow programming with MapServer's OWS > dispatching (bug 670). > > - Mapscript: styles member of classObj structure is no longer exposed to > SWIG (bug 611). > > - Implementation geotransform/rotation support in cgi core, and > mapscript.i. > > - Testing: fixed syntax error, 'EPSG' -> 'epsg' in test.map (bug 687). > Added an embedded scalebar which demonstrates that bug 519 is fixed. > The test data package is also made more complete by including two fonts > from Bitstream's open Vera fonts (bug 694). > > - Mapscript (SWIG): remove promote and demote methods from layerObj. Use > of container's moveLayerUp/moveLayerDown is better, and this brings > the module nearer to PHP-Mapscript (bug 692). > > - mapogr.cpp: Now echos CPLGetLastErrorMsg() results if OGR open fails. > > - mapraster.c: fixed tile index corruption problem (bug 698) > > - Mladen Turk's map copying macros in mapcopy.h clean up map cloning and > allow for copying of fontset and symbolset. Added cloning tests in > python/tests/testCloneMap.py and refactored testing suite (bugs 640 & > 701). > > - Mapscript: removing obsolete python/setup_wnone.py file. > > - CONFIG MS_NONSQUARE YES now enables non-square pixel mode (mostly for > WMS). > Changes in mapdraw.c (msDrawMap()) to use the geotransform "hack" to > allow > non-square pixels. > > - When using the text/html mime type in a GetFeature request, if the > layer's template is not set to a valid file, errors occur. > Correction is : the text/html is not advertized by default and > will only be advertized if the user has defined > "WMS_FEATURE_INFO_MIME_TYPE" "text/html" (bug 736) > > - Make PHP MapScript's layer->open() produce a PHP Warning instead of a > Fatal error (bug 742) > > - MapServer hash tables are now a structure containing a items pointer > to hashObj. See maphash.h for new prototypes of hash table functions. > In SWIG mapscript, Map, Layer, and Class metadata are now instances > of the > new hashTableObj class. fontset.fonts and Map.configoptions are also > instances of hashTableObj. The older getMetaData/setMetaData and > metadata iterator methods can be deprecated (bug 737). > > - Mapscript-SWIG: made the arguments of mapObj and layerObj constructors > optional. A layerObj can now exist outside of a map and can be added > to a mapObj using the insertLayer method. mapObj.removeLayer now > returns a copy of the removed Layer rather than an integer (bug 759). > > - Fixed $map->processTemplate() which was always returning NULL. > Bug introduced in version 4.0 in all flavours of MapScript (bug 410) > > > Version 4.2-beta1 (2004-04-17) > ------------------------------ > > - Added support for WMS 1.1.1 in the WMS interface. > > - Added support for WMS-SLD in client and server mode. > > - Added support for attribute filters in the WFS interface. > > - WMS Interface: several fixes to address issues found in running tests > against the OGC testsuite. One of the side-effects is that incomplete > GetMap requests that used to work in previous versions will produce > errors now (see bug 622). > > - Modified configure scripts to be able to configure/build PHP MapScript > using an installed PHP instead of requiring the full source tree. > > - Added ability to combine multiple WMS connections to the same server > into a single request when the layers are adjacent and compatible. > (bug 116) > > - Support POSTed requests without Content-Length set. > > - Added support for proper classification of non-8bit rasters. > > - Added support for BYTE rawmode output type. > > - Added support for multiple bands of output in rawmode. > > - MySQL joins available > > - Fixed problems with detection of OGRRegisterAll() with GDAL 1.1.9 in > configure due to GDAL's library name change. Fixed a few other minor > issues with GDAL/OGR in configure. > > - Modified configure to disable native TIFF/PNG/JPEG/GIF support > by default > if GDAL is enabled. You can still enable them explicitly if you like. > > - Replace wms_style_%s_legendurl, wms_logourl, wms_descriptionurl, > wms_dataurl > and wms_metadataurl metadata by four new metadata by metadata > replaced. The > new metadata are called legendurl_width, legendurl_height, > legendurl_format, > legendurl_href, logourl_width, etc... > Old dependancy to the metadata with four value in it , space > separated, are > not kept. > > - Implement DataURL, MetadataURL and DescriptionURL metadata in > mapcontext.c (bug 523) > > - PHP MapScript's pasteImage() now takes a hex color value (e.g. 0xrrggbb) > for the transparent color instead of a color index. (bug 463) > > - OGR data sources with relative paths are now checked relative to > SHAPEPATH first, and if not found then we try again relative to the > mapfile location. (bug 295) > > - There is a new mapObj parameter called MAXSIZE to control maximum image > size to serve via the CGI and WMS interfaces. The default is 2048 as > before but it can be changed in the map file now. (bug 435) > > - Added simple dataset for unit and regression tests (bug 453) > > - PostGIS: added postresql_NOTICE_HANDLER() sending output via msDebug() > and only when layer->debug is set (bug 418) > > - Added Apache version detection in configure and added non-blocking flag > on stderr in msDebug() to work around Apache 2.x bug (bug 458) > > - MapScript rectObj: added optional bounding value args to constructor and > extended rectObj class with a toPolygon method (bug 508). > > - MapScript pointObj: added optional x/y args to constructor (bug 508). > > - MapScript colorObj: added optional RGB color value args to colorObj > constructor, and extended colorObj class with setRGB, setHex, and toHex > methods. The hex methods use hex color strings like '#ffffff' rather > than '0xffffff' for compatibility with HTML (bug 509). > > - MapScript outputFormatObj: extended with a getOption method (bug 510). > > - MapScript imageObj: added optional mapObj argument to the save method > resolving bug 549 without breaking current API. Also added optional > driver and filename arguments to constructor which allows imageObj > instances to be created with a specified driver or from files on disk > (bug 530). Added new code to Python MapScript which extends the > filename option to Python file-like objects (bug 550). This means > StringIO and urllib's network objects! > > - MapScript classObj and styleObj: added a new styleObj shadow class and > extended classObj with getStyle, insertStyle, and removeStyle methods. > MapScript now supports multiple styles for dynamically created classes > (bug 548). > > - MapScript layerObj: added getExtent, getNumFeatures extension methods, > allowing getShape to access inline features (bug 562). > > - Added fixes for AMD64/Linux in configure (bug 565) > > - Removed OGR_STATIC stuff in configure script that used to allow us to > build with OGR statically by pointing to the OGR source tree. That > means you can only build with OGR when *installed* as part of GDAL, > but that's what everyone is doing these days anyway. > > - Mapscript outputFormatObj: extended constructor to allow format names, > and mapObj methods to append and remove output formats from the > outputformatlist (bug 511). > > - New SWIG mapscript development documentation in the spirit of the > PHP-Mapscript readme file, but using reST (bug 576). > > - Paving way for future changes to SWIG mapscript API with new features > enabled by NEXT_GENERATION_API symbol (bug 586). > > - Added ability to set string member variables to NULL in PHP MapScript > (bug 591) > > - New key iterators for map, layer, and class metadata hash tables > (bug 434) and fontset fonts hash table (bug 439). > > - Fixed potential crash when using nquery with a querymap enabled and > some layers have a template set at the layer level instead of inside > classes (bug 569). > > - New CONFIG keyword in the MAP object in a .map file to be used > to set external configuration parameters such as PROJ_LIB and control > of some GDAL and OGR driver behaviours (bug 619) -------------- next part -------------- A non-text attachment was scrubbed... Name: errror.gif Type: image/gif Size: 3155 bytes Desc: not available URL: